UNPKG

setup-cpp

Version:

Install all the tools required for building and testing C++/C projects.

2 lines 318 kB
#!/usr/bin/env node "use strict";function e(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}function t(e){return null==e?[]:Array.isArray(e)?e:[e]}function n(e,t,n,r){var i,o=e[t],s=~r.string.indexOf(t)?null==n||!0===n?"":n+"":"boolean"==typeof n?n:~r.boolean.indexOf(t)?"false"!==n&&("true"===n||(e._.push(0*(i=+n)==0?i:n),!!n)):0*(i=+n)==0?i:n;e[t]=null==o?s:Array.isArray(o)?o.concat(s):[o,s]}function r(e){return e&&e.__esModule&&{}.hasOwnProperty.call(e,"default")?e.default:e}function i(e){if({}.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function o(){return ai?si:(ai=1,si={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2})}function s(){if(ui)return ci;ui=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return ci=e}function a(){return li||(li=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=o(),a=s(),c=(t=e.exports={}).re=[],u=t.safeRe=[],l=t.src=[],f=t.safeSrc=[],p=t.t={};let d=0;const h="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[h,r]],y=(e,t,n)=>{const r=(e=>{for(const[t,n]of m)e=e.split(t+"*").join(`${t}{0,${n}}`).split(t+"+").join(`${t}{1,${n}}`);return e})(t),i=d++;a(e,i,t),p[e]=i,l[i]=t,f[i]=r,c[i]=RegExp(t,n?"g":void 0),u[i]=RegExp(r,n?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),y("MAINVERSION",`(${l[p.NUMERICIDENTIFIER]})\\.(${l[p.NUMERICIDENTIFIER]})\\.(${l[p.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[p.NUMERICIDENTIFIERLOOSE]})\\.(${l[p.NUMERICIDENTIFIERLOOSE]})\\.(${l[p.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[p.NONNUMERICIDENTIFIER]}|${l[p.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[p.NONNUMERICIDENTIFIER]}|${l[p.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${l[p.PRERELEASEIDENTIFIER]}(?:\\.${l[p.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[p.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",h+"+"),y("BUILD",`(?:\\+(${l[p.BUILDIDENTIFIER]}(?:\\.${l[p.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[p.MAINVERSION]}${l[p.PRERELEASE]}?${l[p.BUILD]}?`),y("FULL",`^${l[p.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[p.MAINVERSIONLOOSE]}${l[p.PRERELEASELOOSE]}?${l[p.BUILD]}?`),y("LOOSE",`^${l[p.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",l[p.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),y("XRANGEIDENTIFIER",l[p.NUMERICIDENTIFIER]+"|x|X|\\*"),y("XRANGEPLAIN",`[v=\\s]*(${l[p.XRANGEIDENTIFIER]})(?:\\.(${l[p.XRANGEIDENTIFIER]})(?:\\.(${l[p.XRANGEIDENTIFIER]})(?:${l[p.PRERELEASE]})?${l[p.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[p.XRANGEIDENTIFIERLOOSE]})(?:${l[p.PRERELEASELOOSE]})?${l[p.BUILD]}?)?)?`),y("XRANGE",`^${l[p.GTLT]}\\s*${l[p.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[p.GTLT]}\\s*${l[p.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),y("COERCE",l[p.COERCEPLAIN]+"(?:$|[^\\d])"),y("COERCEFULL",l[p.COERCEPLAIN]+`(?:${l[p.PRERELEASE]})?(?:${l[p.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",l[p.COERCE],!0),y("COERCERTLFULL",l[p.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[p.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${l[p.LONETILDE]}${l[p.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[p.LONETILDE]}${l[p.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[p.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${l[p.LONECARET]}${l[p.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[p.LONECARET]}${l[p.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[p.GTLT]}\\s*(${l[p.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[p.GTLT]}\\s*(${l[p.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[p.GTLT]}\\s*(${l[p.LOOSEPLAIN]}|${l[p.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[p.XRANGEPLAIN]})\\s+-\\s+(${l[p.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[p.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Vo,Vo.exports)),Vo.exports}function c(){if(pi)return fi;pi=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return fi=n=>n?"object"!=typeof n?e:n:t}function u(){if(hi)return di;hi=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),i=e.test(n);return r&&i&&(t=+t,n=+n),t===n?0:r&&!i?-1:i&&!r?1:n>t?-1:1};return di={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)}}function l(){if(yi)return mi;yi=1;const e=s(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=o(),{safeRe:r,t:i}=a(),l=c(),{compareIdentifiers:f}=u();class p{constructor(o,s){if(s=l(s),o instanceof p){if(o.loose===!!s.loose&&o.includePrerelease===!!s.includePrerelease)return o;o=o.version}else if("string"!=typeof o)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof o}".`);if(o.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",o,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;const a=o.trim().match(s.loose?r[i.LOOSE]:r[i.FULL]);if(!a)throw new TypeError("Invalid Version: "+o);if(this.raw=o,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>n||0>this.major)throw new TypeError("Invalid major version");if(this.minor>n||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>n||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=a[4]?a[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&n>t)return t}return e})):[],this.build=a[5]?a[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof p)){if("string"==typeof t&&t===this.version)return 0;t=new p(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof p||(e=new p(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)}comparePre(t){if(t instanceof p||(t=new p(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],i=t.prerelease[n];if(e("prerelease compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return f(r,i)}while(++n)}compareBuild(t){t instanceof p||(t=new p(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(e("build compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return f(r,i)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(t){const e=("-"+t).match(this.options.loose?r[i.PRERELEASELOOSE]:r[i.PRERELEASE]);if(!e||e[1]!==t)throw Error("invalid identifier: "+t)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===f(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error("invalid increment argument: "+e)}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this}}return mi=p}function f(){if(wi)return vi;wi=1;const e=l();return vi=(t,n,r=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(i){if(!r)return null;throw i}}}function p(){if(Ei)return gi;Ei=1;const e=f();return gi=(t,n)=>{const r=e(t,n);return r?r.version:null}}function d(){if(Pi)return xi;Pi=1;const e=l();return xi=(t,n)=>new e(t,n).major}function h(){if(Di)return ki;Di=1;const e=l();return ki=(t,n,r)=>new e(t,r).compare(new e(n,r))}function m(){if(Bi)return Gi;Bi=1;const e=l();return Gi=(t,n,r)=>{const i=new e(t,r),o=new e(n,r);return i.compare(o)||i.compareBuild(o)}}function y(){if(Xi)return Wi;Xi=1;const e=h();return Wi=(t,n,r)=>e(t,n,r)>0}function v(){if(Ki)return Yi;Ki=1;const e=h();return Yi=(t,n,r)=>0>e(t,n,r)}function w(){if(Qi)return Ji;Qi=1;const e=h();return Ji=(t,n,r)=>0===e(t,n,r)}function g(){if(eo)return Zi;eo=1;const e=h();return Zi=(t,n,r)=>0!==e(t,n,r)}function E(){if(no)return to;no=1;const e=h();return to=(t,n,r)=>e(t,n,r)>=0}function _(){if(io)return ro;io=1;const e=h();return ro=(t,n,r)=>0>=e(t,n,r)}function b(){if(so)return oo;so=1;const e=w(),t=g(),n=y(),r=E(),i=v(),o=_();return oo=(s,a,c,u)=>{switch(a){case"===":return"object"==typeof s&&(s=s.version),"object"==typeof c&&(c=c.version),s===c;case"!==":return"object"==typeof s&&(s=s.version),"object"==typeof c&&(c=c.version),s!==c;case"":case"=":case"==":return e(s,c,u);case"!=":return t(s,c,u);case">":return n(s,c,u);case">=":return r(s,c,u);case"<":return i(s,c,u);case"<=":return o(s,c,u);default:throw new TypeError("Invalid operator: "+a)}}}function S(){if(co)return ao;co=1;const e=l(),t=f(),{safeRe:n,t:r}=a();return ao=(i,o)=>{if(i instanceof e)return i;if("number"==typeof i&&(i+=""),"string"!=typeof i)return null;let s=null;if((o=o||{}).rtl){const e=o.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let t;for(;(t=e.exec(i))&&(!s||s.index+s[0].length!==i.length);)s&&t.index+t[0].length===s.index+s[0].length||(s=t),e.lastIndex=t.index+t[1].length+t[2].length;e.lastIndex=-1}else s=i.match(o.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);return null===s?null:t(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}${o.includePrerelease&&s[5]?"-"+s[5]:""}${o.includePrerelease&&s[6]?"+"+s[6]:""}`,o)}}function O(){if(po)return fo;po=1;const e=/\s+/g;class t{constructor(n,o){if(o=r(o),n instanceof t)return n.loose===!!o.loose&&n.includePrerelease===!!o.includePrerelease?n:new t(n.raw,o);if(n instanceof i)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){const 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(const t of this.set)if(1===t.length&&E(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;this.set.length>e;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;t.length>e;e++)e>0&&(this.formatted+=" "),this.formatted+=(""+t[e]).trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&v)|(this.options.loose&&w))+":"+e,r=n.get(t);if(r)return r;const o=this.options.loose;e=e.replace(o?p[d.HYPHENRANGELOOSE]:p[d.HYPHENRANGE],A(this.options.includePrerelease)),u("hyphen replace",e),e=e.replace(p[d.COMPARATORTRIM],h),u("comparator trim",e),e=e.replace(p[d.TILDETRIM],m),u("tilde trim",e),e=e.replace(p[d.CARETTRIM],y),u("caret trim",e);let s=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>$(e,this.options)));o&&(s=s.filter((e=>(u("loose invalid filter",e,this.options),!!e.match(p[d.COMPARATORLOOSE]))))),u("range list",s);const a=new Map,c=s.map((e=>new i(e,this.options)));for(const n of c){if(g(n))return[n];a.set(n.value,n)}a.size>1&&a.has("")&&a.delete("");const l=[...a.values()];return n.set(t,l),l}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>_(t,n)&&e.set.some((e=>_(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new f(e,this.options)}catch(t){return!1}for(let n=0;this.set.length>n;n++)if(L(this.set[n],e,this.options))return!0;return!1}}fo=t;const n=new(lo?uo:(lo=1,uo=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=c(),i=R(),u=s(),f=l(),{safeRe:p,t:d,comparatorTrimReplace:h,tildeTrimReplace:m,caretTrimReplace:y}=a(),{FLAG_INCLUDE_PRERELEASE:v,FLAG_LOOSE:w}=o(),g=e=>"<0.0.0-0"===e.value,E=e=>""===e.value,_=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},b=(e,t)=>(u("comp",e,t),e=x(e,t),u("caret",e),e=O(e,t),u("tildes",e),e=T(e,t),u("xrange",e),e=C(e,t),u("stars",e),e),S=e=>!e||"x"===e.toLowerCase()||"*"===e,O=(e,t)=>e.trim().split(/\s+/).map((e=>I(e,t))).join(" "),I=(e,t)=>e.replace(t.loose?p[d.TILDELOOSE]:p[d.TILDE],((t,n,r,i,o)=>{let s;return u("tilde",e,t,n,r,i,o),S(n)?s="":S(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:S(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(u("replaceTilde pr",o),s=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,u("tilde return",s),s})),x=(e,t)=>e.trim().split(/\s+/).map((e=>P(e,t))).join(" "),P=(e,t)=>{u("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?p[d.CARETLOOSE]:p[d.CARET],((t,r,i,o,s)=>{let a;return u("caret",e,t,r,i,o,s),S(r)?a="":S(i)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:S(o)?a="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(u("replaceCaret pr",s),a="0"===r?"0"===i?`>=${r}.${i}.${o}-${s} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${s} <${+r+1}.0.0-0`):(u("no pr"),a="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`),u("caret return",a),a}))},T=(e,t)=>(u("replaceXRanges",e,t),e.split(/\s+/).map((e=>N(e,t))).join(" ")),N=(e,t)=>(e=e.trim()).replace(t.loose?p[d.XRANGELOOSE]:p[d.XRANGE],((n,r,i,o,s,a)=>{u("xRange",e,n,r,i,o,s,a);const c=S(i),l=c||S(o),f=l||S(s);return"="===r&&f&&(r=""),a=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(l&&(o=0),s=0,">"===r?(r=">=",l?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),"<"===r&&(a="-0"),n=`${r+i}.${o}.${s}${a}`):l?n=`>=${i}.0.0${a} <${+i+1}.0.0-0`:f&&(n=`>=${i}.${o}.0${a} <${i}.${+o+1}.0-0`),u("xRange return",n),n})),C=(e,t)=>(u("replaceStars",e,t),e.trim().replace(p[d.STAR],"")),$=(e,t)=>(u("replaceGTE0",e,t),e.trim().replace(p[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),A=e=>(t,n,r,i,o,s,a,c,u,l,f,p)=>`${n=S(r)?"":S(i)?`>=${r}.0.0${e?"-0":""}`:S(o)?`>=${r}.${i}.0${e?"-0":""}`:s?">="+n:`>=${n}${e?"-0":""}`} ${c=S(u)?"":S(l)?`<${+u+1}.0.0-0`:S(f)?`<${u}.${+l+1}.0-0`:p?`<=${u}.${l}.${f}-${p}`:e?`<${u}.${l}.${+f+1}-0`:"<="+c}`.trim(),L=(e,t,n)=>{for(let r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;e.length>n;n++)if(u(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return fo}function R(){if(mo)return ho;mo=1;const e=Symbol();class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),u("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.value=this.semver===e?"":this.operator+this.semver.version,u("comp",this)}parse(t){const n=t.match(this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR]);if(!n)throw new TypeError("Invalid comparator: "+t);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),this.semver=n[2]?new f(n[2],this.options.loose):e}toString(){return this.value}test(t){if(u("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new f(t,this.options)}catch(n){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,r).test(this.value):""===e.operator?""===e.value||new p(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.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("="))&&!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}ho=t;const n=c(),{safeRe:r,t:i}=a(),o=b(),u=s(),f=l(),p=O();return ho}function I(){if(vo)return yo;vo=1;const e=O();return yo=(t,n,r)=>{try{n=new e(n,r)}catch(i){return!1}return n.test(t)}}function x(){if(To)return Po;To=1;const e=l(),t=R(),{ANY:n}=t,r=O(),i=I(),o=y(),s=v(),a=_(),c=E();return Po=(u,l,f,p)=>{let d,h,m,y,v;switch(u=new e(u,p),l=new r(l,p),f){case">":d=o,h=a,m=s,y=">",v=">=";break;case"<":d=s,h=c,m=o,y="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(u,l,p))return!1;for(let e=0;l.set.length>e;++e){let r=null,i=null;if(l.set[e].forEach((e=>{e.semver===n&&(e=new t(">=0.0.0")),r=r||e,i=i||e,d(e.semver,r.semver,p)?r=e:m(e.semver,i.semver,p)&&(i=e)})),r.operator===y||r.operator===v)return!1;if((!i.operator||i.operator===y)&&h(u,i.semver))return!1;if(i.operator===v&&m(u,i.semver))return!1}return!0}}function P(){if(Go)return Mo;Go=1;const e=a(),t=o(),n=l(),r=u(),i=f(),s=p(),c=function(){if(bi)return _i;bi=1;const e=f();return _i=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null}}(),P=function(){if(Oi)return Si;Oi=1;const e=l();return Si=(t,n,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new e(t instanceof e?t.version:t,r).inc(n,i,o).version}catch(s){return null}}}(),T=function(){if(Ii)return Ri;Ii=1;const e=f();return Ri=(t,n)=>{const r=e(t,null,!0),i=e(n,null,!0),o=r.compare(i);if(0===o)return null;const s=o>0,a=s?r:i,c=s?i:r,u=!!a.prerelease.length;if(c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(a))return c.minor&&!c.patch?"minor":"patch"}const l=u?"pre":"";return r.major!==i.major?l+"major":r.minor!==i.minor?l+"minor":r.patch!==i.patch?l+"patch":"prerelease"}}(),N=d(),C=function(){if(Ni)return Ti;Ni=1;const e=l();return Ti=(t,n)=>new e(t,n).minor}(),$=function(){if($i)return Ci;$i=1;const e=l();return Ci=(t,n)=>new e(t,n).patch}(),A=function(){if(Li)return Ai;Li=1;const e=f();return Ai=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null}}(),L=h(),k=function(){if(Ui)return ji;Ui=1;const e=h();return ji=(t,n,r)=>e(n,t,r)}(),D=function(){if(Mi)return Fi;Mi=1;const e=h();return Fi=(t,n)=>e(t,n,!0)}(),j=m(),U=function(){if(Hi)return qi;Hi=1;const e=m();return qi=(t,n)=>t.sort(((t,r)=>e(t,r,n)))}(),F=function(){if(zi)return Vi;zi=1;const e=m();return Vi=(t,n)=>t.sort(((t,r)=>e(r,t,n)))}(),M=y(),G=v(),B=w(),q=g(),H=E(),V=_(),z=b(),W=S(),X=R(),Y=O(),K=I(),J=function(){if(go)return wo;go=1;const e=O();return wo=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))}(),Q=function(){if(_o)return Eo;_o=1;const e=l(),t=O();return Eo=(n,r,i)=>{let o=null,s=null,a=null;try{a=new t(r,i)}catch(c){return null}return n.forEach((t=>{a.test(t)&&(o&&-1!==s.compare(t)||(o=t,s=new e(o,i)))})),o}}(),Z=function(){if(So)return bo;So=1;const e=l(),t=O();return bo=(n,r,i)=>{let o=null,s=null,a=null;try{a=new t(r,i)}catch(c){return null}return n.forEach((t=>{a.test(t)&&(o&&1!==s.compare(t)||(o=t,s=new e(o,i)))})),o}}(),ee=function(){if(Ro)return Oo;Ro=1;const e=l(),t=O(),n=y();return Oo=(r,i)=>{r=new t(r,i);let o=new e("0.0.0");if(r.test(o))return o;if(o=new e("0.0.0-0"),r.test(o))return o;o=null;for(let t=0;r.set.length>t;++t){let i=null;r.set[t].forEach((t=>{const r=new e(t.semver.version);switch(t.operator){case">":0===r.prerelease.length?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":i&&!n(r,i)||(i=r);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+t.operator)}})),!i||o&&!n(o,i)||(o=i)}return o&&r.test(o)?o:null}}(),te=function(){if(xo)return Io;xo=1;const e=O();return Io=(t,n)=>{try{return new e(t,n).range||"*"}catch(r){return null}}}(),ne=x(),re=function(){if(Co)return No;Co=1;const e=x();return No=(t,n,r)=>e(t,n,">",r)}(),ie=function(){if(Ao)return $o;Ao=1;const e=x();return $o=(t,n,r)=>e(t,n,"<",r)}(),oe=function(){if(ko)return Lo;ko=1;const e=O();return Lo=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),se=function(){if(jo)return Do;jo=1;const e=I(),t=h();return Do=(n,r,i)=>{const o=[];let s=null,a=null;const c=n.sort(((e,n)=>t(e,n,i)));for(const t of c)e(t,r,i)?(a=t,s||(s=t)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);const u=[];for(const[e,t]of o)u.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const l=u.join(" || ");return("string"==typeof r.raw?r.raw:r+"").length>l.length?l:r}}(),ae=function(){if(Fo)return Uo;Fo=1;const e=O(),t=R(),{ANY:n}=t,r=I(),i=h(),o=[new t(">=0.0.0-0")],s=[new t(">=0.0.0")],a=(e,t,a)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=a.includePrerelease?o:s}if(1===t.length&&t[0].semver===n){if(a.includePrerelease)return!0;t=s}const l=new Set;let f,p,d,h,m,y,v;for(const n of e)">"===n.operator||">="===n.operator?f=c(f,n,a):"<"===n.operator||"<="===n.operator?p=u(p,n,a):l.add(n.semver);if(l.size>1)return null;if(f&&p){if(d=i(f.semver,p.semver,a),d>0)return null;if(0===d&&(">="!==f.operator||"<="!==p.operator))return null}for(const n of l){if(f&&!r(n,f+"",a))return null;if(p&&!r(n,p+"",a))return null;for(const e of t)if(!r(n,e+"",a))return!1;return!0}let w=!(!p||a.includePrerelease||!p.semver.prerelease.length)&&p.semver,g=!(!f||a.includePrerelease||!f.semver.prerelease.length)&&f.semver;w&&1===w.prerelease.length&&"<"===p.operator&&0===w.prerelease[0]&&(w=!1);for(const n of t){if(v=v||">"===n.operator||">="===n.operator,y=y||"<"===n.operator||"<="===n.operator,f)if(g&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===g.major&&n.semver.minor===g.minor&&n.semver.patch===g.patch&&(g=!1),">"===n.operator||">="===n.operator){if(h=c(f,n,a),h===n&&h!==f)return!1}else if(">="===f.operator&&!r(f.semver,n+"",a))return!1;if(p)if(w&&n.semver.prerelease&&n.semver.prerelease.length&&n.semver.major===w.major&&n.semver.minor===w.minor&&n.semver.patch===w.patch&&(w=!1),"<"===n.operator||"<="===n.operator){if(m=u(p,n,a),m===n&&m!==p)return!1}else if("<="===p.operator&&!r(p.semver,n+"",a))return!1;if(!n.operator&&(p||f)&&0!==d)return!1}return!(f&&y&&!p&&0!==d||p&&v&&!f&&0!==d||g||w)},c=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return r>0?e:0>r||">"===t.operator&&">="===e.operator?t:e},u=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return 0>r?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};return Uo=(t,n,r={})=>{if(t===n)return!0;t=new e(t,r),n=new e(n,r);let i=!1;e:for(const e of t.set){for(const t of n.set){const n=a(e,t,r);if(i=i||null!==n,n)continue e}if(i)return!1}return!0}}();return Mo={parse:i,valid:s,clean:c,inc:P,diff:T,major:N,minor:C,patch:$,prerelease:A,compare:L,rcompare:k,compareLoose:D,compareBuild:j,sort:U,rsort:F,gt:M,lt:G,eq:B,neq:q,gte:H,lte:V,cmp:z,coerce:W,Comparator:X,Range:Y,satisfies:K,toComparators:J,maxSatisfying:Q,minSatisfying:Z,minVersion:ee,validRange:te,outside:ne,gtr:re,ltr:ie,intersects:oe,simplifyRange:se,subset:ae,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers}}function T(){return Zo||(Zo=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.toCommandProperties=rs.toCommandValue=void 0,rs.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},rs.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}function N(e){const t="https:"===e.protocol;if(function(e){if(!e.hostname)return!1;if(function(e){const 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;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let n;e.port?n=Number(e.port):"http:"===e.protocol?n=80:"https:"===e.protocol&&(n=443);const r=[e.hostname.toUpperCase()];"number"==typeof n&&r.push(`${r[0]}:${n}`);for(const i of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if("*"===i||r.some((e=>e===i||e.endsWith("."+i)||i.startsWith(".")&&e.endsWith(""+i))))return!0;return!1}(e))return;const n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new us(n)}catch{if(!n.startsWith("http://")&&!n.startsWith("https://"))return new us("http://"+n)}}function C(){if(Ts)return cs;Ts=1;var e=cs&&cs.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(cs,"__esModule",{value:!0}),cs.OidcClient=void 0;const t=xs,n=function(){if(Ps)return Us;Ps=1;var e=Us&&Us.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};return Object.defineProperty(Us,"__esModule",{value:!0}),Us.PersonalAccessTokenCredentialHandler=Us.BearerCredentialHandler=Us.BasicCredentialHandler=void 0,Us.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Us.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Us.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Us}(),r=D();class i{static createHttpClient(e=!0,r=10){const o={allowRetries:e,maxRetries:r};return new t.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(i.getRequestToken())],o)}static getRequestToken(){const 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(){const 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(t){var n;return e(this,void 0,void 0,(function*(){const e=i.createHttpClient(),r=yield e.getJson(t).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)})),o=null===(n=r.result)||void 0===n?void 0:n.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(t){return e(this,void 0,void 0,(function*(){try{let e=i.getIDTokenUrl();t&&(e=`${e}&audience=${encodeURIComponent(t)}`),(0,r.debug)("ID token url is "+e);const n=yield i.getCall(e);return(0,r.setSecret)(n),n}catch(e){throw Error("Error message: "+e.message)}}))}}return cs.OidcClient=i,cs}function $(){return Ns||(Ns=1,function(e){var t=Fs&&Fs.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const n=jr,r=Fr,{access:i,appendFile:o,writeFile:s}=r.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const a=new class{constructor(){this._buffer=""}filePath(){return t(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield i(t,r.constants.R_OK|r.constants.W_OK)}catch(n){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,n={}){const r=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${r}>${t}</${e}>`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),n=yield this.filePath(),r=t?s:o;return yield r(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()}))}clear(){return t(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(n.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t}),r=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){const n=t?"ol":"ul",r=e.map((e=>this.wrap("li",e))).join(""),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:n,colspan:r,rowspan:i}=e,o=t?"th":"td",s=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(o,n,s)})).join("");return this.wrap("tr",t)})).join(""),n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:r,height:i}=n||{},o=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){const n="h"+t,r=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t}),r=this.wrap("blockquote",e,n);return this.addRaw(r).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}};e.markdownSummary=a,e.summary=a}(Fs)),Fs}function A(){return $s||($s=1,function(e){function t(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var n,r=Vs&&Vs.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=Vs&&Vs.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=Vs&&Vs.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=Vs&&Vs.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getCmdPath=e.tryGetExecutablePath=e.isRooted=e.isDirectory=e.exists=e.READONLY=e.UV_FS_O_EXLOCK=e.IS_WINDOWS=e.unlink=e.symlink=e.stat=e.rmdir=e.rm=e.rename=e.readlink=e.readdir=e.open=e.mkdir=e.lstat=e.copyFile=e.chmod=void 0;const a=o(Fr),c=o(Ur);e.chmod=(n=a.promises).chmod,e.copyFile=n.copyFile,e.lstat=n.lstat,e.mkdir=n.mkdir,e.open=n.open,e.readdir=n.readdir,e.readlink=n.readlink,e.rename=n.rename,e.rm=n.rm,e.rmdir=n.rmdir,e.stat=n.stat,e.symlink=n.symlink,e.unlink=n.unlink,e.IS_WINDOWS="win32"===process.platform,e.UV_FS_O_EXLOCK=268435456,e.READONLY=a.constants.O_RDONLY,e.exists=function(t){return s(this,void 0,void 0,(function*(){try{yield e.stat(t)}catch(n){if("ENOENT"===n.code)return!1;throw n}return!0}))},e.isDirectory=function(t,n=!1){return s(this,void 0,void 0,(function*(){return(n?yield e.stat(t):yield e.lstat(t)).isDirectory()}))},e.isRooted=function(t){if(!(t=function(t){return t=t||"",e.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")}(t)))throw Error('isRooted() parameter "p" cannot be empty');return e.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.tryGetExecutablePath=function(n,r){return s(this,void 0,void 0,(function*(){let i;try{i=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(i&&i.isFile())if(e.IS_WINDOWS){const e=c.extname(n).toUpperCase();if(r.some((t=>t.toUpperCase()===e)))return n}else if(t(i))return n;const o=n;for(const a of r){n=o+a,i=void 0;try{i=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(i&&i.isFile()){if(e.IS_WINDOWS){try{const t=c.dirname(n),r=c.basename(n).toUpperCase();for(const i of yield e.readdir(t))if(r===i.toUpperCase()){n=c.join(t,i);break}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${n}': ${s}`)}return n}if(t(i))return n}}return""}))},e.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}(Vs)),Vs}function L(){function e(e){return c(this,void 0,void 0,(function*(){if(f.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield f.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(t){throw Error("File was unable to be removed "+t)}}))}function t(e){return c(this,void 0,void 0,(function*(){u.ok(e,"a path argument must be provided"),yield f.mkdir(e,{recursive:!0})}))}function n(e){return c(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(f.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(l.delimiter))e&&t.push(e);if(f.isRooted(e)){const n=yield f.tryGetExecutablePath(e,t);return n?[n]:[]}if(e.includes(l.sep))return[];const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(l.delimiter))e&&n.push(e);const r=[];for(const i of n){const n=yield f.tryGetExecutablePath(l.join(i,e),t);n&&r.push(n)}return r}))}function r(e,n,o,s){return c(this,void 0,void 0,(function*(){if(o>=255)return;o++,yield t(n);const a=yield f.readdir(e);for(const t of a){const a=`${e}/${t}`,c=`${n}/${t}`;(yield f.lstat(a)).isDirectory()?yield r(a,c,o,s):yield i(a,c,s)}yield f.chmod(n,(yield f.stat(e)).mode)}))}function i(e,t,n){return c(this,void 0,void 0,(function*(){if((yield f.lstat(e)).isSymbolicLink()){try{yield f.lstat(t),yield f.unlink(t)}catch(r){"EPERM"===r.code&&(yield f.chmod(t,"0666"),yield f.unlink(t))}const n=yield f.readlink(e);yield f.symlink(n,t,f.IS_WINDOWS?"junction":null)}else(yield f.exists(t))&&!n||(yield f.copyFile(e,t))}))}if(As)return Hs;As=1;var o=Hs&&Hs.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=Hs&&Hs.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=Hs&&Hs.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t},c=Hs&&Hs.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.findInPath=Hs.which=Hs.mkdirP=Hs.rmRF=Hs.mv=Hs.cp=void 0;const u=Xr,l=a(Ur),f=a(A());return Hs.cp=function(e,t,n={}){return c(this,void 0,void 0,(function*(){const{force:o,recursive:s,copySourceDirectory:a}=function(e){return{force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}}(n),c=(yield f.exists(t))?yield f.stat(t):null;if(c&&c.isFile()&&!o)return;const u=c&&c.isDirectory()&&a?l.join(t,l.basename(e)):t;if(!(yield f.exists(e)))throw Error("no such file or directory: "+e);if((yield f.stat(e)).isDirectory()){if(!s)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield r(e,u,0,o)}else{if(""===l.relative(e,u))throw Error(`'${u}' and '${e}' are the same file`);yield i(e,u,o)}}))},Hs.mv=function(n,r,i={}){return c(this,void 0,void 0,(function*(){if(yield f.exists(r)){let t=!0;if((yield f.isDirectory(r))&&(r=l.join(r,l.basename(n)),t=yield f.exists(r)),t){if(null!=i.force&&!i.force)throw Error("Destination already exists");yield e(r)}}yield t(l.dirname(r)),yield f.rename(n,r)}))},Hs.rmRF=e,Hs.mkdirP=t,Hs.which=function e(t,r){return c(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const n=yield e(t,!1);if(!n)throw Error(f.IS_WINDOWS?`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.`:`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 n}const i=yield n(t);return i&&i.length>0?i[0]:""}))},Hs.findInPath=n,Hs}function k(){function e(e,t,n){return i(this,void 0,void 0,(function*(){const r=s.argStringToArray(e);if(0===r.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const i=r[0];return t=r.slice(1).concat(t||[]),new s.ToolRunner(i,t,n).exec()}))}if(ks)return Bs;ks=1;var t=Bs&&Bs.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=Bs&&Bs.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Bs&&Bs.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=Bs&&Bs.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.getExecOutput=Bs.exec=void 0;const o=zr,s=r(function(){if(Ls)return qs;Ls=1;var e=qs&&qs.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=qs&&qs.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=qs&&qs.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=qs&&qs.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(qs,"__esModule",{value:!0}),qs.argStringToArray=qs.ToolRunner=void 0;const i=n(jr),o=n(Hr),s=n(Wr),a=n(Ur),c=n(L()),u=n(A()),l=Yr,f="win32"===process.platform;qs.ToolRunner=class extends o.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const n=this._getSpawnFileName(),r=this._getSpawnArgs(e);let i=t?"":"[command]";if(f)if(this._isCmdFile()){i+=n;for(const e of r)i+=" "+e}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(const e of r)i+=" "+e}else{i+=this._windowsQuoteCmdArg(n);for(const e of r)i+=" "+this._windowsQuoteCmdArg(e)}else{i+=n;for(const e of r)i+=" "+e}return i}_processLineBuffer(e,t,n){try{let r=t+""+e,o=r.indexOf(i.EOL);for(;o>-1;)n(r.substring(0,o)),r=r.substring(o+i.EOL.length),o=r.indexOf(i.EOL);return r}catch(r){return this._debug("error processing line. Failed with error "+r),""}}_getSpawnFileName(){return f&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(f&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const n of this.args)t+=" ",t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=!1;for(const o of e)if(t.some((e=>e===o))){n=!0;break}if(!n)return e;let r='"',i=!0;for(let o=e.length;o>0;o--)r+=e[o-1],i&&"\\"===e[o-1]?r+="\\":'"'===e[o-1]?(i=!0,r+='"'):i=!1;return r+='"',r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&"\\"===e[r-1]?t+="\\":'"'===e[r-1]?(n=!0,t+="\\"):n=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const 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){const n={};return n.cwd=(e=e||{}).cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return r(this,void 0,void 0,(function*(){return!u.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))&&(this.toolPath=a.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise(((e,t)=>r(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+i.EOL);const r=new p(n,this.toolPath);if(r.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield u.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const o=this._getSpawnFileName(),a=s.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o));let c="";a.stdout&&a.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),c=this._processLineBuffer(e,c,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(a.stderr&&a.stderr.on("data",(e=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),a.on("error",(e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()})),a.on("exit",(e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete()})),a.on("close",(e=>{r.processExitCode=e,r.processExited=!0,r.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),r.CheckComplete()})),r.on("done",((n,r)=>{c.length>0&&this.emit("stdline",c),l.length>0&&this.emit("errline",l),a.removeAllListeners(),n?t(n):e(r)})),this.options.input){if(!a.stdin)throw Error("child process missing stdin");a.stdin.end(this.options.input)}}))))}))}},qs.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1}const n=[];let r=!1,i=!1,o="";for(let s=0;e.length>s;s++){const a=e.charAt(s);'"'!==a?"\\"===a&&i?t(a):"\\"===a&&r?i=!0:" "!==a||r?t(a):o.length>0&&(n.push(o),o=""):i?t(a):r=!r}return o.length>0&&n.push(o.trim()),n};class p extends o.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=l.setTimeout(p.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){e.done||(!e.processClosed&&e.processExited&&e._debug(`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 s