functione(e,a,t,i){Object.defineProperty(e,a,{get:t,set:i,enumerable:!0,configurable:!0})}functiona(e){returne&&e.__esModule?e.default:e}importt,*asifrom"fs";importo,*assfrom"path";importr,*asnfrom"os";importp,*asdfrom"util";import*aslfrom"assert";importm,*ascfrom"crypto";importu,{URLash,parseasg}from"url";import*asffrom"buffer";importy,*asbfrom"stream";importv,*asxfrom"http";importw,*asNfrom"https";import*askfrom"punycode";importSfrom"zlib";import{StringDecoderasj}from"string_decoder";import*asCfrom"events";import{setImmediateasT}from"timers";import{execSyncas_,execasP}from"child_process";varE="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:{},z=E.parcelRequire810d;z.register("doiKQ",((a,t)=>{asyncfunctioni(e,a,t){vari;if(l.IS_WINDOWS||(null===(i=process.env.AGENT_TOOLSDIRECTORY)||void0===i?void0:i.trim())||(process.env.AGENT_TOOLSDIRECTORY=l.IS_LINUX?"/opt/hostedtoolcache":"/Users/runner/hostedtoolcache",process.env.RUNNER_TOOL_CACHE=process.env.AGENT_TOOLSDIRECTORY),(0,p.debug)("Python is expected to be installed into RUNNER_TOOL_CACHE="+process.env.RUNNER_TOOL_CACHE),e){leta;if(e.startsWith("pypy")){consti=await(0,r.findPyPyVersion)(e,t,!0);a=`${i.resolvedPyPyVersion}-${i.resolvedPythonVersion}`,(0,n.info)(`Successfully set up PyPy ${i.resolvedPyPyVersion} with Python (${i.resolvedPythonVersion})`)}else{consti=await(0,s.useCpythonVersion)(e,t,!0);a=i.version,(0,n.info)(`Successfully set up ${i.impl} (${a})`)}if((0,l.isCacheFeatureAvailable)()){conste="pip";await(async(e,a)=>{constt=(0,m.getCacheDistributor)(e,a,void0);awaitt.restoreCache()})(e,a)}}(0,d.isGitHubCI)()&&(()=>{conste=o.join(c,"python_matcher.json");if(!$hwYwi$existsSync(e))return(0,n.warning)("the python_matcher.json file does not exist in the same folder as setup_cpp.js");(0,n.info)("::add-matcher::"+e)})()}e(a.exports,"setupActionsPython",(()=>i));vars=z("7nk62"),r=z("5Sr09"),n=z("81ovw"),p=z("gF2Jd"),d=z("8SW0l"),l=z("5wuRJ"),m=z("ipccU"),c=$hwYwi$resolve(__dirname,"../src/python")})),z.register("7nk62",((a,t)=>{asyncfunctioni(e,a,t){consti=e.replace(/^(\d+)\.(\d+)-dev$/,"~$1.$2.0-0").replace(/(\d+\.\d+\.\d+)((?:a|b|rc)\d*)/g,"$1-$2");n.debug(`Semantic version spec of ${e} is ${i}`);letd=p.find("Python",i,a);if(!d){n.info(`Version ${i} was not found in the local cache`);conste=awaitr.findReleaseFromManifest(i,a);e&&e.files&&e.files.length>0&&(n.info(`Version ${i} is available for downloading`),awaitr.installCpythonFromRelease(e),d=p.find("Python",i,a))}if(!d)throwError([`Version ${e} with arch ${a} not found`,"The list of all available versions can be found here: "+r.MANIFEST_URL].join($hwYwi$EOL));if(o.IS_LINUX){conste=process.env.LD_LIBRARY_PATH?":"+process.env.LD_LIBRARY_PATH:"",a=$hwYwi$join(d,"lib");e.split(":").includes(a)||n.exportVariable("LD_LIBRARY_PATH",a+e)}constl=(e=>o.IS_WINDOWS?$hwYwi$join(e,"Scripts"):$hwYwi$join(e,"bin"))(d),m=$hwYwi$join(o.IS_WINDOWS?d:l,"python"+(o.IS_WINDOWS?".exe":""));if(t){if(n.exportVariable("pythonLocation",d),n.exportVariable("PKG_CONFIG_PATH",d+"/lib/pkgconfig"),n.exportVariable("pythonLocation",d),n.exportVariable("Python_ROOT_DIR",d),n.exportVariable("Python2_ROOT_DIR",d),n.exportVariable("Python3_ROOT_DIR",d),n.exportVariable("PKG_CONFIG_PATH",d+"/lib/pkgconfig"),o.IS_LINUX){conste=process.env.LD_LIBRARY_PATH?":"+process.env.LD_LIBRARY_PATH:"",a=$hwYwi$join(d,"lib");e.split(":").includes(a)||n.exportVariable("LD_LIBRARY_PATH",a+e)}if(n.addPath(d),n.addPath(l),o.IS_WINDOWS){conste=$hwYwi$basename($hwYwi$dirname(d)),a=s.major(e),t=s.minor(e),i=$hwYwi$join(process.env.APPDATA||"","Python",`Python${a}${t}`,"Scripts");n.addPath(i)}}constc=(e=>{consta=e.split($hwYwi$sep),t=a.findIndex((e=>"PyPy"===e||"Python"===e));returna[t+1]||""})(d);returnn.setOutput("python-version",c),n.setOutput("python-path",m),{impl:"CPython",version:c}}e(a.exports,"useCpythonVersion",(()=>i));varo=z("5wuRJ"),s=z("dsEdn"),r=z("8Q7nk"),n=z("gF2Jd"),p=z("8annq")})),