{"version":3,"file":"actions_python.3180bacb.js","names":["u","e","startsWith","p","t","o","l","h","IS_MAC","process","env","AGENT_TOOLSDIRECTORY","c","trim","RUNNER_TOOL_CACHE","n","debug","r","i","findPyPyVersion","d","resolvedPyPyVersion","resolvedPythonVersion","s","info","useCpythonVersion","version","impl","cacheDependencies","parcelRequire","a","GITHUB_ACTIONS","f","join","pathExists","warning","IS_WINDOWS","$kC5q1$path","y","m","g","getManifest","findReleaseFromManifest","x","find","files","length","installCpythonFromRelease","getOSInfo","Error","osName","osVersion","MANIFEST_URL","$kC5q1$os","EOL","w","b","v","exportVariable","IS_LINUX","LD_LIBRARY_PATH","split","includes","addPath","basename","dirname","major","minor","APPDATA","S","setOutput","replace","sep","findIndex","$parcel$interopDefault","$kC5q1$fs","existsSync","symlinkSync","chmodSync","validRange","readFileSync","toString","writeFileSync","test","stdout","getExecOutput","silent","message","platform","exports","async","stream","prettyError","$parcel$global","Buffer","isBuffer","parse","finish","_custom","isDigit","CHAR_0","CHAR_9","isHexit","CHAR_A","CHAR_F","CHAR_a","CHAR_f","isBit","CHAR_1","isOctit","CHAR_7","isAlphaNumQuoteHyphen","CHAR_Z","CHAR_z","CHAR_APOS","CHAR_QUOT","CHAR_LOWBAR","CHAR_HYPHEN","isAlphaNumHyphen","hasKey","hasOwnProperty","call","defineProperty","descriptor","InlineTable","Object","defineProperties","_type","value","INLINE_TABLE","isInlineTable","Table","TABLE","_declared","writable","isTable","InlineList","INLINE_LIST","_contentType","isInlineList","List","LIST","isList","Integer","is","BigInt","Number","isSafeInteger","BoxedBigInt","isNaN","INTEGER","_inspect","isInteger","Float","FLOAT","isFloat","tomlType","Date","makeParserClass","constructor","ctx","obj","atEndOfWord","char","CHAR_NUM","CTRL_I","CHAR_SP","atEndOfLine","END","CTRL_J","CTRL_M","parseStart","CHAR_LSQB","parseTableOrList","parseComment","callNow","parseAssignStatement","error","TomlError","parseWhitespaceToEOL","goto","return","parseAssign","recordAssignStatement","key","pop","valueOf","parseKeyword","recordAssignKeyword","state","resultTable","push","parseAssignKeywordPreDot","CHAR_PERIOD","next","parseAssignKeywordPostDot","parseAssignEqual","CHAR_EQUALS","parseAssignPreValue","parseValue","recordAssignValue","returnNow","nextChar","parseTable","parseList","parseTableNext","parseTableMore","CHAR_RSQB","parseListNext","parseListMore","parseListEnd","parseDoubleString","parseSingleString","CHAR_PLUS","parseNumberSign","CHAR_i","parseInf","CHAR_n","parseNan","parseNumberOrDateTime","CHAR_t","parseBoolean","parseInlineList","recordValue","CHAR_LCUB","parseInlineTable","parseInf2","buf","parseNan2","NaN","parseBasicString","parseLiteralString","parseBareKey","consume","parseLiteralMultiStringMaybe","CHAR_DEL","CTRL_CHAR_BOUNDARY","errorControlCharInString","parseLiteralMultiString","parseLiteralMultiStringContent","parseLiteralMultiEnd","parseLiteralMultiEnd2","parseMultiStringMaybe","CHAR_BSOL","parseEscape","recordEscapeReplacement","parseMultiString","parseMultiStringContent","parseMultiEscape","recordMultiEscapeReplacement","parseMultiEnd","parseMultiEnd2","parseMultiTrim","parsePreMultiTrim","escapes","CHAR_u","parseSmallUnicode","parseUnicodeReturn","CHAR_U","parseLargeUnicode","parseInt","SURROGATE_FIRST","SURROGATE_LAST","String","fromCodePoint","wrap","parseMaybeSignedInfOrNan","parseNoUnder","parseNumberIntegerStart","parseNumberIntegerExponentOrDecimal","parseNumberInteger","parseNumberFloat","CHAR_E","CHAR_e","parseNumberExponentSign","parseNoUnderHexOctBinLiteral","parseNumberExponent","parseNumberBaseOrDateTime","parseNumberOrDateTimeOnly","parseDateTime","CHAR_COLON","parseOnlyTimeHour","parseDateTimeOnly","CHAR_b","parseIntegerBin","CHAR_o","parseIntegerOct","CHAR_x","parseIntegerHex","result","parseDateMonth","parseDateDay","CHAR_T","parseStartTimeHour","$51zGI","parseTimeHour","parseTimeMin","parseTimeSec","parseTimeZoneOrFraction","parseOnlyTimeMin","parseOnlyTimeSec","parseOnlyTimeFractionMaybe","$8bnbQ","parseOnlyTimeFraction","parseDateTimeFraction","parseTimeZoneHour","$4HTEH","$biA0C","parseTimeZoneSep","parseTimeZoneMin","parseTrue_r","parseFalse_a","CHAR_r","parseTrue_u","parseTrue_e","parseFalse_l","CHAR_l","parseFalse_s","CHAR_s","parseFalse_e","resultArr","recordInlineListValue","parseInlineListNext","CHAR_COMMA","CHAR_RCUB","recordInlineTableValue","parseInlineTableNext","module","name","captureStackTrace","fromTOML","wrapped","code","Symbol","prototype","configurable","enumerable","utilInspect","eval","custom","_","asIntN","parser","returned","pos","col","line","stack","_buf","ii","runOne","codePointAt","haveBuffer","JSON","stringify","TypeError","isFloating","toISOString","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","isDate","isTime","Math","min","max","slice","setImmediate","blocksize","Promise","setEncoding","read","once","$kC5q1$stream","Transform","objectMode","transform","emit","flush","toJSON","keys","filter","Array","isArray","forEach","I","map","T","E","O","P","every","N","A","C","findFromManifest","getManifestFromRepo","cwd","listeners","stderr","exec","download_url","downloadTool","extractZip","extractTar","HTTPError","httpStatusCode","getInput","L","W","default","M","mkdirP","$","R","RetryHelper","execute","B","U","F","HttpClient","J","allowRetries","authorization","get","statusCode","statusMessage","q","promisify","H","pipeline","createWriteStream","rmRF","$kC5q1$assert","ok","G","chdir","isDebug","D","which","ignoreReturnCode","toUpperCase","Z","unshift","k","clean","V","arch","statSync","isDirectory","readdirSync","cp","recursive","isFile","getJson","tree","path","url","accept","readBody","j","_findMatch","valid","sort","gt","satisfies","RUNNER_TEMP","from","Set","$kC5q1$util","setPrototypeOf","new","target","extract7z","extractXar","cacheDir","cacheFile","findAllVersions","isExplicitVersion","evaluateVersions","stable","platform_version","_getOsVersion","assign","$kC5q1$child_process","execSync","_readLinuxVersionFile","getProxyUrl","URL","href","protocol","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","HttpCodes","Accept","ContentType","Headers","ApplicationJson","MediaTypes","HttpClientError","alloc","on","concat","HttpClientResponse","isHttps","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","userAgent","handlers","requestOptions","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","keepAlive","maxRetries","options","request","del","post","patch","put","head","sendStream","_getExistingOrDefaultHeader","_processResponse","postJson","putJson","patchJson","_prepareRequest","indexOf","requestRaw","canHandleAuthentication","handleAuthentication","headers","location","hostname","toLowerCase","_performExponentialBackoff","dispose","_agent","destroy","requestRawWithCallback","byteLength","httpModule","setTimeout","end","write","pipe","getAgent","_getAgent","parsedUrl","$kC5q1$https","$kC5q1$http","host","port","pathname","search","method","_mergeHeaders","agent","prepareRequest","reduce","_proxyAgent","maxSockets","globalAgent","proxy","username","password","proxyAuth","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","pow","dateTimeDeserializer","deserializeDates","https_proxy","HTTPS_PROXY","http_proxy","HTTP_PROXY","no_proxy","NO_PROXY","some","checkBypass","maxAttempts","minSeconds","floor","maxSeconds","getSleepAmount","sleep","random","getAvailablePyPyVersions","findRelease","pythonVersion","pypyVersion","installDir","installPyPy","getPyPyBinaryPath","getPyPyVersionFromPath","readExactPyPyVersionFile","splice","pypyVersionToSemantic","validateVersion","validatePythonVersionFormatForPyPy","WINDOWS_ARCHS","foundAsset","isNightlyKeyword","writeExactPyPyVersionFile","coerce","createSymlinkInFolder","includePrerelease","python_version","pypy_version","compare","WINDOWS_PLATFORMS","resolve","require","then"],"sources":["../../","../../src/python/actions_python.ts","../../node_modules/.pnpm/github.com+aminya+setup-python@a783db655c6e40317e2c0c96f9d162d9c9f4a751/node_modules/setup-python/src/find-python.ts","../../node_modules/.pnpm/github.com+aminya+setup-python@a783db655c6e40317e2c0c96f9d162d9c9f4a751/node_modules/setup-python/src/utils.ts","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/toml.js","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse.js","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-string.js","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/toml-parser.js","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/parser.js","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime.js","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-datetime-float.js","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/format-num.js","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-date.js","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/lib/create-time.js","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-pretty-error.js","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-async.js","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/parse-stream.js","../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/stringify.js","../../node_modules/.pnpm/github.com+aminya+setup-python@a783db655c6e40317e2c0c96f9d162d9c9f4a751/node_modules/setup-python/src/install-python.ts","../../node_modules/.pnpm/@actions+tool-cache@1.7.2/node_modules/@actions/tool-cache/lib/tool-cache.js","../../node_modules/.pnpm/@actions+tool-cache@1.7.2/node_modules/@actions/tool-cache/src/tool-cache.ts","../../node_modules/.pnpm/@actions+tool-cache@1.7.2/node_modules/@actions/tool-cache/lib/manifest.js","../../node_modules/.pnpm/@actions+tool-cache@1.7.2/node_modules/@actions/tool-cache/src/manifest.ts","../../node_modules/.pnpm/@actions+http-client@1.0.11/node_modules/@actions/http-client/index.js","../../node_modules/.pnpm/@actions+http-client@1.0.11/node_modules/@actions/http-client/proxy.js","../../node_modules/.pnpm/@actions+tool-cache@1.7.2/node_modules/@actions/tool-cache/lib/retry-helper.js","../../node_modules/.pnpm/@actions+tool-cache@1.7.2/node_modules/@actions/tool-cache/src/retry-helper.ts","../../node_modules/.pnpm/github.com+aminya+setup-python@a783db655c6e40317e2c0c96f9d162d9c9f4a751/node_modules/setup-python/src/find-pypy.ts","../../node_modules/.pnpm/github.com+aminya+setup-python@a783db655c6e40317e2c0c96f9d162d9c9f4a751/node_modules/setup-python/src/install-pypy.ts","../../node_modules/.pnpm/@parcel+runtime-js@2.9.3_@parcel+core@2.9.3/node_modules/@parcel/runtime-js/lib/runtime-ae5bd18c28109c0d.js"],"sourcesContent":["var $kC5q1$path = require(\"path\");\nvar $kC5q1$os = require(\"os\");\nvar $kC5q1$fs = require(\"fs\");\nvar $kC5q1$stream = require(\"stream\");\nvar $kC5q1$util = require(\"util\");\nvar $kC5q1$assert = require(\"assert\");\nvar $kC5q1$child_process = require(\"child_process\");\nvar $kC5q1$http = require(\"http\");\nvar $kC5q1$https = require(\"https\");\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\nvar $parcel$global =\ntypeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\nvar parcelRequire = $parcel$global[\"parcelRequire810d\"];\nparcelRequire.register(\"8L9T2\", function(module, exports) {\n\n$parcel$export(module.exports, \"setupActionsPython\", () => $00d4fba27c89d70b$export$5655ebf4048b68d5);\n\nvar $g8XlV = parcelRequire(\"g8XlV\");\n\nvar $49ncA = parcelRequire(\"49ncA\");\n\nvar $hHq4F = parcelRequire(\"hHq4F\");\n\nvar $2heqc = parcelRequire(\"2heqc\");\n\nvar $A8hFE = parcelRequire(\"A8hFE\");\n\nvar $cLprm = parcelRequire(\"cLprm\");\n\nvar $42Mcf = parcelRequire(\"42Mcf\");\n\nvar $3WkGD = parcelRequire(\"3WkGD\");\n\nvar $00d4fba27c89d70b$var$$parcel$__dirname = $kC5q1$path.resolve(__dirname, \"../../src/python\");\nfunction $00d4fba27c89d70b$var$isPyPyVersion(versionSpec) {\n return versionSpec.startsWith(\"pypy\");\n}\nconst $00d4fba27c89d70b$var$checkLatest = false;\n\nasync function $00d4fba27c89d70b$export$5655ebf4048b68d5(version, _setupDir, arch) {\n var _process_env_AGENT_TOOLSDIRECTORY;\n if (0, $42Mcf.IS_MAC) process.env.AGENT_TOOLSDIRECTORY = \"/Users/runner/hostedtoolcache\";\n const agent_toolsdirectory = (_process_env_AGENT_TOOLSDIRECTORY = process.env.AGENT_TOOLSDIRECTORY) === null || _process_env_AGENT_TOOLSDIRECTORY === void 0 ? void 0 : _process_env_AGENT_TOOLSDIRECTORY.trim();\n if (typeof agent_toolsdirectory === \"string\" && agent_toolsdirectory !== \"\") process.env.RUNNER_TOOL_CACHE = process.env.AGENT_TOOLSDIRECTORY;\n (0, $2heqc.debug)(`Python is expected to be installed into ${process.env.RUNNER_TOOL_CACHE}`);\n if (version) {\n let pythonVersion;\n if ($00d4fba27c89d70b$var$isPyPyVersion(version)) {\n const installed = await (0, $49ncA.findPyPyVersion)(version, arch, true, $00d4fba27c89d70b$var$checkLatest, false);\n pythonVersion = `${installed.resolvedPyPyVersion}-${installed.resolvedPythonVersion}`;\n (0, $hHq4F.info)(`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`);\n } else {\n const installed = await (0, $g8XlV.useCpythonVersion)(version, arch, true, $00d4fba27c89d70b$var$checkLatest, false);\n pythonVersion = installed.version;\n (0, $hHq4F.info)(`Successfully set up ${installed.impl} (${pythonVersion})`);\n }\n const cache = false;\n if (cache) {\n const { cacheDependencies: cacheDependencies } = await (parcelRequire(\"65Nuu\"));\n await cacheDependencies(\"pip\", pythonVersion);\n }\n }\n if (0, $cLprm.GITHUB_ACTIONS) await $00d4fba27c89d70b$var$addPythonLoggingMatcher();\n return undefined;\n}\nasync function $00d4fba27c89d70b$var$addPythonLoggingMatcher() {\n const matcherPath = (0, $A8hFE.join)($00d4fba27c89d70b$var$$parcel$__dirname, \"python_matcher.json\");\n if (!await (0, $3WkGD.pathExists)(matcherPath)) return (0, $hHq4F.warning)(\"the python_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $hHq4F.info)(`::add-matcher::${matcherPath}`);\n}\n\n});\nparcelRequire.register(\"g8XlV\", function(module, exports) {\n\n$parcel$export(module.exports, \"useCpythonVersion\", () => $d31f6b832c6d18d2$export$c90655100676e173);\n\n\n\nvar $42Mcf = parcelRequire(\"42Mcf\");\n\nvar $lqN0l = parcelRequire(\"lqN0l\");\n\nvar $xjYT4 = parcelRequire(\"xjYT4\");\n\nvar $2heqc = parcelRequire(\"2heqc\");\n\nvar $9aCWy = parcelRequire(\"9aCWy\");\n// Python has \"scripts\" or \"bin\" directories where command-line tools that come with packages are installed.\n// This is where pip is, along with anything that pip installs.\n// There is a separate directory for `pip install --user`.\n//\n// For reference, these directories are as follows:\n// macOS / Linux:\n// /bin (by default /usr/local/bin, but not on hosted agents -- see the `else`)\n// (--user) ~/.local/bin\n// Windows:\n// \\Scripts\n// (--user) %APPDATA%\\Python\\PythonXY\\Scripts\n// See https://docs.python.org/3/library/sysconfig.html\nfunction $d31f6b832c6d18d2$var$binDir(installDir) {\n if (0, $42Mcf.IS_WINDOWS) return $kC5q1$path.join(installDir, \"Scripts\");\n else return $kC5q1$path.join(installDir, \"bin\");\n}\nasync function $d31f6b832c6d18d2$export$c90655100676e173(version, architecture, updateEnvironment, checkLatest, allowPreReleases) {\n let manifest = null;\n const desugaredVersionSpec = $d31f6b832c6d18d2$var$desugarDevVersion(version);\n let semanticVersionSpec = $d31f6b832c6d18d2$export$2630b06843feee21(desugaredVersionSpec, allowPreReleases);\n $2heqc.debug(`Semantic version spec of ${version} is ${semanticVersionSpec}`);\n if (checkLatest) {\n var _ref;\n manifest = await $xjYT4.getManifest();\n const resolvedVersion = (_ref = await $xjYT4.findReleaseFromManifest(semanticVersionSpec, architecture, manifest)) === null || _ref === void 0 ? void 0 : _ref.version;\n if (resolvedVersion) {\n semanticVersionSpec = resolvedVersion;\n $2heqc.info(`Resolved as '${semanticVersionSpec}'`);\n } else $2heqc.info(`Failed to resolve version ${semanticVersionSpec} from manifest`);\n }\n let installDir = $9aCWy.find(\"Python\", semanticVersionSpec, architecture);\n if (!installDir) {\n $2heqc.info(`Version ${semanticVersionSpec} was not found in the local cache`);\n const foundRelease = await $xjYT4.findReleaseFromManifest(semanticVersionSpec, architecture, manifest);\n if (foundRelease && foundRelease.files && foundRelease.files.length > 0) {\n $2heqc.info(`Version ${semanticVersionSpec} is available for downloading`);\n await $xjYT4.installCpythonFromRelease(foundRelease);\n installDir = $9aCWy.find(\"Python\", semanticVersionSpec, architecture);\n }\n }\n if (!installDir) {\n const osInfo = await (0, $42Mcf.getOSInfo)();\n throw new Error([\n `The version '${version}' with architecture '${architecture}' was not found for ${osInfo ? `${osInfo.osName} ${osInfo.osVersion}` : \"this operating system\"}.`,\n `The list of all available versions can be found here: ${$xjYT4.MANIFEST_URL}`\n ].join($kC5q1$os.EOL));\n }\n const _binDir = $d31f6b832c6d18d2$var$binDir(installDir);\n const binaryExtension = (0, $42Mcf.IS_WINDOWS) ? \".exe\" : \"\";\n const pythonPath = $kC5q1$path.join((0, $42Mcf.IS_WINDOWS) ? installDir : _binDir, `python${binaryExtension}`);\n if (updateEnvironment) {\n $2heqc.exportVariable(\"pythonLocation\", installDir);\n $2heqc.exportVariable(\"PKG_CONFIG_PATH\", installDir + \"/lib/pkgconfig\");\n $2heqc.exportVariable(\"pythonLocation\", installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython\n $2heqc.exportVariable(\"Python_ROOT_DIR\", installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2\n $2heqc.exportVariable(\"Python2_ROOT_DIR\", installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3\n $2heqc.exportVariable(\"Python3_ROOT_DIR\", installDir);\n $2heqc.exportVariable(\"PKG_CONFIG_PATH\", installDir + \"/lib/pkgconfig\");\n if (0, $42Mcf.IS_LINUX) {\n const libPath = process.env.LD_LIBRARY_PATH ? `:${process.env.LD_LIBRARY_PATH}` : \"\";\n const pyLibPath = $kC5q1$path.join(installDir, \"lib\");\n if (!libPath.split(\":\").includes(pyLibPath)) $2heqc.exportVariable(\"LD_LIBRARY_PATH\", pyLibPath + libPath);\n }\n $2heqc.addPath(installDir);\n $2heqc.addPath(_binDir);\n if (0, $42Mcf.IS_WINDOWS) {\n // Add --user directory\n // `installDir` from tool cache should look like $RUNNER_TOOL_CACHE/Python//x64/\n // So if `findLocalTool` succeeded above, we must have a conformant `installDir`\n const version = $kC5q1$path.basename($kC5q1$path.dirname(installDir));\n const major = $lqN0l.major(version);\n const minor = $lqN0l.minor(version);\n const userScriptsDir = $kC5q1$path.join(process.env[\"APPDATA\"] || \"\", \"Python\", `Python${major}${minor}`, \"Scripts\");\n $2heqc.addPath(userScriptsDir);\n }\n // On Linux and macOS, pip will create the --user directory and add it to PATH as needed.\n }\n const installed = $d31f6b832c6d18d2$var$versionFromPath(installDir);\n $2heqc.setOutput(\"python-version\", installed);\n $2heqc.setOutput(\"python-path\", pythonPath);\n return {\n impl: \"CPython\",\n version: installed\n };\n}\n/** Convert versions like `3.8-dev` to a version like `~3.8.0-0`. */ function $d31f6b832c6d18d2$var$desugarDevVersion(versionSpec) {\n const devVersion = /^(\\d+)\\.(\\d+)-dev$/;\n return versionSpec.replace(devVersion, \"~$1.$2.0-0\");\n}\n/** Extracts python version from install path from hosted tool cache as described in README.md */ function $d31f6b832c6d18d2$var$versionFromPath(installDir) {\n const parts = installDir.split($kC5q1$path.sep);\n const idx = parts.findIndex((part)=>part === \"PyPy\" || part === \"Python\");\n return parts[idx + 1] || \"\";\n}\nfunction $d31f6b832c6d18d2$export$2630b06843feee21(versionSpec, allowPreReleases) {\n const prereleaseVersion = /(\\d+\\.\\d+\\.\\d+)((?:a|b|rc)\\d*)/g;\n const majorMinor = /^(\\d+)\\.(\\d+)$/;\n let result = versionSpec.replace(prereleaseVersion, \"$1-$2\");\n if (allowPreReleases) result = result.replace(majorMinor, \"~$1.$2.0-0\");\n return result;\n}\n\n});\nparcelRequire.register(\"42Mcf\", function(module, exports) {\n\n$parcel$export(module.exports, \"IS_WINDOWS\", () => $f32cf597f4b53011$export$82633ee808573685);\n$parcel$export(module.exports, \"IS_LINUX\", () => $f32cf597f4b53011$export$25e95d65b6faeb9a);\n$parcel$export(module.exports, \"IS_MAC\", () => $f32cf597f4b53011$export$ff23e6b4c4401383);\n$parcel$export(module.exports, \"WINDOWS_ARCHS\", () => $f32cf597f4b53011$export$175751bac16078cf);\n$parcel$export(module.exports, \"WINDOWS_PLATFORMS\", () => $f32cf597f4b53011$export$da6ba390a22488d5);\n$parcel$export(module.exports, \"createSymlinkInFolder\", () => $f32cf597f4b53011$export$b0a6cbd0a3e3c63a);\n$parcel$export(module.exports, \"validateVersion\", () => $f32cf597f4b53011$export$7880c8f0bb8a6afd);\n$parcel$export(module.exports, \"isNightlyKeyword\", () => $f32cf597f4b53011$export$ea46fc8abcf9f209);\n$parcel$export(module.exports, \"getPyPyVersionFromPath\", () => $f32cf597f4b53011$export$8a23ea91582cecbc);\n$parcel$export(module.exports, \"readExactPyPyVersionFile\", () => $f32cf597f4b53011$export$15e4ce4ad93c8c8a);\n$parcel$export(module.exports, \"writeExactPyPyVersionFile\", () => $f32cf597f4b53011$export$8fb7815f538587a8);\n$parcel$export(module.exports, \"validatePythonVersionFormatForPyPy\", () => $f32cf597f4b53011$export$3dc910628be7a364);\n$parcel$export(module.exports, \"logWarning\", () => $f32cf597f4b53011$export$ebd6064652549ce9);\n$parcel$export(module.exports, \"getLinuxInfo\", () => $f32cf597f4b53011$export$734019fa9b4b8da);\n$parcel$export(module.exports, \"getOSInfo\", () => $f32cf597f4b53011$export$471d7e4c229dedf);\n/* eslint no-unsafe-finally: \"off\" */ \nvar $2heqc = parcelRequire(\"2heqc\");\n\n\n\nvar $lqN0l = parcelRequire(\"lqN0l\");\n\nvar $gQjQu = parcelRequire(\"gQjQu\");\n\nvar $2mVwa = parcelRequire(\"2mVwa\");\nconst $f32cf597f4b53011$export$82633ee808573685 = process.platform === \"win32\";\nconst $f32cf597f4b53011$export$25e95d65b6faeb9a = process.platform === \"linux\";\nconst $f32cf597f4b53011$export$ff23e6b4c4401383 = process.platform === \"darwin\";\nconst $f32cf597f4b53011$export$175751bac16078cf = [\n \"x86\",\n \"x64\"\n];\nconst $f32cf597f4b53011$export$da6ba390a22488d5 = [\n \"win32\",\n \"win64\"\n];\nconst $f32cf597f4b53011$var$PYPY_VERSION_FILE = \"PYPY_VERSION\";\nfunction $f32cf597f4b53011$export$b0a6cbd0a3e3c63a(folderPath, sourceName, targetName, setExecutable = false) {\n const sourcePath = $kC5q1$path.join(folderPath, sourceName);\n const targetPath = $kC5q1$path.join(folderPath, targetName);\n if ((0, ($parcel$interopDefault($kC5q1$fs))).existsSync(targetPath)) return;\n (0, ($parcel$interopDefault($kC5q1$fs))).symlinkSync(sourcePath, targetPath);\n if (!$f32cf597f4b53011$export$82633ee808573685 && setExecutable) (0, ($parcel$interopDefault($kC5q1$fs))).chmodSync(targetPath, \"755\");\n}\nfunction $f32cf597f4b53011$export$7880c8f0bb8a6afd(version) {\n return $f32cf597f4b53011$export$ea46fc8abcf9f209(version) || Boolean($lqN0l.validRange(version));\n}\nfunction $f32cf597f4b53011$export$ea46fc8abcf9f209(pypyVersion) {\n return pypyVersion === \"nightly\";\n}\nfunction $f32cf597f4b53011$export$8a23ea91582cecbc(installDir) {\n return $kC5q1$path.basename($kC5q1$path.dirname(installDir));\n}\nfunction $f32cf597f4b53011$export$15e4ce4ad93c8c8a(installDir) {\n let pypyVersion = \"\";\n const fileVersion = $kC5q1$path.join(installDir, $f32cf597f4b53011$var$PYPY_VERSION_FILE);\n if ((0, ($parcel$interopDefault($kC5q1$fs))).existsSync(fileVersion)) pypyVersion = (0, ($parcel$interopDefault($kC5q1$fs))).readFileSync(fileVersion).toString().trim();\n return pypyVersion;\n}\nfunction $f32cf597f4b53011$export$8fb7815f538587a8(installDir, resolvedPyPyVersion) {\n const pypyFilePath = $kC5q1$path.join(installDir, $f32cf597f4b53011$var$PYPY_VERSION_FILE);\n (0, ($parcel$interopDefault($kC5q1$fs))).writeFileSync(pypyFilePath, resolvedPyPyVersion);\n}\nfunction $f32cf597f4b53011$export$3dc910628be7a364(version) {\n const re = /^\\d+\\.\\d+$/;\n return re.test(version);\n}\nfunction $f32cf597f4b53011$export$ebd6064652549ce9(message) {\n const warningPrefix = \"[warning]\";\n $2heqc.info(`${warningPrefix}${message}`);\n}\nasync function $f32cf597f4b53011$var$getWindowsInfo() {\n const { stdout: stdout } = await $2mVwa.getExecOutput('powershell -command \"(Get-CimInstance -ClassName Win32_OperatingSystem).Caption\"', undefined, {\n silent: true\n });\n const windowsVersion = stdout.trim().split(\" \")[3];\n return {\n osName: \"Windows\",\n osVersion: windowsVersion\n };\n}\nasync function $f32cf597f4b53011$var$getMacOSInfo() {\n const { stdout: stdout } = await $2mVwa.getExecOutput(\"sw_vers\", [\n \"-productVersion\"\n ], {\n silent: true\n });\n const macOSVersion = stdout.trim();\n return {\n osName: \"macOS\",\n osVersion: macOSVersion\n };\n}\nasync function $f32cf597f4b53011$export$734019fa9b4b8da() {\n const { stdout: stdout } = await $2mVwa.getExecOutput(\"lsb_release\", [\n \"-i\",\n \"-r\",\n \"-s\"\n ], {\n silent: true\n });\n const [osName, osVersion] = stdout.trim().split(\"\\n\");\n $2heqc.debug(`OS Name: ${osName}, Version: ${osVersion}`);\n return {\n osName: osName,\n osVersion: osVersion\n };\n}\nasync function $f32cf597f4b53011$export$471d7e4c229dedf() {\n let osInfo;\n try {\n if ($f32cf597f4b53011$export$82633ee808573685) osInfo = await $f32cf597f4b53011$var$getWindowsInfo();\n else if ($f32cf597f4b53011$export$25e95d65b6faeb9a) osInfo = await $f32cf597f4b53011$export$734019fa9b4b8da();\n else if ($f32cf597f4b53011$export$ff23e6b4c4401383) osInfo = await $f32cf597f4b53011$var$getMacOSInfo();\n } catch (err) {\n const error = err;\n $2heqc.debug(error.message);\n } finally{\n return osInfo;\n }\n}\n/**\n * Extract a value from an object by following the keys path provided.\n * If the value is present, it is returned. Otherwise undefined is returned.\n */ function $f32cf597f4b53011$var$extractValue(obj, keys) {\n if (keys.length > 0) {\n const value = obj[keys[0]];\n if (keys.length > 1 && value !== undefined) return $f32cf597f4b53011$var$extractValue(value, keys.slice(1));\n else return value;\n } else return;\n}\nfunction $f32cf597f4b53011$export$62b63db2b7d00b3a(versionFile) {\n $2heqc.debug(`Trying to resolve version form ${versionFile}`);\n const pyprojectFile = (0, ($parcel$interopDefault($kC5q1$fs))).readFileSync(versionFile, \"utf8\");\n const pyprojectConfig = $gQjQu.parse(pyprojectFile);\n let keys = [];\n if (\"project\" in pyprojectConfig) // standard project metadata (PEP 621)\n keys = [\n \"project\",\n \"requires-python\"\n ];\n else // python poetry\n keys = [\n \"tool\",\n \"poetry\",\n \"dependencies\",\n \"python\"\n ];\n const versions = [];\n const version = $f32cf597f4b53011$var$extractValue(pyprojectConfig, keys);\n if (version !== undefined) versions.push(version);\n $2heqc.info(`Extracted ${versions} from ${versionFile}`);\n const rawVersions = Array.from(versions, (version)=>version.split(\",\").join(\" \"));\n const validatedVersions = rawVersions.map((item)=>$lqN0l.validRange(item, true)).filter((versionRange, index)=>{\n if (!versionRange) $2heqc.debug(`The version ${rawVersions[index]} is not valid SemVer range`);\n return !!versionRange;\n });\n return validatedVersions;\n}\nfunction $f32cf597f4b53011$export$6bdea68547837ebb(versionFile) {\n $2heqc.debug(`Trying to resolve version form ${versionFile}`);\n const version = (0, ($parcel$interopDefault($kC5q1$fs))).readFileSync(versionFile, \"utf8\");\n $2heqc.info(`Resolved ${versionFile} as ${version}`);\n return [\n version\n ];\n}\nfunction $f32cf597f4b53011$export$7ffda0a4baa8880a(versionFile) {\n if (versionFile.endsWith(\".toml\")) return $f32cf597f4b53011$export$62b63db2b7d00b3a(versionFile);\n else return $f32cf597f4b53011$export$6bdea68547837ebb(versionFile);\n}\n\n});\nparcelRequire.register(\"gQjQu\", function(module, exports) {\n\n$parcel$export(module.exports, \"parse\", () => $c430e599746bb2ec$export$98e6a39c04603d36, (v) => $c430e599746bb2ec$export$98e6a39c04603d36 = v);\nvar $c430e599746bb2ec$export$98e6a39c04603d36;\nvar $c430e599746bb2ec$export$fac44ee5b035f737;\n\"use strict\";\n\n$c430e599746bb2ec$export$98e6a39c04603d36 = (parcelRequire(\"8eMJt\"));\n\n$c430e599746bb2ec$export$fac44ee5b035f737 = (parcelRequire(\"bhUE6\"));\n\n});\nparcelRequire.register(\"8eMJt\", function(module, exports) {\n\"use strict\";\n\nmodule.exports = (parcelRequire(\"e1aDm\"));\n\nmodule.exports.async = (parcelRequire(\"2S5Eu\"));\n\nmodule.exports.stream = (parcelRequire(\"9JW1y\"));\n\nmodule.exports.prettyError = (parcelRequire(\"gBYD8\"));\n\n});\nparcelRequire.register(\"e1aDm\", function(module, exports) {\n\"use strict\";\nmodule.exports = $a34968544c3ff6be$var$parseString;\n\nvar $3XGwc = parcelRequire(\"3XGwc\");\n\nvar $gBYD8 = parcelRequire(\"gBYD8\");\nfunction $a34968544c3ff6be$var$parseString(str) {\n if ($parcel$global.Buffer && $parcel$global.Buffer.isBuffer(str)) str = str.toString(\"utf8\");\n const parser = new $3XGwc();\n try {\n parser.parse(str);\n return parser.finish();\n } catch (err) {\n throw $gBYD8(err, str);\n }\n}\n\n});\nparcelRequire.register(\"3XGwc\", function(module, exports) {\n\"use strict\";\n\n/* eslint-disable no-new-wrappers, no-eval, camelcase, operator-linebreak */ module.exports = makeParserClass((parcelRequire(\"fd397\")));\nmodule.exports.makeParserClass = makeParserClass;\nclass TomlError extends Error {\n constructor(msg11){\n super(msg11);\n this.name = \"TomlError\";\n /* istanbul ignore next */ if (Error.captureStackTrace) Error.captureStackTrace(this, TomlError);\n this.fromTOML = true;\n this.wrapped = null;\n }\n}\nTomlError.wrap = (err11)=>{\n const terr11 = new TomlError(err11.message);\n terr11.code = err11.code;\n terr11.wrapped = err11;\n return terr11;\n};\nmodule.exports.TomlError = TomlError;\n\nvar $4HTEH = parcelRequire(\"4HTEH\");\n\nvar $biA0C = parcelRequire(\"biA0C\");\n\nvar $51zGI = parcelRequire(\"51zGI\");\n\nvar $8bnbQ = parcelRequire(\"8bnbQ\");\nconst CTRL_I = 0x09;\nconst CTRL_J = 0x0A;\nconst CTRL_M = 0x0D;\nconst CTRL_CHAR_BOUNDARY = 0x1F // the last non-character in the latin1 region of unicode, except DEL\n;\nconst CHAR_SP = 0x20;\nconst CHAR_QUOT = 0x22;\nconst CHAR_NUM = 0x23;\nconst CHAR_APOS = 0x27;\nconst CHAR_PLUS = 0x2B;\nconst CHAR_COMMA = 0x2C;\nconst CHAR_HYPHEN = 0x2D;\nconst CHAR_PERIOD = 0x2E;\nconst CHAR_0 = 0x30;\nconst CHAR_1 = 0x31;\nconst CHAR_7 = 0x37;\nconst CHAR_9 = 0x39;\nconst CHAR_COLON = 0x3A;\nconst CHAR_EQUALS = 0x3D;\nconst CHAR_A = 0x41;\nconst CHAR_E = 0x45;\nconst CHAR_F = 0x46;\nconst CHAR_T = 0x54;\nconst CHAR_U = 0x55;\nconst CHAR_Z = 0x5A;\nconst CHAR_LOWBAR = 0x5F;\nconst CHAR_a = 0x61;\nconst CHAR_b = 0x62;\nconst CHAR_e = 0x65;\nconst CHAR_f = 0x66;\nconst CHAR_i = 0x69;\nconst CHAR_l = 0x6C;\nconst CHAR_n = 0x6E;\nconst CHAR_o = 0x6F;\nconst CHAR_r = 0x72;\nconst CHAR_s = 0x73;\nconst CHAR_t = 0x74;\nconst CHAR_u = 0x75;\nconst CHAR_x = 0x78;\nconst CHAR_z = 0x7A;\nconst CHAR_LCUB = 0x7B;\nconst CHAR_RCUB = 0x7D;\nconst CHAR_LSQB = 0x5B;\nconst CHAR_BSOL = 0x5C;\nconst CHAR_RSQB = 0x5D;\nconst CHAR_DEL = 0x7F;\nconst SURROGATE_FIRST = 0xD800;\nconst SURROGATE_LAST = 0xDFFF;\nconst escapes = {\n [CHAR_b]: \"\\b\",\n [CHAR_t]: \"\t\",\n [CHAR_n]: \"\\n\",\n [CHAR_f]: \"\\f\",\n [CHAR_r]: \"\\r\",\n [CHAR_QUOT]: '\"',\n [CHAR_BSOL]: \"\\\\\"\n};\nfunction isDigit(cp11) {\n return cp11 >= CHAR_0 && cp11 <= CHAR_9;\n}\nfunction isHexit(cp11) {\n return cp11 >= CHAR_A && cp11 <= CHAR_F || cp11 >= CHAR_a && cp11 <= CHAR_f || cp11 >= CHAR_0 && cp11 <= CHAR_9;\n}\nfunction isBit(cp11) {\n return cp11 === CHAR_1 || cp11 === CHAR_0;\n}\nfunction isOctit(cp11) {\n return cp11 >= CHAR_0 && cp11 <= CHAR_7;\n}\nfunction isAlphaNumQuoteHyphen(cp11) {\n return cp11 >= CHAR_A && cp11 <= CHAR_Z || cp11 >= CHAR_a && cp11 <= CHAR_z || cp11 >= CHAR_0 && cp11 <= CHAR_9 || cp11 === CHAR_APOS || cp11 === CHAR_QUOT || cp11 === CHAR_LOWBAR || cp11 === CHAR_HYPHEN;\n}\nfunction isAlphaNumHyphen(cp11) {\n return cp11 >= CHAR_A && cp11 <= CHAR_Z || cp11 >= CHAR_a && cp11 <= CHAR_z || cp11 >= CHAR_0 && cp11 <= CHAR_9 || cp11 === CHAR_LOWBAR || cp11 === CHAR_HYPHEN;\n}\nconst _type = Symbol(\"type\");\nconst _declared = Symbol(\"declared\");\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nconst defineProperty = Object.defineProperty;\nconst descriptor = {\n configurable: true,\n enumerable: true,\n writable: true,\n value: undefined\n};\nfunction hasKey(obj11, key11) {\n if (hasOwnProperty.call(obj11, key11)) return true;\n if (key11 === \"__proto__\") defineProperty(obj11, \"__proto__\", descriptor);\n return false;\n}\nconst INLINE_TABLE = Symbol(\"inline-table\");\nfunction InlineTable() {\n return Object.defineProperties({}, {\n [_type]: {\n value: INLINE_TABLE\n }\n });\n}\nfunction isInlineTable(obj11) {\n if (obj11 === null || typeof obj11 !== \"object\") return false;\n return obj11[_type] === INLINE_TABLE;\n}\nconst TABLE = Symbol(\"table\");\nfunction Table() {\n return Object.defineProperties({}, {\n [_type]: {\n value: TABLE\n },\n [_declared]: {\n value: false,\n writable: true\n }\n });\n}\nfunction isTable(obj11) {\n if (obj11 === null || typeof obj11 !== \"object\") return false;\n return obj11[_type] === TABLE;\n}\nconst _contentType = Symbol(\"content-type\");\nconst INLINE_LIST = Symbol(\"inline-list\");\nfunction InlineList(type11) {\n return Object.defineProperties([], {\n [_type]: {\n value: INLINE_LIST\n },\n [_contentType]: {\n value: type11\n }\n });\n}\nfunction isInlineList(obj11) {\n if (obj11 === null || typeof obj11 !== \"object\") return false;\n return obj11[_type] === INLINE_LIST;\n}\nconst LIST = Symbol(\"list\");\nfunction List() {\n return Object.defineProperties([], {\n [_type]: {\n value: LIST\n }\n });\n}\nfunction isList(obj11) {\n if (obj11 === null || typeof obj11 !== \"object\") return false;\n return obj11[_type] === LIST;\n}\n// in an eval, to let bundlers not slurp in a util proxy\nlet _custom;\ntry {\n const utilInspect = eval(\"require('util').inspect\");\n _custom = utilInspect.custom;\n} catch (_) {\n/* eval require not available in transpiled bundle */ }\n/* istanbul ignore next */ const _inspect = _custom || \"inspect\";\nclass BoxedBigInt {\n constructor(value11){\n try {\n this.value = $parcel$global.BigInt.asIntN(64, value11);\n } catch (_11) {\n /* istanbul ignore next */ this.value = null;\n }\n Object.defineProperty(this, _type, {\n value: INTEGER\n });\n }\n isNaN() {\n return this.value === null;\n }\n /* istanbul ignore next */ toString() {\n return String(this.value);\n }\n /* istanbul ignore next */ [_inspect]() {\n return `[BigInt: ${this.toString()}]}`;\n }\n valueOf() {\n return this.value;\n }\n}\nconst INTEGER = Symbol(\"integer\");\nfunction Integer(value11) {\n let num11 = Number(value11);\n // -0 is a float thing, not an int thing\n if (Object.is(num11, -0)) num11 = 0;\n /* istanbul ignore else */ if ($parcel$global.BigInt && !Number.isSafeInteger(num11)) return new BoxedBigInt(value11);\n else /* istanbul ignore next */ return Object.defineProperties(new Number(num11), {\n isNaN: {\n value: function() {\n return isNaN(this);\n }\n },\n [_type]: {\n value: INTEGER\n },\n [_inspect]: {\n value: ()=>`[Integer: ${value11}]`\n }\n });\n}\nfunction isInteger(obj11) {\n if (obj11 === null || typeof obj11 !== \"object\") return false;\n return obj11[_type] === INTEGER;\n}\nconst FLOAT = Symbol(\"float\");\nfunction Float(value11) {\n /* istanbul ignore next */ return Object.defineProperties(new Number(value11), {\n [_type]: {\n value: FLOAT\n },\n [_inspect]: {\n value: ()=>`[Float: ${value11}]`\n }\n });\n}\nfunction isFloat(obj11) {\n if (obj11 === null || typeof obj11 !== \"object\") return false;\n return obj11[_type] === FLOAT;\n}\nfunction tomlType(value11) {\n const type11 = typeof value11;\n if (type11 === \"object\") {\n /* istanbul ignore if */ if (value11 === null) return \"null\";\n if (value11 instanceof Date) return \"datetime\";\n /* istanbul ignore else */ if (_type in value11) switch(value11[_type]){\n case INLINE_TABLE:\n return \"inline-table\";\n case INLINE_LIST:\n return \"inline-list\";\n /* istanbul ignore next */ case TABLE:\n return \"table\";\n /* istanbul ignore next */ case LIST:\n return \"list\";\n case FLOAT:\n return \"float\";\n case INTEGER:\n return \"integer\";\n }\n }\n return type11;\n}\nfunction makeParserClass(Parser11) {\n class TOMLParser11 extends Parser11 {\n constructor(){\n super();\n this.ctx = this.obj = Table();\n }\n /* MATCH HELPER */ atEndOfWord() {\n return this.char === CHAR_NUM || this.char === CTRL_I || this.char === CHAR_SP || this.atEndOfLine();\n }\n atEndOfLine() {\n return this.char === Parser11.END || this.char === CTRL_J || this.char === CTRL_M;\n }\n parseStart() {\n if (this.char === Parser11.END) return null;\n else if (this.char === CHAR_LSQB) return this.call(this.parseTableOrList);\n else if (this.char === CHAR_NUM) return this.call(this.parseComment);\n else if (this.char === CTRL_J || this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) return null;\n else if (isAlphaNumQuoteHyphen(this.char)) return this.callNow(this.parseAssignStatement);\n else throw this.error(new TomlError(`Unknown character \"${this.char}\"`));\n }\n // HELPER, this strips any whitespace and comments to the end of the line\n // then RETURNS. Last state in a production.\n parseWhitespaceToEOL() {\n if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) return null;\n else if (this.char === CHAR_NUM) return this.goto(this.parseComment);\n else if (this.char === Parser11.END || this.char === CTRL_J) return this.return();\n else throw this.error(new TomlError(\"Unexpected character, expected only whitespace or comments till end of line\"));\n }\n /* ASSIGNMENT: key = value */ parseAssignStatement() {\n return this.callNow(this.parseAssign, this.recordAssignStatement);\n }\n recordAssignStatement(kv11) {\n let target11 = this.ctx;\n let finalKey11 = kv11.key.pop();\n for (let kw11 of kv11.key){\n if (hasKey(target11, kw11) && (!isTable(target11[kw11]) || target11[kw11][_declared])) throw this.error(new TomlError(\"Can't redefine existing key\"));\n target11 = target11[kw11] = target11[kw11] || Table();\n }\n if (hasKey(target11, finalKey11)) throw this.error(new TomlError(\"Can't redefine existing key\"));\n // unbox our numbers\n if (isInteger(kv11.value) || isFloat(kv11.value)) target11[finalKey11] = kv11.value.valueOf();\n else target11[finalKey11] = kv11.value;\n return this.goto(this.parseWhitespaceToEOL);\n }\n /* ASSSIGNMENT expression, key = value possibly inside an inline table */ parseAssign() {\n return this.callNow(this.parseKeyword, this.recordAssignKeyword);\n }\n recordAssignKeyword(key11) {\n if (this.state.resultTable) this.state.resultTable.push(key11);\n else this.state.resultTable = [\n key11\n ];\n return this.goto(this.parseAssignKeywordPreDot);\n }\n parseAssignKeywordPreDot() {\n if (this.char === CHAR_PERIOD) return this.next(this.parseAssignKeywordPostDot);\n else if (this.char !== CHAR_SP && this.char !== CTRL_I) return this.goto(this.parseAssignEqual);\n }\n parseAssignKeywordPostDot() {\n if (this.char !== CHAR_SP && this.char !== CTRL_I) return this.callNow(this.parseKeyword, this.recordAssignKeyword);\n }\n parseAssignEqual() {\n if (this.char === CHAR_EQUALS) return this.next(this.parseAssignPreValue);\n else throw this.error(new TomlError('Invalid character, expected \"=\"'));\n }\n parseAssignPreValue() {\n if (this.char === CHAR_SP || this.char === CTRL_I) return null;\n else return this.callNow(this.parseValue, this.recordAssignValue);\n }\n recordAssignValue(value11) {\n return this.returnNow({\n key: this.state.resultTable,\n value: value11\n });\n }\n /* COMMENTS: #...eol */ parseComment() {\n do {\n if (this.char === Parser11.END || this.char === CTRL_J) return this.return();\n }while (this.nextChar());\n }\n /* TABLES AND LISTS, [foo] and [[foo]] */ parseTableOrList() {\n if (this.char === CHAR_LSQB) this.next(this.parseList);\n else return this.goto(this.parseTable);\n }\n /* TABLE [foo.bar.baz] */ parseTable() {\n this.ctx = this.obj;\n return this.goto(this.parseTableNext);\n }\n parseTableNext() {\n if (this.char === CHAR_SP || this.char === CTRL_I) return null;\n else return this.callNow(this.parseKeyword, this.parseTableMore);\n }\n parseTableMore(keyword11) {\n if (this.char === CHAR_SP || this.char === CTRL_I) return null;\n else if (this.char === CHAR_RSQB) {\n if (hasKey(this.ctx, keyword11) && (!isTable(this.ctx[keyword11]) || this.ctx[keyword11][_declared])) throw this.error(new TomlError(\"Can't redefine existing key\"));\n else {\n this.ctx = this.ctx[keyword11] = this.ctx[keyword11] || Table();\n this.ctx[_declared] = true;\n }\n return this.next(this.parseWhitespaceToEOL);\n } else if (this.char === CHAR_PERIOD) {\n if (!hasKey(this.ctx, keyword11)) this.ctx = this.ctx[keyword11] = Table();\n else if (isTable(this.ctx[keyword11])) this.ctx = this.ctx[keyword11];\n else if (isList(this.ctx[keyword11])) this.ctx = this.ctx[keyword11][this.ctx[keyword11].length - 1];\n else throw this.error(new TomlError(\"Can't redefine existing key\"));\n return this.next(this.parseTableNext);\n } else throw this.error(new TomlError(\"Unexpected character, expected whitespace, . or ]\"));\n }\n /* LIST [[a.b.c]] */ parseList() {\n this.ctx = this.obj;\n return this.goto(this.parseListNext);\n }\n parseListNext() {\n if (this.char === CHAR_SP || this.char === CTRL_I) return null;\n else return this.callNow(this.parseKeyword, this.parseListMore);\n }\n parseListMore(keyword11) {\n if (this.char === CHAR_SP || this.char === CTRL_I) return null;\n else if (this.char === CHAR_RSQB) {\n if (!hasKey(this.ctx, keyword11)) this.ctx[keyword11] = List();\n if (isInlineList(this.ctx[keyword11])) throw this.error(new TomlError(\"Can't extend an inline array\"));\n else if (isList(this.ctx[keyword11])) {\n const next11 = Table();\n this.ctx[keyword11].push(next11);\n this.ctx = next11;\n } else throw this.error(new TomlError(\"Can't redefine an existing key\"));\n return this.next(this.parseListEnd);\n } else if (this.char === CHAR_PERIOD) {\n if (!hasKey(this.ctx, keyword11)) this.ctx = this.ctx[keyword11] = Table();\n else if (isInlineList(this.ctx[keyword11])) throw this.error(new TomlError(\"Can't extend an inline array\"));\n else if (isInlineTable(this.ctx[keyword11])) throw this.error(new TomlError(\"Can't extend an inline table\"));\n else if (isList(this.ctx[keyword11])) this.ctx = this.ctx[keyword11][this.ctx[keyword11].length - 1];\n else if (isTable(this.ctx[keyword11])) this.ctx = this.ctx[keyword11];\n else throw this.error(new TomlError(\"Can't redefine an existing key\"));\n return this.next(this.parseListNext);\n } else throw this.error(new TomlError(\"Unexpected character, expected whitespace, . or ]\"));\n }\n parseListEnd(keyword11) {\n if (this.char === CHAR_RSQB) return this.next(this.parseWhitespaceToEOL);\n else throw this.error(new TomlError(\"Unexpected character, expected whitespace, . or ]\"));\n }\n /* VALUE string, number, boolean, inline list, inline object */ parseValue() {\n if (this.char === Parser11.END) throw this.error(new TomlError(\"Key without value\"));\n else if (this.char === CHAR_QUOT) return this.next(this.parseDoubleString);\n if (this.char === CHAR_APOS) return this.next(this.parseSingleString);\n else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) return this.goto(this.parseNumberSign);\n else if (this.char === CHAR_i) return this.next(this.parseInf);\n else if (this.char === CHAR_n) return this.next(this.parseNan);\n else if (isDigit(this.char)) return this.goto(this.parseNumberOrDateTime);\n else if (this.char === CHAR_t || this.char === CHAR_f) return this.goto(this.parseBoolean);\n else if (this.char === CHAR_LSQB) return this.call(this.parseInlineList, this.recordValue);\n else if (this.char === CHAR_LCUB) return this.call(this.parseInlineTable, this.recordValue);\n else throw this.error(new TomlError(\"Unexpected character, expecting string, number, datetime, boolean, inline array or inline table\"));\n }\n recordValue(value11) {\n return this.returnNow(value11);\n }\n parseInf() {\n if (this.char === CHAR_n) return this.next(this.parseInf2);\n else throw this.error(new TomlError('Unexpected character, expected \"inf\", \"+inf\" or \"-inf\"'));\n }\n parseInf2() {\n if (this.char === CHAR_f) {\n if (this.state.buf === \"-\") return this.return(-Infinity);\n else return this.return(Infinity);\n } else throw this.error(new TomlError('Unexpected character, expected \"inf\", \"+inf\" or \"-inf\"'));\n }\n parseNan() {\n if (this.char === CHAR_a) return this.next(this.parseNan2);\n else throw this.error(new TomlError('Unexpected character, expected \"nan\"'));\n }\n parseNan2() {\n if (this.char === CHAR_n) return this.return(NaN);\n else throw this.error(new TomlError('Unexpected character, expected \"nan\"'));\n }\n /* KEYS, barewords or basic, literal, or dotted */ parseKeyword() {\n if (this.char === CHAR_QUOT) return this.next(this.parseBasicString);\n else if (this.char === CHAR_APOS) return this.next(this.parseLiteralString);\n else return this.goto(this.parseBareKey);\n }\n /* KEYS: barewords */ parseBareKey() {\n do {\n if (this.char === Parser11.END) throw this.error(new TomlError(\"Key ended without value\"));\n else if (isAlphaNumHyphen(this.char)) this.consume();\n else if (this.state.buf.length === 0) throw this.error(new TomlError(\"Empty bare keys are not allowed\"));\n else return this.returnNow();\n }while (this.nextChar());\n }\n /* STRINGS, single quoted (literal) */ parseSingleString() {\n if (this.char === CHAR_APOS) return this.next(this.parseLiteralMultiStringMaybe);\n else return this.goto(this.parseLiteralString);\n }\n parseLiteralString() {\n do {\n if (this.char === CHAR_APOS) return this.return();\n else if (this.atEndOfLine()) throw this.error(new TomlError(\"Unterminated string\"));\n else if (this.char === CHAR_DEL || this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I) throw this.errorControlCharInString();\n else this.consume();\n }while (this.nextChar());\n }\n parseLiteralMultiStringMaybe() {\n if (this.char === CHAR_APOS) return this.next(this.parseLiteralMultiString);\n else return this.returnNow();\n }\n parseLiteralMultiString() {\n if (this.char === CTRL_M) return null;\n else if (this.char === CTRL_J) return this.next(this.parseLiteralMultiStringContent);\n else return this.goto(this.parseLiteralMultiStringContent);\n }\n parseLiteralMultiStringContent() {\n do {\n if (this.char === CHAR_APOS) return this.next(this.parseLiteralMultiEnd);\n else if (this.char === Parser11.END) throw this.error(new TomlError(\"Unterminated multi-line string\"));\n else if (this.char === CHAR_DEL || this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I && this.char !== CTRL_J && this.char !== CTRL_M) throw this.errorControlCharInString();\n else this.consume();\n }while (this.nextChar());\n }\n parseLiteralMultiEnd() {\n if (this.char === CHAR_APOS) return this.next(this.parseLiteralMultiEnd2);\n else {\n this.state.buf += \"'\";\n return this.goto(this.parseLiteralMultiStringContent);\n }\n }\n parseLiteralMultiEnd2() {\n if (this.char === CHAR_APOS) return this.return();\n else {\n this.state.buf += \"''\";\n return this.goto(this.parseLiteralMultiStringContent);\n }\n }\n /* STRINGS double quoted */ parseDoubleString() {\n if (this.char === CHAR_QUOT) return this.next(this.parseMultiStringMaybe);\n else return this.goto(this.parseBasicString);\n }\n parseBasicString() {\n do {\n if (this.char === CHAR_BSOL) return this.call(this.parseEscape, this.recordEscapeReplacement);\n else if (this.char === CHAR_QUOT) return this.return();\n else if (this.atEndOfLine()) throw this.error(new TomlError(\"Unterminated string\"));\n else if (this.char === CHAR_DEL || this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I) throw this.errorControlCharInString();\n else this.consume();\n }while (this.nextChar());\n }\n recordEscapeReplacement(replacement11) {\n this.state.buf += replacement11;\n return this.goto(this.parseBasicString);\n }\n parseMultiStringMaybe() {\n if (this.char === CHAR_QUOT) return this.next(this.parseMultiString);\n else return this.returnNow();\n }\n parseMultiString() {\n if (this.char === CTRL_M) return null;\n else if (this.char === CTRL_J) return this.next(this.parseMultiStringContent);\n else return this.goto(this.parseMultiStringContent);\n }\n parseMultiStringContent() {\n do {\n if (this.char === CHAR_BSOL) return this.call(this.parseMultiEscape, this.recordMultiEscapeReplacement);\n else if (this.char === CHAR_QUOT) return this.next(this.parseMultiEnd);\n else if (this.char === Parser11.END) throw this.error(new TomlError(\"Unterminated multi-line string\"));\n else if (this.char === CHAR_DEL || this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I && this.char !== CTRL_J && this.char !== CTRL_M) throw this.errorControlCharInString();\n else this.consume();\n }while (this.nextChar());\n }\n errorControlCharInString() {\n let displayCode11 = \"\\\\u00\";\n if (this.char < 16) displayCode11 += \"0\";\n displayCode11 += this.char.toString(16);\n return this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${displayCode11} instead`));\n }\n recordMultiEscapeReplacement(replacement11) {\n this.state.buf += replacement11;\n return this.goto(this.parseMultiStringContent);\n }\n parseMultiEnd() {\n if (this.char === CHAR_QUOT) return this.next(this.parseMultiEnd2);\n else {\n this.state.buf += '\"';\n return this.goto(this.parseMultiStringContent);\n }\n }\n parseMultiEnd2() {\n if (this.char === CHAR_QUOT) return this.return();\n else {\n this.state.buf += '\"\"';\n return this.goto(this.parseMultiStringContent);\n }\n }\n parseMultiEscape() {\n if (this.char === CTRL_M || this.char === CTRL_J) return this.next(this.parseMultiTrim);\n else if (this.char === CHAR_SP || this.char === CTRL_I) return this.next(this.parsePreMultiTrim);\n else return this.goto(this.parseEscape);\n }\n parsePreMultiTrim() {\n if (this.char === CHAR_SP || this.char === CTRL_I) return null;\n else if (this.char === CTRL_M || this.char === CTRL_J) return this.next(this.parseMultiTrim);\n else throw this.error(new TomlError(\"Can't escape whitespace\"));\n }\n parseMultiTrim() {\n // explicitly whitespace here, END should follow the same path as chars\n if (this.char === CTRL_J || this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) return null;\n else return this.returnNow();\n }\n parseEscape() {\n if (this.char in escapes) return this.return(escapes[this.char]);\n else if (this.char === CHAR_u) return this.call(this.parseSmallUnicode, this.parseUnicodeReturn);\n else if (this.char === CHAR_U) return this.call(this.parseLargeUnicode, this.parseUnicodeReturn);\n else throw this.error(new TomlError(\"Unknown escape character: \" + this.char));\n }\n parseUnicodeReturn(char11) {\n try {\n const codePoint11 = parseInt(char11, 16);\n if (codePoint11 >= SURROGATE_FIRST && codePoint11 <= SURROGATE_LAST) throw this.error(new TomlError(\"Invalid unicode, character in range 0xD800 - 0xDFFF is reserved\"));\n return this.returnNow(String.fromCodePoint(codePoint11));\n } catch (err11) {\n throw this.error(TomlError.wrap(err11));\n }\n }\n parseSmallUnicode() {\n if (!isHexit(this.char)) throw this.error(new TomlError(\"Invalid character in unicode sequence, expected hex\"));\n else {\n this.consume();\n if (this.state.buf.length >= 4) return this.return();\n }\n }\n parseLargeUnicode() {\n if (!isHexit(this.char)) throw this.error(new TomlError(\"Invalid character in unicode sequence, expected hex\"));\n else {\n this.consume();\n if (this.state.buf.length >= 8) return this.return();\n }\n }\n /* NUMBERS */ parseNumberSign() {\n this.consume();\n return this.next(this.parseMaybeSignedInfOrNan);\n }\n parseMaybeSignedInfOrNan() {\n if (this.char === CHAR_i) return this.next(this.parseInf);\n else if (this.char === CHAR_n) return this.next(this.parseNan);\n else return this.callNow(this.parseNoUnder, this.parseNumberIntegerStart);\n }\n parseNumberIntegerStart() {\n if (this.char === CHAR_0) {\n this.consume();\n return this.next(this.parseNumberIntegerExponentOrDecimal);\n } else return this.goto(this.parseNumberInteger);\n }\n parseNumberIntegerExponentOrDecimal() {\n if (this.char === CHAR_PERIOD) {\n this.consume();\n return this.call(this.parseNoUnder, this.parseNumberFloat);\n } else if (this.char === CHAR_E || this.char === CHAR_e) {\n this.consume();\n return this.next(this.parseNumberExponentSign);\n } else return this.returnNow(Integer(this.state.buf));\n }\n parseNumberInteger() {\n if (isDigit(this.char)) this.consume();\n else if (this.char === CHAR_LOWBAR) return this.call(this.parseNoUnder);\n else if (this.char === CHAR_E || this.char === CHAR_e) {\n this.consume();\n return this.next(this.parseNumberExponentSign);\n } else if (this.char === CHAR_PERIOD) {\n this.consume();\n return this.call(this.parseNoUnder, this.parseNumberFloat);\n } else {\n const result11 = Integer(this.state.buf);\n /* istanbul ignore if */ if (result11.isNaN()) throw this.error(new TomlError(\"Invalid number\"));\n else return this.returnNow(result11);\n }\n }\n parseNoUnder() {\n if (this.char === CHAR_LOWBAR || this.char === CHAR_PERIOD || this.char === CHAR_E || this.char === CHAR_e) throw this.error(new TomlError(\"Unexpected character, expected digit\"));\n else if (this.atEndOfWord()) throw this.error(new TomlError(\"Incomplete number\"));\n return this.returnNow();\n }\n parseNoUnderHexOctBinLiteral() {\n if (this.char === CHAR_LOWBAR || this.char === CHAR_PERIOD) throw this.error(new TomlError(\"Unexpected character, expected digit\"));\n else if (this.atEndOfWord()) throw this.error(new TomlError(\"Incomplete number\"));\n return this.returnNow();\n }\n parseNumberFloat() {\n if (this.char === CHAR_LOWBAR) return this.call(this.parseNoUnder, this.parseNumberFloat);\n else if (isDigit(this.char)) this.consume();\n else if (this.char === CHAR_E || this.char === CHAR_e) {\n this.consume();\n return this.next(this.parseNumberExponentSign);\n } else return this.returnNow(Float(this.state.buf));\n }\n parseNumberExponentSign() {\n if (isDigit(this.char)) return this.goto(this.parseNumberExponent);\n else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) {\n this.consume();\n this.call(this.parseNoUnder, this.parseNumberExponent);\n } else throw this.error(new TomlError(\"Unexpected character, expected -, + or digit\"));\n }\n parseNumberExponent() {\n if (isDigit(this.char)) this.consume();\n else if (this.char === CHAR_LOWBAR) return this.call(this.parseNoUnder);\n else return this.returnNow(Float(this.state.buf));\n }\n /* NUMBERS or DATETIMES */ parseNumberOrDateTime() {\n if (this.char === CHAR_0) {\n this.consume();\n return this.next(this.parseNumberBaseOrDateTime);\n } else return this.goto(this.parseNumberOrDateTimeOnly);\n }\n parseNumberOrDateTimeOnly() {\n // note, if two zeros are in a row then it MUST be a date\n if (this.char === CHAR_LOWBAR) return this.call(this.parseNoUnder, this.parseNumberInteger);\n else if (isDigit(this.char)) {\n this.consume();\n if (this.state.buf.length > 4) this.next(this.parseNumberInteger);\n } else if (this.char === CHAR_E || this.char === CHAR_e) {\n this.consume();\n return this.next(this.parseNumberExponentSign);\n } else if (this.char === CHAR_PERIOD) {\n this.consume();\n return this.call(this.parseNoUnder, this.parseNumberFloat);\n } else if (this.char === CHAR_HYPHEN) return this.goto(this.parseDateTime);\n else if (this.char === CHAR_COLON) return this.goto(this.parseOnlyTimeHour);\n else return this.returnNow(Integer(this.state.buf));\n }\n parseDateTimeOnly() {\n if (this.state.buf.length < 4) {\n if (isDigit(this.char)) return this.consume();\n else if (this.char === CHAR_COLON) return this.goto(this.parseOnlyTimeHour);\n else throw this.error(new TomlError(\"Expected digit while parsing year part of a date\"));\n } else {\n if (this.char === CHAR_HYPHEN) return this.goto(this.parseDateTime);\n else throw this.error(new TomlError(\"Expected hyphen (-) while parsing year part of date\"));\n }\n }\n parseNumberBaseOrDateTime() {\n if (this.char === CHAR_b) {\n this.consume();\n return this.call(this.parseNoUnderHexOctBinLiteral, this.parseIntegerBin);\n } else if (this.char === CHAR_o) {\n this.consume();\n return this.call(this.parseNoUnderHexOctBinLiteral, this.parseIntegerOct);\n } else if (this.char === CHAR_x) {\n this.consume();\n return this.call(this.parseNoUnderHexOctBinLiteral, this.parseIntegerHex);\n } else if (this.char === CHAR_PERIOD) return this.goto(this.parseNumberInteger);\n else if (isDigit(this.char)) return this.goto(this.parseDateTimeOnly);\n else return this.returnNow(Integer(this.state.buf));\n }\n parseIntegerHex() {\n if (isHexit(this.char)) this.consume();\n else if (this.char === CHAR_LOWBAR) return this.call(this.parseNoUnderHexOctBinLiteral);\n else {\n const result11 = Integer(this.state.buf);\n /* istanbul ignore if */ if (result11.isNaN()) throw this.error(new TomlError(\"Invalid number\"));\n else return this.returnNow(result11);\n }\n }\n parseIntegerOct() {\n if (isOctit(this.char)) this.consume();\n else if (this.char === CHAR_LOWBAR) return this.call(this.parseNoUnderHexOctBinLiteral);\n else {\n const result11 = Integer(this.state.buf);\n /* istanbul ignore if */ if (result11.isNaN()) throw this.error(new TomlError(\"Invalid number\"));\n else return this.returnNow(result11);\n }\n }\n parseIntegerBin() {\n if (isBit(this.char)) this.consume();\n else if (this.char === CHAR_LOWBAR) return this.call(this.parseNoUnderHexOctBinLiteral);\n else {\n const result11 = Integer(this.state.buf);\n /* istanbul ignore if */ if (result11.isNaN()) throw this.error(new TomlError(\"Invalid number\"));\n else return this.returnNow(result11);\n }\n }\n /* DATETIME */ parseDateTime() {\n // we enter here having just consumed the year and about to consume the hyphen\n if (this.state.buf.length < 4) throw this.error(new TomlError(\"Years less than 1000 must be zero padded to four characters\"));\n this.state.result = this.state.buf;\n this.state.buf = \"\";\n return this.next(this.parseDateMonth);\n }\n parseDateMonth() {\n if (this.char === CHAR_HYPHEN) {\n if (this.state.buf.length < 2) throw this.error(new TomlError(\"Months less than 10 must be zero padded to two characters\"));\n this.state.result += \"-\" + this.state.buf;\n this.state.buf = \"\";\n return this.next(this.parseDateDay);\n } else if (isDigit(this.char)) this.consume();\n else throw this.error(new TomlError(\"Incomplete datetime\"));\n }\n parseDateDay() {\n if (this.char === CHAR_T || this.char === CHAR_SP) {\n if (this.state.buf.length < 2) throw this.error(new TomlError(\"Days less than 10 must be zero padded to two characters\"));\n this.state.result += \"-\" + this.state.buf;\n this.state.buf = \"\";\n return this.next(this.parseStartTimeHour);\n } else if (this.atEndOfWord()) return this.returnNow($51zGI(this.state.result + \"-\" + this.state.buf));\n else if (isDigit(this.char)) this.consume();\n else throw this.error(new TomlError(\"Incomplete datetime\"));\n }\n parseStartTimeHour() {\n if (this.atEndOfWord()) return this.returnNow($51zGI(this.state.result));\n else return this.goto(this.parseTimeHour);\n }\n parseTimeHour() {\n if (this.char === CHAR_COLON) {\n if (this.state.buf.length < 2) throw this.error(new TomlError(\"Hours less than 10 must be zero padded to two characters\"));\n this.state.result += \"T\" + this.state.buf;\n this.state.buf = \"\";\n return this.next(this.parseTimeMin);\n } else if (isDigit(this.char)) this.consume();\n else throw this.error(new TomlError(\"Incomplete datetime\"));\n }\n parseTimeMin() {\n if (this.state.buf.length < 2 && isDigit(this.char)) this.consume();\n else if (this.state.buf.length === 2 && this.char === CHAR_COLON) {\n this.state.result += \":\" + this.state.buf;\n this.state.buf = \"\";\n return this.next(this.parseTimeSec);\n } else throw this.error(new TomlError(\"Incomplete datetime\"));\n }\n parseTimeSec() {\n if (isDigit(this.char)) {\n this.consume();\n if (this.state.buf.length === 2) {\n this.state.result += \":\" + this.state.buf;\n this.state.buf = \"\";\n return this.next(this.parseTimeZoneOrFraction);\n }\n } else throw this.error(new TomlError(\"Incomplete datetime\"));\n }\n parseOnlyTimeHour() {\n /* istanbul ignore else */ if (this.char === CHAR_COLON) {\n if (this.state.buf.length < 2) throw this.error(new TomlError(\"Hours less than 10 must be zero padded to two characters\"));\n this.state.result = this.state.buf;\n this.state.buf = \"\";\n return this.next(this.parseOnlyTimeMin);\n } else throw this.error(new TomlError(\"Incomplete time\"));\n }\n parseOnlyTimeMin() {\n if (this.state.buf.length < 2 && isDigit(this.char)) this.consume();\n else if (this.state.buf.length === 2 && this.char === CHAR_COLON) {\n this.state.result += \":\" + this.state.buf;\n this.state.buf = \"\";\n return this.next(this.parseOnlyTimeSec);\n } else throw this.error(new TomlError(\"Incomplete time\"));\n }\n parseOnlyTimeSec() {\n if (isDigit(this.char)) {\n this.consume();\n if (this.state.buf.length === 2) return this.next(this.parseOnlyTimeFractionMaybe);\n } else throw this.error(new TomlError(\"Incomplete time\"));\n }\n parseOnlyTimeFractionMaybe() {\n this.state.result += \":\" + this.state.buf;\n if (this.char === CHAR_PERIOD) {\n this.state.buf = \"\";\n this.next(this.parseOnlyTimeFraction);\n } else return this.return($8bnbQ(this.state.result));\n }\n parseOnlyTimeFraction() {\n if (isDigit(this.char)) this.consume();\n else if (this.atEndOfWord()) {\n if (this.state.buf.length === 0) throw this.error(new TomlError(\"Expected digit in milliseconds\"));\n return this.returnNow($8bnbQ(this.state.result + \".\" + this.state.buf));\n } else throw this.error(new TomlError(\"Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z\"));\n }\n parseTimeZoneOrFraction() {\n if (this.char === CHAR_PERIOD) {\n this.consume();\n this.next(this.parseDateTimeFraction);\n } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) {\n this.consume();\n this.next(this.parseTimeZoneHour);\n } else if (this.char === CHAR_Z) {\n this.consume();\n return this.return($4HTEH(this.state.result + this.state.buf));\n } else if (this.atEndOfWord()) return this.returnNow($biA0C(this.state.result + this.state.buf));\n else throw this.error(new TomlError(\"Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z\"));\n }\n parseDateTimeFraction() {\n if (isDigit(this.char)) this.consume();\n else if (this.state.buf.length === 1) throw this.error(new TomlError(\"Expected digit in milliseconds\"));\n else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) {\n this.consume();\n this.next(this.parseTimeZoneHour);\n } else if (this.char === CHAR_Z) {\n this.consume();\n return this.return($4HTEH(this.state.result + this.state.buf));\n } else if (this.atEndOfWord()) return this.returnNow($biA0C(this.state.result + this.state.buf));\n else throw this.error(new TomlError(\"Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z\"));\n }\n parseTimeZoneHour() {\n if (isDigit(this.char)) {\n this.consume();\n // FIXME: No more regexps\n if (/\\d\\d$/.test(this.state.buf)) return this.next(this.parseTimeZoneSep);\n } else throw this.error(new TomlError(\"Unexpected character in datetime, expected digit\"));\n }\n parseTimeZoneSep() {\n if (this.char === CHAR_COLON) {\n this.consume();\n this.next(this.parseTimeZoneMin);\n } else throw this.error(new TomlError(\"Unexpected character in datetime, expected colon\"));\n }\n parseTimeZoneMin() {\n if (isDigit(this.char)) {\n this.consume();\n if (/\\d\\d$/.test(this.state.buf)) return this.return($4HTEH(this.state.result + this.state.buf));\n } else throw this.error(new TomlError(\"Unexpected character in datetime, expected digit\"));\n }\n /* BOOLEAN */ parseBoolean() {\n /* istanbul ignore else */ if (this.char === CHAR_t) {\n this.consume();\n return this.next(this.parseTrue_r);\n } else if (this.char === CHAR_f) {\n this.consume();\n return this.next(this.parseFalse_a);\n }\n }\n parseTrue_r() {\n if (this.char === CHAR_r) {\n this.consume();\n return this.next(this.parseTrue_u);\n } else throw this.error(new TomlError(\"Invalid boolean, expected true or false\"));\n }\n parseTrue_u() {\n if (this.char === CHAR_u) {\n this.consume();\n return this.next(this.parseTrue_e);\n } else throw this.error(new TomlError(\"Invalid boolean, expected true or false\"));\n }\n parseTrue_e() {\n if (this.char === CHAR_e) return this.return(true);\n else throw this.error(new TomlError(\"Invalid boolean, expected true or false\"));\n }\n parseFalse_a() {\n if (this.char === CHAR_a) {\n this.consume();\n return this.next(this.parseFalse_l);\n } else throw this.error(new TomlError(\"Invalid boolean, expected true or false\"));\n }\n parseFalse_l() {\n if (this.char === CHAR_l) {\n this.consume();\n return this.next(this.parseFalse_s);\n } else throw this.error(new TomlError(\"Invalid boolean, expected true or false\"));\n }\n parseFalse_s() {\n if (this.char === CHAR_s) {\n this.consume();\n return this.next(this.parseFalse_e);\n } else throw this.error(new TomlError(\"Invalid boolean, expected true or false\"));\n }\n parseFalse_e() {\n if (this.char === CHAR_e) return this.return(false);\n else throw this.error(new TomlError(\"Invalid boolean, expected true or false\"));\n }\n /* INLINE LISTS */ parseInlineList() {\n if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M || this.char === CTRL_J) return null;\n else if (this.char === Parser11.END) throw this.error(new TomlError(\"Unterminated inline array\"));\n else if (this.char === CHAR_NUM) return this.call(this.parseComment);\n else if (this.char === CHAR_RSQB) return this.return(this.state.resultArr || InlineList());\n else return this.callNow(this.parseValue, this.recordInlineListValue);\n }\n recordInlineListValue(value11) {\n if (this.state.resultArr) {\n const listType11 = this.state.resultArr[_contentType];\n const valueType11 = tomlType(value11);\n if (listType11 !== valueType11) throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${listType11} and ${valueType11}`));\n } else this.state.resultArr = InlineList(tomlType(value11));\n if (isFloat(value11) || isInteger(value11)) // unbox now that we've verified they're ok\n this.state.resultArr.push(value11.valueOf());\n else this.state.resultArr.push(value11);\n return this.goto(this.parseInlineListNext);\n }\n parseInlineListNext() {\n if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M || this.char === CTRL_J) return null;\n else if (this.char === CHAR_NUM) return this.call(this.parseComment);\n else if (this.char === CHAR_COMMA) return this.next(this.parseInlineList);\n else if (this.char === CHAR_RSQB) return this.goto(this.parseInlineList);\n else throw this.error(new TomlError(\"Invalid character, expected whitespace, comma (,) or close bracket (])\"));\n }\n /* INLINE TABLE */ parseInlineTable() {\n if (this.char === CHAR_SP || this.char === CTRL_I) return null;\n else if (this.char === Parser11.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) throw this.error(new TomlError(\"Unterminated inline array\"));\n else if (this.char === CHAR_RCUB) return this.return(this.state.resultTable || InlineTable());\n else {\n if (!this.state.resultTable) this.state.resultTable = InlineTable();\n return this.callNow(this.parseAssign, this.recordInlineTableValue);\n }\n }\n recordInlineTableValue(kv11) {\n let target11 = this.state.resultTable;\n let finalKey11 = kv11.key.pop();\n for (let kw11 of kv11.key){\n if (hasKey(target11, kw11) && (!isTable(target11[kw11]) || target11[kw11][_declared])) throw this.error(new TomlError(\"Can't redefine existing key\"));\n target11 = target11[kw11] = target11[kw11] || Table();\n }\n if (hasKey(target11, finalKey11)) throw this.error(new TomlError(\"Can't redefine existing key\"));\n if (isInteger(kv11.value) || isFloat(kv11.value)) target11[finalKey11] = kv11.value.valueOf();\n else target11[finalKey11] = kv11.value;\n return this.goto(this.parseInlineTableNext);\n }\n parseInlineTableNext() {\n if (this.char === CHAR_SP || this.char === CTRL_I) return null;\n else if (this.char === Parser11.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) throw this.error(new TomlError(\"Unterminated inline array\"));\n else if (this.char === CHAR_COMMA) return this.next(this.parseInlineTable);\n else if (this.char === CHAR_RCUB) return this.goto(this.parseInlineTable);\n else throw this.error(new TomlError(\"Invalid character, expected whitespace, comma (,) or close bracket (])\"));\n }\n }\n return TOMLParser11;\n}\n\n});\nparcelRequire.register(\"fd397\", function(module, exports) {\n\"use strict\";\nconst $b12a82a5bb56e2de$var$ParserEND = 0x110000;\nclass $b12a82a5bb56e2de$var$ParserError extends Error {\n /* istanbul ignore next */ constructor(msg, filename, linenumber){\n super(\"[ParserError] \" + msg, filename, linenumber);\n this.name = \"ParserError\";\n this.code = \"ParserError\";\n if (Error.captureStackTrace) Error.captureStackTrace(this, $b12a82a5bb56e2de$var$ParserError);\n }\n}\nclass $b12a82a5bb56e2de$var$State {\n constructor(parser){\n this.parser = parser;\n this.buf = \"\";\n this.returned = null;\n this.result = null;\n this.resultTable = null;\n this.resultArr = null;\n }\n}\nclass $b12a82a5bb56e2de$var$Parser {\n constructor(){\n this.pos = 0;\n this.col = 0;\n this.line = 0;\n this.obj = {};\n this.ctx = this.obj;\n this.stack = [];\n this._buf = \"\";\n this.char = null;\n this.ii = 0;\n this.state = new $b12a82a5bb56e2de$var$State(this.parseStart);\n }\n parse(str) {\n /* istanbul ignore next */ if (str.length === 0 || str.length == null) return;\n this._buf = String(str);\n this.ii = -1;\n this.char = -1;\n let getNext;\n while(getNext === false || this.nextChar())getNext = this.runOne();\n this._buf = null;\n }\n nextChar() {\n if (this.char === 0x0A) {\n ++this.line;\n this.col = -1;\n }\n ++this.ii;\n this.char = this._buf.codePointAt(this.ii);\n ++this.pos;\n ++this.col;\n return this.haveBuffer();\n }\n haveBuffer() {\n return this.ii < this._buf.length;\n }\n runOne() {\n return this.state.parser.call(this, this.state.returned);\n }\n finish() {\n this.char = $b12a82a5bb56e2de$var$ParserEND;\n let last;\n do {\n last = this.state.parser;\n this.runOne();\n }while (this.state.parser !== last);\n this.ctx = null;\n this.state = null;\n this._buf = null;\n return this.obj;\n }\n next(fn) {\n /* istanbul ignore next */ if (typeof fn !== \"function\") throw new $b12a82a5bb56e2de$var$ParserError(\"Tried to set state to non-existent state: \" + JSON.stringify(fn));\n this.state.parser = fn;\n }\n goto(fn) {\n this.next(fn);\n return this.runOne();\n }\n call(fn, returnWith) {\n if (returnWith) this.next(returnWith);\n this.stack.push(this.state);\n this.state = new $b12a82a5bb56e2de$var$State(fn);\n }\n callNow(fn, returnWith) {\n this.call(fn, returnWith);\n return this.runOne();\n }\n return(value) {\n /* istanbul ignore next */ if (this.stack.length === 0) throw this.error(new $b12a82a5bb56e2de$var$ParserError(\"Stack underflow\"));\n if (value === undefined) value = this.state.buf;\n this.state = this.stack.pop();\n this.state.returned = value;\n }\n returnNow(value) {\n this.return(value);\n return this.runOne();\n }\n consume() {\n /* istanbul ignore next */ if (this.char === $b12a82a5bb56e2de$var$ParserEND) throw this.error(new $b12a82a5bb56e2de$var$ParserError(\"Unexpected end-of-buffer\"));\n this.state.buf += this._buf[this.ii];\n }\n error(err) {\n err.line = this.line;\n err.col = this.col;\n err.pos = this.pos;\n return err;\n }\n /* istanbul ignore next */ parseStart() {\n throw new $b12a82a5bb56e2de$var$ParserError(\"Must declare a parseStart method\");\n }\n}\n$b12a82a5bb56e2de$var$Parser.END = $b12a82a5bb56e2de$var$ParserEND;\n$b12a82a5bb56e2de$var$Parser.Error = $b12a82a5bb56e2de$var$ParserError;\nmodule.exports = $b12a82a5bb56e2de$var$Parser;\n\n});\n\nparcelRequire.register(\"4HTEH\", function(module, exports) {\n\"use strict\";\nmodule.exports = (value)=>{\n const date = new Date(value);\n /* istanbul ignore if */ if (isNaN(date)) throw new TypeError(\"Invalid Datetime\");\n else return date;\n};\n\n});\n\nparcelRequire.register(\"biA0C\", function(module, exports) {\n\"use strict\";\n\nvar $1fZYw = parcelRequire(\"1fZYw\");\nclass $839d4ec4b1365bff$var$FloatingDateTime extends Date {\n constructor(value){\n super(value + \"Z\");\n this.isFloating = true;\n }\n toISOString() {\n const date = `${this.getUTCFullYear()}-${$1fZYw(2, this.getUTCMonth() + 1)}-${$1fZYw(2, this.getUTCDate())}`;\n const time = `${$1fZYw(2, this.getUTCHours())}:${$1fZYw(2, this.getUTCMinutes())}:${$1fZYw(2, this.getUTCSeconds())}.${$1fZYw(3, this.getUTCMilliseconds())}`;\n return `${date}T${time}`;\n }\n}\nmodule.exports = (value)=>{\n const date = new $839d4ec4b1365bff$var$FloatingDateTime(value);\n /* istanbul ignore if */ if (isNaN(date)) throw new TypeError(\"Invalid Datetime\");\n else return date;\n};\n\n});\nparcelRequire.register(\"1fZYw\", function(module, exports) {\n\"use strict\";\nmodule.exports = (d, num)=>{\n num = String(num);\n while(num.length < d)num = \"0\" + num;\n return num;\n};\n\n});\n\n\nparcelRequire.register(\"51zGI\", function(module, exports) {\n\"use strict\";\n\nvar $1fZYw = parcelRequire(\"1fZYw\");\nconst $3a88baa60d3d0f68$var$DateTime = $parcel$global.Date;\nclass $3a88baa60d3d0f68$var$Date extends $3a88baa60d3d0f68$var$DateTime {\n constructor(value){\n super(value);\n this.isDate = true;\n }\n toISOString() {\n return `${this.getUTCFullYear()}-${$1fZYw(2, this.getUTCMonth() + 1)}-${$1fZYw(2, this.getUTCDate())}`;\n }\n}\nmodule.exports = (value)=>{\n const date = new $3a88baa60d3d0f68$var$Date(value);\n /* istanbul ignore if */ if (isNaN(date)) throw new TypeError(\"Invalid Datetime\");\n else return date;\n};\n\n});\n\nparcelRequire.register(\"8bnbQ\", function(module, exports) {\n\"use strict\";\n\nvar $1fZYw = parcelRequire(\"1fZYw\");\nclass $5f5156dd3a5e621f$var$Time extends Date {\n constructor(value){\n super(`0000-01-01T${value}Z`);\n this.isTime = true;\n }\n toISOString() {\n return `${$1fZYw(2, this.getUTCHours())}:${$1fZYw(2, this.getUTCMinutes())}:${$1fZYw(2, this.getUTCSeconds())}.${$1fZYw(3, this.getUTCMilliseconds())}`;\n }\n}\nmodule.exports = (value)=>{\n const date = new $5f5156dd3a5e621f$var$Time(value);\n /* istanbul ignore if */ if (isNaN(date)) throw new TypeError(\"Invalid Datetime\");\n else return date;\n};\n\n});\n\n\nparcelRequire.register(\"gBYD8\", function(module, exports) {\n\"use strict\";\nmodule.exports = $c17f21ea45a7ef68$var$prettyError;\nfunction $c17f21ea45a7ef68$var$prettyError(err, buf) {\n /* istanbul ignore if */ if (err.pos == null || err.line == null) return err;\n let msg = err.message;\n msg += ` at row ${err.line + 1}, col ${err.col + 1}, pos ${err.pos}:\\n`;\n /* istanbul ignore else */ if (buf && buf.split) {\n const lines = buf.split(/\\n/);\n const lineNumWidth = String(Math.min(lines.length, err.line + 3)).length;\n let linePadding = \" \";\n while(linePadding.length < lineNumWidth)linePadding += \" \";\n for(let ii = Math.max(0, err.line - 1); ii < Math.min(lines.length, err.line + 2); ++ii){\n let lineNum = String(ii + 1);\n if (lineNum.length < lineNumWidth) lineNum = \" \" + lineNum;\n if (err.line === ii) {\n msg += lineNum + \"> \" + lines[ii] + \"\\n\";\n msg += linePadding + \" \";\n for(let hh = 0; hh < err.col; ++hh)msg += \" \";\n msg += \"^\\n\";\n } else msg += lineNum + \": \" + lines[ii] + \"\\n\";\n }\n }\n err.message = msg + \"\\n\";\n return err;\n}\n\n});\n\n\nparcelRequire.register(\"2S5Eu\", function(module, exports) {\n\"use strict\";\nmodule.exports = $2175024d897962a1$var$parseAsync;\n\nvar $3XGwc = parcelRequire(\"3XGwc\");\n\nvar $gBYD8 = parcelRequire(\"gBYD8\");\nfunction $2175024d897962a1$var$parseAsync(str, opts) {\n if (!opts) opts = {};\n const index = 0;\n const blocksize = opts.blocksize || 40960;\n const parser = new $3XGwc();\n return new Promise((resolve, reject)=>{\n setImmediate(parseAsyncNext, index, blocksize, resolve, reject);\n });\n function parseAsyncNext(index, blocksize, resolve, reject) {\n if (index >= str.length) try {\n return resolve(parser.finish());\n } catch (err) {\n return reject($gBYD8(err, str));\n }\n try {\n parser.parse(str.slice(index, index + blocksize));\n setImmediate(parseAsyncNext, index + blocksize, blocksize, resolve, reject);\n } catch (err) {\n reject($gBYD8(err, str));\n }\n }\n}\n\n});\n\nparcelRequire.register(\"9JW1y\", function(module, exports) {\n\"use strict\";\nmodule.exports = $7175536318ea75e8$var$parseStream;\n\n\nvar $3XGwc = parcelRequire(\"3XGwc\");\nfunction $7175536318ea75e8$var$parseStream(stm) {\n if (stm) return $7175536318ea75e8$var$parseReadable(stm);\n else return $7175536318ea75e8$var$parseTransform(stm);\n}\nfunction $7175536318ea75e8$var$parseReadable(stm) {\n const parser = new $3XGwc();\n stm.setEncoding(\"utf8\");\n return new Promise((resolve, reject)=>{\n let readable;\n let ended = false;\n let errored = false;\n function finish() {\n ended = true;\n if (readable) return;\n try {\n resolve(parser.finish());\n } catch (err) {\n reject(err);\n }\n }\n function error(err) {\n errored = true;\n reject(err);\n }\n stm.once(\"end\", finish);\n stm.once(\"error\", error);\n readNext();\n function readNext() {\n readable = true;\n let data;\n while((data = stm.read()) !== null)try {\n parser.parse(data);\n } catch (err) {\n return error(err);\n }\n readable = false;\n /* istanbul ignore if */ if (ended) return finish();\n /* istanbul ignore if */ if (errored) return;\n stm.once(\"readable\", readNext);\n }\n });\n}\nfunction $7175536318ea75e8$var$parseTransform() {\n const parser = new $3XGwc();\n return new $kC5q1$stream.Transform({\n objectMode: true,\n transform (chunk, encoding, cb) {\n try {\n parser.parse(chunk.toString(encoding));\n } catch (err) {\n this.emit(\"error\", err);\n }\n cb();\n },\n flush (cb) {\n try {\n this.push(parser.finish());\n } catch (err) {\n this.emit(\"error\", err);\n }\n cb();\n }\n });\n}\n\n});\n\n\nparcelRequire.register(\"bhUE6\", function(module, exports) {\n\"use strict\";\nmodule.exports = $837d38e9359e26df$var$stringify;\nmodule.exports.value = $837d38e9359e26df$var$stringifyInline;\nfunction $837d38e9359e26df$var$stringify(obj) {\n if (obj === null) throw $837d38e9359e26df$var$typeError(\"null\");\n if (obj === void 0) throw $837d38e9359e26df$var$typeError(\"undefined\");\n if (typeof obj !== \"object\") throw $837d38e9359e26df$var$typeError(typeof obj);\n if (typeof obj.toJSON === \"function\") obj = obj.toJSON();\n if (obj == null) return null;\n const type = $837d38e9359e26df$var$tomlType(obj);\n if (type !== \"table\") throw $837d38e9359e26df$var$typeError(type);\n return $837d38e9359e26df$var$stringifyObject(\"\", \"\", obj);\n}\nfunction $837d38e9359e26df$var$typeError(type) {\n return new Error(\"Can only stringify objects, not \" + type);\n}\nfunction $837d38e9359e26df$var$arrayOneTypeError() {\n return new Error(\"Array values can't have mixed types\");\n}\nfunction $837d38e9359e26df$var$getInlineKeys(obj) {\n return Object.keys(obj).filter((key)=>$837d38e9359e26df$var$isInline(obj[key]));\n}\nfunction $837d38e9359e26df$var$getComplexKeys(obj) {\n return Object.keys(obj).filter((key)=>!$837d38e9359e26df$var$isInline(obj[key]));\n}\nfunction $837d38e9359e26df$var$toJSON(obj) {\n let nobj = Array.isArray(obj) ? [] : Object.prototype.hasOwnProperty.call(obj, \"__proto__\") ? {\n [\"__proto__\"]: undefined\n } : {};\n for (let prop of Object.keys(obj))if (obj[prop] && typeof obj[prop].toJSON === \"function\" && !(\"toISOString\" in obj[prop])) nobj[prop] = obj[prop].toJSON();\n else nobj[prop] = obj[prop];\n return nobj;\n}\nfunction $837d38e9359e26df$var$stringifyObject(prefix, indent, obj) {\n obj = $837d38e9359e26df$var$toJSON(obj);\n var inlineKeys;\n var complexKeys;\n inlineKeys = $837d38e9359e26df$var$getInlineKeys(obj);\n complexKeys = $837d38e9359e26df$var$getComplexKeys(obj);\n var result = [];\n var inlineIndent = indent || \"\";\n inlineKeys.forEach((key)=>{\n var type = $837d38e9359e26df$var$tomlType(obj[key]);\n if (type !== \"undefined\" && type !== \"null\") result.push(inlineIndent + $837d38e9359e26df$var$stringifyKey(key) + \" = \" + $837d38e9359e26df$var$stringifyAnyInline(obj[key], true));\n });\n if (result.length > 0) result.push(\"\");\n var complexIndent = prefix && inlineKeys.length > 0 ? indent + \" \" : \"\";\n complexKeys.forEach((key)=>{\n result.push($837d38e9359e26df$var$stringifyComplex(prefix, complexIndent, key, obj[key]));\n });\n return result.join(\"\\n\");\n}\nfunction $837d38e9359e26df$var$isInline(value) {\n switch($837d38e9359e26df$var$tomlType(value)){\n case \"undefined\":\n case \"null\":\n case \"integer\":\n case \"nan\":\n case \"float\":\n case \"boolean\":\n case \"string\":\n case \"datetime\":\n return true;\n case \"array\":\n return value.length === 0 || $837d38e9359e26df$var$tomlType(value[0]) !== \"table\";\n case \"table\":\n return Object.keys(value).length === 0;\n /* istanbul ignore next */ default:\n return false;\n }\n}\nfunction $837d38e9359e26df$var$tomlType(value) {\n if (value === undefined) return \"undefined\";\n else if (value === null) return \"null\";\n else if (typeof value === \"bigint\" || Number.isInteger(value) && !Object.is(value, -0)) return \"integer\";\n else if (typeof value === \"number\") return \"float\";\n else if (typeof value === \"boolean\") return \"boolean\";\n else if (typeof value === \"string\") return \"string\";\n else if (\"toISOString\" in value) return isNaN(value) ? \"undefined\" : \"datetime\";\n else if (Array.isArray(value)) return \"array\";\n else return \"table\";\n}\nfunction $837d38e9359e26df$var$stringifyKey(key) {\n var keyStr = String(key);\n if (/^[-A-Za-z0-9_]+$/.test(keyStr)) return keyStr;\n else return $837d38e9359e26df$var$stringifyBasicString(keyStr);\n}\nfunction $837d38e9359e26df$var$stringifyBasicString(str) {\n return '\"' + $837d38e9359e26df$var$escapeString(str).replace(/\"/g, '\\\\\"') + '\"';\n}\nfunction $837d38e9359e26df$var$stringifyLiteralString(str) {\n return \"'\" + str + \"'\";\n}\nfunction $837d38e9359e26df$var$numpad(num, str) {\n while(str.length < num)str = \"0\" + str;\n return str;\n}\nfunction $837d38e9359e26df$var$escapeString(str) {\n return str.replace(/\\\\/g, \"\\\\\\\\\").replace(/[\\b]/g, \"\\\\b\").replace(/\\t/g, \"\\\\t\").replace(/\\n/g, \"\\\\n\").replace(/\\f/g, \"\\\\f\").replace(/\\r/g, \"\\\\r\")/* eslint-disable no-control-regex */ .replace(/([\\u0000-\\u001f\\u007f])/, (c)=>\"\\\\u\" + $837d38e9359e26df$var$numpad(4, c.codePointAt(0).toString(16)));\n/* eslint-enable no-control-regex */ }\nfunction $837d38e9359e26df$var$stringifyMultilineString(str) {\n let escaped = str.split(/\\n/).map((str)=>{\n return $837d38e9359e26df$var$escapeString(str).replace(/\"(?=\"\")/g, '\\\\\"');\n }).join(\"\\n\");\n if (escaped.slice(-1) === '\"') escaped += \"\\\\\\n\";\n return '\"\"\"\\n' + escaped + '\"\"\"';\n}\nfunction $837d38e9359e26df$var$stringifyAnyInline(value, multilineOk) {\n let type = $837d38e9359e26df$var$tomlType(value);\n if (type === \"string\") {\n if (multilineOk && /\\n/.test(value)) type = \"string-multiline\";\n else if (!/[\\b\\t\\n\\f\\r']/.test(value) && /\"/.test(value)) type = \"string-literal\";\n }\n return $837d38e9359e26df$var$stringifyInline(value, type);\n}\nfunction $837d38e9359e26df$var$stringifyInline(value, type) {\n /* istanbul ignore if */ if (!type) type = $837d38e9359e26df$var$tomlType(value);\n switch(type){\n case \"string-multiline\":\n return $837d38e9359e26df$var$stringifyMultilineString(value);\n case \"string\":\n return $837d38e9359e26df$var$stringifyBasicString(value);\n case \"string-literal\":\n return $837d38e9359e26df$var$stringifyLiteralString(value);\n case \"integer\":\n return $837d38e9359e26df$var$stringifyInteger(value);\n case \"float\":\n return $837d38e9359e26df$var$stringifyFloat(value);\n case \"boolean\":\n return $837d38e9359e26df$var$stringifyBoolean(value);\n case \"datetime\":\n return $837d38e9359e26df$var$stringifyDatetime(value);\n case \"array\":\n return $837d38e9359e26df$var$stringifyInlineArray(value.filter((_)=>$837d38e9359e26df$var$tomlType(_) !== \"null\" && $837d38e9359e26df$var$tomlType(_) !== \"undefined\" && $837d38e9359e26df$var$tomlType(_) !== \"nan\"));\n case \"table\":\n return $837d38e9359e26df$var$stringifyInlineTable(value);\n /* istanbul ignore next */ default:\n throw $837d38e9359e26df$var$typeError(type);\n }\n}\nfunction $837d38e9359e26df$var$stringifyInteger(value) {\n /* eslint-disable security/detect-unsafe-regex */ return String(value).replace(/\\B(?=(\\d{3})+(?!\\d))/g, \"_\");\n}\nfunction $837d38e9359e26df$var$stringifyFloat(value) {\n if (value === Infinity) return \"inf\";\n else if (value === -Infinity) return \"-inf\";\n else if (Object.is(value, NaN)) return \"nan\";\n else if (Object.is(value, -0)) return \"-0.0\";\n var chunks = String(value).split(\".\");\n var int = chunks[0];\n var dec = chunks[1] || 0;\n return $837d38e9359e26df$var$stringifyInteger(int) + \".\" + dec;\n}\nfunction $837d38e9359e26df$var$stringifyBoolean(value) {\n return String(value);\n}\nfunction $837d38e9359e26df$var$stringifyDatetime(value) {\n return value.toISOString();\n}\nfunction $837d38e9359e26df$var$isNumber(type) {\n return type === \"float\" || type === \"integer\";\n}\nfunction $837d38e9359e26df$var$arrayType(values) {\n var contentType = $837d38e9359e26df$var$tomlType(values[0]);\n if (values.every((_)=>$837d38e9359e26df$var$tomlType(_) === contentType)) return contentType;\n // mixed integer/float, emit as floats\n if (values.every((_)=>$837d38e9359e26df$var$isNumber($837d38e9359e26df$var$tomlType(_)))) return \"float\";\n return \"mixed\";\n}\nfunction $837d38e9359e26df$var$validateArray(values) {\n const type = $837d38e9359e26df$var$arrayType(values);\n if (type === \"mixed\") throw $837d38e9359e26df$var$arrayOneTypeError();\n return type;\n}\nfunction $837d38e9359e26df$var$stringifyInlineArray(values) {\n values = $837d38e9359e26df$var$toJSON(values);\n const type = $837d38e9359e26df$var$validateArray(values);\n var result = \"[\";\n var stringified = values.map((_)=>$837d38e9359e26df$var$stringifyInline(_, type));\n if (stringified.join(\", \").length > 60 || /\\n/.test(stringified)) result += \"\\n \" + stringified.join(\",\\n \") + \"\\n\";\n else result += \" \" + stringified.join(\", \") + (stringified.length > 0 ? \" \" : \"\");\n return result + \"]\";\n}\nfunction $837d38e9359e26df$var$stringifyInlineTable(value) {\n value = $837d38e9359e26df$var$toJSON(value);\n var result = [];\n Object.keys(value).forEach((key)=>{\n result.push($837d38e9359e26df$var$stringifyKey(key) + \" = \" + $837d38e9359e26df$var$stringifyAnyInline(value[key], false));\n });\n return \"{ \" + result.join(\", \") + (result.length > 0 ? \" \" : \"\") + \"}\";\n}\nfunction $837d38e9359e26df$var$stringifyComplex(prefix, indent, key, value) {\n var valueType = $837d38e9359e26df$var$tomlType(value);\n /* istanbul ignore else */ if (valueType === \"array\") return $837d38e9359e26df$var$stringifyArrayOfTables(prefix, indent, key, value);\n else if (valueType === \"table\") return $837d38e9359e26df$var$stringifyComplexTable(prefix, indent, key, value);\n else throw $837d38e9359e26df$var$typeError(valueType);\n}\nfunction $837d38e9359e26df$var$stringifyArrayOfTables(prefix, indent, key, values) {\n values = $837d38e9359e26df$var$toJSON(values);\n $837d38e9359e26df$var$validateArray(values);\n var firstValueType = $837d38e9359e26df$var$tomlType(values[0]);\n /* istanbul ignore if */ if (firstValueType !== \"table\") throw $837d38e9359e26df$var$typeError(firstValueType);\n var fullKey = prefix + $837d38e9359e26df$var$stringifyKey(key);\n var result = \"\";\n values.forEach((table)=>{\n if (result.length > 0) result += \"\\n\";\n result += indent + \"[[\" + fullKey + \"]]\\n\";\n result += $837d38e9359e26df$var$stringifyObject(fullKey + \".\", indent, table);\n });\n return result;\n}\nfunction $837d38e9359e26df$var$stringifyComplexTable(prefix, indent, key, value) {\n var fullKey = prefix + $837d38e9359e26df$var$stringifyKey(key);\n var result = \"\";\n if ($837d38e9359e26df$var$getInlineKeys(value).length > 0) result += indent + \"[\" + fullKey + \"]\\n\";\n return result + $837d38e9359e26df$var$stringifyObject(fullKey + \".\", indent, value);\n}\n\n});\n\n\n\nparcelRequire.register(\"xjYT4\", function(module, exports) {\n\n$parcel$export(module.exports, \"MANIFEST_URL\", () => $c584a0a2f56824c2$export$f3182c5cb60bb857);\n$parcel$export(module.exports, \"findReleaseFromManifest\", () => $c584a0a2f56824c2$export$45bea79befbd9a23);\n$parcel$export(module.exports, \"getManifest\", () => $c584a0a2f56824c2$export$39e873de56f329d8);\n$parcel$export(module.exports, \"installCpythonFromRelease\", () => $c584a0a2f56824c2$export$e1ffa7cd53152881);\n\n\nvar $2heqc = parcelRequire(\"2heqc\");\n\nvar $9aCWy = parcelRequire(\"9aCWy\");\n\nvar $2mVwa = parcelRequire(\"2mVwa\");\n\nvar $42Mcf = parcelRequire(\"42Mcf\");\nconst $c584a0a2f56824c2$var$TOKEN = $2heqc.getInput(\"token\");\nconst $c584a0a2f56824c2$var$AUTH = !$c584a0a2f56824c2$var$TOKEN ? undefined : `token ${$c584a0a2f56824c2$var$TOKEN}`;\nconst $c584a0a2f56824c2$var$MANIFEST_REPO_OWNER = \"actions\";\nconst $c584a0a2f56824c2$var$MANIFEST_REPO_NAME = \"python-versions\";\nconst $c584a0a2f56824c2$var$MANIFEST_REPO_BRANCH = \"main\";\nconst $c584a0a2f56824c2$export$f3182c5cb60bb857 = `https://raw.githubusercontent.com/${$c584a0a2f56824c2$var$MANIFEST_REPO_OWNER}/${$c584a0a2f56824c2$var$MANIFEST_REPO_NAME}/${$c584a0a2f56824c2$var$MANIFEST_REPO_BRANCH}/versions-manifest.json`;\nasync function $c584a0a2f56824c2$export$45bea79befbd9a23(semanticVersionSpec, architecture, manifest) {\n if (!manifest) manifest = await $c584a0a2f56824c2$export$39e873de56f329d8();\n const foundRelease = await $9aCWy.findFromManifest(semanticVersionSpec, false, manifest, architecture);\n return foundRelease;\n}\nfunction $c584a0a2f56824c2$export$39e873de56f329d8() {\n $2heqc.debug(`Getting manifest from ${$c584a0a2f56824c2$var$MANIFEST_REPO_OWNER}/${$c584a0a2f56824c2$var$MANIFEST_REPO_NAME}@${$c584a0a2f56824c2$var$MANIFEST_REPO_BRANCH}`);\n return $9aCWy.getManifestFromRepo($c584a0a2f56824c2$var$MANIFEST_REPO_OWNER, $c584a0a2f56824c2$var$MANIFEST_REPO_NAME, $c584a0a2f56824c2$var$AUTH, $c584a0a2f56824c2$var$MANIFEST_REPO_BRANCH);\n}\nasync function $c584a0a2f56824c2$var$installPython(workingDirectory) {\n const options = {\n cwd: workingDirectory,\n env: {\n ...process.env,\n ...(0, $42Mcf.IS_LINUX) && {\n LD_LIBRARY_PATH: $kC5q1$path.join(workingDirectory, \"lib\")\n }\n },\n silent: true,\n listeners: {\n stdout: (data)=>{\n $2heqc.info(data.toString().trim());\n },\n stderr: (data)=>{\n $2heqc.error(data.toString().trim());\n }\n }\n };\n if (0, $42Mcf.IS_WINDOWS) await $2mVwa.exec(\"powershell\", [\n \"./setup.ps1\"\n ], options);\n else await $2mVwa.exec(\"bash\", [\n \"./setup.sh\"\n ], options);\n}\nasync function $c584a0a2f56824c2$export$e1ffa7cd53152881(release) {\n const downloadUrl = release.files[0].download_url;\n $2heqc.info(`Download from \"${downloadUrl}\"`);\n let pythonPath = \"\";\n try {\n pythonPath = await $9aCWy.downloadTool(downloadUrl, undefined, $c584a0a2f56824c2$var$AUTH);\n $2heqc.info(\"Extract downloaded archive\");\n let pythonExtractedFolder;\n if (0, $42Mcf.IS_WINDOWS) pythonExtractedFolder = await $9aCWy.extractZip(pythonPath);\n else pythonExtractedFolder = await $9aCWy.extractTar(pythonPath);\n $2heqc.info(\"Execute installation script\");\n await $c584a0a2f56824c2$var$installPython(pythonExtractedFolder);\n } catch (err) {\n if (err instanceof $9aCWy.HTTPError) {\n // Rate limit?\n if (err.httpStatusCode === 403 || err.httpStatusCode === 429) $2heqc.info(`Received HTTP status code ${err.httpStatusCode}. This usually indicates the rate limit has been exceeded`);\n else $2heqc.info(err.message);\n if (err.stack) $2heqc.debug(err.stack);\n }\n throw err;\n }\n}\n\n});\nparcelRequire.register(\"9aCWy\", function(module, exports) {\n\nvar $6ad3419b47fd6a7f$var$$parcel$__dirname = $kC5q1$path.resolve(__dirname, \"../../node_modules/.pnpm/@actions+tool-cache@1.7.2/node_modules/@actions/tool-cache/lib\");\n\"use strict\";\nvar $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$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)) $6ad3419b47fd6a7f$var$__createBinding(result, mod, k);\n }\n $6ad3419b47fd6a7f$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$__importDefault = module.exports && module.exports.__importDefault || function(mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nmodule.exports.evaluateVersions = module.exports.isExplicitVersion = module.exports.findFromManifest = module.exports.getManifestFromRepo = module.exports.findAllVersions = module.exports.find = module.exports.cacheFile = module.exports.cacheDir = module.exports.extractZip = module.exports.extractXar = module.exports.extractTar = module.exports.extract7z = module.exports.downloadTool = module.exports.HTTPError = void 0;\n\nconst $6ad3419b47fd6a7f$var$core = $6ad3419b47fd6a7f$var$__importStar((parcelRequire(\"2heqc\")));\n\nconst $6ad3419b47fd6a7f$var$io = $6ad3419b47fd6a7f$var$__importStar((parcelRequire(\"kSdX3\")));\n\nconst $6ad3419b47fd6a7f$var$fs = $6ad3419b47fd6a7f$var$__importStar($kC5q1$fs);\n\nconst $6ad3419b47fd6a7f$var$mm = $6ad3419b47fd6a7f$var$__importStar((parcelRequire(\"1Zp5D\")));\n\nconst $6ad3419b47fd6a7f$var$os = $6ad3419b47fd6a7f$var$__importStar($kC5q1$os);\n\nconst $6ad3419b47fd6a7f$var$path = $6ad3419b47fd6a7f$var$__importStar($kC5q1$path);\n\nconst $6ad3419b47fd6a7f$var$httpm = $6ad3419b47fd6a7f$var$__importStar((parcelRequire(\"7FuP1\")));\n\nconst $6ad3419b47fd6a7f$var$semver = $6ad3419b47fd6a7f$var$__importStar((parcelRequire(\"3BvyU\")));\n\nconst $6ad3419b47fd6a7f$var$stream = $6ad3419b47fd6a7f$var$__importStar($kC5q1$stream);\n\nconst $6ad3419b47fd6a7f$var$util = $6ad3419b47fd6a7f$var$__importStar($kC5q1$util);\n\nconst $6ad3419b47fd6a7f$var$v4_1 = $6ad3419b47fd6a7f$var$__importDefault((parcelRequire(\"bxsAi\")));\n\nvar $2mVwa = parcelRequire(\"2mVwa\");\n\n\nvar $2yfZv = parcelRequire(\"2yfZv\");\nclass $6ad3419b47fd6a7f$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}\nmodule.exports.HTTPError = $6ad3419b47fd6a7f$var$HTTPError;\nconst $6ad3419b47fd6a7f$var$IS_WINDOWS = process.platform === \"win32\";\nconst $6ad3419b47fd6a7f$var$IS_MAC = process.platform === \"darwin\";\nconst $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$downloadTool(url, dest, auth, headers) {\n return $6ad3419b47fd6a7f$var$__awaiter(this, void 0, void 0, function*() {\n dest = dest || $6ad3419b47fd6a7f$var$path.join($6ad3419b47fd6a7f$var$_getTempDirectory(), $6ad3419b47fd6a7f$var$v4_1.default());\n yield $6ad3419b47fd6a7f$var$io.mkdirP($6ad3419b47fd6a7f$var$path.dirname(dest));\n $6ad3419b47fd6a7f$var$core.debug(`Downloading ${url}`);\n $6ad3419b47fd6a7f$var$core.debug(`Destination ${dest}`);\n const maxAttempts = 3;\n const minSeconds = $6ad3419b47fd6a7f$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS\", 10);\n const maxSeconds = $6ad3419b47fd6a7f$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS\", 20);\n const retryHelper = new $2yfZv.RetryHelper(maxAttempts, minSeconds, maxSeconds);\n return yield retryHelper.execute(()=>$6ad3419b47fd6a7f$var$__awaiter(this, void 0, void 0, function*() {\n return yield $6ad3419b47fd6a7f$var$downloadToolAttempt(url, dest || \"\", auth, headers);\n }), (err)=>{\n if (err instanceof $6ad3419b47fd6a7f$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}\nmodule.exports.downloadTool = $6ad3419b47fd6a7f$var$downloadTool;\nfunction $6ad3419b47fd6a7f$var$downloadToolAttempt(url, dest, auth, headers) {\n return $6ad3419b47fd6a7f$var$__awaiter(this, void 0, void 0, function*() {\n if ($6ad3419b47fd6a7f$var$fs.existsSync(dest)) throw new Error(`Destination file path ${dest} already exists`);\n // Get the response headers\n const http = new $6ad3419b47fd6a7f$var$httpm.HttpClient($6ad3419b47fd6a7f$var$userAgent, [], {\n allowRetries: false\n });\n if (auth) {\n $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$HTTPError(response.message.statusCode);\n $6ad3419b47fd6a7f$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 = $6ad3419b47fd6a7f$var$util.promisify($6ad3419b47fd6a7f$var$stream.pipeline);\n const responseMessageFactory = $6ad3419b47fd6a7f$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY\", ()=>response.message);\n const readStream = responseMessageFactory();\n let succeeded = false;\n try {\n yield pipeline(readStream, $6ad3419b47fd6a7f$var$fs.createWriteStream(dest));\n $6ad3419b47fd6a7f$var$core.debug(\"download complete\");\n succeeded = true;\n return dest;\n } finally{\n // Error, delete dest before retry\n if (!succeeded) {\n $6ad3419b47fd6a7f$var$core.debug(\"download failed\");\n try {\n yield $6ad3419b47fd6a7f$var$io.rmRF(dest);\n } catch (err) {\n $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$extract7z(file, dest, _7zPath) {\n return $6ad3419b47fd6a7f$var$__awaiter(this, void 0, void 0, function*() {\n $kC5q1$assert.ok($6ad3419b47fd6a7f$var$IS_WINDOWS, \"extract7z() not supported on current OS\");\n $kC5q1$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $6ad3419b47fd6a7f$var$_createExtractFolder(dest);\n const originalCwd = process.cwd();\n process.chdir(dest);\n if (_7zPath) try {\n const logLevel = $6ad3419b47fd6a7f$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 $2mVwa.exec(`\"${_7zPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n else {\n const escapedScript = $6ad3419b47fd6a7f$var$path.join($6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$io.which(\"powershell\", true);\n yield $2mVwa.exec(`\"${powershellPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n }\n return dest;\n });\n}\nmodule.exports.extract7z = $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$extractTar(file, dest, flags = \"xz\") {\n return $6ad3419b47fd6a7f$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n // Create dest\n dest = yield $6ad3419b47fd6a7f$var$_createExtractFolder(dest);\n // Determine whether GNU tar\n $6ad3419b47fd6a7f$var$core.debug(\"Checking tar --version\");\n let versionOutput = \"\";\n yield $2mVwa.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 $6ad3419b47fd6a7f$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 ($6ad3419b47fd6a7f$var$core.isDebug() && !flags.includes(\"v\")) args.push(\"-v\");\n let destArg = dest;\n let fileArg = file;\n if ($6ad3419b47fd6a7f$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 $2mVwa.exec(`tar`, args);\n return dest;\n });\n}\nmodule.exports.extractTar = $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$extractXar(file, dest, flags = []) {\n return $6ad3419b47fd6a7f$var$__awaiter(this, void 0, void 0, function*() {\n $kC5q1$assert.ok($6ad3419b47fd6a7f$var$IS_MAC, \"extractXar() not supported on current OS\");\n $kC5q1$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $6ad3419b47fd6a7f$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 ($6ad3419b47fd6a7f$var$core.isDebug()) args.push(\"-v\");\n const xarPath = yield $6ad3419b47fd6a7f$var$io.which(\"xar\", true);\n yield $2mVwa.exec(`\"${xarPath}\"`, $6ad3419b47fd6a7f$var$_unique(args));\n return dest;\n });\n}\nmodule.exports.extractXar = $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$extractZip(file, dest) {\n return $6ad3419b47fd6a7f$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n dest = yield $6ad3419b47fd6a7f$var$_createExtractFolder(dest);\n if ($6ad3419b47fd6a7f$var$IS_WINDOWS) yield $6ad3419b47fd6a7f$var$extractZipWin(file, dest);\n else yield $6ad3419b47fd6a7f$var$extractZipNix(file, dest);\n return dest;\n });\n}\nmodule.exports.extractZip = $6ad3419b47fd6a7f$var$extractZip;\nfunction $6ad3419b47fd6a7f$var$extractZipWin(file, dest) {\n return $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$core.debug(`Using pwsh at path: ${pwshPath}`);\n yield $2mVwa.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 $6ad3419b47fd6a7f$var$io.which(\"powershell\", true);\n $6ad3419b47fd6a7f$var$core.debug(`Using powershell at path: ${powershellPath}`);\n yield $2mVwa.exec(`\"${powershellPath}\"`, args);\n }\n });\n}\nfunction $6ad3419b47fd6a7f$var$extractZipNix(file, dest) {\n return $6ad3419b47fd6a7f$var$__awaiter(this, void 0, void 0, function*() {\n const unzipPath = yield $6ad3419b47fd6a7f$var$io.which(\"unzip\", true);\n const args = [\n file\n ];\n if (!$6ad3419b47fd6a7f$var$core.isDebug()) args.unshift(\"-q\");\n args.unshift(\"-o\"); //overwrite with -o, otherwise a prompt is shown which freezes the run\n yield $2mVwa.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 $6ad3419b47fd6a7f$var$cacheDir(sourceDir, tool, version, arch) {\n return $6ad3419b47fd6a7f$var$__awaiter(this, void 0, void 0, function*() {\n version = $6ad3419b47fd6a7f$var$semver.clean(version) || version;\n arch = arch || $6ad3419b47fd6a7f$var$os.arch();\n $6ad3419b47fd6a7f$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $6ad3419b47fd6a7f$var$core.debug(`source dir: ${sourceDir}`);\n if (!$6ad3419b47fd6a7f$var$fs.statSync(sourceDir).isDirectory()) throw new Error(\"sourceDir is not a directory\");\n // Create the tool dir\n const destPath = yield $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$fs.readdirSync(sourceDir)){\n const s = $6ad3419b47fd6a7f$var$path.join(sourceDir, itemName);\n yield $6ad3419b47fd6a7f$var$io.cp(s, destPath, {\n recursive: true\n });\n }\n // write .complete\n $6ad3419b47fd6a7f$var$_completeToolPath(tool, version, arch);\n return destPath;\n });\n}\nmodule.exports.cacheDir = $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$cacheFile(sourceFile, targetFile, tool, version, arch) {\n return $6ad3419b47fd6a7f$var$__awaiter(this, void 0, void 0, function*() {\n version = $6ad3419b47fd6a7f$var$semver.clean(version) || version;\n arch = arch || $6ad3419b47fd6a7f$var$os.arch();\n $6ad3419b47fd6a7f$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $6ad3419b47fd6a7f$var$core.debug(`source file: ${sourceFile}`);\n if (!$6ad3419b47fd6a7f$var$fs.statSync(sourceFile).isFile()) throw new Error(\"sourceFile is not a file\");\n // create the tool dir\n const destFolder = yield $6ad3419b47fd6a7f$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 = $6ad3419b47fd6a7f$var$path.join(destFolder, targetFile);\n $6ad3419b47fd6a7f$var$core.debug(`destination file ${destPath}`);\n yield $6ad3419b47fd6a7f$var$io.cp(sourceFile, destPath);\n // write .complete\n $6ad3419b47fd6a7f$var$_completeToolPath(tool, version, arch);\n return destFolder;\n });\n}\nmodule.exports.cacheFile = $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$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 || $6ad3419b47fd6a7f$var$os.arch();\n // attempt to resolve an explicit version\n if (!$6ad3419b47fd6a7f$var$isExplicitVersion(versionSpec)) {\n const localVersions = $6ad3419b47fd6a7f$var$findAllVersions(toolName, arch);\n const match = $6ad3419b47fd6a7f$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 = $6ad3419b47fd6a7f$var$semver.clean(versionSpec) || \"\";\n const cachePath = $6ad3419b47fd6a7f$var$path.join($6ad3419b47fd6a7f$var$_getCacheDirectory(), toolName, versionSpec, arch);\n $6ad3419b47fd6a7f$var$core.debug(`checking cache: ${cachePath}`);\n if ($6ad3419b47fd6a7f$var$fs.existsSync(cachePath) && $6ad3419b47fd6a7f$var$fs.existsSync(`${cachePath}.complete`)) {\n $6ad3419b47fd6a7f$var$core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);\n toolPath = cachePath;\n } else $6ad3419b47fd6a7f$var$core.debug(\"not found\");\n }\n return toolPath;\n}\nmodule.exports.find = $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$findAllVersions(toolName, arch) {\n const versions = [];\n arch = arch || $6ad3419b47fd6a7f$var$os.arch();\n const toolPath = $6ad3419b47fd6a7f$var$path.join($6ad3419b47fd6a7f$var$_getCacheDirectory(), toolName);\n if ($6ad3419b47fd6a7f$var$fs.existsSync(toolPath)) {\n const children = $6ad3419b47fd6a7f$var$fs.readdirSync(toolPath);\n for (const child of children)if ($6ad3419b47fd6a7f$var$isExplicitVersion(child)) {\n const fullPath = $6ad3419b47fd6a7f$var$path.join(toolPath, child, arch || \"\");\n if ($6ad3419b47fd6a7f$var$fs.existsSync(fullPath) && $6ad3419b47fd6a7f$var$fs.existsSync(`${fullPath}.complete`)) versions.push(child);\n }\n }\n return versions;\n}\nmodule.exports.findAllVersions = $6ad3419b47fd6a7f$var$findAllVersions;\nfunction $6ad3419b47fd6a7f$var$getManifestFromRepo(owner, repo, auth, branch = \"master\") {\n return $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$httpm.HttpClient(\"tool-cache\");\n const headers = {};\n if (auth) {\n $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$core.debug(\"Invalid json\");\n }\n }\n return releases;\n });\n}\nmodule.exports.getManifestFromRepo = $6ad3419b47fd6a7f$var$getManifestFromRepo;\nfunction $6ad3419b47fd6a7f$var$findFromManifest(versionSpec, stable, manifest, archFilter = $6ad3419b47fd6a7f$var$os.arch()) {\n return $6ad3419b47fd6a7f$var$__awaiter(this, void 0, void 0, function*() {\n // wrap the internal impl\n const match = yield $6ad3419b47fd6a7f$var$mm._findMatch(versionSpec, stable, manifest, archFilter);\n return match;\n });\n}\nmodule.exports.findFromManifest = $6ad3419b47fd6a7f$var$findFromManifest;\nfunction $6ad3419b47fd6a7f$var$_createExtractFolder(dest) {\n return $6ad3419b47fd6a7f$var$__awaiter(this, void 0, void 0, function*() {\n if (!dest) // create a temp dir\n dest = $6ad3419b47fd6a7f$var$path.join($6ad3419b47fd6a7f$var$_getTempDirectory(), $6ad3419b47fd6a7f$var$v4_1.default());\n yield $6ad3419b47fd6a7f$var$io.mkdirP(dest);\n return dest;\n });\n}\nfunction $6ad3419b47fd6a7f$var$_createToolPath(tool, version, arch) {\n return $6ad3419b47fd6a7f$var$__awaiter(this, void 0, void 0, function*() {\n const folderPath = $6ad3419b47fd6a7f$var$path.join($6ad3419b47fd6a7f$var$_getCacheDirectory(), tool, $6ad3419b47fd6a7f$var$semver.clean(version) || version, arch || \"\");\n $6ad3419b47fd6a7f$var$core.debug(`destination ${folderPath}`);\n const markerPath = `${folderPath}.complete`;\n yield $6ad3419b47fd6a7f$var$io.rmRF(folderPath);\n yield $6ad3419b47fd6a7f$var$io.rmRF(markerPath);\n yield $6ad3419b47fd6a7f$var$io.mkdirP(folderPath);\n return folderPath;\n });\n}\nfunction $6ad3419b47fd6a7f$var$_completeToolPath(tool, version, arch) {\n const folderPath = $6ad3419b47fd6a7f$var$path.join($6ad3419b47fd6a7f$var$_getCacheDirectory(), tool, $6ad3419b47fd6a7f$var$semver.clean(version) || version, arch || \"\");\n const markerPath = `${folderPath}.complete`;\n $6ad3419b47fd6a7f$var$fs.writeFileSync(markerPath, \"\");\n $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$isExplicitVersion(versionSpec) {\n const c = $6ad3419b47fd6a7f$var$semver.clean(versionSpec) || \"\";\n $6ad3419b47fd6a7f$var$core.debug(`isExplicit: ${c}`);\n const valid = $6ad3419b47fd6a7f$var$semver.valid(c) != null;\n $6ad3419b47fd6a7f$var$core.debug(`explicit? ${valid}`);\n return valid;\n}\nmodule.exports.isExplicitVersion = $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$evaluateVersions(versions, versionSpec) {\n let version = \"\";\n $6ad3419b47fd6a7f$var$core.debug(`evaluating ${versions.length} versions`);\n versions = versions.sort((a, b)=>{\n if ($6ad3419b47fd6a7f$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 = $6ad3419b47fd6a7f$var$semver.satisfies(potential, versionSpec);\n if (satisfied) {\n version = potential;\n break;\n }\n }\n if (version) $6ad3419b47fd6a7f$var$core.debug(`matched: ${version}`);\n else $6ad3419b47fd6a7f$var$core.debug(\"match not found\");\n return version;\n}\nmodule.exports.evaluateVersions = $6ad3419b47fd6a7f$var$evaluateVersions;\n/**\n * Gets RUNNER_TOOL_CACHE\n */ function $6ad3419b47fd6a7f$var$_getCacheDirectory() {\n const cacheDirectory = process.env[\"RUNNER_TOOL_CACHE\"] || \"\";\n $kC5q1$assert.ok(cacheDirectory, \"Expected RUNNER_TOOL_CACHE to be defined\");\n return cacheDirectory;\n}\n/**\n * Gets RUNNER_TEMP\n */ function $6ad3419b47fd6a7f$var$_getTempDirectory() {\n const tempDirectory = process.env[\"RUNNER_TEMP\"] || \"\";\n $kC5q1$assert.ok(tempDirectory, \"Expected RUNNER_TEMP to be defined\");\n return tempDirectory;\n}\n/**\n * Gets a global variable\n */ function $6ad3419b47fd6a7f$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 $6ad3419b47fd6a7f$var$_unique(values) {\n return Array.from(new Set(values));\n}\n\n});\nparcelRequire.register(\"1Zp5D\", function(module, exports) {\n\"use strict\";\nvar $172ef34648361db0$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 $172ef34648361db0$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 $172ef34648361db0$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)) $172ef34648361db0$var$__createBinding(result, mod, k);\n }\n $172ef34648361db0$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $172ef34648361db0$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 $172ef34648361db0$var$semver = $172ef34648361db0$var$__importStar((parcelRequire(\"3BvyU\")));\n\nvar $2heqc = parcelRequire(\"2heqc\");\n\n\n\nfunction $172ef34648361db0$var$_findMatch(versionSpec, stable, candidates, archFilter) {\n return $172ef34648361db0$var$__awaiter(this, void 0, void 0, function*() {\n const platFilter = $kC5q1$os.platform();\n let result;\n let match;\n let file;\n for (const candidate of candidates){\n const version = candidate.version;\n $2heqc.debug(`check ${version} satisfies ${versionSpec}`);\n if ($172ef34648361db0$var$semver.satisfies(version, versionSpec) && (!stable || candidate.stable === stable)) {\n file = candidate.files.find((item)=>{\n $2heqc.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 = $172ef34648361db0$var$semver.satisfies(osVersion, item.platform_version);\n }\n return chk;\n });\n if (file) {\n $2heqc.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 = $172ef34648361db0$var$_findMatch;\nfunction $172ef34648361db0$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 = $kC5q1$os.platform();\n let version = \"\";\n if (plat === \"darwin\") version = $kC5q1$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 = $172ef34648361db0$var$_getOsVersion;\nfunction $172ef34648361db0$var$_readLinuxVersionFile() {\n const lsbReleaseFile = \"/etc/lsb-release\";\n const osReleaseFile = \"/etc/os-release\";\n let contents = \"\";\n if ($kC5q1$fs.existsSync(lsbReleaseFile)) contents = $kC5q1$fs.readFileSync(lsbReleaseFile).toString();\n else if ($kC5q1$fs.existsSync(osReleaseFile)) contents = $kC5q1$fs.readFileSync(osReleaseFile).toString();\n return contents;\n}\nmodule.exports._readLinuxVersionFile = $172ef34648361db0$var$_readLinuxVersionFile;\n\n});\n\nparcelRequire.register(\"7FuP1\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\n\n\n\nvar $kG5AI = parcelRequire(\"kG5AI\");\nlet $59544557ea602607$var$tunnel;\nvar $59544557ea602607$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})($59544557ea602607$var$HttpCodes = module.exports.HttpCodes || (module.exports.HttpCodes = {}));\nvar $59544557ea602607$var$Headers;\n(function(Headers) {\n Headers[\"Accept\"] = \"accept\";\n Headers[\"ContentType\"] = \"content-type\";\n})($59544557ea602607$var$Headers = module.exports.Headers || (module.exports.Headers = {}));\nvar $59544557ea602607$var$MediaTypes;\n(function(MediaTypes) {\n MediaTypes[\"ApplicationJson\"] = \"application/json\";\n})($59544557ea602607$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 $59544557ea602607$var$getProxyUrl(serverUrl) {\n let proxyUrl = $kG5AI.getProxyUrl(new URL(serverUrl));\n return proxyUrl ? proxyUrl.href : \"\";\n}\nmodule.exports.getProxyUrl = $59544557ea602607$var$getProxyUrl;\nconst $59544557ea602607$var$HttpRedirectCodes = [\n $59544557ea602607$var$HttpCodes.MovedPermanently,\n $59544557ea602607$var$HttpCodes.ResourceMoved,\n $59544557ea602607$var$HttpCodes.SeeOther,\n $59544557ea602607$var$HttpCodes.TemporaryRedirect,\n $59544557ea602607$var$HttpCodes.PermanentRedirect\n];\nconst $59544557ea602607$var$HttpResponseRetryCodes = [\n $59544557ea602607$var$HttpCodes.BadGateway,\n $59544557ea602607$var$HttpCodes.ServiceUnavailable,\n $59544557ea602607$var$HttpCodes.GatewayTimeout\n];\nconst $59544557ea602607$var$RetryableHttpVerbs = [\n \"OPTIONS\",\n \"GET\",\n \"DELETE\",\n \"HEAD\"\n];\nconst $59544557ea602607$var$ExponentialBackoffCeiling = 10;\nconst $59544557ea602607$var$ExponentialBackoffTimeSlice = 5;\nclass $59544557ea602607$var$HttpClientError extends Error {\n constructor(message, statusCode){\n super(message);\n this.name = \"HttpClientError\";\n this.statusCode = statusCode;\n Object.setPrototypeOf(this, $59544557ea602607$var$HttpClientError.prototype);\n }\n}\nmodule.exports.HttpClientError = $59544557ea602607$var$HttpClientError;\nclass $59544557ea602607$var$HttpClientResponse {\n constructor(message){\n this.message = message;\n }\n readBody() {\n return new Promise(async (resolve, reject)=>{\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}\nmodule.exports.HttpClientResponse = $59544557ea602607$var$HttpClientResponse;\nfunction $59544557ea602607$var$isHttps(requestUrl) {\n let parsedUrl = new URL(requestUrl);\n return parsedUrl.protocol === \"https:\";\n}\nmodule.exports.isHttps = $59544557ea602607$var$isHttps;\n\nclass $59544557ea602607$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 this.request(\"OPTIONS\", requestUrl, null, additionalHeaders || {});\n }\n get(requestUrl, additionalHeaders) {\n return this.request(\"GET\", requestUrl, null, additionalHeaders || {});\n }\n del(requestUrl, additionalHeaders) {\n return this.request(\"DELETE\", requestUrl, null, additionalHeaders || {});\n }\n post(requestUrl, data, additionalHeaders) {\n return this.request(\"POST\", requestUrl, data, additionalHeaders || {});\n }\n patch(requestUrl, data, additionalHeaders) {\n return this.request(\"PATCH\", requestUrl, data, additionalHeaders || {});\n }\n put(requestUrl, data, additionalHeaders) {\n return this.request(\"PUT\", requestUrl, data, additionalHeaders || {});\n }\n head(requestUrl, additionalHeaders) {\n return this.request(\"HEAD\", requestUrl, null, additionalHeaders || {});\n }\n sendStream(verb, requestUrl, stream, additionalHeaders) {\n return this.request(verb, requestUrl, stream, additionalHeaders);\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 */ async getJson(requestUrl, additionalHeaders = {}) {\n additionalHeaders[$59544557ea602607$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $59544557ea602607$var$Headers.Accept, $59544557ea602607$var$MediaTypes.ApplicationJson);\n let res = await this.get(requestUrl, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n async postJson(requestUrl, obj, additionalHeaders = {}) {\n let data = JSON.stringify(obj, null, 2);\n additionalHeaders[$59544557ea602607$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $59544557ea602607$var$Headers.Accept, $59544557ea602607$var$MediaTypes.ApplicationJson);\n additionalHeaders[$59544557ea602607$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $59544557ea602607$var$Headers.ContentType, $59544557ea602607$var$MediaTypes.ApplicationJson);\n let res = await this.post(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n async putJson(requestUrl, obj, additionalHeaders = {}) {\n let data = JSON.stringify(obj, null, 2);\n additionalHeaders[$59544557ea602607$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $59544557ea602607$var$Headers.Accept, $59544557ea602607$var$MediaTypes.ApplicationJson);\n additionalHeaders[$59544557ea602607$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $59544557ea602607$var$Headers.ContentType, $59544557ea602607$var$MediaTypes.ApplicationJson);\n let res = await this.put(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n async patchJson(requestUrl, obj, additionalHeaders = {}) {\n let data = JSON.stringify(obj, null, 2);\n additionalHeaders[$59544557ea602607$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $59544557ea602607$var$Headers.Accept, $59544557ea602607$var$MediaTypes.ApplicationJson);\n additionalHeaders[$59544557ea602607$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $59544557ea602607$var$Headers.ContentType, $59544557ea602607$var$MediaTypes.ApplicationJson);\n let res = await this.patch(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\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 */ async request(verb, requestUrl, data, headers) {\n if (this._disposed) throw new Error(\"Client has already been disposed.\");\n let 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 let maxTries = this._allowRetries && $59544557ea602607$var$RetryableHttpVerbs.indexOf(verb) != -1 ? this._maxRetries + 1 : 1;\n let numTries = 0;\n let response;\n while(numTries < maxTries){\n response = await this.requestRaw(info, data);\n // Check if it's an authentication challenge\n if (response && response.message && response.message.statusCode === $59544557ea602607$var$HttpCodes.Unauthorized) {\n let authenticationHandler;\n for(let i = 0; i < this.handlers.length; i++)if (this.handlers[i].canHandleAuthentication(response)) {\n authenticationHandler = this.handlers[i];\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($59544557ea602607$var$HttpRedirectCodes.indexOf(response.message.statusCode) != -1 && this._allowRedirects && redirectsRemaining > 0){\n const redirectUrl = response.message.headers[\"location\"];\n if (!redirectUrl) break;\n let 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 await response.readBody();\n // strip authorization header if redirected to a different hostname\n if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {\n for(let 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 = await this.requestRaw(info, data);\n redirectsRemaining--;\n }\n if ($59544557ea602607$var$HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) // If not a retry code, return immediately instead of retrying\n return response;\n numTries += 1;\n if (numTries < maxTries) {\n await response.readBody();\n await this._performExponentialBackoff(numTries);\n }\n }\n return response;\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 new Promise((resolve, reject)=>{\n let callbackForResult = function(err, res) {\n if (err) reject(err);\n resolve(res);\n };\n this.requestRawWithCallback(info, data, callbackForResult);\n });\n }\n /**\n * Raw request with callback.\n * @param info\n * @param data\n * @param onResult\n */ requestRawWithCallback(info, data, onResult) {\n let socket;\n if (typeof data === \"string\") info.options.headers[\"Content-Length\"] = Buffer.byteLength(data, \"utf8\");\n let callbackCalled = false;\n let handleResult = (err, res)=>{\n if (!callbackCalled) {\n callbackCalled = true;\n onResult(err, res);\n }\n };\n let req = info.httpModule.request(info.options, (msg)=>{\n let res = new $59544557ea602607$var$HttpClientResponse(msg);\n handleResult(null, res);\n });\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), null);\n });\n req.on(\"error\", function(err) {\n // err has statusCode property\n // res should have headers\n handleResult(err, null);\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 let 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 ? $kC5q1$https : $kC5q1$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) this.handlers.forEach((handler)=>{\n handler.prepareRequest(info.options);\n });\n return info;\n }\n _mergeHeaders(headers) {\n const lowercaseKeys = (obj)=>Object.keys(obj).reduce((c, k)=>(c[k.toLowerCase()] = obj[k], c), {});\n if (this.requestOptions && this.requestOptions.headers) return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));\n return lowercaseKeys(headers || {});\n }\n _getExistingOrDefaultHeader(additionalHeaders, header, _default) {\n const lowercaseKeys = (obj)=>Object.keys(obj).reduce((c, k)=>(c[k.toLowerCase()] = obj[k], c), {});\n let clientHeader;\n if (this.requestOptions && this.requestOptions.headers) clientHeader = lowercaseKeys(this.requestOptions.headers)[header];\n return additionalHeaders[header] || clientHeader || _default;\n }\n _getAgent(parsedUrl) {\n let agent;\n let proxyUrl = $kG5AI.getProxyUrl(parsedUrl);\n let 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 || $kC5q1$http.globalAgent.maxSockets;\n if (useProxy) {\n // If using proxy, need tunnel\n if (!$59544557ea602607$var$tunnel) $59544557ea602607$var$tunnel = (parcelRequire(\"j6C2A\"));\n const agentOptions = {\n maxSockets: maxSockets,\n keepAlive: this._keepAlive,\n proxy: {\n ...(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 ? $59544557ea602607$var$tunnel.httpsOverHttps : $59544557ea602607$var$tunnel.httpsOverHttp;\n else tunnelAgent = overHttps ? $59544557ea602607$var$tunnel.httpOverHttps : $59544557ea602607$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 $kC5q1$https.Agent(options) : new $kC5q1$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 ? $kC5q1$https.globalAgent : $kC5q1$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 retryNumber = Math.min($59544557ea602607$var$ExponentialBackoffCeiling, retryNumber);\n const ms = $59544557ea602607$var$ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);\n return new Promise((resolve)=>setTimeout(()=>resolve(), ms));\n }\n static dateTimeDeserializer(key, value) {\n if (typeof value === \"string\") {\n let a = new Date(value);\n if (!isNaN(a.valueOf())) return a;\n }\n return value;\n }\n async _processResponse(res, options) {\n return new Promise(async (resolve, reject)=>{\n const statusCode = res.message.statusCode;\n const response = {\n statusCode: statusCode,\n result: null,\n headers: {}\n };\n // not found leads to null obj returned\n if (statusCode == $59544557ea602607$var$HttpCodes.NotFound) resolve(response);\n let obj;\n let contents;\n // get the result from the body\n try {\n contents = await res.readBody();\n if (contents && contents.length > 0) {\n if (options && options.deserializeDates) obj = JSON.parse(contents, $59544557ea602607$var$HttpClient.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 let err = new $59544557ea602607$var$HttpClientError(msg, statusCode);\n err.result = response.result;\n reject(err);\n } else resolve(response);\n });\n }\n}\nmodule.exports.HttpClient = $59544557ea602607$var$HttpClient;\n\n});\nparcelRequire.register(\"kG5AI\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nfunction $f0dc1129fa8291a1$var$getProxyUrl(reqUrl) {\n let usingSsl = reqUrl.protocol === \"https:\";\n let proxyUrl;\n if ($f0dc1129fa8291a1$var$checkBypass(reqUrl)) return proxyUrl;\n let proxyVar;\n if (usingSsl) proxyVar = process.env[\"https_proxy\"] || process.env[\"HTTPS_PROXY\"];\n else proxyVar = process.env[\"http_proxy\"] || process.env[\"HTTP_PROXY\"];\n if (proxyVar) proxyUrl = new URL(proxyVar);\n return proxyUrl;\n}\nmodule.exports.getProxyUrl = $f0dc1129fa8291a1$var$getProxyUrl;\nfunction $f0dc1129fa8291a1$var$checkBypass(reqUrl) {\n if (!reqUrl.hostname) return false;\n let 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 let upperReqHosts = [\n reqUrl.hostname.toUpperCase()\n ];\n if (typeof reqPort === \"number\") upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);\n // Compare request host against noproxy\n for (let upperNoProxyItem of noProxy.split(\",\").map((x)=>x.trim().toUpperCase()).filter((x)=>x)){\n if (upperReqHosts.some((x)=>x === upperNoProxyItem)) return true;\n }\n return false;\n}\nmodule.exports.checkBypass = $f0dc1129fa8291a1$var$checkBypass;\n\n});\n\n\nparcelRequire.register(\"2yfZv\", function(module, exports) {\n\"use strict\";\nvar $1dbb293f26cbebe8$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 $1dbb293f26cbebe8$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 $1dbb293f26cbebe8$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)) $1dbb293f26cbebe8$var$__createBinding(result, mod, k);\n }\n $1dbb293f26cbebe8$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $1dbb293f26cbebe8$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.RetryHelper = void 0;\n\nconst $1dbb293f26cbebe8$var$core = $1dbb293f26cbebe8$var$__importStar((parcelRequire(\"2heqc\")));\n/**\n * Internal class for retries\n */ class $1dbb293f26cbebe8$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 $1dbb293f26cbebe8$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 $1dbb293f26cbebe8$var$core.info(err.message);\n }\n // Sleep\n const seconds = this.getSleepAmount();\n $1dbb293f26cbebe8$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 $1dbb293f26cbebe8$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>setTimeout(resolve, seconds * 1000));\n });\n }\n}\nmodule.exports.RetryHelper = $1dbb293f26cbebe8$var$RetryHelper;\n\n});\n\n\n\n\nparcelRequire.register(\"49ncA\", function(module, exports) {\n\n$parcel$export(module.exports, \"findPyPyVersion\", () => $000fa4d2be1a6771$export$43d689d19c89c31d);\n\n\nvar $dDV6t = parcelRequire(\"dDV6t\");\n\nvar $42Mcf = parcelRequire(\"42Mcf\");\n\nvar $lqN0l = parcelRequire(\"lqN0l\");\n\nvar $2heqc = parcelRequire(\"2heqc\");\n\nvar $9aCWy = parcelRequire(\"9aCWy\");\nasync function $000fa4d2be1a6771$export$43d689d19c89c31d(versionSpec, architecture, updateEnvironment, checkLatest, allowPreReleases) {\n let resolvedPyPyVersion = \"\";\n let resolvedPythonVersion = \"\";\n let installDir;\n let releases;\n const pypyVersionSpec = $000fa4d2be1a6771$export$4182d5bdd18177a7(versionSpec);\n if (checkLatest) {\n releases = await $dDV6t.getAvailablePyPyVersions();\n if (releases && releases.length > 0) {\n const releaseData = $dDV6t.findRelease(releases, pypyVersionSpec.pythonVersion, pypyVersionSpec.pypyVersion, architecture, false);\n if (releaseData) {\n $2heqc.info(`Resolved as PyPy ${releaseData.resolvedPyPyVersion} with Python (${releaseData.resolvedPythonVersion})`);\n pypyVersionSpec.pythonVersion = releaseData.resolvedPythonVersion;\n pypyVersionSpec.pypyVersion = releaseData.resolvedPyPyVersion;\n } else $2heqc.info(`Failed to resolve PyPy ${pypyVersionSpec.pypyVersion} with Python (${pypyVersionSpec.pythonVersion}) from manifest`);\n }\n }\n ({ installDir: installDir, resolvedPythonVersion: resolvedPythonVersion, resolvedPyPyVersion: resolvedPyPyVersion } = $000fa4d2be1a6771$export$bba8aabb976a1d17(pypyVersionSpec.pythonVersion, pypyVersionSpec.pypyVersion, architecture));\n if (!installDir) ({ installDir: installDir, resolvedPythonVersion: resolvedPythonVersion, resolvedPyPyVersion: resolvedPyPyVersion } = await $dDV6t.installPyPy(pypyVersionSpec.pypyVersion, pypyVersionSpec.pythonVersion, architecture, allowPreReleases, releases));\n const pipDir = (0, $42Mcf.IS_WINDOWS) ? \"Scripts\" : \"bin\";\n const _binDir = $kC5q1$path.join(installDir, pipDir);\n const binaryExtension = (0, $42Mcf.IS_WINDOWS) ? \".exe\" : \"\";\n const pythonPath = $kC5q1$path.join((0, $42Mcf.IS_WINDOWS) ? installDir : _binDir, `python${binaryExtension}`);\n const pythonLocation = $dDV6t.getPyPyBinaryPath(installDir);\n if (updateEnvironment) {\n $2heqc.exportVariable(\"pythonLocation\", installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython\n $2heqc.exportVariable(\"Python_ROOT_DIR\", installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2\n $2heqc.exportVariable(\"Python2_ROOT_DIR\", installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3\n $2heqc.exportVariable(\"Python3_ROOT_DIR\", installDir);\n $2heqc.exportVariable(\"PKG_CONFIG_PATH\", pythonLocation + \"/lib/pkgconfig\");\n $2heqc.addPath(pythonLocation);\n $2heqc.addPath(_binDir);\n }\n $2heqc.setOutput(\"python-version\", \"pypy\" + resolvedPyPyVersion);\n $2heqc.setOutput(\"python-path\", pythonPath);\n return {\n resolvedPyPyVersion: resolvedPyPyVersion,\n resolvedPythonVersion: resolvedPythonVersion\n };\n}\nfunction $000fa4d2be1a6771$export$bba8aabb976a1d17(pythonVersion, pypyVersion, architecture) {\n let resolvedPyPyVersion = \"\";\n let resolvedPythonVersion = \"\";\n let installDir = (0, $42Mcf.IS_WINDOWS) ? $000fa4d2be1a6771$export$139298be7eb2bd(pythonVersion) : $9aCWy.find(\"PyPy\", pythonVersion, architecture);\n if (installDir) {\n // 'tc.find' finds tool based on Python version but we also need to check\n // whether PyPy version satisfies requested version.\n resolvedPythonVersion = (0, $42Mcf.getPyPyVersionFromPath)(installDir);\n resolvedPyPyVersion = (0, $42Mcf.readExactPyPyVersionFile)(installDir);\n const isPyPyVersionSatisfies = $lqN0l.satisfies(resolvedPyPyVersion, pypyVersion);\n if (!isPyPyVersionSatisfies) {\n installDir = null;\n resolvedPyPyVersion = \"\";\n resolvedPythonVersion = \"\";\n }\n }\n if (!installDir) $2heqc.info(`PyPy version ${pythonVersion} (${pypyVersion}) was not found in the local cache`);\n return {\n installDir: installDir,\n resolvedPythonVersion: resolvedPythonVersion,\n resolvedPyPyVersion: resolvedPyPyVersion\n };\n}\nfunction $000fa4d2be1a6771$export$4182d5bdd18177a7(versionSpec) {\n const versions = versionSpec.split(\"-\").filter((item)=>!!item);\n if (/^(pypy)(.+)/.test(versions[0])) {\n const pythonVersion = versions[0].replace(\"pypy\", \"\");\n versions.splice(0, 1, \"pypy\", pythonVersion);\n }\n if (versions.length < 2 || versions[0] != \"pypy\") throw new Error(\"Invalid 'version' property for PyPy. PyPy version should be specified as 'pypy' or 'pypy-'. See README for examples and documentation.\");\n const pythonVersion = versions[1];\n let pypyVersion;\n if (versions.length > 2) pypyVersion = $dDV6t.pypyVersionToSemantic(versions[2]);\n else pypyVersion = \"x\";\n if (!(0, $42Mcf.validateVersion)(pythonVersion) || !(0, $42Mcf.validateVersion)(pypyVersion)) throw new Error(\"Invalid 'version' property for PyPy. Both Python version and PyPy versions should satisfy SemVer notation. See README for examples and documentation.\");\n if (!(0, $42Mcf.validatePythonVersionFormatForPyPy)(pythonVersion)) throw new Error(\"Invalid format of Python version for PyPy. Python version should be specified in format 'x.y'. See README for examples and documentation.\");\n return {\n pypyVersion: pypyVersion,\n pythonVersion: pythonVersion\n };\n}\nfunction $000fa4d2be1a6771$export$139298be7eb2bd(pythonVersion) {\n let installDir = \"\";\n (0, $42Mcf.WINDOWS_ARCHS).forEach((architecture)=>installDir = installDir || $9aCWy.find(\"PyPy\", pythonVersion, architecture));\n return installDir;\n}\n\n});\nparcelRequire.register(\"dDV6t\", function(module, exports) {\n\n$parcel$export(module.exports, \"installPyPy\", () => $7ef76f02a8854110$export$3573149ec5684a1d);\n$parcel$export(module.exports, \"getAvailablePyPyVersions\", () => $7ef76f02a8854110$export$15e3ff21db62aa77);\n$parcel$export(module.exports, \"findRelease\", () => $7ef76f02a8854110$export$4272161ba9d7d3dd);\n$parcel$export(module.exports, \"getPyPyBinaryPath\", () => $7ef76f02a8854110$export$a053ce7a690fbb2e);\n$parcel$export(module.exports, \"pypyVersionToSemantic\", () => $7ef76f02a8854110$export$4e25ef8c836002b9);\n\n\n\nvar $2heqc = parcelRequire(\"2heqc\");\n\nvar $9aCWy = parcelRequire(\"9aCWy\");\n\nvar $lqN0l = parcelRequire(\"lqN0l\");\n\nvar $7FuP1 = parcelRequire(\"7FuP1\");\n\nvar $2mVwa = parcelRequire(\"2mVwa\");\n\n\nvar $42Mcf = parcelRequire(\"42Mcf\");\nasync function $7ef76f02a8854110$export$3573149ec5684a1d(pypyVersion, pythonVersion, architecture, allowPreReleases, releases) {\n let downloadDir;\n releases = releases !== null && releases !== void 0 ? releases : await $7ef76f02a8854110$export$15e3ff21db62aa77();\n if (!releases || releases.length === 0) throw new Error(\"No release was found in PyPy version.json\");\n let releaseData = $7ef76f02a8854110$export$4272161ba9d7d3dd(releases, pythonVersion, pypyVersion, architecture, false);\n if (allowPreReleases && (!releaseData || !releaseData.foundAsset)) {\n // check for pre-release\n $2heqc.info([\n `Stable PyPy version ${pythonVersion} (${pypyVersion}) with arch ${architecture} not found`,\n `Trying pre-release versions`\n ].join($kC5q1$os.EOL));\n releaseData = $7ef76f02a8854110$export$4272161ba9d7d3dd(releases, pythonVersion, pypyVersion, architecture, true);\n }\n if (!releaseData || !releaseData.foundAsset) throw new Error(`PyPy version ${pythonVersion} (${pypyVersion}) with arch ${architecture} not found`);\n const { foundAsset: foundAsset, resolvedPythonVersion: resolvedPythonVersion, resolvedPyPyVersion: resolvedPyPyVersion } = releaseData;\n const downloadUrl = `${foundAsset.download_url}`;\n $2heqc.info(`Downloading PyPy from \"${downloadUrl}\" ...`);\n try {\n const pypyPath = await $9aCWy.downloadTool(downloadUrl);\n $2heqc.info(\"Extracting downloaded archive...\");\n if (0, $42Mcf.IS_WINDOWS) downloadDir = await $9aCWy.extractZip(pypyPath);\n else downloadDir = await $9aCWy.extractTar(pypyPath, undefined, \"x\");\n // root folder in archive can have unpredictable name so just take the first folder\n // downloadDir is unique folder under TEMP and can't contain any other folders\n const archiveName = (0, ($parcel$interopDefault($kC5q1$fs))).readdirSync(downloadDir)[0];\n const toolDir = $kC5q1$path.join(downloadDir, archiveName);\n let installDir = toolDir;\n if (!(0, $42Mcf.isNightlyKeyword)(resolvedPyPyVersion)) installDir = await $9aCWy.cacheDir(toolDir, \"PyPy\", resolvedPythonVersion, architecture);\n (0, $42Mcf.writeExactPyPyVersionFile)(installDir, resolvedPyPyVersion);\n const binaryPath = $7ef76f02a8854110$export$a053ce7a690fbb2e(installDir);\n await $7ef76f02a8854110$var$createPyPySymlink(binaryPath, resolvedPythonVersion);\n await $7ef76f02a8854110$var$installPip(binaryPath);\n return {\n installDir: installDir,\n resolvedPythonVersion: resolvedPythonVersion,\n resolvedPyPyVersion: resolvedPyPyVersion\n };\n } catch (err) {\n if (err instanceof Error) {\n // Rate limit?\n if (err instanceof $9aCWy.HTTPError && (err.httpStatusCode === 403 || err.httpStatusCode === 429)) $2heqc.info(`Received HTTP status code ${err.httpStatusCode}. This usually indicates the rate limit has been exceeded`);\n else $2heqc.info(err.message);\n if (err.stack !== undefined) $2heqc.debug(err.stack);\n }\n throw err;\n }\n}\nasync function $7ef76f02a8854110$export$15e3ff21db62aa77() {\n const url = \"https://downloads.python.org/pypy/versions.json\";\n const http = new $7FuP1.HttpClient(\"tool-cache\");\n const response = await http.getJson(url);\n if (!response.result) throw new Error(`Unable to retrieve the list of available PyPy versions from '${url}'`);\n return response.result;\n}\nasync function $7ef76f02a8854110$var$createPyPySymlink(pypyBinaryPath, pythonVersion) {\n const version = $lqN0l.coerce(pythonVersion);\n const pythonBinaryPostfix = $lqN0l.major(version);\n const pythonMinor = $lqN0l.minor(version);\n const pypyBinaryPostfix = pythonBinaryPostfix === 2 ? \"\" : \"3\";\n const pypyMajorMinorBinaryPostfix = `${pythonBinaryPostfix}.${pythonMinor}`;\n const binaryExtension = (0, $42Mcf.IS_WINDOWS) ? \".exe\" : \"\";\n $2heqc.info(\"Creating symlinks...\");\n (0, $42Mcf.createSymlinkInFolder)(pypyBinaryPath, `pypy${pypyBinaryPostfix}${binaryExtension}`, `python${pythonBinaryPostfix}${binaryExtension}`, true);\n (0, $42Mcf.createSymlinkInFolder)(pypyBinaryPath, `pypy${pypyBinaryPostfix}${binaryExtension}`, `python${binaryExtension}`, true);\n (0, $42Mcf.createSymlinkInFolder)(pypyBinaryPath, `pypy${pypyBinaryPostfix}${binaryExtension}`, `pypy${pypyMajorMinorBinaryPostfix}${binaryExtension}`, true);\n}\nasync function $7ef76f02a8854110$var$installPip(pythonLocation) {\n $2heqc.info(\"Installing and updating pip\");\n const pythonBinary = $kC5q1$path.join(pythonLocation, \"python\");\n await $2mVwa.exec(`${pythonBinary} -m ensurepip`);\n await $2mVwa.exec(`${pythonLocation}/python -m pip install --ignore-installed pip`);\n}\nfunction $7ef76f02a8854110$export$4272161ba9d7d3dd(releases, pythonVersion, pypyVersion, architecture, includePrerelease) {\n const options = {\n includePrerelease: includePrerelease\n };\n const filterReleases = releases.filter((item)=>{\n const isPythonVersionSatisfied = $lqN0l.satisfies($lqN0l.coerce(item.python_version), pythonVersion);\n const isPyPyNightly = (0, $42Mcf.isNightlyKeyword)(pypyVersion) && (0, $42Mcf.isNightlyKeyword)(item.pypy_version);\n const isPyPyVersionSatisfied = isPyPyNightly || $lqN0l.satisfies($7ef76f02a8854110$export$4e25ef8c836002b9(item.pypy_version), pypyVersion, options);\n const isArchPresent = item.files && ((0, $42Mcf.IS_WINDOWS) ? $7ef76f02a8854110$export$652444ba12a0c7bb(item, architecture) : $7ef76f02a8854110$export$f1fafc67685dd0bf(item, architecture, process.platform));\n return isPythonVersionSatisfied && isPyPyVersionSatisfied && isArchPresent;\n });\n if (filterReleases.length === 0) return null;\n const sortedReleases = filterReleases.sort((previous, current)=>{\n return $lqN0l.compare($lqN0l.coerce($7ef76f02a8854110$export$4e25ef8c836002b9(current.pypy_version)), $lqN0l.coerce($7ef76f02a8854110$export$4e25ef8c836002b9(previous.pypy_version))) || $lqN0l.compare($lqN0l.coerce(current.python_version), $lqN0l.coerce(previous.python_version));\n });\n const foundRelease = sortedReleases[0];\n const foundAsset = (0, $42Mcf.IS_WINDOWS) ? $7ef76f02a8854110$export$672a33957a3c888(foundRelease, architecture) : $7ef76f02a8854110$export$7e0be3a86d27fcd9(foundRelease, architecture, process.platform);\n return {\n foundAsset: foundAsset,\n resolvedPythonVersion: foundRelease.python_version,\n resolvedPyPyVersion: foundRelease.pypy_version.trim()\n };\n}\nfunction $7ef76f02a8854110$export$a053ce7a690fbb2e(installDir) {\n const _binDir = $kC5q1$path.join(installDir, \"bin\");\n return (0, $42Mcf.IS_WINDOWS) ? installDir : _binDir;\n}\nfunction $7ef76f02a8854110$export$4e25ef8c836002b9(versionSpec) {\n const prereleaseVersion = /(\\d+\\.\\d+\\.\\d+)((?:a|b|rc))(\\d*)/g;\n return versionSpec.replace(prereleaseVersion, \"$1-$2.$3\");\n}\nfunction $7ef76f02a8854110$export$652444ba12a0c7bb(item, architecture) {\n architecture = $7ef76f02a8854110$var$replaceX32toX86(architecture);\n return item.files.some((file)=>(0, $42Mcf.WINDOWS_PLATFORMS).includes(file.platform) && file.arch === architecture);\n}\nfunction $7ef76f02a8854110$export$f1fafc67685dd0bf(item, architecture, platform) {\n return item.files.some((file)=>file.arch === architecture && file.platform === platform);\n}\nfunction $7ef76f02a8854110$export$672a33957a3c888(releases, architecture) {\n architecture = $7ef76f02a8854110$var$replaceX32toX86(architecture);\n return releases.files.find((item)=>(0, $42Mcf.WINDOWS_PLATFORMS).includes(item.platform) && item.arch === architecture);\n}\nfunction $7ef76f02a8854110$export$7e0be3a86d27fcd9(releases, architecture, platform) {\n return releases.files.find((item)=>item.arch === architecture && item.platform === platform);\n}\nfunction $7ef76f02a8854110$var$replaceX32toX86(architecture) {\n // convert x32 to x86 because os.arch() returns x32 for 32-bit systems but PyPy releases json has x86 arch value.\n if (architecture === \"x32\") architecture = \"x86\";\n return architecture;\n}\n\n});\n\n\nparcelRequire.register(\"65Nuu\", function(module, exports) {\nmodule.exports = Promise.resolve(require(\"./cache-dependencies.348a592e.js\")).then(()=>parcelRequire(\"cdq6h\"));\n\n});\n\n\n\n//# sourceMappingURL=actions_python.3180bacb.js.map\n","import { useCpythonVersion } from \"setup-python/src/find-python\"\nimport { findPyPyVersion } from \"setup-python/src/find-pypy\"\n\nimport { info, warning } from \"ci-log\"\nimport { debug } from \"@actions/core\"\nimport { join } from \"patha\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { IS_MAC } from \"setup-python/src/utils\"\nimport { pathExists } from \"path-exists\"\n\nfunction isPyPyVersion(versionSpec: string) {\n return versionSpec.startsWith(\"pypy\")\n}\n\nconst checkLatest = false\n\nexport async function setupActionsPython(version: string, _setupDir: string, arch: string) {\n if (IS_MAC) {\n process.env.AGENT_TOOLSDIRECTORY = \"/Users/runner/hostedtoolcache\"\n }\n\n const agent_toolsdirectory = process.env.AGENT_TOOLSDIRECTORY?.trim()\n if (typeof agent_toolsdirectory === \"string\" && agent_toolsdirectory !== \"\") {\n process.env.RUNNER_TOOL_CACHE = process.env.AGENT_TOOLSDIRECTORY\n }\n\n debug(`Python is expected to be installed into ${process.env.RUNNER_TOOL_CACHE}`)\n\n if (version) {\n let pythonVersion: string\n if (isPyPyVersion(version)) {\n const installed = await findPyPyVersion(version, arch, true, checkLatest, false)\n pythonVersion = `${installed.resolvedPyPyVersion}-${installed.resolvedPythonVersion}`\n info(`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`)\n } else {\n const installed = await useCpythonVersion(version, arch, true, checkLatest, false)\n pythonVersion = installed.version\n info(`Successfully set up ${installed.impl} (${pythonVersion})`)\n }\n\n const cache = false\n if (cache) {\n const { cacheDependencies } = await import(\"setup-python/src/cache-dependencies\")\n await cacheDependencies(\"pip\", pythonVersion)\n }\n }\n\n if (GITHUB_ACTIONS) {\n await addPythonLoggingMatcher()\n }\n\n return undefined\n}\n\nasync function addPythonLoggingMatcher() {\n const matcherPath = join(__dirname, \"python_matcher.json\")\n if (!(await pathExists(matcherPath))) {\n return warning(\"the python_matcher.json file does not exist in the same folder as setup-cpp.js\")\n }\n info(`::add-matcher::${matcherPath}`)\n}\n","import * as os from 'os';\nimport * as path from 'path';\nimport {IS_WINDOWS, IS_LINUX, getOSInfo} from './utils';\n\nimport * as semver from 'semver';\n\nimport * as installer from './install-python';\n\nimport * as core from '@actions/core';\nimport * as tc from '@actions/tool-cache';\n\n// Python has \"scripts\" or \"bin\" directories where command-line tools that come with packages are installed.\n// This is where pip is, along with anything that pip installs.\n// There is a separate directory for `pip install --user`.\n//\n// For reference, these directories are as follows:\n// macOS / Linux:\n// /bin (by default /usr/local/bin, but not on hosted agents -- see the `else`)\n// (--user) ~/.local/bin\n// Windows:\n// \\Scripts\n// (--user) %APPDATA%\\Python\\PythonXY\\Scripts\n// See https://docs.python.org/3/library/sysconfig.html\n\nfunction binDir(installDir: string): string {\n if (IS_WINDOWS) {\n return path.join(installDir, 'Scripts');\n } else {\n return path.join(installDir, 'bin');\n }\n}\n\nexport async function useCpythonVersion(\n version: string,\n architecture: string,\n updateEnvironment: boolean,\n checkLatest: boolean,\n allowPreReleases: boolean\n): Promise {\n let manifest: tc.IToolRelease[] | null = null;\n const desugaredVersionSpec = desugarDevVersion(version);\n let semanticVersionSpec = pythonVersionToSemantic(\n desugaredVersionSpec,\n allowPreReleases\n );\n core.debug(`Semantic version spec of ${version} is ${semanticVersionSpec}`);\n\n if (checkLatest) {\n manifest = await installer.getManifest();\n const resolvedVersion = (\n await installer.findReleaseFromManifest(\n semanticVersionSpec,\n architecture,\n manifest\n )\n )?.version;\n\n if (resolvedVersion) {\n semanticVersionSpec = resolvedVersion;\n core.info(`Resolved as '${semanticVersionSpec}'`);\n } else {\n core.info(\n `Failed to resolve version ${semanticVersionSpec} from manifest`\n );\n }\n }\n\n let installDir: string | null = tc.find(\n 'Python',\n semanticVersionSpec,\n architecture\n );\n if (!installDir) {\n core.info(\n `Version ${semanticVersionSpec} was not found in the local cache`\n );\n const foundRelease = await installer.findReleaseFromManifest(\n semanticVersionSpec,\n architecture,\n manifest\n );\n\n if (foundRelease && foundRelease.files && foundRelease.files.length > 0) {\n core.info(`Version ${semanticVersionSpec} is available for downloading`);\n await installer.installCpythonFromRelease(foundRelease);\n\n installDir = tc.find('Python', semanticVersionSpec, architecture);\n }\n }\n\n if (!installDir) {\n const osInfo = await getOSInfo();\n throw new Error(\n [\n `The version '${version}' with architecture '${architecture}' was not found for ${\n osInfo\n ? `${osInfo.osName} ${osInfo.osVersion}`\n : 'this operating system'\n }.`,\n `The list of all available versions can be found here: ${installer.MANIFEST_URL}`\n ].join(os.EOL)\n );\n }\n\n const _binDir = binDir(installDir);\n const binaryExtension = IS_WINDOWS ? '.exe' : '';\n const pythonPath = path.join(\n IS_WINDOWS ? installDir : _binDir,\n `python${binaryExtension}`\n );\n if (updateEnvironment) {\n core.exportVariable('pythonLocation', installDir);\n core.exportVariable('PKG_CONFIG_PATH', installDir + '/lib/pkgconfig');\n core.exportVariable('pythonLocation', installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython\n core.exportVariable('Python_ROOT_DIR', installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2\n core.exportVariable('Python2_ROOT_DIR', installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3\n core.exportVariable('Python3_ROOT_DIR', installDir);\n core.exportVariable('PKG_CONFIG_PATH', installDir + '/lib/pkgconfig');\n\n if (IS_LINUX) {\n const libPath = process.env.LD_LIBRARY_PATH\n ? `:${process.env.LD_LIBRARY_PATH}`\n : '';\n const pyLibPath = path.join(installDir, 'lib');\n\n if (!libPath.split(':').includes(pyLibPath)) {\n core.exportVariable('LD_LIBRARY_PATH', pyLibPath + libPath);\n }\n }\n core.addPath(installDir);\n core.addPath(_binDir);\n\n if (IS_WINDOWS) {\n // Add --user directory\n // `installDir` from tool cache should look like $RUNNER_TOOL_CACHE/Python//x64/\n // So if `findLocalTool` succeeded above, we must have a conformant `installDir`\n const version = path.basename(path.dirname(installDir));\n const major = semver.major(version);\n const minor = semver.minor(version);\n\n const userScriptsDir = path.join(\n process.env['APPDATA'] || '',\n 'Python',\n `Python${major}${minor}`,\n 'Scripts'\n );\n core.addPath(userScriptsDir);\n }\n // On Linux and macOS, pip will create the --user directory and add it to PATH as needed.\n }\n\n const installed = versionFromPath(installDir);\n core.setOutput('python-version', installed);\n core.setOutput('python-path', pythonPath);\n\n return {impl: 'CPython', version: installed};\n}\n\n/** Convert versions like `3.8-dev` to a version like `~3.8.0-0`. */\nfunction desugarDevVersion(versionSpec: string) {\n const devVersion = /^(\\d+)\\.(\\d+)-dev$/;\n return versionSpec.replace(devVersion, '~$1.$2.0-0');\n}\n\n/** Extracts python version from install path from hosted tool cache as described in README.md */\nfunction versionFromPath(installDir: string) {\n const parts = installDir.split(path.sep);\n const idx = parts.findIndex(part => part === 'PyPy' || part === 'Python');\n\n return parts[idx + 1] || '';\n}\n\ninterface InstalledVersion {\n impl: string;\n version: string;\n}\n\n/**\n * Python's prelease versions look like `3.7.0b2`.\n * This is the one part of Python versioning that does not look like semantic versioning, which specifies `3.7.0-b2`.\n * If the version spec contains prerelease versions, we need to convert them to the semantic version equivalent.\n *\n * For easier use of the action, we also map 'x.y' to allow pre-release before 'x.y.0' release if allowPreReleases is true\n */\nexport function pythonVersionToSemantic(\n versionSpec: string,\n allowPreReleases: boolean\n) {\n const prereleaseVersion = /(\\d+\\.\\d+\\.\\d+)((?:a|b|rc)\\d*)/g;\n const majorMinor = /^(\\d+)\\.(\\d+)$/;\n let result = versionSpec.replace(prereleaseVersion, '$1-$2');\n if (allowPreReleases) {\n result = result.replace(majorMinor, '~$1.$2.0-0');\n }\n return result;\n}\n","/* eslint no-unsafe-finally: \"off\" */\nimport * as core from '@actions/core';\nimport fs from 'fs';\nimport * as path from 'path';\nimport * as semver from 'semver';\nimport * as toml from '@iarna/toml';\nimport * as exec from '@actions/exec';\n\nexport const IS_WINDOWS = process.platform === 'win32';\nexport const IS_LINUX = process.platform === 'linux';\nexport const IS_MAC = process.platform === 'darwin';\nexport const WINDOWS_ARCHS = ['x86', 'x64'];\nexport const WINDOWS_PLATFORMS = ['win32', 'win64'];\nconst PYPY_VERSION_FILE = 'PYPY_VERSION';\n\nexport interface IPyPyManifestAsset {\n filename: string;\n arch: string;\n platform: string;\n download_url: string;\n}\n\nexport interface IPyPyManifestRelease {\n pypy_version: string;\n python_version: string;\n stable: boolean;\n latest_pypy: boolean;\n files: IPyPyManifestAsset[];\n}\n\n/** create Symlinks for downloaded PyPy\n * It should be executed only for downloaded versions in runtime, because\n * toolcache versions have this setup.\n */\nexport function createSymlinkInFolder(\n folderPath: string,\n sourceName: string,\n targetName: string,\n setExecutable = false\n) {\n const sourcePath = path.join(folderPath, sourceName);\n const targetPath = path.join(folderPath, targetName);\n if (fs.existsSync(targetPath)) {\n return;\n }\n\n fs.symlinkSync(sourcePath, targetPath);\n if (!IS_WINDOWS && setExecutable) {\n fs.chmodSync(targetPath, '755');\n }\n}\n\nexport function validateVersion(version: string) {\n return isNightlyKeyword(version) || Boolean(semver.validRange(version));\n}\n\nexport function isNightlyKeyword(pypyVersion: string) {\n return pypyVersion === 'nightly';\n}\n\nexport function getPyPyVersionFromPath(installDir: string) {\n return path.basename(path.dirname(installDir));\n}\n\n/**\n * In tool-cache, we put PyPy to '/PyPy//x64'\n * There is no easy way to determine what PyPy version is located in specific folder\n * 'pypy --version' is not reliable enough since it is not set properly for preview versions\n * \"7.3.3rc1\" is marked as '7.3.3' in 'pypy --version'\n * so we put PYPY_VERSION file to PyPy directory when install it to VM and read it when we need to know version\n * PYPY_VERSION contains exact version from 'versions.json'\n */\nexport function readExactPyPyVersionFile(installDir: string) {\n let pypyVersion = '';\n const fileVersion = path.join(installDir, PYPY_VERSION_FILE);\n if (fs.existsSync(fileVersion)) {\n pypyVersion = fs.readFileSync(fileVersion).toString().trim();\n }\n\n return pypyVersion;\n}\n\nexport function writeExactPyPyVersionFile(\n installDir: string,\n resolvedPyPyVersion: string\n) {\n const pypyFilePath = path.join(installDir, PYPY_VERSION_FILE);\n fs.writeFileSync(pypyFilePath, resolvedPyPyVersion);\n}\n\n/**\n * Python version should be specified explicitly like \"x.y\" (2.7, 3.6, 3.7)\n * \"3.x\" or \"3\" are not supported\n * because it could cause ambiguity when both PyPy version and Python version are not precise\n */\nexport function validatePythonVersionFormatForPyPy(version: string) {\n const re = /^\\d+\\.\\d+$/;\n return re.test(version);\n}\n\nexport function logWarning(message: string): void {\n const warningPrefix = '[warning]';\n core.info(`${warningPrefix}${message}`);\n}\n\nasync function getWindowsInfo() {\n const {stdout} = await exec.getExecOutput(\n 'powershell -command \"(Get-CimInstance -ClassName Win32_OperatingSystem).Caption\"',\n undefined,\n {\n silent: true\n }\n );\n\n const windowsVersion = stdout.trim().split(' ')[3];\n\n return {osName: 'Windows', osVersion: windowsVersion};\n}\n\nasync function getMacOSInfo() {\n const {stdout} = await exec.getExecOutput('sw_vers', ['-productVersion'], {\n silent: true\n });\n\n const macOSVersion = stdout.trim();\n\n return {osName: 'macOS', osVersion: macOSVersion};\n}\n\nexport async function getLinuxInfo() {\n const {stdout} = await exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], {\n silent: true\n });\n\n const [osName, osVersion] = stdout.trim().split('\\n');\n\n core.debug(`OS Name: ${osName}, Version: ${osVersion}`);\n\n return {osName: osName, osVersion: osVersion};\n}\n\nexport async function getOSInfo() {\n let osInfo;\n try {\n if (IS_WINDOWS) {\n osInfo = await getWindowsInfo();\n } else if (IS_LINUX) {\n osInfo = await getLinuxInfo();\n } else if (IS_MAC) {\n osInfo = await getMacOSInfo();\n }\n } catch (err) {\n const error = err as Error;\n core.debug(error.message);\n } finally {\n return osInfo;\n }\n}\n\n/**\n * Extract a value from an object by following the keys path provided.\n * If the value is present, it is returned. Otherwise undefined is returned.\n */\nfunction extractValue(obj: any, keys: string[]): string | undefined {\n if (keys.length > 0) {\n const value = obj[keys[0]];\n if (keys.length > 1 && value !== undefined) {\n return extractValue(value, keys.slice(1));\n } else {\n return value;\n }\n } else {\n return;\n }\n}\n\n/**\n * Python version extracted from the TOML file.\n * If the `project` key is present at the root level, the version is assumed to\n * be specified according to PEP 621 in `project.requires-python`.\n * Otherwise, if the `tool` key is present at the root level, the version is\n * assumed to be specified using poetry under `tool.poetry.dependencies.python`.\n * If none is present, returns an empty list.\n */\nexport function getVersionInputFromTomlFile(versionFile: string): string[] {\n core.debug(`Trying to resolve version form ${versionFile}`);\n\n const pyprojectFile = fs.readFileSync(versionFile, 'utf8');\n const pyprojectConfig = toml.parse(pyprojectFile);\n let keys = [];\n\n if ('project' in pyprojectConfig) {\n // standard project metadata (PEP 621)\n keys = ['project', 'requires-python'];\n } else {\n // python poetry\n keys = ['tool', 'poetry', 'dependencies', 'python'];\n }\n const versions = [];\n const version = extractValue(pyprojectConfig, keys);\n if (version !== undefined) {\n versions.push(version);\n }\n\n core.info(`Extracted ${versions} from ${versionFile}`);\n const rawVersions = Array.from(versions, version =>\n version.split(',').join(' ')\n );\n const validatedVersions = rawVersions\n .map(item => semver.validRange(item, true))\n .filter((versionRange, index) => {\n if (!versionRange) {\n core.debug(\n `The version ${rawVersions[index]} is not valid SemVer range`\n );\n }\n\n return !!versionRange;\n }) as string[];\n return validatedVersions;\n}\n\n/**\n * Python version extracted from a plain text file.\n */\nexport function getVersionInputFromPlainFile(versionFile: string): string[] {\n core.debug(`Trying to resolve version form ${versionFile}`);\n const version = fs.readFileSync(versionFile, 'utf8');\n core.info(`Resolved ${versionFile} as ${version}`);\n return [version];\n}\n\n/**\n * Python version extracted from a plain or TOML file.\n */\nexport function getVersionInputFromFile(versionFile: string): string[] {\n if (versionFile.endsWith('.toml')) {\n return getVersionInputFromTomlFile(versionFile);\n } else {\n return getVersionInputFromPlainFile(versionFile);\n }\n}\n","'use strict'\nexports.parse = require('./parse.js')\nexports.stringify = require('./stringify.js')\n","'use strict'\nmodule.exports = require('./parse-string.js')\nmodule.exports.async = require('./parse-async.js')\nmodule.exports.stream = require('./parse-stream.js')\nmodule.exports.prettyError = require('./parse-pretty-error.js')\n","'use strict'\nmodule.exports = parseString\n\nconst TOMLParser = require('./lib/toml-parser.js')\nconst prettyError = require('./parse-pretty-error.js')\n\nfunction parseString (str) {\n if (global.Buffer && global.Buffer.isBuffer(str)) {\n str = str.toString('utf8')\n }\n const parser = new TOMLParser()\n try {\n parser.parse(str)\n return parser.finish()\n } catch (err) {\n throw prettyError(err, str)\n }\n}\n","'use strict'\n/* eslint-disable no-new-wrappers, no-eval, camelcase, operator-linebreak */\nmodule.exports = makeParserClass(require('./parser.js'))\nmodule.exports.makeParserClass = makeParserClass\n\nclass TomlError extends Error {\n constructor (msg) {\n super(msg)\n this.name = 'TomlError'\n /* istanbul ignore next */\n if (Error.captureStackTrace) Error.captureStackTrace(this, TomlError)\n this.fromTOML = true\n this.wrapped = null\n }\n}\nTomlError.wrap = err => {\n const terr = new TomlError(err.message)\n terr.code = err.code\n terr.wrapped = err\n return terr\n}\nmodule.exports.TomlError = TomlError\n\nconst createDateTime = require('./create-datetime.js')\nconst createDateTimeFloat = require('./create-datetime-float.js')\nconst createDate = require('./create-date.js')\nconst createTime = require('./create-time.js')\n\nconst CTRL_I = 0x09\nconst CTRL_J = 0x0A\nconst CTRL_M = 0x0D\nconst CTRL_CHAR_BOUNDARY = 0x1F // the last non-character in the latin1 region of unicode, except DEL\nconst CHAR_SP = 0x20\nconst CHAR_QUOT = 0x22\nconst CHAR_NUM = 0x23\nconst CHAR_APOS = 0x27\nconst CHAR_PLUS = 0x2B\nconst CHAR_COMMA = 0x2C\nconst CHAR_HYPHEN = 0x2D\nconst CHAR_PERIOD = 0x2E\nconst CHAR_0 = 0x30\nconst CHAR_1 = 0x31\nconst CHAR_7 = 0x37\nconst CHAR_9 = 0x39\nconst CHAR_COLON = 0x3A\nconst CHAR_EQUALS = 0x3D\nconst CHAR_A = 0x41\nconst CHAR_E = 0x45\nconst CHAR_F = 0x46\nconst CHAR_T = 0x54\nconst CHAR_U = 0x55\nconst CHAR_Z = 0x5A\nconst CHAR_LOWBAR = 0x5F\nconst CHAR_a = 0x61\nconst CHAR_b = 0x62\nconst CHAR_e = 0x65\nconst CHAR_f = 0x66\nconst CHAR_i = 0x69\nconst CHAR_l = 0x6C\nconst CHAR_n = 0x6E\nconst CHAR_o = 0x6F\nconst CHAR_r = 0x72\nconst CHAR_s = 0x73\nconst CHAR_t = 0x74\nconst CHAR_u = 0x75\nconst CHAR_x = 0x78\nconst CHAR_z = 0x7A\nconst CHAR_LCUB = 0x7B\nconst CHAR_RCUB = 0x7D\nconst CHAR_LSQB = 0x5B\nconst CHAR_BSOL = 0x5C\nconst CHAR_RSQB = 0x5D\nconst CHAR_DEL = 0x7F\nconst SURROGATE_FIRST = 0xD800\nconst SURROGATE_LAST = 0xDFFF\n\nconst escapes = {\n [CHAR_b]: '\\u0008',\n [CHAR_t]: '\\u0009',\n [CHAR_n]: '\\u000A',\n [CHAR_f]: '\\u000C',\n [CHAR_r]: '\\u000D',\n [CHAR_QUOT]: '\\u0022',\n [CHAR_BSOL]: '\\u005C'\n}\n\nfunction isDigit (cp) {\n return cp >= CHAR_0 && cp <= CHAR_9\n}\nfunction isHexit (cp) {\n return (cp >= CHAR_A && cp <= CHAR_F) || (cp >= CHAR_a && cp <= CHAR_f) || (cp >= CHAR_0 && cp <= CHAR_9)\n}\nfunction isBit (cp) {\n return cp === CHAR_1 || cp === CHAR_0\n}\nfunction isOctit (cp) {\n return (cp >= CHAR_0 && cp <= CHAR_7)\n}\nfunction isAlphaNumQuoteHyphen (cp) {\n return (cp >= CHAR_A && cp <= CHAR_Z)\n || (cp >= CHAR_a && cp <= CHAR_z)\n || (cp >= CHAR_0 && cp <= CHAR_9)\n || cp === CHAR_APOS\n || cp === CHAR_QUOT\n || cp === CHAR_LOWBAR\n || cp === CHAR_HYPHEN\n}\nfunction isAlphaNumHyphen (cp) {\n return (cp >= CHAR_A && cp <= CHAR_Z)\n || (cp >= CHAR_a && cp <= CHAR_z)\n || (cp >= CHAR_0 && cp <= CHAR_9)\n || cp === CHAR_LOWBAR\n || cp === CHAR_HYPHEN\n}\nconst _type = Symbol('type')\nconst _declared = Symbol('declared')\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty\nconst defineProperty = Object.defineProperty\nconst descriptor = {configurable: true, enumerable: true, writable: true, value: undefined}\n\nfunction hasKey (obj, key) {\n if (hasOwnProperty.call(obj, key)) return true\n if (key === '__proto__') defineProperty(obj, '__proto__', descriptor)\n return false\n}\n\nconst INLINE_TABLE = Symbol('inline-table')\nfunction InlineTable () {\n return Object.defineProperties({}, {\n [_type]: {value: INLINE_TABLE}\n })\n}\nfunction isInlineTable (obj) {\n if (obj === null || typeof (obj) !== 'object') return false\n return obj[_type] === INLINE_TABLE\n}\n\nconst TABLE = Symbol('table')\nfunction Table () {\n return Object.defineProperties({}, {\n [_type]: {value: TABLE},\n [_declared]: {value: false, writable: true}\n })\n}\nfunction isTable (obj) {\n if (obj === null || typeof (obj) !== 'object') return false\n return obj[_type] === TABLE\n}\n\nconst _contentType = Symbol('content-type')\nconst INLINE_LIST = Symbol('inline-list')\nfunction InlineList (type) {\n return Object.defineProperties([], {\n [_type]: {value: INLINE_LIST},\n [_contentType]: {value: type}\n })\n}\nfunction isInlineList (obj) {\n if (obj === null || typeof (obj) !== 'object') return false\n return obj[_type] === INLINE_LIST\n}\n\nconst LIST = Symbol('list')\nfunction List () {\n return Object.defineProperties([], {\n [_type]: {value: LIST}\n })\n}\nfunction isList (obj) {\n if (obj === null || typeof (obj) !== 'object') return false\n return obj[_type] === LIST\n}\n\n// in an eval, to let bundlers not slurp in a util proxy\nlet _custom\ntry {\n const utilInspect = eval(\"require('util').inspect\")\n _custom = utilInspect.custom\n} catch (_) {\n /* eval require not available in transpiled bundle */\n}\n/* istanbul ignore next */\nconst _inspect = _custom || 'inspect'\n\nclass BoxedBigInt {\n constructor (value) {\n try {\n this.value = global.BigInt.asIntN(64, value)\n } catch (_) {\n /* istanbul ignore next */\n this.value = null\n }\n Object.defineProperty(this, _type, {value: INTEGER})\n }\n isNaN () {\n return this.value === null\n }\n /* istanbul ignore next */\n toString () {\n return String(this.value)\n }\n /* istanbul ignore next */\n [_inspect] () {\n return `[BigInt: ${this.toString()}]}`\n }\n valueOf () {\n return this.value\n }\n}\n\nconst INTEGER = Symbol('integer')\nfunction Integer (value) {\n let num = Number(value)\n // -0 is a float thing, not an int thing\n if (Object.is(num, -0)) num = 0\n /* istanbul ignore else */\n if (global.BigInt && !Number.isSafeInteger(num)) {\n return new BoxedBigInt(value)\n } else {\n /* istanbul ignore next */\n return Object.defineProperties(new Number(num), {\n isNaN: {value: function () { return isNaN(this) }},\n [_type]: {value: INTEGER},\n [_inspect]: {value: () => `[Integer: ${value}]`}\n })\n }\n}\nfunction isInteger (obj) {\n if (obj === null || typeof (obj) !== 'object') return false\n return obj[_type] === INTEGER\n}\n\nconst FLOAT = Symbol('float')\nfunction Float (value) {\n /* istanbul ignore next */\n return Object.defineProperties(new Number(value), {\n [_type]: {value: FLOAT},\n [_inspect]: {value: () => `[Float: ${value}]`}\n })\n}\nfunction isFloat (obj) {\n if (obj === null || typeof (obj) !== 'object') return false\n return obj[_type] === FLOAT\n}\n\nfunction tomlType (value) {\n const type = typeof value\n if (type === 'object') {\n /* istanbul ignore if */\n if (value === null) return 'null'\n if (value instanceof Date) return 'datetime'\n /* istanbul ignore else */\n if (_type in value) {\n switch (value[_type]) {\n case INLINE_TABLE: return 'inline-table'\n case INLINE_LIST: return 'inline-list'\n /* istanbul ignore next */\n case TABLE: return 'table'\n /* istanbul ignore next */\n case LIST: return 'list'\n case FLOAT: return 'float'\n case INTEGER: return 'integer'\n }\n }\n }\n return type\n}\n\nfunction makeParserClass (Parser) {\n class TOMLParser extends Parser {\n constructor () {\n super()\n this.ctx = this.obj = Table()\n }\n\n /* MATCH HELPER */\n atEndOfWord () {\n return this.char === CHAR_NUM || this.char === CTRL_I || this.char === CHAR_SP || this.atEndOfLine()\n }\n atEndOfLine () {\n return this.char === Parser.END || this.char === CTRL_J || this.char === CTRL_M\n }\n\n parseStart () {\n if (this.char === Parser.END) {\n return null\n } else if (this.char === CHAR_LSQB) {\n return this.call(this.parseTableOrList)\n } else if (this.char === CHAR_NUM) {\n return this.call(this.parseComment)\n } else if (this.char === CTRL_J || this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) {\n return null\n } else if (isAlphaNumQuoteHyphen(this.char)) {\n return this.callNow(this.parseAssignStatement)\n } else {\n throw this.error(new TomlError(`Unknown character \"${this.char}\"`))\n }\n }\n\n // HELPER, this strips any whitespace and comments to the end of the line\n // then RETURNS. Last state in a production.\n parseWhitespaceToEOL () {\n if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) {\n return null\n } else if (this.char === CHAR_NUM) {\n return this.goto(this.parseComment)\n } else if (this.char === Parser.END || this.char === CTRL_J) {\n return this.return()\n } else {\n throw this.error(new TomlError('Unexpected character, expected only whitespace or comments till end of line'))\n }\n }\n\n /* ASSIGNMENT: key = value */\n parseAssignStatement () {\n return this.callNow(this.parseAssign, this.recordAssignStatement)\n }\n recordAssignStatement (kv) {\n let target = this.ctx\n let finalKey = kv.key.pop()\n for (let kw of kv.key) {\n if (hasKey(target, kw) && (!isTable(target[kw]) || target[kw][_declared])) {\n throw this.error(new TomlError(\"Can't redefine existing key\"))\n }\n target = target[kw] = target[kw] || Table()\n }\n if (hasKey(target, finalKey)) {\n throw this.error(new TomlError(\"Can't redefine existing key\"))\n }\n // unbox our numbers\n if (isInteger(kv.value) || isFloat(kv.value)) {\n target[finalKey] = kv.value.valueOf()\n } else {\n target[finalKey] = kv.value\n }\n return this.goto(this.parseWhitespaceToEOL)\n }\n\n /* ASSSIGNMENT expression, key = value possibly inside an inline table */\n parseAssign () {\n return this.callNow(this.parseKeyword, this.recordAssignKeyword)\n }\n recordAssignKeyword (key) {\n if (this.state.resultTable) {\n this.state.resultTable.push(key)\n } else {\n this.state.resultTable = [key]\n }\n return this.goto(this.parseAssignKeywordPreDot)\n }\n parseAssignKeywordPreDot () {\n if (this.char === CHAR_PERIOD) {\n return this.next(this.parseAssignKeywordPostDot)\n } else if (this.char !== CHAR_SP && this.char !== CTRL_I) {\n return this.goto(this.parseAssignEqual)\n }\n }\n parseAssignKeywordPostDot () {\n if (this.char !== CHAR_SP && this.char !== CTRL_I) {\n return this.callNow(this.parseKeyword, this.recordAssignKeyword)\n }\n }\n\n parseAssignEqual () {\n if (this.char === CHAR_EQUALS) {\n return this.next(this.parseAssignPreValue)\n } else {\n throw this.error(new TomlError('Invalid character, expected \"=\"'))\n }\n }\n parseAssignPreValue () {\n if (this.char === CHAR_SP || this.char === CTRL_I) {\n return null\n } else {\n return this.callNow(this.parseValue, this.recordAssignValue)\n }\n }\n recordAssignValue (value) {\n return this.returnNow({key: this.state.resultTable, value: value})\n }\n\n /* COMMENTS: #...eol */\n parseComment () {\n do {\n if (this.char === Parser.END || this.char === CTRL_J) {\n return this.return()\n }\n } while (this.nextChar())\n }\n\n /* TABLES AND LISTS, [foo] and [[foo]] */\n parseTableOrList () {\n if (this.char === CHAR_LSQB) {\n this.next(this.parseList)\n } else {\n return this.goto(this.parseTable)\n }\n }\n\n /* TABLE [foo.bar.baz] */\n parseTable () {\n this.ctx = this.obj\n return this.goto(this.parseTableNext)\n }\n parseTableNext () {\n if (this.char === CHAR_SP || this.char === CTRL_I) {\n return null\n } else {\n return this.callNow(this.parseKeyword, this.parseTableMore)\n }\n }\n parseTableMore (keyword) {\n if (this.char === CHAR_SP || this.char === CTRL_I) {\n return null\n } else if (this.char === CHAR_RSQB) {\n if (hasKey(this.ctx, keyword) && (!isTable(this.ctx[keyword]) || this.ctx[keyword][_declared])) {\n throw this.error(new TomlError(\"Can't redefine existing key\"))\n } else {\n this.ctx = this.ctx[keyword] = this.ctx[keyword] || Table()\n this.ctx[_declared] = true\n }\n return this.next(this.parseWhitespaceToEOL)\n } else if (this.char === CHAR_PERIOD) {\n if (!hasKey(this.ctx, keyword)) {\n this.ctx = this.ctx[keyword] = Table()\n } else if (isTable(this.ctx[keyword])) {\n this.ctx = this.ctx[keyword]\n } else if (isList(this.ctx[keyword])) {\n this.ctx = this.ctx[keyword][this.ctx[keyword].length - 1]\n } else {\n throw this.error(new TomlError(\"Can't redefine existing key\"))\n }\n return this.next(this.parseTableNext)\n } else {\n throw this.error(new TomlError('Unexpected character, expected whitespace, . or ]'))\n }\n }\n\n /* LIST [[a.b.c]] */\n parseList () {\n this.ctx = this.obj\n return this.goto(this.parseListNext)\n }\n parseListNext () {\n if (this.char === CHAR_SP || this.char === CTRL_I) {\n return null\n } else {\n return this.callNow(this.parseKeyword, this.parseListMore)\n }\n }\n parseListMore (keyword) {\n if (this.char === CHAR_SP || this.char === CTRL_I) {\n return null\n } else if (this.char === CHAR_RSQB) {\n if (!hasKey(this.ctx, keyword)) {\n this.ctx[keyword] = List()\n }\n if (isInlineList(this.ctx[keyword])) {\n throw this.error(new TomlError(\"Can't extend an inline array\"))\n } else if (isList(this.ctx[keyword])) {\n const next = Table()\n this.ctx[keyword].push(next)\n this.ctx = next\n } else {\n throw this.error(new TomlError(\"Can't redefine an existing key\"))\n }\n return this.next(this.parseListEnd)\n } else if (this.char === CHAR_PERIOD) {\n if (!hasKey(this.ctx, keyword)) {\n this.ctx = this.ctx[keyword] = Table()\n } else if (isInlineList(this.ctx[keyword])) {\n throw this.error(new TomlError(\"Can't extend an inline array\"))\n } else if (isInlineTable(this.ctx[keyword])) {\n throw this.error(new TomlError(\"Can't extend an inline table\"))\n } else if (isList(this.ctx[keyword])) {\n this.ctx = this.ctx[keyword][this.ctx[keyword].length - 1]\n } else if (isTable(this.ctx[keyword])) {\n this.ctx = this.ctx[keyword]\n } else {\n throw this.error(new TomlError(\"Can't redefine an existing key\"))\n }\n return this.next(this.parseListNext)\n } else {\n throw this.error(new TomlError('Unexpected character, expected whitespace, . or ]'))\n }\n }\n parseListEnd (keyword) {\n if (this.char === CHAR_RSQB) {\n return this.next(this.parseWhitespaceToEOL)\n } else {\n throw this.error(new TomlError('Unexpected character, expected whitespace, . or ]'))\n }\n }\n\n /* VALUE string, number, boolean, inline list, inline object */\n parseValue () {\n if (this.char === Parser.END) {\n throw this.error(new TomlError('Key without value'))\n } else if (this.char === CHAR_QUOT) {\n return this.next(this.parseDoubleString)\n } if (this.char === CHAR_APOS) {\n return this.next(this.parseSingleString)\n } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) {\n return this.goto(this.parseNumberSign)\n } else if (this.char === CHAR_i) {\n return this.next(this.parseInf)\n } else if (this.char === CHAR_n) {\n return this.next(this.parseNan)\n } else if (isDigit(this.char)) {\n return this.goto(this.parseNumberOrDateTime)\n } else if (this.char === CHAR_t || this.char === CHAR_f) {\n return this.goto(this.parseBoolean)\n } else if (this.char === CHAR_LSQB) {\n return this.call(this.parseInlineList, this.recordValue)\n } else if (this.char === CHAR_LCUB) {\n return this.call(this.parseInlineTable, this.recordValue)\n } else {\n throw this.error(new TomlError('Unexpected character, expecting string, number, datetime, boolean, inline array or inline table'))\n }\n }\n recordValue (value) {\n return this.returnNow(value)\n }\n\n parseInf () {\n if (this.char === CHAR_n) {\n return this.next(this.parseInf2)\n } else {\n throw this.error(new TomlError('Unexpected character, expected \"inf\", \"+inf\" or \"-inf\"'))\n }\n }\n parseInf2 () {\n if (this.char === CHAR_f) {\n if (this.state.buf === '-') {\n return this.return(-Infinity)\n } else {\n return this.return(Infinity)\n }\n } else {\n throw this.error(new TomlError('Unexpected character, expected \"inf\", \"+inf\" or \"-inf\"'))\n }\n }\n\n parseNan () {\n if (this.char === CHAR_a) {\n return this.next(this.parseNan2)\n } else {\n throw this.error(new TomlError('Unexpected character, expected \"nan\"'))\n }\n }\n parseNan2 () {\n if (this.char === CHAR_n) {\n return this.return(NaN)\n } else {\n throw this.error(new TomlError('Unexpected character, expected \"nan\"'))\n }\n }\n\n /* KEYS, barewords or basic, literal, or dotted */\n parseKeyword () {\n if (this.char === CHAR_QUOT) {\n return this.next(this.parseBasicString)\n } else if (this.char === CHAR_APOS) {\n return this.next(this.parseLiteralString)\n } else {\n return this.goto(this.parseBareKey)\n }\n }\n\n /* KEYS: barewords */\n parseBareKey () {\n do {\n if (this.char === Parser.END) {\n throw this.error(new TomlError('Key ended without value'))\n } else if (isAlphaNumHyphen(this.char)) {\n this.consume()\n } else if (this.state.buf.length === 0) {\n throw this.error(new TomlError('Empty bare keys are not allowed'))\n } else {\n return this.returnNow()\n }\n } while (this.nextChar())\n }\n\n /* STRINGS, single quoted (literal) */\n parseSingleString () {\n if (this.char === CHAR_APOS) {\n return this.next(this.parseLiteralMultiStringMaybe)\n } else {\n return this.goto(this.parseLiteralString)\n }\n }\n parseLiteralString () {\n do {\n if (this.char === CHAR_APOS) {\n return this.return()\n } else if (this.atEndOfLine()) {\n throw this.error(new TomlError('Unterminated string'))\n } else if (this.char === CHAR_DEL || (this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I)) {\n throw this.errorControlCharInString()\n } else {\n this.consume()\n }\n } while (this.nextChar())\n }\n parseLiteralMultiStringMaybe () {\n if (this.char === CHAR_APOS) {\n return this.next(this.parseLiteralMultiString)\n } else {\n return this.returnNow()\n }\n }\n parseLiteralMultiString () {\n if (this.char === CTRL_M) {\n return null\n } else if (this.char === CTRL_J) {\n return this.next(this.parseLiteralMultiStringContent)\n } else {\n return this.goto(this.parseLiteralMultiStringContent)\n }\n }\n parseLiteralMultiStringContent () {\n do {\n if (this.char === CHAR_APOS) {\n return this.next(this.parseLiteralMultiEnd)\n } else if (this.char === Parser.END) {\n throw this.error(new TomlError('Unterminated multi-line string'))\n } else if (this.char === CHAR_DEL || (this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I && this.char !== CTRL_J && this.char !== CTRL_M)) {\n throw this.errorControlCharInString()\n } else {\n this.consume()\n }\n } while (this.nextChar())\n }\n parseLiteralMultiEnd () {\n if (this.char === CHAR_APOS) {\n return this.next(this.parseLiteralMultiEnd2)\n } else {\n this.state.buf += \"'\"\n return this.goto(this.parseLiteralMultiStringContent)\n }\n }\n parseLiteralMultiEnd2 () {\n if (this.char === CHAR_APOS) {\n return this.return()\n } else {\n this.state.buf += \"''\"\n return this.goto(this.parseLiteralMultiStringContent)\n }\n }\n\n /* STRINGS double quoted */\n parseDoubleString () {\n if (this.char === CHAR_QUOT) {\n return this.next(this.parseMultiStringMaybe)\n } else {\n return this.goto(this.parseBasicString)\n }\n }\n parseBasicString () {\n do {\n if (this.char === CHAR_BSOL) {\n return this.call(this.parseEscape, this.recordEscapeReplacement)\n } else if (this.char === CHAR_QUOT) {\n return this.return()\n } else if (this.atEndOfLine()) {\n throw this.error(new TomlError('Unterminated string'))\n } else if (this.char === CHAR_DEL || (this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I)) {\n throw this.errorControlCharInString()\n } else {\n this.consume()\n }\n } while (this.nextChar())\n }\n recordEscapeReplacement (replacement) {\n this.state.buf += replacement\n return this.goto(this.parseBasicString)\n }\n parseMultiStringMaybe () {\n if (this.char === CHAR_QUOT) {\n return this.next(this.parseMultiString)\n } else {\n return this.returnNow()\n }\n }\n parseMultiString () {\n if (this.char === CTRL_M) {\n return null\n } else if (this.char === CTRL_J) {\n return this.next(this.parseMultiStringContent)\n } else {\n return this.goto(this.parseMultiStringContent)\n }\n }\n parseMultiStringContent () {\n do {\n if (this.char === CHAR_BSOL) {\n return this.call(this.parseMultiEscape, this.recordMultiEscapeReplacement)\n } else if (this.char === CHAR_QUOT) {\n return this.next(this.parseMultiEnd)\n } else if (this.char === Parser.END) {\n throw this.error(new TomlError('Unterminated multi-line string'))\n } else if (this.char === CHAR_DEL || (this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I && this.char !== CTRL_J && this.char !== CTRL_M)) {\n throw this.errorControlCharInString()\n } else {\n this.consume()\n }\n } while (this.nextChar())\n }\n errorControlCharInString () {\n let displayCode = '\\\\u00'\n if (this.char < 16) {\n displayCode += '0'\n }\n displayCode += this.char.toString(16)\n\n return this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${displayCode} instead`))\n }\n recordMultiEscapeReplacement (replacement) {\n this.state.buf += replacement\n return this.goto(this.parseMultiStringContent)\n }\n parseMultiEnd () {\n if (this.char === CHAR_QUOT) {\n return this.next(this.parseMultiEnd2)\n } else {\n this.state.buf += '\"'\n return this.goto(this.parseMultiStringContent)\n }\n }\n parseMultiEnd2 () {\n if (this.char === CHAR_QUOT) {\n return this.return()\n } else {\n this.state.buf += '\"\"'\n return this.goto(this.parseMultiStringContent)\n }\n }\n parseMultiEscape () {\n if (this.char === CTRL_M || this.char === CTRL_J) {\n return this.next(this.parseMultiTrim)\n } else if (this.char === CHAR_SP || this.char === CTRL_I) {\n return this.next(this.parsePreMultiTrim)\n } else {\n return this.goto(this.parseEscape)\n }\n }\n parsePreMultiTrim () {\n if (this.char === CHAR_SP || this.char === CTRL_I) {\n return null\n } else if (this.char === CTRL_M || this.char === CTRL_J) {\n return this.next(this.parseMultiTrim)\n } else {\n throw this.error(new TomlError(\"Can't escape whitespace\"))\n }\n }\n parseMultiTrim () {\n // explicitly whitespace here, END should follow the same path as chars\n if (this.char === CTRL_J || this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M) {\n return null\n } else {\n return this.returnNow()\n }\n }\n parseEscape () {\n if (this.char in escapes) {\n return this.return(escapes[this.char])\n } else if (this.char === CHAR_u) {\n return this.call(this.parseSmallUnicode, this.parseUnicodeReturn)\n } else if (this.char === CHAR_U) {\n return this.call(this.parseLargeUnicode, this.parseUnicodeReturn)\n } else {\n throw this.error(new TomlError('Unknown escape character: ' + this.char))\n }\n }\n parseUnicodeReturn (char) {\n try {\n const codePoint = parseInt(char, 16)\n if (codePoint >= SURROGATE_FIRST && codePoint <= SURROGATE_LAST) {\n throw this.error(new TomlError('Invalid unicode, character in range 0xD800 - 0xDFFF is reserved'))\n }\n return this.returnNow(String.fromCodePoint(codePoint))\n } catch (err) {\n throw this.error(TomlError.wrap(err))\n }\n }\n parseSmallUnicode () {\n if (!isHexit(this.char)) {\n throw this.error(new TomlError('Invalid character in unicode sequence, expected hex'))\n } else {\n this.consume()\n if (this.state.buf.length >= 4) return this.return()\n }\n }\n parseLargeUnicode () {\n if (!isHexit(this.char)) {\n throw this.error(new TomlError('Invalid character in unicode sequence, expected hex'))\n } else {\n this.consume()\n if (this.state.buf.length >= 8) return this.return()\n }\n }\n\n /* NUMBERS */\n parseNumberSign () {\n this.consume()\n return this.next(this.parseMaybeSignedInfOrNan)\n }\n parseMaybeSignedInfOrNan () {\n if (this.char === CHAR_i) {\n return this.next(this.parseInf)\n } else if (this.char === CHAR_n) {\n return this.next(this.parseNan)\n } else {\n return this.callNow(this.parseNoUnder, this.parseNumberIntegerStart)\n }\n }\n parseNumberIntegerStart () {\n if (this.char === CHAR_0) {\n this.consume()\n return this.next(this.parseNumberIntegerExponentOrDecimal)\n } else {\n return this.goto(this.parseNumberInteger)\n }\n }\n parseNumberIntegerExponentOrDecimal () {\n if (this.char === CHAR_PERIOD) {\n this.consume()\n return this.call(this.parseNoUnder, this.parseNumberFloat)\n } else if (this.char === CHAR_E || this.char === CHAR_e) {\n this.consume()\n return this.next(this.parseNumberExponentSign)\n } else {\n return this.returnNow(Integer(this.state.buf))\n }\n }\n parseNumberInteger () {\n if (isDigit(this.char)) {\n this.consume()\n } else if (this.char === CHAR_LOWBAR) {\n return this.call(this.parseNoUnder)\n } else if (this.char === CHAR_E || this.char === CHAR_e) {\n this.consume()\n return this.next(this.parseNumberExponentSign)\n } else if (this.char === CHAR_PERIOD) {\n this.consume()\n return this.call(this.parseNoUnder, this.parseNumberFloat)\n } else {\n const result = Integer(this.state.buf)\n /* istanbul ignore if */\n if (result.isNaN()) {\n throw this.error(new TomlError('Invalid number'))\n } else {\n return this.returnNow(result)\n }\n }\n }\n parseNoUnder () {\n if (this.char === CHAR_LOWBAR || this.char === CHAR_PERIOD || this.char === CHAR_E || this.char === CHAR_e) {\n throw this.error(new TomlError('Unexpected character, expected digit'))\n } else if (this.atEndOfWord()) {\n throw this.error(new TomlError('Incomplete number'))\n }\n return this.returnNow()\n }\n parseNoUnderHexOctBinLiteral () {\n if (this.char === CHAR_LOWBAR || this.char === CHAR_PERIOD) {\n throw this.error(new TomlError('Unexpected character, expected digit'))\n } else if (this.atEndOfWord()) {\n throw this.error(new TomlError('Incomplete number'))\n }\n return this.returnNow()\n }\n parseNumberFloat () {\n if (this.char === CHAR_LOWBAR) {\n return this.call(this.parseNoUnder, this.parseNumberFloat)\n } else if (isDigit(this.char)) {\n this.consume()\n } else if (this.char === CHAR_E || this.char === CHAR_e) {\n this.consume()\n return this.next(this.parseNumberExponentSign)\n } else {\n return this.returnNow(Float(this.state.buf))\n }\n }\n parseNumberExponentSign () {\n if (isDigit(this.char)) {\n return this.goto(this.parseNumberExponent)\n } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) {\n this.consume()\n this.call(this.parseNoUnder, this.parseNumberExponent)\n } else {\n throw this.error(new TomlError('Unexpected character, expected -, + or digit'))\n }\n }\n parseNumberExponent () {\n if (isDigit(this.char)) {\n this.consume()\n } else if (this.char === CHAR_LOWBAR) {\n return this.call(this.parseNoUnder)\n } else {\n return this.returnNow(Float(this.state.buf))\n }\n }\n\n /* NUMBERS or DATETIMES */\n parseNumberOrDateTime () {\n if (this.char === CHAR_0) {\n this.consume()\n return this.next(this.parseNumberBaseOrDateTime)\n } else {\n return this.goto(this.parseNumberOrDateTimeOnly)\n }\n }\n parseNumberOrDateTimeOnly () {\n // note, if two zeros are in a row then it MUST be a date\n if (this.char === CHAR_LOWBAR) {\n return this.call(this.parseNoUnder, this.parseNumberInteger)\n } else if (isDigit(this.char)) {\n this.consume()\n if (this.state.buf.length > 4) this.next(this.parseNumberInteger)\n } else if (this.char === CHAR_E || this.char === CHAR_e) {\n this.consume()\n return this.next(this.parseNumberExponentSign)\n } else if (this.char === CHAR_PERIOD) {\n this.consume()\n return this.call(this.parseNoUnder, this.parseNumberFloat)\n } else if (this.char === CHAR_HYPHEN) {\n return this.goto(this.parseDateTime)\n } else if (this.char === CHAR_COLON) {\n return this.goto(this.parseOnlyTimeHour)\n } else {\n return this.returnNow(Integer(this.state.buf))\n }\n }\n parseDateTimeOnly () {\n if (this.state.buf.length < 4) {\n if (isDigit(this.char)) {\n return this.consume()\n } else if (this.char === CHAR_COLON) {\n return this.goto(this.parseOnlyTimeHour)\n } else {\n throw this.error(new TomlError('Expected digit while parsing year part of a date'))\n }\n } else {\n if (this.char === CHAR_HYPHEN) {\n return this.goto(this.parseDateTime)\n } else {\n throw this.error(new TomlError('Expected hyphen (-) while parsing year part of date'))\n }\n }\n }\n parseNumberBaseOrDateTime () {\n if (this.char === CHAR_b) {\n this.consume()\n return this.call(this.parseNoUnderHexOctBinLiteral, this.parseIntegerBin)\n } else if (this.char === CHAR_o) {\n this.consume()\n return this.call(this.parseNoUnderHexOctBinLiteral, this.parseIntegerOct)\n } else if (this.char === CHAR_x) {\n this.consume()\n return this.call(this.parseNoUnderHexOctBinLiteral, this.parseIntegerHex)\n } else if (this.char === CHAR_PERIOD) {\n return this.goto(this.parseNumberInteger)\n } else if (isDigit(this.char)) {\n return this.goto(this.parseDateTimeOnly)\n } else {\n return this.returnNow(Integer(this.state.buf))\n }\n }\n parseIntegerHex () {\n if (isHexit(this.char)) {\n this.consume()\n } else if (this.char === CHAR_LOWBAR) {\n return this.call(this.parseNoUnderHexOctBinLiteral)\n } else {\n const result = Integer(this.state.buf)\n /* istanbul ignore if */\n if (result.isNaN()) {\n throw this.error(new TomlError('Invalid number'))\n } else {\n return this.returnNow(result)\n }\n }\n }\n parseIntegerOct () {\n if (isOctit(this.char)) {\n this.consume()\n } else if (this.char === CHAR_LOWBAR) {\n return this.call(this.parseNoUnderHexOctBinLiteral)\n } else {\n const result = Integer(this.state.buf)\n /* istanbul ignore if */\n if (result.isNaN()) {\n throw this.error(new TomlError('Invalid number'))\n } else {\n return this.returnNow(result)\n }\n }\n }\n parseIntegerBin () {\n if (isBit(this.char)) {\n this.consume()\n } else if (this.char === CHAR_LOWBAR) {\n return this.call(this.parseNoUnderHexOctBinLiteral)\n } else {\n const result = Integer(this.state.buf)\n /* istanbul ignore if */\n if (result.isNaN()) {\n throw this.error(new TomlError('Invalid number'))\n } else {\n return this.returnNow(result)\n }\n }\n }\n\n /* DATETIME */\n parseDateTime () {\n // we enter here having just consumed the year and about to consume the hyphen\n if (this.state.buf.length < 4) {\n throw this.error(new TomlError('Years less than 1000 must be zero padded to four characters'))\n }\n this.state.result = this.state.buf\n this.state.buf = ''\n return this.next(this.parseDateMonth)\n }\n parseDateMonth () {\n if (this.char === CHAR_HYPHEN) {\n if (this.state.buf.length < 2) {\n throw this.error(new TomlError('Months less than 10 must be zero padded to two characters'))\n }\n this.state.result += '-' + this.state.buf\n this.state.buf = ''\n return this.next(this.parseDateDay)\n } else if (isDigit(this.char)) {\n this.consume()\n } else {\n throw this.error(new TomlError('Incomplete datetime'))\n }\n }\n parseDateDay () {\n if (this.char === CHAR_T || this.char === CHAR_SP) {\n if (this.state.buf.length < 2) {\n throw this.error(new TomlError('Days less than 10 must be zero padded to two characters'))\n }\n this.state.result += '-' + this.state.buf\n this.state.buf = ''\n return this.next(this.parseStartTimeHour)\n } else if (this.atEndOfWord()) {\n return this.returnNow(createDate(this.state.result + '-' + this.state.buf))\n } else if (isDigit(this.char)) {\n this.consume()\n } else {\n throw this.error(new TomlError('Incomplete datetime'))\n }\n }\n parseStartTimeHour () {\n if (this.atEndOfWord()) {\n return this.returnNow(createDate(this.state.result))\n } else {\n return this.goto(this.parseTimeHour)\n }\n }\n parseTimeHour () {\n if (this.char === CHAR_COLON) {\n if (this.state.buf.length < 2) {\n throw this.error(new TomlError('Hours less than 10 must be zero padded to two characters'))\n }\n this.state.result += 'T' + this.state.buf\n this.state.buf = ''\n return this.next(this.parseTimeMin)\n } else if (isDigit(this.char)) {\n this.consume()\n } else {\n throw this.error(new TomlError('Incomplete datetime'))\n }\n }\n parseTimeMin () {\n if (this.state.buf.length < 2 && isDigit(this.char)) {\n this.consume()\n } else if (this.state.buf.length === 2 && this.char === CHAR_COLON) {\n this.state.result += ':' + this.state.buf\n this.state.buf = ''\n return this.next(this.parseTimeSec)\n } else {\n throw this.error(new TomlError('Incomplete datetime'))\n }\n }\n parseTimeSec () {\n if (isDigit(this.char)) {\n this.consume()\n if (this.state.buf.length === 2) {\n this.state.result += ':' + this.state.buf\n this.state.buf = ''\n return this.next(this.parseTimeZoneOrFraction)\n }\n } else {\n throw this.error(new TomlError('Incomplete datetime'))\n }\n }\n\n parseOnlyTimeHour () {\n /* istanbul ignore else */\n if (this.char === CHAR_COLON) {\n if (this.state.buf.length < 2) {\n throw this.error(new TomlError('Hours less than 10 must be zero padded to two characters'))\n }\n this.state.result = this.state.buf\n this.state.buf = ''\n return this.next(this.parseOnlyTimeMin)\n } else {\n throw this.error(new TomlError('Incomplete time'))\n }\n }\n parseOnlyTimeMin () {\n if (this.state.buf.length < 2 && isDigit(this.char)) {\n this.consume()\n } else if (this.state.buf.length === 2 && this.char === CHAR_COLON) {\n this.state.result += ':' + this.state.buf\n this.state.buf = ''\n return this.next(this.parseOnlyTimeSec)\n } else {\n throw this.error(new TomlError('Incomplete time'))\n }\n }\n parseOnlyTimeSec () {\n if (isDigit(this.char)) {\n this.consume()\n if (this.state.buf.length === 2) {\n return this.next(this.parseOnlyTimeFractionMaybe)\n }\n } else {\n throw this.error(new TomlError('Incomplete time'))\n }\n }\n parseOnlyTimeFractionMaybe () {\n this.state.result += ':' + this.state.buf\n if (this.char === CHAR_PERIOD) {\n this.state.buf = ''\n this.next(this.parseOnlyTimeFraction)\n } else {\n return this.return(createTime(this.state.result))\n }\n }\n parseOnlyTimeFraction () {\n if (isDigit(this.char)) {\n this.consume()\n } else if (this.atEndOfWord()) {\n if (this.state.buf.length === 0) throw this.error(new TomlError('Expected digit in milliseconds'))\n return this.returnNow(createTime(this.state.result + '.' + this.state.buf))\n } else {\n throw this.error(new TomlError('Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z'))\n }\n }\n\n parseTimeZoneOrFraction () {\n if (this.char === CHAR_PERIOD) {\n this.consume()\n this.next(this.parseDateTimeFraction)\n } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) {\n this.consume()\n this.next(this.parseTimeZoneHour)\n } else if (this.char === CHAR_Z) {\n this.consume()\n return this.return(createDateTime(this.state.result + this.state.buf))\n } else if (this.atEndOfWord()) {\n return this.returnNow(createDateTimeFloat(this.state.result + this.state.buf))\n } else {\n throw this.error(new TomlError('Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z'))\n }\n }\n parseDateTimeFraction () {\n if (isDigit(this.char)) {\n this.consume()\n } else if (this.state.buf.length === 1) {\n throw this.error(new TomlError('Expected digit in milliseconds'))\n } else if (this.char === CHAR_HYPHEN || this.char === CHAR_PLUS) {\n this.consume()\n this.next(this.parseTimeZoneHour)\n } else if (this.char === CHAR_Z) {\n this.consume()\n return this.return(createDateTime(this.state.result + this.state.buf))\n } else if (this.atEndOfWord()) {\n return this.returnNow(createDateTimeFloat(this.state.result + this.state.buf))\n } else {\n throw this.error(new TomlError('Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z'))\n }\n }\n parseTimeZoneHour () {\n if (isDigit(this.char)) {\n this.consume()\n // FIXME: No more regexps\n if (/\\d\\d$/.test(this.state.buf)) return this.next(this.parseTimeZoneSep)\n } else {\n throw this.error(new TomlError('Unexpected character in datetime, expected digit'))\n }\n }\n parseTimeZoneSep () {\n if (this.char === CHAR_COLON) {\n this.consume()\n this.next(this.parseTimeZoneMin)\n } else {\n throw this.error(new TomlError('Unexpected character in datetime, expected colon'))\n }\n }\n parseTimeZoneMin () {\n if (isDigit(this.char)) {\n this.consume()\n if (/\\d\\d$/.test(this.state.buf)) return this.return(createDateTime(this.state.result + this.state.buf))\n } else {\n throw this.error(new TomlError('Unexpected character in datetime, expected digit'))\n }\n }\n\n /* BOOLEAN */\n parseBoolean () {\n /* istanbul ignore else */\n if (this.char === CHAR_t) {\n this.consume()\n return this.next(this.parseTrue_r)\n } else if (this.char === CHAR_f) {\n this.consume()\n return this.next(this.parseFalse_a)\n }\n }\n parseTrue_r () {\n if (this.char === CHAR_r) {\n this.consume()\n return this.next(this.parseTrue_u)\n } else {\n throw this.error(new TomlError('Invalid boolean, expected true or false'))\n }\n }\n parseTrue_u () {\n if (this.char === CHAR_u) {\n this.consume()\n return this.next(this.parseTrue_e)\n } else {\n throw this.error(new TomlError('Invalid boolean, expected true or false'))\n }\n }\n parseTrue_e () {\n if (this.char === CHAR_e) {\n return this.return(true)\n } else {\n throw this.error(new TomlError('Invalid boolean, expected true or false'))\n }\n }\n\n parseFalse_a () {\n if (this.char === CHAR_a) {\n this.consume()\n return this.next(this.parseFalse_l)\n } else {\n throw this.error(new TomlError('Invalid boolean, expected true or false'))\n }\n }\n\n parseFalse_l () {\n if (this.char === CHAR_l) {\n this.consume()\n return this.next(this.parseFalse_s)\n } else {\n throw this.error(new TomlError('Invalid boolean, expected true or false'))\n }\n }\n\n parseFalse_s () {\n if (this.char === CHAR_s) {\n this.consume()\n return this.next(this.parseFalse_e)\n } else {\n throw this.error(new TomlError('Invalid boolean, expected true or false'))\n }\n }\n\n parseFalse_e () {\n if (this.char === CHAR_e) {\n return this.return(false)\n } else {\n throw this.error(new TomlError('Invalid boolean, expected true or false'))\n }\n }\n\n /* INLINE LISTS */\n parseInlineList () {\n if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M || this.char === CTRL_J) {\n return null\n } else if (this.char === Parser.END) {\n throw this.error(new TomlError('Unterminated inline array'))\n } else if (this.char === CHAR_NUM) {\n return this.call(this.parseComment)\n } else if (this.char === CHAR_RSQB) {\n return this.return(this.state.resultArr || InlineList())\n } else {\n return this.callNow(this.parseValue, this.recordInlineListValue)\n }\n }\n recordInlineListValue (value) {\n if (this.state.resultArr) {\n const listType = this.state.resultArr[_contentType]\n const valueType = tomlType(value)\n if (listType !== valueType) {\n throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${listType} and ${valueType}`))\n }\n } else {\n this.state.resultArr = InlineList(tomlType(value))\n }\n if (isFloat(value) || isInteger(value)) {\n // unbox now that we've verified they're ok\n this.state.resultArr.push(value.valueOf())\n } else {\n this.state.resultArr.push(value)\n }\n return this.goto(this.parseInlineListNext)\n }\n parseInlineListNext () {\n if (this.char === CHAR_SP || this.char === CTRL_I || this.char === CTRL_M || this.char === CTRL_J) {\n return null\n } else if (this.char === CHAR_NUM) {\n return this.call(this.parseComment)\n } else if (this.char === CHAR_COMMA) {\n return this.next(this.parseInlineList)\n } else if (this.char === CHAR_RSQB) {\n return this.goto(this.parseInlineList)\n } else {\n throw this.error(new TomlError('Invalid character, expected whitespace, comma (,) or close bracket (])'))\n }\n }\n\n /* INLINE TABLE */\n parseInlineTable () {\n if (this.char === CHAR_SP || this.char === CTRL_I) {\n return null\n } else if (this.char === Parser.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) {\n throw this.error(new TomlError('Unterminated inline array'))\n } else if (this.char === CHAR_RCUB) {\n return this.return(this.state.resultTable || InlineTable())\n } else {\n if (!this.state.resultTable) this.state.resultTable = InlineTable()\n return this.callNow(this.parseAssign, this.recordInlineTableValue)\n }\n }\n recordInlineTableValue (kv) {\n let target = this.state.resultTable\n let finalKey = kv.key.pop()\n for (let kw of kv.key) {\n if (hasKey(target, kw) && (!isTable(target[kw]) || target[kw][_declared])) {\n throw this.error(new TomlError(\"Can't redefine existing key\"))\n }\n target = target[kw] = target[kw] || Table()\n }\n if (hasKey(target, finalKey)) {\n throw this.error(new TomlError(\"Can't redefine existing key\"))\n }\n if (isInteger(kv.value) || isFloat(kv.value)) {\n target[finalKey] = kv.value.valueOf()\n } else {\n target[finalKey] = kv.value\n }\n return this.goto(this.parseInlineTableNext)\n }\n parseInlineTableNext () {\n if (this.char === CHAR_SP || this.char === CTRL_I) {\n return null\n } else if (this.char === Parser.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) {\n throw this.error(new TomlError('Unterminated inline array'))\n } else if (this.char === CHAR_COMMA) {\n return this.next(this.parseInlineTable)\n } else if (this.char === CHAR_RCUB) {\n return this.goto(this.parseInlineTable)\n } else {\n throw this.error(new TomlError('Invalid character, expected whitespace, comma (,) or close bracket (])'))\n }\n }\n }\n return TOMLParser\n}\n","'use strict'\nconst ParserEND = 0x110000\nclass ParserError extends Error {\n /* istanbul ignore next */\n constructor (msg, filename, linenumber) {\n super('[ParserError] ' + msg, filename, linenumber)\n this.name = 'ParserError'\n this.code = 'ParserError'\n if (Error.captureStackTrace) Error.captureStackTrace(this, ParserError)\n }\n}\nclass State {\n constructor (parser) {\n this.parser = parser\n this.buf = ''\n this.returned = null\n this.result = null\n this.resultTable = null\n this.resultArr = null\n }\n}\nclass Parser {\n constructor () {\n this.pos = 0\n this.col = 0\n this.line = 0\n this.obj = {}\n this.ctx = this.obj\n this.stack = []\n this._buf = ''\n this.char = null\n this.ii = 0\n this.state = new State(this.parseStart)\n }\n\n parse (str) {\n /* istanbul ignore next */\n if (str.length === 0 || str.length == null) return\n\n this._buf = String(str)\n this.ii = -1\n this.char = -1\n let getNext\n while (getNext === false || this.nextChar()) {\n getNext = this.runOne()\n }\n this._buf = null\n }\n nextChar () {\n if (this.char === 0x0A) {\n ++this.line\n this.col = -1\n }\n ++this.ii\n this.char = this._buf.codePointAt(this.ii)\n ++this.pos\n ++this.col\n return this.haveBuffer()\n }\n haveBuffer () {\n return this.ii < this._buf.length\n }\n runOne () {\n return this.state.parser.call(this, this.state.returned)\n }\n finish () {\n this.char = ParserEND\n let last\n do {\n last = this.state.parser\n this.runOne()\n } while (this.state.parser !== last)\n\n this.ctx = null\n this.state = null\n this._buf = null\n\n return this.obj\n }\n next (fn) {\n /* istanbul ignore next */\n if (typeof fn !== 'function') throw new ParserError('Tried to set state to non-existent state: ' + JSON.stringify(fn))\n this.state.parser = fn\n }\n goto (fn) {\n this.next(fn)\n return this.runOne()\n }\n call (fn, returnWith) {\n if (returnWith) this.next(returnWith)\n this.stack.push(this.state)\n this.state = new State(fn)\n }\n callNow (fn, returnWith) {\n this.call(fn, returnWith)\n return this.runOne()\n }\n return (value) {\n /* istanbul ignore next */\n if (this.stack.length === 0) throw this.error(new ParserError('Stack underflow'))\n if (value === undefined) value = this.state.buf\n this.state = this.stack.pop()\n this.state.returned = value\n }\n returnNow (value) {\n this.return(value)\n return this.runOne()\n }\n consume () {\n /* istanbul ignore next */\n if (this.char === ParserEND) throw this.error(new ParserError('Unexpected end-of-buffer'))\n this.state.buf += this._buf[this.ii]\n }\n error (err) {\n err.line = this.line\n err.col = this.col\n err.pos = this.pos\n return err\n }\n /* istanbul ignore next */\n parseStart () {\n throw new ParserError('Must declare a parseStart method')\n }\n}\nParser.END = ParserEND\nParser.Error = ParserError\nmodule.exports = Parser\n","'use strict'\nmodule.exports = value => {\n const date = new Date(value)\n /* istanbul ignore if */\n if (isNaN(date)) {\n throw new TypeError('Invalid Datetime')\n } else {\n return date\n }\n}\n","'use strict'\nconst f = require('./format-num.js')\n\nclass FloatingDateTime extends Date {\n constructor (value) {\n super(value + 'Z')\n this.isFloating = true\n }\n toISOString () {\n const date = `${this.getUTCFullYear()}-${f(2, this.getUTCMonth() + 1)}-${f(2, this.getUTCDate())}`\n const time = `${f(2, this.getUTCHours())}:${f(2, this.getUTCMinutes())}:${f(2, this.getUTCSeconds())}.${f(3, this.getUTCMilliseconds())}`\n return `${date}T${time}`\n }\n}\n\nmodule.exports = value => {\n const date = new FloatingDateTime(value)\n /* istanbul ignore if */\n if (isNaN(date)) {\n throw new TypeError('Invalid Datetime')\n } else {\n return date\n }\n}\n","'use strict'\nmodule.exports = (d, num) => {\n num = String(num)\n while (num.length < d) num = '0' + num\n return num\n}\n","'use strict'\nconst f = require('./format-num.js')\nconst DateTime = global.Date\n\nclass Date extends DateTime {\n constructor (value) {\n super(value)\n this.isDate = true\n }\n toISOString () {\n return `${this.getUTCFullYear()}-${f(2, this.getUTCMonth() + 1)}-${f(2, this.getUTCDate())}`\n }\n}\n\nmodule.exports = value => {\n const date = new Date(value)\n /* istanbul ignore if */\n if (isNaN(date)) {\n throw new TypeError('Invalid Datetime')\n } else {\n return date\n }\n}\n","'use strict'\nconst f = require('./format-num.js')\n\nclass Time extends Date {\n constructor (value) {\n super(`0000-01-01T${value}Z`)\n this.isTime = true\n }\n toISOString () {\n return `${f(2, this.getUTCHours())}:${f(2, this.getUTCMinutes())}:${f(2, this.getUTCSeconds())}.${f(3, this.getUTCMilliseconds())}`\n }\n}\n\nmodule.exports = value => {\n const date = new Time(value)\n /* istanbul ignore if */\n if (isNaN(date)) {\n throw new TypeError('Invalid Datetime')\n } else {\n return date\n }\n}\n","'use strict'\nmodule.exports = prettyError\n\nfunction prettyError (err, buf) {\n /* istanbul ignore if */\n if (err.pos == null || err.line == null) return err\n let msg = err.message\n msg += ` at row ${err.line + 1}, col ${err.col + 1}, pos ${err.pos}:\\n`\n\n /* istanbul ignore else */\n if (buf && buf.split) {\n const lines = buf.split(/\\n/)\n const lineNumWidth = String(Math.min(lines.length, err.line + 3)).length\n let linePadding = ' '\n while (linePadding.length < lineNumWidth) linePadding += ' '\n for (let ii = Math.max(0, err.line - 1); ii < Math.min(lines.length, err.line + 2); ++ii) {\n let lineNum = String(ii + 1)\n if (lineNum.length < lineNumWidth) lineNum = ' ' + lineNum\n if (err.line === ii) {\n msg += lineNum + '> ' + lines[ii] + '\\n'\n msg += linePadding + ' '\n for (let hh = 0; hh < err.col; ++hh) {\n msg += ' '\n }\n msg += '^\\n'\n } else {\n msg += lineNum + ': ' + lines[ii] + '\\n'\n }\n }\n }\n err.message = msg + '\\n'\n return err\n}\n","'use strict'\nmodule.exports = parseAsync\n\nconst TOMLParser = require('./lib/toml-parser.js')\nconst prettyError = require('./parse-pretty-error.js')\n\nfunction parseAsync (str, opts) {\n if (!opts) opts = {}\n const index = 0\n const blocksize = opts.blocksize || 40960\n const parser = new TOMLParser()\n return new Promise((resolve, reject) => {\n setImmediate(parseAsyncNext, index, blocksize, resolve, reject)\n })\n function parseAsyncNext (index, blocksize, resolve, reject) {\n if (index >= str.length) {\n try {\n return resolve(parser.finish())\n } catch (err) {\n return reject(prettyError(err, str))\n }\n }\n try {\n parser.parse(str.slice(index, index + blocksize))\n setImmediate(parseAsyncNext, index + blocksize, blocksize, resolve, reject)\n } catch (err) {\n reject(prettyError(err, str))\n }\n }\n}\n","'use strict'\nmodule.exports = parseStream\n\nconst stream = require('stream')\nconst TOMLParser = require('./lib/toml-parser.js')\n\nfunction parseStream (stm) {\n if (stm) {\n return parseReadable(stm)\n } else {\n return parseTransform(stm)\n }\n}\n\nfunction parseReadable (stm) {\n const parser = new TOMLParser()\n stm.setEncoding('utf8')\n return new Promise((resolve, reject) => {\n let readable\n let ended = false\n let errored = false\n function finish () {\n ended = true\n if (readable) return\n try {\n resolve(parser.finish())\n } catch (err) {\n reject(err)\n }\n }\n function error (err) {\n errored = true\n reject(err)\n }\n stm.once('end', finish)\n stm.once('error', error)\n readNext()\n\n function readNext () {\n readable = true\n let data\n while ((data = stm.read()) !== null) {\n try {\n parser.parse(data)\n } catch (err) {\n return error(err)\n }\n }\n readable = false\n /* istanbul ignore if */\n if (ended) return finish()\n /* istanbul ignore if */\n if (errored) return\n stm.once('readable', readNext)\n }\n })\n}\n\nfunction parseTransform () {\n const parser = new TOMLParser()\n return new stream.Transform({\n objectMode: true,\n transform (chunk, encoding, cb) {\n try {\n parser.parse(chunk.toString(encoding))\n } catch (err) {\n this.emit('error', err)\n }\n cb()\n },\n flush (cb) {\n try {\n this.push(parser.finish())\n } catch (err) {\n this.emit('error', err)\n }\n cb()\n }\n })\n}\n","'use strict'\nmodule.exports = stringify\nmodule.exports.value = stringifyInline\n\nfunction stringify (obj) {\n if (obj === null) throw typeError('null')\n if (obj === void (0)) throw typeError('undefined')\n if (typeof obj !== 'object') throw typeError(typeof obj)\n\n if (typeof obj.toJSON === 'function') obj = obj.toJSON()\n if (obj == null) return null\n const type = tomlType(obj)\n if (type !== 'table') throw typeError(type)\n return stringifyObject('', '', obj)\n}\n\nfunction typeError (type) {\n return new Error('Can only stringify objects, not ' + type)\n}\n\nfunction arrayOneTypeError () {\n return new Error(\"Array values can't have mixed types\")\n}\n\nfunction getInlineKeys (obj) {\n return Object.keys(obj).filter(key => isInline(obj[key]))\n}\nfunction getComplexKeys (obj) {\n return Object.keys(obj).filter(key => !isInline(obj[key]))\n}\n\nfunction toJSON (obj) {\n let nobj = Array.isArray(obj) ? [] : Object.prototype.hasOwnProperty.call(obj, '__proto__') ? {['__proto__']: undefined} : {}\n for (let prop of Object.keys(obj)) {\n if (obj[prop] && typeof obj[prop].toJSON === 'function' && !('toISOString' in obj[prop])) {\n nobj[prop] = obj[prop].toJSON()\n } else {\n nobj[prop] = obj[prop]\n }\n }\n return nobj\n}\n\nfunction stringifyObject (prefix, indent, obj) {\n obj = toJSON(obj)\n var inlineKeys\n var complexKeys\n inlineKeys = getInlineKeys(obj)\n complexKeys = getComplexKeys(obj)\n var result = []\n var inlineIndent = indent || ''\n inlineKeys.forEach(key => {\n var type = tomlType(obj[key])\n if (type !== 'undefined' && type !== 'null') {\n result.push(inlineIndent + stringifyKey(key) + ' = ' + stringifyAnyInline(obj[key], true))\n }\n })\n if (result.length > 0) result.push('')\n var complexIndent = prefix && inlineKeys.length > 0 ? indent + ' ' : ''\n complexKeys.forEach(key => {\n result.push(stringifyComplex(prefix, complexIndent, key, obj[key]))\n })\n return result.join('\\n')\n}\n\nfunction isInline (value) {\n switch (tomlType(value)) {\n case 'undefined':\n case 'null':\n case 'integer':\n case 'nan':\n case 'float':\n case 'boolean':\n case 'string':\n case 'datetime':\n return true\n case 'array':\n return value.length === 0 || tomlType(value[0]) !== 'table'\n case 'table':\n return Object.keys(value).length === 0\n /* istanbul ignore next */\n default:\n return false\n }\n}\n\nfunction tomlType (value) {\n if (value === undefined) {\n return 'undefined'\n } else if (value === null) {\n return 'null'\n /* eslint-disable valid-typeof */\n } else if (typeof value === 'bigint' || (Number.isInteger(value) && !Object.is(value, -0))) {\n return 'integer'\n } else if (typeof value === 'number') {\n return 'float'\n } else if (typeof value === 'boolean') {\n return 'boolean'\n } else if (typeof value === 'string') {\n return 'string'\n } else if ('toISOString' in value) {\n return isNaN(value) ? 'undefined' : 'datetime'\n } else if (Array.isArray(value)) {\n return 'array'\n } else {\n return 'table'\n }\n}\n\nfunction stringifyKey (key) {\n var keyStr = String(key)\n if (/^[-A-Za-z0-9_]+$/.test(keyStr)) {\n return keyStr\n } else {\n return stringifyBasicString(keyStr)\n }\n}\n\nfunction stringifyBasicString (str) {\n return '\"' + escapeString(str).replace(/\"/g, '\\\\\"') + '\"'\n}\n\nfunction stringifyLiteralString (str) {\n return \"'\" + str + \"'\"\n}\n\nfunction numpad (num, str) {\n while (str.length < num) str = '0' + str\n return str\n}\n\nfunction escapeString (str) {\n return str.replace(/\\\\/g, '\\\\\\\\')\n .replace(/[\\b]/g, '\\\\b')\n .replace(/\\t/g, '\\\\t')\n .replace(/\\n/g, '\\\\n')\n .replace(/\\f/g, '\\\\f')\n .replace(/\\r/g, '\\\\r')\n /* eslint-disable no-control-regex */\n .replace(/([\\u0000-\\u001f\\u007f])/, c => '\\\\u' + numpad(4, c.codePointAt(0).toString(16)))\n /* eslint-enable no-control-regex */\n}\n\nfunction stringifyMultilineString (str) {\n let escaped = str.split(/\\n/).map(str => {\n return escapeString(str).replace(/\"(?=\"\")/g, '\\\\\"')\n }).join('\\n')\n if (escaped.slice(-1) === '\"') escaped += '\\\\\\n'\n return '\"\"\"\\n' + escaped + '\"\"\"'\n}\n\nfunction stringifyAnyInline (value, multilineOk) {\n let type = tomlType(value)\n if (type === 'string') {\n if (multilineOk && /\\n/.test(value)) {\n type = 'string-multiline'\n } else if (!/[\\b\\t\\n\\f\\r']/.test(value) && /\"/.test(value)) {\n type = 'string-literal'\n }\n }\n return stringifyInline(value, type)\n}\n\nfunction stringifyInline (value, type) {\n /* istanbul ignore if */\n if (!type) type = tomlType(value)\n switch (type) {\n case 'string-multiline':\n return stringifyMultilineString(value)\n case 'string':\n return stringifyBasicString(value)\n case 'string-literal':\n return stringifyLiteralString(value)\n case 'integer':\n return stringifyInteger(value)\n case 'float':\n return stringifyFloat(value)\n case 'boolean':\n return stringifyBoolean(value)\n case 'datetime':\n return stringifyDatetime(value)\n case 'array':\n return stringifyInlineArray(value.filter(_ => tomlType(_) !== 'null' && tomlType(_) !== 'undefined' && tomlType(_) !== 'nan'))\n case 'table':\n return stringifyInlineTable(value)\n /* istanbul ignore next */\n default:\n throw typeError(type)\n }\n}\n\nfunction stringifyInteger (value) {\n /* eslint-disable security/detect-unsafe-regex */\n return String(value).replace(/\\B(?=(\\d{3})+(?!\\d))/g, '_')\n}\n\nfunction stringifyFloat (value) {\n if (value === Infinity) {\n return 'inf'\n } else if (value === -Infinity) {\n return '-inf'\n } else if (Object.is(value, NaN)) {\n return 'nan'\n } else if (Object.is(value, -0)) {\n return '-0.0'\n }\n var chunks = String(value).split('.')\n var int = chunks[0]\n var dec = chunks[1] || 0\n return stringifyInteger(int) + '.' + dec\n}\n\nfunction stringifyBoolean (value) {\n return String(value)\n}\n\nfunction stringifyDatetime (value) {\n return value.toISOString()\n}\n\nfunction isNumber (type) {\n return type === 'float' || type === 'integer'\n}\nfunction arrayType (values) {\n var contentType = tomlType(values[0])\n if (values.every(_ => tomlType(_) === contentType)) return contentType\n // mixed integer/float, emit as floats\n if (values.every(_ => isNumber(tomlType(_)))) return 'float'\n return 'mixed'\n}\nfunction validateArray (values) {\n const type = arrayType(values)\n if (type === 'mixed') {\n throw arrayOneTypeError()\n }\n return type\n}\n\nfunction stringifyInlineArray (values) {\n values = toJSON(values)\n const type = validateArray(values)\n var result = '['\n var stringified = values.map(_ => stringifyInline(_, type))\n if (stringified.join(', ').length > 60 || /\\n/.test(stringified)) {\n result += '\\n ' + stringified.join(',\\n ') + '\\n'\n } else {\n result += ' ' + stringified.join(', ') + (stringified.length > 0 ? ' ' : '')\n }\n return result + ']'\n}\n\nfunction stringifyInlineTable (value) {\n value = toJSON(value)\n var result = []\n Object.keys(value).forEach(key => {\n result.push(stringifyKey(key) + ' = ' + stringifyAnyInline(value[key], false))\n })\n return '{ ' + result.join(', ') + (result.length > 0 ? ' ' : '') + '}'\n}\n\nfunction stringifyComplex (prefix, indent, key, value) {\n var valueType = tomlType(value)\n /* istanbul ignore else */\n if (valueType === 'array') {\n return stringifyArrayOfTables(prefix, indent, key, value)\n } else if (valueType === 'table') {\n return stringifyComplexTable(prefix, indent, key, value)\n } else {\n throw typeError(valueType)\n }\n}\n\nfunction stringifyArrayOfTables (prefix, indent, key, values) {\n values = toJSON(values)\n validateArray(values)\n var firstValueType = tomlType(values[0])\n /* istanbul ignore if */\n if (firstValueType !== 'table') throw typeError(firstValueType)\n var fullKey = prefix + stringifyKey(key)\n var result = ''\n values.forEach(table => {\n if (result.length > 0) result += '\\n'\n result += indent + '[[' + fullKey + ']]\\n'\n result += stringifyObject(fullKey + '.', indent, table)\n })\n return result\n}\n\nfunction stringifyComplexTable (prefix, indent, key, value) {\n var fullKey = prefix + stringifyKey(key)\n var result = ''\n if (getInlineKeys(value).length > 0) {\n result += indent + '[' + fullKey + ']\\n'\n }\n return result + stringifyObject(fullKey + '.', indent, value)\n}\n","import * as path from 'path';\nimport * as core from '@actions/core';\nimport * as tc from '@actions/tool-cache';\nimport * as exec from '@actions/exec';\nimport {ExecOptions} from '@actions/exec/lib/interfaces';\nimport {IS_WINDOWS, IS_LINUX} from './utils';\n\nconst TOKEN = core.getInput('token');\nconst AUTH = !TOKEN ? undefined : `token ${TOKEN}`;\nconst MANIFEST_REPO_OWNER = 'actions';\nconst MANIFEST_REPO_NAME = 'python-versions';\nconst MANIFEST_REPO_BRANCH = 'main';\nexport const MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`;\n\nexport async function findReleaseFromManifest(\n semanticVersionSpec: string,\n architecture: string,\n manifest: tc.IToolRelease[] | null\n): Promise {\n if (!manifest) {\n manifest = await getManifest();\n }\n\n const foundRelease = await tc.findFromManifest(\n semanticVersionSpec,\n false,\n manifest,\n architecture\n );\n\n return foundRelease;\n}\n\nexport function getManifest(): Promise {\n core.debug(\n `Getting manifest from ${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}@${MANIFEST_REPO_BRANCH}`\n );\n return tc.getManifestFromRepo(\n MANIFEST_REPO_OWNER,\n MANIFEST_REPO_NAME,\n AUTH,\n MANIFEST_REPO_BRANCH\n );\n}\n\nasync function installPython(workingDirectory: string) {\n const options: ExecOptions = {\n cwd: workingDirectory,\n env: {\n ...process.env,\n ...(IS_LINUX && {LD_LIBRARY_PATH: path.join(workingDirectory, 'lib')})\n },\n silent: true,\n listeners: {\n stdout: (data: Buffer) => {\n core.info(data.toString().trim());\n },\n stderr: (data: Buffer) => {\n core.error(data.toString().trim());\n }\n }\n };\n\n if (IS_WINDOWS) {\n await exec.exec('powershell', ['./setup.ps1'], options);\n } else {\n await exec.exec('bash', ['./setup.sh'], options);\n }\n}\n\nexport async function installCpythonFromRelease(release: tc.IToolRelease) {\n const downloadUrl = release.files[0].download_url;\n\n core.info(`Download from \"${downloadUrl}\"`);\n let pythonPath = '';\n try {\n pythonPath = await tc.downloadTool(downloadUrl, undefined, AUTH);\n core.info('Extract downloaded archive');\n let pythonExtractedFolder;\n if (IS_WINDOWS) {\n pythonExtractedFolder = await tc.extractZip(pythonPath);\n } else {\n pythonExtractedFolder = await tc.extractTar(pythonPath);\n }\n\n core.info('Execute installation script');\n await installPython(pythonExtractedFolder);\n } catch (err) {\n if (err instanceof tc.HTTPError) {\n // Rate limit?\n if (err.httpStatusCode === 403 || err.httpStatusCode === 429) {\n core.info(\n `Received HTTP status code ${err.httpStatusCode}. This usually indicates the rate limit has been exceeded`\n );\n } else {\n core.info(err.message);\n }\n if (err.stack) {\n core.debug(err.stack);\n }\n }\n throw err;\n }\n}\n",null,null,null,null,"\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst http = require(\"http\");\nconst https = require(\"https\");\nconst pm = require(\"./proxy\");\nlet tunnel;\nvar 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})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));\nvar Headers;\n(function (Headers) {\n Headers[\"Accept\"] = \"accept\";\n Headers[\"ContentType\"] = \"content-type\";\n})(Headers = exports.Headers || (exports.Headers = {}));\nvar MediaTypes;\n(function (MediaTypes) {\n MediaTypes[\"ApplicationJson\"] = \"application/json\";\n})(MediaTypes = exports.MediaTypes || (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 */\nfunction getProxyUrl(serverUrl) {\n let proxyUrl = pm.getProxyUrl(new URL(serverUrl));\n return proxyUrl ? proxyUrl.href : '';\n}\nexports.getProxyUrl = getProxyUrl;\nconst HttpRedirectCodes = [\n HttpCodes.MovedPermanently,\n HttpCodes.ResourceMoved,\n HttpCodes.SeeOther,\n HttpCodes.TemporaryRedirect,\n HttpCodes.PermanentRedirect\n];\nconst HttpResponseRetryCodes = [\n HttpCodes.BadGateway,\n HttpCodes.ServiceUnavailable,\n HttpCodes.GatewayTimeout\n];\nconst RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];\nconst ExponentialBackoffCeiling = 10;\nconst ExponentialBackoffTimeSlice = 5;\nclass HttpClientError extends Error {\n constructor(message, statusCode) {\n super(message);\n this.name = 'HttpClientError';\n this.statusCode = statusCode;\n Object.setPrototypeOf(this, HttpClientError.prototype);\n }\n}\nexports.HttpClientError = HttpClientError;\nclass HttpClientResponse {\n constructor(message) {\n this.message = message;\n }\n readBody() {\n return new Promise(async (resolve, reject) => {\n let output = Buffer.alloc(0);\n this.message.on('data', (chunk) => {\n output = Buffer.concat([output, chunk]);\n });\n this.message.on('end', () => {\n resolve(output.toString());\n });\n });\n }\n}\nexports.HttpClientResponse = HttpClientResponse;\nfunction isHttps(requestUrl) {\n let parsedUrl = new URL(requestUrl);\n return parsedUrl.protocol === 'https:';\n}\nexports.isHttps = isHttps;\nclass 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) {\n this._ignoreSslError = requestOptions.ignoreSslError;\n }\n this._socketTimeout = requestOptions.socketTimeout;\n if (requestOptions.allowRedirects != null) {\n this._allowRedirects = requestOptions.allowRedirects;\n }\n if (requestOptions.allowRedirectDowngrade != null) {\n this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;\n }\n if (requestOptions.maxRedirects != null) {\n this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);\n }\n if (requestOptions.keepAlive != null) {\n this._keepAlive = requestOptions.keepAlive;\n }\n if (requestOptions.allowRetries != null) {\n this._allowRetries = requestOptions.allowRetries;\n }\n if (requestOptions.maxRetries != null) {\n this._maxRetries = requestOptions.maxRetries;\n }\n }\n }\n options(requestUrl, additionalHeaders) {\n return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});\n }\n get(requestUrl, additionalHeaders) {\n return this.request('GET', requestUrl, null, additionalHeaders || {});\n }\n del(requestUrl, additionalHeaders) {\n return this.request('DELETE', requestUrl, null, additionalHeaders || {});\n }\n post(requestUrl, data, additionalHeaders) {\n return this.request('POST', requestUrl, data, additionalHeaders || {});\n }\n patch(requestUrl, data, additionalHeaders) {\n return this.request('PATCH', requestUrl, data, additionalHeaders || {});\n }\n put(requestUrl, data, additionalHeaders) {\n return this.request('PUT', requestUrl, data, additionalHeaders || {});\n }\n head(requestUrl, additionalHeaders) {\n return this.request('HEAD', requestUrl, null, additionalHeaders || {});\n }\n sendStream(verb, requestUrl, stream, additionalHeaders) {\n return this.request(verb, requestUrl, stream, additionalHeaders);\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 */\n async getJson(requestUrl, additionalHeaders = {}) {\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n let res = await this.get(requestUrl, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n async postJson(requestUrl, obj, additionalHeaders = {}) {\n let data = JSON.stringify(obj, null, 2);\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);\n let res = await this.post(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n async putJson(requestUrl, obj, additionalHeaders = {}) {\n let data = JSON.stringify(obj, null, 2);\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);\n let res = await this.put(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\n }\n async patchJson(requestUrl, obj, additionalHeaders = {}) {\n let data = JSON.stringify(obj, null, 2);\n additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);\n additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);\n let res = await this.patch(requestUrl, data, additionalHeaders);\n return this._processResponse(res, this.requestOptions);\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 */\n async request(verb, requestUrl, data, headers) {\n if (this._disposed) {\n throw new Error('Client has already been disposed.');\n }\n let 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 let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1\n ? this._maxRetries + 1\n : 1;\n let numTries = 0;\n let response;\n while (numTries < maxTries) {\n response = await this.requestRaw(info, data);\n // Check if it's an authentication challenge\n if (response &&\n response.message &&\n response.message.statusCode === HttpCodes.Unauthorized) {\n let authenticationHandler;\n for (let i = 0; i < this.handlers.length; i++) {\n if (this.handlers[i].canHandleAuthentication(response)) {\n authenticationHandler = this.handlers[i];\n break;\n }\n }\n if (authenticationHandler) {\n return authenticationHandler.handleAuthentication(this, info, data);\n }\n else {\n // 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 }\n let redirectsRemaining = this._maxRedirects;\n while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 &&\n this._allowRedirects &&\n redirectsRemaining > 0) {\n const redirectUrl = response.message.headers['location'];\n if (!redirectUrl) {\n // if there's no location to redirect to, we won't\n break;\n }\n let parsedRedirectUrl = new URL(redirectUrl);\n if (parsedUrl.protocol == 'https:' &&\n parsedUrl.protocol != parsedRedirectUrl.protocol &&\n !this._allowRedirectDowngrade) {\n 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 }\n // we need to finish reading the response before reassigning response\n // which will leak the open socket.\n await response.readBody();\n // strip authorization header if redirected to a different hostname\n if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {\n for (let header in headers) {\n // header names are case insensitive\n if (header.toLowerCase() === 'authorization') {\n delete headers[header];\n }\n }\n }\n // let's make the request with the new redirectUrl\n info = this._prepareRequest(verb, parsedRedirectUrl, headers);\n response = await this.requestRaw(info, data);\n redirectsRemaining--;\n }\n if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {\n // If not a retry code, return immediately instead of retrying\n return response;\n }\n numTries += 1;\n if (numTries < maxTries) {\n await response.readBody();\n await this._performExponentialBackoff(numTries);\n }\n }\n return response;\n }\n /**\n * Needs to be called if keepAlive is set to true in request options.\n */\n dispose() {\n if (this._agent) {\n this._agent.destroy();\n }\n this._disposed = true;\n }\n /**\n * Raw request.\n * @param info\n * @param data\n */\n requestRaw(info, data) {\n return new Promise((resolve, reject) => {\n let callbackForResult = function (err, res) {\n if (err) {\n reject(err);\n }\n resolve(res);\n };\n this.requestRawWithCallback(info, data, callbackForResult);\n });\n }\n /**\n * Raw request with callback.\n * @param info\n * @param data\n * @param onResult\n */\n requestRawWithCallback(info, data, onResult) {\n let socket;\n if (typeof data === 'string') {\n info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');\n }\n let callbackCalled = false;\n let handleResult = (err, res) => {\n if (!callbackCalled) {\n callbackCalled = true;\n onResult(err, res);\n }\n };\n let req = info.httpModule.request(info.options, (msg) => {\n let res = new HttpClientResponse(msg);\n handleResult(null, res);\n });\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 || 3 * 60000, () => {\n if (socket) {\n socket.end();\n }\n handleResult(new Error('Request timeout: ' + info.options.path), null);\n });\n req.on('error', function (err) {\n // err has statusCode property\n // res should have headers\n handleResult(err, null);\n });\n if (data && typeof data === 'string') {\n req.write(data, 'utf8');\n }\n if (data && typeof data !== 'string') {\n data.on('close', function () {\n req.end();\n });\n data.pipe(req);\n }\n else {\n req.end();\n }\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 */\n getAgent(serverUrl) {\n let 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 ? https : http;\n const defaultPort = usingSsl ? 443 : 80;\n info.options = {};\n info.options.host = info.parsedUrl.hostname;\n info.options.port = info.parsedUrl.port\n ? parseInt(info.parsedUrl.port)\n : defaultPort;\n info.options.path =\n (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');\n info.options.method = method;\n info.options.headers = this._mergeHeaders(headers);\n if (this.userAgent != null) {\n info.options.headers['user-agent'] = this.userAgent;\n }\n info.options.agent = this._getAgent(info.parsedUrl);\n // gives handlers an opportunity to participate\n if (this.handlers) {\n this.handlers.forEach(handler => {\n handler.prepareRequest(info.options);\n });\n }\n return info;\n }\n _mergeHeaders(headers) {\n const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});\n if (this.requestOptions && this.requestOptions.headers) {\n return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));\n }\n return lowercaseKeys(headers || {});\n }\n _getExistingOrDefaultHeader(additionalHeaders, header, _default) {\n const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});\n let clientHeader;\n if (this.requestOptions && this.requestOptions.headers) {\n clientHeader = lowercaseKeys(this.requestOptions.headers)[header];\n }\n return additionalHeaders[header] || clientHeader || _default;\n }\n _getAgent(parsedUrl) {\n let agent;\n let proxyUrl = pm.getProxyUrl(parsedUrl);\n let useProxy = proxyUrl && proxyUrl.hostname;\n if (this._keepAlive && useProxy) {\n agent = this._proxyAgent;\n }\n if (this._keepAlive && !useProxy) {\n agent = this._agent;\n }\n // if agent is already assigned use that agent.\n if (!!agent) {\n return agent;\n }\n const usingSsl = parsedUrl.protocol === 'https:';\n let maxSockets = 100;\n if (!!this.requestOptions) {\n maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;\n }\n if (useProxy) {\n // If using proxy, need tunnel\n if (!tunnel) {\n tunnel = require('tunnel');\n }\n const agentOptions = {\n maxSockets: maxSockets,\n keepAlive: this._keepAlive,\n proxy: {\n ...((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) {\n tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;\n }\n else {\n tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;\n }\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 = { keepAlive: this._keepAlive, maxSockets: maxSockets };\n agent = usingSsl ? new https.Agent(options) : new 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) {\n agent = usingSsl ? https.globalAgent : http.globalAgent;\n }\n if (usingSsl && this._ignoreSslError) {\n // 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 }\n return agent;\n }\n _performExponentialBackoff(retryNumber) {\n retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);\n const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);\n return new Promise(resolve => setTimeout(() => resolve(), ms));\n }\n static dateTimeDeserializer(key, value) {\n if (typeof value === 'string') {\n let a = new Date(value);\n if (!isNaN(a.valueOf())) {\n return a;\n }\n }\n return value;\n }\n async _processResponse(res, options) {\n return new Promise(async (resolve, reject) => {\n const statusCode = res.message.statusCode;\n const response = {\n statusCode: statusCode,\n result: null,\n headers: {}\n };\n // not found leads to null obj returned\n if (statusCode == HttpCodes.NotFound) {\n resolve(response);\n }\n let obj;\n let contents;\n // get the result from the body\n try {\n contents = await res.readBody();\n if (contents && contents.length > 0) {\n if (options && options.deserializeDates) {\n obj = JSON.parse(contents, HttpClient.dateTimeDeserializer);\n }\n else {\n obj = JSON.parse(contents);\n }\n response.result = obj;\n }\n response.headers = res.message.headers;\n }\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) {\n msg = obj.message;\n }\n else if (contents && contents.length > 0) {\n // it may be the case that the exception is in the body message as string\n msg = contents;\n }\n else {\n msg = 'Failed request: (' + statusCode + ')';\n }\n let err = new HttpClientError(msg, statusCode);\n err.result = response.result;\n reject(err);\n }\n else {\n resolve(response);\n }\n });\n }\n}\nexports.HttpClient = HttpClient;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction getProxyUrl(reqUrl) {\n let usingSsl = reqUrl.protocol === 'https:';\n let proxyUrl;\n if (checkBypass(reqUrl)) {\n return proxyUrl;\n }\n let proxyVar;\n if (usingSsl) {\n proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY'];\n }\n else {\n proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY'];\n }\n if (proxyVar) {\n proxyUrl = new URL(proxyVar);\n }\n return proxyUrl;\n}\nexports.getProxyUrl = getProxyUrl;\nfunction checkBypass(reqUrl) {\n if (!reqUrl.hostname) {\n return false;\n }\n let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';\n if (!noProxy) {\n return false;\n }\n // Determine the request port\n let reqPort;\n if (reqUrl.port) {\n reqPort = Number(reqUrl.port);\n }\n else if (reqUrl.protocol === 'http:') {\n reqPort = 80;\n }\n else if (reqUrl.protocol === 'https:') {\n reqPort = 443;\n }\n // Format the request hostname and hostname with port\n let upperReqHosts = [reqUrl.hostname.toUpperCase()];\n if (typeof reqPort === 'number') {\n upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);\n }\n // Compare request host against noproxy\n for (let upperNoProxyItem of noProxy\n .split(',')\n .map(x => x.trim().toUpperCase())\n .filter(x => x)) {\n if (upperReqHosts.some(x => x === upperNoProxyItem)) {\n return true;\n }\n }\n return false;\n}\nexports.checkBypass = checkBypass;\n",null,null,"import * as path from 'path';\nimport * as pypyInstall from './install-pypy';\nimport {\n IS_WINDOWS,\n WINDOWS_ARCHS,\n validateVersion,\n getPyPyVersionFromPath,\n readExactPyPyVersionFile,\n validatePythonVersionFormatForPyPy,\n IPyPyManifestRelease\n} from './utils';\n\nimport * as semver from 'semver';\nimport * as core from '@actions/core';\nimport * as tc from '@actions/tool-cache';\n\ninterface IPyPyVersionSpec {\n pypyVersion: string;\n pythonVersion: string;\n}\n\nexport async function findPyPyVersion(\n versionSpec: string,\n architecture: string,\n updateEnvironment: boolean,\n checkLatest: boolean,\n allowPreReleases: boolean\n): Promise<{resolvedPyPyVersion: string; resolvedPythonVersion: string}> {\n let resolvedPyPyVersion = '';\n let resolvedPythonVersion = '';\n let installDir: string | null;\n let releases: IPyPyManifestRelease[] | undefined;\n\n const pypyVersionSpec = parsePyPyVersion(versionSpec);\n\n if (checkLatest) {\n releases = await pypyInstall.getAvailablePyPyVersions();\n if (releases && releases.length > 0) {\n const releaseData = pypyInstall.findRelease(\n releases,\n pypyVersionSpec.pythonVersion,\n pypyVersionSpec.pypyVersion,\n architecture,\n false\n );\n\n if (releaseData) {\n core.info(\n `Resolved as PyPy ${releaseData.resolvedPyPyVersion} with Python (${releaseData.resolvedPythonVersion})`\n );\n pypyVersionSpec.pythonVersion = releaseData.resolvedPythonVersion;\n pypyVersionSpec.pypyVersion = releaseData.resolvedPyPyVersion;\n } else {\n core.info(\n `Failed to resolve PyPy ${pypyVersionSpec.pypyVersion} with Python (${pypyVersionSpec.pythonVersion}) from manifest`\n );\n }\n }\n }\n\n ({installDir, resolvedPythonVersion, resolvedPyPyVersion} = findPyPyToolCache(\n pypyVersionSpec.pythonVersion,\n pypyVersionSpec.pypyVersion,\n architecture\n ));\n\n if (!installDir) {\n ({installDir, resolvedPythonVersion, resolvedPyPyVersion} =\n await pypyInstall.installPyPy(\n pypyVersionSpec.pypyVersion,\n pypyVersionSpec.pythonVersion,\n architecture,\n allowPreReleases,\n releases\n ));\n }\n\n const pipDir = IS_WINDOWS ? 'Scripts' : 'bin';\n const _binDir = path.join(installDir, pipDir);\n const binaryExtension = IS_WINDOWS ? '.exe' : '';\n const pythonPath = path.join(\n IS_WINDOWS ? installDir : _binDir,\n `python${binaryExtension}`\n );\n const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir);\n if (updateEnvironment) {\n core.exportVariable('pythonLocation', installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython\n core.exportVariable('Python_ROOT_DIR', installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2\n core.exportVariable('Python2_ROOT_DIR', installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3\n core.exportVariable('Python3_ROOT_DIR', installDir);\n core.exportVariable('PKG_CONFIG_PATH', pythonLocation + '/lib/pkgconfig');\n core.addPath(pythonLocation);\n core.addPath(_binDir);\n }\n core.setOutput('python-version', 'pypy' + resolvedPyPyVersion);\n core.setOutput('python-path', pythonPath);\n\n return {resolvedPyPyVersion, resolvedPythonVersion};\n}\n\nexport function findPyPyToolCache(\n pythonVersion: string,\n pypyVersion: string,\n architecture: string\n) {\n let resolvedPyPyVersion = '';\n let resolvedPythonVersion = '';\n let installDir: string | null = IS_WINDOWS\n ? findPyPyInstallDirForWindows(pythonVersion)\n : tc.find('PyPy', pythonVersion, architecture);\n\n if (installDir) {\n // 'tc.find' finds tool based on Python version but we also need to check\n // whether PyPy version satisfies requested version.\n resolvedPythonVersion = getPyPyVersionFromPath(installDir);\n resolvedPyPyVersion = readExactPyPyVersionFile(installDir);\n\n const isPyPyVersionSatisfies = semver.satisfies(\n resolvedPyPyVersion,\n pypyVersion\n );\n if (!isPyPyVersionSatisfies) {\n installDir = null;\n resolvedPyPyVersion = '';\n resolvedPythonVersion = '';\n }\n }\n\n if (!installDir) {\n core.info(\n `PyPy version ${pythonVersion} (${pypyVersion}) was not found in the local cache`\n );\n }\n\n return {installDir, resolvedPythonVersion, resolvedPyPyVersion};\n}\n\nexport function parsePyPyVersion(versionSpec: string): IPyPyVersionSpec {\n const versions = versionSpec.split('-').filter(item => !!item);\n\n if (/^(pypy)(.+)/.test(versions[0])) {\n const pythonVersion = versions[0].replace('pypy', '');\n versions.splice(0, 1, 'pypy', pythonVersion);\n }\n\n if (versions.length < 2 || versions[0] != 'pypy') {\n throw new Error(\n \"Invalid 'version' property for PyPy. PyPy version should be specified as 'pypy' or 'pypy-'. See README for examples and documentation.\"\n );\n }\n\n const pythonVersion = versions[1];\n let pypyVersion: string;\n if (versions.length > 2) {\n pypyVersion = pypyInstall.pypyVersionToSemantic(versions[2]);\n } else {\n pypyVersion = 'x';\n }\n\n if (!validateVersion(pythonVersion) || !validateVersion(pypyVersion)) {\n throw new Error(\n \"Invalid 'version' property for PyPy. Both Python version and PyPy versions should satisfy SemVer notation. See README for examples and documentation.\"\n );\n }\n\n if (!validatePythonVersionFormatForPyPy(pythonVersion)) {\n throw new Error(\n \"Invalid format of Python version for PyPy. Python version should be specified in format 'x.y'. See README for examples and documentation.\"\n );\n }\n\n return {\n pypyVersion: pypyVersion,\n pythonVersion: pythonVersion\n };\n}\n\nexport function findPyPyInstallDirForWindows(pythonVersion: string): string {\n let installDir = '';\n\n WINDOWS_ARCHS.forEach(\n architecture =>\n (installDir = installDir || tc.find('PyPy', pythonVersion, architecture))\n );\n\n return installDir;\n}\n","import * as os from 'os';\nimport * as path from 'path';\nimport * as core from '@actions/core';\nimport * as tc from '@actions/tool-cache';\nimport * as semver from 'semver';\nimport * as httpm from '@actions/http-client';\nimport * as exec from '@actions/exec';\nimport fs from 'fs';\n\nimport {\n IS_WINDOWS,\n WINDOWS_PLATFORMS,\n IPyPyManifestRelease,\n createSymlinkInFolder,\n isNightlyKeyword,\n writeExactPyPyVersionFile\n} from './utils';\n\nexport async function installPyPy(\n pypyVersion: string,\n pythonVersion: string,\n architecture: string,\n allowPreReleases: boolean,\n releases: IPyPyManifestRelease[] | undefined\n) {\n let downloadDir;\n\n releases = releases ?? (await getAvailablePyPyVersions());\n\n if (!releases || releases.length === 0) {\n throw new Error('No release was found in PyPy version.json');\n }\n\n let releaseData = findRelease(\n releases,\n pythonVersion,\n pypyVersion,\n architecture,\n false\n );\n\n if (allowPreReleases && (!releaseData || !releaseData.foundAsset)) {\n // check for pre-release\n core.info(\n [\n `Stable PyPy version ${pythonVersion} (${pypyVersion}) with arch ${architecture} not found`,\n `Trying pre-release versions`\n ].join(os.EOL)\n );\n releaseData = findRelease(\n releases,\n pythonVersion,\n pypyVersion,\n architecture,\n true\n );\n }\n\n if (!releaseData || !releaseData.foundAsset) {\n throw new Error(\n `PyPy version ${pythonVersion} (${pypyVersion}) with arch ${architecture} not found`\n );\n }\n\n const {foundAsset, resolvedPythonVersion, resolvedPyPyVersion} = releaseData;\n const downloadUrl = `${foundAsset.download_url}`;\n\n core.info(`Downloading PyPy from \"${downloadUrl}\" ...`);\n\n try {\n const pypyPath = await tc.downloadTool(downloadUrl);\n\n core.info('Extracting downloaded archive...');\n if (IS_WINDOWS) {\n downloadDir = await tc.extractZip(pypyPath);\n } else {\n downloadDir = await tc.extractTar(pypyPath, undefined, 'x');\n }\n\n // root folder in archive can have unpredictable name so just take the first folder\n // downloadDir is unique folder under TEMP and can't contain any other folders\n const archiveName = fs.readdirSync(downloadDir)[0];\n\n const toolDir = path.join(downloadDir, archiveName);\n let installDir = toolDir;\n if (!isNightlyKeyword(resolvedPyPyVersion)) {\n installDir = await tc.cacheDir(\n toolDir,\n 'PyPy',\n resolvedPythonVersion,\n architecture\n );\n }\n\n writeExactPyPyVersionFile(installDir, resolvedPyPyVersion);\n\n const binaryPath = getPyPyBinaryPath(installDir);\n await createPyPySymlink(binaryPath, resolvedPythonVersion);\n await installPip(binaryPath);\n\n return {installDir, resolvedPythonVersion, resolvedPyPyVersion};\n } catch (err) {\n if (err instanceof Error) {\n // Rate limit?\n if (\n err instanceof tc.HTTPError &&\n (err.httpStatusCode === 403 || err.httpStatusCode === 429)\n ) {\n core.info(\n `Received HTTP status code ${err.httpStatusCode}. This usually indicates the rate limit has been exceeded`\n );\n } else {\n core.info(err.message);\n }\n if (err.stack !== undefined) {\n core.debug(err.stack);\n }\n }\n throw err;\n }\n}\n\nexport async function getAvailablePyPyVersions() {\n const url = 'https://downloads.python.org/pypy/versions.json';\n const http: httpm.HttpClient = new httpm.HttpClient('tool-cache');\n\n const response = await http.getJson(url);\n if (!response.result) {\n throw new Error(\n `Unable to retrieve the list of available PyPy versions from '${url}'`\n );\n }\n\n return response.result;\n}\n\nasync function createPyPySymlink(\n pypyBinaryPath: string,\n pythonVersion: string\n) {\n const version = semver.coerce(pythonVersion)!;\n const pythonBinaryPostfix = semver.major(version);\n const pythonMinor = semver.minor(version);\n const pypyBinaryPostfix = pythonBinaryPostfix === 2 ? '' : '3';\n const pypyMajorMinorBinaryPostfix = `${pythonBinaryPostfix}.${pythonMinor}`;\n const binaryExtension = IS_WINDOWS ? '.exe' : '';\n\n core.info('Creating symlinks...');\n createSymlinkInFolder(\n pypyBinaryPath,\n `pypy${pypyBinaryPostfix}${binaryExtension}`,\n `python${pythonBinaryPostfix}${binaryExtension}`,\n true\n );\n\n createSymlinkInFolder(\n pypyBinaryPath,\n `pypy${pypyBinaryPostfix}${binaryExtension}`,\n `python${binaryExtension}`,\n true\n );\n\n createSymlinkInFolder(\n pypyBinaryPath,\n `pypy${pypyBinaryPostfix}${binaryExtension}`,\n `pypy${pypyMajorMinorBinaryPostfix}${binaryExtension}`,\n true\n );\n}\n\nasync function installPip(pythonLocation: string) {\n core.info('Installing and updating pip');\n const pythonBinary = path.join(pythonLocation, 'python');\n await exec.exec(`${pythonBinary} -m ensurepip`);\n\n await exec.exec(\n `${pythonLocation}/python -m pip install --ignore-installed pip`\n );\n}\n\nexport function findRelease(\n releases: IPyPyManifestRelease[],\n pythonVersion: string,\n pypyVersion: string,\n architecture: string,\n includePrerelease: boolean\n) {\n const options = {includePrerelease: includePrerelease};\n const filterReleases = releases.filter(item => {\n const isPythonVersionSatisfied = semver.satisfies(\n semver.coerce(item.python_version)!,\n pythonVersion\n );\n const isPyPyNightly =\n isNightlyKeyword(pypyVersion) && isNightlyKeyword(item.pypy_version);\n const isPyPyVersionSatisfied =\n isPyPyNightly ||\n semver.satisfies(\n pypyVersionToSemantic(item.pypy_version),\n pypyVersion,\n options\n );\n const isArchPresent =\n item.files &&\n (IS_WINDOWS\n ? isArchPresentForWindows(item, architecture)\n : isArchPresentForMacOrLinux(item, architecture, process.platform));\n return isPythonVersionSatisfied && isPyPyVersionSatisfied && isArchPresent;\n });\n\n if (filterReleases.length === 0) {\n return null;\n }\n\n const sortedReleases = filterReleases.sort((previous, current) => {\n return (\n semver.compare(\n semver.coerce(pypyVersionToSemantic(current.pypy_version))!,\n semver.coerce(pypyVersionToSemantic(previous.pypy_version))!\n ) ||\n semver.compare(\n semver.coerce(current.python_version)!,\n semver.coerce(previous.python_version)!\n )\n );\n });\n\n const foundRelease = sortedReleases[0];\n const foundAsset = IS_WINDOWS\n ? findAssetForWindows(foundRelease, architecture)\n : findAssetForMacOrLinux(foundRelease, architecture, process.platform);\n\n return {\n foundAsset,\n resolvedPythonVersion: foundRelease.python_version,\n resolvedPyPyVersion: foundRelease.pypy_version.trim()\n };\n}\n\n/** Get PyPy binary location from the tool of installation directory\n * - On Linux and macOS, the Python interpreter is in 'bin'.\n * - On Windows, it is in the installation root.\n */\nexport function getPyPyBinaryPath(installDir: string) {\n const _binDir = path.join(installDir, 'bin');\n return IS_WINDOWS ? installDir : _binDir;\n}\n\nexport function pypyVersionToSemantic(versionSpec: string) {\n const prereleaseVersion = /(\\d+\\.\\d+\\.\\d+)((?:a|b|rc))(\\d*)/g;\n return versionSpec.replace(prereleaseVersion, '$1-$2.$3');\n}\n\nexport function isArchPresentForWindows(item: any, architecture: string) {\n architecture = replaceX32toX86(architecture);\n return item.files.some(\n (file: any) =>\n WINDOWS_PLATFORMS.includes(file.platform) && file.arch === architecture\n );\n}\n\nexport function isArchPresentForMacOrLinux(\n item: any,\n architecture: string,\n platform: string\n) {\n return item.files.some(\n (file: any) => file.arch === architecture && file.platform === platform\n );\n}\n\nexport function findAssetForWindows(releases: any, architecture: string) {\n architecture = replaceX32toX86(architecture);\n return releases.files.find(\n (item: any) =>\n WINDOWS_PLATFORMS.includes(item.platform) && item.arch === architecture\n );\n}\n\nexport function findAssetForMacOrLinux(\n releases: any,\n architecture: string,\n platform: string\n) {\n return releases.files.find(\n (item: any) => item.arch === architecture && item.platform === platform\n );\n}\n\nfunction replaceX32toX86(architecture: string): string {\n // convert x32 to x86 because os.arch() returns x32 for 32-bit systems but PyPy releases json has x86 arch value.\n if (architecture === 'x32') {\n architecture = 'x86';\n }\n return architecture;\n}\n","module.exports = (Promise.resolve(__parcel__require__(\"./\" + \"cache-dependencies.348a592e.js\"))).then(() => parcelRequire('cdq6h'));"],"mappings":"otBCUA,QAAS,CAAAA,EAAcC,CAAmB,EACxC,MAAO,CAAAA,CAAA,CAAYC,UAAA,CAAW,OAChC,EAIO,cAAe,CAAAC,EAAmBF,CAAe,CAAEG,CAAiB,CAAEC,CAAY,EAK1D,IAAAC,CAJzB,CAAAC,CAAA,CAAAC,MAAA,GACFC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,CAAuB,+BADrC,EAIA,GAAM,CAAAC,CAAA,CAAuB,IAAY,IAAZN,CAAA,CAAAG,OAAA,CAAQC,GAAA,CAAIC,oBAAA,GAAZ,SAAAL,CAAA,QAAAA,CAAA,CAAkCO,IAA/D,GAOA,GANoC,UAAhC,MAAO,CAAAD,CAAA,EAAqC,EAAyB,GAAzBA,CAAA,GAC9CH,OAAA,CAAQC,GAAA,CAAII,iBAAA,CAAoBL,OAAA,CAAQC,GAAA,CAAIC,oBAD9C,EAIA,GAAAI,CAAA,CAAAC,KAAI,EAAE,2CAA2CP,OAAA,CAAQC,GAAA,CAAII,iBAAA,EAEzDb,CAAA,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