setup-cpp/dist/actions_python.33820791.js

175 lines
1.1 MiB
JavaScript
Raw Normal View History

function e(e){return e&&e.__esModule?e.default:e}function a(e,a,t,i){Object.defineProperty(e,a,{get:t,set:i,enumerable:!0,configurable:!0})}var t=require("fs"),i=require("path"),o=require("os"),s=require("util"),r=require("assert"),n=require("crypto"),p=require("url"),d=require("buffer"),l=require("stream"),m=require("http"),c=require("https"),u=require("punycode"),h=require("zlib"),g=require("events"),f=require("timers"),y=require("string_decoder"),v=require("child_process"),b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},x=b.parcelRequire810d;x.register("apy8x",((o,s)=>{async function r(a,o,s){var r;if((null===(r=process.env.AGENT_TOOLSDIRECTORY)||void 0===r?void 0:r.trim())?(l.debug("Python is expected to be installed into AGENT_TOOLSDIRECTORY="+process.env.AGENT_TOOLSDIRECTORY),process.env.RUNNER_TOOL_CACHE=process.env.AGENT_TOOLSDIRECTORY):l.debug("Python is expected to be installed into RUNNER_TOOL_CACHE=="+process.env.RUNNER_TOOL_CACHE),a){let e;if(a.startsWith("pypy-")){const t=await p.findPyPyVersion(a,s);e=`${t.resolvedPyPyVersion}-${t.resolvedPythonVersion}`,d.info(`Successfully setup PyPy ${t.resolvedPyPyVersion} with Python (${t.resolvedPythonVersion})`)}else{const t=await n.useCpythonVersion(a,s);e=t.version,d.info(`Successfully setup ${t.impl} (${e})`)}const t="pip";await c.cacheDependencies(t,e)}m.isGitHubCI()&&(()=>{const a=e(i).join(__dirname,"python_matcher.json");if(!t.existsSync(a))return d.warning("the python_matcher.json file does not exist in the same folder as setup_cpp.js");d.info("::add-matcher::"+a)})()}a(o.exports,"setupActionsPython",(()=>r));var n=x("kuiAY"),p=x("aqDyC"),d=x("ditiY"),l=x("9bqVn"),m=x("di6NI"),c=x("hWk6h")})),x.register("kuiAY",((e,t)=>{async function s(e,a){const t=((s=e).endsWith("-dev")?`>= ${s.slice(0,-4)}.0-a0`:s).replace(/(\d+\.\d+\.\d+)((?:a|b|rc)\d*)/g,"$1-$2");var s;d.debug(`Semantic version spec of ${e} is ${t}`);let m=l.find("Python",t,a);if(!m){d.info(`Version ${t} was not found in the local cache`);const e=await p.findReleaseFromManifest(t,a);e&&e.files&&e.files.length>0&&(d.info(`Version ${t} is available for downloading`),await p.installCpythonFromRelease(e),m=l.find("Python",t,a))}if(!m)throw Error([`Version ${e} with arch ${a} not found`,"The list of all available versions can be found here: "+p.MANIFEST_URL].join(o.EOL));if(d.exportVariable("pythonLocation",m),r.IS_LINUX){const e=process.env.LD_LIBRARY_PATH?":"+process.env.LD_LIBRARY_PATH:"",a=i.join(m,"lib");e.split(":").includes(a)||d.exportVariable("LD_LIBRARY_PATH",a+e)}if(d.addPath(m),d.addPath((e=>i.join(e,r.IS_WINDOWS?"Scripts":"bin"))(m)),r.IS_WINDOWS){const e=i.basename(i.dirname(m)),a=n.major(e),t=n.minor(e),o=i.join(process.env.APPDATA||"","Python",`Python${a}${t}`,"Scripts");d.addPath(o)}const c=(e=>{const a=e.split(i.sep),t=a.findIndex((e=>"PyPy"===e||"Python"===e));return a[t+1]||""})(m);return d.setOutput("python-version",c),{impl:"CPython",version:c}}a(e.exports,"useCpythonVersion",(()=>s));var r=x("3Mp5H"),n=x("4URNm"),p=x("hS2PU"),d=x("9bqVn"),l=x("1GQ3N")})),x.register("3Mp5H",((o,s)=>{function r(a,o,s,r=!1){const n=i.join(a,o),p=i.join(a,s);e(t).existsSync(p)||(e(t).symlinkSync(n,p),!v&&r&&e(t).chmodSync(p,"755"))}function n(e){return p(e)||!!y.validRange(e)}function p(e){return"nightly"===e}function d(e){return i.basename(i.dirname(e))}function l(a){let o="",s=i.join(a,k);return e(t).existsSync(s)&&(o=""+e(t).readFileSync(s)),o}function m(a,o){const s=i.join(a,k);e(t).writeFileSync(s,o)}function c(e){return/^\d+\.\d+$/.test(e)}function u(){return"GITHUB.COM"!==new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.toUpperCase()}function h(){if(!g.isFeatureAvailable()){if(u())throw Error("Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.");return f.warning("The runner was not able to contact the cache service. Caching will be skipped"),!1}return!0}a(o.exports,"IS_W
2022-04-25 07:47:52 +08:00
/*!
* Copyright (c) 2018, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/a(e.exports,"getPublicSuffix",(()=>i),(e=>i=e));var o=x("dActJ");i=e=>o.get(e)})),x.register("dActJ",((e,t)=>{var i,o,s;a(e.exports,"errorCodes",(()=>i),(e=>i=e)),a(e.exports,"parse",(()=>o),(e=>o=e)),a(e.exports,"get",(()=>s),(e=>s=e));var r={};r.rules=x("zV8Zk").map((e=>({rule:e,suffix:e.replace(/^(\*\.|\!)/,""),punySuffix:-1,wildcard:"*"===e.charAt(0),exception:"!"===e.charAt(0)}))),r.endsWith=(e,a)=>-1!==e.indexOf(a,e.length-a.length),r.findRule=e=>{var a=u.toASCII(e);return r.rules.reduce(((e,t)=>(-1===t.punySuffix&&(t.punySuffix=u.toASCII(t.suffix)),r.endsWith(a,"."+t.punySuffix)||a===t.punySuffix?t:e)),null)},i={DOMAIN_TOO_SHORT:"Domain name too short.",DOMAIN_TOO_LONG:"Domain name too long. It should be no more than 255 chars.",LABEL_STARTS_WITH_DASH:"Domain name label can not start with a dash.",LABEL_ENDS_WITH_DASH:"Domain name label can not end with a dash.",LABEL_TOO_LONG:"Domain name label should be at most 63 chars long.",LABEL_TOO_SHORT:"Domain name label should be at least 1 character long.",LABEL_INVALID_CHARS:"Domain name label can only contain alphanumeric characters or dashes."},r.validate=e=>{var a=u.toASCII(e);if(1>a.length)return"DOMAIN_TOO_SHORT";if(a.length>255)return"DOMAIN_TOO_LONG";for(var t,i=a.split("."),o=0;i.length>o;++o){if(!(t=i[o]).length)return"LABEL_TOO_SHORT";if(t.length>63)return"LABEL_TOO_LONG";if("-"===t.charAt(0))return"LABEL_STARTS_WITH_DASH";if("-"===t.charAt(t.length-1))return"LABEL_ENDS_WITH_DASH";if(!/^[a-z0-9\-]+$/.test(t))return"LABEL_INVALID_CHARS"}},o=e=>{if("string"!=typeof e)throw new TypeError("Domain name must be a string.");var a=e.slice(0).toLowerCase();"."===a.charAt(a.length-1)&&(a=a.slice(0,a.length-1));var t=r.validate(a);if(t)return{input:e,error:{message:i[t],code:t}};var o={input:e,tld:null,sld:null,domain:null,subdomain:null,listed:!1},s=a.split(".");if("local"===s[s.length-1])return o;var n=()=>/xn--/.test(a)?(o.domain&&(o.domain=u.toASCII(o.domain)),o.subdomain&&(o.subdomain=u.toASCII(o.subdomain)),o):o,p=r.findRule(a);if(!p)return 2>s.length?o:(o.tld=s.pop(),o.sld=s.pop(),o.domain=[o.sld,o.tld].join("."),s.length&&(o.subdomain=s.pop()),n());o.listed=!0;var d=p.suffix.split("."),l=s.slice(0,s.length-d.length);return p.exception&&l.push(d.shift()),o.tld=d.join("."),l.length?(p.wildcard&&(d.unshift(l.pop()),o.tld=d.join(".")),l.length?(o.sld=l.pop(),o.domain=[o.sld,o.tld].join("."),l.length&&(o.subdomain=l.join(".")),n()):n()):n()},s=e=>e&&o(e).domain||null})),x.register("zV8Zk",((e,a)=>{e.exports=JSON.parse('["ac","com.ac","edu.ac","gov.ac","net.ac","mil.ac","org.ac","ad","nom.ad","ae","co.ae","net.ae","org.ae","sch.ae","ac.ae","gov.ae","mil.ae","aero","accident-investigation.aero","accident-prevention.aero","aerobatic.aero","aeroclub.aero","aerodrome.aero","agents.aero","aircraft.aero","airline.aero","airport.aero","air-surveillance.aero","airtraffic.aero","air-traffic-control.aero","ambulance.aero","amusement.aero","association.aero","author.aero","ballooning.aero","broker.aero","caa.aero","cargo.aero","catering.aero","certification.aero","championship.aero","charter.aero","civilaviation.aero","club.aero","conference.aero","consultant.aero","consulting.aero","control.aero","council.aero","crew.aero","design.aero","dgca.aero","educator.aero","emergency.aero","engine.aero","engineer.aero","entertainment.aero","equipment.aero","exchange.aero","express.aero","federation.aero","flight.aero","freight.aero","fuel.aero","gliding.aero","government.aero","groundhandling.aero","group.aero","hanggliding.aero","homebuilt.aero","insurance.aero","journal.aero","journalist.aero","leasing.aero","logistics.aero","magazine.aero","maintenance.aero","media.aero","microlight.aero","modelling.aero","navigation.aero","parachuting.aero","paragliding.aero","passenger-association.aero","pilot.aero","press.aero","production.aero","recreation.aero","repbody.aero","res.aero","research.aero","rotorcraft.aero","safety.aero","scientist.aero","services.aero","show.aero","skydiving.aero","software.aero","student.aero","trader.aero","trading.aero","trainer.aero","union.aero","workinggr
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/a(e.exports,"Store",(()=>i),(e=>i=e)),i=class{constructor(){this.synchronous=!1}findCookie(e,a,t,i){throw Error("findCookie is not implemented")}findCookies(e,a,t,i){throw Error("findCookies is not implemented")}putCookie(e,a){throw Error("putCookie is not implemented")}updateCookie(e,a,t){throw Error("updateCookie is not implemented")}removeCookie(e,a,t,i){throw Error("removeCookie is not implemented")}removeCookies(e,a,t){throw Error("removeCookies is not implemented")}removeAllCookies(e){throw Error("removeAllCookies is not implemented")}getAllCookies(e){throw Error("getAllCookies is not implemented (therefore jar cannot be serialized)")}}})),x.register("hzODz",(function(e,t){var i;
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/a(e.exports,"MemoryCookieStore",(()=>i),(e=>i=e));var o=x("lfC4P").fromCallback,r=x("5uYWw").Store,n=x("ietmq").permuteDomain,p=x("9jzur").pathMatch;class d extends r{constructor(){super(),this.synchronous=!0,this.idx={},s.inspect.custom&&(this[s.inspect.custom]=this.inspect)}inspect(){return`{ idx: ${s.inspect(this.idx,!1,2)} }`}findCookie(e,a,t,i){return i(null,this.idx[e]&&this.idx[e][a]?this.idx[e][a][t]||null:void 0)}findCookies(e,a,t,i){const o=[];if("function"==typeof t&&(i=t,t=!1),!e)return i(null,[]);let s;s=a?e=>{Object.keys(e).forEach((t=>{if(p(a,t)){const a=e[t];for(const e in a)o.push(a[e])}}))}:e=>{for(const a in e){const t=e[a];for(const e in t)o.push(t[e])}};const r=n(e,t)||[e],d=this.idx;r.forEach((e=>{const a=d[e];a&&s(a)})),i(null,o)}putCookie(e,a){this.idx[e.domain]||(this.idx[e.domain]={}),this.idx[e.domain][e.path]||(this.idx[e.domain][e.path]={}),this.idx[e.domain][e.path][e.key]=e,a(null)}updateCookie(e,a,t){this.putCookie(a,t)}removeCookie(e,a,t,i){this.idx[e]&&this.idx[e][a]&&this.idx[e][a][t]&&delete this.idx[e][a][t],i(null)}removeCookies(e,a,t){return this.idx[e]&&(a?delete this.idx[e][a]:delete this.idx[e]),t(null)}removeAllCookies(e){return this.idx={},e(null)}getAllCookies(e){const a=[],t=this.idx;Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((i=>{Object.keys(t[e][i]).forEach((o=>{null!==o&&a.push(t[e][i][o])}))}))})),a.sort(((e,a)=>(e.creationIndex||0)-(a.creationIndex||0))),e(null,a)}}["findCookie","findCookies","putCookie","updateCookie","removeCookie","removeCookies","removeAllCookies","getAllCookies"].forEach((e=>{d[e]=o(d.prototype[e])})),i=d})),x.register("lfC4P",(function(e,t){var i;a(e.exports,"fromCallback",(()=>i),(e=>i=e)),i=function(e){return Object.defineProperty((function(){if("function"!=typeof arguments[arguments.length-1])return new Promise(((a,t)=>{arguments[arguments.length]=(e,i)=>{if(e)return t(e);a(i)},arguments.length++,e.apply(this,arguments)}));e.apply(this,arguments)}),"name",{value:e.name})}})),x.register("ietmq",((e,t)=>{var i;
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/a(e.exports,"permuteDomain",(()=>i),(e=>i=e));var o=x("idafc");const s=["local"];i=(e,a)=>{let t=null;if(a){const a=e.split(".");t=s.includes(a[a.length-1])?`${a[a.length-2]}.${a[a.length-1]}`:o.getPublicSuffix(e)}else t=o.getPublicSuffix(e);if(!t)return null;if(t==e)return[e];const i=e.slice(0,-(t.length+1)).split(".").reverse();let r=t;const n=[r];for(;i.length;)r=`${i.shift()}.${r}`,n.push(r);return n}})),x.register("9jzur",((e,t)=>{var i;
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/a(e.exports,"pathMatch",(()=>i),(e=>i=e)),i=(e,a)=>{if(a===e)return!0;if(0===e.indexOf(a)){if("/"===a.substr(-1))return!0;if("/"===e.substr(a.length,1))return!0}return!1}})),x.register("4tULG",((e,a)=>{e.exports="4.0.0"})),x.register("59zlC",(function(e,t){a(e.exports,"AbortError",(()=>s)),a(e.exports,"AbortController",(()=>r));var i=x("5xiYB"),o=x("kyVya"),s=function(e){function a(a){var t=e.call(this,a)||this;return t.name="AbortError",t}return i.__extends(a,e),a}(Error),r=function(){function e(e){var a=this;if(this._signal=new o.AbortSignal,e){Array.isArray(e)||(e=arguments);for(var t=0,i=e;i.length>t;t++){var s=i[t];s.aborted?this.abort():s.addEventListener("abort",(()=>{a.abort()}))}}}return Object.defineProperty(e.prototype,"signal",{get(){return this._signal},enumerable:!1,configurable:!0}),e.prototype.abort=function(){o.abortSignal(this._signal)},e.timeout=e=>{var a=new o.AbortSignal,t=setTimeout(o.abortSignal,e,a);return"function"==typeof t.unref&&t.unref(),a},e}()})),x.register("5xiYB",(function(e,t){function i(e,a){function t(){this.constructor=e}if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+a+" is not a constructor or null");d(e,a),e.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}function o(e,a){var t={};for(var i in e)({}).hasOwnProperty.call(e,i)&&0>a.indexOf(i)&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);i.length>o;o++)0>a.indexOf(i[o])&&{}.propertyIsEnumerable.call(e,i[o])&&(t[i[o]]=e[i[o]])}return t}function s(e){return this instanceof s?(this.v=e,this):new s(e)}function r(e,a,t){function i(e){l[e]&&(d[e]=a=>new Promise(((t,i)=>{m.push([e,a,t,i])>1||o(e,a)})))}function o(e,a){try{(t=l[e](a)).value instanceof s?Promise.resolve(t.value.v).then(r,n):p(m[0][2],t)}catch(e){p(m[0][3],e)}var t}function r(e){o("next",e)}function n(e){o("throw",e)}function p(e,a){e(a),m.shift(),m.length&&o(m[0][0],m[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d,l=t.apply(e,a||[]),m=[];return d={},i("next"),i("throw"),i("return"),d[Symbol.asyncIterator]=function(){return this},d}function n(e){function a(a,o){t[a]=e[a]?t=>(i=!i)?{value:s(e[a](t)),done:"return"===a}:o?o(t):t:o}var t,i;return t={},a("next"),a("throw",(e=>{throw e})),a("return"),t[Symbol.iterator]=function(){return this},t}function p(e){function a(a){t[a]=e[a]&&(t=>new Promise(((i,o)=>{((e,a,t,i)=>{Promise.resolve(i).then((a=>{e({value:a,done:t})}),a)})(i,o,(t=e[a](t)).done,t.value)})))}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=(e=>{var a="function"==typeof Symbol&&Symbol.iterator,t=a&&e[a],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:()=>(e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e})};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")})(e),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t)}a(e.exports,"__extends",(()=>i)),a(e.exports,"__rest",(()=>o)),a(e.exports,"__await",(()=>s)),a(e.exports,"__asyncGenerator",(()=>r)),a(e.exports,"__asyncDelegator",(()=>n)),a(e.exports,"__asyncValues",(()=>p));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var d=(e,a)=>(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&((e,a)=>{e.__proto__=a})||((e,a)=>{for(var t in a)({}).hasOwnProperty.call(a,t)&&(e[t]=a[t])}))(e,a)})),x.register("kyVya",(function(e,t){function i(e){if(!e.aborted){e.onabort&&e.onabort.call(e);var a=o.get(e);a&&a.slice().forEach((a=>{a.call(e,{type:"abort"})})),s.set(e,!0)}}a(e.exports,"AbortSignal",(()=>r)),a(e.exports,"abortSignal",(()=>i));var o=new WeakMap,s=new WeakMap,r=function(){function e(){this.onabort=null,o.set(this,[]),s.set(this,!1)}return Object.defineProperty(e.prototype,"aborted",{get(){if(!s.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return s.get(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"none",{get(){return new e},enumerable:!1,configurable:!0}),e.prototype.addEventListener=function(e,a){if(!o.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");o.get(this).push(a)},e.prototype.removeEventListener=function(e,a){if(!o.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");var t=o.get(this),i=t.indexOf(a);i>-1&&t.splice(i,1)},e.prototype.dispatchEvent=e=>{throw Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")},e}()})),x.register("byrNI",(function(e,t){function i(e){return e.toLowerCase()}function o(e){if(e&&"object"==typeof e){const a=e;if("function"==typeof a.rawHeaders&&"function"==typeof a.clone&&"function"==typeof a.get&&"function"==typeof a.set&&"function"==typeof a.contains&&"function"==typeof a.remove&&"function"==typeof a.headersArray&&"function"==typeof a.headerValues&&"function"==typeof a.headerNames&&"function"==typeof a.toJson)return!0}return!1}a(e.exports,"isHttpHeadersLike",(()=>o)),a(e.exports,"HttpHeaders",(()=>s));class s{constructor(e){if(this._headersMap={},e)for(const a in e)this.set(a,e[a])}set(e,a){this._headersMap[i(e)]={name:e,value:""+a}}get(e){const a=this._headersMap[i(e)];return a?a.value:void 0}contains(e){return!!this._headersMap[i(e)]}remove(e){const a=this.contains(e);return delete this._headersMap[i(e)],a}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){const e=[];for(const a in this._headersMap)e.push(this._headersMap[a]);return e}headerNames(){const e=[],a=this.headersArray();for(let t=0;a.length>t;++t)e.push(a[t].name);return e}headerValues(){const e=[],a=this.headersArray();for(let t=0;a.length>t;++t)e.push(a[t].value);return e}toJson(e={}){const a={};if(e.preserveCase)for(const e in this._headersMap){const t=this._headersMap[e];a[t.name]=t.value}else for(const e in this._headersMap){const t=this._headersMap[e];a[i(t.name)]=t.value}return a}toString(){return JSON.stringify(this.toJson({preserveCase:!0}))}clone(){const e={};for(const a in this._headersMap){const t=this._headersMap[a];e[t.name]=t.value}return new s(e)}}})),x.register("3U0Ji",((e,t)=>{function i(e,a,t){const i=n.URLBuilder.parse(a.host).getHost();if(!i)throw Error("Expecting a non-empty host in proxy settings.");if(0>(r=a.port)||r>65535)throw Error("Expecting a valid port number in the range of [0, 65535] in proxy settings.");var r;const p={proxy:{host:i,port:a.port,headers:t&&t.rawHeaders()||{}}};a.username&&a.password?p.proxy.proxyAuth=`${a.username}:${a.password}`:a.username&&(p.proxy.proxyAuth=""+a.username);const d=o(e);return{isHttps:d,agent:s(d,o(a.host),p)}}function o(e){return"https"===(n.URLBuilder.parse(e).getScheme()||"").toLowerCase()}function s(e,a,t){return e&&a?r.httpsOverHttps(t):e&&!a?r.httpsOverHttp(t):!e&&a?r.httpOverHttps(t):r.httpOverHttp(t)}a(e.exports,"createProxyAgent",(()=>i)),a(e.exports,"isUrlHttps",(()=>o));var r=x("bbp3j"),n=x("bYrjQ")})),x.register("bYrjQ",(function(e,t){function i(e){return e._textLength>e._currentIndex}function o(e){return e._text[e._currentIndex]}function s(e,a){i(e)&&(a||(a=1),e._currentIndex+=a)}function r(e,a){let t=e._currentIndex+a;return t>e._textLength&&(t=e._textLength),e._text.substring(e
/*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*/
e.exports=x("kzsjR")})),x.register("kzsjR",((e,a)=>{e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"sourc
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||(T=String.fromCharCode,P=Math.floor,E=function(){var e=16384,a=[],t=-1,i=arguments.length;if(!i)return"";for(var o="";++t<i;){var s=+arguments[t];if(!isFinite(s)||0>s||s>1114111||P(s)!==s)throw RangeError("Invalid code point: "+s);s>65535?a.push(55296+((s-=65536)>>10),s%1024+56320):a.push(s),(t+1===i||a.length>e)&&(o+=T.apply(null,a),a.length=0)}return o},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:E,configurable:!0,writable:!0}):String.fromCodePoint=E)}(e.exports)})),x.register("fnVPo",((e,a)=>{e.exports.stripBOM=e=>"\ufeff"===e[0]?e.substring(1):e})),x.register("jkc2i",((e,a)=>{e.exports.normalize=e=>e.toLowerCase(),e.exports.firstCharLowerCase=e=>e.charAt(0).toLowerCase()+e.slice(1),e.exports.stripPrefix=e=>e.replace(/(?!xmlns)^.*:/,""),e.exports.parseNumbers=e=>(isNaN(e)||(e=e%1==0?parseInt(e,10):parseFloat(e)),e),e.exports.parseBooleans=e=>(/^(?:true|false)$/i.test(e)&&(e="true"===e.toLowerCase()),e)})),x.register("8lMuU",(function(e,t){function i(e){return{create(a,t){return new r(a,t,e||s)}}}a(e.exports,"DefaultKeepAliveOptions",(()=>s)),a(e.exports,"keepAlivePolicy",(()=>i));var o=x("fryde");const s={enable:!0};class r extends o.BaseRequestPolicy{constructor(e,a,t){super(e,a),this.keepAliveOptions=t}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}}})),x.register("iYYAq",(function(e,t){function i(e=20){return{create(a,t){return new d(a,t,e)}}}function o(e,a,t){const{request:i,status:s}=a,p=a.headers.get("location");if(p&&(300===s||301===s&&n.includes(i.method)||302===s&&n.includes(i.method)||303===s&&"POST"===i.method||307===s)&&(!e.maxRetries||e.maxRetries>t)){const a=r.URLBuilder.parse(i.url);return a.setPath(p),i.url=""+a,303===s&&(i.method="GET",delete i.body),e._nextPolicy.sendRequest(i).then((a=>o(e,a,t+1)))}return Promise.resolve(a)}a(e.exports,"DefaultRedirectOptions",(()=>p)),a(e.exports,"redirectPolicy",(()=>i));var s=x("fryde"),r=x("bYrjQ");const n=["GET","HEAD"],p={handleRedirects:!0,maxRetries:20};class d extends s.BaseRequestPolicy{constructor(e,a,t=20){super(e,a),this.maxRetries=t}sendRequest(e){return this._nextPolicy.sendRequest(e).then((e=>o(this,e,0)))}}})),x.register("iTNqI",(function(e,t){function i(e,a,t){return{create(i,o){return new u(i,o,e,a,t)}}}async function o(e,a,t,i,s){i=n.updateRetryData({retryInterval:e.retryInterval,minRetryInterval:0,maxRetryInterval:e.maxRetryInterval},i,s);const r=a.abortSignal&&a.abortSignal.aborted;if(r||!n.shouldRetry(e.retryCount,(e=>{const a=null==e?void 0:e.status;return!(503===a&&(null==t?void 0:t.headers.get(p.Constants.HeaderConstants.RETRY_AFTER))||void 0===a||500>a&&408!==a||501===a||505===a)}),i,t)){if(r||s||!t)throw i.error||new d.RestError("Failed to send the request.",d.RestError.REQUEST_SEND_ERROR,t&&t.status,t&&t.request,t);return t}m.logger.info("Retrying request in "+i.retryInterval);try{await l.delay(i.retryInterval);const t=await e._nextPolicy.sendRequest(a.clone());return o(e,a,t,i)}catch(s){return o(e,a,t,i,s)}}a(e.exports,"exponentialRetryPolicy",(()=>i)),a(e.exports,"DefaultRetryOptions",(()=>c));var s,r=x("fryde"),n=x("ddTsZ"),p=x("2jM6P"),d=x("dQQg9"),l=x("lrtqG"),m=x("jd9Np");(e=>{e[e.Exponential=0]="Exponential"})(s||(s={}));const c={maxRetries:n.DEFAULT_CLIENT_RETRY_COUNT,retryDelayInMs:n.DEFAULT_CLIENT_RETRY_INTERVAL,maxRetryDelayInMs:n.DEFAULT_CLIENT_MAX_RETRY_INTERVAL};class u extends r.BaseRequestPolicy{constructor(e,a,t,i,o){super(e,a),this.retryCount=n.isNumber(t)?t:n.DEFAULT_CLIENT_RETRY_COUNT,this.retryInterval=n.isNumber(i)?i:n.DEFAULT_CLIENT_RETRY_INTERVAL,this.maxRetryInterval=n.isNumber(o)?o:n.DEFAULT_CLIENT_MAX_RETRY_INTERVAL}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then((a=>o(this,e,a))).catch((a=>o(this,e,a.response,void 0,a)))}}})),x.register("ddTsZ",((e,t)=>{function i(e){return"number"==typeof e}function o(e,a,t,i,o){return!!a(i,o)&&e>t.retryCount}function s(e,a={retryCount:0,retryInterval:0},t){t&&(a.error&&(t.innerError=a.error),a.erro
//# sourceMappingURL=actions_python.33820791.js.map