lete,t,r,n,i,o,s,a;functionl(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}functionu(e){returne&&e.__esModule?e.default:e;}functionc(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)throwTypeError("callback not provided");returnnewPromise(function(r,n){c(e,t||{},function(e,t){e?n(e):r(t);});});}rk(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}functionp(e,t){letr;letn=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd);}catch(e){}try{r=rL.sync(e.command,{path:n[rU({env:n})],pathExt:t?nz.delimiter:void0});}catch(e){}finally{s&&process.chdir(i);}returnr&&(r=nz.resolve(o?e.options.cwd:"",r)),r;}functiond(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args});}functionf(e,t){returniM&&1===e&&!t.file?d(t.original,"spawn"):null;}functionh(e,t,r){letn=rP(e,t,r),i=t9.spawn(n.command,n.args,n.options);returnrG.hookChildProcess(i,n),i;}functionm(e){lett="string"==typeofe?"\n":"\n".charCodeAt(),r="string"==typeofe?"\r":"\r".charCodeAt();returne[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}functionv(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";}functiong({env:e=u(ro).env,...t}={}){letr=v({env:e={...e}});returnt.path=e[r],e[r]=function(e={}){lett;let{cwd:r=u(ro).cwd(),path:n=u(ro).env[v()],execPath:i=u(ro).execPath}=e,o=iinstanceofURL?u(rs).fileURLToPath(i):i,s=rinstanceofURL?u(rs).fileURLToPath(r):r,a=u(rn).resolve(s),l=[];for(;t!==a;)l.push(u(rn).join(a,"node_modules/.bin")),t=a,a=u(rn).resolve(a,"..");returnl.push(u(rn).resolve(s,o,"..")),[...l,n].join(u(rn).delimiter);}(t),e;}functionE(e){returnnull!==e&&"object"==typeofe&&"function"==typeofe.pipe;}functiony(e){returnE(e)&&!1!==e.writable&&"function"==typeofe._write&&"object"==typeofe._writableState;}asyncfunctionw(e,t){if(!e)throwError("Expected a stream");let{maxBuffer:r}=t={maxBuffer:1/0,...t},n=rW(t);returnawaitnewPromise((t,i)=>{leto=e=>{e&&n.getBufferedLength()<=rX.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{awaitoC(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(newo$());});}),n.getBufferedValue();}functionx(e,t,r){letn;leti=o3(e,t,r),o=oX(e,t),s=oz(e,t);o2(s,i.options),oS(i.options);try{n=u(ri).spawn(i.file,i.args,i.options);}catch(t){lete=new(u(ri).ChildProcess)();returnoB(e,Promise.reject(i5({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}leta=oH(n),l=oI(n,i.options,a),c=oR(n,i.options,l),p={isCanceled:!1};n.kill=ov.bind(null,n.kill.bind(n)),n.cancel=ox.bind(null,n,p);letd=rB(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,u,d]=awaitoF(n,i.options,c),f=o6(i.options,l),h=o6(i.options,u),m=o6(i.options,d);if(e||0!==t||null!==r){letl=i5({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)returnl;throwl;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});returnoD(n,i.options),n.all=ok(n,i.options),oA(n),oB(n,d),n;}functionb(e,t,r){letn;leti=o3(e,t,r),o=oX(e,t),s=oz(e,t);o2(s,i.options);leta=oN(i.options);try{n=u(ri).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throwi5({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}letl=o6(i.options,n.stdout,n.error),c=o6(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){lete=i5({stdout:l,stderr:c,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.er
`),(0,no.info)(`${e}="${n}"wasaddedto"${sJ}`));return;}process.env[e]=n;}async function F(e){switch(process.platform){case"win32":await D(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,no.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":awaitM(),(0,nW.appendFileSync)(sJ,`
`),(0,no.info)(`"${e}"wasaddedto"${sJ}"`);return;default:return;}}async function M(){if(sZ)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if((await(0,nl.pathExists)(sJ))&&(0,nW.readFileSync)(sJ,"utf8").includes(e))return;(0,nW.appendFileSync)(sJ,`
`),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,c=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:C(""),p=[],d=[],f=rb.create({autoloadLocales:!0});rb.addLocale(u(rI)),rw.addLocale(u(rx));let h=await ax();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,ry.error)("The same version must be used for llvm, clangformat and clangtidy"),1;ei()&&"string"==typeof a.cppcheck&&"string"==typeof a.gcovr&&((0,ry.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await ec("python-pygments"));let m=!1,v=!1;for(let e of aK){if(rE.isCI&&0!==d.length){v=!0;break;}let t=a[e];void 0!==t&&(i=Date.now(),m=await tO(e,t,h,l,c,p,d,6e4*parseFloat(null!==(n=a.timeout)&&void 0!==n?n:"20")),o=Date.now(),(0,ry.info)("took "+(f.format(i,o)||"0 seconds")));}if(!v){let e=a.compiler;if(void 0!==e){let t=Date.now();await tZ(e,h,c,l,p,m,d);let r=Date.now();(0,ry.info)("took "+(f.format(t,r)||"0 seconds"));}}if(await G(),0===p.length&&0===d.length)return(0,ry.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(p.forEach(e=>(0,ry.success)(e)),d.forEach(e=>(0,ry.error)(e)),(0,ry.info)("setup-cpp finished"),!rE.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,ry.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,ry.warning)("Run `source~/.cpprc`orrestartyourshelltoupdatetheenvironment.");}returnawaits,0===d.length?0:1;}vart1,t2,t4,t3,t6,t8,t5,t9,t7,re,rt,rr,rn,ri,ro,rs,ra,rl,ru,rc,rp,rd,rf,rh,rm,rv,rg,rE,ry,rw,rx,rb,rI,rS,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,nu,nc,np,nd,nf,nh,nm,nv,ng,nE,ny,nw,nx,nb,nI,nS,nR,nO,nT,nA,nC,n$,n_,nP,nN,nL,nD,nk,nU,nj,nF,nM,nG,nB,nH,nq,nV,nX=require("os"),nz=require("path"),nW=require("fs"),nK=require("crypto"),nY=require("http"),nQ=require("https");require("net"),t4=require("tls"),t3=require("events"),t6=require("assert"),t8=require("util"),t5=require("fs"),t9=require("child_process"),t7=require("string_decoder"),re=require("timers"),rt=require("os"),rr=require("buffer"),rn=require("path"),ri=require("child_process"),ro=require("process"),rs=require("url"),ra=require("buffer"),rl=require("stream"),ru=require("util"),rc=require("process"),rp=require("url"),rd=require("console"),rh={},rm={},null==(rv=(rf=globalThis).parcelRequire810d)&&((rv=function(e){if(einrh)returnrh[e].exports;if(einrm){vart=rm[e];deleterm[e];varr={id:e,exports:{}};returnrh[e]=r,t.call(r.exports,r,r.exports),r.exports;}varn=Error("Cannotfindmodule'"+e+"'");thrown.code="MODULE_NOT_FOUND",n;}).register=function(e,t){rm[e]=t;},rf.parcelRequire810d=rv),(rg=rv.register)("dAuy6",function(e,t){varr;functionn(e){return"string"==typeofe?!!i[e]:"env"ine?i[e.env]&&i[e.env].includes(e.includes):"any"ine?e.any.some(function(e){return!!i[e];}):Object.keys(e).every(function(t){returni[t]===e[t];});}r=rv("5vZJI");leti=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){returne.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){letr=(Array.isArray(t.env)?t.env:[t.env]).every(function(e){returnn(e);});if(e.exports[t.constant]=r,r)switch(e.exports.name=t.name,typeoft.pr){case"string":e.exports.isPR=!!i[t.pr];break;case"object":"env"int.pr?e.exports.isPR=t.pr.envini&&i[t.pr.env]!==t.pr.ne:"any"int.pr?e.exports.
ErrorMessage:${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;}),rg("eamjo",function(e,t){var r,n,i,o,s,a,l,u,c;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(nY),d=i(nQ),f=i(rv("jnrYh")),h=i(rv("3RDK7"));(u=s=e.exports.HttpCodes||(e.exports.HttpCodes={}))[u.OK=200]="OK",u[u.MultipleChoices=300]="MultipleChoices",u[u.MovedPermanently=301]="MovedPermanently",u[u.ResourceMoved=302]="ResourceMoved",u[u.SeeOther=303]="SeeOther",u[u.NotModified=304]="NotModified",u[u.UseProxy=305]="UseProxy",u[u.SwitchProxy=306]="SwitchProxy",u[u.TemporaryRedirect=307]="TemporaryRedirect",u[u.PermanentRedirect=308]="PermanentRedirect",u[u.BadRequest=400]="BadRequest",u[u.Unauthorized=401]="Unauthorized",u[u.PaymentRequired=402]="PaymentRequired",u[u.Forbidden=403]="Forbidden",u[u.NotFound=404]="NotFound",u[u.MethodNotAllowed=405]="MethodNotAllowed",u[u.NotAcceptable=406]="NotAcceptable",u[u.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",u[u.RequestTimeout=408]="RequestTimeout",u[u.Conflict=409]="Conflict",u[u.Gone=410]="Gone",u[u.TooManyRequests=429]="TooManyRequests",u[u.InternalServerError=500]="InternalServerError",u[u.NotImplemented=501]="NotImplemented",u[u.BadGateway=502]="BadGateway",u[u.ServiceUnavailable=503]="ServiceUnavailable",u[u.GatewayTimeout=504]="GatewayTimeout",(c=a=e.exports.Headers||(e.exports.Headers={})).Accept="accept",c.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&&(thi
${t}`,iV=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),iX=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),iz=(e,t,r)=>{let n=""===r?"":`with${r.trim()}()`,i=iq.bind(null,n,t.toString());Object.defineProperty(i,"name",iX),Object.defineProperty(e,"toString",{...iV,value:i});},iW=new WeakMap(),iK=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(iW.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`);returnr;};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(letnofReflect.ownKeys(t))iG(e,t,n,r);iH(e,t),iz(e,t,n);}(o,e),iW.set(o,n),o;};iK.callCount=e=>{if(!iW.has(e))throwError(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);returniW.get(e);},rB=iK;constiY=()=>Array.from({length:iZ-iJ+1},iQ),iQ=(e,t)=>({name:"SIGRT"+(t+1),number:iJ+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),iJ=34,iZ=64,i0=[{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:"t
${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=c,n.killed=p&&!l,n;},i9=["stdin","stdout","stderr"],i7=e=>i9.some(t=>void 0!==e[t]),oe=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return i9.map(t=>e[t]);if(i7(e))throw Error("It's not possible to provide `stdio` in combination with one of "+i9.map(e=>`\`${e}\``).join(", "));if("string"==typeoft)returnt;if(!Array.isArray(t))throwTypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeoft}\``);returnArray.from({length:Math.max(t.length,i9.length)},(e,r)=>t[r]);};rH={};constot=function(e){returne&&"object"==typeofe&&"function"==typeofe.removeListener&&"function"==typeofe.emit&&"function"==typeofe.reallyExit&&"function"==typeofe.listeners&&"function"==typeofe.kill&&"number"==typeofe.pid&&"function"==typeofe.on;};if(ot(rq=rf.process)){varor,on=t6,oi=rv("dVIKq"),oo=/^win/i.test(rq.platform),os=t3;"function"!=typeofos&&(os=os.EventEmitter),rq.__signal_exit_emitter__?or=rq.__signal_exit_emitter__:((or=rq.__signal_exit_emitter__=newos()).count=0,or.emitted={}),or.infinite||(or.setMaxListeners(1/0),or.infinite=!0);varoa=function(){oc&&ot(rf.process)&&(oc=!1,oi.forEach(function(e){try{rq.removeListener(e,ou[e]);}catch(e){}}),rq.emit=oh,rq.reallyExit=od,or.count-=1);};(rH=function(e,t){if(!ot(rf.process))returnfunction(){};on.equal(typeofe,"function","a callback must be provided for exit handler"),!1===oc&&op();varr="exit";returnt&&t.alwaysLast&&(r="afterexit"),or.on(r,e),function(){or.removeListener(r,e),0===or.listeners("exit").length&&0===or.listeners("afterexit").length&&oa();};}).unload=oa;varol=function(e,t,r){or.emitted[e]||(or.emitted[e]=!0,or.emit(e,t,r));},ou={};oi.forEach(function(e){ou[e]=function(){ot(rf.process)&&rq.listeners(e).length===or.count&&(oa(),ol("exit",null,e),ol("afterexit",null,e),oo&&"SIGHUP"===e&&(e="SIGINT"),rq.kill(rq.pid,e));};}),rH.signals=function(){returnoi;};varoc=!1,op=function(){!oc&&ot(rf.process)&&(oc=!0,or.count+=1,oi=oi.filter(function(e){try{returnrq.on(e,ou[e]),!0;}catch(e){return!1;}}),rq.emit=om,rq.reallyExit=of);};rH.load=op;varod=rq.reallyExit,of=function(e){ot(rf.process)&&(rq.exitCode=e||0,ol("exit",rq.exitCode,null),ol("afterexit",rq.exitCode,null),od.call(rq,rq.exitCode));},oh=rq.emit,om=function(e,t){if(!("exit"===e&&ot(rf.process)))returnoh.apply(this,arguments);void0!==t&&(rq.exitCode=t);varr=oh.apply(this,arguments);returnol("exit",rq.exitCode,null),ol("afterexit",rq.exitCode,null),r;};}elserH=function(){returnfunction(){};};constov=(e,t="SIGTERM",r={})=>{letn=e(t);returnog(e,t,r,n),n;},og=(e,t,r,n)=>{if(!oE(t,r,n))return;leti=setTimeout(()=>{e("SIGKILL");},ow(r));i.unref&&i.unref();},oE=(e,{forceKillAfterTimeout:t},r)=>oy(e)&&!1!==t&&r,oy=e=>e===u(rt).constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),ow=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return5e3;if(!Number.isFinite(e)||e<0)throwTypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);returne;},ox=(e,t)=>{e.kill()&&(t.isCanceled=!0);},ob=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},oI=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{leti;return0===t||void0===t?n:Promise.race([newPromise((n,o)=>{i=setTimeout(()=>{ob(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},oS=({timeout:e})=>{if(void0!==e&&(!Number.isFinite(e)||e<0))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);},oR=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)returnn;leti=u(rH)(()=>{e.kill();});returnn.finally(()=>{i();});},oO=e=>einstanceofri.ChildProcess&&"function"==typeofe.then,oT=(e,t,r)=>{if("string"==typeofr)returne[t].pipe((0,t5.createWriteStream)(r)),e;if(y
`);},o4=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...u(ro).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},o3=(e,t,r={})=>{let n=u(r_)._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||u(ro).cwd(),execPath:u(ro).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oZ,...r}).env=o4(r),r.stdio=oe(r),"win32"===u(ro).platform&&"cmd"===u(rn).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},o6=(e,t,r)=>"string"==typeof t||(0,rr.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",o8=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},o5=(e={})=>({preferLocal:!0,...o8(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,o5(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,o5(t));},r;}();const o9={stdio:"inherit",shell:!0};ry=rv("hHq4F"),rJ={},rZ=rv("coVwk"),r0=rc.env.npm_package_json,r2=!!((r1=rc.env.npm_config_user_agent)&&r1.startsWith("npm")),r4=!!(r0&&r0.endsWith("package.json")),r3=!!(r1&&r1.startsWith("yarn")),r6=r2||r4||r3,r8=nX.homedir(),r5=process.env.XDG_CONFIG_HOME||nz.join(r8,".config","simple-update-notifier"),r9=function(e){return nz.join(r5,"".concat(e.replace("@","").replace("/","__"),".json"));},r7=function(){nW.existsSync(r5)||nW.mkdirSync(r5,{recursive:!0});},ne=function(e){var t=r9(e);try{if(!nW.existsSync(t))return;return JSON.parse(nW.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},nt=function(e){var t=r9(e);nW.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},nr=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:var l;if(r7(),e=ne(t.name),!(s||!e||e<new Date().getTime()-n))return[3,2];return[4,(l=t.name,$(void 0,void 0,void 0,function(){var e;return _(this,function(t){return e="https://registry.npmjs.org/-/package/".concat(l,"/dist-tags"),[2,new Promise(function(t,r){nQ.get(e,function(e){var n="";e.on("data",function(e){return n+=e;}),e.on("end",function(){try{var e=JSON.parse(n)[o];e||r(Error("Error getting version")),t(e);}catch(e){r(Error("Could not parse version response"));}});}).on("error",function(e){return r(e);});})];});}))];case 1:if(r=i.sent(),nt(t.name),rZ.gt(r,t.version))return[2,r];return a&&console.error("Latest version (".concat(r,") not newer than current version (").concat(t.version,")")),[3,3];case 2:a&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(n,"ms but only ").concat(new Date().getTime()-e,"ms since last check.")),i.label=3;case 3:return[2,!1];}});});},nn=function(e){for(var t=e.split("\n"),r=Math.max.apply(Math,t.map(function(e){return e.length;})),n=["┌".concat("─".repeat(r+2),"┐")],i=0;i<t.length;i++){var o=t[i];n.push("│ ".concat(o.padEnd(r)," │"));}return n.push("└".concat("─".repeat(r+2),"┘")),n.join("\n");},rJ=function(e){return $(void 0,void 0,void 0,function(){var t,r;return _(this,function(n){switch(n.label){case 0:if(!e.alwaysRun&&(!process.stdout.isTTY||r6&&!e.shouldNotifyInNpmScript))return e.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,nr(e)];case 2:return(t=n.sent())&&console.error(nn("New version of ".concat(e.pkg.name," available!\nCurrent Version: ").concat(e.pkg.version,"\nLatest Version: ").concat(t))),[3,4];case 3:return r=n.sent(),e.debug&&r instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",r),[3,4];case 4:return[2];}});});},ni={},ni=JSON.parse('{"name":"setup-cpp","version":"0.36.1"}'),no=rv("1o3Gj"),ry=rv("hHq4F"),rE=rv("dAuy6"),no=rv("1o3Gj"),rE=rv("dAuy6"),ry=r
${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=u,n.killed=c&&!l,n;},st=["stdin","stdout","stderr"],sr=e=>st.some(t=>void 0!==e[t]),sn=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return st.map(t=>e[t]);if(sr(e))throw Error("It's not possible to provide `stdio` in combination with one of "+st.map(e=>`\`${e}\``).join(", "));if("string"==typeoft)returnt;if(!Array.isArray(t))throwTypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeoft}\``);returnArray.from({length:Math.max(t.length,st.length)},(e,r)=>t[r]);},si=(e,t="SIGTERM",r={})=>{letn=e(t);returnso(e,t,r,n),n;},so=(e,t,r,n)=>{if(!ss(t,r,n))return;leti=setTimeout(()=>{e("SIGKILL");},sl(r));i.unref&&i.unref();},ss=(e,{forceKillAfterTimeout:t},r)=>sa(e)&&!1!==t&&r,sa=e=>e===u(rt).constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),sl=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return5e3;if(!Number.isFinite(e)||e<0)throwTypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);returne;},su=(e,t)=>{e.kill()&&(t.isCanceled=!0);},sc=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},sp=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{leti;return0===t||void0===t?n:Promise.race([newPromise((n,o)=>{i=setTimeout(()=>{sc(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},sd=({timeout:e})=>{if(void0!==e&&(!Number.isFinite(e)||e<0))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);},sf=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)returnn;leti=u(rH)(()=>{e.kill();});returnn.finally(()=>{i();});},sh=e=>einstanceofri.ChildProcess&&"function"==typeofe.then,sm=(e,t,r)=>{if("string"==typeofr)returne[t].pipe((0,t5.createWriteStream)(r)),e;if(y(r))returne[t].pipe(r),e;if(!sh(r))throwTypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throwTypeError("The target child process's stdin must be available.");returne[t].pipe(r.stdin),r;},sv=e=>{null!==e.stdout&&(e.pipeStdout=sm.bind(void0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=sm.bind(void0,e,"stderr")),void0!==e.all&&(e.pipeAll=sm.bind(void0,e,"all"));},sg=e=>{if(void0!==e)throwTypeError("The `input` and `inputFile` options cannot be both set.");},sE=({input:e,inputFile:t})=>"string"!=typeoft?e:(sg(e),(0,t5.readFileSync)(t)),sy=e=>{lett=sE(e);if(E(t))throwTypeError("The `input` option cannot be a stream in sync mode");returnt;},sw=({input:e,inputFile:t})=>"string"!=typeoft?e:(sg(e),(0,t5.createReadStream)(t)),sx=(e,t)=>{letr=sw(t);void0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},sb=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;letr=u(rY)();returne.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},sI=async(e,t)=>{if(e&&void0!==t){e.destroy();try{returnawaitt;}catch(e){returne.bufferedData;}}},sS=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)returnt?u(rV)(e,{encoding:t,maxBuffer:n}):u(rV).buffer(e,{maxBuffer:n});},sR=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{leta=sS(e,{encoding:n,buffer:i,maxBuffer:o}),l=sS(t,{encoding:n,buffer:i,maxBuffer:o}),u=sS(r,{encoding:n,buffer:i,maxBuffer:2*o});try{returnawaitPromise.all([s,a,l,u]);}catch(n){returnPromise.all([{error:n,signal:n.signal,timedOut:n.timedOut},sI(e,a),sI(t,l),sI(r,u)]);}},sO=(async()=>{})().constructor.prototype,sT=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(sO,e)]),sA=(e,t)=>{for(let[r,n]ofsT){leti="function"==typeoft?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},sC=e=>newPromise((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)
`);},sB=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...u(ro).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},sH=(e,t,r={})=>{let n=u(r_)._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||u(ro).cwd(),execPath:u(ro).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sj,...r}).env=sB(r),r.stdio=sn(r),"win32"===u(ro).platform&&"cmd"===u(rn).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},sq=(e,t,r)=>"string"==typeof t||(0,rr.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",sV=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sX=(e={})=>({preferLocal:!0,...sV(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=sU(n,i);return L(o,s,sX(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]=sU(e,r);return function(e,t,r){let n;let i=sH(e,t,r),o=sP(e,t),s=sN(e,t);sG(s,i.options);let a=sy(i.options);try{n=u(ri).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw se({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=sq(i.options,n.stdout,n.error),c=sq(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=se({stdout:l,stderr:c,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:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(n,i,sX(t));},r;}(),ns={};const sz="win32"!==nX.platform(),sW=nX.release(),sK=(e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184;ns=function(e){return sz?e.replace(/(\s+)/g,"\\$1"):sK(.../(\d+\.\d+)\.(\d+)/.exec(sW).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=rv("8CJZb"),t=function(e){return e.split("").reverse().join("");},na=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(na={}),nl=rv("6t4SD");const sY={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},sQ=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],sJ=C(".cpprc");let sZ=!1;nl=rv("6t4SD"),nu=rv("f44Uw"),ry=rv("hHq4F");const{appendFile:s0}=nW.promises;let s1=!1,s2=!1;const s4=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(t1=nc||(nc={}))[t1.NameDashVersion=0]="NameDashVersion",t1[t1.NameEqualsVersion=1]="NameEqualsVersion",t1[t1.Name=2]="Name",t1[t1.None=3]="None",no=rv("1o3Gj"),np=rv("eAXk4"),np=rv("eAXk4"),nd=rv("zdagz");let s3=!1;nl=rv("6t4SD"),np=rv("eAXk4"),ry=rv("hHq4F");let s6=!1;ry=rv("hHq4F"),ry=rv("hHq4F");let s8=!1,s5=!1;const s9=/Version\s*:\s*(.*)/g;nf={},nh=nz.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),nm=nf&&nf.__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];}),nv=nf&&nf.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),ng=nf&&nf.__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)&&nm(t,e,r);return nv(t,e),t;},nE=nf&&nf.__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());});},ny=nf&&nf.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(nf,"__esM