mirror of https://github.com/aminya/setup-cpp
1 line
416 KiB
Plaintext
1 line
416 KiB
Plaintext
{"version":3,"file":"actions_python.60e051e1.js","names":["u","e","startsWith","p","t","a","l","IS_MAC","process","env","AGENT_TOOLSDIRECTORY","h","trim","RUNNER_TOOL_CACHE","s","debug","i","r","findPyPyVersion","d","resolvedPyPyVersion","resolvedPythonVersion","o","info","useCpythonVersion","version","impl","n","GITHUB_ACTIONS","f","join","c","pathExists","warning","getAvailablePyPyVersions","length","findRelease","pythonVersion","pypyVersion","installDir","installPyPy","y","IS_WINDOWS","m","$606tr$path","g","x","w","getPyPyBinaryPath","exportVariable","addPath","setOutput","find","getPyPyVersionFromPath","readExactPyPyVersionFile","satisfies","split","filter","test","replace","splice","Error","pypyVersionToSemantic","validateVersion","validatePythonVersionFormatForPyPy","WINDOWS_ARCHS","forEach","foundAsset","$606tr$os","EOL","download_url","downloadTool","extractZip","extractTar","$parcel$interopDefault","$606tr$fs","readdirSync","isNightlyKeyword","cacheDir","writeExactPyPyVersionFile","HTTPError","httpStatusCode","message","stack","HttpClient","getJson","result","coerce","major","minor","createSymlinkInFolder","exec","includePrerelease","python_version","pypy_version","files","platform","sort","compare","some","WINDOWS_PLATFORMS","includes","arch","j","S","q","default","D","mkdirP","dirname","$","O","R","RetryHelper","execute","E","W","M","existsSync","V","G","allowRetries","authorization","get","statusCode","statusMessage","H","promisify","F","pipeline","createWriteStream","rmRF","$606tr$assert","ok","B","cwd","chdir","isDebug","silent","C","A","which","ignoreReturnCode","listeners","stdout","toString","stderr","toUpperCase","Array","push","J","_","unshift","k","clean","L","statSync","isDirectory","cp","recursive","isFile","b","v","tree","path","url","accept","readBody","JSON","parse","U","_findMatch","writeFileSync","valid","gt","RUNNER_TEMP","$parcel$global","from","Set","T","parcelRequire","$606tr$stream","$606tr$util","I","constructor","Object","setPrototypeOf","new","target","prototype","exports","extract7z","extractXar","cacheFile","findAllVersions","getManifestFromRepo","findFromManifest","isExplicitVersion","evaluateVersions","stable","platform_version","_getOsVersion","assign","$606tr$child_process","execSync","_readLinuxVersionFile","readFileSync","getProxyUrl","URL","href","protocol","defineProperty","value","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","name","HttpClientError","Promise","Buffer","alloc","on","concat","HttpClientResponse","isHttps","_ignoreSslError","_allowRedirects","_allowRedirectDowngrade","_maxRedirects","_allowRetries","_maxRetries","_keepAlive","_disposed","userAgent","handlers","requestOptions","ignoreSslError","_socketTimeout","socketTimeout","allowRedirects","allowRedirectDowngrade","maxRedirects","Math","max","keepAlive","maxRetries","options","request","del","post","patch","put","head","sendStream","_getExistingOrDefaultHeader","_processResponse","postJson","stringify","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","$606tr$https","$606tr$http","host","port","parseInt","pathname","search","method","_mergeHeaders","agent","prepareRequest","keys","reduce","_proxyAgent","maxSockets","globalAgent","proxy","username","password","proxyAuth","httpsOverHttps","httpsOverHttp","httpOverHttps","httpOverHttp","Agent","rejectUnauthorized","pow","min","dateTimeDeserializer","Date","isNaN","valueOf","deserializeDates","https_proxy","HTTPS_PROXY","http_proxy","HTTP_PROXY","no_proxy","NO_PROXY","map","checkBypass","maxAttempts","minSeconds","floor","maxSeconds","getSleepAmount","sleep","random","symlinkSync","chmodSync","validRange","basename","getExecOutput","osName","osVersion","async","stream","prettyError","isBuffer","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","descriptor","InlineTable","defineProperties","_type","INLINE_TABLE","isInlineTable","Table","TABLE","_declared","writable","isTable","InlineList","INLINE_LIST","_contentType","isInlineList","List","LIST","isList","Integer","is","BigInt","Number","isSafeInteger","BoxedBigInt","INTEGER","_inspect","isInteger","Float","FLOAT","isFloat","tomlType","makeParserClass","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","parseKeyword","recordAssignKeyword","state","resultTable","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","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","parseDateMonth","parseDateDay","CHAR_T","parseStartTimeHour","$i8y9h","parseTimeHour","parseTimeMin","parseTimeSec","parseTimeZoneOrFraction","parseOnlyTimeMin","parseOnlyTimeSec","parseOnlyTimeFractionMaybe","$l5l5L","parseOnlyTimeFraction","parseDateTimeFraction","parseTimeZoneHour","$lPmG1","$7kLtX","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","captureStackTrace","fromTOML","wrapped","code","Symbol","configurable","enumerable","utilInspect","eval","custom","asIntN","parser","returned","pos","col","line","_buf","ii","runOne","codePointAt","haveBuffer","TypeError","isFloating","toISOString","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","isDate","isTime","slice","setImmediate","blocksize","setEncoding","read","once","Transform","objectMode","transform","emit","flush","toJSON","isArray","N","every","P","getManifest","findReleaseFromManifest","installCpythonFromRelease","getOSInfo","MANIFEST_URL","IS_LINUX","LD_LIBRARY_PATH","APPDATA","sep","findIndex","getInput"],"sources":["../../<anon>","../../src/python/actions_python.ts","../../node_modules/.pnpm/setup-python@https+++codeload.github.com+aminya+setup-python+tar.gz+a783db655c6e40317e2c0c96f_a3mvw4gwshxqvyjibbtov4ravy/node_modules/setup-python/src/find-pypy.ts","../../node_modules/.pnpm/setup-python@https+++codeload.github.com+aminya+setup-python+tar.gz+a783db655c6e40317e2c0c96f_a3mvw4gwshxqvyjibbtov4ravy/node_modules/setup-python/src/install-pypy.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/setup-python@https+++codeload.github.com+aminya+setup-python+tar.gz+a783db655c6e40317e2c0c96f_a3mvw4gwshxqvyjibbtov4ravy/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/setup-python@https+++codeload.github.com+aminya+setup-python+tar.gz+a783db655c6e40317e2c0c96f_a3mvw4gwshxqvyjibbtov4ravy/node_modules/setup-python/src/find-python.ts","../../node_modules/.pnpm/setup-python@https+++codeload.github.com+aminya+setup-python+tar.gz+a783db655c6e40317e2c0c96f_a3mvw4gwshxqvyjibbtov4ravy/node_modules/setup-python/src/install-python.ts"],"sourcesContent":["var $606tr$path = require(\"path\");\nvar $606tr$os = require(\"os\");\nvar $606tr$fs = require(\"fs\");\nvar $606tr$stream = require(\"stream\");\nvar $606tr$util = require(\"util\");\nvar $606tr$assert = require(\"assert\");\nvar $606tr$child_process = require(\"child_process\");\nvar $606tr$http = require(\"http\");\nvar $606tr$https = require(\"https\");\n\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\n var $parcel$global = globalThis;\n var parcelRequire = $parcel$global[\"parcelRequire810d\"];\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"4kQHk\", function(module, exports) {\n\n$parcel$export(module.exports, \"setupActionsPython\", () => $e56abd13265dde94$export$5655ebf4048b68d5);\n\nvar $4BQAg = parcelRequire(\"4BQAg\");\n\nvar $90sLx = parcelRequire(\"90sLx\");\n\nvar $9yJgU = parcelRequire(\"9yJgU\");\n\nvar $9ne19 = parcelRequire(\"9ne19\");\n\nvar $ER74K = parcelRequire(\"ER74K\");\n\nvar $dOmbL = parcelRequire(\"dOmbL\");\n\nvar $ceI0e = parcelRequire(\"ceI0e\");\n\nvar $1FYOu = parcelRequire(\"1FYOu\");\n\nvar $e56abd13265dde94$var$$parcel$__dirname = $606tr$path.resolve(__dirname, \"../../src/python\");\nfunction $e56abd13265dde94$var$isPyPyVersion(versionSpec) {\n return versionSpec.startsWith(\"pypy\");\n}\nconst $e56abd13265dde94$var$checkLatest = false;\nasync function $e56abd13265dde94$export$5655ebf4048b68d5(version, _setupDir, arch) {\n if (0, $1FYOu.IS_MAC) process.env.AGENT_TOOLSDIRECTORY = \"/Users/runner/hostedtoolcache\";\n const agent_toolsdirectory = process.env.AGENT_TOOLSDIRECTORY?.trim();\n if (typeof agent_toolsdirectory === \"string\" && agent_toolsdirectory !== \"\") process.env.RUNNER_TOOL_CACHE = process.env.AGENT_TOOLSDIRECTORY;\n (0, $9yJgU.debug)(`Python is expected to be installed into ${process.env.RUNNER_TOOL_CACHE}`);\n if (version) {\n let pythonVersion;\n if ($e56abd13265dde94$var$isPyPyVersion(version)) {\n const installed = await (0, $4BQAg.findPyPyVersion)(version, arch, true, $e56abd13265dde94$var$checkLatest, false);\n pythonVersion = `${installed.resolvedPyPyVersion}-${installed.resolvedPythonVersion}`;\n (0, $ER74K.info)(`Successfully set up PyPy ${installed.resolvedPyPyVersion} with Python (${installed.resolvedPythonVersion})`);\n } else {\n const installed = await (0, $90sLx.useCpythonVersion)(version, arch, true, $e56abd13265dde94$var$checkLatest, false);\n pythonVersion = installed.version;\n (0, $ER74K.info)(`Successfully set up ${installed.impl} (${pythonVersion})`);\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 if (0, $9ne19.GITHUB_ACTIONS) await $e56abd13265dde94$var$addPythonLoggingMatcher();\n return undefined;\n}\nasync function $e56abd13265dde94$var$addPythonLoggingMatcher() {\n const matcherPath = (0, $ceI0e.join)($e56abd13265dde94$var$$parcel$__dirname, \"python_matcher.json\");\n if (!await (0, $dOmbL.pathExists)(matcherPath)) return (0, $ER74K.warning)(\"the python_matcher.json file does not exist in the same folder as setup-cpp.js\");\n (0, $ER74K.info)(`::add-matcher::${matcherPath}`);\n}\n\n});\nparcelRegister(\"4BQAg\", function(module, exports) {\n\n$parcel$export(module.exports, \"findPyPyVersion\", () => $0684ac808cbc866b$export$43d689d19c89c31d);\n\n\nvar $6zuPC = parcelRequire(\"6zuPC\");\n\nvar $1FYOu = parcelRequire(\"1FYOu\");\n\nvar $jrMr3 = parcelRequire(\"jrMr3\");\n\nvar $9yJgU = parcelRequire(\"9yJgU\");\n\nvar $4ai2V = parcelRequire(\"4ai2V\");\nasync function $0684ac808cbc866b$export$43d689d19c89c31d(versionSpec, architecture, updateEnvironment, checkLatest, allowPreReleases) {\n let resolvedPyPyVersion = \"\";\n let resolvedPythonVersion = \"\";\n let installDir;\n let releases;\n const pypyVersionSpec = $0684ac808cbc866b$export$4182d5bdd18177a7(versionSpec);\n if (checkLatest) {\n releases = await $6zuPC.getAvailablePyPyVersions();\n if (releases && releases.length > 0) {\n const releaseData = $6zuPC.findRelease(releases, pypyVersionSpec.pythonVersion, pypyVersionSpec.pypyVersion, architecture, false);\n if (releaseData) {\n $9yJgU.info(`Resolved as PyPy ${releaseData.resolvedPyPyVersion} with Python (${releaseData.resolvedPythonVersion})`);\n pypyVersionSpec.pythonVersion = releaseData.resolvedPythonVersion;\n pypyVersionSpec.pypyVersion = releaseData.resolvedPyPyVersion;\n } else $9yJgU.info(`Failed to resolve PyPy ${pypyVersionSpec.pypyVersion} with Python (${pypyVersionSpec.pythonVersion}) from manifest`);\n }\n }\n ({ installDir: installDir, resolvedPythonVersion: resolvedPythonVersion, resolvedPyPyVersion: resolvedPyPyVersion } = $0684ac808cbc866b$export$bba8aabb976a1d17(pypyVersionSpec.pythonVersion, pypyVersionSpec.pypyVersion, architecture));\n if (!installDir) ({ installDir: installDir, resolvedPythonVersion: resolvedPythonVersion, resolvedPyPyVersion: resolvedPyPyVersion } = await $6zuPC.installPyPy(pypyVersionSpec.pypyVersion, pypyVersionSpec.pythonVersion, architecture, allowPreReleases, releases));\n const pipDir = (0, $1FYOu.IS_WINDOWS) ? \"Scripts\" : \"bin\";\n const _binDir = $606tr$path.join(installDir, pipDir);\n const binaryExtension = (0, $1FYOu.IS_WINDOWS) ? \".exe\" : \"\";\n const pythonPath = $606tr$path.join((0, $1FYOu.IS_WINDOWS) ? installDir : _binDir, `python${binaryExtension}`);\n const pythonLocation = $6zuPC.getPyPyBinaryPath(installDir);\n if (updateEnvironment) {\n $9yJgU.exportVariable(\"pythonLocation\", installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython\n $9yJgU.exportVariable(\"Python_ROOT_DIR\", installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2\n $9yJgU.exportVariable(\"Python2_ROOT_DIR\", installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3\n $9yJgU.exportVariable(\"Python3_ROOT_DIR\", installDir);\n $9yJgU.exportVariable(\"PKG_CONFIG_PATH\", pythonLocation + \"/lib/pkgconfig\");\n $9yJgU.addPath(pythonLocation);\n $9yJgU.addPath(_binDir);\n }\n $9yJgU.setOutput(\"python-version\", \"pypy\" + resolvedPyPyVersion);\n $9yJgU.setOutput(\"python-path\", pythonPath);\n return {\n resolvedPyPyVersion: resolvedPyPyVersion,\n resolvedPythonVersion: resolvedPythonVersion\n };\n}\nfunction $0684ac808cbc866b$export$bba8aabb976a1d17(pythonVersion, pypyVersion, architecture) {\n let resolvedPyPyVersion = \"\";\n let resolvedPythonVersion = \"\";\n let installDir = (0, $1FYOu.IS_WINDOWS) ? $0684ac808cbc866b$export$139298be7eb2bd(pythonVersion) : $4ai2V.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, $1FYOu.getPyPyVersionFromPath)(installDir);\n resolvedPyPyVersion = (0, $1FYOu.readExactPyPyVersionFile)(installDir);\n const isPyPyVersionSatisfies = $jrMr3.satisfies(resolvedPyPyVersion, pypyVersion);\n if (!isPyPyVersionSatisfies) {\n installDir = null;\n resolvedPyPyVersion = \"\";\n resolvedPythonVersion = \"\";\n }\n }\n if (!installDir) $9yJgU.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 $0684ac808cbc866b$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<python-version>' or 'pypy-<python-version>'. See README for examples and documentation.\");\n const pythonVersion = versions[1];\n let pypyVersion;\n if (versions.length > 2) pypyVersion = $6zuPC.pypyVersionToSemantic(versions[2]);\n else pypyVersion = \"x\";\n if (!(0, $1FYOu.validateVersion)(pythonVersion) || !(0, $1FYOu.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, $1FYOu.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 $0684ac808cbc866b$export$139298be7eb2bd(pythonVersion) {\n let installDir = \"\";\n (0, $1FYOu.WINDOWS_ARCHS).forEach((architecture)=>installDir = installDir || $4ai2V.find(\"PyPy\", pythonVersion, architecture));\n return installDir;\n}\n\n});\nparcelRegister(\"6zuPC\", function(module, exports) {\n\n$parcel$export(module.exports, \"installPyPy\", () => $e531f8122a8e2167$export$3573149ec5684a1d);\n$parcel$export(module.exports, \"getAvailablePyPyVersions\", () => $e531f8122a8e2167$export$15e3ff21db62aa77);\n$parcel$export(module.exports, \"findRelease\", () => $e531f8122a8e2167$export$4272161ba9d7d3dd);\n$parcel$export(module.exports, \"getPyPyBinaryPath\", () => $e531f8122a8e2167$export$a053ce7a690fbb2e);\n$parcel$export(module.exports, \"pypyVersionToSemantic\", () => $e531f8122a8e2167$export$4e25ef8c836002b9);\n\n\n\nvar $9yJgU = parcelRequire(\"9yJgU\");\n\nvar $4ai2V = parcelRequire(\"4ai2V\");\n\nvar $jrMr3 = parcelRequire(\"jrMr3\");\n\nvar $95990 = parcelRequire(\"95990\");\n\nvar $jlr6Q = parcelRequire(\"jlr6Q\");\n\n\nvar $1FYOu = parcelRequire(\"1FYOu\");\nasync function $e531f8122a8e2167$export$3573149ec5684a1d(pypyVersion, pythonVersion, architecture, allowPreReleases, releases) {\n let downloadDir;\n releases = releases ?? await $e531f8122a8e2167$export$15e3ff21db62aa77();\n if (!releases || releases.length === 0) throw new Error(\"No release was found in PyPy version.json\");\n let releaseData = $e531f8122a8e2167$export$4272161ba9d7d3dd(releases, pythonVersion, pypyVersion, architecture, false);\n if (allowPreReleases && (!releaseData || !releaseData.foundAsset)) {\n // check for pre-release\n $9yJgU.info([\n `Stable PyPy version ${pythonVersion} (${pypyVersion}) with arch ${architecture} not found`,\n `Trying pre-release versions`\n ].join($606tr$os.EOL));\n releaseData = $e531f8122a8e2167$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 $9yJgU.info(`Downloading PyPy from \"${downloadUrl}\" ...`);\n try {\n const pypyPath = await $4ai2V.downloadTool(downloadUrl);\n $9yJgU.info(\"Extracting downloaded archive...\");\n if (0, $1FYOu.IS_WINDOWS) downloadDir = await $4ai2V.extractZip(pypyPath);\n else downloadDir = await $4ai2V.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($606tr$fs))).readdirSync(downloadDir)[0];\n const toolDir = $606tr$path.join(downloadDir, archiveName);\n let installDir = toolDir;\n if (!(0, $1FYOu.isNightlyKeyword)(resolvedPyPyVersion)) installDir = await $4ai2V.cacheDir(toolDir, \"PyPy\", resolvedPythonVersion, architecture);\n (0, $1FYOu.writeExactPyPyVersionFile)(installDir, resolvedPyPyVersion);\n const binaryPath = $e531f8122a8e2167$export$a053ce7a690fbb2e(installDir);\n await $e531f8122a8e2167$var$createPyPySymlink(binaryPath, resolvedPythonVersion);\n await $e531f8122a8e2167$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 $4ai2V.HTTPError && (err.httpStatusCode === 403 || err.httpStatusCode === 429)) $9yJgU.info(`Received HTTP status code ${err.httpStatusCode}. This usually indicates the rate limit has been exceeded`);\n else $9yJgU.info(err.message);\n if (err.stack !== undefined) $9yJgU.debug(err.stack);\n }\n throw err;\n }\n}\nasync function $e531f8122a8e2167$export$15e3ff21db62aa77() {\n const url = \"https://downloads.python.org/pypy/versions.json\";\n const http = new $95990.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 $e531f8122a8e2167$var$createPyPySymlink(pypyBinaryPath, pythonVersion) {\n const version = $jrMr3.coerce(pythonVersion);\n const pythonBinaryPostfix = $jrMr3.major(version);\n const pythonMinor = $jrMr3.minor(version);\n const pypyBinaryPostfix = pythonBinaryPostfix === 2 ? \"\" : \"3\";\n const pypyMajorMinorBinaryPostfix = `${pythonBinaryPostfix}.${pythonMinor}`;\n const binaryExtension = (0, $1FYOu.IS_WINDOWS) ? \".exe\" : \"\";\n $9yJgU.info(\"Creating symlinks...\");\n (0, $1FYOu.createSymlinkInFolder)(pypyBinaryPath, `pypy${pypyBinaryPostfix}${binaryExtension}`, `python${pythonBinaryPostfix}${binaryExtension}`, true);\n (0, $1FYOu.createSymlinkInFolder)(pypyBinaryPath, `pypy${pypyBinaryPostfix}${binaryExtension}`, `python${binaryExtension}`, true);\n (0, $1FYOu.createSymlinkInFolder)(pypyBinaryPath, `pypy${pypyBinaryPostfix}${binaryExtension}`, `pypy${pypyMajorMinorBinaryPostfix}${binaryExtension}`, true);\n}\nasync function $e531f8122a8e2167$var$installPip(pythonLocation) {\n $9yJgU.info(\"Installing and updating pip\");\n const pythonBinary = $606tr$path.join(pythonLocation, \"python\");\n await $jlr6Q.exec(`${pythonBinary} -m ensurepip`);\n await $jlr6Q.exec(`${pythonLocation}/python -m pip install --ignore-installed pip`);\n}\nfunction $e531f8122a8e2167$export$4272161ba9d7d3dd(releases, pythonVersion, pypyVersion, architecture, includePrerelease) {\n const options = {\n includePrerelease: includePrerelease\n };\n const filterReleases = releases.filter((item)=>{\n const isPythonVersionSatisfied = $jrMr3.satisfies($jrMr3.coerce(item.python_version), pythonVersion);\n const isPyPyNightly = (0, $1FYOu.isNightlyKeyword)(pypyVersion) && (0, $1FYOu.isNightlyKeyword)(item.pypy_version);\n const isPyPyVersionSatisfied = isPyPyNightly || $jrMr3.satisfies($e531f8122a8e2167$export$4e25ef8c836002b9(item.pypy_version), pypyVersion, options);\n const isArchPresent = item.files && ((0, $1FYOu.IS_WINDOWS) ? $e531f8122a8e2167$export$652444ba12a0c7bb(item, architecture) : $e531f8122a8e2167$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 $jrMr3.compare($jrMr3.coerce($e531f8122a8e2167$export$4e25ef8c836002b9(current.pypy_version)), $jrMr3.coerce($e531f8122a8e2167$export$4e25ef8c836002b9(previous.pypy_version))) || $jrMr3.compare($jrMr3.coerce(current.python_version), $jrMr3.coerce(previous.python_version));\n });\n const foundRelease = sortedReleases[0];\n const foundAsset = (0, $1FYOu.IS_WINDOWS) ? $e531f8122a8e2167$export$672a33957a3c888(foundRelease, architecture) : $e531f8122a8e2167$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 $e531f8122a8e2167$export$a053ce7a690fbb2e(installDir) {\n const _binDir = $606tr$path.join(installDir, \"bin\");\n return (0, $1FYOu.IS_WINDOWS) ? installDir : _binDir;\n}\nfunction $e531f8122a8e2167$export$4e25ef8c836002b9(versionSpec) {\n const prereleaseVersion = /(\\d+\\.\\d+\\.\\d+)((?:a|b|rc))(\\d*)/g;\n return versionSpec.replace(prereleaseVersion, \"$1-$2.$3\");\n}\nfunction $e531f8122a8e2167$export$652444ba12a0c7bb(item, architecture) {\n architecture = $e531f8122a8e2167$var$replaceX32toX86(architecture);\n return item.files.some((file)=>(0, $1FYOu.WINDOWS_PLATFORMS).includes(file.platform) && file.arch === architecture);\n}\nfunction $e531f8122a8e2167$export$f1fafc67685dd0bf(item, architecture, platform) {\n return item.files.some((file)=>file.arch === architecture && file.platform === platform);\n}\nfunction $e531f8122a8e2167$export$672a33957a3c888(releases, architecture) {\n architecture = $e531f8122a8e2167$var$replaceX32toX86(architecture);\n return releases.files.find((item)=>(0, $1FYOu.WINDOWS_PLATFORMS).includes(item.platform) && item.arch === architecture);\n}\nfunction $e531f8122a8e2167$export$7e0be3a86d27fcd9(releases, architecture, platform) {\n return releases.files.find((item)=>item.arch === architecture && item.platform === platform);\n}\nfunction $e531f8122a8e2167$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});\nparcelRegister(\"4ai2V\", function(module, exports) {\n\nvar $30861833c64e25df$var$$parcel$__dirname = $606tr$path.resolve(__dirname, \"../../node_modules/.pnpm/@actions+tool-cache@1.7.2/node_modules/@actions/tool-cache/lib\");\n\"use strict\";\nvar $30861833c64e25df$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 $30861833c64e25df$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 $30861833c64e25df$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)) $30861833c64e25df$var$__createBinding(result, mod, k);\n }\n $30861833c64e25df$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $30861833c64e25df$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 $30861833c64e25df$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 $30861833c64e25df$var$core = $30861833c64e25df$var$__importStar((parcelRequire(\"9yJgU\")));\n\nconst $30861833c64e25df$var$io = $30861833c64e25df$var$__importStar((parcelRequire(\"fcBgE\")));\n\nconst $30861833c64e25df$var$fs = $30861833c64e25df$var$__importStar($606tr$fs);\n\nconst $30861833c64e25df$var$mm = $30861833c64e25df$var$__importStar((parcelRequire(\"eMKvA\")));\n\nconst $30861833c64e25df$var$os = $30861833c64e25df$var$__importStar($606tr$os);\n\nconst $30861833c64e25df$var$path = $30861833c64e25df$var$__importStar($606tr$path);\n\nconst $30861833c64e25df$var$httpm = $30861833c64e25df$var$__importStar((parcelRequire(\"95990\")));\n\nconst $30861833c64e25df$var$semver = $30861833c64e25df$var$__importStar((parcelRequire(\"aNgTs\")));\n\nconst $30861833c64e25df$var$stream = $30861833c64e25df$var$__importStar($606tr$stream);\n\nconst $30861833c64e25df$var$util = $30861833c64e25df$var$__importStar($606tr$util);\n\nconst $30861833c64e25df$var$v4_1 = $30861833c64e25df$var$__importDefault((parcelRequire(\"dGCqI\")));\n\nvar $jlr6Q = parcelRequire(\"jlr6Q\");\n\n\nvar $8RSsC = parcelRequire(\"8RSsC\");\nclass $30861833c64e25df$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 = $30861833c64e25df$var$HTTPError;\nconst $30861833c64e25df$var$IS_WINDOWS = process.platform === \"win32\";\nconst $30861833c64e25df$var$IS_MAC = process.platform === \"darwin\";\nconst $30861833c64e25df$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 $30861833c64e25df$var$downloadTool(url, dest, auth, headers) {\n return $30861833c64e25df$var$__awaiter(this, void 0, void 0, function*() {\n dest = dest || $30861833c64e25df$var$path.join($30861833c64e25df$var$_getTempDirectory(), $30861833c64e25df$var$v4_1.default());\n yield $30861833c64e25df$var$io.mkdirP($30861833c64e25df$var$path.dirname(dest));\n $30861833c64e25df$var$core.debug(`Downloading ${url}`);\n $30861833c64e25df$var$core.debug(`Destination ${dest}`);\n const maxAttempts = 3;\n const minSeconds = $30861833c64e25df$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS\", 10);\n const maxSeconds = $30861833c64e25df$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS\", 20);\n const retryHelper = new $8RSsC.RetryHelper(maxAttempts, minSeconds, maxSeconds);\n return yield retryHelper.execute(()=>$30861833c64e25df$var$__awaiter(this, void 0, void 0, function*() {\n return yield $30861833c64e25df$var$downloadToolAttempt(url, dest || \"\", auth, headers);\n }), (err)=>{\n if (err instanceof $30861833c64e25df$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 = $30861833c64e25df$var$downloadTool;\nfunction $30861833c64e25df$var$downloadToolAttempt(url, dest, auth, headers) {\n return $30861833c64e25df$var$__awaiter(this, void 0, void 0, function*() {\n if ($30861833c64e25df$var$fs.existsSync(dest)) throw new Error(`Destination file path ${dest} already exists`);\n // Get the response headers\n const http = new $30861833c64e25df$var$httpm.HttpClient($30861833c64e25df$var$userAgent, [], {\n allowRetries: false\n });\n if (auth) {\n $30861833c64e25df$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 $30861833c64e25df$var$HTTPError(response.message.statusCode);\n $30861833c64e25df$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 = $30861833c64e25df$var$util.promisify($30861833c64e25df$var$stream.pipeline);\n const responseMessageFactory = $30861833c64e25df$var$_getGlobal(\"TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY\", ()=>response.message);\n const readStream = responseMessageFactory();\n let succeeded = false;\n try {\n yield pipeline(readStream, $30861833c64e25df$var$fs.createWriteStream(dest));\n $30861833c64e25df$var$core.debug(\"download complete\");\n succeeded = true;\n return dest;\n } finally{\n // Error, delete dest before retry\n if (!succeeded) {\n $30861833c64e25df$var$core.debug(\"download failed\");\n try {\n yield $30861833c64e25df$var$io.rmRF(dest);\n } catch (err) {\n $30861833c64e25df$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 $30861833c64e25df$var$extract7z(file, dest, _7zPath) {\n return $30861833c64e25df$var$__awaiter(this, void 0, void 0, function*() {\n $606tr$assert.ok($30861833c64e25df$var$IS_WINDOWS, \"extract7z() not supported on current OS\");\n $606tr$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $30861833c64e25df$var$_createExtractFolder(dest);\n const originalCwd = process.cwd();\n process.chdir(dest);\n if (_7zPath) try {\n const logLevel = $30861833c64e25df$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 $jlr6Q.exec(`\"${_7zPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n else {\n const escapedScript = $30861833c64e25df$var$path.join($30861833c64e25df$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 $30861833c64e25df$var$io.which(\"powershell\", true);\n yield $jlr6Q.exec(`\"${powershellPath}\"`, args, options);\n } finally{\n process.chdir(originalCwd);\n }\n }\n return dest;\n });\n}\nmodule.exports.extract7z = $30861833c64e25df$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 $30861833c64e25df$var$extractTar(file, dest, flags = \"xz\") {\n return $30861833c64e25df$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n // Create dest\n dest = yield $30861833c64e25df$var$_createExtractFolder(dest);\n // Determine whether GNU tar\n $30861833c64e25df$var$core.debug(\"Checking tar --version\");\n let versionOutput = \"\";\n yield $jlr6Q.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 $30861833c64e25df$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 ($30861833c64e25df$var$core.isDebug() && !flags.includes(\"v\")) args.push(\"-v\");\n let destArg = dest;\n let fileArg = file;\n if ($30861833c64e25df$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 $jlr6Q.exec(`tar`, args);\n return dest;\n });\n}\nmodule.exports.extractTar = $30861833c64e25df$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 $30861833c64e25df$var$extractXar(file, dest, flags = []) {\n return $30861833c64e25df$var$__awaiter(this, void 0, void 0, function*() {\n $606tr$assert.ok($30861833c64e25df$var$IS_MAC, \"extractXar() not supported on current OS\");\n $606tr$assert.ok(file, 'parameter \"file\" is required');\n dest = yield $30861833c64e25df$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 ($30861833c64e25df$var$core.isDebug()) args.push(\"-v\");\n const xarPath = yield $30861833c64e25df$var$io.which(\"xar\", true);\n yield $jlr6Q.exec(`\"${xarPath}\"`, $30861833c64e25df$var$_unique(args));\n return dest;\n });\n}\nmodule.exports.extractXar = $30861833c64e25df$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 $30861833c64e25df$var$extractZip(file, dest) {\n return $30861833c64e25df$var$__awaiter(this, void 0, void 0, function*() {\n if (!file) throw new Error(\"parameter 'file' is required\");\n dest = yield $30861833c64e25df$var$_createExtractFolder(dest);\n if ($30861833c64e25df$var$IS_WINDOWS) yield $30861833c64e25df$var$extractZipWin(file, dest);\n else yield $30861833c64e25df$var$extractZipNix(file, dest);\n return dest;\n });\n}\nmodule.exports.extractZip = $30861833c64e25df$var$extractZip;\nfunction $30861833c64e25df$var$extractZipWin(file, dest) {\n return $30861833c64e25df$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 $30861833c64e25df$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 $30861833c64e25df$var$core.debug(`Using pwsh at path: ${pwshPath}`);\n yield $jlr6Q.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 $30861833c64e25df$var$io.which(\"powershell\", true);\n $30861833c64e25df$var$core.debug(`Using powershell at path: ${powershellPath}`);\n yield $jlr6Q.exec(`\"${powershellPath}\"`, args);\n }\n });\n}\nfunction $30861833c64e25df$var$extractZipNix(file, dest) {\n return $30861833c64e25df$var$__awaiter(this, void 0, void 0, function*() {\n const unzipPath = yield $30861833c64e25df$var$io.which(\"unzip\", true);\n const args = [\n file\n ];\n if (!$30861833c64e25df$var$core.isDebug()) args.unshift(\"-q\");\n args.unshift(\"-o\"); //overwrite with -o, otherwise a prompt is shown which freezes the run\n yield $jlr6Q.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 $30861833c64e25df$var$cacheDir(sourceDir, tool, version, arch) {\n return $30861833c64e25df$var$__awaiter(this, void 0, void 0, function*() {\n version = $30861833c64e25df$var$semver.clean(version) || version;\n arch = arch || $30861833c64e25df$var$os.arch();\n $30861833c64e25df$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $30861833c64e25df$var$core.debug(`source dir: ${sourceDir}`);\n if (!$30861833c64e25df$var$fs.statSync(sourceDir).isDirectory()) throw new Error(\"sourceDir is not a directory\");\n // Create the tool dir\n const destPath = yield $30861833c64e25df$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 $30861833c64e25df$var$fs.readdirSync(sourceDir)){\n const s = $30861833c64e25df$var$path.join(sourceDir, itemName);\n yield $30861833c64e25df$var$io.cp(s, destPath, {\n recursive: true\n });\n }\n // write .complete\n $30861833c64e25df$var$_completeToolPath(tool, version, arch);\n return destPath;\n });\n}\nmodule.exports.cacheDir = $30861833c64e25df$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 $30861833c64e25df$var$cacheFile(sourceFile, targetFile, tool, version, arch) {\n return $30861833c64e25df$var$__awaiter(this, void 0, void 0, function*() {\n version = $30861833c64e25df$var$semver.clean(version) || version;\n arch = arch || $30861833c64e25df$var$os.arch();\n $30861833c64e25df$var$core.debug(`Caching tool ${tool} ${version} ${arch}`);\n $30861833c64e25df$var$core.debug(`source file: ${sourceFile}`);\n if (!$30861833c64e25df$var$fs.statSync(sourceFile).isFile()) throw new Error(\"sourceFile is not a file\");\n // create the tool dir\n const destFolder = yield $30861833c64e25df$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 = $30861833c64e25df$var$path.join(destFolder, targetFile);\n $30861833c64e25df$var$core.debug(`destination file ${destPath}`);\n yield $30861833c64e25df$var$io.cp(sourceFile, destPath);\n // write .complete\n $30861833c64e25df$var$_completeToolPath(tool, version, arch);\n return destFolder;\n });\n}\nmodule.exports.cacheFile = $30861833c64e25df$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 $30861833c64e25df$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 || $30861833c64e25df$var$os.arch();\n // attempt to resolve an explicit version\n if (!$30861833c64e25df$var$isExplicitVersion(versionSpec)) {\n const localVersions = $30861833c64e25df$var$findAllVersions(toolName, arch);\n const match = $30861833c64e25df$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 = $30861833c64e25df$var$semver.clean(versionSpec) || \"\";\n const cachePath = $30861833c64e25df$var$path.join($30861833c64e25df$var$_getCacheDirectory(), toolName, versionSpec, arch);\n $30861833c64e25df$var$core.debug(`checking cache: ${cachePath}`);\n if ($30861833c64e25df$var$fs.existsSync(cachePath) && $30861833c64e25df$var$fs.existsSync(`${cachePath}.complete`)) {\n $30861833c64e25df$var$core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);\n toolPath = cachePath;\n } else $30861833c64e25df$var$core.debug(\"not found\");\n }\n return toolPath;\n}\nmodule.exports.find = $30861833c64e25df$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 $30861833c64e25df$var$findAllVersions(toolName, arch) {\n const versions = [];\n arch = arch || $30861833c64e25df$var$os.arch();\n const toolPath = $30861833c64e25df$var$path.join($30861833c64e25df$var$_getCacheDirectory(), toolName);\n if ($30861833c64e25df$var$fs.existsSync(toolPath)) {\n const children = $30861833c64e25df$var$fs.readdirSync(toolPath);\n for (const child of children)if ($30861833c64e25df$var$isExplicitVersion(child)) {\n const fullPath = $30861833c64e25df$var$path.join(toolPath, child, arch || \"\");\n if ($30861833c64e25df$var$fs.existsSync(fullPath) && $30861833c64e25df$var$fs.existsSync(`${fullPath}.complete`)) versions.push(child);\n }\n }\n return versions;\n}\nmodule.exports.findAllVersions = $30861833c64e25df$var$findAllVersions;\nfunction $30861833c64e25df$var$getManifestFromRepo(owner, repo, auth, branch = \"master\") {\n return $30861833c64e25df$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 $30861833c64e25df$var$httpm.HttpClient(\"tool-cache\");\n const headers = {};\n if (auth) {\n $30861833c64e25df$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 $30861833c64e25df$var$core.debug(\"Invalid json\");\n }\n }\n return releases;\n });\n}\nmodule.exports.getManifestFromRepo = $30861833c64e25df$var$getManifestFromRepo;\nfunction $30861833c64e25df$var$findFromManifest(versionSpec, stable, manifest, archFilter = $30861833c64e25df$var$os.arch()) {\n return $30861833c64e25df$var$__awaiter(this, void 0, void 0, function*() {\n // wrap the internal impl\n const match = yield $30861833c64e25df$var$mm._findMatch(versionSpec, stable, manifest, archFilter);\n return match;\n });\n}\nmodule.exports.findFromManifest = $30861833c64e25df$var$findFromManifest;\nfunction $30861833c64e25df$var$_createExtractFolder(dest) {\n return $30861833c64e25df$var$__awaiter(this, void 0, void 0, function*() {\n if (!dest) // create a temp dir\n dest = $30861833c64e25df$var$path.join($30861833c64e25df$var$_getTempDirectory(), $30861833c64e25df$var$v4_1.default());\n yield $30861833c64e25df$var$io.mkdirP(dest);\n return dest;\n });\n}\nfunction $30861833c64e25df$var$_createToolPath(tool, version, arch) {\n return $30861833c64e25df$var$__awaiter(this, void 0, void 0, function*() {\n const folderPath = $30861833c64e25df$var$path.join($30861833c64e25df$var$_getCacheDirectory(), tool, $30861833c64e25df$var$semver.clean(version) || version, arch || \"\");\n $30861833c64e25df$var$core.debug(`destination ${folderPath}`);\n const markerPath = `${folderPath}.complete`;\n yield $30861833c64e25df$var$io.rmRF(folderPath);\n yield $30861833c64e25df$var$io.rmRF(markerPath);\n yield $30861833c64e25df$var$io.mkdirP(folderPath);\n return folderPath;\n });\n}\nfunction $30861833c64e25df$var$_completeToolPath(tool, version, arch) {\n const folderPath = $30861833c64e25df$var$path.join($30861833c64e25df$var$_getCacheDirectory(), tool, $30861833c64e25df$var$semver.clean(version) || version, arch || \"\");\n const markerPath = `${folderPath}.complete`;\n $30861833c64e25df$var$fs.writeFileSync(markerPath, \"\");\n $30861833c64e25df$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 $30861833c64e25df$var$isExplicitVersion(versionSpec) {\n const c = $30861833c64e25df$var$semver.clean(versionSpec) || \"\";\n $30861833c64e25df$var$core.debug(`isExplicit: ${c}`);\n const valid = $30861833c64e25df$var$semver.valid(c) != null;\n $30861833c64e25df$var$core.debug(`explicit? ${valid}`);\n return valid;\n}\nmodule.exports.isExplicitVersion = $30861833c64e25df$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 $30861833c64e25df$var$evaluateVersions(versions, versionSpec) {\n let version = \"\";\n $30861833c64e25df$var$core.debug(`evaluating ${versions.length} versions`);\n versions = versions.sort((a, b)=>{\n if ($30861833c64e25df$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 = $30861833c64e25df$var$semver.satisfies(potential, versionSpec);\n if (satisfied) {\n version = potential;\n break;\n }\n }\n if (version) $30861833c64e25df$var$core.debug(`matched: ${version}`);\n else $30861833c64e25df$var$core.debug(\"match not found\");\n return version;\n}\nmodule.exports.evaluateVersions = $30861833c64e25df$var$evaluateVersions;\n/**\n * Gets RUNNER_TOOL_CACHE\n */ function $30861833c64e25df$var$_getCacheDirectory() {\n const cacheDirectory = process.env[\"RUNNER_TOOL_CACHE\"] || \"\";\n $606tr$assert.ok(cacheDirectory, \"Expected RUNNER_TOOL_CACHE to be defined\");\n return cacheDirectory;\n}\n/**\n * Gets RUNNER_TEMP\n */ function $30861833c64e25df$var$_getTempDirectory() {\n const tempDirectory = process.env[\"RUNNER_TEMP\"] || \"\";\n $606tr$assert.ok(tempDirectory, \"Expected RUNNER_TEMP to be defined\");\n return tempDirectory;\n}\n/**\n * Gets a global variable\n */ function $30861833c64e25df$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 $30861833c64e25df$var$_unique(values) {\n return Array.from(new Set(values));\n}\n\n});\nparcelRegister(\"eMKvA\", function(module, exports) {\n\"use strict\";\nvar $ac39a00042463c3f$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 $ac39a00042463c3f$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 $ac39a00042463c3f$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)) $ac39a00042463c3f$var$__createBinding(result, mod, k);\n }\n $ac39a00042463c3f$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $ac39a00042463c3f$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 $ac39a00042463c3f$var$semver = $ac39a00042463c3f$var$__importStar((parcelRequire(\"aNgTs\")));\n\nvar $9yJgU = parcelRequire(\"9yJgU\");\n\n\n\nfunction $ac39a00042463c3f$var$_findMatch(versionSpec, stable, candidates, archFilter) {\n return $ac39a00042463c3f$var$__awaiter(this, void 0, void 0, function*() {\n const platFilter = $606tr$os.platform();\n let result;\n let match;\n let file;\n for (const candidate of candidates){\n const version = candidate.version;\n $9yJgU.debug(`check ${version} satisfies ${versionSpec}`);\n if ($ac39a00042463c3f$var$semver.satisfies(version, versionSpec) && (!stable || candidate.stable === stable)) {\n file = candidate.files.find((item)=>{\n $9yJgU.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 = $ac39a00042463c3f$var$semver.satisfies(osVersion, item.platform_version);\n }\n return chk;\n });\n if (file) {\n $9yJgU.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 = $ac39a00042463c3f$var$_findMatch;\nfunction $ac39a00042463c3f$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 = $606tr$os.platform();\n let version = \"\";\n if (plat === \"darwin\") version = $606tr$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 = $ac39a00042463c3f$var$_getOsVersion;\nfunction $ac39a00042463c3f$var$_readLinuxVersionFile() {\n const lsbReleaseFile = \"/etc/lsb-release\";\n const osReleaseFile = \"/etc/os-release\";\n let contents = \"\";\n if ($606tr$fs.existsSync(lsbReleaseFile)) contents = $606tr$fs.readFileSync(lsbReleaseFile).toString();\n else if ($606tr$fs.existsSync(osReleaseFile)) contents = $606tr$fs.readFileSync(osReleaseFile).toString();\n return contents;\n}\nmodule.exports._readLinuxVersionFile = $ac39a00042463c3f$var$_readLinuxVersionFile;\n\n});\n\nparcelRegister(\"95990\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\n\n\n\nvar $4TaKt = parcelRequire(\"4TaKt\");\nlet $69cbac88b5c0dafc$var$tunnel;\nvar $69cbac88b5c0dafc$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})($69cbac88b5c0dafc$var$HttpCodes = module.exports.HttpCodes || (module.exports.HttpCodes = {}));\nvar $69cbac88b5c0dafc$var$Headers;\n(function(Headers) {\n Headers[\"Accept\"] = \"accept\";\n Headers[\"ContentType\"] = \"content-type\";\n})($69cbac88b5c0dafc$var$Headers = module.exports.Headers || (module.exports.Headers = {}));\nvar $69cbac88b5c0dafc$var$MediaTypes;\n(function(MediaTypes) {\n MediaTypes[\"ApplicationJson\"] = \"application/json\";\n})($69cbac88b5c0dafc$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 $69cbac88b5c0dafc$var$getProxyUrl(serverUrl) {\n let proxyUrl = $4TaKt.getProxyUrl(new URL(serverUrl));\n return proxyUrl ? proxyUrl.href : \"\";\n}\nmodule.exports.getProxyUrl = $69cbac88b5c0dafc$var$getProxyUrl;\nconst $69cbac88b5c0dafc$var$HttpRedirectCodes = [\n $69cbac88b5c0dafc$var$HttpCodes.MovedPermanently,\n $69cbac88b5c0dafc$var$HttpCodes.ResourceMoved,\n $69cbac88b5c0dafc$var$HttpCodes.SeeOther,\n $69cbac88b5c0dafc$var$HttpCodes.TemporaryRedirect,\n $69cbac88b5c0dafc$var$HttpCodes.PermanentRedirect\n];\nconst $69cbac88b5c0dafc$var$HttpResponseRetryCodes = [\n $69cbac88b5c0dafc$var$HttpCodes.BadGateway,\n $69cbac88b5c0dafc$var$HttpCodes.ServiceUnavailable,\n $69cbac88b5c0dafc$var$HttpCodes.GatewayTimeout\n];\nconst $69cbac88b5c0dafc$var$RetryableHttpVerbs = [\n \"OPTIONS\",\n \"GET\",\n \"DELETE\",\n \"HEAD\"\n];\nconst $69cbac88b5c0dafc$var$ExponentialBackoffCeiling = 10;\nconst $69cbac88b5c0dafc$var$ExponentialBackoffTimeSlice = 5;\nclass $69cbac88b5c0dafc$var$HttpClientError extends Error {\n constructor(message, statusCode){\n super(message);\n this.name = \"HttpClientError\";\n this.statusCode = statusCode;\n Object.setPrototypeOf(this, $69cbac88b5c0dafc$var$HttpClientError.prototype);\n }\n}\nmodule.exports.HttpClientError = $69cbac88b5c0dafc$var$HttpClientError;\nclass $69cbac88b5c0dafc$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 = $69cbac88b5c0dafc$var$HttpClientResponse;\nfunction $69cbac88b5c0dafc$var$isHttps(requestUrl) {\n let parsedUrl = new URL(requestUrl);\n return parsedUrl.protocol === \"https:\";\n}\nmodule.exports.isHttps = $69cbac88b5c0dafc$var$isHttps;\n\nclass $69cbac88b5c0dafc$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[$69cbac88b5c0dafc$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $69cbac88b5c0dafc$var$Headers.Accept, $69cbac88b5c0dafc$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[$69cbac88b5c0dafc$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $69cbac88b5c0dafc$var$Headers.Accept, $69cbac88b5c0dafc$var$MediaTypes.ApplicationJson);\n additionalHeaders[$69cbac88b5c0dafc$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $69cbac88b5c0dafc$var$Headers.ContentType, $69cbac88b5c0dafc$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[$69cbac88b5c0dafc$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $69cbac88b5c0dafc$var$Headers.Accept, $69cbac88b5c0dafc$var$MediaTypes.ApplicationJson);\n additionalHeaders[$69cbac88b5c0dafc$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $69cbac88b5c0dafc$var$Headers.ContentType, $69cbac88b5c0dafc$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[$69cbac88b5c0dafc$var$Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, $69cbac88b5c0dafc$var$Headers.Accept, $69cbac88b5c0dafc$var$MediaTypes.ApplicationJson);\n additionalHeaders[$69cbac88b5c0dafc$var$Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, $69cbac88b5c0dafc$var$Headers.ContentType, $69cbac88b5c0dafc$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 && $69cbac88b5c0dafc$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 === $69cbac88b5c0dafc$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($69cbac88b5c0dafc$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 ($69cbac88b5c0dafc$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 $69cbac88b5c0dafc$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 ? $606tr$https : $606tr$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 = $4TaKt.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 || $606tr$http.globalAgent.maxSockets;\n if (useProxy) {\n // If using proxy, need tunnel\n if (!$69cbac88b5c0dafc$var$tunnel) $69cbac88b5c0dafc$var$tunnel = (parcelRequire(\"eYDoL\"));\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 ? $69cbac88b5c0dafc$var$tunnel.httpsOverHttps : $69cbac88b5c0dafc$var$tunnel.httpsOverHttp;\n else tunnelAgent = overHttps ? $69cbac88b5c0dafc$var$tunnel.httpOverHttps : $69cbac88b5c0dafc$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 $606tr$https.Agent(options) : new $606tr$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 ? $606tr$https.globalAgent : $606tr$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($69cbac88b5c0dafc$var$ExponentialBackoffCeiling, retryNumber);\n const ms = $69cbac88b5c0dafc$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 == $69cbac88b5c0dafc$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, $69cbac88b5c0dafc$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 $69cbac88b5c0dafc$var$HttpClientError(msg, statusCode);\n err.result = response.result;\n reject(err);\n } else resolve(response);\n });\n }\n}\nmodule.exports.HttpClient = $69cbac88b5c0dafc$var$HttpClient;\n\n});\nparcelRegister(\"4TaKt\", function(module, exports) {\n\"use strict\";\nObject.defineProperty(module.exports, \"__esModule\", {\n value: true\n});\nfunction $38f4a2ed383aafc3$var$getProxyUrl(reqUrl) {\n let usingSsl = reqUrl.protocol === \"https:\";\n let proxyUrl;\n if ($38f4a2ed383aafc3$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 = $38f4a2ed383aafc3$var$getProxyUrl;\nfunction $38f4a2ed383aafc3$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 = $38f4a2ed383aafc3$var$checkBypass;\n\n});\n\n\nparcelRegister(\"8RSsC\", function(module, exports) {\n\"use strict\";\nvar $674d84afd8e707d2$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 $674d84afd8e707d2$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 $674d84afd8e707d2$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)) $674d84afd8e707d2$var$__createBinding(result, mod, k);\n }\n $674d84afd8e707d2$var$__setModuleDefault(result, mod);\n return result;\n};\nvar $674d84afd8e707d2$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 $674d84afd8e707d2$var$core = $674d84afd8e707d2$var$__importStar((parcelRequire(\"9yJgU\")));\n/**\n * Internal class for retries\n */ class $674d84afd8e707d2$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 $674d84afd8e707d2$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 $674d84afd8e707d2$var$core.info(err.message);\n }\n // Sleep\n const seconds = this.getSleepAmount();\n $674d84afd8e707d2$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 $674d84afd8e707d2$var$__awaiter(this, void 0, void 0, function*() {\n return new Promise((resolve)=>setTimeout(resolve, seconds * 1000));\n });\n }\n}\nmodule.exports.RetryHelper = $674d84afd8e707d2$var$RetryHelper;\n\n});\n\n\nparcelRegister(\"1FYOu\", function(module, exports) {\n\n$parcel$export(module.exports, \"IS_WINDOWS\", () => $36a0be813be224c4$export$82633ee808573685);\n$parcel$export(module.exports, \"IS_LINUX\", () => $36a0be813be224c4$export$25e95d65b6faeb9a);\n$parcel$export(module.exports, \"IS_MAC\", () => $36a0be813be224c4$export$ff23e6b4c4401383);\n$parcel$export(module.exports, \"WINDOWS_ARCHS\", () => $36a0be813be224c4$export$175751bac16078cf);\n$parcel$export(module.exports, \"WINDOWS_PLATFORMS\", () => $36a0be813be224c4$export$da6ba390a22488d5);\n$parcel$export(module.exports, \"createSymlinkInFolder\", () => $36a0be813be224c4$export$b0a6cbd0a3e3c63a);\n$parcel$export(module.exports, \"validateVersion\", () => $36a0be813be224c4$export$7880c8f0bb8a6afd);\n$parcel$export(module.exports, \"isNightlyKeyword\", () => $36a0be813be224c4$export$ea46fc8abcf9f209);\n$parcel$export(module.exports, \"getPyPyVersionFromPath\", () => $36a0be813be224c4$export$8a23ea91582cecbc);\n$parcel$export(module.exports, \"readExactPyPyVersionFile\", () => $36a0be813be224c4$export$15e4ce4ad93c8c8a);\n$parcel$export(module.exports, \"writeExactPyPyVersionFile\", () => $36a0be813be224c4$export$8fb7815f538587a8);\n$parcel$export(module.exports, \"validatePythonVersionFormatForPyPy\", () => $36a0be813be224c4$export$3dc910628be7a364);\n$parcel$export(module.exports, \"getOSInfo\", () => $36a0be813be224c4$export$471d7e4c229dedf);\n/* eslint no-unsafe-finally: \"off\" */ \nvar $9yJgU = parcelRequire(\"9yJgU\");\n\n\n\nvar $jrMr3 = parcelRequire(\"jrMr3\");\n\nvar $55W4k = parcelRequire(\"55W4k\");\n\nvar $jlr6Q = parcelRequire(\"jlr6Q\");\nconst $36a0be813be224c4$export$82633ee808573685 = process.platform === \"win32\";\nconst $36a0be813be224c4$export$25e95d65b6faeb9a = process.platform === \"linux\";\nconst $36a0be813be224c4$export$ff23e6b4c4401383 = process.platform === \"darwin\";\nconst $36a0be813be224c4$export$175751bac16078cf = [\n \"x86\",\n \"x64\"\n];\nconst $36a0be813be224c4$export$da6ba390a22488d5 = [\n \"win32\",\n \"win64\"\n];\nconst $36a0be813be224c4$var$PYPY_VERSION_FILE = \"PYPY_VERSION\";\nfunction $36a0be813be224c4$export$b0a6cbd0a3e3c63a(folderPath, sourceName, targetName, setExecutable = false) {\n const sourcePath = $606tr$path.join(folderPath, sourceName);\n const targetPath = $606tr$path.join(folderPath, targetName);\n if ((0, ($parcel$interopDefault($606tr$fs))).existsSync(targetPath)) return;\n (0, ($parcel$interopDefault($606tr$fs))).symlinkSync(sourcePath, targetPath);\n if (!$36a0be813be224c4$export$82633ee808573685 && setExecutable) (0, ($parcel$interopDefault($606tr$fs))).chmodSync(targetPath, \"755\");\n}\nfunction $36a0be813be224c4$export$7880c8f0bb8a6afd(version) {\n return $36a0be813be224c4$export$ea46fc8abcf9f209(version) || Boolean($jrMr3.validRange(version));\n}\nfunction $36a0be813be224c4$export$ea46fc8abcf9f209(pypyVersion) {\n return pypyVersion === \"nightly\";\n}\nfunction $36a0be813be224c4$export$8a23ea91582cecbc(installDir) {\n return $606tr$path.basename($606tr$path.dirname(installDir));\n}\nfunction $36a0be813be224c4$export$15e4ce4ad93c8c8a(installDir) {\n let pypyVersion = \"\";\n const fileVersion = $606tr$path.join(installDir, $36a0be813be224c4$var$PYPY_VERSION_FILE);\n if ((0, ($parcel$interopDefault($606tr$fs))).existsSync(fileVersion)) pypyVersion = (0, ($parcel$interopDefault($606tr$fs))).readFileSync(fileVersion).toString().trim();\n return pypyVersion;\n}\nfunction $36a0be813be224c4$export$8fb7815f538587a8(installDir, resolvedPyPyVersion) {\n const pypyFilePath = $606tr$path.join(installDir, $36a0be813be224c4$var$PYPY_VERSION_FILE);\n (0, ($parcel$interopDefault($606tr$fs))).writeFileSync(pypyFilePath, resolvedPyPyVersion);\n}\nfunction $36a0be813be224c4$export$3dc910628be7a364(version) {\n const re = /^\\d+\\.\\d+$/;\n return re.test(version);\n}\nfunction $36a0be813be224c4$export$ebd6064652549ce9(message) {\n const warningPrefix = \"[warning]\";\n $9yJgU.info(`${warningPrefix}${message}`);\n}\nasync function $36a0be813be224c4$var$getWindowsInfo() {\n const { stdout: stdout } = await $jlr6Q.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 $36a0be813be224c4$var$getMacOSInfo() {\n const { stdout: stdout } = await $jlr6Q.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 $36a0be813be224c4$export$734019fa9b4b8da() {\n const { stdout: stdout } = await $jlr6Q.getExecOutput(\"lsb_release\", [\n \"-i\",\n \"-r\",\n \"-s\"\n ], {\n silent: true\n });\n const [osName, osVersion] = stdout.trim().split(\"\\n\");\n $9yJgU.debug(`OS Name: ${osName}, Version: ${osVersion}`);\n return {\n osName: osName,\n osVersion: osVersion\n };\n}\nasync function $36a0be813be224c4$export$471d7e4c229dedf() {\n let osInfo;\n try {\n if ($36a0be813be224c4$export$82633ee808573685) osInfo = await $36a0be813be224c4$var$getWindowsInfo();\n else if ($36a0be813be224c4$export$25e95d65b6faeb9a) osInfo = await $36a0be813be224c4$export$734019fa9b4b8da();\n else if ($36a0be813be224c4$export$ff23e6b4c4401383) osInfo = await $36a0be813be224c4$var$getMacOSInfo();\n } catch (err) {\n const error = err;\n $9yJgU.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 $36a0be813be224c4$var$extractValue(obj, keys) {\n if (keys.length > 0) {\n const value = obj[keys[0]];\n if (keys.length > 1 && value !== undefined) return $36a0be813be224c4$var$extractValue(value, keys.slice(1));\n else return value;\n } else return;\n}\nfunction $36a0be813be224c4$export$62b63db2b7d00b3a(versionFile) {\n $9yJgU.debug(`Trying to resolve version form ${versionFile}`);\n const pyprojectFile = (0, ($parcel$interopDefault($606tr$fs))).readFileSync(versionFile, \"utf8\");\n const pyprojectConfig = $55W4k.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 = $36a0be813be224c4$var$extractValue(pyprojectConfig, keys);\n if (version !== undefined) versions.push(version);\n $9yJgU.info(`Extracted ${versions} from ${versionFile}`);\n const rawVersions = Array.from(versions, (version)=>version.split(\",\").join(\" \"));\n const validatedVersions = rawVersions.map((item)=>$jrMr3.validRange(item, true)).filter((versionRange, index)=>{\n if (!versionRange) $9yJgU.debug(`The version ${rawVersions[index]} is not valid SemVer range`);\n return !!versionRange;\n });\n return validatedVersions;\n}\nfunction $36a0be813be224c4$export$6bdea68547837ebb(versionFile) {\n $9yJgU.debug(`Trying to resolve version form ${versionFile}`);\n const version = (0, ($parcel$interopDefault($606tr$fs))).readFileSync(versionFile, \"utf8\");\n $9yJgU.info(`Resolved ${versionFile} as ${version}`);\n return [\n version\n ];\n}\nfunction $36a0be813be224c4$export$7ffda0a4baa8880a(versionFile) {\n if (versionFile.endsWith(\".toml\")) return $36a0be813be224c4$export$62b63db2b7d00b3a(versionFile);\n else return $36a0be813be224c4$export$6bdea68547837ebb(versionFile);\n}\n\n});\nparcelRegister(\"55W4k\", function(module, exports) {\n\n$parcel$export(module.exports, \"parse\", () => $3b5a76a5a5eb95d3$export$98e6a39c04603d36, (v) => $3b5a76a5a5eb95d3$export$98e6a39c04603d36 = v);\nvar $3b5a76a5a5eb95d3$export$98e6a39c04603d36;\nvar $3b5a76a5a5eb95d3$export$fac44ee5b035f737;\n\"use strict\";\n\n$3b5a76a5a5eb95d3$export$98e6a39c04603d36 = (parcelRequire(\"gi4xV\"));\n\n$3b5a76a5a5eb95d3$export$fac44ee5b035f737 = (parcelRequire(\"5e4iL\"));\n\n});\nparcelRegister(\"gi4xV\", function(module, exports) {\n\"use strict\";\n\nmodule.exports = (parcelRequire(\"hncsJ\"));\n\nmodule.exports.async = (parcelRequire(\"leFFm\"));\n\nmodule.exports.stream = (parcelRequire(\"bIDnv\"));\n\nmodule.exports.prettyError = (parcelRequire(\"ckX77\"));\n\n});\nparcelRegister(\"hncsJ\", function(module, exports) {\n\"use strict\";\nmodule.exports = $ca5e40670cce0cd1$var$parseString;\n\nvar $gEhiJ = parcelRequire(\"gEhiJ\");\n\nvar $ckX77 = parcelRequire(\"ckX77\");\nfunction $ca5e40670cce0cd1$var$parseString(str) {\n if ($parcel$global.Buffer && $parcel$global.Buffer.isBuffer(str)) str = str.toString(\"utf8\");\n const parser = new $gEhiJ();\n try {\n parser.parse(str);\n return parser.finish();\n } catch (err) {\n throw $ckX77(err, str);\n }\n}\n\n});\nparcelRegister(\"gEhiJ\", function(module, exports) {\n\"use strict\";\n\n/* eslint-disable no-new-wrappers, no-eval, camelcase, operator-linebreak */ module.exports = makeParserClass((parcelRequire(\"lTZk9\")));\nmodule.exports.makeParserClass = makeParserClass;\nclass TomlError extends Error {\n constructor(msg){\n super(msg);\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 = (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\nvar $lPmG1 = parcelRequire(\"lPmG1\");\n\nvar $7kLtX = parcelRequire(\"7kLtX\");\n\nvar $i8y9h = parcelRequire(\"i8y9h\");\n\nvar $l5l5L = parcelRequire(\"l5l5L\");\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(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 || cp >= CHAR_a && cp <= CHAR_z || cp >= CHAR_0 && cp <= CHAR_9 || cp === CHAR_APOS || cp === CHAR_QUOT || cp === CHAR_LOWBAR || cp === CHAR_HYPHEN;\n}\nfunction isAlphaNumHyphen(cp) {\n return cp >= CHAR_A && cp <= CHAR_Z || cp >= CHAR_a && cp <= CHAR_z || cp >= CHAR_0 && cp <= CHAR_9 || cp === CHAR_LOWBAR || cp === 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(obj, key) {\n if (hasOwnProperty.call(obj, key)) return true;\n if (key === \"__proto__\") defineProperty(obj, \"__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(obj) {\n if (obj === null || typeof obj !== \"object\") return false;\n return obj[_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(obj) {\n if (obj === null || typeof obj !== \"object\") return false;\n return obj[_type] === TABLE;\n}\nconst _contentType = Symbol(\"content-type\");\nconst INLINE_LIST = Symbol(\"inline-list\");\nfunction InlineList(type) {\n return Object.defineProperties([], {\n [_type]: {\n value: INLINE_LIST\n },\n [_contentType]: {\n value: type\n }\n });\n}\nfunction isInlineList(obj) {\n if (obj === null || typeof obj !== \"object\") return false;\n return obj[_type] === INLINE_LIST;\n}\nconst LIST = Symbol(\"list\");\nfunction List() {\n return Object.defineProperties([], {\n [_type]: {\n value: LIST\n }\n });\n}\nfunction isList(obj) {\n if (obj === null || typeof obj !== \"object\") return false;\n return obj[_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(value){\n try {\n this.value = $parcel$global.BigInt.asIntN(64, value);\n } catch (_) {\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(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 */ if ($parcel$global.BigInt && !Number.isSafeInteger(num)) return new BoxedBigInt(value);\n else /* istanbul ignore next */ return Object.defineProperties(new Number(num), {\n isNaN: {\n value: function() {\n return isNaN(this);\n }\n },\n [_type]: {\n value: INTEGER\n },\n [_inspect]: {\n value: ()=>`[Integer: ${value}]`\n }\n });\n}\nfunction isInteger(obj) {\n if (obj === null || typeof obj !== \"object\") return false;\n return obj[_type] === INTEGER;\n}\nconst FLOAT = Symbol(\"float\");\nfunction Float(value) {\n /* istanbul ignore next */ return Object.defineProperties(new Number(value), {\n [_type]: {\n value: FLOAT\n },\n [_inspect]: {\n value: ()=>`[Float: ${value}]`\n }\n });\n}\nfunction isFloat(obj) {\n if (obj === null || typeof obj !== \"object\") return false;\n return obj[_type] === FLOAT;\n}\nfunction tomlType(value) {\n const type = typeof value;\n if (type === \"object\") {\n /* istanbul ignore if */ if (value === null) return \"null\";\n if (value instanceof Date) return \"datetime\";\n /* istanbul ignore else */ if (_type in value) switch(value[_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 type;\n}\nfunction makeParserClass(Parser) {\n class TOMLParser extends Parser {\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 === Parser.END || this.char === CTRL_J || this.char === CTRL_M;\n }\n parseStart() {\n if (this.char === Parser.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 === Parser.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(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])) throw this.error(new TomlError(\"Can't redefine existing key\"));\n target = target[kw] = target[kw] || Table();\n }\n if (hasKey(target, finalKey)) throw this.error(new TomlError(\"Can't redefine existing key\"));\n // unbox our numbers\n if (isInteger(kv.value) || isFloat(kv.value)) target[finalKey] = kv.value.valueOf();\n else target[finalKey] = kv.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(key) {\n if (this.state.resultTable) this.state.resultTable.push(key);\n else this.state.resultTable = [\n key\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(value) {\n return this.returnNow({\n key: this.state.resultTable,\n value: value\n });\n }\n /* COMMENTS: #...eol */ parseComment() {\n do {\n if (this.char === Parser.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(keyword) {\n if (this.char === CHAR_SP || this.char === CTRL_I) return null;\n else if (this.char === CHAR_RSQB) {\n if (hasKey(this.ctx, keyword) && (!isTable(this.ctx[keyword]) || this.ctx[keyword][_declared])) 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)) this.ctx = this.ctx[keyword] = Table();\n else if (isTable(this.ctx[keyword])) this.ctx = this.ctx[keyword];\n else if (isList(this.ctx[keyword])) this.ctx = this.ctx[keyword][this.ctx[keyword].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(keyword) {\n if (this.char === CHAR_SP || this.char === CTRL_I) return null;\n else if (this.char === CHAR_RSQB) {\n if (!hasKey(this.ctx, keyword)) this.ctx[keyword] = List();\n if (isInlineList(this.ctx[keyword])) 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 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, keyword)) this.ctx = this.ctx[keyword] = Table();\n else if (isInlineList(this.ctx[keyword])) throw this.error(new TomlError(\"Can't extend an inline array\"));\n else if (isInlineTable(this.ctx[keyword])) throw this.error(new TomlError(\"Can't extend an inline table\"));\n else if (isList(this.ctx[keyword])) this.ctx = this.ctx[keyword][this.ctx[keyword].length - 1];\n else if (isTable(this.ctx[keyword])) this.ctx = this.ctx[keyword];\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(keyword) {\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 === Parser.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(value) {\n return this.returnNow(value);\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 === Parser.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 === Parser.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(replacement) {\n this.state.buf += replacement;\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 === Parser.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 displayCode = \"\\\\u00\";\n if (this.char < 16) displayCode += \"0\";\n displayCode += this.char.toString(16);\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) 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(char) {\n try {\n const codePoint = parseInt(char, 16);\n if (codePoint >= SURROGATE_FIRST && codePoint <= SURROGATE_LAST) throw this.error(new TomlError(\"Invalid unicode, character in range 0xD800 - 0xDFFF is reserved\"));\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)) 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 result = Integer(this.state.buf);\n /* istanbul ignore if */ if (result.isNaN()) throw this.error(new TomlError(\"Invalid number\"));\n else return this.returnNow(result);\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 result = Integer(this.state.buf);\n /* istanbul ignore if */ if (result.isNaN()) throw this.error(new TomlError(\"Invalid number\"));\n else return this.returnNow(result);\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 result = Integer(this.state.buf);\n /* istanbul ignore if */ if (result.isNaN()) throw this.error(new TomlError(\"Invalid number\"));\n else return this.returnNow(result);\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 result = Integer(this.state.buf);\n /* istanbul ignore if */ if (result.isNaN()) throw this.error(new TomlError(\"Invalid number\"));\n else return this.returnNow(result);\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($i8y9h(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($i8y9h(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($l5l5L(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($l5l5L(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($lPmG1(this.state.result + this.state.buf));\n } else if (this.atEndOfWord()) return this.returnNow($7kLtX(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($lPmG1(this.state.result + this.state.buf));\n } else if (this.atEndOfWord()) return this.returnNow($7kLtX(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($lPmG1(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 === Parser.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(value) {\n if (this.state.resultArr) {\n const listType = this.state.resultArr[_contentType];\n const valueType = tomlType(value);\n if (listType !== valueType) throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${listType} and ${valueType}`));\n } else this.state.resultArr = InlineList(tomlType(value));\n if (isFloat(value) || isInteger(value)) // unbox now that we've verified they're ok\n this.state.resultArr.push(value.valueOf());\n else this.state.resultArr.push(value);\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 === Parser.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(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])) throw this.error(new TomlError(\"Can't redefine existing key\"));\n target = target[kw] = target[kw] || Table();\n }\n if (hasKey(target, finalKey)) throw this.error(new TomlError(\"Can't redefine existing key\"));\n if (isInteger(kv.value) || isFloat(kv.value)) target[finalKey] = kv.value.valueOf();\n else target[finalKey] = kv.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 === Parser.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 TOMLParser;\n}\n\n});\nparcelRegister(\"lTZk9\", function(module, exports) {\n\"use strict\";\nconst $ff1e4dae10310384$var$ParserEND = 0x110000;\nclass $ff1e4dae10310384$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, $ff1e4dae10310384$var$ParserError);\n }\n}\nclass $ff1e4dae10310384$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 $ff1e4dae10310384$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 $ff1e4dae10310384$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 = $ff1e4dae10310384$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 $ff1e4dae10310384$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 $ff1e4dae10310384$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 $ff1e4dae10310384$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 === $ff1e4dae10310384$var$ParserEND) throw this.error(new $ff1e4dae10310384$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 $ff1e4dae10310384$var$ParserError(\"Must declare a parseStart method\");\n }\n}\n$ff1e4dae10310384$var$Parser.END = $ff1e4dae10310384$var$ParserEND;\n$ff1e4dae10310384$var$Parser.Error = $ff1e4dae10310384$var$ParserError;\nmodule.exports = $ff1e4dae10310384$var$Parser;\n\n});\n\nparcelRegister(\"lPmG1\", 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\nparcelRegister(\"7kLtX\", function(module, exports) {\n\"use strict\";\n\nvar $fDUHx = parcelRequire(\"fDUHx\");\nclass $556f3ba0adfcf535$var$FloatingDateTime extends Date {\n constructor(value){\n super(value + \"Z\");\n this.isFloating = true;\n }\n toISOString() {\n const date = `${this.getUTCFullYear()}-${$fDUHx(2, this.getUTCMonth() + 1)}-${$fDUHx(2, this.getUTCDate())}`;\n const time = `${$fDUHx(2, this.getUTCHours())}:${$fDUHx(2, this.getUTCMinutes())}:${$fDUHx(2, this.getUTCSeconds())}.${$fDUHx(3, this.getUTCMilliseconds())}`;\n return `${date}T${time}`;\n }\n}\nmodule.exports = (value)=>{\n const date = new $556f3ba0adfcf535$var$FloatingDateTime(value);\n /* istanbul ignore if */ if (isNaN(date)) throw new TypeError(\"Invalid Datetime\");\n else return date;\n};\n\n});\nparcelRegister(\"fDUHx\", 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\nparcelRegister(\"i8y9h\", function(module, exports) {\n\"use strict\";\n\nvar $fDUHx = parcelRequire(\"fDUHx\");\nconst $d343769253f79b60$var$DateTime = $parcel$global.Date;\nclass $d343769253f79b60$var$Date extends $d343769253f79b60$var$DateTime {\n constructor(value){\n super(value);\n this.isDate = true;\n }\n toISOString() {\n return `${this.getUTCFullYear()}-${$fDUHx(2, this.getUTCMonth() + 1)}-${$fDUHx(2, this.getUTCDate())}`;\n }\n}\nmodule.exports = (value)=>{\n const date = new $d343769253f79b60$var$Date(value);\n /* istanbul ignore if */ if (isNaN(date)) throw new TypeError(\"Invalid Datetime\");\n else return date;\n};\n\n});\n\nparcelRegister(\"l5l5L\", function(module, exports) {\n\"use strict\";\n\nvar $fDUHx = parcelRequire(\"fDUHx\");\nclass $f59a6d0c6d3555a7$var$Time extends Date {\n constructor(value){\n super(`0000-01-01T${value}Z`);\n this.isTime = true;\n }\n toISOString() {\n return `${$fDUHx(2, this.getUTCHours())}:${$fDUHx(2, this.getUTCMinutes())}:${$fDUHx(2, this.getUTCSeconds())}.${$fDUHx(3, this.getUTCMilliseconds())}`;\n }\n}\nmodule.exports = (value)=>{\n const date = new $f59a6d0c6d3555a7$var$Time(value);\n /* istanbul ignore if */ if (isNaN(date)) throw new TypeError(\"Invalid Datetime\");\n else return date;\n};\n\n});\n\n\nparcelRegister(\"ckX77\", function(module, exports) {\n\"use strict\";\nmodule.exports = $8fb535137a00e031$var$prettyError;\nfunction $8fb535137a00e031$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\nparcelRegister(\"leFFm\", function(module, exports) {\n\"use strict\";\nmodule.exports = $f75b39cca0bf0e48$var$parseAsync;\n\nvar $gEhiJ = parcelRequire(\"gEhiJ\");\n\nvar $ckX77 = parcelRequire(\"ckX77\");\nfunction $f75b39cca0bf0e48$var$parseAsync(str, opts) {\n if (!opts) opts = {};\n const index = 0;\n const blocksize = opts.blocksize || 40960;\n const parser = new $gEhiJ();\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($ckX77(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($ckX77(err, str));\n }\n }\n}\n\n});\n\nparcelRegister(\"bIDnv\", function(module, exports) {\n\"use strict\";\nmodule.exports = $888259724693c78d$var$parseStream;\n\n\nvar $gEhiJ = parcelRequire(\"gEhiJ\");\nfunction $888259724693c78d$var$parseStream(stm) {\n if (stm) return $888259724693c78d$var$parseReadable(stm);\n else return $888259724693c78d$var$parseTransform(stm);\n}\nfunction $888259724693c78d$var$parseReadable(stm) {\n const parser = new $gEhiJ();\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 $888259724693c78d$var$parseTransform() {\n const parser = new $gEhiJ();\n return new $606tr$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\nparcelRegister(\"5e4iL\", function(module, exports) {\n\"use strict\";\nmodule.exports = $3ce198c99da0f55f$var$stringify;\nmodule.exports.value = $3ce198c99da0f55f$var$stringifyInline;\nfunction $3ce198c99da0f55f$var$stringify(obj) {\n if (obj === null) throw $3ce198c99da0f55f$var$typeError(\"null\");\n if (obj === void 0) throw $3ce198c99da0f55f$var$typeError(\"undefined\");\n if (typeof obj !== \"object\") throw $3ce198c99da0f55f$var$typeError(typeof obj);\n if (typeof obj.toJSON === \"function\") obj = obj.toJSON();\n if (obj == null) return null;\n const type = $3ce198c99da0f55f$var$tomlType(obj);\n if (type !== \"table\") throw $3ce198c99da0f55f$var$typeError(type);\n return $3ce198c99da0f55f$var$stringifyObject(\"\", \"\", obj);\n}\nfunction $3ce198c99da0f55f$var$typeError(type) {\n return new Error(\"Can only stringify objects, not \" + type);\n}\nfunction $3ce198c99da0f55f$var$arrayOneTypeError() {\n return new Error(\"Array values can't have mixed types\");\n}\nfunction $3ce198c99da0f55f$var$getInlineKeys(obj) {\n return Object.keys(obj).filter((key)=>$3ce198c99da0f55f$var$isInline(obj[key]));\n}\nfunction $3ce198c99da0f55f$var$getComplexKeys(obj) {\n return Object.keys(obj).filter((key)=>!$3ce198c99da0f55f$var$isInline(obj[key]));\n}\nfunction $3ce198c99da0f55f$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 $3ce198c99da0f55f$var$stringifyObject(prefix, indent, obj) {\n obj = $3ce198c99da0f55f$var$toJSON(obj);\n var inlineKeys;\n var complexKeys;\n inlineKeys = $3ce198c99da0f55f$var$getInlineKeys(obj);\n complexKeys = $3ce198c99da0f55f$var$getComplexKeys(obj);\n var result = [];\n var inlineIndent = indent || \"\";\n inlineKeys.forEach((key)=>{\n var type = $3ce198c99da0f55f$var$tomlType(obj[key]);\n if (type !== \"undefined\" && type !== \"null\") result.push(inlineIndent + $3ce198c99da0f55f$var$stringifyKey(key) + \" = \" + $3ce198c99da0f55f$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($3ce198c99da0f55f$var$stringifyComplex(prefix, complexIndent, key, obj[key]));\n });\n return result.join(\"\\n\");\n}\nfunction $3ce198c99da0f55f$var$isInline(value) {\n switch($3ce198c99da0f55f$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 || $3ce198c99da0f55f$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 $3ce198c99da0f55f$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 $3ce198c99da0f55f$var$stringifyKey(key) {\n var keyStr = String(key);\n if (/^[-A-Za-z0-9_]+$/.test(keyStr)) return keyStr;\n else return $3ce198c99da0f55f$var$stringifyBasicString(keyStr);\n}\nfunction $3ce198c99da0f55f$var$stringifyBasicString(str) {\n return '\"' + $3ce198c99da0f55f$var$escapeString(str).replace(/\"/g, '\\\\\"') + '\"';\n}\nfunction $3ce198c99da0f55f$var$stringifyLiteralString(str) {\n return \"'\" + str + \"'\";\n}\nfunction $3ce198c99da0f55f$var$numpad(num, str) {\n while(str.length < num)str = \"0\" + str;\n return str;\n}\nfunction $3ce198c99da0f55f$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\" + $3ce198c99da0f55f$var$numpad(4, c.codePointAt(0).toString(16)));\n/* eslint-enable no-control-regex */ }\nfunction $3ce198c99da0f55f$var$stringifyMultilineString(str) {\n let escaped = str.split(/\\n/).map((str)=>{\n return $3ce198c99da0f55f$var$escapeString(str).replace(/\"(?=\"\")/g, '\\\\\"');\n }).join(\"\\n\");\n if (escaped.slice(-1) === '\"') escaped += \"\\\\\\n\";\n return '\"\"\"\\n' + escaped + '\"\"\"';\n}\nfunction $3ce198c99da0f55f$var$stringifyAnyInline(value, multilineOk) {\n let type = $3ce198c99da0f55f$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 $3ce198c99da0f55f$var$stringifyInline(value, type);\n}\nfunction $3ce198c99da0f55f$var$stringifyInline(value, type) {\n /* istanbul ignore if */ if (!type) type = $3ce198c99da0f55f$var$tomlType(value);\n switch(type){\n case \"string-multiline\":\n return $3ce198c99da0f55f$var$stringifyMultilineString(value);\n case \"string\":\n return $3ce198c99da0f55f$var$stringifyBasicString(value);\n case \"string-literal\":\n return $3ce198c99da0f55f$var$stringifyLiteralString(value);\n case \"integer\":\n return $3ce198c99da0f55f$var$stringifyInteger(value);\n case \"float\":\n return $3ce198c99da0f55f$var$stringifyFloat(value);\n case \"boolean\":\n return $3ce198c99da0f55f$var$stringifyBoolean(value);\n case \"datetime\":\n return $3ce198c99da0f55f$var$stringifyDatetime(value);\n case \"array\":\n return $3ce198c99da0f55f$var$stringifyInlineArray(value.filter((_)=>$3ce198c99da0f55f$var$tomlType(_) !== \"null\" && $3ce198c99da0f55f$var$tomlType(_) !== \"undefined\" && $3ce198c99da0f55f$var$tomlType(_) !== \"nan\"));\n case \"table\":\n return $3ce198c99da0f55f$var$stringifyInlineTable(value);\n /* istanbul ignore next */ default:\n throw $3ce198c99da0f55f$var$typeError(type);\n }\n}\nfunction $3ce198c99da0f55f$var$stringifyInteger(value) {\n /* eslint-disable security/detect-unsafe-regex */ return String(value).replace(/\\B(?=(\\d{3})+(?!\\d))/g, \"_\");\n}\nfunction $3ce198c99da0f55f$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 $3ce198c99da0f55f$var$stringifyInteger(int) + \".\" + dec;\n}\nfunction $3ce198c99da0f55f$var$stringifyBoolean(value) {\n return String(value);\n}\nfunction $3ce198c99da0f55f$var$stringifyDatetime(value) {\n return value.toISOString();\n}\nfunction $3ce198c99da0f55f$var$isNumber(type) {\n return type === \"float\" || type === \"integer\";\n}\nfunction $3ce198c99da0f55f$var$arrayType(values) {\n var contentType = $3ce198c99da0f55f$var$tomlType(values[0]);\n if (values.every((_)=>$3ce198c99da0f55f$var$tomlType(_) === contentType)) return contentType;\n // mixed integer/float, emit as floats\n if (values.every((_)=>$3ce198c99da0f55f$var$isNumber($3ce198c99da0f55f$var$tomlType(_)))) return \"float\";\n return \"mixed\";\n}\nfunction $3ce198c99da0f55f$var$validateArray(values) {\n const type = $3ce198c99da0f55f$var$arrayType(values);\n if (type === \"mixed\") throw $3ce198c99da0f55f$var$arrayOneTypeError();\n return type;\n}\nfunction $3ce198c99da0f55f$var$stringifyInlineArray(values) {\n values = $3ce198c99da0f55f$var$toJSON(values);\n const type = $3ce198c99da0f55f$var$validateArray(values);\n var result = \"[\";\n var stringified = values.map((_)=>$3ce198c99da0f55f$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 $3ce198c99da0f55f$var$stringifyInlineTable(value) {\n value = $3ce198c99da0f55f$var$toJSON(value);\n var result = [];\n Object.keys(value).forEach((key)=>{\n result.push($3ce198c99da0f55f$var$stringifyKey(key) + \" = \" + $3ce198c99da0f55f$var$stringifyAnyInline(value[key], false));\n });\n return \"{ \" + result.join(\", \") + (result.length > 0 ? \" \" : \"\") + \"}\";\n}\nfunction $3ce198c99da0f55f$var$stringifyComplex(prefix, indent, key, value) {\n var valueType = $3ce198c99da0f55f$var$tomlType(value);\n /* istanbul ignore else */ if (valueType === \"array\") return $3ce198c99da0f55f$var$stringifyArrayOfTables(prefix, indent, key, value);\n else if (valueType === \"table\") return $3ce198c99da0f55f$var$stringifyComplexTable(prefix, indent, key, value);\n else throw $3ce198c99da0f55f$var$typeError(valueType);\n}\nfunction $3ce198c99da0f55f$var$stringifyArrayOfTables(prefix, indent, key, values) {\n values = $3ce198c99da0f55f$var$toJSON(values);\n $3ce198c99da0f55f$var$validateArray(values);\n var firstValueType = $3ce198c99da0f55f$var$tomlType(values[0]);\n /* istanbul ignore if */ if (firstValueType !== \"table\") throw $3ce198c99da0f55f$var$typeError(firstValueType);\n var fullKey = prefix + $3ce198c99da0f55f$var$stringifyKey(key);\n var result = \"\";\n values.forEach((table)=>{\n if (result.length > 0) result += \"\\n\";\n result += indent + \"[[\" + fullKey + \"]]\\n\";\n result += $3ce198c99da0f55f$var$stringifyObject(fullKey + \".\", indent, table);\n });\n return result;\n}\nfunction $3ce198c99da0f55f$var$stringifyComplexTable(prefix, indent, key, value) {\n var fullKey = prefix + $3ce198c99da0f55f$var$stringifyKey(key);\n var result = \"\";\n if ($3ce198c99da0f55f$var$getInlineKeys(value).length > 0) result += indent + \"[\" + fullKey + \"]\\n\";\n return result + $3ce198c99da0f55f$var$stringifyObject(fullKey + \".\", indent, value);\n}\n\n});\n\n\n\n\n\nparcelRegister(\"90sLx\", function(module, exports) {\n\n$parcel$export(module.exports, \"useCpythonVersion\", () => $eb236b13816b0222$export$c90655100676e173);\n\n\n\nvar $1FYOu = parcelRequire(\"1FYOu\");\n\nvar $jrMr3 = parcelRequire(\"jrMr3\");\n\nvar $hlY4Y = parcelRequire(\"hlY4Y\");\n\nvar $9yJgU = parcelRequire(\"9yJgU\");\n\nvar $4ai2V = parcelRequire(\"4ai2V\");\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// <sys.prefix>/bin (by default /usr/local/bin, but not on hosted agents -- see the `else`)\n// (--user) ~/.local/bin\n// Windows:\n// <Python installation dir>\\Scripts\n// (--user) %APPDATA%\\Python\\PythonXY\\Scripts\n// See https://docs.python.org/3/library/sysconfig.html\nfunction $eb236b13816b0222$var$binDir(installDir) {\n if (0, $1FYOu.IS_WINDOWS) return $606tr$path.join(installDir, \"Scripts\");\n else return $606tr$path.join(installDir, \"bin\");\n}\nasync function $eb236b13816b0222$export$c90655100676e173(version, architecture, updateEnvironment, checkLatest, allowPreReleases) {\n let manifest = null;\n const desugaredVersionSpec = $eb236b13816b0222$var$desugarDevVersion(version);\n let semanticVersionSpec = $eb236b13816b0222$export$2630b06843feee21(desugaredVersionSpec, allowPreReleases);\n $9yJgU.debug(`Semantic version spec of ${version} is ${semanticVersionSpec}`);\n if (checkLatest) {\n manifest = await $hlY4Y.getManifest();\n const resolvedVersion = (await $hlY4Y.findReleaseFromManifest(semanticVersionSpec, architecture, manifest))?.version;\n if (resolvedVersion) {\n semanticVersionSpec = resolvedVersion;\n $9yJgU.info(`Resolved as '${semanticVersionSpec}'`);\n } else $9yJgU.info(`Failed to resolve version ${semanticVersionSpec} from manifest`);\n }\n let installDir = $4ai2V.find(\"Python\", semanticVersionSpec, architecture);\n if (!installDir) {\n $9yJgU.info(`Version ${semanticVersionSpec} was not found in the local cache`);\n const foundRelease = await $hlY4Y.findReleaseFromManifest(semanticVersionSpec, architecture, manifest);\n if (foundRelease && foundRelease.files && foundRelease.files.length > 0) {\n $9yJgU.info(`Version ${semanticVersionSpec} is available for downloading`);\n await $hlY4Y.installCpythonFromRelease(foundRelease);\n installDir = $4ai2V.find(\"Python\", semanticVersionSpec, architecture);\n }\n }\n if (!installDir) {\n const osInfo = await (0, $1FYOu.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: ${$hlY4Y.MANIFEST_URL}`\n ].join($606tr$os.EOL));\n }\n const _binDir = $eb236b13816b0222$var$binDir(installDir);\n const binaryExtension = (0, $1FYOu.IS_WINDOWS) ? \".exe\" : \"\";\n const pythonPath = $606tr$path.join((0, $1FYOu.IS_WINDOWS) ? installDir : _binDir, `python${binaryExtension}`);\n if (updateEnvironment) {\n $9yJgU.exportVariable(\"pythonLocation\", installDir);\n $9yJgU.exportVariable(\"PKG_CONFIG_PATH\", installDir + \"/lib/pkgconfig\");\n $9yJgU.exportVariable(\"pythonLocation\", installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython\n $9yJgU.exportVariable(\"Python_ROOT_DIR\", installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2\n $9yJgU.exportVariable(\"Python2_ROOT_DIR\", installDir);\n // https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3\n $9yJgU.exportVariable(\"Python3_ROOT_DIR\", installDir);\n $9yJgU.exportVariable(\"PKG_CONFIG_PATH\", installDir + \"/lib/pkgconfig\");\n if (0, $1FYOu.IS_LINUX) {\n const libPath = process.env.LD_LIBRARY_PATH ? `:${process.env.LD_LIBRARY_PATH}` : \"\";\n const pyLibPath = $606tr$path.join(installDir, \"lib\");\n if (!libPath.split(\":\").includes(pyLibPath)) $9yJgU.exportVariable(\"LD_LIBRARY_PATH\", pyLibPath + libPath);\n }\n $9yJgU.addPath(installDir);\n $9yJgU.addPath(_binDir);\n if (0, $1FYOu.IS_WINDOWS) {\n // Add --user directory\n // `installDir` from tool cache should look like $RUNNER_TOOL_CACHE/Python/<semantic version>/x64/\n // So if `findLocalTool` succeeded above, we must have a conformant `installDir`\n const version = $606tr$path.basename($606tr$path.dirname(installDir));\n const major = $jrMr3.major(version);\n const minor = $jrMr3.minor(version);\n const userScriptsDir = $606tr$path.join(process.env[\"APPDATA\"] || \"\", \"Python\", `Python${major}${minor}`, \"Scripts\");\n $9yJgU.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 = $eb236b13816b0222$var$versionFromPath(installDir);\n $9yJgU.setOutput(\"python-version\", installed);\n $9yJgU.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 $eb236b13816b0222$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 $eb236b13816b0222$var$versionFromPath(installDir) {\n const parts = installDir.split($606tr$path.sep);\n const idx = parts.findIndex((part)=>part === \"PyPy\" || part === \"Python\");\n return parts[idx + 1] || \"\";\n}\nfunction $eb236b13816b0222$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});\nparcelRegister(\"hlY4Y\", function(module, exports) {\n\n$parcel$export(module.exports, \"MANIFEST_URL\", () => $8351a77737674b26$export$f3182c5cb60bb857);\n$parcel$export(module.exports, \"findReleaseFromManifest\", () => $8351a77737674b26$export$45bea79befbd9a23);\n$parcel$export(module.exports, \"getManifest\", () => $8351a77737674b26$export$39e873de56f329d8);\n$parcel$export(module.exports, \"installCpythonFromRelease\", () => $8351a77737674b26$export$e1ffa7cd53152881);\n\n\nvar $9yJgU = parcelRequire(\"9yJgU\");\n\nvar $4ai2V = parcelRequire(\"4ai2V\");\n\nvar $jlr6Q = parcelRequire(\"jlr6Q\");\n\nvar $1FYOu = parcelRequire(\"1FYOu\");\nconst $8351a77737674b26$var$TOKEN = $9yJgU.getInput(\"token\");\nconst $8351a77737674b26$var$AUTH = !$8351a77737674b26$var$TOKEN ? undefined : `token ${$8351a77737674b26$var$TOKEN}`;\nconst $8351a77737674b26$var$MANIFEST_REPO_OWNER = \"actions\";\nconst $8351a77737674b26$var$MANIFEST_REPO_NAME = \"python-versions\";\nconst $8351a77737674b26$var$MANIFEST_REPO_BRANCH = \"main\";\nconst $8351a77737674b26$export$f3182c5cb60bb857 = `https://raw.githubusercontent.com/${$8351a77737674b26$var$MANIFEST_REPO_OWNER}/${$8351a77737674b26$var$MANIFEST_REPO_NAME}/${$8351a77737674b26$var$MANIFEST_REPO_BRANCH}/versions-manifest.json`;\nasync function $8351a77737674b26$export$45bea79befbd9a23(semanticVersionSpec, architecture, manifest) {\n if (!manifest) manifest = await $8351a77737674b26$export$39e873de56f329d8();\n const foundRelease = await $4ai2V.findFromManifest(semanticVersionSpec, false, manifest, architecture);\n return foundRelease;\n}\nfunction $8351a77737674b26$export$39e873de56f329d8() {\n $9yJgU.debug(`Getting manifest from ${$8351a77737674b26$var$MANIFEST_REPO_OWNER}/${$8351a77737674b26$var$MANIFEST_REPO_NAME}@${$8351a77737674b26$var$MANIFEST_REPO_BRANCH}`);\n return $4ai2V.getManifestFromRepo($8351a77737674b26$var$MANIFEST_REPO_OWNER, $8351a77737674b26$var$MANIFEST_REPO_NAME, $8351a77737674b26$var$AUTH, $8351a77737674b26$var$MANIFEST_REPO_BRANCH);\n}\nasync function $8351a77737674b26$var$installPython(workingDirectory) {\n const options = {\n cwd: workingDirectory,\n env: {\n ...process.env,\n ...(0, $1FYOu.IS_LINUX) && {\n LD_LIBRARY_PATH: $606tr$path.join(workingDirectory, \"lib\")\n }\n },\n silent: true,\n listeners: {\n stdout: (data)=>{\n $9yJgU.info(data.toString().trim());\n },\n stderr: (data)=>{\n $9yJgU.error(data.toString().trim());\n }\n }\n };\n if (0, $1FYOu.IS_WINDOWS) await $jlr6Q.exec(\"powershell\", [\n \"./setup.ps1\"\n ], options);\n else await $jlr6Q.exec(\"bash\", [\n \"./setup.sh\"\n ], options);\n}\nasync function $8351a77737674b26$export$e1ffa7cd53152881(release) {\n const downloadUrl = release.files[0].download_url;\n $9yJgU.info(`Download from \"${downloadUrl}\"`);\n let pythonPath = \"\";\n try {\n pythonPath = await $4ai2V.downloadTool(downloadUrl, undefined, $8351a77737674b26$var$AUTH);\n $9yJgU.info(\"Extract downloaded archive\");\n let pythonExtractedFolder;\n if (0, $1FYOu.IS_WINDOWS) pythonExtractedFolder = await $4ai2V.extractZip(pythonPath);\n else pythonExtractedFolder = await $4ai2V.extractTar(pythonPath);\n $9yJgU.info(\"Execute installation script\");\n await $8351a77737674b26$var$installPython(pythonExtractedFolder);\n } catch (err) {\n if (err instanceof $4ai2V.HTTPError) {\n // Rate limit?\n if (err.httpStatusCode === 403 || err.httpStatusCode === 429) $9yJgU.info(`Received HTTP status code ${err.httpStatusCode}. This usually indicates the rate limit has been exceeded`);\n else $9yJgU.info(err.message);\n if (err.stack) $9yJgU.debug(err.stack);\n }\n throw err;\n }\n}\n\n});\n\n\n\n\n//# sourceMappingURL=actions_python.60e051e1.js.map\n","import { findPyPyVersion } from \"setup-python/src/find-pypy.js\"\nimport { useCpythonVersion } from \"setup-python/src/find-python.js\"\n\nimport { debug } from \"@actions/core\"\nimport { GITHUB_ACTIONS } from \"ci-info\"\nimport { info, warning } from \"ci-log\"\nimport { pathExists } from \"path-exists\"\nimport { join } from \"patha\"\nimport { IS_MAC } from \"setup-python/src/utils.js\"\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 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<python-version>' or 'pypy-<python-version>'. 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<IPyPyManifestRelease[]>(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",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,"/* 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 '<toolcache_root>/PyPy/<python_version>/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 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// <sys.prefix>/bin (by default /usr/local/bin, but not on hosted agents -- see the `else`)\n// (--user) ~/.local/bin\n// Windows:\n// <Python installation dir>\\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<InstalledVersion> {\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/<semantic version>/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","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<tc.IToolRelease | undefined> {\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<tc.IToolRelease[]> {\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"],"mappings":"8mBCUA,QAAS,CAAAA,EAAcC,CAAmB,EACxC,MAAO,CAAAA,CAAA,CAAYC,UAAU,CAAC,OAChC,EAIO,cAAe,CAAAC,EAAmBF,CAAe,CAAEG,CAAiB,CAAEC,CAAY,EACnFC,CAAA,CAAAC,MAAA,GACFC,OAAA,CAAQC,GAAG,CAACC,oBAAoB,CAAG,+BADrC,EAIA,GAAM,CAAAC,CAAA,CAAuBH,OAAA,CAAQC,GAAG,CAACC,oBAAoB,EAAEE,IAAA,GAO/D,GANoC,UAAhC,MAAO,CAAAD,CAAA,EAAqC,EAAyB,GAAzBA,CAAA,GAC9CH,OAAA,CAAQC,GAAG,CAACI,iBAAiB,CAAGL,OAAA,CAAQC,GAAG,CAACC,oBAAoB,CAApB,CAG9C,GAAAI,CAAA,CAAAC,KAAI,EAAE,2CAA2CP,OAAA,CAAQC,GAAG,CAACI,iBAAiB,EAE1EZ,CAAA,CAAS,CACX,GAAI,CAAAG,CAAA,CACJ,GAAIJ,CAAA,CAAcC,CAAA,EAAU,CAC1B,GAAM,CAAAe,CAAA,CAAY,KAAM,GAAAC,CAAA,CAAAC,eAAc,EAAEjB,CAAA,CAASI,CAAA,CAAM,GAAMc,CAAA,CAAa,IAC1Ef,CAAA,CAAgB,GAAGY,CAAA,CAAUI,mBAAmB,IAAIJ,CAAA,CAAUK,qBAAqB,EAAE,CACrF,GAAAC,CAAA,CAAAC,IAAG,EAAE,4BAA4BP,CAAA,CAAUI,mBAAmB,iBAAiBJ,CAAA,CAAUK,qBAAqB,GAAG,CACnH,MAAO,CACL,GAAM,CAAAJ,CAAA,CAAY,KAAM,GAAAD,CAAA,CAAAQ,iBAAgB,EAAEvB,CAAA,CAASI,CAAA,CAAM,GAAMc,CAAA,CAAa,IAC5Ef,CAAA,CAA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