functione(e){returne&&e.__esModule?e.default:e}functiona(e,a,t,i){Object.defineProperty(e,a,{get:t,set:i,enumerable:!0,configurable:!0})}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,*askfrom"https";import*asNfrom"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",((t,i)=>{asyncfunctions(a,t,i){vars;if(m.IS_WINDOWS||(null===(s=process.env.AGENT_TOOLSDIRECTORY)||void0===s?void0:s.trim())||(process.env.AGENT_TOOLSDIRECTORY=m.IS_LINUX?"/opt/hostedtoolcache":"/Users/runner/hostedtoolcache",process.env.RUNNER_TOOL_CACHE=process.env.AGENT_TOOLSDIRECTORY),(0,d.debug)("Python is expected to be installed into RUNNER_TOOL_CACHE="+process.env.RUNNER_TOOL_CACHE),a){lete;if(a.startsWith("pypy")){constt=await(0,n.findPyPyVersion)(a,i,!0);e=`${t.resolvedPyPyVersion}-${t.resolvedPythonVersion}`,(0,p.info)(`Successfully set up PyPy ${t.resolvedPyPyVersion} with Python (${t.resolvedPythonVersion})`)}else{constt=await(0,r.useCpythonVersion)(a,i,!0);e=t.version,(0,p.info)(`Successfully set up ${t.impl} (${e})`)}if((0,m.isCacheFeatureAvailable)()){consta="pip";await(async(e,a)=>{constt=(0,c.getCacheDistributor)(e,a,void0);awaitt.restoreCache()})(a,e)}}"github-actions"===e(l)()&&(()=>{conste=o.join(u,"python_matcher.json");if(!$hwYwi$existsSync(e))return(0,p.warning)("the python_matcher.json file does not exist in the same folder as setup_cpp.js");(0,p.info)("::add-matcher::"+e)})()}a(t.exports,"setupActionsPython",(()=>s));varr=z("lhZHd"),n=z("epYDv"),p=z("gLXeb"),d=z("gF2Jd"),l=z("ywN2f"),m=z("jfRjx"),c=z("20imy"),u=$hwYwi$resolve(__dirname,"../src/python")})),z.register("lhZHd",((e,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));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}}a(e.exports,"useCpythonVersion",(()=>i));varo=z("jfRjx"),s=z("dsEdn"),r=z("lDDM5"),n=z("gF2Jd"),p=z("8annq")})),z.register("jfRjx",((e,i)=>{functiono(e,a,i,o=!1){consts=$hwYwi$join(e,a),r=$hwYwi$join(e,i);t.existsSync(r)||(t.symlinkSync(s,r),!f&&o&&t.chmodSync(r,"755"))}functio