From c02f5b1c19eca1ec9f10094f17582b6b05b869c6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 00:50:37 +0000 Subject: [PATCH 1/2] fix: apply audit fixes --- dist/main/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/main/index.js b/dist/main/index.js index a454971..f9ec146 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={7351:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const o=i(s(2037));const r=s(5278);function issueCommand(e,t,s){const n=new Command(e,t,s);process.stdout.write(n.toString()+o.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const a="::";class Command{constructor(e,t,s){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=s}toString(){let e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const s in this.properties){if(this.properties.hasOwnProperty(s)){const n=this.properties[s];if(n){if(t){t=false}else{e+=","}e+=`${s}=${escapeProperty(n)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function escapeData(e){return(0,r.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(0,r.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.platform=t.toPlatformPath=t.toWin32Path=t.toPosixPath=t.markdownSummary=t.summary=t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const r=s(7351);const a=s(717);const c=s(5278);const l=i(s(2037));const u=i(s(1017));const p=s(8041);var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d||(t.ExitCode=d={}));function exportVariable(e,t){const s=(0,c.toCommandValue)(t);process.env[e]=s;const n=process.env["GITHUB_ENV"]||"";if(n){return(0,a.issueFileCommand)("ENV",(0,a.prepareKeyValueMessage)(e,t))}(0,r.issueCommand)("set-env",{name:e},s)}t.exportVariable=exportVariable;function setSecret(e){(0,r.issueCommand)("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){(0,a.issueFileCommand)("PATH",e)}else{(0,r.issueCommand)("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const s=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!s){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return s}return s.trim()}t.getInput=getInput;function getMultilineInput(e,t){const s=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return s}return s.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const s=["true","True","TRUE"];const n=["false","False","FALSE"];const A=getInput(e,t);if(s.includes(A))return true;if(n.includes(A))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const s=process.env["GITHUB_OUTPUT"]||"";if(s){return(0,a.issueFileCommand)("OUTPUT",(0,a.prepareKeyValueMessage)(e,t))}process.stdout.write(l.EOL);(0,r.issueCommand)("set-output",{name:e},(0,c.toCommandValue)(t))}t.setOutput=setOutput;function setCommandEcho(e){(0,r.issue)("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=d.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){(0,r.issueCommand)("debug",{},e)}t.debug=debug;function error(e,t={}){(0,r.issueCommand)("error",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){(0,r.issueCommand)("warning",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){(0,r.issueCommand)("notice",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){(0,r.issue)("group",e)}t.startGroup=startGroup;function endGroup(){(0,r.issue)("endgroup")}t.endGroup=endGroup;function group(e,t){return o(this,void 0,void 0,(function*(){startGroup(e);let s;try{s=yield t()}finally{endGroup()}return s}))}t.group=group;function saveState(e,t){const s=process.env["GITHUB_STATE"]||"";if(s){return(0,a.issueFileCommand)("STATE",(0,a.prepareKeyValueMessage)(e,t))}(0,r.issueCommand)("save-state",{name:e},(0,c.toCommandValue)(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield p.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=s(1327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var h=s(1327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return h.markdownSummary}});var f=s(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return f.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return f.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return f.toPlatformPath}});t.platform=i(s(5243))},717:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const o=i(s(6113));const r=i(s(7147));const a=i(s(2037));const c=s(5278);function issueFileCommand(e,t){const s=process.env[`GITHUB_${e}`];if(!s){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!r.existsSync(s)){throw new Error(`Missing file at path: ${s}`)}r.appendFileSync(s,`${(0,c.toCommandValue)(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const s=`ghadelimiter_${o.randomUUID()}`;const n=(0,c.toCommandValue)(t);if(e.includes(s)){throw new Error(`Unexpected input: name should not contain the delimiter "${s}"`)}if(n.includes(s)){throw new Error(`Unexpected input: value should not contain the delimiter "${s}"`)}return`${e}<<${s}${a.EOL}${n}${a.EOL}${s}`}t.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,t,s){"use strict";var n=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const A=s(6255);const i=s(5526);const o=s(2186);class OidcClient{static createHttpClient(e=true,t=10){const s={allowRetries:e,maxRetries:t};return new A.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(OidcClient.getRequestToken())],s)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const s=OidcClient.createHttpClient();const n=yield s.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const A=(t=n.result)===null||t===void 0?void 0:t.value;if(!A){throw new Error("Response json body do not have ID Token field")}return A}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const s=encodeURIComponent(e);t=`${t}&audience=${s}`}(0,o.debug)(`ID token url is ${t}`);const s=yield OidcClient.getCall(t);(0,o.setSecret)(s);return s}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const o=i(s(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,o.sep)}t.toPlatformPath=toPlatformPath},5243:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getDetails=t.isLinux=t.isMacOS=t.isWindows=t.arch=t.platform=void 0;const a=r(s(2037));const c=i(s(1514));const getWindowsInfo=()=>o(void 0,void 0,void 0,(function*(){const{stdout:e}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>o(void 0,void 0,void 0,(function*(){var e,t,s,n;const{stdout:A}=yield c.getExecOutput("sw_vers",undefined,{silent:true});const i=(t=(e=A.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const o=(n=(s=A.match(/ProductName:\s*(.+)/))===null||s===void 0?void 0:s[1])!==null&&n!==void 0?n:"";return{name:o,version:i}}));const getLinuxInfo=()=>o(void 0,void 0,void 0,(function*(){const{stdout:e}=yield c.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,s]=e.trim().split("\n");return{name:t,version:s}}));t.platform=a.default.platform();t.arch=a.default.arch();t.isWindows=t.platform==="win32";t.isMacOS=t.platform==="darwin";t.isLinux=t.platform==="linux";function getDetails(){return o(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield t.isWindows?getWindowsInfo():t.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:t.platform,arch:t.arch,isWindows:t.isWindows,isMacOS:t.isMacOS,isLinux:t.isLinux})}))}t.getDetails=getDetails},1327:function(e,t,s){"use strict";var n=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const A=s(2037);const i=s(7147);const{access:o,appendFile:r,writeFile:a}=i.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return n(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield o(e,i.constants.R_OK|i.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,s={}){const n=Object.entries(s).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return n(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const s=yield this.filePath();const n=t?a:r;yield n(s,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return n(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(A.EOL)}addCodeBlock(e,t){const s=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(n).addEOL()}addList(e,t=false){const s=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const A=this.wrap(s,n);return this.addRaw(A).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:s,colspan:n,rowspan:A}=e;const i=t?"th":"td";const o=Object.assign(Object.assign({},n&&{colspan:n}),A&&{rowspan:A});return this.wrap(i,s,o)})).join("");return this.wrap("tr",t)})).join("");const s=this.wrap("table",t);return this.addRaw(s).addEOL()}addDetails(e,t){const s=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(s).addEOL()}addImage(e,t,s){const{width:n,height:A}=s||{};const i=Object.assign(Object.assign({},n&&{width:n}),A&&{height:A});const o=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(o).addEOL()}addHeading(e,t){const s=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1";const A=this.wrap(n,e);return this.addRaw(A).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const s=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,s);return this.addRaw(n).addEOL()}addLink(e,t){const s=this.wrap("a",e,{href:t});return this.addRaw(s).addEOL()}}const c=new Summary;t.markdownSummary=c;t.summary=c},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},1514:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[s]}})}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const r=s(1576);const a=i(s(8159));function exec(e,t,s){return o(this,void 0,void 0,(function*(){const n=a.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const A=n[0];t=n.slice(1).concat(t||[]);const i=new a.ToolRunner(A,t,s);return i.exec()}))}t.exec=exec;function getExecOutput(e,t,s){var n,A;return o(this,void 0,void 0,(function*(){let i="";let o="";const a=new r.StringDecoder("utf8");const c=new r.StringDecoder("utf8");const l=(n=s===null||s===void 0?void 0:s.listeners)===null||n===void 0?void 0:n.stdout;const u=(A=s===null||s===void 0?void 0:s.listeners)===null||A===void 0?void 0:A.stderr;const stdErrListener=e=>{o+=c.write(e);if(u){u(e)}};const stdOutListener=e=>{i+=a.write(e);if(l){l(e)}};const p=Object.assign(Object.assign({},s===null||s===void 0?void 0:s.listeners),{stdout:stdOutListener,stderr:stdErrListener});const d=yield exec(e,t,Object.assign(Object.assign({},s),{listeners:p}));i+=a.end();o+=c.end();return{exitCode:d,stdout:i,stderr:o}}))}t.getExecOutput=getExecOutput},8159:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[s]}})}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const r=i(s(2037));const a=i(s(2361));const c=i(s(2081));const l=i(s(1017));const u=i(s(7436));const p=i(s(1962));const d=s(9512);const g=process.platform==="win32";class ToolRunner extends a.EventEmitter{constructor(e,t,s){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=s||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const s=this._getSpawnFileName();const n=this._getSpawnArgs(e);let A=t?"":"[command]";if(g){if(this._isCmdFile()){A+=s;for(const e of n){A+=` ${e}`}}else if(e.windowsVerbatimArguments){A+=`"${s}"`;for(const e of n){A+=` ${e}`}}else{A+=this._windowsQuoteCmdArg(s);for(const e of n){A+=` ${this._windowsQuoteCmdArg(e)}`}}}else{A+=s;for(const e of n){A+=` ${e}`}}return A}_processLineBuffer(e,t,s){try{let n=t+e.toString();let A=n.indexOf(r.EOL);while(A>-1){const e=n.substring(0,A);s(e);n=n.substring(A+r.EOL.length);A=n.indexOf(r.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(g){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(g){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const s of this.args){t+=" ";t+=e.windowsVerbatimArguments?s:this._windowsQuoteCmdArg(s)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let s=false;for(const n of e){if(t.some((e=>e===n))){s=true;break}}if(!s){return e}let n='"';let A=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(A&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){A=true;n+='"'}else{A=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let s=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(s&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){s=true;t+="\\"}else{s=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const s={};s.cwd=e.cwd;s.env=e.env;s["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){s.argv0=`"${t}"`}return s}exec(){return o(this,void 0,void 0,(function*(){if(!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||g&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield u.which(this.toolPath,true);return new Promise(((e,t)=>o(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const s=this._cloneExecOptions(this.options);if(!s.silent&&s.outStream){s.outStream.write(this._getCommandString(s)+r.EOL)}const n=new ExecState(s,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield p.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const A=this._getSpawnFileName();const i=c.spawn(A,this._getSpawnArgs(s),this._getSpawnOptions(this.options,A));let o="";if(i.stdout){i.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!s.silent&&s.outStream){s.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let a="";if(i.stderr){i.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!s.silent&&s.errStream&&s.outStream){const t=s.failOnStdErr?s.errStream:s.outStream;t.write(e)}a=this._processLineBuffer(e,a,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}i.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));i.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));i.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((s,n)=>{if(o.length>0){this.emit("stdline",o)}if(a.length>0){this.emit("errline",a)}i.removeAllListeners();if(s){t(s)}else{e(n)}}));if(this.options.input){if(!i.stdin){throw new Error("child process missing stdin")}i.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let s=false;let n=false;let A="";function append(e){if(n&&e!=='"'){A+="\\"}A+=e;n=false}for(let i=0;i0){t.push(A);A=""}continue}append(o)}if(A.length>0){t.push(A.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends a.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=d.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},5526:function(e,t){"use strict";var s=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return s(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return s(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return s(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const r=i(s(3685));const a=i(s(5687));const c=i(s(9835));const l=i(s(4294));const u=s(1773);var p;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(p||(t.HttpCodes=p={}));var d;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(d||(t.Headers=d={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g||(t.MediaTypes=g={}));function getProxyUrl(e){const t=c.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[p.MovedPermanently,p.ResourceMoved,p.SeeOther,p.TemporaryRedirect,p.PermanentRedirect];const f=[p.BadGateway,p.ServiceUnavailable,p.GatewayTimeout];const E=["OPTIONS","GET","DELETE","HEAD"];const C=10;const Q=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,s){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=s;if(s){if(s.ignoreSslError!=null){this._ignoreSslError=s.ignoreSslError}this._socketTimeout=s.socketTimeout;if(s.allowRedirects!=null){this._allowRedirects=s.allowRedirects}if(s.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=s.allowRedirectDowngrade}if(s.maxRedirects!=null){this._maxRedirects=Math.max(s.maxRedirects,0)}if(s.keepAlive!=null){this._keepAlive=s.keepAlive}if(s.allowRetries!=null){this._allowRetries=s.allowRetries}if(s.maxRetries!=null){this._maxRetries=s.maxRetries}}}options(e,t){return o(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return o(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return o(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,s){return o(this,void 0,void 0,(function*(){return this.request("POST",e,t,s||{})}))}patch(e,t,s){return o(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,s||{})}))}put(e,t,s){return o(this,void 0,void 0,(function*(){return this.request("PUT",e,t,s||{})}))}head(e,t){return o(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,s,n){return o(this,void 0,void 0,(function*(){return this.request(e,t,s,n)}))}getJson(e,t={}){return o(this,void 0,void 0,(function*(){t[d.Accept]=this._getExistingOrDefaultHeader(t,d.Accept,g.ApplicationJson);const s=yield this.get(e,t);return this._processResponse(s,this.requestOptions)}))}postJson(e,t,s={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);s[d.Accept]=this._getExistingOrDefaultHeader(s,d.Accept,g.ApplicationJson);s[d.ContentType]=this._getExistingOrDefaultHeader(s,d.ContentType,g.ApplicationJson);const A=yield this.post(e,n,s);return this._processResponse(A,this.requestOptions)}))}putJson(e,t,s={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);s[d.Accept]=this._getExistingOrDefaultHeader(s,d.Accept,g.ApplicationJson);s[d.ContentType]=this._getExistingOrDefaultHeader(s,d.ContentType,g.ApplicationJson);const A=yield this.put(e,n,s);return this._processResponse(A,this.requestOptions)}))}patchJson(e,t,s={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);s[d.Accept]=this._getExistingOrDefaultHeader(s,d.Accept,g.ApplicationJson);s[d.ContentType]=this._getExistingOrDefaultHeader(s,d.ContentType,g.ApplicationJson);const A=yield this.patch(e,n,s);return this._processResponse(A,this.requestOptions)}))}request(e,t,s,n){return o(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const A=new URL(t);let i=this._prepareRequest(e,A,n);const o=this._allowRetries&&E.includes(e)?this._maxRetries+1:1;let r=0;let a;do{a=yield this.requestRaw(i,s);if(a&&a.message&&a.message.statusCode===p.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(a)){e=t;break}}if(e){return e.handleAuthentication(this,i,s)}else{return a}}let t=this._maxRedirects;while(a.message.statusCode&&h.includes(a.message.statusCode)&&this._allowRedirects&&t>0){const o=a.message.headers["location"];if(!o){break}const r=new URL(o);if(A.protocol==="https:"&&A.protocol!==r.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.")}yield a.readBody();if(r.hostname!==A.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}i=this._prepareRequest(e,r,n);a=yield this.requestRaw(i,s);t--}if(!a.message.statusCode||!f.includes(a.message.statusCode)){return a}r+=1;if(r{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{s(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,s){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;s(e,t)}}const A=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let i;A.on("socket",(e=>{i=e}));A.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));A.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){A.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){A.end()}));t.pipe(A)}else{A.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const s=c.getProxyUrl(t);const n=s&&s.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,s)}_prepareRequest(e,t,s){const n={};n.parsedUrl=t;const A=n.parsedUrl.protocol==="https:";n.httpModule=A?a:r;const i=A?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(s);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,s){let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||s}_getAgent(e){let t;const s=c.getProxyUrl(e);const n=s&&s.hostname;if(this._keepAlive&&n){t=this._proxyAgent}if(!n){t=this._agent}if(t){return t}const A=e.protocol==="https:";let i=100;if(this.requestOptions){i=this.requestOptions.maxSockets||r.globalAgent.maxSockets}if(s&&s.hostname){const e={maxSockets:i,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`}),{host:s.hostname,port:s.port})};let n;const o=s.protocol==="https:";if(A){n=o?l.httpsOverHttps:l.httpsOverHttp}else{n=o?l.httpOverHttps:l.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=A?new a.Agent(e):new r.Agent(e);this._agent=t}if(A&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let s;if(this._keepAlive){s=this._proxyAgentDispatcher}if(s){return s}const n=e.protocol==="https:";s=new u.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=s;if(n&&this._ignoreSslError){s.options=Object.assign(s.options.requestTls||{},{rejectUnauthorized:false})}return s}_performExponentialBackoff(e){return o(this,void 0,void 0,(function*(){e=Math.min(C,e);const t=Q*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return o(this,void 0,void 0,(function*(){return new Promise(((s,n)=>o(this,void 0,void 0,(function*(){const A=e.message.statusCode||0;const i={statusCode:A,result:null,headers:{}};if(A===p.NotFound){s(i)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let o;let r;try{r=yield e.readBody();if(r&&r.length>0){if(t&&t.deserializeDates){o=JSON.parse(r,dateTimeDeserializer)}else{o=JSON.parse(r)}i.result=o}i.headers=e.message.headers}catch(e){}if(A>299){let e;if(o&&o.message){e=o.message}else if(r&&r.length>0){e=r}else{e=`Failed request: (${A})`}const t=new HttpClientError(e,A);t.result=i.result;n(t)}else{s(i)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,s)=>(t[s.toLowerCase()]=e[s],t)),{})},9835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const s=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(s){try{return new DecodedURL(s)}catch(e){if(!s.startsWith("http://")&&!s.startsWith("https://"))return new DecodedURL(`http://${s}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const s=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!s){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const A=[e.hostname.toUpperCase()];if(typeof n==="number"){A.push(`${A[0]}:${n}`)}for(const e of s.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||A.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},1962:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[s]}})}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var r;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const a=i(s(7147));const c=i(s(1017));r=a.promises,t.chmod=r.chmod,t.copyFile=r.copyFile,t.lstat=r.lstat,t.mkdir=r.mkdir,t.open=r.open,t.readdir=r.readdir,t.readlink=r.readlink,t.rename=r.rename,t.rm=r.rm,t.rmdir=r.rmdir,t.stat=r.stat,t.symlink=r.symlink,t.unlink=r.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=a.constants.O_RDONLY;function exists(e){return o(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,s=false){return o(this,void 0,void 0,(function*(){const n=s?yield t.stat(e):yield t.lstat(e);return n.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,s){return o(this,void 0,void 0,(function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=c.extname(e).toUpperCase();if(s.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(n)){return e}}}const A=e;for(const i of s){e=A+i;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const s=c.dirname(e);const n=c.basename(e).toUpperCase();for(const A of yield t.readdir(s)){if(n===A.toUpperCase()){e=c.join(s,A);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[s]}})}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const r=s(9491);const a=i(s(1017));const c=i(s(1962));function cp(e,t,s={}){return o(this,void 0,void 0,(function*(){const{force:n,recursive:A,copySourceDirectory:i}=readCopyOptions(s);const o=(yield c.exists(t))?yield c.stat(t):null;if(o&&o.isFile()&&!n){return}const r=o&&o.isDirectory()&&i?a.join(t,a.basename(e)):t;if(!(yield c.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield c.stat(e);if(l.isDirectory()){if(!A){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,r,0,n)}}else{if(a.relative(e,r)===""){throw new Error(`'${r}' and '${e}' are the same file`)}yield copyFile(e,r,n)}}))}t.cp=cp;function mv(e,t,s={}){return o(this,void 0,void 0,(function*(){if(yield c.exists(t)){let n=true;if(yield c.isDirectory(t)){t=a.join(t,a.basename(e));n=yield c.exists(t)}if(n){if(s.force==null||s.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(a.dirname(t));yield c.rename(e,t)}))}t.mv=mv;function rmRF(e){return o(this,void 0,void 0,(function*(){if(c.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield c.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return o(this,void 0,void 0,(function*(){r.ok(e,"a path argument must be provided");yield c.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(c.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const s=yield findInPath(e);if(s&&s.length>0){return s[0]}return""}))}t.which=which;function findInPath(e){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(c.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(a.delimiter)){if(e){t.push(e)}}}if(c.isRooted(e)){const s=yield c.tryGetExecutablePath(e,t);if(s){return[s]}return[]}if(e.includes(a.sep)){return[]}const s=[];if(process.env.PATH){for(const e of process.env.PATH.split(a.delimiter)){if(e){s.push(e)}}}const n=[];for(const A of s){const s=yield c.tryGetExecutablePath(a.join(A,e),t);if(s){n.push(s)}}return n}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const s=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:s,copySourceDirectory:n}}function cpDirRecursive(e,t,s,n){return o(this,void 0,void 0,(function*(){if(s>=255)return;s++;yield mkdirP(t);const A=yield c.readdir(e);for(const i of A){const A=`${e}/${i}`;const o=`${t}/${i}`;const r=yield c.lstat(A);if(r.isDirectory()){yield cpDirRecursive(A,o,s,n)}else{yield copyFile(A,o,n)}}yield c.chmod(t,(yield c.stat(e)).mode)}))}function copyFile(e,t,s){return o(this,void 0,void 0,(function*(){if((yield c.lstat(e)).isSymbolicLink()){try{yield c.lstat(t);yield c.unlink(t)}catch(e){if(e.code==="EPERM"){yield c.chmod(t,"0666");yield c.unlink(t)}}const s=yield c.readlink(e);yield c.symlink(s,t,c.IS_WINDOWS?"junction":null)}else if(!(yield c.exists(t))||s){yield c.copyFile(e,t)}}))}},308:(e,t,s)=>{(()=>{"use strict";var t={9081:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseCredential=parseCredential;t.isServiceAccountKey=isServiceAccountKey;t.isExternalAccount=isExternalAccount;const n=s(3916);const A=s(6266);function parseCredential(e){e=(e||"").trim();if(!e){throw new Error(`Missing service account key JSON (got empty value)`)}if(!e.startsWith("{")){e=(0,A.fromBase64)(e)}try{const t=JSON.parse(e);return t}catch(e){const t=(0,n.errorMessage)(e);throw new SyntaxError(`Failed to parse service account key JSON credentials: ${t}`)}}function isServiceAccountKey(e){return e.type==="service_account"}function isExternalAccount(e){return e.type!=="external_account"}t["default"]={parseCredential:parseCredential,isServiceAccountKey:isServiceAccountKey,isExternalAccount:isExternalAccount}},3214:function(e,t,s){var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s))t[t.length]=s;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s=ownKeys(e),i=0;i{Object.defineProperty(t,"__esModule",{value:true});t.parseCSV=parseCSV;t.parseMultilineCSV=parseMultilineCSV;function parseCSV(e){e=(e||"").trim();if(!e){return[]}const t=e.split(/(?{Object.defineProperty(t,"__esModule",{value:true});t.toBase64=toBase64;t.fromBase64=fromBase64;function toBase64(e){return Buffer.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function fromBase64(e,t){if(!t){t="utf8"}let s=e.replace(/-/g,"+").replace(/_/g,"/");while(s.length%4)s+="=";return Buffer.from(s,"base64").toString(t)}},3466:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toEnum=toEnum;function toEnum(e,t){const s=(t||"").toUpperCase();const n=s.replace(/[\s-]+/g,"_");if(s in e){return e[s]}else if(n in e){return e[n]}else{const s=Object.keys(e);throw new Error(`Invalid value ${t}, valid values are ${JSON.stringify(s)}`)}}},8204:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.stubEnv=stubEnv;function stubEnv(e,t=process.env){const s={};for(const n in e){s[n]=t[n];if(e[n]!==undefined){t[n]=e[n]}else{delete t[n]}}return()=>{for(const e in s){if(s[e]!==undefined){t[e]=s[e]}else{delete t[e]}}}}},3916:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.errorMessage=errorMessage;t.isNotFoundError=isNotFoundError;function errorMessage(e){let t;if(e===null){t="null"}else if(e===undefined||typeof e==="undefined"){t="undefined"}else if(typeof e==="bigint"||e instanceof BigInt){t=e.toString()}else if(typeof e==="boolean"||e instanceof Boolean){t=e.toString()}else if(e instanceof Error){t=e.message}else if(typeof e==="function"||e instanceof Function){t=errorMessage(e())}else if(typeof e==="number"||e instanceof Number){t=e.toString()}else if(typeof e==="string"||e instanceof String){t=e.toString()}else if(typeof e==="symbol"||e instanceof Symbol){t=e.toString()}else if(typeof e==="object"||e instanceof Object){t=JSON.stringify(e)}else{t=String(`[${typeof e}] ${e}`)}const s=t.trim().replace("Error: ","").trim();if(!s)return"";if(s.length>1&&isUpper(s[0])&&!isUpper(s[1])){return s[0].toLowerCase()+s.slice(1)}return s}function isNotFoundError(e){const t=errorMessage(e);return t.toUpperCase().includes("ENOENT")}function isUpper(e){return e===e.toUpperCase()}},6148:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseFlags=parseFlags;t.readUntil=readUntil;function parseFlags(e){const t=[];let s="";let n=false;for(let A=0;Ae.trim()))}catch(e){if(!(0,o.isNotFoundError)(e)){throw e}}for(let e=0;ee.trim()));s.splice(e,1,...a);e+=a.length}}return s}))}function shouldKeepIgnoreLine(e){const t=(e||"").trim();if(t===""){return false}if(t.startsWith("#")&&!t.startsWith("#!")){return false}return true}},9407:function(e,t,s){var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__exportStar||function(e,t){for(var s in e)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(t,s))n(t,e,s)};Object.defineProperty(t,"__esModule",{value:true});A(s(9081),t);A(s(3214),t);A(s(731),t);A(s(6266),t);A(s(3466),t);A(s(8204),t);A(s(3916),t);A(s(6148),t);A(s(4772),t);A(s(7237),t);A(s(3599),t);A(s(4958),t);A(s(3716),t);A(s(7384),t);A(s(436),t);A(s(9809),t);A(s(8935),t);A(s(9834),t);A(s(6244),t);A(s(5215),t);A(s(286),t)},3599:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseBoolean=parseBoolean;const s={1:true,t:true,T:true,true:true,True:true,TRUE:true,0:false,f:false,F:false,false:false,False:false,FALSE:false};function parseBoolean(e,t=false){const n=(e||"").trim();if(n===""){return t}if(!(n in s)){throw new Error(`invalid boolean value "${n}"`)}return s[n]}},4958:function(e,t,s){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.joinKVString=joinKVString;t.joinKVStringForGCloud=joinKVStringForGCloud;t.parseKVString=parseKVString;t.parseKVFile=parseKVFile;t.parseKVJSON=parseKVJSON;t.parseKVYAML=parseKVYAML;t.parseKVStringAndFile=parseKVStringAndFile;const A=n(s(8815));const i=s(9896);const o=s(3916);const r=s(5215);function joinKVString(e,t=","){return Object.entries(e).map((([e,t])=>`${e}=${t}`)).join(t)}function joinKVStringForGCloud(e,t=",.!@#$%&*()_=+~`[]{}|:;<>?🚀🍪🐼​"){const s=joinKVString(e,"");if(s===""){return""}const n={};for(let e=0;es+=e;const setValue=e=>n+=e;let i=setKey;for(let o=0;o=0){i(r);A=-1}else if(r==="\\"){A=o}else if(r==="="){if(s===""){throw new Error(`Invalid start sequence for value (no preceeding key before "=") at ${o}`)}if(i===setValue){i(r)}i=setValue}else if(r==="\n"||r==="\r"||r==="\u2028"||r==="\u2029"||r===","){if(s!==""){t[s.trim()]=n.trim()}s="";n="";i=setKey}else{i(r)}}if(A>=0){throw new Error(`Unterminated escape character at ${A}`)}if(s!==""){t[s.trim()]=n.trim()}return t}function parseKVFile(e){try{const t=(0,r.presence)((0,i.readFileSync)(e,"utf8"));if(!t||t.length<1){return undefined}if(t[0]==="{"||t[0]==="["){return parseKVJSON(t)}if(t.match(/^.+=.+/gi)){return parseKVString(t)}return parseKVYAML(t)}catch(t){const s=(0,o.errorMessage)(t);throw new Error(`Failed to read file '${e}': ${s}`)}}function parseKVJSON(e){e=(e||"").trim();if(!e){return undefined}if(e==="{}"){return{}}try{const t=JSON.parse(e);const s={};for(const[e,n]of Object.entries(t)){if(typeof e!=="string"){throw new SyntaxError(`Failed to parse key "${e}", expected string, got ${typeof e}`)}if(e.trim()===""){throw new SyntaxError(`Failed to parse key "${e}", expected at least one character`)}if(typeof n!=="string"){const t=JSON.stringify(n);throw new SyntaxError(`Failed to parse value "${t}" for "${e}", expected string, got ${typeof n}`)}if(n.trim()===""){throw new SyntaxError(`Value for key "${e}" cannot be empty (got "${n}")`)}s[e]=n}return s}catch(e){const t=(0,o.errorMessage)(e);throw new Error(`Failed to parse KV pairs as JSON: ${t}`)}}function parseKVYAML(e){const t=(e||"").trim();if(!t){return undefined}if(t==="{}"){return{}}const s=A.default.parse(e);const n={};for(const[e,t]of Object.entries(s)){if(typeof e!=="string"||typeof t!=="string"){throw new SyntaxError(`env_vars_file must contain only KEY: VALUE strings. Error parsing key ${e} of type ${typeof e} with value ${t} of type ${typeof t}`)}n[e.trim()]=t.trim()}return n}function parseKVStringAndFile(e,t){e=(e||"").trim();t=(t||"").trim();const s=t?parseKVFile(t):undefined;const n=e?parseKVString(e):undefined;if(s===undefined&&n===undefined){return undefined}return Object.assign({},s,n)}},3716:function(e,t,s){var n=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var A=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],s;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),s={},verb("next"),verb("throw"),verb("return"),s[Symbol.asyncIterator]=function(){return this},s);function verb(t){s[t]=e[t]&&function(s){return new Promise((function(n,A){s=e[t](s),settle(n,A,s.done,s.value)}))}}function settle(e,t,s,n){Promise.resolve(n).then((function(t){e({value:t,done:s})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.inParallel=inParallel;const i=s(857);const o=s(3916);function inParallel(e,t){return n(this,void 0,void 0,(function*(){t=Math.min(t||(0,i.cpus)().length-1);if(t<1){throw new Error(`concurrency must be at least 1`)}const s=[];const r=[];const runTasks=e=>n(this,void 0,void 0,(function*(){var t,n,i;var a,c,l,u;try{for(t=true,n=A(e);i=yield n.next(),a=i.done,!a;t=true){u=i.value;t=false;const[e,n]=u;try{s[e]=yield n()}catch(e){r.push((0,o.errorMessage)(e))}}}catch(e){c={error:e}}finally{try{if(!t&&!a&&(l=n.return))yield l.call(n)}finally{if(c)throw c.error}}}));const a=new Array(t).fill(e.entries()).map(runTasks);yield Promise.allSettled(a);if(r.length>0){throw new Error(r.join("\n"))}return s}))}},7384:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:true});t.toPosixPath=toPosixPath;t.toWin32Path=toWin32Path;t.toPlatformPath=toPlatformPath;const n=s(6928);function toPosixPath(e){return e.replace(/[\\]/g,"/")}function toWin32Path(e){return e.replace(/[/]/g,"\\")}function toPlatformPath(e){return e.replace(/[/\\]/g,n.sep)}},436:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:true});t.randomFilename=randomFilename;t.randomFilepath=randomFilepath;const n=s(6928);const A=s(6982);const i=s(857);function randomFilename(e=12){return(0,A.randomBytes)(e).toString("hex")}function randomFilepath(e=(0,i.tmpdir)(),t=12){return(0,n.join)(e,randomFilename(t))}t["default"]={randomFilename:randomFilename,randomFilepath:randomFilepath}},9809:function(e,t,s){var n=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.withRetries=withRetries;const A=s(3916);const i=s(9834);const o=100;function withRetries(e,t){var s;const r=t.retries;const a=typeof(t===null||t===void 0?void 0:t.backoffLimit)!=="undefined"?Math.max(t.backoffLimit,0):undefined;let c=(s=t.backoff)!==null&&s!==void 0?s:o;if(typeof a!=="undefined"){c=Math.min(c,a)}return function(){return n(this,void 0,void 0,(function*(){let s=r+1;let n=c;const o=a;let l=0;let u="unknown";do{try{return yield e()}catch(e){u=(0,A.errorMessage)(e);--s;if(s>0){yield(0,i.sleep)(n);let e=l+n;if(typeof o!=="undefined"){e=Math.min(e,Number(o))}l=n;n=e}}}while(s>0);const p=t.retries+1;const d=p===1?`1 attempt`:`${p} attempts`;throw new Error(`retry function failed after ${d}: ${u}`)}))}}},8935:function(e,t,s){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.setInput=setInput;t.setInputs=setInputs;t.clearInputs=clearInputs;t.clearEnv=clearEnv;t.skipIfMissingEnv=skipIfMissingEnv;t.assertMembers=assertMembers;const A=n(s(4589));function setInput(e,t){const s=`INPUT_${e.replace(/ /g,"_").toUpperCase()}`;process.env[s]=t}function setInputs(e){Object.entries(e).forEach((([e,t])=>setInput(e,t)))}function clearInputs(){clearEnv((e=>e.startsWith(`INPUT_`)))}function clearEnv(e){Object.keys(process.env).forEach((t=>{if(e(t,process.env[t])){delete process.env[t]}}))}function skipIfMissingEnv(...e){for(const t of e){if(!(t in process.env)){return`missing $${t}`}}return false}function assertMembers(e,t){for(let s=0;s<=e.length-t.length;s++){let n=true;for(let A=0;AsetTimeout(t,e)))}))}},6244:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.expandUniverseEndpoints=expandUniverseEndpoints;function expandUniverseEndpoints(e,t="googleapis.com"){const s=Object.assign({});for(const n in e){const A=`GHA_ENDPOINT_OVERRIDE_${n}`;const i=process.env[A];if(i&&i!==""){s[n]=i.replace(/\/+$/,"")}else{s[n]=e[n].replace(/{universe}/g,t).replace(/\/+$/,"")}}return s}},5215:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.presence=presence;t.exactlyOneOf=exactlyOneOf;t.allOf=allOf;function presence(e){return(e||"").trim()||undefined}function exactlyOneOf(...e){e=e||[];let t=false;for(let s=0;s{Object.defineProperty(t,"__esModule",{value:true});t.isPinnedToHead=isPinnedToHead;t.pinnedToHeadWarning=pinnedToHeadWarning;function isPinnedToHead(){const e=process.env.GITHUB_ACTION_REF;return e==="master"||e==="main"}function pinnedToHeadWarning(e){const t=process.env.GITHUB_ACTION_REF;const s=process.env.GITHUB_ACTION_REPOSITORY;return`${s} is pinned at "${t}". We strongly advise against `+`pinning to "@${t}" as it may be unstable. Please update your `+`GitHub Action YAML from:\n`+`\n`+` uses: '${s}@${t}'\n`+`\n`+`to:\n`+`\n`+` uses: '${s}@${e}'\n`+`\n`+`Alternatively, you can pin to any git tag or git SHA in the repository.`}},6982:e=>{e.exports=s(6113)},9896:e=>{e.exports=s(7147)},4589:e=>{e.exports=s(8061)},4573:e=>{e.exports=s(2254)},1708:e=>{e.exports=s(7742)},857:e=>{e.exports=s(2037)},6928:e=>{e.exports=s(1017)},1493:e=>{e.exports=s(4655)},7349:(e,t,s)=>{var n=s(1127);var A=s(3301);var i=s(4454);var o=s(2223);var r=s(7103);var a=s(334);var c=s(3142);function resolveCollection(e,t,s,n,A,i){const o=s.type==="block-map"?r.resolveBlockMap(e,t,s,n,i):s.type==="block-seq"?a.resolveBlockSeq(e,t,s,n,i):c.resolveFlowCollection(e,t,s,n,i);const l=o.constructor;if(A==="!"||A===l.tagName){o.tag=l.tagName;return o}if(A)o.tag=A;return o}function composeCollection(e,t,s,r,a){const c=r.tag;const l=!c?null:t.directives.tagName(c.source,(e=>a(c,"TAG_RESOLVE_FAILED",e)));if(s.type==="block-seq"){const{anchor:e,newlineAfterProp:t}=r;const s=e&&c?e.offset>c.offset?e:c:e??c;if(s&&(!t||t.offsete.tag===l&&e.collection===u));if(!p){const n=t.schema.knownTags[l];if(n&&n.collection===u){t.schema.tags.push(Object.assign({},n,{default:false}));p=n}else{if(n){a(c,"BAD_COLLECTION_TYPE",`${n.tag} used for ${u} collection, but expects ${n.collection??"scalar"}`,true)}else{a(c,"TAG_RESOLVE_FAILED",`Unresolved tag: ${l}`,true)}return resolveCollection(e,t,s,a,l)}}const d=resolveCollection(e,t,s,a,l,p);const g=p.resolve?.(d,(e=>a(c,"TAG_RESOLVE_FAILED",e)),t.options)??d;const h=n.isNode(g)?g:new A.Scalar(g);h.range=d.range;h.tag=l;if(p?.format)h.format=p.format;return h}t.composeCollection=composeCollection},3683:(e,t,s)=>{var n=s(3021);var A=s(5937);var i=s(7788);var o=s(4631);function composeDoc(e,t,{offset:s,start:r,value:a,end:c},l){const u=Object.assign({_directives:t},e);const p=new n.Document(undefined,u);const d={atKey:false,atRoot:true,directives:p.directives,options:p.options,schema:p.schema};const g=o.resolveProps(r,{indicator:"doc-start",next:a??c?.[0],offset:s,onError:l,parentIndent:0,startOnNewline:true});if(g.found){p.directives.docStart=true;if(a&&(a.type==="block-map"||a.type==="block-seq")&&!g.hasNewline)l(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}p.contents=a?A.composeNode(d,a,g,l):A.composeEmptyNode(d,g.end,r,null,g,l);const h=p.contents.range[2];const f=i.resolveEnd(c,h,false,l);if(f.comment)p.comment=f.comment;p.range=[s,h,f.offset];return p}t.composeDoc=composeDoc},5937:(e,t,s)=>{var n=s(4065);var A=s(1127);var i=s(7349);var o=s(5413);var r=s(7788);var a=s(2599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,s,n){const r=e.atKey;const{spaceBefore:a,comment:l,anchor:u,tag:p}=s;let d;let g=true;switch(t.type){case"alias":d=composeAlias(e,t,n);if(u||p)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":d=o.composeScalar(e,t,p,n);if(u)d.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":d=i.composeCollection(c,e,t,s,n);if(u)d.anchor=u.source.substring(1);break;default:{const A=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",A);d=composeEmptyNode(e,t.offset,undefined,null,s,n);g=false}}if(u&&d.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(r&&e.options.stringKeys&&(!A.isScalar(d)||typeof d.value!=="string"||d.tag&&d.tag!=="tag:yaml.org,2002:str")){const e="With stringKeys, all keys must be strings";n(p??t,"NON_STRING_KEY",e)}if(a)d.spaceBefore=true;if(l){if(t.type==="scalar"&&t.source==="")d.comment=l;else d.commentBefore=l}if(e.options.keepSourceTokens&&g)d.srcToken=t;return d}function composeEmptyNode(e,t,s,n,{spaceBefore:A,comment:i,anchor:r,tag:c,end:l},u){const p={type:"scalar",offset:a.emptyScalarPosition(t,s,n),indent:-1,source:""};const d=o.composeScalar(e,p,c,u);if(r){d.anchor=r.source.substring(1);if(d.anchor==="")u(r,"BAD_ALIAS","Anchor cannot be an empty string")}if(A)d.spaceBefore=true;if(i){d.comment=i;d.range[2]=l}return d}function composeAlias({options:e},{offset:t,source:s,end:A},i){const o=new n.Alias(s.substring(1));if(o.source==="")i(t,"BAD_ALIAS","Alias cannot be an empty string");if(o.source.endsWith(":"))i(t+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const a=t+s.length;const c=r.resolveEnd(A,a,e.strict,i);o.range=[t,a,c.offset];if(c.comment)o.comment=c.comment;return o}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,s)=>{var n=s(1127);var A=s(3301);var i=s(8913);var o=s(6842);function composeScalar(e,t,s,r){const{value:a,type:c,comment:l,range:u}=t.type==="block-scalar"?i.resolveBlockScalar(e,t,r):o.resolveFlowScalar(t,e.options.strict,r);const p=s?e.directives.tagName(s.source,(e=>r(s,"TAG_RESOLVE_FAILED",e))):null;let d;if(e.options.stringKeys&&e.atKey){d=e.schema[n.SCALAR]}else if(p)d=findScalarTagByName(e.schema,a,p,s,r);else if(t.type==="scalar")d=findScalarTagByTest(e,a,t,r);else d=e.schema[n.SCALAR];let g;try{const i=d.resolve(a,(e=>r(s??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(i)?i:new A.Scalar(i)}catch(e){const n=e instanceof Error?e.message:String(e);r(s??t,"TAG_RESOLVE_FAILED",n);g=new A.Scalar(a)}g.range=u;g.source=a;if(c)g.type=c;if(p)g.tag=p;if(d.format)g.format=d.format;if(l)g.comment=l;return g}function findScalarTagByName(e,t,s,A,i){if(s==="!")return e[n.SCALAR];const o=[];for(const t of e.tags){if(!t.collection&&t.tag===s){if(t.default&&t.test)o.push(t);else return t}}for(const e of o)if(e.test?.test(t))return e;const r=e.knownTags[s];if(r&&!r.collection){e.tags.push(Object.assign({},r,{default:false,test:undefined}));return r}i(A,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,s!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({atKey:e,directives:t,schema:s},A,i,o){const r=s.tags.find((t=>(t.default===true||e&&t.default==="key")&&t.test?.test(A)))||s[n.SCALAR];if(s.compat){const e=s.compat.find((e=>e.default&&e.test?.test(A)))??s[n.SCALAR];if(r.tag!==e.tag){const s=t.tagString(r.tag);const n=t.tagString(e.tag);const A=`Value may be parsed as either ${s} or ${n}`;o(i,"TAG_RESOLVE_FAILED",A,true)}}return r}t.composeScalar=composeScalar},9984:(e,t,s)=>{var n=s(1708);var A=s(1342);var i=s(3021);var o=s(1464);var r=s(1127);var a=s(3683);var c=s(7788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:s}=e;return[t,t+(typeof s==="string"?s.length:1)]}function parsePrelude(e){let t="";let s=false;let n=false;for(let A=0;A{const A=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(A,t,s));else this.errors.push(new o.YAMLParseError(A,t,s))};this.directives=new A.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:s,afterEmptyLine:n}=parsePrelude(this.prelude);if(s){const A=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${s}`:s}else if(n||e.directives.docStart||!A){e.commentBefore=s}else if(r.isCollection(A)&&!A.flow&&A.items.length>0){let e=A.items[0];if(r.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${s}\n${t}`:s}else{const e=A.commentBefore;A.commentBefore=e?`${s}\n${e}`:s}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,s=-1){for(const t of e)yield*this.next(t);yield*this.end(t,s)}*next(e){if(n.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,s,n)=>{const A=getErrorPos(e);A[0]+=t;this.onError(A,"BAD_DIRECTIVE",s,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const s=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(s);else this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const s=new i.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");s.range=[0,t,t];this.decorate(s,false);yield s}}}t.Composer=Composer},7103:(e,t,s)=>{var n=s(7165);var A=s(4454);var i=s(4631);var o=s(9499);var r=s(4051);var a=s(1187);const c="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},s,l,u,p){const d=p?.nodeClass??A.YAMLMap;const g=new d(s.schema);if(s.atRoot)s.atRoot=false;let h=l.offset;let f=null;for(const A of l.items){const{start:p,key:d,sep:E,value:C}=A;const Q=i.resolveProps(p,{indicator:"explicit-key-ind",next:d??E?.[0],offset:h,onError:u,parentIndent:l.indent,startOnNewline:true});const B=!Q.found;if(B){if(d){if(d.type==="block-seq")u(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in d&&d.indent!==l.indent)u(h,"BAD_INDENT",c)}if(!Q.anchor&&!Q.tag&&!E){f=Q.end;if(Q.comment){if(g.comment)g.comment+="\n"+Q.comment;else g.comment=Q.comment}continue}if(Q.newlineAfterProp||o.containsNewline(d)){u(d??p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(Q.found?.indent!==l.indent){u(h,"BAD_INDENT",c)}s.atKey=true;const m=Q.end;const I=d?e(s,d,Q,u):t(s,m,p,null,Q,u);if(s.schema.compat)r.flowIndentCheck(l.indent,d,u);s.atKey=false;if(a.mapIncludes(s,g.items,I))u(m,"DUPLICATE_KEY","Map keys must be unique");const y=i.resolveProps(E??[],{indicator:"map-value-ind",next:C,offset:I.range[2],onError:u,parentIndent:l.indent,startOnNewline:!d||d.type==="block-scalar"});h=y.end;if(y.found){if(B){if(C?.type==="block-map"&&!y.hasNewline)u(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(s.options.strict&&Q.start{var n=s(3301);function resolveBlockScalar(e,t,s){const A=t.offset;const i=parseBlockScalarHeader(t,e.options.strict,s);if(!i)return{value:"",type:null,comment:"",range:[A,A,A]};const o=i.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const r=t.source?splitLines(t.source):[];let a=r.length;for(let e=r.length-1;e>=0;--e){const t=r[e][1];if(t===""||t==="\r")a=e;else break}if(a===0){const e=i.chomp==="+"&&r.length>0?"\n".repeat(Math.max(1,r.length-1)):"";let s=A+i.length;if(t.source)s+=t.source.length;return{value:e,type:o,comment:i.comment,range:[A,s,s]}}let c=t.indent+i.indent;let l=t.offset+i.length;let u=0;for(let t=0;tc)c=n.length}else{if(n.length=a;--e){if(r[e][0].length>c)a=e+1}let p="";let d="";let g=false;for(let e=0;ec||A[0]==="\t"){if(d===" ")d="\n";else if(!g&&d==="\n")d="\n\n";p+=d+t.slice(c)+A;d="\n";g=true}else if(A===""){if(d==="\n")p+="\n";else d="\n"}else{p+=d+A;d=" ";g=false}}switch(i.chomp){case"-":break;case"+":for(let e=a;e{var n=s(2223);var A=s(4631);var i=s(4051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},s,o,r,a){const c=a?.nodeClass??n.YAMLSeq;const l=new c(s.schema);if(s.atRoot)s.atRoot=false;if(s.atKey)s.atKey=false;let u=o.offset;let p=null;for(const{start:n,value:a}of o.items){const c=A.resolveProps(n,{indicator:"seq-item-ind",next:a,offset:u,onError:r,parentIndent:o.indent,startOnNewline:true});if(!c.found){if(c.anchor||c.tag||a){if(a&&a.type==="block-seq")r(c.end,"BAD_INDENT","All sequence items must start at the same column");else r(u,"MISSING_CHAR","Sequence item without - indicator")}else{p=c.end;if(c.comment)l.comment=c.comment;continue}}const d=a?e(s,a,c,r):t(s,c.end,n,null,c,r);if(s.schema.compat)i.flowIndentCheck(o.indent,a,r);u=d.range[2];l.items.push(d)}l.range=[o.offset,u,p??u];return l}t.resolveBlockSeq=resolveBlockSeq},7788:(e,t)=>{function resolveEnd(e,t,s,n){let A="";if(e){let i=false;let o="";for(const r of e){const{source:e,type:a}=r;switch(a){case"space":i=true;break;case"comment":{if(s&&!i)n(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!A)A=t;else A+=o+t;o="";break}case"newline":if(A)o+=e;i=true;break;default:n(r,"UNEXPECTED_TOKEN",`Unexpected ${a} at node end`)}t+=e.length}}return{comment:A,offset:t}}t.resolveEnd=resolveEnd},3142:(e,t,s)=>{var n=s(1127);var A=s(7165);var i=s(4454);var o=s(2223);var r=s(7788);var a=s(4631);var c=s(9499);var l=s(1187);const u="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},s,p,d,g){const h=p.start.source==="{";const f=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?i.YAMLMap:o.YAMLSeq);const C=new E(s.schema);C.flow=true;const Q=s.atRoot;if(Q)s.atRoot=false;if(s.atKey)s.atKey=false;let B=p.offset+p.start.source.length;for(let o=0;o0){const e=r.resolveEnd(y,b,s.options.strict,d);if(e.comment){if(C.comment)C.comment+="\n"+e.comment;else C.comment=e.comment}C.range=[p.offset,b,e.offset]}else{C.range=[p.offset,b,b]}return C}t.resolveFlowCollection=resolveFlowCollection},6842:(e,t,s)=>{var n=s(3301);var A=s(7788);function resolveFlowScalar(e,t,s){const{offset:i,type:o,source:r,end:a}=e;let c;let l;const _onError=(e,t,n)=>s(i+e,t,n);switch(o){case"scalar":c=n.Scalar.PLAIN;l=plainValue(r,_onError);break;case"single-quoted-scalar":c=n.Scalar.QUOTE_SINGLE;l=singleQuotedValue(r,_onError);break;case"double-quoted-scalar":c=n.Scalar.QUOTE_DOUBLE;l=doubleQuotedValue(r,_onError);break;default:s(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`);return{value:"",type:null,comment:"",range:[i,i+r.length,i+r.length]}}const u=i+r.length;const p=A.resolveEnd(a,u,t,s);return{value:l,type:c,comment:p.comment,range:[i,u,p.offset]}}function plainValue(e,t){let s="";switch(e[0]){case"\t":s="a tab character";break;case",":s="flow indicator character ,";break;case"%":s="directive indicator character %";break;case"|":case">":{s=`block scalar indicator ${e[0]}`;break}case"@":case"`":{s=`reserved character ${e[0]}`;break}}if(s)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${s}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,s;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):A}else{s+=A}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return s}function foldNewline(e,t){let s="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")s+="\n";t+=1;n=e[t+1]}if(!s)s=" ";return{fold:s,offset:t}}const i={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,s,n){const A=e.substr(t,s);const i=A.length===s&&/^[0-9a-fA-F]+$/.test(A);const o=i?parseInt(A,16):NaN;if(isNaN(o)){const A=e.substr(t-2,s+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${A}`);return A}return String.fromCodePoint(o)}t.resolveFlowScalar=resolveFlowScalar},4631:(e,t)=>{function resolveProps(e,{flow:t,indicator:s,next:n,offset:A,onError:i,parentIndent:o,startOnNewline:r}){let a=false;let c=r;let l=r;let u="";let p="";let d=false;let g=false;let h=null;let f=null;let E=null;let C=null;let Q=null;let B=null;let m=null;for(const A of e){if(g){if(A.type!=="space"&&A.type!=="newline"&&A.type!=="comma")i(A.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");g=false}if(h){if(c&&A.type!=="comment"&&A.type!=="newline"){i(h,"TAB_AS_INDENT","Tabs are not allowed as indentation")}h=null}switch(A.type){case"space":if(!t&&(s!=="doc-start"||n?.type!=="flow-collection")&&A.source.includes("\t")){h=A}l=true;break;case"comment":{if(!l)i(A,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=A.source.substring(1)||" ";if(!u)u=e;else u+=p+e;p="";c=false;break}case"newline":if(c){if(u)u+=A.source;else if(!B||s!=="seq-item-ind")a=true}else p+=A.source;c=true;d=true;if(f||E)C=A;l=true;break;case"anchor":if(f)i(A,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(A.source.endsWith(":"))i(A.offset+A.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);f=A;if(m===null)m=A.offset;c=false;l=false;g=true;break;case"tag":{if(E)i(A,"MULTIPLE_TAGS","A node can have at most one tag");E=A;if(m===null)m=A.offset;c=false;l=false;g=true;break}case s:if(f||E)i(A,"BAD_PROP_ORDER",`Anchors and tags must be after the ${A.source} indicator`);if(B)i(A,"UNEXPECTED_TOKEN",`Unexpected ${A.source} in ${t??"collection"}`);B=A;c=s==="seq-item-ind"||s==="explicit-key-ind";l=false;break;case"comma":if(t){if(Q)i(A,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);Q=A;c=false;l=false;break}default:i(A,"UNEXPECTED_TOKEN",`Unexpected ${A.type} token`);c=false;l=false}}const I=e[e.length-1];const y=I?I.offset+I.source.length:A;if(g&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(h&&(c&&h.indent<=o||n?.type==="block-map"||n?.type==="block-seq"))i(h,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:Q,found:B,spaceBefore:a,comment:u,hasNewline:d,anchor:f,tag:E,newlineAfterProp:C,end:y,start:m??y}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},2599:(e,t)=>{function emptyScalarPosition(e,t,s){if(t){if(s===null)s=t.length;for(let n=s-1;n>=0;--n){let s=t[n];switch(s.type){case"space":case"comment":case"newline":e-=s.source.length;continue}s=t[++n];while(s?.type==="space"){e+=s.source.length;s=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},4051:(e,t,s)=>{var n=s(9499);function flowIndentCheck(e,t,s){if(t?.type==="flow-collection"){const A=t.end[0];if(A.indent===e&&(A.source==="]"||A.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";s(A,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},1187:(e,t,s)=>{var n=s(1127);function mapIncludes(e,t,s){const{uniqueKeys:A}=e.options;if(A===false)return false;const i=typeof A==="function"?A:(e,t)=>e===t||n.isScalar(e)&&n.isScalar(t)&&e.value===t.value;return t.some((e=>i(e.key,s)))}t.mapIncludes=mapIncludes},3021:(e,t,s)=>{var n=s(4065);var A=s(101);var i=s(1127);var o=s(7165);var r=s(4043);var a=s(5840);var c=s(6829);var l=s(1596);var u=s(3661);var p=s(2404);var d=s(1342);class Document{constructor(e,t,s){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,i.NODE_TYPE,{value:i.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(s===undefined&&t){s=t;t=undefined}const A=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,stringKeys:false,uniqueKeys:true,version:"1.2"},s);this.options=A;let{version:o}=A;if(s?._directives){this.directives=s._directives.atDocument();if(this.directives.yaml.explicit)o=this.directives.yaml.version}else this.directives=new d.Directives({version:o});this.setSchema(o,s);this.contents=e===undefined?null:this.createNode(e,n,s)}clone(){const e=Object.create(Document.prototype,{[i.NODE_TYPE]:{value:i.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=i.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const s=l.anchorNames(this);e.anchor=!t||s.has(t)?l.findNewAnchor(t||"a",s):t}return new n.Alias(e.anchor)}createNode(e,t,s){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(s===undefined&&t){s=t;t=undefined}const{aliasDuplicateObjects:A,anchorPrefix:o,flow:r,keepUndefined:a,onTagObj:c,tag:u}=s??{};const{onAnchor:d,setAnchors:g,sourceObjects:h}=l.createNodeAnchors(this,o||"a");const f={aliasDuplicateObjects:A??true,keepUndefined:a??false,onAnchor:d,onTagObj:c,replacer:n,schema:this.schema,sourceObjects:h};const E=p.createNode(e,u,f);if(r&&i.isCollection(E))E.flow=true;g();return E}createPair(e,t,s={}){const n=this.createNode(e,null,s);const A=this.createNode(t,null,s);return new o.Pair(n,A)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(A.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return i.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(A.isEmptyPath(e))return!t&&i.isScalar(this.contents)?this.contents.value:this.contents;return i.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return i.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(A.isEmptyPath(e))return this.contents!==undefined;return i.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=A.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(A.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=A.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let s;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new d.Directives({version:"1.1"});s={resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new d.Directives({version:e});s={resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;s=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(s)this.schema=new a.Schema(Object.assign(s,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:s,maxAliasCount:n,onAnchor:A,reviver:i}={}){const o={anchors:new Map,doc:this,keep:!e,mapAsMap:s===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const a=r.toJS(this.contents,t??"",o);if(typeof A==="function")for(const{count:e,res:t}of o.anchors.values())A(t,e);return typeof i==="function"?u.applyReviver(i,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return c.stringifyDocument(this,e)}}function assertCollection(e){if(i.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},1596:(e,t,s)=>{var n=s(1127);var A=s(204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const s=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(s)}return true}function anchorNames(e){const t=new Set;A.visit(e,{Value(e,s){if(s.anchor)t.add(s.anchor)}});return t}function findNewAnchor(e,t){for(let s=1;true;++s){const n=`${e}${s}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const s=[];const A=new Map;let i=null;return{onAnchor:n=>{s.push(n);if(!i)i=anchorNames(e);const A=findNewAnchor(t,i);i.add(A);return A},setAnchors:()=>{for(const e of s){const t=A.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:A}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},3661:(e,t)=>{function applyReviver(e,t,s,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,s=n.length;t{var n=s(4065);var A=s(1127);var i=s(3301);const o="tag:yaml.org,2002:";function findTagObject(e,t,s){if(t){const e=s.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return s.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,s){if(A.isDocument(e))e=e.contents;if(A.isNode(e))return e;if(A.isPair(e)){const t=s.schema[A.MAP].createNode?.(s.schema,null,s);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:r,onAnchor:a,onTagObj:c,schema:l,sourceObjects:u}=s;let p=undefined;if(r&&e&&typeof e==="object"){p=u.get(e);if(p){if(!p.anchor)p.anchor=a(e);return new n.Alias(p.anchor)}else{p={anchor:null,node:null};u.set(e,p)}}if(t?.startsWith("!!"))t=o+t.slice(2);let d=findTagObject(e,t,l.tags);if(!d){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new i.Scalar(e);if(p)p.node=t;return t}d=e instanceof Map?l[A.MAP]:Symbol.iterator in Object(e)?l[A.SEQ]:l[A.MAP]}if(c){c(d);delete s.onTagObj}const g=d?.createNode?d.createNode(s.schema,e,s):typeof d?.nodeClass?.from==="function"?d.nodeClass.from(s.schema,e,s):new i.Scalar(e);if(t)g.tag=t;else if(!d.default)g.tag=d.tag;if(p)p.node=g;return g}t.createNode=createNode},1342:(e,t,s)=>{var n=s(1127);var A=s(204);const i={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>i[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const s=e.trim().split(/[ \t]+/);const n=s.shift();switch(n){case"%TAG":{if(s.length!==2){t(0,"%TAG directive should contain exactly two parts");if(s.length<2)return false}const[e,n]=s;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(s.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=s;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const s=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,s);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const s=e.slice(2,-1);if(s==="!"||s==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return s}const[,s,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const A=this.tags[s];if(A){try{return A+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(s==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,s]of Object.entries(this.tags)){if(e.startsWith(s))return t+escapeTagName(e.substring(s.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const s=Object.entries(this.tags);let i;if(e&&s.length>0&&n.isNode(e.contents)){const t={};A.visit(e.contents,((e,s)=>{if(n.isNode(s)&&s.tag)t[s.tag]=true}));i=Object.keys(t)}else i=[];for(const[n,A]of s){if(n==="!!"&&A==="tag:yaml.org,2002:")continue;if(!e||i.some((e=>e.startsWith(A))))t.push(`%TAG ${n} ${A}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},1464:(e,t)=>{class YAMLError extends Error{constructor(e,t,s,n){super();this.name=e;this.code=s;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,s){super("YAMLParseError",e,t,s)}}class YAMLWarning extends YAMLError{constructor(e,t,s){super("YAMLWarning",e,t,s)}}const prettifyError=(e,t)=>s=>{if(s.pos[0]===-1)return;s.linePos=s.pos.map((e=>t.linePos(e)));const{line:n,col:A}=s.linePos[0];s.message+=` at line ${n}, column ${A}`;let i=A-1;let o=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const e=Math.min(i-39,o.length-79);o="…"+o.substring(e);i-=e-1}if(o.length>80)o=o.substring(0,79)+"…";if(n>1&&/^ *$/.test(o.substring(0,i))){let s=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(s.length>80)s=s.substring(0,79)+"…\n";o=s+o}if(/[^ ]/.test(o)){let e=1;const t=s.linePos[1];if(t&&t.line===n&&t.col>A){e=Math.max(1,Math.min(t.col-A,80-i))}const r=" ".repeat(i)+"^".repeat(e);s.message+=`:\n\n${o}\n${r}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},8815:(e,t,s)=>{var n=s(9984);var A=s(3021);var i=s(5840);var o=s(1464);var r=s(4065);var a=s(1127);var c=s(7165);var l=s(3301);var u=s(4454);var p=s(2223);var d=s(3461);var g=s(361);var h=s(6628);var f=s(3456);var E=s(4047);var C=s(204);t.Composer=n.Composer;t.Document=A.Document;t.Schema=i.Schema;t.YAMLError=o.YAMLError;t.YAMLParseError=o.YAMLParseError;t.YAMLWarning=o.YAMLWarning;t.Alias=r.Alias;t.isAlias=a.isAlias;t.isCollection=a.isCollection;t.isDocument=a.isDocument;t.isMap=a.isMap;t.isNode=a.isNode;t.isPair=a.isPair;t.isScalar=a.isScalar;t.isSeq=a.isSeq;t.Pair=c.Pair;t.Scalar=l.Scalar;t.YAMLMap=u.YAMLMap;t.YAMLSeq=p.YAMLSeq;t.CST=d;t.Lexer=g.Lexer;t.LineCounter=h.LineCounter;t.Parser=f.Parser;t.parse=E.parse;t.parseAllDocuments=E.parseAllDocuments;t.parseDocument=E.parseDocument;t.stringify=E.stringify;t.visit=C.visit;t.visitAsync=C.visitAsync},7249:(e,t,s)=>{var n=s(1708);function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof n.emitWarning==="function")n.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,s)=>{var n=s(1596);var A=s(204);var i=s(1127);var o=s(6673);var r=s(4043);class Alias extends o.NodeBase{constructor(e){super(i.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;A.visit(e,{Node:(e,s)=>{if(s===this)return A.visit.BREAK;if(s.anchor===this.source)t=s}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:s,doc:n,maxAliasCount:A}=t;const i=this.resolve(n);if(!i){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let o=s.get(i);if(!o){r.toJS(i,null,t);o=s.get(i)}if(!o||o.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(A>=0){o.count+=1;if(o.aliasCount===0)o.aliasCount=getAliasCount(n,i,s);if(o.count*o.aliasCount>A){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return o.res}toString(e,t,s){const A=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${A} `}return A}}function getAliasCount(e,t,s){if(i.isAlias(t)){const n=t.resolve(e);const A=s&&n&&s.get(n);return A?A.count*A.aliasCount:0}else if(i.isCollection(t)){let n=0;for(const A of t.items){const t=getAliasCount(e,A,s);if(t>n)n=t}return n}else if(i.isPair(t)){const n=getAliasCount(e,t.key,s);const A=getAliasCount(e,t.value,s);return Math.max(n,A)}return 1}t.Alias=Alias},101:(e,t,s)=>{var n=s(2404);var A=s(1127);var i=s(6673);function collectionFromPath(e,t,s){let A=s;for(let e=t.length-1;e>=0;--e){const s=t[e];if(typeof s==="number"&&Number.isInteger(s)&&s>=0){const e=[];e[s]=A;A=e}else{A=new Map([[s,A]])}}return n.createNode(A,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends i.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>A.isNode(t)||A.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[s,...n]=e;const i=this.get(s,true);if(A.isCollection(i))i.addIn(n,t);else if(i===undefined&&this.schema)this.set(s,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}}deleteIn(e){const[t,...s]=e;if(s.length===0)return this.delete(t);const n=this.get(t,true);if(A.isCollection(n))return n.deleteIn(s);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){const[s,...n]=e;const i=this.get(s,true);if(n.length===0)return!t&&A.isScalar(i)?i.value:i;else return A.isCollection(i)?i.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!A.isPair(t))return false;const s=t.value;return s==null||e&&A.isScalar(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag}))}hasIn(e){const[t,...s]=e;if(s.length===0)return this.has(t);const n=this.get(t,true);return A.isCollection(n)?n.hasIn(s):false}setIn(e,t){const[s,...n]=e;if(n.length===0){this.set(s,t)}else{const e=this.get(s,true);if(A.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(s,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}}}t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},6673:(e,t,s)=>{var n=s(3661);var A=s(1127);var i=s(4043);class NodeBase{constructor(e){Object.defineProperty(this,A.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:o,reviver:r}={}){if(!A.isDocument(e))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof s==="number"?s:100};const c=i.toJS(this,"",a);if(typeof o==="function")for(const{count:e,res:t}of a.anchors.values())o(t,e);return typeof r==="function"?n.applyReviver(r,{"":c},"",c):c}}t.NodeBase=NodeBase},7165:(e,t,s)=>{var n=s(2404);var A=s(9748);var i=s(7104);var o=s(1127);function createPair(e,t,s){const A=n.createNode(e,undefined,s);const i=n.createNode(t,undefined,s);return new Pair(A,i)}class Pair{constructor(e,t=null){Object.defineProperty(this,o.NODE_TYPE,{value:o.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:s}=this;if(o.isNode(t))t=t.clone(e);if(o.isNode(s))s=s.clone(e);return new Pair(t,s)}toJSON(e,t){const s=t?.mapAsMap?new Map:{};return i.addPairToJSMap(t,s,this)}toString(e,t,s){return e?.doc?A.stringifyPair(this,e,t,s):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},3301:(e,t,s)=>{var n=s(1127);var A=s(6673);var i=s(4043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends A.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:i.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},4454:(e,t,s)=>{var n=s(1212);var A=s(7104);var i=s(101);var o=s(1127);var r=s(7165);var a=s(3301);function findPair(e,t){const s=o.isScalar(t)?t.value:t;for(const n of e){if(o.isPair(n)){if(n.key===t||n.key===s)return n;if(o.isScalar(n.key)&&n.key.value===s)return n}}return undefined}class YAMLMap extends i.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(o.MAP,e);this.items=[]}static from(e,t,s){const{keepUndefined:n,replacer:A}=s;const i=new this(e);const add=(e,o)=>{if(typeof A==="function")o=A.call(t,e,o);else if(Array.isArray(A)&&!A.includes(e))return;if(o!==undefined||n)i.items.push(r.createPair(e,o,s))};if(t instanceof Map){for(const[e,s]of t)add(e,s)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){i.items.sort(e.sortMapEntries)}return i}add(e,t){let s;if(o.isPair(e))s=e;else if(!e||typeof e!=="object"||!("key"in e)){s=new r.Pair(e,e?.value)}else s=new r.Pair(e.key,e.value);const n=findPair(this.items,s.key);const A=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${s.key} already set`);if(o.isScalar(n.value)&&a.isScalarValue(s.value))n.value.value=s.value;else n.value=s.value}else if(A){const e=this.items.findIndex((e=>A(s,e)<0));if(e===-1)this.items.push(s);else this.items.splice(e,0,s)}else{this.items.push(s)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const s=this.items.splice(this.items.indexOf(t),1);return s.length>0}get(e,t){const s=findPair(this.items,e);const n=s?.value;return(!t&&o.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new r.Pair(e,t),true)}toJSON(e,t,s){const n=s?new s:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)A.addPairToJSMap(t,n,e);return n}toString(e,t,s){if(!e)return JSON.stringify(this);for(const e of this.items){if(!o.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},2223:(e,t,s)=>{var n=s(2404);var A=s(1212);var i=s(101);var o=s(1127);var r=s(3301);var a=s(4043);class YAMLSeq extends i.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(o.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const s=this.items.splice(t,1);return s.length>0}get(e,t){const s=asItemIndex(e);if(typeof s!=="number")return undefined;const n=this.items[s];return!t&&o.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},7104:(e,t,s)=>{var n=s(7249);var A=s(452);var i=s(2148);var o=s(1127);var r=s(4043);function addPairToJSMap(e,t,{key:s,value:n}){if(o.isNode(s)&&s.addToJSMap)s.addToJSMap(e,t,n);else if(A.isMergeKey(e,s))A.addMergeToJSMap(e,t,n);else{const A=r.toJS(s,"",e);if(t instanceof Map){t.set(A,r.toJS(n,A,e))}else if(t instanceof Set){t.add(A)}else{const i=stringifyKey(s,A,e);const o=r.toJS(n,i,e);if(i in t)Object.defineProperty(t,i,{value:o,writable:true,enumerable:true,configurable:true});else t[i]=o}}return t}function stringifyKey(e,t,s){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&s?.doc){const t=i.createStringifyContext(s.doc,{});t.anchors=new Set;for(const e of s.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const A=e.toString(t);if(!s.mapKeyWarned){let e=JSON.stringify(A);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(s.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);s.mapKeyWarned=true}return A}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},1127:(e,t)=>{const s=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const A=Symbol.for("yaml.map");const i=Symbol.for("yaml.pair");const o=Symbol.for("yaml.scalar");const r=Symbol.for("yaml.seq");const a=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[a]===s;const isDocument=e=>!!e&&typeof e==="object"&&e[a]===n;const isMap=e=>!!e&&typeof e==="object"&&e[a]===A;const isPair=e=>!!e&&typeof e==="object"&&e[a]===i;const isScalar=e=>!!e&&typeof e==="object"&&e[a]===o;const isSeq=e=>!!e&&typeof e==="object"&&e[a]===r;function isCollection(e){if(e&&typeof e==="object")switch(e[a]){case A:case r:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[a]){case s:case A:case o:case r:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=s;t.DOC=n;t.MAP=A;t.NODE_TYPE=a;t.PAIR=i;t.SCALAR=o;t.SEQ=r;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},4043:(e,t,s)=>{var n=s(1127);function toJS(e,t,s){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),s)));if(e&&typeof e.toJSON==="function"){if(!s||!n.hasAnchor(e))return e.toJSON(t,s);const A={aliasCount:0,count:1,res:undefined};s.anchors.set(e,A);s.onCreate=e=>{A.res=e;delete s.onCreate};const i=e.toJSON(t,s);if(s.onCreate)s.onCreate(i);return i}if(typeof e==="bigint"&&!s?.keep)return Number(e);return e}t.toJS=toJS},110:(e,t,s)=>{var n=s(8913);var A=s(6842);var i=s(1464);var o=s(3069);function resolveAsScalar(e,t=true,s){if(e){const _onError=(e,t,n)=>{const A=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(s)s(A,t,n);else throw new i.YAMLParseError([A,A+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return A.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:s=false,indent:n,inFlow:A=false,offset:i=-1,type:r="PLAIN"}=t;const a=o.stringifyString({type:r,value:e},{implicitKey:s,indent:n>0?" ".repeat(n):"",inFlow:A,options:{blockQuote:true,lineWidth:-1}});const c=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(a[0]){case"|":case">":{const e=a.indexOf("\n");const t=a.substring(0,e);const s=a.substring(e+1)+"\n";const A=[{type:"block-scalar-header",offset:i,indent:n,source:t}];if(!addEndtoBlockProps(A,c))A.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:i,indent:n,props:A,source:s}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:a,end:c};default:return{type:"scalar",offset:i,indent:n,source:a,end:c}}}function setScalarValue(e,t,s={}){let{afterKey:n=false,implicitKey:A=false,inFlow:i=false,type:r}=s;let a="indent"in e?e.indent:null;if(n&&typeof a==="number")a+=2;if(!r)switch(e.type){case"single-quoted-scalar":r="QUOTE_SINGLE";break;case"double-quoted-scalar":r="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");r=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:r="PLAIN"}const c=o.stringifyString({type:r,value:t},{implicitKey:A||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:true,lineWidth:-1}});switch(c[0]){case"|":case">":setBlockScalarValue(e,c);break;case'"':setFlowScalarValue(e,c,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,c,"single-quoted-scalar");break;default:setFlowScalarValue(e,c,"scalar")}}function setBlockScalarValue(e,t){const s=t.indexOf("\n");const n=t.substring(0,s);const A=t.substring(s+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=A}else{const{offset:t}=e;const s="indent"in e?e.indent:-1;const i=[{type:"block-scalar-header",offset:t,indent:s,source:n}];if(!addEndtoBlockProps(i,"end"in e?e.end:undefined))i.push({type:"newline",offset:-1,indent:s,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:s,props:i,source:A})}}function addEndtoBlockProps(e,t){if(t)for(const s of t)switch(s.type){case"space":case"comment":e.push(s);break;case"newline":e.push(s);return true}return false}function setFlowScalarValue(e,t,s){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=s;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let A=t.length;if(e.props[0].type==="block-scalar-header")A-=e.props[0].source.length;for(const e of n)e.offset+=A;delete e.props;Object.assign(e,{type:s,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const A={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:s,source:t,end:[A]});break}default:{const n="indent"in e?e.indent:-1;const A="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:s,indent:n,source:t,end:A})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},1733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const s of e.props)t+=stringifyToken(s);return t+e.source}case"block-map":case"block-seq":{let t="";for(const s of e.items)t+=stringifyItem(s);return t}case"flow-collection":{let t=e.start.source;for(const s of e.items)t+=stringifyItem(s);for(const s of e.end)t+=s.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const s of e.end)t+=s.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const s of e.end)t+=s.source;return t}}}function stringifyItem({start:e,key:t,sep:s,value:n}){let A="";for(const t of e)A+=t.source;if(t)A+=stringifyToken(t);if(s)for(const e of s)A+=e.source;if(n)A+=stringifyToken(n);return A}t.stringify=stringify},7715:(e,t)=>{const s=Symbol("break visit");const n=Symbol("skip children");const A=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=s;visit.SKIP=n;visit.REMOVE=A;visit.itemAtPath=(e,t)=>{let s=e;for(const[e,n]of t){const t=s?.[e];if(t&&"items"in t){s=t.items[n]}else return undefined}return s};visit.parentCollection=(e,t)=>{const s=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const A=s?.[n];if(A&&"items"in A)return A;throw new Error("Parent collection not found")};function _visit(e,t,n){let i=n(t,e);if(typeof i==="symbol")return i;for(const o of["key","value"]){const r=t[o];if(r&&"items"in r){for(let t=0;t{var n=s(110);var A=s(1733);var i=s(7715);const o="\ufeff";const r="";const a="";const c="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case o:return"";case r:return"";case a:return"";case c:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case o:return"byte-order-mark";case r:return"doc-mode";case a:return"flow-error-end";case c:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=A.stringify;t.visit=i.visit;t.BOM=o;t.DOCUMENT=r;t.FLOW_END=a;t.SCALAR=c;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},361:(e,t,s)=>{var n=s(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const A=new Set("0123456789ABCDEFabcdef");const i=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const o=new Set(",[]{}");const r=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||r.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let s=this.next??"stream";while(s&&(t||this.hasChars(1)))s=yield*this.parseNext(s)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let s=0;while(t===" ")t=this.buffer[++s+e];if(t==="\r"){const t=this.buffer[s+e+1];if(t==="\n"||!t&&!this.atEnd)return e+s+1}return t==="\n"||s>=this.indentNext||!t&&!this.atEnd?e+s:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let s=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=s=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const A=this.getLine();if(A===null)return this.setNext("flow");if(s!==-1&&s"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let s;e:for(let n=this.pos;s=this.buffer[n];++n){switch(s){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let A=e+1;s=this.buffer[A];while(s===" ")s=this.buffer[++A];if(s==="\t"){while(s==="\t"||s===" "||s==="\r"||s==="\n")s=this.buffer[++A];e=A-1}else if(!this.blockScalarKeep){do{let s=e-1;let n=this.buffer[s];if(n==="\r")n=this.buffer[--s];const A=s;while(n===" ")n=this.buffer[--s];if(n==="\n"&&s>=this.pos&&s+1+t>A)e=s;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let s=this.pos-1;let A;while(A=this.buffer[++s]){if(A===":"){const n=this.buffer[s+1];if(isEmpty(n)||e&&o.has(n))break;t=s}else if(isEmpty(A)){let n=this.buffer[s+1];if(A==="\r"){if(n==="\n"){s+=1;A="\n";n=this.buffer[s+1]}else t=s}if(n==="#"||e&&o.has(n))break;if(A==="\n"){const e=this.continueScalar(s+1);if(e===-1)break;s=Math.max(s,e-2)}}else{if(e&&o.has(A))break;t=s}}if(!A&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const s=this.buffer.slice(this.pos,e);if(s){yield s;this.pos+=s.length;return s.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&o.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(i.has(t))t=this.buffer[++e];else if(t==="%"&&A.has(this.buffer[e+1])&&A.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let s;do{s=this.buffer[++t]}while(s===" "||e&&s==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let s=this.buffer[t];while(!e(s))s=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},6628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let s=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=s(1708);var A=s(3461);var i=s(361);function includesToken(e,t){for(let s=0;s=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new i.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const s of this.lexer.lex(e,t))yield*this.next(s);if(!t)yield*this.end()}*next(e){this.source=e;if(n.env.LOG_TOKENS)console.log("|",A.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=A.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const s=e.items[e.items.length-1];if(s.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(s.sep){s.value=t}else{Object.assign(s,{key:t,sep:[]});this.onKeyLine=!s.explicitKey;return}break}case"block-seq":{const s=e.items[e.items.length-1];if(s.value)e.items.push({start:[],value:t});else s.value=t;break}case"flow-collection":{const s=e.items[e.items.length-1];if(!s||s.value)e.items.push({start:[],key:t,sep:[]});else if(s.sep)s.value=t;else Object.assign(s,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const s=t.items[t.items.length-1];if(s&&!s.sep&&!s.value&&s.start.length>0&&findNonEmptyIndex(s.start)===-1&&(t.indent===0||s.start.every((e=>e.type!=="comment"||e.indent=e.indent){const s=!this.onKeyLine&&this.indent===e.indent;const n=s&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let A=[];if(n&&t.sep&&!t.value){const s=[];for(let n=0;ne.indent)s.length=0;break;default:s.length=0}}if(s.length>=2)A=t.sep.splice(s[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){A.push(this.sourceToken);e.items.push({start:A});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){A.push(this.sourceToken);e.items.push({start:A,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const s=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key;delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:s,sep:n}]})}else if(A.length>0){t.sep=t.sep.concat(A,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:A,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);if(n||t.value){e.items.push({start:A,key:s,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(s)}else{Object.assign(t,{key:s,sep:[]});this.onKeyLine=true}return}default:{const n=this.startBlockValue(e);if(n){if(n.type==="block-seq"){if(!t.explicitKey&&t.sep&&!includesToken(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(s){e.items.push({start:A})}this.stack.push(n);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const s="end"in t.value?t.value.end:undefined;const n=Array.isArray(s)?s[s.length-1]:undefined;if(n?.type==="comment")s?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const s=e.items[e.items.length-2];const n=s?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:s,sep:[]});else if(t.sep)this.stack.push(s);else Object.assign(t,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const s=this.startBlockValue(e);if(s)this.stack.push(s);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const s=getPrevProps(t);const n=getFirstKeyStartProps(s);fixFlowSeqItems(e);const A=e.end.splice(1,e.end.length);A.push(this.sourceToken);const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:A}]};this.onKeyLine=true;this.stack[this.stack.length-1]=i}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const s=getFirstKeyStartProps(t);s.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const s=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},4047:(e,t,s)=>{var n=s(9984);var A=s(3021);var i=s(1464);var o=s(7249);var r=s(1127);var a=s(6628);var c=s(3456);function parseOptions(e){const t=e.prettyErrors!==false;const s=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:s,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:s,prettyErrors:A}=parseOptions(t);const o=new c.Parser(s?.addNewLine);const r=new n.Composer(t);const a=Array.from(r.compose(o.parse(e)));if(A&&s)for(const t of a){t.errors.forEach(i.prettifyError(e,s));t.warnings.forEach(i.prettifyError(e,s))}if(a.length>0)return a;return Object.assign([],{empty:true},r.streamInfo())}function parseDocument(e,t={}){const{lineCounter:s,prettyErrors:A}=parseOptions(t);const o=new c.Parser(s?.addNewLine);const r=new n.Composer(t);let a=null;for(const t of r.compose(o.parse(e),true,e.length)){if(!a)a=t;else if(a.options.logLevel!=="silent"){a.errors.push(new i.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(A&&s){a.errors.forEach(i.prettifyError(e,s));a.warnings.forEach(i.prettifyError(e,s))}return a}function parse(e,t,s){let n=undefined;if(typeof t==="function"){n=t}else if(s===undefined&&t&&typeof t==="object"){s=t}const A=parseDocument(e,s);if(!A)return null;A.warnings.forEach((e=>o.warn(A.options.logLevel,e)));if(A.errors.length>0){if(A.options.logLevel!=="silent")throw A.errors[0];else A.errors=[]}return A.toJS(Object.assign({reviver:n},s))}function stringify(e,t,s){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(s===undefined&&t){s=t}if(typeof s==="string")s=s.length;if(typeof s==="number"){const e=Math.round(s);s=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=s??t??{};if(!e)return undefined}if(r.isDocument(e)&&!n)return e.toString(s);return new A.Document(e,n,s).toString(s)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},5840:(e,t,s)=>{var n=s(1127);var A=s(7451);var i=s(1706);var o=s(6464);var r=s(18);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:s,resolveKnownTags:a,schema:c,sortMapEntries:l,toStringDefaults:u}){this.compat=Array.isArray(e)?r.getTags(e,"compat"):e?r.getTags(null,e):null;this.name=typeof c==="string"&&c||"core";this.knownTags=a?r.coreKnownTags:{};this.tags=r.getTags(t,this.name,s);this.toStringOptions=u??null;Object.defineProperty(this,n.MAP,{value:A.map});Object.defineProperty(this,n.SCALAR,{value:o.string});Object.defineProperty(this,n.SEQ,{value:i.seq});this.sortMapEntries=typeof l==="function"?l:l===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},7451:(e,t,s)=>{var n=s(1127);var A=s(4454);const i={collection:"map",default:true,nodeClass:A.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,s)=>A.YAMLMap.from(e,t,s)};t.map=i},3632:(e,t,s)=>{var n=s(3301);const A={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&A.test.test(e)?e:t.options.nullStr};t.nullTag=A},1706:(e,t,s)=>{var n=s(1127);var A=s(2223);const i={collection:"seq",default:true,nodeClass:A.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,s)=>A.YAMLSeq.from(e,t,s)};t.seq=i},6464:(e,t,s)=>{var n=s(3069);const A={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,s,A){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,s,A)}};t.string=A},3959:(e,t,s)=>{var n=s(3301);const A={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},s){if(e&&A.test.test(e)){const s=e[0]==="t"||e[0]==="T";if(t===s)return e}return t?s.options.trueStr:s.options.falseStr}};t.boolTag=A},8405:(e,t,s)=>{var n=s(3301);var A=s(8689);const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:A.stringifyNumber};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():A.stringifyNumber(e)}};const r={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const s=e.indexOf(".");if(s!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-s-1;return t},stringify:A.stringifyNumber};t.float=r;t.floatExp=o;t.floatNaN=i},9874:(e,t,s)=>{var n=s(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,s,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),s);function intStringify(e,t,s){const{value:A}=e;if(intIdentify(A)&&A>=0)return s+A.toString(t);return n.stringifyNumber(e)}const A={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,s)=>intResolve(e,2,8,s),stringify:e=>intStringify(e,8,"0o")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,s)=>intResolve(e,0,10,s),stringify:n.stringifyNumber};const o={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,s)=>intResolve(e,2,16,s),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intHex=o;t.intOct=A},896:(e,t,s)=>{var n=s(7451);var A=s(3632);var i=s(1706);var o=s(6464);var r=s(3959);var a=s(8405);var c=s(9874);const l=[n.map,i.seq,o.string,A.nullTag,r.boolTag,c.intOct,c.int,c.intHex,a.floatNaN,a.floatExp,a.float];t.schema=l},3559:(e,t,s)=>{var n=s(3301);var A=s(7451);var i=s(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const o=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:s})=>s?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const r={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const a=[A.map,i.seq].concat(o,r);t.schema=a},18:(e,t,s)=>{var n=s(7451);var A=s(3632);var i=s(1706);var o=s(6464);var r=s(3959);var a=s(8405);var c=s(9874);var l=s(896);var u=s(3559);var p=s(6083);var d=s(452);var g=s(303);var h=s(8385);var f=s(5913);var E=s(1528);var C=s(6752);const Q=new Map([["core",l.schema],["failsafe",[n.map,i.seq,o.string]],["json",u.schema],["yaml11",f.schema],["yaml-1.1",f.schema]]);const B={binary:p.binary,bool:r.boolTag,float:a.float,floatExp:a.floatExp,floatNaN:a.floatNaN,floatTime:C.floatTime,int:c.int,intHex:c.intHex,intOct:c.intOct,intTime:C.intTime,map:n.map,merge:d.merge,null:A.nullTag,omap:g.omap,pairs:h.pairs,seq:i.seq,set:E.set,timestamp:C.timestamp};const m={"tag:yaml.org,2002:binary":p.binary,"tag:yaml.org,2002:merge":d.merge,"tag:yaml.org,2002:omap":g.omap,"tag:yaml.org,2002:pairs":h.pairs,"tag:yaml.org,2002:set":E.set,"tag:yaml.org,2002:timestamp":C.timestamp};function getTags(e,t,s){const n=Q.get(t);if(n&&!e){return s&&!n.includes(d.merge)?n.concat(d.merge):n.slice()}let A=n;if(!A){if(Array.isArray(e))A=[];else{const e=Array.from(Q.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)A=A.concat(t)}else if(typeof e==="function"){A=e(A.slice())}if(s)A=A.concat(d.merge);return A.reduce(((e,t)=>{const s=typeof t==="string"?B[t]:t;if(!s){const e=JSON.stringify(t);const s=Object.keys(B).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag ${e}; use one of ${s}`)}if(!e.includes(s))e.push(s);return e}),[])}t.coreKnownTags=m;t.getTags=getTags},6083:(e,t,s)=>{var n=s(4573);var A=s(3301);var i=s(3069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof n.Buffer==="function"){return n.Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const s=new Uint8Array(t.length);for(let e=0;e{var n=s(3301);function boolStringify({value:e,source:t},s){const n=e?A:i;if(t&&n.test.test(t))return t;return e?s.options.trueStr:s.options.falseStr}const A={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const i={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=i;t.trueTag=A},5782:(e,t,s)=>{var n=s(3301);var A=s(8689);const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:A.stringifyNumber};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():A.stringifyNumber(e)}};const r={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const s=e.indexOf(".");if(s!==-1){const n=e.substring(s+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:A.stringifyNumber};t.float=r;t.floatExp=o;t.floatNaN=i},873:(e,t,s)=>{var n=s(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,s,{intAsBigInt:n}){const A=e[0];if(A==="-"||A==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(s){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return A==="-"?BigInt(-1)*t:t}const i=parseInt(e,s);return A==="-"?-1*i:i}function intStringify(e,t,s){const{value:A}=e;if(intIdentify(A)){const e=A.toString(t);return A<0?"-"+s+e.substr(1):s+e}return n.stringifyNumber(e)}const A={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,s)=>intResolve(e,2,2,s),stringify:e=>intStringify(e,2,"0b")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,s)=>intResolve(e,1,8,s),stringify:e=>intStringify(e,8,"0")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,s)=>intResolve(e,0,10,s),stringify:n.stringifyNumber};const r={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,s)=>intResolve(e,2,16,s),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intBin=A;t.intHex=r;t.intOct=i},452:(e,t,s)=>{var n=s(1127);var A=s(3301);const i="<<";const o={identify:e=>e===i||typeof e==="symbol"&&e.description===i,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new A.Scalar(Symbol(i)),{addToJSMap:addMergeToJSMap}),stringify:()=>i};const isMergeKey=(e,t)=>(o.identify(t)||n.isScalar(t)&&(!t.type||t.type===A.Scalar.PLAIN)&&o.identify(t.value))&&e?.doc.schema.tags.some((e=>e.tag===o.tag&&e.default));function addMergeToJSMap(e,t,s){s=e&&n.isAlias(s)?s.resolve(e.doc):s;if(n.isSeq(s))for(const n of s.items)mergeValue(e,t,n);else if(Array.isArray(s))for(const n of s)mergeValue(e,t,n);else mergeValue(e,t,s)}function mergeValue(e,t,s){const A=e&&n.isAlias(s)?s.resolve(e.doc):s;if(!n.isMap(A))throw new Error("Merge sources must be maps or map aliases");const i=A.toJSON(null,e,Map);for(const[e,s]of i){if(t instanceof Map){if(!t.has(e))t.set(e,s)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:s,writable:true,enumerable:true,configurable:true})}}return t}t.addMergeToJSMap=addMergeToJSMap;t.isMergeKey=isMergeKey;t.merge=o},303:(e,t,s)=>{var n=s(1127);var A=s(4043);var i=s(4454);var o=s(2223);var r=s(8385);class YAMLOMap extends o.YAMLSeq{constructor(){super();this.add=i.YAMLMap.prototype.add.bind(this);this.delete=i.YAMLMap.prototype.delete.bind(this);this.get=i.YAMLMap.prototype.get.bind(this);this.has=i.YAMLMap.prototype.has.bind(this);this.set=i.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const s=new Map;if(t?.onCreate)t.onCreate(s);for(const e of this.items){let i,o;if(n.isPair(e)){i=A.toJS(e.key,"",t);o=A.toJS(e.value,i,t)}else{i=A.toJS(e,"",t)}if(s.has(i))throw new Error("Ordered maps must not include duplicate keys");s.set(i,o)}return s}static from(e,t,s){const n=r.createPairs(e,t,s);const A=new this;A.items=n.items;return A}}YAMLOMap.tag="tag:yaml.org,2002:omap";const a={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const s=r.resolvePairs(e,t);const A=[];for(const{key:e}of s.items){if(n.isScalar(e)){if(A.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{A.push(e.value)}}}return Object.assign(new YAMLOMap,s)},createNode:(e,t,s)=>YAMLOMap.from(e,t,s)};t.YAMLOMap=YAMLOMap;t.omap=a},8385:(e,t,s)=>{var n=s(1127);var A=s(7165);var i=s(3301);var o=s(2223);function resolvePairs(e,t){if(n.isSeq(e)){for(let s=0;s1)t("Each pair must have its own sequence indicator");const e=o.items[0]||new A.Pair(new i.Scalar(null));if(o.commentBefore)e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore;if(o.comment){const t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[s]=n.isPair(o)?o:new A.Pair(o)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,s){const{replacer:n}=s;const i=new o.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";let r=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(r++),e);let o,a;if(Array.isArray(e)){if(e.length===2){o=e[0];a=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){o=t[0];a=e[o]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{o=e}i.items.push(A.createPair(o,a,s))}return i}const r={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=r;t.resolvePairs=resolvePairs},5913:(e,t,s)=>{var n=s(7451);var A=s(3632);var i=s(1706);var o=s(6464);var r=s(6083);var a=s(8398);var c=s(5782);var l=s(873);var u=s(452);var p=s(303);var d=s(8385);var g=s(1528);var h=s(6752);const f=[n.map,i.seq,o.string,A.nullTag,a.trueTag,a.falseTag,l.intBin,l.intOct,l.int,l.intHex,c.floatNaN,c.floatExp,c.float,r.binary,u.merge,p.omap,d.pairs,g.set,h.intTime,h.floatTime,h.timestamp];t.schema=f},1528:(e,t,s)=>{var n=s(1127);var A=s(7165);var i=s(4454);class YAMLSet extends i.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new A.Pair(e.key,null);else t=new A.Pair(e,null);const s=i.findPair(this.items,t.key);if(!s)this.items.push(t)}get(e,t){const s=i.findPair(this.items,e);return!t&&n.isPair(s)?n.isScalar(s.key)?s.key.value:s.key:s}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const s=i.findPair(this.items,e);if(s&&!t){this.items.splice(this.items.indexOf(s),1)}else if(!s&&t){this.items.push(new A.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,s);else throw new Error("Set items must all have null values")}static from(e,t,s){const{replacer:n}=s;const i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);i.items.push(A.createPair(e,null,s))}return i}}YAMLSet.tag="tag:yaml.org,2002:set";const o={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,s)=>YAMLSet.from(e,t,s),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=o},6752:(e,t,s)=>{var n=s(8689);function parseSexagesimal(e,t){const s=e[0];const n=s==="-"||s==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const A=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return s==="-"?num(-1)*A:A}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let s="";if(t<0){s="-";t*=num(-1)}const A=num(60);const i=[t%A];if(t<60){i.unshift(0)}else{t=(t-i[0])/A;i.unshift(t%A);if(t>=60){t=(t-i[0])/A;i.unshift(t)}}return s+i.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const A={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:s})=>parseSexagesimal(e,s),stringify:stringifySexagesimal};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const o={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(o.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,s,n,A,i,r,a]=t.map(Number);const c=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(s,n-1,A,i||0,r||0,a||0,c);const u=t[8];if(u&&u!=="Z"){let e=parseSexagesimal(u,false);if(Math.abs(e)<30)e*=60;l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};t.floatTime=i;t.intTime=A;t.timestamp=o},4475:(e,t)=>{const s="flow";const n="block";const A="quoted";function foldFlowLines(e,t,s="flow",{indentAtStart:i,lineWidth:o=80,minContentWidth:r=20,onFold:a,onOverflow:c}={}){if(!o||o<0)return e;if(oo-Math.max(2,r))u.push(0);else d=o-i}let g=undefined;let h=undefined;let f=false;let E=-1;let C=-1;let Q=-1;if(s===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)d=E+l}for(let i;i=e[E+=1];){if(s===A&&i==="\\"){C=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}Q=E}if(i==="\n"){if(s===n)E=consumeMoreIndentedLines(e,E,t.length);d=E+t.length+l;g=undefined}else{if(i===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=d){if(g){u.push(g);d=g+l;g=undefined}else if(s===A){while(h===" "||h==="\t"){h=i;i=e[E+=1];f=true}const t=E>Q+1?E-2:C-1;if(p[t])return e;u.push(t);p[t]=true;d=t+l;g=undefined}else{f=true}}}h=i}if(f&&c)c();if(u.length===0)return e;if(a)a();let B=e.slice(0,u[0]);for(let n=0;n{var n=s(1596);var A=s(1127);var i=s(9799);var o=s(3069);function createStringifyContext(e,t){const s=Object.assign({blockQuote:true,commentString:i.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(s.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:typeof s.indent==="number"?" ".repeat(s.indent):" ",inFlow:n,options:s}}function getTagObject(e,t){if(t.tag){const s=e.filter((e=>e.tag===t.tag));if(s.length>0)return s.find((e=>e.format===t.format))??s[0]}let s=undefined;let n;if(A.isScalar(t)){n=t.value;let A=e.filter((e=>e.identify?.(n)));if(A.length>1){const e=A.filter((e=>e.test));if(e.length>0)A=e}s=A.find((e=>e.format===t.format))??A.find((e=>!e.format))}else{n=t;s=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!s){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return s}function stringifyProps(e,t,{anchors:s,doc:i}){if(!i.directives)return"";const o=[];const r=(A.isScalar(e)||A.isCollection(e))&&e.anchor;if(r&&n.anchorIsValid(r)){s.add(r);o.push(`&${r}`)}const a=e.tag?e.tag:t.default?null:t.tag;if(a)o.push(i.directives.tagString(a));return o.join(" ")}function stringify(e,t,s,n){if(A.isPair(e))return e.toString(t,s,n);if(A.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let i=undefined;const r=A.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});if(!i)i=getTagObject(t.doc.schema.tags,r);const a=stringifyProps(r,i,t);if(a.length>0)t.indentAtStart=(t.indentAtStart??0)+a.length+1;const c=typeof i.stringify==="function"?i.stringify(r,t,s,n):A.isScalar(r)?o.stringifyString(r,t,s,n):r.toString(t,s,n);if(!a)return c;return A.isScalar(r)||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a}\n${t.indent}${c}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},1212:(e,t,s)=>{var n=s(1127);var A=s(2148);var i=s(9799);function stringifyCollection(e,t,s){const n=t.inFlow??e.flow;const A=n?stringifyFlowCollection:stringifyBlockCollection;return A(e,t,s)}function stringifyBlockCollection({comment:e,items:t},s,{blockItemPrefix:o,flowChars:r,itemIndent:a,onChompKeep:c,onComment:l}){const{indent:u,options:{commentString:p}}=s;const d=Object.assign({},s,{indent:a,type:null});let g=false;const h=[];for(let e=0;ec=null),(()=>g=true));if(c)l+=i.lineComment(l,a,p(c));if(g&&c)g=false;h.push(o+l)}let f;if(h.length===0){f=r.start+r.end}else{f=h[0];for(let e=1;ea=null));if(sd||c.includes("\n")))p=true;g.push(c);d=g.length}const{start:h,end:f}=s;if(g.length===0){return h+f}else{if(!p){const e=g.reduce(((e,t)=>e+t.length+2),2);p=t.options.lineWidth>0&&e>t.options.lineWidth}if(p){let e=h;for(const t of g)e+=t?`\n${a}${r}${t}`:"\n";return`${e}\n${r}${f}`}else{return`${h}${c}${g.join(" ")}${c}${f}`}}}function addCommentBefore({indent:e,options:{commentString:t}},s,n,A){if(n&&A)n=n.replace(/^\n+/,"");if(n){const A=i.indentComment(t(n),e);s.push(A.trimStart())}}t.stringifyCollection=stringifyCollection},9799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,s)=>e.endsWith("\n")?indentComment(s,t):s.includes("\n")?"\n"+indentComment(s,t):(e.endsWith(" ")?"":" ")+s;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,s)=>{var n=s(1127);var A=s(2148);var i=s(9799);function stringifyDocument(e,t){const s=[];let o=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){s.push(t);o=true}else if(e.directives.docStart)o=true}if(o)s.push("---");const r=A.createStringifyContext(e,t);const{commentString:a}=r.options;if(e.commentBefore){if(s.length!==1)s.unshift("");const t=a(e.commentBefore);s.unshift(i.indentComment(t,""))}let c=false;let l=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&o)s.push("");if(e.contents.commentBefore){const t=a(e.contents.commentBefore);s.push(i.indentComment(t,""))}r.forceBlockIndent=!!e.comment;l=e.contents.comment}const t=l?undefined:()=>c=true;let u=A.stringify(e.contents,r,(()=>l=null),t);if(l)u+=i.lineComment(u,"",a(l));if((u[0]==="|"||u[0]===">")&&s[s.length-1]==="---"){s[s.length-1]=`--- ${u}`}else s.push(u)}else{s.push(A.stringify(e.contents,r))}if(e.directives?.docEnd){if(e.comment){const t=a(e.comment);if(t.includes("\n")){s.push("...");s.push(i.indentComment(t,""))}else{s.push(`... ${t}`)}}else{s.push("...")}}else{let t=e.comment;if(t&&c)t=t.replace(/^\n+/,"");if(t){if((!c||l)&&s[s.length-1]!=="")s.push("");s.push(i.indentComment(a(t),""))}}return s.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},8689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:s,value:n}){if(typeof n==="bigint")return String(n);const A=typeof n==="number"?n:Number(n);if(!isFinite(A))return isNaN(A)?".nan":A<0?"-.inf":".inf";let i=JSON.stringify(n);if(!e&&t&&(!s||s==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let e=i.indexOf(".");if(e<0){e=i.length;i+="."}let s=t-(i.length-e-1);while(s-- >0)i+="0"}return i}t.stringifyNumber=stringifyNumber},9748:(e,t,s)=>{var n=s(1127);var A=s(3301);var i=s(2148);var o=s(9799);function stringifyPair({key:e,value:t},s,r,a){const{allNullValues:c,doc:l,indent:u,indentStep:p,options:{commentString:d,indentSeq:g,simpleKeys:h}}=s;let f=n.isNode(e)&&e.comment||null;if(h){if(f){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||f&&t==null&&!s.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===A.Scalar.BLOCK_FOLDED||e.type===A.Scalar.BLOCK_LITERAL:typeof e==="object"));s=Object.assign({},s,{allNullValues:false,implicitKey:!E&&(h||!c),indent:u+p});let C=false;let Q=false;let B=i.stringify(e,s,(()=>C=true),(()=>Q=true));if(!E&&!s.inFlow&&B.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(s.inFlow){if(c||t==null){if(C&&r)r();return B===""?"?":E?`? ${B}`:B}}else if(c&&!h||t==null&&E){B=`? ${B}`;if(f&&!C){B+=o.lineComment(B,s.indent,d(f))}else if(Q&&a)a();return B}if(C)f=null;if(E){if(f)B+=o.lineComment(B,s.indent,d(f));B=`? ${B}\n${u}:`}else{B=`${B}:`;if(f)B+=o.lineComment(B,s.indent,d(f))}let m,I,y;if(n.isNode(t)){m=!!t.spaceBefore;I=t.commentBefore;y=t.comment}else{m=false;I=null;y=null;if(t&&typeof t==="object")t=l.createNode(t)}s.implicitKey=false;if(!E&&!f&&n.isScalar(t))s.indentAtStart=B.length+1;Q=false;if(!g&&p.length>=2&&!s.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){s.indent=s.indent.substring(2)}let b=false;const w=i.stringify(t,s,(()=>b=true),(()=>Q=true));let v=" ";if(f||m||I){v=m?"\n":"";if(I){const e=d(I);v+=`\n${o.indentComment(e,s.indent)}`}if(w===""&&!s.inFlow){if(v==="\n")v="\n\n"}else{v+=`\n${s.indent}`}}else if(!E&&n.isCollection(t)){const e=w[0];const n=w.indexOf("\n");const A=n!==-1;const i=s.inFlow??t.flow??t.items.length===0;if(A||!i){let t=false;if(A&&(e==="&"||e==="!")){let s=w.indexOf(" ");if(e==="&"&&s!==-1&&s{var n=s(3301);var A=s(4475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,s){if(!t||t<0)return false;const n=t-s;const A=e.length;if(A<=n)return false;for(let t=0,s=0;tn)return true;s=t+1;if(A-s<=n)return false}}return true}function doubleQuotedString(e,t){const s=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return s;const{implicitKey:n}=t;const i=t.options.doubleQuotedMinMultiLineLength;const o=t.indent||(containsDocumentMarker(e)?" ":"");let r="";let a=0;for(let e=0,t=s[e];t;t=s[++e]){if(t===" "&&s[e+1]==="\\"&&s[e+2]==="n"){r+=s.slice(a,e)+"\\ ";e+=1;a=e;t="\\"}if(t==="\\")switch(s[e+1]){case"u":{r+=s.slice(a,e);const t=s.substr(e+2,4);switch(t){case"0000":r+="\\0";break;case"0007":r+="\\a";break;case"000b":r+="\\v";break;case"001b":r+="\\e";break;case"0085":r+="\\N";break;case"00a0":r+="\\_";break;case"2028":r+="\\L";break;case"2029":r+="\\P";break;default:if(t.substr(0,2)==="00")r+="\\x"+t.substr(2);else r+=s.substr(e,6)}e+=5;a=e+1}break;case"n":if(n||s[e+2]==='"'||s.length\n";let g;let h;for(h=s.length;h>0;--h){const e=s[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let f=s.substring(h);const E=f.indexOf("\n");if(E===-1){g="-"}else if(s===f||E!==f.length-1){g="+";if(a)a()}else{g=""}if(f){s=s.slice(0,-f.length);if(f[f.length-1]==="\n")f=f.slice(0,-1);f=f.replace(i,`$&${p}`)}let C=false;let Q;let B=-1;for(Q=0;Q{i=true}}const a=A.foldFlowLines(`${m}${e}${f}`,p,A.FOLD_BLOCK,r);if(!i)return`>${y}\n${p}${a}`}s=s.replace(/\n+/g,`$&${p}`);return`|${y}\n${p}${m}${s}${f}`}function plainString(e,t,s,i){const{type:o,value:r}=e;const{actualString:a,implicitKey:c,indent:l,indentStep:u,inFlow:p}=t;if(c&&r.includes("\n")||p&&/[[\]{},]/.test(r)){return quotedString(r,t)}if(!r||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r)){return c||p||!r.includes("\n")?quotedString(r,t):blockString(e,t,s,i)}if(!c&&!p&&o!==n.Scalar.PLAIN&&r.includes("\n")){return blockString(e,t,s,i)}if(containsDocumentMarker(r)){if(l===""){t.forceBlockIndent=true;return blockString(e,t,s,i)}else if(c&&l===u){return quotedString(r,t)}}const d=r.replace(/\n+/g,`$&\n${l}`);if(a){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(d);const{compat:e,tags:s}=t.doc.schema;if(s.some(test)||e?.some(test))return quotedString(r,t)}return c?d:A.foldFlowLines(d,l,A.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,s,A){const{implicitKey:i,inFlow:o}=t;const r=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;if(a!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(r.value))a=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return i||o?quotedString(r.value,t):blockString(r,t,s,A);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(r.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(r.value,t);case n.Scalar.PLAIN:return plainString(r,t,s,A);default:return null}};let c=_stringify(a);if(c===null){const{defaultKeyType:e,defaultStringType:s}=t.options;const n=i&&e||s;c=_stringify(n);if(c===null)throw new Error(`Unsupported default string type ${n}`)}return c}t.stringifyString=stringifyString},204:(e,t,s)=>{var n=s(1127);const A=Symbol("break visit");const i=Symbol("skip children");const o=Symbol("remove node");function visit(e,t){const s=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,s,Object.freeze([e]));if(t===o)e.contents=null}else visit_(null,e,s,Object.freeze([]))}visit.BREAK=A;visit.SKIP=i;visit.REMOVE=o;function visit_(e,t,s,i){const r=callVisitor(e,t,s,i);if(n.isNode(r)||n.isPair(r)){replaceNode(e,i,r);return visit_(e,r,s,i)}if(typeof r!=="symbol"){if(n.isCollection(t)){i=Object.freeze(i.concat(t));for(let e=0;e{e.exports={parallel:s(8210),serial:s(445),serialOrdered:s(3578)}},1700:e=>{e.exports=abort;function abort(e){Object.keys(e.jobs).forEach(clean.bind(e));e.jobs={}}function clean(e){if(typeof this.jobs[e]=="function"){this.jobs[e]()}}},2794:(e,t,s)=>{var n=s(5295);e.exports=async;function async(e){var t=false;n((function(){t=true}));return function async_callback(s,A){if(t){e(s,A)}else{n((function nextTick_callback(){e(s,A)}))}}}},5295:e=>{e.exports=defer;function defer(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(t){t(e)}else{setTimeout(e,0)}}},9023:(e,t,s)=>{var n=s(2794),A=s(1700);e.exports=iterate;function iterate(e,t,s,n){var i=s["keyedList"]?s["keyedList"][s.index]:s.index;s.jobs[i]=runJob(t,i,e[i],(function(e,t){if(!(i in s.jobs)){return}delete s.jobs[i];if(e){A(s)}else{s.results[i]=t}n(e,s.results)}))}function runJob(e,t,s,A){var i;if(e.length==2){i=e(s,n(A))}else{i=e(s,t,n(A))}return i}},2474:e=>{e.exports=state;function state(e,t){var s=!Array.isArray(e),n={index:0,keyedList:s||t?Object.keys(e):null,jobs:{},results:s?{}:[],size:s?Object.keys(e).length:e.length};if(t){n.keyedList.sort(s?t:function(s,n){return t(e[s],e[n])})}return n}},7942:(e,t,s)=>{var n=s(1700),A=s(2794);e.exports=terminator;function terminator(e){if(!Object.keys(this.jobs).length){return}this.index=this.size;n(this);A(e)(null,this.results)}},8210:(e,t,s)=>{var n=s(9023),A=s(2474),i=s(7942);e.exports=parallel;function parallel(e,t,s){var o=A(e);while(o.index<(o["keyedList"]||e).length){n(e,t,o,(function(e,t){if(e){s(e,t);return}if(Object.keys(o.jobs).length===0){s(null,o.results);return}}));o.index++}return i.bind(o,s)}},445:(e,t,s)=>{var n=s(3578);e.exports=serial;function serial(e,t,s){return n(e,t,null,s)}},3578:(e,t,s)=>{var n=s(9023),A=s(2474),i=s(7942);e.exports=serialOrdered;e.exports.ascending=ascending;e.exports.descending=descending;function serialOrdered(e,t,s,o){var r=A(e,s);n(e,t,r,(function iteratorHandler(s,A){if(s){o(s,A);return}r.index++;if(r.index<(r["keyedList"]||e).length){n(e,t,r,iteratorHandler);return}o(null,r.results)}));return i.bind(r,o)}function ascending(e,t){return et?1:0}function descending(e,t){return-1*ascending(e,t)}},9227:(e,t,s)=>{"use strict";var n=s(8334);var A=s(4177);var i=s(2808);var o=s(8309);e.exports=o||n.call(i,A)},4177:e=>{"use strict";e.exports=Function.prototype.apply},2808:e=>{"use strict";e.exports=Function.prototype.call},6815:(e,t,s)=>{"use strict";var n=s(8334);var A=s(6361);var i=s(2808);var o=s(9227);e.exports=function callBindBasic(e){if(e.length<1||typeof e[0]!=="function"){throw new A("a function is required")}return o(n,i,e)}},8309:e=>{"use strict";e.exports=typeof Reflect!=="undefined"&&Reflect&&Reflect.apply},5443:(e,t,s)=>{var n=s(3837);var A=s(2781).Stream;var i=s(8611);e.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false}n.inherits(CombinedStream,A);CombinedStream.create=function(e){var t=new this;e=e||{};for(var s in e){t[s]=e[s]}return t};CombinedStream.isStreamLike=function(e){return typeof e!=="function"&&typeof e!=="string"&&typeof e!=="boolean"&&typeof e!=="number"&&!Buffer.isBuffer(e)};CombinedStream.prototype.append=function(e){var t=CombinedStream.isStreamLike(e);if(t){if(!(e instanceof i)){var s=i.create(e,{maxDataSize:Infinity,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this));e=s}this._handleErrors(e);if(this.pauseStreams){e.pause()}}this._streams.push(e);return this};CombinedStream.prototype.pipe=function(e,t){A.prototype.pipe.call(this,e,t);this.resume();return e};CombinedStream.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=false}};CombinedStream.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e=="undefined"){this.end();return}if(typeof e!=="function"){this._pipeNext(e);return}var t=e;t(function(e){var t=CombinedStream.isStreamLike(e);if(t){e.on("data",this._checkDataSize.bind(this));this._handleErrors(e)}this._pipeNext(e)}.bind(this))};CombinedStream.prototype._pipeNext=function(e){this._currentStream=e;var t=CombinedStream.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this));e.pipe(this,{end:false});return}var s=e;this.write(s);this._getNext()};CombinedStream.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))};CombinedStream.prototype.write=function(e){this.emit("data",e)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){if(!t.dataSize){return}e.dataSize+=t.dataSize}));if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(e){this._reset();this.emit("error",e)}},8222:(e,t,s)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const s="color: "+this.color;t.splice(1,0,s,"color: inherit");let n=0;let A=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){A=n}}));t.splice(A,0,s)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=s(6243)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,t,s)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=s(900);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let s=0;s{if(t==="%%"){return"%"}i++;const A=createDebug.formatters[n];if(typeof A==="function"){const n=e[i];t=A.call(s,n);e.splice(i,1);i--}return t}));createDebug.formatArgs.call(s,e);const o=s.log||createDebug.log;o.apply(s,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(s!==null){return s}if(n!==createDebug.namespaces){n=createDebug.namespaces;A=createDebug.enabled(e)}return A},set:e=>{s=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const s=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);s.log=this.log;return s}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let s=0;let n=0;let A=-1;let i=0;while(s"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},8237:(e,t,s)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=s(8222)}else{e.exports=s(5332)}},5332:(e,t,s)=>{const n=s(6224);const A=s(3837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=A.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=s(9318);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const s=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[s]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:s,useColors:n}=this;if(n){const n=this.color;const A="[3"+(n<8?n:"8;5;"+n);const i=` ${A};1m${s} `;t[0]=i+t[0].split("\n").join("\n"+i);t.push(A+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+s+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(A.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const s=Object.keys(t.inspectOpts);for(let n=0;ne.trim())).join(" ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return A.inspect(e,this.inspectOpts)}},8611:(e,t,s)=>{var n=s(2781).Stream;var A=s(3837);e.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}A.inherits(DelayedStream,n);DelayedStream.create=function(e,t){var s=new this;t=t||{};for(var n in t){s[n]=t[n]}s.source=e;var A=e.emit;e.emit=function(){s._handleEmit(arguments);return A.apply(e,arguments)};e.on("error",(function(){}));if(s.pauseStream){e.pause()}return s};Object.defineProperty(DelayedStream.prototype,"readable",{configurable:true,enumerable:true,get:function(){return this.source.readable}});DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var e=n.prototype.pipe.apply(this,arguments);this.resume();return e};DelayedStream.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}if(e[0]==="data"){this.dataSize+=e[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(e)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}},2693:(e,t,s)=>{"use strict";var n=s(6815);var A=s(8501);var i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS"){throw e}}var o=!!i&&A&&A(Object.prototype,"__proto__");var r=Object;var a=r.getPrototypeOf;e.exports=o&&typeof o.get==="function"?n([o.get]):typeof a==="function"?function getDunder(e){return a(e==null?e:r(e))}:false},6123:e=>{"use strict";var t=Object.defineProperty||false;if(t){try{t({},"a",{value:1})}catch(e){t=false}}e.exports=t},1933:e=>{"use strict";e.exports=EvalError},8015:e=>{"use strict";e.exports=Error},4415:e=>{"use strict";e.exports=RangeError},6279:e=>{"use strict";e.exports=ReferenceError},5474:e=>{"use strict";e.exports=SyntaxError},6361:e=>{"use strict";e.exports=TypeError},5065:e=>{"use strict";e.exports=URIError},8308:e=>{"use strict";e.exports=Object},1770:(e,t,s)=>{"use strict";var n=s(4538);var A=n("%Object.defineProperty%",true);var i=s(9038)();var o=s(2157);var r=s(6361);var a=i?Symbol.toStringTag:null;e.exports=function setToStringTag(e,t){var s=arguments.length>2&&!!arguments[2]&&arguments[2].force;var n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof s!=="undefined"&&typeof s!=="boolean"||typeof n!=="undefined"&&typeof n!=="boolean"){throw new r("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans")}if(a&&(s||!o(e,a))){if(A){A(e,a,{configurable:!n,enumerable:false,value:t,writable:false})}else{e[a]=t}}}},1133:(e,t,s)=>{var n;e.exports=function(){if(!n){try{n=s(8237)("follow-redirects")}catch(e){}if(typeof n!=="function"){n=function(){}}}n.apply(null,arguments)}},7707:(e,t,s)=>{var n=s(7310);var A=n.URL;var i=s(3685);var o=s(5687);var r=s(2781).Writable;var a=s(9491);var c=s(1133);(function detectUnsupportedEnvironment(){var e=typeof process!=="undefined";var t=typeof window!=="undefined"&&typeof document!=="undefined";var s=isFunction(Error.captureStackTrace);if(!e&&(t||!s)){console.warn("The follow-redirects package should be excluded from browser builds.")}})();var l=false;try{a(new A(""))}catch(e){l=e.code==="ERR_INVALID_URL"}var u=["Authorization","Proxy-Authorization","Cookie"];var p=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"];var d=["abort","aborted","connect","error","socket","timeout"];var g=Object.create(null);d.forEach((function(e){g[e]=function(t,s,n){this._redirectable.emit(e,t,s,n)}}));var h=createErrorType("ERR_INVALID_URL","Invalid URL",TypeError);var f=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed");var E=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",f);var C=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var Q=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");var B=r.prototype.destroy||noop;function RedirectableRequest(e,t){r.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(t){this.on("response",t)}var s=this;this._onNativeResponse=function(e){try{s._processResponse(e)}catch(e){s.emit("error",e instanceof f?e:new f({cause:e}))}};this._headerFilter=new RegExp("^(?:"+u.concat(e.sensitiveHeaders).map(escapeRegex).join("|")+")$","i");this._performRequest()}RedirectableRequest.prototype=Object.create(r.prototype);RedirectableRequest.prototype.abort=function(){destroyRequest(this._currentRequest);this._currentRequest.abort();this.emit("abort")};RedirectableRequest.prototype.destroy=function(e){destroyRequest(this._currentRequest,e);B.call(this,e);return this};RedirectableRequest.prototype.write=function(e,t,s){if(this._ending){throw new Q}if(!isString(e)&&!isBuffer(e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(isFunction(t)){s=t;t=null}if(e.length===0){if(s){s()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,s)}else{this.emit("error",new C);this.abort()}};RedirectableRequest.prototype.end=function(e,t,s){if(isFunction(e)){s=e;e=t=null}else if(isFunction(t)){s=t;t=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,s)}else{var n=this;var A=this._currentRequest;this.write(e,t,(function(){n._ended=true;A.end(null,null,s)}));this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,t){var s=this;function destroyOnTimeout(t){t.setTimeout(e);t.removeListener("timeout",t.destroy);t.addListener("timeout",t.destroy)}function startTimer(t){if(s._timeout){clearTimeout(s._timeout)}s._timeout=setTimeout((function(){s.emit("timeout");clearTimer()}),e);destroyOnTimeout(t)}function clearTimer(){if(s._timeout){clearTimeout(s._timeout);s._timeout=null}s.removeListener("abort",clearTimer);s.removeListener("error",clearTimer);s.removeListener("response",clearTimer);s.removeListener("close",clearTimer);if(t){s.removeListener("timeout",t)}if(!s.socket){s._currentRequest.removeListener("socket",startTimer)}}if(t){this.on("timeout",t)}if(this.socket){startTimer(this.socket)}else{this._currentRequest.once("socket",startTimer)}this.on("socket",destroyOnTimeout);this.on("abort",clearTimer);this.on("error",clearTimer);this.on("response",clearTimer);this.on("close",clearTimer);return this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){RedirectableRequest.prototype[e]=function(t,s){return this._currentRequest[e](t,s)}}));["aborted","connection","socket"].forEach((function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})}));RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(!isArray(e.sensitiveHeaders)){e.sensitiveHeaders=[]}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var t=e.path.indexOf("?");if(t<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,t);e.search=e.path.substring(t)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){throw new TypeError("Unsupported protocol "+e)}if(this._options.agents){var s=e.slice(0,-1);this._options.agent=this._options.agents[s]}var A=this._currentRequest=t.request(this._options,this._onNativeResponse);A._redirectable=this;for(var i of d){A.on(i,g[i])}this._currentUrl=/^\//.test(this._options.path)?n.format(this._options):this._options.path;if(this._isRedirect){var o=0;var r=this;var a=this._requestBodyBuffers;(function writeNext(e){if(A===r._currentRequest){if(e){r.emit("error",e)}else if(o=400){e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[];return}destroyRequest(this._currentRequest);e.destroy();if(++this._redirectCount>this._options.maxRedirects){throw new E}var A;var i=this._options.beforeRedirect;if(i){A=Object.assign({Host:e.req.getHeader("host")},this._options.headers)}var o=this._options.method;if((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var r=removeMatchingHeaders(/^host$/i,this._options.headers);var a=parseUrl(this._currentUrl);var l=r||a.host;var u=/^\w+:/.test(s)?this._currentUrl:n.format(Object.assign(a,{host:l}));var p=resolveUrl(s,u);c("redirecting to",p.href);this._isRedirect=true;spreadUrlObject(p,this._options);if(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==l&&!isSubdomain(p.host,l)){removeMatchingHeaders(this._headerFilter,this._options.headers)}if(isFunction(i)){var d={headers:e.headers,statusCode:t};var g={url:u,method:o,headers:A};i(this._options,d,g);this._sanitizeOptions(this._options)}this._performRequest()};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var s={};Object.keys(e).forEach((function(n){var A=n+":";var i=s[A]=e[n];var o=t[n]=Object.create(i);function request(e,n,i){if(isURL(e)){e=spreadUrlObject(e)}else if(isString(e)){e=spreadUrlObject(parseUrl(e))}else{i=n;n=validateUrl(e);e={protocol:A}}if(isFunction(n)){i=n;n=null}n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n);n.nativeProtocols=s;if(!isString(n.host)&&!isString(n.hostname)){n.hostname="::1"}a.equal(n.protocol,A,"protocol mismatch");c("options",n);return new RedirectableRequest(n,i)}function get(e,t,s){var n=o.request(e,t,s);n.end();return n}Object.defineProperties(o,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}})}));return t}function noop(){}function parseUrl(e){var t;if(l){t=new A(e)}else{t=validateUrl(n.parse(e));if(!isString(t.protocol)){throw new h({input:e})}}return t}function resolveUrl(e,t){return l?new A(e,t):parseUrl(n.resolve(t,e))}function validateUrl(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname)){throw new h({input:e.href||e})}if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host)){throw new h({input:e.href||e})}return e}function spreadUrlObject(e,t){var s=t||{};for(var n of p){s[n]=e[n]}if(s.hostname.startsWith("[")){s.hostname=s.hostname.slice(1,-1)}if(s.port!==""){s.port=Number(s.port)}s.path=s.search?s.pathname+s.search:s.pathname;return s}function removeMatchingHeaders(e,t){var s;for(var n in t){if(e.test(n)){s=t[n];delete t[n]}}return s===null||typeof s==="undefined"?undefined:String(s).trim()}function createErrorType(e,t,s){function CustomError(s){if(isFunction(Error.captureStackTrace)){Error.captureStackTrace(this,this.constructor)}Object.assign(this,s||{});this.code=e;this.message=this.cause?t+": "+this.cause.message:t}CustomError.prototype=new(s||Error);Object.defineProperties(CustomError.prototype,{constructor:{value:CustomError,enumerable:false},name:{value:"Error ["+e+"]",enumerable:false}});return CustomError}function destroyRequest(e,t){for(var s of d){e.removeListener(s,g[s])}e.on("error",noop);e.destroy(t)}function isSubdomain(e,t){a(isString(e)&&isString(t));var s=e.length-t.length-1;return s>0&&e[s]==="."&&e.endsWith(t)}function isArray(e){return e instanceof Array}function isString(e){return typeof e==="string"||e instanceof String}function isFunction(e){return typeof e==="function"}function isBuffer(e){return typeof e==="object"&&"length"in e}function isURL(e){return A&&e instanceof A}function escapeRegex(e){return e.replace(/[\]\\/()*+?.$]/g,"\\$&")}e.exports=wrap({http:i,https:o});e.exports.wrap=wrap},4334:(e,t,s)=>{"use strict";var n=s(5443);var A=s(3837);var i=s(1017);var o=s(3685);var r=s(5687);var a=s(7310).parse;var c=s(7147);var l=s(2781).Stream;var u=s(6113);var p=s(3583);var d=s(4812);var g=s(1770);var h=s(2157);var f=s(7142);function FormData(e){if(!(this instanceof FormData)){return new FormData(e)}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];n.call(this);e=e||{};for(var t in e){this[t]=e[t]}}A.inherits(FormData,n);FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(e,t,s){s=s||{};if(typeof s==="string"){s={filename:s}}var A=n.prototype.append.bind(this);if(typeof t==="number"||t==null){t=String(t)}if(Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(e,t,s);var o=this._multiPartFooter();A(i);A(t);A(o);this._trackLength(i,t,s)};FormData.prototype._trackLength=function(e,t,s){var n=0;if(s.knownLength!=null){n+=Number(s.knownLength)}else if(Buffer.isBuffer(t)){n=t.length}else if(typeof t==="string"){n=Buffer.byteLength(t)}this._valueLength+=n;this._overheadLength+=Buffer.byteLength(e)+FormData.LINE_BREAK.length;if(!t||!t.path&&!(t.readable&&h(t,"httpVersion"))&&!(t instanceof l)){return}if(!s.knownLength){this._valuesToMeasure.push(t)}};FormData.prototype._lengthRetriever=function(e,t){if(h(e,"fd")){if(e.end!=undefined&&e.end!=Infinity&&e.start!=undefined){t(null,e.end+1-(e.start?e.start:0))}else{c.stat(e.path,(function(s,n){if(s){t(s);return}var A=n.size-(e.start?e.start:0);t(null,A)}))}}else if(h(e,"httpVersion")){t(null,Number(e.headers["content-length"]))}else if(h(e,"httpModule")){e.on("response",(function(s){e.pause();t(null,Number(s.headers["content-length"]))}));e.resume()}else{t("Unknown stream")}};FormData.prototype._multiPartHeader=function(e,t,s){if(typeof s.header==="string"){return s.header}var n=this._getContentDisposition(t,s);var A=this._getContentType(t,s);var i="";var o={"Content-Disposition":["form-data",'name="'+e+'"'].concat(n||[]),"Content-Type":[].concat(A||[])};if(typeof s.header==="object"){f(o,s.header)}var r;for(var a in o){if(h(o,a)){r=o[a];if(r==null){continue}if(!Array.isArray(r)){r=[r]}if(r.length){i+=a+": "+r.join("; ")+FormData.LINE_BREAK}}}return"--"+this.getBoundary()+FormData.LINE_BREAK+i+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(e,t){var s;if(typeof t.filepath==="string"){s=i.normalize(t.filepath).replace(/\\/g,"/")}else if(t.filename||e&&(e.name||e.path)){s=i.basename(t.filename||e&&(e.name||e.path))}else if(e&&e.readable&&h(e,"httpVersion")){s=i.basename(e.client._httpMessage.path||"")}if(s){return'filename="'+s+'"'}};FormData.prototype._getContentType=function(e,t){var s=t.contentType;if(!s&&e&&e.name){s=p.lookup(e.name)}if(!s&&e&&e.path){s=p.lookup(e.path)}if(!s&&e&&e.readable&&h(e,"httpVersion")){s=e.headers["content-type"]}if(!s&&(t.filepath||t.filename)){s=p.lookup(t.filepath||t.filename)}if(!s&&e&&typeof e==="object"){s=FormData.DEFAULT_CONTENT_TYPE}return s};FormData.prototype._multiPartFooter=function(){return function(e){var t=FormData.LINE_BREAK;var s=this._streams.length===0;if(s){t+=this._lastBoundary()}e(t)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(e){var t;var s={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e){if(h(e,t)){s[t.toLowerCase()]=e[t]}}return s};FormData.prototype.setBoundary=function(e){if(typeof e!=="string"){throw new TypeError("FormData boundary must be a string")}this._boundary=e};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype.getBuffer=function(){var e=new Buffer.alloc(0);var t=this.getBoundary();for(var s=0,n=this._streams.length;s{"use strict";e.exports=function(e,t){Object.keys(t).forEach((function(s){e[s]=e[s]||t[s]}));return e}},9320:e=>{"use strict";var t="Function.prototype.bind called on incompatible ";var s=Object.prototype.toString;var n=Math.max;var A="[object Function]";var i=function concatty(e,t){var s=[];for(var n=0;n{"use strict";var n=s(9320);e.exports=Function.prototype.bind||n},4538:(e,t,s)=>{"use strict";var n;var A=s(8308);var i=s(8015);var o=s(1933);var r=s(4415);var a=s(6279);var c=s(5474);var l=s(6361);var u=s(5065);var p=s(9775);var d=s(924);var g=s(2419);var h=s(3373);var f=s(8029);var E=s(9396);var C=s(9091);var Q=Function;var getEvalledConstructor=function(e){try{return Q('"use strict"; return ('+e+").constructor;")()}catch(e){}};var B=s(8501);var m=s(6123);var throwTypeError=function(){throw new l};var I=B?function(){try{arguments.callee;return throwTypeError}catch(e){try{return B(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError;var y=s(587)();var b=s(3592);var w=s(5045);var v=s(8859);var k=s(4177);var x=s(2808);var R={};var D=typeof Uint8Array==="undefined"||!b?n:b(Uint8Array);var S={__proto__:null,"%AggregateError%":typeof AggregateError==="undefined"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics==="undefined"?n:Atomics,"%BigInt%":typeof BigInt==="undefined"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array==="undefined"?n:Float16Array,"%Float32Array%":typeof Float32Array==="undefined"?n:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?n:FinalizationRegistry,"%Function%":Q,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array==="undefined"?n:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?n:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&b?b(b([][Symbol.iterator]())):n,"%JSON%":typeof JSON==="object"?JSON:n,"%Map%":typeof Map==="undefined"?n:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!y||!b?n:b((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":A,"%Object.getOwnPropertyDescriptor%":B,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?n:Promise,"%Proxy%":typeof Proxy==="undefined"?n:Proxy,"%RangeError%":r,"%ReferenceError%":a,"%Reflect%":typeof Reflect==="undefined"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?n:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!y||!b?n:b((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&b?b(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":I,"%TypedArray%":D,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array==="undefined"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap==="undefined"?n:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?n:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?n:WeakSet,"%Function.prototype.call%":x,"%Function.prototype.apply%":k,"%Object.defineProperty%":m,"%Object.getPrototypeOf%":w,"%Math.abs%":p,"%Math.floor%":d,"%Math.max%":g,"%Math.min%":h,"%Math.pow%":f,"%Math.round%":E,"%Math.sign%":C,"%Reflect.getPrototypeOf%":v};if(b){try{null.error}catch(e){var N=b(b(e));S["%Error.prototype%"]=N}}var F=function doEval(e){var t;if(e==="%AsyncFunction%"){t=getEvalledConstructor("async function () {}")}else if(e==="%GeneratorFunction%"){t=getEvalledConstructor("function* () {}")}else if(e==="%AsyncGeneratorFunction%"){t=getEvalledConstructor("async function* () {}")}else if(e==="%AsyncGenerator%"){var s=doEval("%AsyncGeneratorFunction%");if(s){t=s.prototype}}else if(e==="%AsyncIteratorPrototype%"){var n=doEval("%AsyncGenerator%");if(n&&b){t=b(n.prototype)}}S[e]=t;return t};var L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var U=s(8334);var T=s(2157);var M=U.call(x,Array.prototype.concat);var O=U.call(k,Array.prototype.splice);var _=U.call(x,String.prototype.replace);var H=U.call(x,String.prototype.slice);var Y=U.call(x,RegExp.prototype.exec);var J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var P=/\\(\\)?/g;var G=function stringToPath(e){var t=H(e,0,1);var s=H(e,-1);if(t==="%"&&s!=="%"){throw new c("invalid intrinsic syntax, expected closing `%`")}else if(s==="%"&&t!=="%"){throw new c("invalid intrinsic syntax, expected opening `%`")}var n=[];_(e,J,(function(e,t,s,A){n[n.length]=s?_(A,P,"$1"):t||e}));return n};var V=function getBaseIntrinsic(e,t){var s=e;var n;if(T(L,s)){n=L[s];s="%"+n[0]+"%"}if(T(S,s)){var A=S[s];if(A===R){A=F(s)}if(typeof A==="undefined"&&!t){throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!")}return{alias:n,name:s,value:A}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function GetIntrinsic(e,t){if(typeof e!=="string"||e.length===0){throw new l("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof t!=="boolean"){throw new l('"allowMissing" argument must be a boolean')}if(Y(/^%?[^%]*%?$/,e)===null){throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var s=G(e);var A=s.length>0?s[0]:"";var i=V("%"+A+"%",t);var o=i.name;var r=i.value;var a=false;var u=i.alias;if(u){A=u[0];O(s,M([0,1],u))}for(var p=1,d=true;p=s.length){var E=B(r,g);d=!!E;if(d&&"get"in E&&!("originalValue"in E.get)){r=E.get}else{r=r[g]}}else{d=T(r,g);r=r[g]}if(d&&!a){S[o]=r}}}return r}},5045:(e,t,s)=>{"use strict";var n=s(8308);e.exports=n.getPrototypeOf||null},8859:e=>{"use strict";e.exports=typeof Reflect!=="undefined"&&Reflect.getPrototypeOf||null},3592:(e,t,s)=>{"use strict";var n=s(8859);var A=s(5045);var i=s(2693);e.exports=n?function getProto(e){return n(e)}:A?function getProto(e){if(!e||typeof e!=="object"&&typeof e!=="function"){throw new TypeError("getProto: not an object")}return A(e)}:i?function getProto(e){return i(e)}:null},7087:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},8501:(e,t,s)=>{"use strict";var n=s(7087);if(n){try{n([],"length")}catch(e){n=null}}e.exports=n},1621:e=>{"use strict";e.exports=(e,t=process.argv)=>{const s=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(s+e);const A=t.indexOf("--");return n!==-1&&(A===-1||n{"use strict";var n=typeof Symbol!=="undefined"&&Symbol;var A=s(7747);e.exports=function hasNativeSymbols(){if(typeof n!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof n("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return A()}},7747:e=>{"use strict";e.exports=function hasSymbols(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var e={};var t=Symbol("test");var s=Object(t);if(typeof t==="string"){return false}if(Object.prototype.toString.call(t)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(s)!=="[object Symbol]"){return false}var n=42;e[t]=n;for(var A in e){return false}if(typeof Object.keys==="function"&&Object.keys(e).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(e).length!==0){return false}var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t){return false}if(!Object.prototype.propertyIsEnumerable.call(e,t)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||o.enumerable!==true){return false}}return true}},9038:(e,t,s)=>{"use strict";var n=s(7747);e.exports=function hasToStringTagShams(){return n()&&!!Symbol.toStringTag}},2157:(e,t,s)=>{"use strict";var n=Function.prototype.call;var A=Object.prototype.hasOwnProperty;var i=s(8334);e.exports=i.call(n,A)},9775:e=>{"use strict";e.exports=Math.abs},924:e=>{"use strict";e.exports=Math.floor},7661:e=>{"use strict";e.exports=Number.isNaN||function isNaN(e){return e!==e}},2419:e=>{"use strict";e.exports=Math.max},3373:e=>{"use strict";e.exports=Math.min},8029:e=>{"use strict";e.exports=Math.pow},9396:e=>{"use strict";e.exports=Math.round},9091:(e,t,s)=>{"use strict";var n=s(7661);e.exports=function sign(e){if(n(e)||e===0){return e}return e<0?-1:+1}},7426:(e,t,s)=>{ +(()=>{var __webpack_modules__={7351:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const o=i(s(2037));const r=s(5278);function issueCommand(e,t,s){const n=new Command(e,t,s);process.stdout.write(n.toString()+o.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const a="::";class Command{constructor(e,t,s){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=s}toString(){let e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const s in this.properties){if(this.properties.hasOwnProperty(s)){const n=this.properties[s];if(n){if(t){t=false}else{e+=","}e+=`${s}=${escapeProperty(n)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function escapeData(e){return(0,r.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(0,r.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.platform=t.toPlatformPath=t.toWin32Path=t.toPosixPath=t.markdownSummary=t.summary=t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const r=s(7351);const a=s(717);const c=s(5278);const l=i(s(2037));const u=i(s(1017));const p=s(8041);var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d||(t.ExitCode=d={}));function exportVariable(e,t){const s=(0,c.toCommandValue)(t);process.env[e]=s;const n=process.env["GITHUB_ENV"]||"";if(n){return(0,a.issueFileCommand)("ENV",(0,a.prepareKeyValueMessage)(e,t))}(0,r.issueCommand)("set-env",{name:e},s)}t.exportVariable=exportVariable;function setSecret(e){(0,r.issueCommand)("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){(0,a.issueFileCommand)("PATH",e)}else{(0,r.issueCommand)("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const s=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!s){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return s}return s.trim()}t.getInput=getInput;function getMultilineInput(e,t){const s=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return s}return s.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const s=["true","True","TRUE"];const n=["false","False","FALSE"];const A=getInput(e,t);if(s.includes(A))return true;if(n.includes(A))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const s=process.env["GITHUB_OUTPUT"]||"";if(s){return(0,a.issueFileCommand)("OUTPUT",(0,a.prepareKeyValueMessage)(e,t))}process.stdout.write(l.EOL);(0,r.issueCommand)("set-output",{name:e},(0,c.toCommandValue)(t))}t.setOutput=setOutput;function setCommandEcho(e){(0,r.issue)("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=d.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){(0,r.issueCommand)("debug",{},e)}t.debug=debug;function error(e,t={}){(0,r.issueCommand)("error",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){(0,r.issueCommand)("warning",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){(0,r.issueCommand)("notice",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){(0,r.issue)("group",e)}t.startGroup=startGroup;function endGroup(){(0,r.issue)("endgroup")}t.endGroup=endGroup;function group(e,t){return o(this,void 0,void 0,(function*(){startGroup(e);let s;try{s=yield t()}finally{endGroup()}return s}))}t.group=group;function saveState(e,t){const s=process.env["GITHUB_STATE"]||"";if(s){return(0,a.issueFileCommand)("STATE",(0,a.prepareKeyValueMessage)(e,t))}(0,r.issueCommand)("save-state",{name:e},(0,c.toCommandValue)(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield p.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var g=s(1327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return g.summary}});var h=s(1327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return h.markdownSummary}});var f=s(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return f.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return f.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return f.toPlatformPath}});t.platform=i(s(5243))},717:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const o=i(s(6113));const r=i(s(7147));const a=i(s(2037));const c=s(5278);function issueFileCommand(e,t){const s=process.env[`GITHUB_${e}`];if(!s){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!r.existsSync(s)){throw new Error(`Missing file at path: ${s}`)}r.appendFileSync(s,`${(0,c.toCommandValue)(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const s=`ghadelimiter_${o.randomUUID()}`;const n=(0,c.toCommandValue)(t);if(e.includes(s)){throw new Error(`Unexpected input: name should not contain the delimiter "${s}"`)}if(n.includes(s)){throw new Error(`Unexpected input: value should not contain the delimiter "${s}"`)}return`${e}<<${s}${a.EOL}${n}${a.EOL}${s}`}t.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,t,s){"use strict";var n=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const A=s(6255);const i=s(5526);const o=s(2186);class OidcClient{static createHttpClient(e=true,t=10){const s={allowRetries:e,maxRetries:t};return new A.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(OidcClient.getRequestToken())],s)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const s=OidcClient.createHttpClient();const n=yield s.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const A=(t=n.result)===null||t===void 0?void 0:t.value;if(!A){throw new Error("Response json body do not have ID Token field")}return A}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const s=encodeURIComponent(e);t=`${t}&audience=${s}`}(0,o.debug)(`ID token url is ${t}`);const s=yield OidcClient.getCall(t);(0,o.setSecret)(s);return s}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const o=i(s(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,o.sep)}t.toPlatformPath=toPlatformPath},5243:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getDetails=t.isLinux=t.isMacOS=t.isWindows=t.arch=t.platform=void 0;const a=r(s(2037));const c=i(s(1514));const getWindowsInfo=()=>o(void 0,void 0,void 0,(function*(){const{stdout:e}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>o(void 0,void 0,void 0,(function*(){var e,t,s,n;const{stdout:A}=yield c.getExecOutput("sw_vers",undefined,{silent:true});const i=(t=(e=A.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const o=(n=(s=A.match(/ProductName:\s*(.+)/))===null||s===void 0?void 0:s[1])!==null&&n!==void 0?n:"";return{name:o,version:i}}));const getLinuxInfo=()=>o(void 0,void 0,void 0,(function*(){const{stdout:e}=yield c.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,s]=e.trim().split("\n");return{name:t,version:s}}));t.platform=a.default.platform();t.arch=a.default.arch();t.isWindows=t.platform==="win32";t.isMacOS=t.platform==="darwin";t.isLinux=t.platform==="linux";function getDetails(){return o(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield t.isWindows?getWindowsInfo():t.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:t.platform,arch:t.arch,isWindows:t.isWindows,isMacOS:t.isMacOS,isLinux:t.isLinux})}))}t.getDetails=getDetails},1327:function(e,t,s){"use strict";var n=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const A=s(2037);const i=s(7147);const{access:o,appendFile:r,writeFile:a}=i.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return n(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield o(e,i.constants.R_OK|i.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,s={}){const n=Object.entries(s).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return n(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const s=yield this.filePath();const n=t?a:r;yield n(s,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return n(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(A.EOL)}addCodeBlock(e,t){const s=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(n).addEOL()}addList(e,t=false){const s=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const A=this.wrap(s,n);return this.addRaw(A).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:s,colspan:n,rowspan:A}=e;const i=t?"th":"td";const o=Object.assign(Object.assign({},n&&{colspan:n}),A&&{rowspan:A});return this.wrap(i,s,o)})).join("");return this.wrap("tr",t)})).join("");const s=this.wrap("table",t);return this.addRaw(s).addEOL()}addDetails(e,t){const s=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(s).addEOL()}addImage(e,t,s){const{width:n,height:A}=s||{};const i=Object.assign(Object.assign({},n&&{width:n}),A&&{height:A});const o=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(o).addEOL()}addHeading(e,t){const s=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1";const A=this.wrap(n,e);return this.addRaw(A).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const s=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,s);return this.addRaw(n).addEOL()}addLink(e,t){const s=this.wrap("a",e,{href:t});return this.addRaw(s).addEOL()}}const c=new Summary;t.markdownSummary=c;t.summary=c},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},1514:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[s]}})}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const r=s(1576);const a=i(s(8159));function exec(e,t,s){return o(this,void 0,void 0,(function*(){const n=a.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const A=n[0];t=n.slice(1).concat(t||[]);const i=new a.ToolRunner(A,t,s);return i.exec()}))}t.exec=exec;function getExecOutput(e,t,s){var n,A;return o(this,void 0,void 0,(function*(){let i="";let o="";const a=new r.StringDecoder("utf8");const c=new r.StringDecoder("utf8");const l=(n=s===null||s===void 0?void 0:s.listeners)===null||n===void 0?void 0:n.stdout;const u=(A=s===null||s===void 0?void 0:s.listeners)===null||A===void 0?void 0:A.stderr;const stdErrListener=e=>{o+=c.write(e);if(u){u(e)}};const stdOutListener=e=>{i+=a.write(e);if(l){l(e)}};const p=Object.assign(Object.assign({},s===null||s===void 0?void 0:s.listeners),{stdout:stdOutListener,stderr:stdErrListener});const d=yield exec(e,t,Object.assign(Object.assign({},s),{listeners:p}));i+=a.end();o+=c.end();return{exitCode:d,stdout:i,stderr:o}}))}t.getExecOutput=getExecOutput},8159:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[s]}})}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const r=i(s(2037));const a=i(s(2361));const c=i(s(2081));const l=i(s(1017));const u=i(s(7436));const p=i(s(1962));const d=s(9512);const g=process.platform==="win32";class ToolRunner extends a.EventEmitter{constructor(e,t,s){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=s||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const s=this._getSpawnFileName();const n=this._getSpawnArgs(e);let A=t?"":"[command]";if(g){if(this._isCmdFile()){A+=s;for(const e of n){A+=` ${e}`}}else if(e.windowsVerbatimArguments){A+=`"${s}"`;for(const e of n){A+=` ${e}`}}else{A+=this._windowsQuoteCmdArg(s);for(const e of n){A+=` ${this._windowsQuoteCmdArg(e)}`}}}else{A+=s;for(const e of n){A+=` ${e}`}}return A}_processLineBuffer(e,t,s){try{let n=t+e.toString();let A=n.indexOf(r.EOL);while(A>-1){const e=n.substring(0,A);s(e);n=n.substring(A+r.EOL.length);A=n.indexOf(r.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(g){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(g){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const s of this.args){t+=" ";t+=e.windowsVerbatimArguments?s:this._windowsQuoteCmdArg(s)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let s=false;for(const n of e){if(t.some((e=>e===n))){s=true;break}}if(!s){return e}let n='"';let A=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(A&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){A=true;n+='"'}else{A=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let s=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(s&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){s=true;t+="\\"}else{s=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const s={};s.cwd=e.cwd;s.env=e.env;s["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){s.argv0=`"${t}"`}return s}exec(){return o(this,void 0,void 0,(function*(){if(!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||g&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield u.which(this.toolPath,true);return new Promise(((e,t)=>o(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const s=this._cloneExecOptions(this.options);if(!s.silent&&s.outStream){s.outStream.write(this._getCommandString(s)+r.EOL)}const n=new ExecState(s,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield p.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const A=this._getSpawnFileName();const i=c.spawn(A,this._getSpawnArgs(s),this._getSpawnOptions(this.options,A));let o="";if(i.stdout){i.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!s.silent&&s.outStream){s.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let a="";if(i.stderr){i.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!s.silent&&s.errStream&&s.outStream){const t=s.failOnStdErr?s.errStream:s.outStream;t.write(e)}a=this._processLineBuffer(e,a,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}i.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));i.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));i.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((s,n)=>{if(o.length>0){this.emit("stdline",o)}if(a.length>0){this.emit("errline",a)}i.removeAllListeners();if(s){t(s)}else{e(n)}}));if(this.options.input){if(!i.stdin){throw new Error("child process missing stdin")}i.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let s=false;let n=false;let A="";function append(e){if(n&&e!=='"'){A+="\\"}A+=e;n=false}for(let i=0;i0){t.push(A);A=""}continue}append(o)}if(A.length>0){t.push(A.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends a.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=d.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},5526:function(e,t){"use strict";var s=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return s(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return s(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return s(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const r=i(s(3685));const a=i(s(5687));const c=i(s(9835));const l=i(s(4294));const u=s(1773);var p;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(p||(t.HttpCodes=p={}));var d;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(d||(t.Headers=d={}));var g;(function(e){e["ApplicationJson"]="application/json"})(g||(t.MediaTypes=g={}));function getProxyUrl(e){const t=c.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[p.MovedPermanently,p.ResourceMoved,p.SeeOther,p.TemporaryRedirect,p.PermanentRedirect];const f=[p.BadGateway,p.ServiceUnavailable,p.GatewayTimeout];const E=["OPTIONS","GET","DELETE","HEAD"];const C=10;const Q=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,s){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=s;if(s){if(s.ignoreSslError!=null){this._ignoreSslError=s.ignoreSslError}this._socketTimeout=s.socketTimeout;if(s.allowRedirects!=null){this._allowRedirects=s.allowRedirects}if(s.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=s.allowRedirectDowngrade}if(s.maxRedirects!=null){this._maxRedirects=Math.max(s.maxRedirects,0)}if(s.keepAlive!=null){this._keepAlive=s.keepAlive}if(s.allowRetries!=null){this._allowRetries=s.allowRetries}if(s.maxRetries!=null){this._maxRetries=s.maxRetries}}}options(e,t){return o(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return o(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return o(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,s){return o(this,void 0,void 0,(function*(){return this.request("POST",e,t,s||{})}))}patch(e,t,s){return o(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,s||{})}))}put(e,t,s){return o(this,void 0,void 0,(function*(){return this.request("PUT",e,t,s||{})}))}head(e,t){return o(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,s,n){return o(this,void 0,void 0,(function*(){return this.request(e,t,s,n)}))}getJson(e,t={}){return o(this,void 0,void 0,(function*(){t[d.Accept]=this._getExistingOrDefaultHeader(t,d.Accept,g.ApplicationJson);const s=yield this.get(e,t);return this._processResponse(s,this.requestOptions)}))}postJson(e,t,s={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);s[d.Accept]=this._getExistingOrDefaultHeader(s,d.Accept,g.ApplicationJson);s[d.ContentType]=this._getExistingOrDefaultHeader(s,d.ContentType,g.ApplicationJson);const A=yield this.post(e,n,s);return this._processResponse(A,this.requestOptions)}))}putJson(e,t,s={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);s[d.Accept]=this._getExistingOrDefaultHeader(s,d.Accept,g.ApplicationJson);s[d.ContentType]=this._getExistingOrDefaultHeader(s,d.ContentType,g.ApplicationJson);const A=yield this.put(e,n,s);return this._processResponse(A,this.requestOptions)}))}patchJson(e,t,s={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);s[d.Accept]=this._getExistingOrDefaultHeader(s,d.Accept,g.ApplicationJson);s[d.ContentType]=this._getExistingOrDefaultHeader(s,d.ContentType,g.ApplicationJson);const A=yield this.patch(e,n,s);return this._processResponse(A,this.requestOptions)}))}request(e,t,s,n){return o(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const A=new URL(t);let i=this._prepareRequest(e,A,n);const o=this._allowRetries&&E.includes(e)?this._maxRetries+1:1;let r=0;let a;do{a=yield this.requestRaw(i,s);if(a&&a.message&&a.message.statusCode===p.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(a)){e=t;break}}if(e){return e.handleAuthentication(this,i,s)}else{return a}}let t=this._maxRedirects;while(a.message.statusCode&&h.includes(a.message.statusCode)&&this._allowRedirects&&t>0){const o=a.message.headers["location"];if(!o){break}const r=new URL(o);if(A.protocol==="https:"&&A.protocol!==r.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.")}yield a.readBody();if(r.hostname!==A.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}i=this._prepareRequest(e,r,n);a=yield this.requestRaw(i,s);t--}if(!a.message.statusCode||!f.includes(a.message.statusCode)){return a}r+=1;if(r{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{s(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,s){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;s(e,t)}}const A=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let i;A.on("socket",(e=>{i=e}));A.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));A.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){A.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){A.end()}));t.pipe(A)}else{A.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const s=c.getProxyUrl(t);const n=s&&s.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,s)}_prepareRequest(e,t,s){const n={};n.parsedUrl=t;const A=n.parsedUrl.protocol==="https:";n.httpModule=A?a:r;const i=A?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(s);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,s){let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||s}_getAgent(e){let t;const s=c.getProxyUrl(e);const n=s&&s.hostname;if(this._keepAlive&&n){t=this._proxyAgent}if(!n){t=this._agent}if(t){return t}const A=e.protocol==="https:";let i=100;if(this.requestOptions){i=this.requestOptions.maxSockets||r.globalAgent.maxSockets}if(s&&s.hostname){const e={maxSockets:i,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`}),{host:s.hostname,port:s.port})};let n;const o=s.protocol==="https:";if(A){n=o?l.httpsOverHttps:l.httpsOverHttp}else{n=o?l.httpOverHttps:l.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=A?new a.Agent(e):new r.Agent(e);this._agent=t}if(A&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let s;if(this._keepAlive){s=this._proxyAgentDispatcher}if(s){return s}const n=e.protocol==="https:";s=new u.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=s;if(n&&this._ignoreSslError){s.options=Object.assign(s.options.requestTls||{},{rejectUnauthorized:false})}return s}_performExponentialBackoff(e){return o(this,void 0,void 0,(function*(){e=Math.min(C,e);const t=Q*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return o(this,void 0,void 0,(function*(){return new Promise(((s,n)=>o(this,void 0,void 0,(function*(){const A=e.message.statusCode||0;const i={statusCode:A,result:null,headers:{}};if(A===p.NotFound){s(i)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let o;let r;try{r=yield e.readBody();if(r&&r.length>0){if(t&&t.deserializeDates){o=JSON.parse(r,dateTimeDeserializer)}else{o=JSON.parse(r)}i.result=o}i.headers=e.message.headers}catch(e){}if(A>299){let e;if(o&&o.message){e=o.message}else if(r&&r.length>0){e=r}else{e=`Failed request: (${A})`}const t=new HttpClientError(e,A);t.result=i.result;n(t)}else{s(i)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,s)=>(t[s.toLowerCase()]=e[s],t)),{})},9835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const s=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(s){try{return new DecodedURL(s)}catch(e){if(!s.startsWith("http://")&&!s.startsWith("https://"))return new DecodedURL(`http://${s}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const s=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!s){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const A=[e.hostname.toUpperCase()];if(typeof n==="number"){A.push(`${A[0]}:${n}`)}for(const e of s.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||A.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},1962:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[s]}})}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var r;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const a=i(s(7147));const c=i(s(1017));r=a.promises,t.chmod=r.chmod,t.copyFile=r.copyFile,t.lstat=r.lstat,t.mkdir=r.mkdir,t.open=r.open,t.readdir=r.readdir,t.readlink=r.readlink,t.rename=r.rename,t.rm=r.rm,t.rmdir=r.rmdir,t.stat=r.stat,t.symlink=r.symlink,t.unlink=r.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=a.constants.O_RDONLY;function exists(e){return o(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,s=false){return o(this,void 0,void 0,(function*(){const n=s?yield t.stat(e):yield t.lstat(e);return n.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,s){return o(this,void 0,void 0,(function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=c.extname(e).toUpperCase();if(s.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(n)){return e}}}const A=e;for(const i of s){e=A+i;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const s=c.dirname(e);const n=c.basename(e).toUpperCase();for(const A of yield t.readdir(s)){if(n===A.toUpperCase()){e=c.join(s,A);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,s){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[s]}})}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(s!=="default"&&Object.hasOwnProperty.call(e,s))n(t,e,s);A(t,e);return t};var o=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const r=s(9491);const a=i(s(1017));const c=i(s(1962));function cp(e,t,s={}){return o(this,void 0,void 0,(function*(){const{force:n,recursive:A,copySourceDirectory:i}=readCopyOptions(s);const o=(yield c.exists(t))?yield c.stat(t):null;if(o&&o.isFile()&&!n){return}const r=o&&o.isDirectory()&&i?a.join(t,a.basename(e)):t;if(!(yield c.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield c.stat(e);if(l.isDirectory()){if(!A){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,r,0,n)}}else{if(a.relative(e,r)===""){throw new Error(`'${r}' and '${e}' are the same file`)}yield copyFile(e,r,n)}}))}t.cp=cp;function mv(e,t,s={}){return o(this,void 0,void 0,(function*(){if(yield c.exists(t)){let n=true;if(yield c.isDirectory(t)){t=a.join(t,a.basename(e));n=yield c.exists(t)}if(n){if(s.force==null||s.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(a.dirname(t));yield c.rename(e,t)}))}t.mv=mv;function rmRF(e){return o(this,void 0,void 0,(function*(){if(c.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield c.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return o(this,void 0,void 0,(function*(){r.ok(e,"a path argument must be provided");yield c.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(c.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const s=yield findInPath(e);if(s&&s.length>0){return s[0]}return""}))}t.which=which;function findInPath(e){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(c.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(a.delimiter)){if(e){t.push(e)}}}if(c.isRooted(e)){const s=yield c.tryGetExecutablePath(e,t);if(s){return[s]}return[]}if(e.includes(a.sep)){return[]}const s=[];if(process.env.PATH){for(const e of process.env.PATH.split(a.delimiter)){if(e){s.push(e)}}}const n=[];for(const A of s){const s=yield c.tryGetExecutablePath(a.join(A,e),t);if(s){n.push(s)}}return n}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const s=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:s,copySourceDirectory:n}}function cpDirRecursive(e,t,s,n){return o(this,void 0,void 0,(function*(){if(s>=255)return;s++;yield mkdirP(t);const A=yield c.readdir(e);for(const i of A){const A=`${e}/${i}`;const o=`${t}/${i}`;const r=yield c.lstat(A);if(r.isDirectory()){yield cpDirRecursive(A,o,s,n)}else{yield copyFile(A,o,n)}}yield c.chmod(t,(yield c.stat(e)).mode)}))}function copyFile(e,t,s){return o(this,void 0,void 0,(function*(){if((yield c.lstat(e)).isSymbolicLink()){try{yield c.lstat(t);yield c.unlink(t)}catch(e){if(e.code==="EPERM"){yield c.chmod(t,"0666");yield c.unlink(t)}}const s=yield c.readlink(e);yield c.symlink(s,t,c.IS_WINDOWS?"junction":null)}else if(!(yield c.exists(t))||s){yield c.copyFile(e,t)}}))}},308:(e,t,s)=>{(()=>{"use strict";var t={9081:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseCredential=parseCredential;t.isServiceAccountKey=isServiceAccountKey;t.isExternalAccount=isExternalAccount;const n=s(3916);const A=s(6266);function parseCredential(e){e=(e||"").trim();if(!e){throw new Error(`Missing service account key JSON (got empty value)`)}if(!e.startsWith("{")){e=(0,A.fromBase64)(e)}try{const t=JSON.parse(e);return t}catch(e){const t=(0,n.errorMessage)(e);throw new SyntaxError(`Failed to parse service account key JSON credentials: ${t}`)}}function isServiceAccountKey(e){return e.type==="service_account"}function isExternalAccount(e){return e.type!=="external_account"}t["default"]={parseCredential:parseCredential,isServiceAccountKey:isServiceAccountKey,isExternalAccount:isExternalAccount}},3214:function(e,t,s){var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s))t[t.length]=s;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s=ownKeys(e),i=0;i{Object.defineProperty(t,"__esModule",{value:true});t.parseCSV=parseCSV;t.parseMultilineCSV=parseMultilineCSV;function parseCSV(e){e=(e||"").trim();if(!e){return[]}const t=e.split(/(?{Object.defineProperty(t,"__esModule",{value:true});t.toBase64=toBase64;t.fromBase64=fromBase64;function toBase64(e){return Buffer.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function fromBase64(e,t){if(!t){t="utf8"}let s=e.replace(/-/g,"+").replace(/_/g,"/");while(s.length%4)s+="=";return Buffer.from(s,"base64").toString(t)}},3466:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toEnum=toEnum;function toEnum(e,t){const s=(t||"").toUpperCase();const n=s.replace(/[\s-]+/g,"_");if(s in e){return e[s]}else if(n in e){return e[n]}else{const s=Object.keys(e);throw new Error(`Invalid value ${t}, valid values are ${JSON.stringify(s)}`)}}},8204:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.stubEnv=stubEnv;function stubEnv(e,t=process.env){const s={};for(const n in e){s[n]=t[n];if(e[n]!==undefined){t[n]=e[n]}else{delete t[n]}}return()=>{for(const e in s){if(s[e]!==undefined){t[e]=s[e]}else{delete t[e]}}}}},3916:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.errorMessage=errorMessage;t.isNotFoundError=isNotFoundError;function errorMessage(e){let t;if(e===null){t="null"}else if(e===undefined||typeof e==="undefined"){t="undefined"}else if(typeof e==="bigint"||e instanceof BigInt){t=e.toString()}else if(typeof e==="boolean"||e instanceof Boolean){t=e.toString()}else if(e instanceof Error){t=e.message}else if(typeof e==="function"||e instanceof Function){t=errorMessage(e())}else if(typeof e==="number"||e instanceof Number){t=e.toString()}else if(typeof e==="string"||e instanceof String){t=e.toString()}else if(typeof e==="symbol"||e instanceof Symbol){t=e.toString()}else if(typeof e==="object"||e instanceof Object){t=JSON.stringify(e)}else{t=String(`[${typeof e}] ${e}`)}const s=t.trim().replace("Error: ","").trim();if(!s)return"";if(s.length>1&&isUpper(s[0])&&!isUpper(s[1])){return s[0].toLowerCase()+s.slice(1)}return s}function isNotFoundError(e){const t=errorMessage(e);return t.toUpperCase().includes("ENOENT")}function isUpper(e){return e===e.toUpperCase()}},6148:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseFlags=parseFlags;t.readUntil=readUntil;function parseFlags(e){const t=[];let s="";let n=false;for(let A=0;Ae.trim()))}catch(e){if(!(0,o.isNotFoundError)(e)){throw e}}for(let e=0;ee.trim()));s.splice(e,1,...a);e+=a.length}}return s}))}function shouldKeepIgnoreLine(e){const t=(e||"").trim();if(t===""){return false}if(t.startsWith("#")&&!t.startsWith("#!")){return false}return true}},9407:function(e,t,s){var n=this&&this.__createBinding||(Object.create?function(e,t,s,n){if(n===undefined)n=s;var A=Object.getOwnPropertyDescriptor(t,s);if(!A||("get"in A?!t.__esModule:A.writable||A.configurable)){A={enumerable:true,get:function(){return t[s]}}}Object.defineProperty(e,n,A)}:function(e,t,s,n){if(n===undefined)n=s;e[n]=t[s]});var A=this&&this.__exportStar||function(e,t){for(var s in e)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(t,s))n(t,e,s)};Object.defineProperty(t,"__esModule",{value:true});A(s(9081),t);A(s(3214),t);A(s(731),t);A(s(6266),t);A(s(3466),t);A(s(8204),t);A(s(3916),t);A(s(6148),t);A(s(4772),t);A(s(7237),t);A(s(3599),t);A(s(4958),t);A(s(3716),t);A(s(7384),t);A(s(436),t);A(s(9809),t);A(s(8935),t);A(s(9834),t);A(s(6244),t);A(s(5215),t);A(s(286),t)},3599:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseBoolean=parseBoolean;const s={1:true,t:true,T:true,true:true,True:true,TRUE:true,0:false,f:false,F:false,false:false,False:false,FALSE:false};function parseBoolean(e,t=false){const n=(e||"").trim();if(n===""){return t}if(!(n in s)){throw new Error(`invalid boolean value "${n}"`)}return s[n]}},4958:function(e,t,s){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.joinKVString=joinKVString;t.joinKVStringForGCloud=joinKVStringForGCloud;t.parseKVString=parseKVString;t.parseKVFile=parseKVFile;t.parseKVJSON=parseKVJSON;t.parseKVYAML=parseKVYAML;t.parseKVStringAndFile=parseKVStringAndFile;const A=n(s(8815));const i=s(9896);const o=s(3916);const r=s(5215);function joinKVString(e,t=","){return Object.entries(e).map((([e,t])=>`${e}=${t}`)).join(t)}function joinKVStringForGCloud(e,t=",.!@#$%&*()_=+~`[]{}|:;<>?🚀🍪🐼​"){const s=joinKVString(e,"");if(s===""){return""}const n={};for(let e=0;es+=e;const setValue=e=>n+=e;let i=setKey;for(let o=0;o=0){i(r);A=-1}else if(r==="\\"){A=o}else if(r==="="){if(s===""){throw new Error(`Invalid start sequence for value (no preceeding key before "=") at ${o}`)}if(i===setValue){i(r)}i=setValue}else if(r==="\n"||r==="\r"||r==="\u2028"||r==="\u2029"||r===","){if(s!==""){t[s.trim()]=n.trim()}s="";n="";i=setKey}else{i(r)}}if(A>=0){throw new Error(`Unterminated escape character at ${A}`)}if(s!==""){t[s.trim()]=n.trim()}return t}function parseKVFile(e){try{const t=(0,r.presence)((0,i.readFileSync)(e,"utf8"));if(!t||t.length<1){return undefined}if(t[0]==="{"||t[0]==="["){return parseKVJSON(t)}if(t.match(/^.+=.+/gi)){return parseKVString(t)}return parseKVYAML(t)}catch(t){const s=(0,o.errorMessage)(t);throw new Error(`Failed to read file '${e}': ${s}`)}}function parseKVJSON(e){e=(e||"").trim();if(!e){return undefined}if(e==="{}"){return{}}try{const t=JSON.parse(e);const s={};for(const[e,n]of Object.entries(t)){if(typeof e!=="string"){throw new SyntaxError(`Failed to parse key "${e}", expected string, got ${typeof e}`)}if(e.trim()===""){throw new SyntaxError(`Failed to parse key "${e}", expected at least one character`)}if(typeof n!=="string"){const t=JSON.stringify(n);throw new SyntaxError(`Failed to parse value "${t}" for "${e}", expected string, got ${typeof n}`)}if(n.trim()===""){throw new SyntaxError(`Value for key "${e}" cannot be empty (got "${n}")`)}s[e]=n}return s}catch(e){const t=(0,o.errorMessage)(e);throw new Error(`Failed to parse KV pairs as JSON: ${t}`)}}function parseKVYAML(e){const t=(e||"").trim();if(!t){return undefined}if(t==="{}"){return{}}const s=A.default.parse(e);const n={};for(const[e,t]of Object.entries(s)){if(typeof e!=="string"||typeof t!=="string"){throw new SyntaxError(`env_vars_file must contain only KEY: VALUE strings. Error parsing key ${e} of type ${typeof e} with value ${t} of type ${typeof t}`)}n[e.trim()]=t.trim()}return n}function parseKVStringAndFile(e,t){e=(e||"").trim();t=(t||"").trim();const s=t?parseKVFile(t):undefined;const n=e?parseKVString(e):undefined;if(s===undefined&&n===undefined){return undefined}return Object.assign({},s,n)}},3716:function(e,t,s){var n=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var A=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],s;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),s={},verb("next"),verb("throw"),verb("return"),s[Symbol.asyncIterator]=function(){return this},s);function verb(t){s[t]=e[t]&&function(s){return new Promise((function(n,A){s=e[t](s),settle(n,A,s.done,s.value)}))}}function settle(e,t,s,n){Promise.resolve(n).then((function(t){e({value:t,done:s})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.inParallel=inParallel;const i=s(857);const o=s(3916);function inParallel(e,t){return n(this,void 0,void 0,(function*(){t=Math.min(t||(0,i.cpus)().length-1);if(t<1){throw new Error(`concurrency must be at least 1`)}const s=[];const r=[];const runTasks=e=>n(this,void 0,void 0,(function*(){var t,n,i;var a,c,l,u;try{for(t=true,n=A(e);i=yield n.next(),a=i.done,!a;t=true){u=i.value;t=false;const[e,n]=u;try{s[e]=yield n()}catch(e){r.push((0,o.errorMessage)(e))}}}catch(e){c={error:e}}finally{try{if(!t&&!a&&(l=n.return))yield l.call(n)}finally{if(c)throw c.error}}}));const a=new Array(t).fill(e.entries()).map(runTasks);yield Promise.allSettled(a);if(r.length>0){throw new Error(r.join("\n"))}return s}))}},7384:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:true});t.toPosixPath=toPosixPath;t.toWin32Path=toWin32Path;t.toPlatformPath=toPlatformPath;const n=s(6928);function toPosixPath(e){return e.replace(/[\\]/g,"/")}function toWin32Path(e){return e.replace(/[/]/g,"\\")}function toPlatformPath(e){return e.replace(/[/\\]/g,n.sep)}},436:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:true});t.randomFilename=randomFilename;t.randomFilepath=randomFilepath;const n=s(6928);const A=s(6982);const i=s(857);function randomFilename(e=12){return(0,A.randomBytes)(e).toString("hex")}function randomFilepath(e=(0,i.tmpdir)(),t=12){return(0,n.join)(e,randomFilename(t))}t["default"]={randomFilename:randomFilename,randomFilepath:randomFilepath}},9809:function(e,t,s){var n=this&&this.__awaiter||function(e,t,s,n){function adopt(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,A){function fulfilled(e){try{step(n.next(e))}catch(e){A(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){A(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.withRetries=withRetries;const A=s(3916);const i=s(9834);const o=100;function withRetries(e,t){var s;const r=t.retries;const a=typeof(t===null||t===void 0?void 0:t.backoffLimit)!=="undefined"?Math.max(t.backoffLimit,0):undefined;let c=(s=t.backoff)!==null&&s!==void 0?s:o;if(typeof a!=="undefined"){c=Math.min(c,a)}return function(){return n(this,void 0,void 0,(function*(){let s=r+1;let n=c;const o=a;let l=0;let u="unknown";do{try{return yield e()}catch(e){u=(0,A.errorMessage)(e);--s;if(s>0){yield(0,i.sleep)(n);let e=l+n;if(typeof o!=="undefined"){e=Math.min(e,Number(o))}l=n;n=e}}}while(s>0);const p=t.retries+1;const d=p===1?`1 attempt`:`${p} attempts`;throw new Error(`retry function failed after ${d}: ${u}`)}))}}},8935:function(e,t,s){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.setInput=setInput;t.setInputs=setInputs;t.clearInputs=clearInputs;t.clearEnv=clearEnv;t.skipIfMissingEnv=skipIfMissingEnv;t.assertMembers=assertMembers;const A=n(s(4589));function setInput(e,t){const s=`INPUT_${e.replace(/ /g,"_").toUpperCase()}`;process.env[s]=t}function setInputs(e){Object.entries(e).forEach((([e,t])=>setInput(e,t)))}function clearInputs(){clearEnv((e=>e.startsWith(`INPUT_`)))}function clearEnv(e){Object.keys(process.env).forEach((t=>{if(e(t,process.env[t])){delete process.env[t]}}))}function skipIfMissingEnv(...e){for(const t of e){if(!(t in process.env)){return`missing $${t}`}}return false}function assertMembers(e,t){for(let s=0;s<=e.length-t.length;s++){let n=true;for(let A=0;AsetTimeout(t,e)))}))}},6244:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.expandUniverseEndpoints=expandUniverseEndpoints;function expandUniverseEndpoints(e,t="googleapis.com"){const s=Object.assign({});for(const n in e){const A=`GHA_ENDPOINT_OVERRIDE_${n}`;const i=process.env[A];if(i&&i!==""){s[n]=i.replace(/\/+$/,"")}else{s[n]=e[n].replace(/{universe}/g,t).replace(/\/+$/,"")}}return s}},5215:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.presence=presence;t.exactlyOneOf=exactlyOneOf;t.allOf=allOf;function presence(e){return(e||"").trim()||undefined}function exactlyOneOf(...e){e=e||[];let t=false;for(let s=0;s{Object.defineProperty(t,"__esModule",{value:true});t.isPinnedToHead=isPinnedToHead;t.pinnedToHeadWarning=pinnedToHeadWarning;function isPinnedToHead(){const e=process.env.GITHUB_ACTION_REF;return e==="master"||e==="main"}function pinnedToHeadWarning(e){const t=process.env.GITHUB_ACTION_REF;const s=process.env.GITHUB_ACTION_REPOSITORY;return`${s} is pinned at "${t}". We strongly advise against `+`pinning to "@${t}" as it may be unstable. Please update your `+`GitHub Action YAML from:\n`+`\n`+` uses: '${s}@${t}'\n`+`\n`+`to:\n`+`\n`+` uses: '${s}@${e}'\n`+`\n`+`Alternatively, you can pin to any git tag or git SHA in the repository.`}},6982:e=>{e.exports=s(6113)},9896:e=>{e.exports=s(7147)},4589:e=>{e.exports=s(8061)},4573:e=>{e.exports=s(2254)},1708:e=>{e.exports=s(7742)},857:e=>{e.exports=s(2037)},6928:e=>{e.exports=s(1017)},1493:e=>{e.exports=s(4655)},7349:(e,t,s)=>{var n=s(1127);var A=s(3301);var i=s(4454);var o=s(2223);var r=s(7103);var a=s(334);var c=s(3142);function resolveCollection(e,t,s,n,A,i){const o=s.type==="block-map"?r.resolveBlockMap(e,t,s,n,i):s.type==="block-seq"?a.resolveBlockSeq(e,t,s,n,i):c.resolveFlowCollection(e,t,s,n,i);const l=o.constructor;if(A==="!"||A===l.tagName){o.tag=l.tagName;return o}if(A)o.tag=A;return o}function composeCollection(e,t,s,r,a){const c=r.tag;const l=!c?null:t.directives.tagName(c.source,(e=>a(c,"TAG_RESOLVE_FAILED",e)));if(s.type==="block-seq"){const{anchor:e,newlineAfterProp:t}=r;const s=e&&c?e.offset>c.offset?e:c:e??c;if(s&&(!t||t.offsete.tag===l&&e.collection===u));if(!p){const n=t.schema.knownTags[l];if(n&&n.collection===u){t.schema.tags.push(Object.assign({},n,{default:false}));p=n}else{if(n){a(c,"BAD_COLLECTION_TYPE",`${n.tag} used for ${u} collection, but expects ${n.collection??"scalar"}`,true)}else{a(c,"TAG_RESOLVE_FAILED",`Unresolved tag: ${l}`,true)}return resolveCollection(e,t,s,a,l)}}const d=resolveCollection(e,t,s,a,l,p);const g=p.resolve?.(d,(e=>a(c,"TAG_RESOLVE_FAILED",e)),t.options)??d;const h=n.isNode(g)?g:new A.Scalar(g);h.range=d.range;h.tag=l;if(p?.format)h.format=p.format;return h}t.composeCollection=composeCollection},3683:(e,t,s)=>{var n=s(3021);var A=s(5937);var i=s(7788);var o=s(4631);function composeDoc(e,t,{offset:s,start:r,value:a,end:c},l){const u=Object.assign({_directives:t},e);const p=new n.Document(undefined,u);const d={atKey:false,atRoot:true,directives:p.directives,options:p.options,schema:p.schema};const g=o.resolveProps(r,{indicator:"doc-start",next:a??c?.[0],offset:s,onError:l,parentIndent:0,startOnNewline:true});if(g.found){p.directives.docStart=true;if(a&&(a.type==="block-map"||a.type==="block-seq")&&!g.hasNewline)l(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}p.contents=a?A.composeNode(d,a,g,l):A.composeEmptyNode(d,g.end,r,null,g,l);const h=p.contents.range[2];const f=i.resolveEnd(c,h,false,l);if(f.comment)p.comment=f.comment;p.range=[s,h,f.offset];return p}t.composeDoc=composeDoc},5937:(e,t,s)=>{var n=s(4065);var A=s(1127);var i=s(7349);var o=s(5413);var r=s(7788);var a=s(2599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,s,n){const r=e.atKey;const{spaceBefore:a,comment:l,anchor:u,tag:p}=s;let d;let g=true;switch(t.type){case"alias":d=composeAlias(e,t,n);if(u||p)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":d=o.composeScalar(e,t,p,n);if(u)d.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":d=i.composeCollection(c,e,t,s,n);if(u)d.anchor=u.source.substring(1);break;default:{const A=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",A);d=composeEmptyNode(e,t.offset,undefined,null,s,n);g=false}}if(u&&d.anchor==="")n(u,"BAD_ALIAS","Anchor cannot be an empty string");if(r&&e.options.stringKeys&&(!A.isScalar(d)||typeof d.value!=="string"||d.tag&&d.tag!=="tag:yaml.org,2002:str")){const e="With stringKeys, all keys must be strings";n(p??t,"NON_STRING_KEY",e)}if(a)d.spaceBefore=true;if(l){if(t.type==="scalar"&&t.source==="")d.comment=l;else d.commentBefore=l}if(e.options.keepSourceTokens&&g)d.srcToken=t;return d}function composeEmptyNode(e,t,s,n,{spaceBefore:A,comment:i,anchor:r,tag:c,end:l},u){const p={type:"scalar",offset:a.emptyScalarPosition(t,s,n),indent:-1,source:""};const d=o.composeScalar(e,p,c,u);if(r){d.anchor=r.source.substring(1);if(d.anchor==="")u(r,"BAD_ALIAS","Anchor cannot be an empty string")}if(A)d.spaceBefore=true;if(i){d.comment=i;d.range[2]=l}return d}function composeAlias({options:e},{offset:t,source:s,end:A},i){const o=new n.Alias(s.substring(1));if(o.source==="")i(t,"BAD_ALIAS","Alias cannot be an empty string");if(o.source.endsWith(":"))i(t+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const a=t+s.length;const c=r.resolveEnd(A,a,e.strict,i);o.range=[t,a,c.offset];if(c.comment)o.comment=c.comment;return o}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,s)=>{var n=s(1127);var A=s(3301);var i=s(8913);var o=s(6842);function composeScalar(e,t,s,r){const{value:a,type:c,comment:l,range:u}=t.type==="block-scalar"?i.resolveBlockScalar(e,t,r):o.resolveFlowScalar(t,e.options.strict,r);const p=s?e.directives.tagName(s.source,(e=>r(s,"TAG_RESOLVE_FAILED",e))):null;let d;if(e.options.stringKeys&&e.atKey){d=e.schema[n.SCALAR]}else if(p)d=findScalarTagByName(e.schema,a,p,s,r);else if(t.type==="scalar")d=findScalarTagByTest(e,a,t,r);else d=e.schema[n.SCALAR];let g;try{const i=d.resolve(a,(e=>r(s??t,"TAG_RESOLVE_FAILED",e)),e.options);g=n.isScalar(i)?i:new A.Scalar(i)}catch(e){const n=e instanceof Error?e.message:String(e);r(s??t,"TAG_RESOLVE_FAILED",n);g=new A.Scalar(a)}g.range=u;g.source=a;if(c)g.type=c;if(p)g.tag=p;if(d.format)g.format=d.format;if(l)g.comment=l;return g}function findScalarTagByName(e,t,s,A,i){if(s==="!")return e[n.SCALAR];const o=[];for(const t of e.tags){if(!t.collection&&t.tag===s){if(t.default&&t.test)o.push(t);else return t}}for(const e of o)if(e.test?.test(t))return e;const r=e.knownTags[s];if(r&&!r.collection){e.tags.push(Object.assign({},r,{default:false,test:undefined}));return r}i(A,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,s!=="tag:yaml.org,2002:str");return e[n.SCALAR]}function findScalarTagByTest({atKey:e,directives:t,schema:s},A,i,o){const r=s.tags.find((t=>(t.default===true||e&&t.default==="key")&&t.test?.test(A)))||s[n.SCALAR];if(s.compat){const e=s.compat.find((e=>e.default&&e.test?.test(A)))??s[n.SCALAR];if(r.tag!==e.tag){const s=t.tagString(r.tag);const n=t.tagString(e.tag);const A=`Value may be parsed as either ${s} or ${n}`;o(i,"TAG_RESOLVE_FAILED",A,true)}}return r}t.composeScalar=composeScalar},9984:(e,t,s)=>{var n=s(1708);var A=s(1342);var i=s(3021);var o=s(1464);var r=s(1127);var a=s(3683);var c=s(7788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:s}=e;return[t,t+(typeof s==="string"?s.length:1)]}function parsePrelude(e){let t="";let s=false;let n=false;for(let A=0;A{const A=getErrorPos(e);if(n)this.warnings.push(new o.YAMLWarning(A,t,s));else this.errors.push(new o.YAMLParseError(A,t,s))};this.directives=new A.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:s,afterEmptyLine:n}=parsePrelude(this.prelude);if(s){const A=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${s}`:s}else if(n||e.directives.docStart||!A){e.commentBefore=s}else if(r.isCollection(A)&&!A.flow&&A.items.length>0){let e=A.items[0];if(r.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${s}\n${t}`:s}else{const e=A.commentBefore;A.commentBefore=e?`${s}\n${e}`:s}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,s=-1){for(const t of e)yield*this.next(t);yield*this.end(t,s)}*next(e){if(n.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,s,n)=>{const A=getErrorPos(e);A[0]+=t;this.onError(A,"BAD_DIRECTIVE",s,n)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const s=new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(s);else this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new o.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const s=new i.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");s.range=[0,t,t];this.decorate(s,false);yield s}}}t.Composer=Composer},7103:(e,t,s)=>{var n=s(7165);var A=s(4454);var i=s(4631);var o=s(9499);var r=s(4051);var a=s(1187);const c="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},s,l,u,p){const d=p?.nodeClass??A.YAMLMap;const g=new d(s.schema);if(s.atRoot)s.atRoot=false;let h=l.offset;let f=null;for(const A of l.items){const{start:p,key:d,sep:E,value:C}=A;const Q=i.resolveProps(p,{indicator:"explicit-key-ind",next:d??E?.[0],offset:h,onError:u,parentIndent:l.indent,startOnNewline:true});const B=!Q.found;if(B){if(d){if(d.type==="block-seq")u(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in d&&d.indent!==l.indent)u(h,"BAD_INDENT",c)}if(!Q.anchor&&!Q.tag&&!E){f=Q.end;if(Q.comment){if(g.comment)g.comment+="\n"+Q.comment;else g.comment=Q.comment}continue}if(Q.newlineAfterProp||o.containsNewline(d)){u(d??p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(Q.found?.indent!==l.indent){u(h,"BAD_INDENT",c)}s.atKey=true;const m=Q.end;const I=d?e(s,d,Q,u):t(s,m,p,null,Q,u);if(s.schema.compat)r.flowIndentCheck(l.indent,d,u);s.atKey=false;if(a.mapIncludes(s,g.items,I))u(m,"DUPLICATE_KEY","Map keys must be unique");const y=i.resolveProps(E??[],{indicator:"map-value-ind",next:C,offset:I.range[2],onError:u,parentIndent:l.indent,startOnNewline:!d||d.type==="block-scalar"});h=y.end;if(y.found){if(B){if(C?.type==="block-map"&&!y.hasNewline)u(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(s.options.strict&&Q.start{var n=s(3301);function resolveBlockScalar(e,t,s){const A=t.offset;const i=parseBlockScalarHeader(t,e.options.strict,s);if(!i)return{value:"",type:null,comment:"",range:[A,A,A]};const o=i.mode===">"?n.Scalar.BLOCK_FOLDED:n.Scalar.BLOCK_LITERAL;const r=t.source?splitLines(t.source):[];let a=r.length;for(let e=r.length-1;e>=0;--e){const t=r[e][1];if(t===""||t==="\r")a=e;else break}if(a===0){const e=i.chomp==="+"&&r.length>0?"\n".repeat(Math.max(1,r.length-1)):"";let s=A+i.length;if(t.source)s+=t.source.length;return{value:e,type:o,comment:i.comment,range:[A,s,s]}}let c=t.indent+i.indent;let l=t.offset+i.length;let u=0;for(let t=0;tc)c=n.length}else{if(n.length=a;--e){if(r[e][0].length>c)a=e+1}let p="";let d="";let g=false;for(let e=0;ec||A[0]==="\t"){if(d===" ")d="\n";else if(!g&&d==="\n")d="\n\n";p+=d+t.slice(c)+A;d="\n";g=true}else if(A===""){if(d==="\n")p+="\n";else d="\n"}else{p+=d+A;d=" ";g=false}}switch(i.chomp){case"-":break;case"+":for(let e=a;e{var n=s(2223);var A=s(4631);var i=s(4051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},s,o,r,a){const c=a?.nodeClass??n.YAMLSeq;const l=new c(s.schema);if(s.atRoot)s.atRoot=false;if(s.atKey)s.atKey=false;let u=o.offset;let p=null;for(const{start:n,value:a}of o.items){const c=A.resolveProps(n,{indicator:"seq-item-ind",next:a,offset:u,onError:r,parentIndent:o.indent,startOnNewline:true});if(!c.found){if(c.anchor||c.tag||a){if(a&&a.type==="block-seq")r(c.end,"BAD_INDENT","All sequence items must start at the same column");else r(u,"MISSING_CHAR","Sequence item without - indicator")}else{p=c.end;if(c.comment)l.comment=c.comment;continue}}const d=a?e(s,a,c,r):t(s,c.end,n,null,c,r);if(s.schema.compat)i.flowIndentCheck(o.indent,a,r);u=d.range[2];l.items.push(d)}l.range=[o.offset,u,p??u];return l}t.resolveBlockSeq=resolveBlockSeq},7788:(e,t)=>{function resolveEnd(e,t,s,n){let A="";if(e){let i=false;let o="";for(const r of e){const{source:e,type:a}=r;switch(a){case"space":i=true;break;case"comment":{if(s&&!i)n(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!A)A=t;else A+=o+t;o="";break}case"newline":if(A)o+=e;i=true;break;default:n(r,"UNEXPECTED_TOKEN",`Unexpected ${a} at node end`)}t+=e.length}}return{comment:A,offset:t}}t.resolveEnd=resolveEnd},3142:(e,t,s)=>{var n=s(1127);var A=s(7165);var i=s(4454);var o=s(2223);var r=s(7788);var a=s(4631);var c=s(9499);var l=s(1187);const u="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},s,p,d,g){const h=p.start.source==="{";const f=h?"flow map":"flow sequence";const E=g?.nodeClass??(h?i.YAMLMap:o.YAMLSeq);const C=new E(s.schema);C.flow=true;const Q=s.atRoot;if(Q)s.atRoot=false;if(s.atKey)s.atKey=false;let B=p.offset+p.start.source.length;for(let o=0;o0){const e=r.resolveEnd(y,b,s.options.strict,d);if(e.comment){if(C.comment)C.comment+="\n"+e.comment;else C.comment=e.comment}C.range=[p.offset,b,e.offset]}else{C.range=[p.offset,b,b]}return C}t.resolveFlowCollection=resolveFlowCollection},6842:(e,t,s)=>{var n=s(3301);var A=s(7788);function resolveFlowScalar(e,t,s){const{offset:i,type:o,source:r,end:a}=e;let c;let l;const _onError=(e,t,n)=>s(i+e,t,n);switch(o){case"scalar":c=n.Scalar.PLAIN;l=plainValue(r,_onError);break;case"single-quoted-scalar":c=n.Scalar.QUOTE_SINGLE;l=singleQuotedValue(r,_onError);break;case"double-quoted-scalar":c=n.Scalar.QUOTE_DOUBLE;l=doubleQuotedValue(r,_onError);break;default:s(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`);return{value:"",type:null,comment:"",range:[i,i+r.length,i+r.length]}}const u=i+r.length;const p=A.resolveEnd(a,u,t,s);return{value:l,type:c,comment:p.comment,range:[i,u,p.offset]}}function plainValue(e,t){let s="";switch(e[0]){case"\t":s="a tab character";break;case",":s="flow indicator character ,";break;case"%":s="directive indicator character %";break;case"|":case">":{s=`block scalar indicator ${e[0]}`;break}case"@":case"`":{s=`reserved character ${e[0]}`;break}}if(s)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${s}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,s;try{t=new RegExp("(.*?)(?t?e.slice(t,n+1):A}else{s+=A}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return s}function foldNewline(e,t){let s="";let n=e[t+1];while(n===" "||n==="\t"||n==="\n"||n==="\r"){if(n==="\r"&&e[t+2]!=="\n")break;if(n==="\n")s+="\n";t+=1;n=e[t+1]}if(!s)s=" ";return{fold:s,offset:t}}const i={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,s,n){const A=e.substr(t,s);const i=A.length===s&&/^[0-9a-fA-F]+$/.test(A);const o=i?parseInt(A,16):NaN;if(isNaN(o)){const A=e.substr(t-2,s+2);n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${A}`);return A}return String.fromCodePoint(o)}t.resolveFlowScalar=resolveFlowScalar},4631:(e,t)=>{function resolveProps(e,{flow:t,indicator:s,next:n,offset:A,onError:i,parentIndent:o,startOnNewline:r}){let a=false;let c=r;let l=r;let u="";let p="";let d=false;let g=false;let h=null;let f=null;let E=null;let C=null;let Q=null;let B=null;let m=null;for(const A of e){if(g){if(A.type!=="space"&&A.type!=="newline"&&A.type!=="comma")i(A.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");g=false}if(h){if(c&&A.type!=="comment"&&A.type!=="newline"){i(h,"TAB_AS_INDENT","Tabs are not allowed as indentation")}h=null}switch(A.type){case"space":if(!t&&(s!=="doc-start"||n?.type!=="flow-collection")&&A.source.includes("\t")){h=A}l=true;break;case"comment":{if(!l)i(A,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=A.source.substring(1)||" ";if(!u)u=e;else u+=p+e;p="";c=false;break}case"newline":if(c){if(u)u+=A.source;else if(!B||s!=="seq-item-ind")a=true}else p+=A.source;c=true;d=true;if(f||E)C=A;l=true;break;case"anchor":if(f)i(A,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(A.source.endsWith(":"))i(A.offset+A.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);f=A;if(m===null)m=A.offset;c=false;l=false;g=true;break;case"tag":{if(E)i(A,"MULTIPLE_TAGS","A node can have at most one tag");E=A;if(m===null)m=A.offset;c=false;l=false;g=true;break}case s:if(f||E)i(A,"BAD_PROP_ORDER",`Anchors and tags must be after the ${A.source} indicator`);if(B)i(A,"UNEXPECTED_TOKEN",`Unexpected ${A.source} in ${t??"collection"}`);B=A;c=s==="seq-item-ind"||s==="explicit-key-ind";l=false;break;case"comma":if(t){if(Q)i(A,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);Q=A;c=false;l=false;break}default:i(A,"UNEXPECTED_TOKEN",`Unexpected ${A.type} token`);c=false;l=false}}const I=e[e.length-1];const y=I?I.offset+I.source.length:A;if(g&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")){i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(h&&(c&&h.indent<=o||n?.type==="block-map"||n?.type==="block-seq"))i(h,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:Q,found:B,spaceBefore:a,comment:u,hasNewline:d,anchor:f,tag:E,newlineAfterProp:C,end:y,start:m??y}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},2599:(e,t)=>{function emptyScalarPosition(e,t,s){if(t){if(s===null)s=t.length;for(let n=s-1;n>=0;--n){let s=t[n];switch(s.type){case"space":case"comment":case"newline":e-=s.source.length;continue}s=t[++n];while(s?.type==="space"){e+=s.source.length;s=t[++n]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},4051:(e,t,s)=>{var n=s(9499);function flowIndentCheck(e,t,s){if(t?.type==="flow-collection"){const A=t.end[0];if(A.indent===e&&(A.source==="]"||A.source==="}")&&n.containsNewline(t)){const e="Flow end indicator should be more indented than parent";s(A,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},1187:(e,t,s)=>{var n=s(1127);function mapIncludes(e,t,s){const{uniqueKeys:A}=e.options;if(A===false)return false;const i=typeof A==="function"?A:(e,t)=>e===t||n.isScalar(e)&&n.isScalar(t)&&e.value===t.value;return t.some((e=>i(e.key,s)))}t.mapIncludes=mapIncludes},3021:(e,t,s)=>{var n=s(4065);var A=s(101);var i=s(1127);var o=s(7165);var r=s(4043);var a=s(5840);var c=s(6829);var l=s(1596);var u=s(3661);var p=s(2404);var d=s(1342);class Document{constructor(e,t,s){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,i.NODE_TYPE,{value:i.DOC});let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(s===undefined&&t){s=t;t=undefined}const A=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,stringKeys:false,uniqueKeys:true,version:"1.2"},s);this.options=A;let{version:o}=A;if(s?._directives){this.directives=s._directives.atDocument();if(this.directives.yaml.explicit)o=this.directives.yaml.version}else this.directives=new d.Directives({version:o});this.setSchema(o,s);this.contents=e===undefined?null:this.createNode(e,n,s)}clone(){const e=Object.create(Document.prototype,{[i.NODE_TYPE]:{value:i.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=i.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const s=l.anchorNames(this);e.anchor=!t||s.has(t)?l.findNewAnchor(t||"a",s):t}return new n.Alias(e.anchor)}createNode(e,t,s){let n=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);n=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);n=t}else if(s===undefined&&t){s=t;t=undefined}const{aliasDuplicateObjects:A,anchorPrefix:o,flow:r,keepUndefined:a,onTagObj:c,tag:u}=s??{};const{onAnchor:d,setAnchors:g,sourceObjects:h}=l.createNodeAnchors(this,o||"a");const f={aliasDuplicateObjects:A??true,keepUndefined:a??false,onAnchor:d,onTagObj:c,replacer:n,schema:this.schema,sourceObjects:h};const E=p.createNode(e,u,f);if(r&&i.isCollection(E))E.flow=true;g();return E}createPair(e,t,s={}){const n=this.createNode(e,null,s);const A=this.createNode(t,null,s);return new o.Pair(n,A)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(A.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return i.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(A.isEmptyPath(e))return!t&&i.isScalar(this.contents)?this.contents.value:this.contents;return i.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return i.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(A.isEmptyPath(e))return this.contents!==undefined;return i.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=A.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(A.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=A.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let s;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new d.Directives({version:"1.1"});s={resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new d.Directives({version:e});s={resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;s=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(s)this.schema=new a.Schema(Object.assign(s,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:s,maxAliasCount:n,onAnchor:A,reviver:i}={}){const o={anchors:new Map,doc:this,keep:!e,mapAsMap:s===true,mapKeyWarned:false,maxAliasCount:typeof n==="number"?n:100};const a=r.toJS(this.contents,t??"",o);if(typeof A==="function")for(const{count:e,res:t}of o.anchors.values())A(t,e);return typeof i==="function"?u.applyReviver(i,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return c.stringifyDocument(this,e)}}function assertCollection(e){if(i.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},1596:(e,t,s)=>{var n=s(1127);var A=s(204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const s=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(s)}return true}function anchorNames(e){const t=new Set;A.visit(e,{Value(e,s){if(s.anchor)t.add(s.anchor)}});return t}function findNewAnchor(e,t){for(let s=1;true;++s){const n=`${e}${s}`;if(!t.has(n))return n}}function createNodeAnchors(e,t){const s=[];const A=new Map;let i=null;return{onAnchor:n=>{s.push(n);if(!i)i=anchorNames(e);const A=findNewAnchor(t,i);i.add(A);return A},setAnchors:()=>{for(const e of s){const t=A.get(e);if(typeof t==="object"&&t.anchor&&(n.isScalar(t.node)||n.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:A}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},3661:(e,t)=>{function applyReviver(e,t,s,n){if(n&&typeof n==="object"){if(Array.isArray(n)){for(let t=0,s=n.length;t{var n=s(4065);var A=s(1127);var i=s(3301);const o="tag:yaml.org,2002:";function findTagObject(e,t,s){if(t){const e=s.filter((e=>e.tag===t));const n=e.find((e=>!e.format))??e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return s.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,s){if(A.isDocument(e))e=e.contents;if(A.isNode(e))return e;if(A.isPair(e)){const t=s.schema[A.MAP].createNode?.(s.schema,null,s);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:r,onAnchor:a,onTagObj:c,schema:l,sourceObjects:u}=s;let p=undefined;if(r&&e&&typeof e==="object"){p=u.get(e);if(p){if(!p.anchor)p.anchor=a(e);return new n.Alias(p.anchor)}else{p={anchor:null,node:null};u.set(e,p)}}if(t?.startsWith("!!"))t=o+t.slice(2);let d=findTagObject(e,t,l.tags);if(!d){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new i.Scalar(e);if(p)p.node=t;return t}d=e instanceof Map?l[A.MAP]:Symbol.iterator in Object(e)?l[A.SEQ]:l[A.MAP]}if(c){c(d);delete s.onTagObj}const g=d?.createNode?d.createNode(s.schema,e,s):typeof d?.nodeClass?.from==="function"?d.nodeClass.from(s.schema,e,s):new i.Scalar(e);if(t)g.tag=t;else if(!d.default)g.tag=d.tag;if(p)p.node=g;return g}t.createNode=createNode},1342:(e,t,s)=>{var n=s(1127);var A=s(204);const i={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>i[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const s=e.trim().split(/[ \t]+/);const n=s.shift();switch(n){case"%TAG":{if(s.length!==2){t(0,"%TAG directive should contain exactly two parts");if(s.length<2)return false}const[e,n]=s;this.tags[e]=n;return true}case"%YAML":{this.yaml.explicit=true;if(s.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=s;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const s=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,s);return false}}default:t(0,`Unknown directive ${n}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const s=e.slice(2,-1);if(s==="!"||s==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return s}const[,s,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);const A=this.tags[s];if(A){try{return A+decodeURIComponent(n)}catch(e){t(String(e));return null}}if(s==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,s]of Object.entries(this.tags)){if(e.startsWith(s))return t+escapeTagName(e.substring(s.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const s=Object.entries(this.tags);let i;if(e&&s.length>0&&n.isNode(e.contents)){const t={};A.visit(e.contents,((e,s)=>{if(n.isNode(s)&&s.tag)t[s.tag]=true}));i=Object.keys(t)}else i=[];for(const[n,A]of s){if(n==="!!"&&A==="tag:yaml.org,2002:")continue;if(!e||i.some((e=>e.startsWith(A))))t.push(`%TAG ${n} ${A}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},1464:(e,t)=>{class YAMLError extends Error{constructor(e,t,s,n){super();this.name=e;this.code=s;this.message=n;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,s){super("YAMLParseError",e,t,s)}}class YAMLWarning extends YAMLError{constructor(e,t,s){super("YAMLWarning",e,t,s)}}const prettifyError=(e,t)=>s=>{if(s.pos[0]===-1)return;s.linePos=s.pos.map((e=>t.linePos(e)));const{line:n,col:A}=s.linePos[0];s.message+=` at line ${n}, column ${A}`;let i=A-1;let o=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const e=Math.min(i-39,o.length-79);o="…"+o.substring(e);i-=e-1}if(o.length>80)o=o.substring(0,79)+"…";if(n>1&&/^ *$/.test(o.substring(0,i))){let s=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(s.length>80)s=s.substring(0,79)+"…\n";o=s+o}if(/[^ ]/.test(o)){let e=1;const t=s.linePos[1];if(t&&t.line===n&&t.col>A){e=Math.max(1,Math.min(t.col-A,80-i))}const r=" ".repeat(i)+"^".repeat(e);s.message+=`:\n\n${o}\n${r}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},8815:(e,t,s)=>{var n=s(9984);var A=s(3021);var i=s(5840);var o=s(1464);var r=s(4065);var a=s(1127);var c=s(7165);var l=s(3301);var u=s(4454);var p=s(2223);var d=s(3461);var g=s(361);var h=s(6628);var f=s(3456);var E=s(4047);var C=s(204);t.Composer=n.Composer;t.Document=A.Document;t.Schema=i.Schema;t.YAMLError=o.YAMLError;t.YAMLParseError=o.YAMLParseError;t.YAMLWarning=o.YAMLWarning;t.Alias=r.Alias;t.isAlias=a.isAlias;t.isCollection=a.isCollection;t.isDocument=a.isDocument;t.isMap=a.isMap;t.isNode=a.isNode;t.isPair=a.isPair;t.isScalar=a.isScalar;t.isSeq=a.isSeq;t.Pair=c.Pair;t.Scalar=l.Scalar;t.YAMLMap=u.YAMLMap;t.YAMLSeq=p.YAMLSeq;t.CST=d;t.Lexer=g.Lexer;t.LineCounter=h.LineCounter;t.Parser=f.Parser;t.parse=E.parse;t.parseAllDocuments=E.parseAllDocuments;t.parseDocument=E.parseDocument;t.stringify=E.stringify;t.visit=C.visit;t.visitAsync=C.visitAsync},7249:(e,t,s)=>{var n=s(1708);function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof n.emitWarning==="function")n.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,s)=>{var n=s(1596);var A=s(204);var i=s(1127);var o=s(6673);var r=s(4043);class Alias extends o.NodeBase{constructor(e){super(i.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t=undefined;A.visit(e,{Node:(e,s)=>{if(s===this)return A.visit.BREAK;if(s.anchor===this.source)t=s}});return t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:s,doc:n,maxAliasCount:A}=t;const i=this.resolve(n);if(!i){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let o=s.get(i);if(!o){r.toJS(i,null,t);o=s.get(i)}if(!o||o.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(A>=0){o.count+=1;if(o.aliasCount===0)o.aliasCount=getAliasCount(n,i,s);if(o.count*o.aliasCount>A){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return o.res}toString(e,t,s){const A=`*${this.source}`;if(e){n.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${A} `}return A}}function getAliasCount(e,t,s){if(i.isAlias(t)){const n=t.resolve(e);const A=s&&n&&s.get(n);return A?A.count*A.aliasCount:0}else if(i.isCollection(t)){let n=0;for(const A of t.items){const t=getAliasCount(e,A,s);if(t>n)n=t}return n}else if(i.isPair(t)){const n=getAliasCount(e,t.key,s);const A=getAliasCount(e,t.value,s);return Math.max(n,A)}return 1}t.Alias=Alias},101:(e,t,s)=>{var n=s(2404);var A=s(1127);var i=s(6673);function collectionFromPath(e,t,s){let A=s;for(let e=t.length-1;e>=0;--e){const s=t[e];if(typeof s==="number"&&Number.isInteger(s)&&s>=0){const e=[];e[s]=A;A=e}else{A=new Map([[s,A]])}}return n.createNode(A,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends i.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>A.isNode(t)||A.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[s,...n]=e;const i=this.get(s,true);if(A.isCollection(i))i.addIn(n,t);else if(i===undefined&&this.schema)this.set(s,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}}deleteIn(e){const[t,...s]=e;if(s.length===0)return this.delete(t);const n=this.get(t,true);if(A.isCollection(n))return n.deleteIn(s);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){const[s,...n]=e;const i=this.get(s,true);if(n.length===0)return!t&&A.isScalar(i)?i.value:i;else return A.isCollection(i)?i.getIn(n,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!A.isPair(t))return false;const s=t.value;return s==null||e&&A.isScalar(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag}))}hasIn(e){const[t,...s]=e;if(s.length===0)return this.has(t);const n=this.get(t,true);return A.isCollection(n)?n.hasIn(s):false}setIn(e,t){const[s,...n]=e;if(n.length===0){this.set(s,t)}else{const e=this.get(s,true);if(A.isCollection(e))e.setIn(n,t);else if(e===undefined&&this.schema)this.set(s,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}}}t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},6673:(e,t,s)=>{var n=s(3661);var A=s(1127);var i=s(4043);class NodeBase{constructor(e){Object.defineProperty(this,A.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:o,reviver:r}={}){if(!A.isDocument(e))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof s==="number"?s:100};const c=i.toJS(this,"",a);if(typeof o==="function")for(const{count:e,res:t}of a.anchors.values())o(t,e);return typeof r==="function"?n.applyReviver(r,{"":c},"",c):c}}t.NodeBase=NodeBase},7165:(e,t,s)=>{var n=s(2404);var A=s(9748);var i=s(7104);var o=s(1127);function createPair(e,t,s){const A=n.createNode(e,undefined,s);const i=n.createNode(t,undefined,s);return new Pair(A,i)}class Pair{constructor(e,t=null){Object.defineProperty(this,o.NODE_TYPE,{value:o.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:s}=this;if(o.isNode(t))t=t.clone(e);if(o.isNode(s))s=s.clone(e);return new Pair(t,s)}toJSON(e,t){const s=t?.mapAsMap?new Map:{};return i.addPairToJSMap(t,s,this)}toString(e,t,s){return e?.doc?A.stringifyPair(this,e,t,s):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},3301:(e,t,s)=>{var n=s(1127);var A=s(6673);var i=s(4043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends A.NodeBase{constructor(e){super(n.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:i.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},4454:(e,t,s)=>{var n=s(1212);var A=s(7104);var i=s(101);var o=s(1127);var r=s(7165);var a=s(3301);function findPair(e,t){const s=o.isScalar(t)?t.value:t;for(const n of e){if(o.isPair(n)){if(n.key===t||n.key===s)return n;if(o.isScalar(n.key)&&n.key.value===s)return n}}return undefined}class YAMLMap extends i.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(o.MAP,e);this.items=[]}static from(e,t,s){const{keepUndefined:n,replacer:A}=s;const i=new this(e);const add=(e,o)=>{if(typeof A==="function")o=A.call(t,e,o);else if(Array.isArray(A)&&!A.includes(e))return;if(o!==undefined||n)i.items.push(r.createPair(e,o,s))};if(t instanceof Map){for(const[e,s]of t)add(e,s)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){i.items.sort(e.sortMapEntries)}return i}add(e,t){let s;if(o.isPair(e))s=e;else if(!e||typeof e!=="object"||!("key"in e)){s=new r.Pair(e,e?.value)}else s=new r.Pair(e.key,e.value);const n=findPair(this.items,s.key);const A=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${s.key} already set`);if(o.isScalar(n.value)&&a.isScalarValue(s.value))n.value.value=s.value;else n.value=s.value}else if(A){const e=this.items.findIndex((e=>A(s,e)<0));if(e===-1)this.items.push(s);else this.items.splice(e,0,s)}else{this.items.push(s)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const s=this.items.splice(this.items.indexOf(t),1);return s.length>0}get(e,t){const s=findPair(this.items,e);const n=s?.value;return(!t&&o.isScalar(n)?n.value:n)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new r.Pair(e,t),true)}toJSON(e,t,s){const n=s?new s:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(const e of this.items)A.addPairToJSMap(t,n,e);return n}toString(e,t,s){if(!e)return JSON.stringify(this);for(const e of this.items){if(!o.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return n.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},2223:(e,t,s)=>{var n=s(2404);var A=s(1212);var i=s(101);var o=s(1127);var r=s(3301);var a=s(4043);class YAMLSeq extends i.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(o.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const s=this.items.splice(t,1);return s.length>0}get(e,t){const s=asItemIndex(e);if(typeof s!=="number")return undefined;const n=this.items[s];return!t&&o.isScalar(n)?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},7104:(e,t,s)=>{var n=s(7249);var A=s(452);var i=s(2148);var o=s(1127);var r=s(4043);function addPairToJSMap(e,t,{key:s,value:n}){if(o.isNode(s)&&s.addToJSMap)s.addToJSMap(e,t,n);else if(A.isMergeKey(e,s))A.addMergeToJSMap(e,t,n);else{const A=r.toJS(s,"",e);if(t instanceof Map){t.set(A,r.toJS(n,A,e))}else if(t instanceof Set){t.add(A)}else{const i=stringifyKey(s,A,e);const o=r.toJS(n,i,e);if(i in t)Object.defineProperty(t,i,{value:o,writable:true,enumerable:true,configurable:true});else t[i]=o}}return t}function stringifyKey(e,t,s){if(t===null)return"";if(typeof t!=="object")return String(t);if(o.isNode(e)&&s?.doc){const t=i.createStringifyContext(s.doc,{});t.anchors=new Set;for(const e of s.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const A=e.toString(t);if(!s.mapKeyWarned){let e=JSON.stringify(A);if(e.length>40)e=e.substring(0,36)+'..."';n.warn(s.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);s.mapKeyWarned=true}return A}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},1127:(e,t)=>{const s=Symbol.for("yaml.alias");const n=Symbol.for("yaml.document");const A=Symbol.for("yaml.map");const i=Symbol.for("yaml.pair");const o=Symbol.for("yaml.scalar");const r=Symbol.for("yaml.seq");const a=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[a]===s;const isDocument=e=>!!e&&typeof e==="object"&&e[a]===n;const isMap=e=>!!e&&typeof e==="object"&&e[a]===A;const isPair=e=>!!e&&typeof e==="object"&&e[a]===i;const isScalar=e=>!!e&&typeof e==="object"&&e[a]===o;const isSeq=e=>!!e&&typeof e==="object"&&e[a]===r;function isCollection(e){if(e&&typeof e==="object")switch(e[a]){case A:case r:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[a]){case s:case A:case o:case r:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=s;t.DOC=n;t.MAP=A;t.NODE_TYPE=a;t.PAIR=i;t.SCALAR=o;t.SEQ=r;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},4043:(e,t,s)=>{var n=s(1127);function toJS(e,t,s){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),s)));if(e&&typeof e.toJSON==="function"){if(!s||!n.hasAnchor(e))return e.toJSON(t,s);const A={aliasCount:0,count:1,res:undefined};s.anchors.set(e,A);s.onCreate=e=>{A.res=e;delete s.onCreate};const i=e.toJSON(t,s);if(s.onCreate)s.onCreate(i);return i}if(typeof e==="bigint"&&!s?.keep)return Number(e);return e}t.toJS=toJS},110:(e,t,s)=>{var n=s(8913);var A=s(6842);var i=s(1464);var o=s(3069);function resolveAsScalar(e,t=true,s){if(e){const _onError=(e,t,n)=>{const A=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(s)s(A,t,n);else throw new i.YAMLParseError([A,A+1],t,n)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return A.resolveFlowScalar(e,t,_onError);case"block-scalar":return n.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:s=false,indent:n,inFlow:A=false,offset:i=-1,type:r="PLAIN"}=t;const a=o.stringifyString({type:r,value:e},{implicitKey:s,indent:n>0?" ".repeat(n):"",inFlow:A,options:{blockQuote:true,lineWidth:-1}});const c=t.end??[{type:"newline",offset:-1,indent:n,source:"\n"}];switch(a[0]){case"|":case">":{const e=a.indexOf("\n");const t=a.substring(0,e);const s=a.substring(e+1)+"\n";const A=[{type:"block-scalar-header",offset:i,indent:n,source:t}];if(!addEndtoBlockProps(A,c))A.push({type:"newline",offset:-1,indent:n,source:"\n"});return{type:"block-scalar",offset:i,indent:n,props:A,source:s}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:a,end:c};default:return{type:"scalar",offset:i,indent:n,source:a,end:c}}}function setScalarValue(e,t,s={}){let{afterKey:n=false,implicitKey:A=false,inFlow:i=false,type:r}=s;let a="indent"in e?e.indent:null;if(n&&typeof a==="number")a+=2;if(!r)switch(e.type){case"single-quoted-scalar":r="QUOTE_SINGLE";break;case"double-quoted-scalar":r="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");r=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:r="PLAIN"}const c=o.stringifyString({type:r,value:t},{implicitKey:A||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:true,lineWidth:-1}});switch(c[0]){case"|":case">":setBlockScalarValue(e,c);break;case'"':setFlowScalarValue(e,c,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,c,"single-quoted-scalar");break;default:setFlowScalarValue(e,c,"scalar")}}function setBlockScalarValue(e,t){const s=t.indexOf("\n");const n=t.substring(0,s);const A=t.substring(s+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=n;e.source=A}else{const{offset:t}=e;const s="indent"in e?e.indent:-1;const i=[{type:"block-scalar-header",offset:t,indent:s,source:n}];if(!addEndtoBlockProps(i,"end"in e?e.end:undefined))i.push({type:"newline",offset:-1,indent:s,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:s,props:i,source:A})}}function addEndtoBlockProps(e,t){if(t)for(const s of t)switch(s.type){case"space":case"comment":e.push(s);break;case"newline":e.push(s);return true}return false}function setFlowScalarValue(e,t,s){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=s;e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let A=t.length;if(e.props[0].type==="block-scalar-header")A-=e.props[0].source.length;for(const e of n)e.offset+=A;delete e.props;Object.assign(e,{type:s,source:t,end:n});break}case"block-map":case"block-seq":{const n=e.offset+t.length;const A={type:"newline",offset:n,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:s,source:t,end:[A]});break}default:{const n="indent"in e?e.indent:-1;const A="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:s,indent:n,source:t,end:A})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},1733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const s of e.props)t+=stringifyToken(s);return t+e.source}case"block-map":case"block-seq":{let t="";for(const s of e.items)t+=stringifyItem(s);return t}case"flow-collection":{let t=e.start.source;for(const s of e.items)t+=stringifyItem(s);for(const s of e.end)t+=s.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const s of e.end)t+=s.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const s of e.end)t+=s.source;return t}}}function stringifyItem({start:e,key:t,sep:s,value:n}){let A="";for(const t of e)A+=t.source;if(t)A+=stringifyToken(t);if(s)for(const e of s)A+=e.source;if(n)A+=stringifyToken(n);return A}t.stringify=stringify},7715:(e,t)=>{const s=Symbol("break visit");const n=Symbol("skip children");const A=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=s;visit.SKIP=n;visit.REMOVE=A;visit.itemAtPath=(e,t)=>{let s=e;for(const[e,n]of t){const t=s?.[e];if(t&&"items"in t){s=t.items[n]}else return undefined}return s};visit.parentCollection=(e,t)=>{const s=visit.itemAtPath(e,t.slice(0,-1));const n=t[t.length-1][0];const A=s?.[n];if(A&&"items"in A)return A;throw new Error("Parent collection not found")};function _visit(e,t,n){let i=n(t,e);if(typeof i==="symbol")return i;for(const o of["key","value"]){const r=t[o];if(r&&"items"in r){for(let t=0;t{var n=s(110);var A=s(1733);var i=s(7715);const o="\ufeff";const r="";const a="";const c="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case o:return"";case r:return"";case a:return"";case c:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case o:return"byte-order-mark";case r:return"doc-mode";case a:return"flow-error-end";case c:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=n.createScalarToken;t.resolveAsScalar=n.resolveAsScalar;t.setScalarValue=n.setScalarValue;t.stringify=A.stringify;t.visit=i.visit;t.BOM=o;t.DOCUMENT=r;t.FLOW_END=a;t.SCALAR=c;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},361:(e,t,s)=>{var n=s(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const A=new Set("0123456789ABCDEFabcdef");const i=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const o=new Set(",[]{}");const r=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||r.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let s=this.next??"stream";while(s&&(t||this.hasChars(1)))s=yield*this.parseNext(s)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let s=0;while(t===" ")t=this.buffer[++s+e];if(t==="\r"){const t=this.buffer[s+e+1];if(t==="\n"||!t&&!this.atEnd)return e+s+1}return t==="\n"||s>=this.indentNext||!t&&!this.atEnd?e+s:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&ethis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let s=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=s=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const A=this.getLine();if(A===null)return this.setNext("flow");if(s!==-1&&s"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let s;e:for(let n=this.pos;s=this.buffer[n];++n){switch(s){case" ":t+=1;break;case"\n":e=n;t=0;break;case"\r":{const e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let A=e+1;s=this.buffer[A];while(s===" ")s=this.buffer[++A];if(s==="\t"){while(s==="\t"||s===" "||s==="\r"||s==="\n")s=this.buffer[++A];e=A-1}else if(!this.blockScalarKeep){do{let s=e-1;let n=this.buffer[s];if(n==="\r")n=this.buffer[--s];const A=s;while(n===" ")n=this.buffer[--s];if(n==="\n"&&s>=this.pos&&s+1+t>A)e=s;else break}while(true)}yield n.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let s=this.pos-1;let A;while(A=this.buffer[++s]){if(A===":"){const n=this.buffer[s+1];if(isEmpty(n)||e&&o.has(n))break;t=s}else if(isEmpty(A)){let n=this.buffer[s+1];if(A==="\r"){if(n==="\n"){s+=1;A="\n";n=this.buffer[s+1]}else t=s}if(n==="#"||e&&o.has(n))break;if(A==="\n"){const e=this.continueScalar(s+1);if(e===-1)break;s=Math.max(s,e-2)}}else{if(e&&o.has(A))break;t=s}}if(!A&&!this.atEnd)return this.setNext("plain-scalar");yield n.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const s=this.buffer.slice(this.pos,e);if(s){yield s;this.pos+=s.length;return s.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&o.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(i.has(t))t=this.buffer[++e];else if(t==="%"&&A.has(this.buffer[e+1])&&A.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let s;do{s=this.buffer[++t]}while(s===" "||e&&s==="\t");const n=t-this.pos;if(n>0){yield this.buffer.substr(this.pos,n);this.pos=t}return n}*pushUntil(e){let t=this.pos;let s=this.buffer[t];while(!e(s))s=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},6628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let s=this.lineStarts.length;while(t>1;if(this.lineStarts[n]{var n=s(1708);var A=s(3461);var i=s(361);function includesToken(e,t){for(let s=0;s=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new i.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const s of this.lexer.lex(e,t))yield*this.next(s);if(!t)yield*this.end()}*next(e){this.source=e;if(n.env.LOG_TOKENS)console.log("|",A.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=A.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const s=e.items[e.items.length-1];if(s.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(s.sep){s.value=t}else{Object.assign(s,{key:t,sep:[]});this.onKeyLine=!s.explicitKey;return}break}case"block-seq":{const s=e.items[e.items.length-1];if(s.value)e.items.push({start:[],value:t});else s.value=t;break}case"flow-collection":{const s=e.items[e.items.length-1];if(!s||s.value)e.items.push({start:[],key:t,sep:[]});else if(s.sep)s.value=t;else Object.assign(s,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const s=t.items[t.items.length-1];if(s&&!s.sep&&!s.value&&s.start.length>0&&findNonEmptyIndex(s.start)===-1&&(t.indent===0||s.start.every((e=>e.type!=="comment"||e.indent=e.indent){const s=!this.onKeyLine&&this.indent===e.indent;const n=s&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let A=[];if(n&&t.sep&&!t.value){const s=[];for(let n=0;ne.indent)s.length=0;break;default:s.length=0}}if(s.length>=2)A=t.sep.splice(s[1])}switch(this.type){case"anchor":case"tag":if(n||t.value){A.push(this.sourceToken);e.items.push({start:A});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(n||t.value){A.push(this.sourceToken);e.items.push({start:A,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const s=t.key;const n=t.sep;n.push(this.sourceToken);delete t.key;delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:s,sep:n}]})}else if(A.length>0){t.sep=t.sep.concat(A,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||n){e.items.push({start:A,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);if(n||t.value){e.items.push({start:A,key:s,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(s)}else{Object.assign(t,{key:s,sep:[]});this.onKeyLine=true}return}default:{const n=this.startBlockValue(e);if(n){if(n.type==="block-seq"){if(!t.explicitKey&&t.sep&&!includesToken(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(s){e.items.push({start:A})}this.stack.push(n);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const s="end"in t.value?t.value.end:undefined;const n=Array.isArray(s)?s[s.length-1]:undefined;if(n?.type==="comment")s?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const s=e.items[e.items.length-2];const n=s?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start);n.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:s,sep:[]});else if(t.sep)this.stack.push(s);else Object.assign(t,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const s=this.startBlockValue(e);if(s)this.stack.push(s);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const s=getPrevProps(t);const n=getFirstKeyStartProps(s);fixFlowSeqItems(e);const A=e.end.splice(1,e.end.length);A.push(this.sourceToken);const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:A}]};this.onKeyLine=true;this.stack[this.stack.length-1]=i}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const s=getFirstKeyStartProps(t);s.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const s=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},4047:(e,t,s)=>{var n=s(9984);var A=s(3021);var i=s(1464);var o=s(7249);var r=s(1127);var a=s(6628);var c=s(3456);function parseOptions(e){const t=e.prettyErrors!==false;const s=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:s,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:s,prettyErrors:A}=parseOptions(t);const o=new c.Parser(s?.addNewLine);const r=new n.Composer(t);const a=Array.from(r.compose(o.parse(e)));if(A&&s)for(const t of a){t.errors.forEach(i.prettifyError(e,s));t.warnings.forEach(i.prettifyError(e,s))}if(a.length>0)return a;return Object.assign([],{empty:true},r.streamInfo())}function parseDocument(e,t={}){const{lineCounter:s,prettyErrors:A}=parseOptions(t);const o=new c.Parser(s?.addNewLine);const r=new n.Composer(t);let a=null;for(const t of r.compose(o.parse(e),true,e.length)){if(!a)a=t;else if(a.options.logLevel!=="silent"){a.errors.push(new i.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(A&&s){a.errors.forEach(i.prettifyError(e,s));a.warnings.forEach(i.prettifyError(e,s))}return a}function parse(e,t,s){let n=undefined;if(typeof t==="function"){n=t}else if(s===undefined&&t&&typeof t==="object"){s=t}const A=parseDocument(e,s);if(!A)return null;A.warnings.forEach((e=>o.warn(A.options.logLevel,e)));if(A.errors.length>0){if(A.options.logLevel!=="silent")throw A.errors[0];else A.errors=[]}return A.toJS(Object.assign({reviver:n},s))}function stringify(e,t,s){let n=null;if(typeof t==="function"||Array.isArray(t)){n=t}else if(s===undefined&&t){s=t}if(typeof s==="string")s=s.length;if(typeof s==="number"){const e=Math.round(s);s=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=s??t??{};if(!e)return undefined}if(r.isDocument(e)&&!n)return e.toString(s);return new A.Document(e,n,s).toString(s)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},5840:(e,t,s)=>{var n=s(1127);var A=s(7451);var i=s(1706);var o=s(6464);var r=s(18);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:s,resolveKnownTags:a,schema:c,sortMapEntries:l,toStringDefaults:u}){this.compat=Array.isArray(e)?r.getTags(e,"compat"):e?r.getTags(null,e):null;this.name=typeof c==="string"&&c||"core";this.knownTags=a?r.coreKnownTags:{};this.tags=r.getTags(t,this.name,s);this.toStringOptions=u??null;Object.defineProperty(this,n.MAP,{value:A.map});Object.defineProperty(this,n.SCALAR,{value:o.string});Object.defineProperty(this,n.SEQ,{value:i.seq});this.sortMapEntries=typeof l==="function"?l:l===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},7451:(e,t,s)=>{var n=s(1127);var A=s(4454);const i={collection:"map",default:true,nodeClass:A.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!n.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,s)=>A.YAMLMap.from(e,t,s)};t.map=i},3632:(e,t,s)=>{var n=s(3301);const A={identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new n.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&A.test.test(e)?e:t.options.nullStr};t.nullTag=A},1706:(e,t,s)=>{var n=s(1127);var A=s(2223);const i={collection:"seq",default:true,nodeClass:A.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!n.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,s)=>A.YAMLSeq.from(e,t,s)};t.seq=i},6464:(e,t,s)=>{var n=s(3069);const A={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,s,A){t=Object.assign({actualString:true},t);return n.stringifyString(e,t,s,A)}};t.string=A},3959:(e,t,s)=>{var n=s(3301);const A={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new n.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},s){if(e&&A.test.test(e)){const s=e[0]==="t"||e[0]==="T";if(t===s)return e}return t?s.options.trueStr:s.options.falseStr}};t.boolTag=A},8405:(e,t,s)=>{var n=s(3301);var A=s(8689);const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:A.stringifyNumber};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():A.stringifyNumber(e)}};const r={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new n.Scalar(parseFloat(e));const s=e.indexOf(".");if(s!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-s-1;return t},stringify:A.stringifyNumber};t.float=r;t.floatExp=o;t.floatNaN=i},9874:(e,t,s)=>{var n=s(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,s,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),s);function intStringify(e,t,s){const{value:A}=e;if(intIdentify(A)&&A>=0)return s+A.toString(t);return n.stringifyNumber(e)}const A={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,s)=>intResolve(e,2,8,s),stringify:e=>intStringify(e,8,"0o")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,s)=>intResolve(e,0,10,s),stringify:n.stringifyNumber};const o={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,s)=>intResolve(e,2,16,s),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intHex=o;t.intOct=A},896:(e,t,s)=>{var n=s(7451);var A=s(3632);var i=s(1706);var o=s(6464);var r=s(3959);var a=s(8405);var c=s(9874);const l=[n.map,i.seq,o.string,A.nullTag,r.boolTag,c.intOct,c.int,c.intHex,a.floatNaN,a.floatExp,a.float];t.schema=l},3559:(e,t,s)=>{var n=s(3301);var A=s(7451);var i=s(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const o=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new n.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:s})=>s?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const r={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const a=[A.map,i.seq].concat(o,r);t.schema=a},18:(e,t,s)=>{var n=s(7451);var A=s(3632);var i=s(1706);var o=s(6464);var r=s(3959);var a=s(8405);var c=s(9874);var l=s(896);var u=s(3559);var p=s(6083);var d=s(452);var g=s(303);var h=s(8385);var f=s(5913);var E=s(1528);var C=s(6752);const Q=new Map([["core",l.schema],["failsafe",[n.map,i.seq,o.string]],["json",u.schema],["yaml11",f.schema],["yaml-1.1",f.schema]]);const B={binary:p.binary,bool:r.boolTag,float:a.float,floatExp:a.floatExp,floatNaN:a.floatNaN,floatTime:C.floatTime,int:c.int,intHex:c.intHex,intOct:c.intOct,intTime:C.intTime,map:n.map,merge:d.merge,null:A.nullTag,omap:g.omap,pairs:h.pairs,seq:i.seq,set:E.set,timestamp:C.timestamp};const m={"tag:yaml.org,2002:binary":p.binary,"tag:yaml.org,2002:merge":d.merge,"tag:yaml.org,2002:omap":g.omap,"tag:yaml.org,2002:pairs":h.pairs,"tag:yaml.org,2002:set":E.set,"tag:yaml.org,2002:timestamp":C.timestamp};function getTags(e,t,s){const n=Q.get(t);if(n&&!e){return s&&!n.includes(d.merge)?n.concat(d.merge):n.slice()}let A=n;if(!A){if(Array.isArray(e))A=[];else{const e=Array.from(Q.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)A=A.concat(t)}else if(typeof e==="function"){A=e(A.slice())}if(s)A=A.concat(d.merge);return A.reduce(((e,t)=>{const s=typeof t==="string"?B[t]:t;if(!s){const e=JSON.stringify(t);const s=Object.keys(B).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag ${e}; use one of ${s}`)}if(!e.includes(s))e.push(s);return e}),[])}t.coreKnownTags=m;t.getTags=getTags},6083:(e,t,s)=>{var n=s(4573);var A=s(3301);var i=s(3069);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof n.Buffer==="function"){return n.Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const s=new Uint8Array(t.length);for(let e=0;e{var n=s(3301);function boolStringify({value:e,source:t},s){const n=e?A:i;if(t&&n.test.test(t))return t;return e?s.options.trueStr:s.options.falseStr}const A={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n.Scalar(true),stringify:boolStringify};const i={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n.Scalar(false),stringify:boolStringify};t.falseTag=i;t.trueTag=A},5782:(e,t,s)=>{var n=s(3301);var A=s(8689);const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:A.stringifyNumber};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():A.stringifyNumber(e)}};const r={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new n.Scalar(parseFloat(e.replace(/_/g,"")));const s=e.indexOf(".");if(s!==-1){const n=e.substring(s+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:A.stringifyNumber};t.float=r;t.floatExp=o;t.floatNaN=i},873:(e,t,s)=>{var n=s(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,s,{intAsBigInt:n}){const A=e[0];if(A==="-"||A==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(n){switch(s){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return A==="-"?BigInt(-1)*t:t}const i=parseInt(e,s);return A==="-"?-1*i:i}function intStringify(e,t,s){const{value:A}=e;if(intIdentify(A)){const e=A.toString(t);return A<0?"-"+s+e.substr(1):s+e}return n.stringifyNumber(e)}const A={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,s)=>intResolve(e,2,2,s),stringify:e=>intStringify(e,2,"0b")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,s)=>intResolve(e,1,8,s),stringify:e=>intStringify(e,8,"0")};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,s)=>intResolve(e,0,10,s),stringify:n.stringifyNumber};const r={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,s)=>intResolve(e,2,16,s),stringify:e=>intStringify(e,16,"0x")};t.int=o;t.intBin=A;t.intHex=r;t.intOct=i},452:(e,t,s)=>{var n=s(1127);var A=s(3301);const i="<<";const o={identify:e=>e===i||typeof e==="symbol"&&e.description===i,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new A.Scalar(Symbol(i)),{addToJSMap:addMergeToJSMap}),stringify:()=>i};const isMergeKey=(e,t)=>(o.identify(t)||n.isScalar(t)&&(!t.type||t.type===A.Scalar.PLAIN)&&o.identify(t.value))&&e?.doc.schema.tags.some((e=>e.tag===o.tag&&e.default));function addMergeToJSMap(e,t,s){s=e&&n.isAlias(s)?s.resolve(e.doc):s;if(n.isSeq(s))for(const n of s.items)mergeValue(e,t,n);else if(Array.isArray(s))for(const n of s)mergeValue(e,t,n);else mergeValue(e,t,s)}function mergeValue(e,t,s){const A=e&&n.isAlias(s)?s.resolve(e.doc):s;if(!n.isMap(A))throw new Error("Merge sources must be maps or map aliases");const i=A.toJSON(null,e,Map);for(const[e,s]of i){if(t instanceof Map){if(!t.has(e))t.set(e,s)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:s,writable:true,enumerable:true,configurable:true})}}return t}t.addMergeToJSMap=addMergeToJSMap;t.isMergeKey=isMergeKey;t.merge=o},303:(e,t,s)=>{var n=s(1127);var A=s(4043);var i=s(4454);var o=s(2223);var r=s(8385);class YAMLOMap extends o.YAMLSeq{constructor(){super();this.add=i.YAMLMap.prototype.add.bind(this);this.delete=i.YAMLMap.prototype.delete.bind(this);this.get=i.YAMLMap.prototype.get.bind(this);this.has=i.YAMLMap.prototype.has.bind(this);this.set=i.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const s=new Map;if(t?.onCreate)t.onCreate(s);for(const e of this.items){let i,o;if(n.isPair(e)){i=A.toJS(e.key,"",t);o=A.toJS(e.value,i,t)}else{i=A.toJS(e,"",t)}if(s.has(i))throw new Error("Ordered maps must not include duplicate keys");s.set(i,o)}return s}static from(e,t,s){const n=r.createPairs(e,t,s);const A=new this;A.items=n.items;return A}}YAMLOMap.tag="tag:yaml.org,2002:omap";const a={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const s=r.resolvePairs(e,t);const A=[];for(const{key:e}of s.items){if(n.isScalar(e)){if(A.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{A.push(e.value)}}}return Object.assign(new YAMLOMap,s)},createNode:(e,t,s)=>YAMLOMap.from(e,t,s)};t.YAMLOMap=YAMLOMap;t.omap=a},8385:(e,t,s)=>{var n=s(1127);var A=s(7165);var i=s(3301);var o=s(2223);function resolvePairs(e,t){if(n.isSeq(e)){for(let s=0;s1)t("Each pair must have its own sequence indicator");const e=o.items[0]||new A.Pair(new i.Scalar(null));if(o.commentBefore)e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore;if(o.comment){const t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[s]=n.isPair(o)?o:new A.Pair(o)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,s){const{replacer:n}=s;const i=new o.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";let r=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,String(r++),e);let o,a;if(Array.isArray(e)){if(e.length===2){o=e[0];a=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){o=t[0];a=e[o]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{o=e}i.items.push(A.createPair(o,a,s))}return i}const r={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=r;t.resolvePairs=resolvePairs},5913:(e,t,s)=>{var n=s(7451);var A=s(3632);var i=s(1706);var o=s(6464);var r=s(6083);var a=s(8398);var c=s(5782);var l=s(873);var u=s(452);var p=s(303);var d=s(8385);var g=s(1528);var h=s(6752);const f=[n.map,i.seq,o.string,A.nullTag,a.trueTag,a.falseTag,l.intBin,l.intOct,l.int,l.intHex,c.floatNaN,c.floatExp,c.float,r.binary,u.merge,p.omap,d.pairs,g.set,h.intTime,h.floatTime,h.timestamp];t.schema=f},1528:(e,t,s)=>{var n=s(1127);var A=s(7165);var i=s(4454);class YAMLSet extends i.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(n.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new A.Pair(e.key,null);else t=new A.Pair(e,null);const s=i.findPair(this.items,t.key);if(!s)this.items.push(t)}get(e,t){const s=i.findPair(this.items,e);return!t&&n.isPair(s)?n.isScalar(s.key)?s.key.value:s.key:s}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const s=i.findPair(this.items,e);if(s&&!t){this.items.splice(this.items.indexOf(s),1)}else if(!s&&t){this.items.push(new A.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,s);else throw new Error("Set items must all have null values")}static from(e,t,s){const{replacer:n}=s;const i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof n==="function")e=n.call(t,e,e);i.items.push(A.createPair(e,null,s))}return i}}YAMLSet.tag="tag:yaml.org,2002:set";const o={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,s)=>YAMLSet.from(e,t,s),resolve(e,t){if(n.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=o},6752:(e,t,s)=>{var n=s(8689);function parseSexagesimal(e,t){const s=e[0];const n=s==="-"||s==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const A=n.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return s==="-"?num(-1)*A:A}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return n.stringifyNumber(e);let s="";if(t<0){s="-";t*=num(-1)}const A=num(60);const i=[t%A];if(t<60){i.unshift(0)}else{t=(t-i[0])/A;i.unshift(t%A);if(t>=60){t=(t-i[0])/A;i.unshift(t)}}return s+i.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const A={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:s})=>parseSexagesimal(e,s),stringify:stringifySexagesimal};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const o={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(o.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,s,n,A,i,r,a]=t.map(Number);const c=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(s,n-1,A,i||0,r||0,a||0,c);const u=t[8];if(u&&u!=="Z"){let e=parseSexagesimal(u,false);if(Math.abs(e)<30)e*=60;l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};t.floatTime=i;t.intTime=A;t.timestamp=o},4475:(e,t)=>{const s="flow";const n="block";const A="quoted";function foldFlowLines(e,t,s="flow",{indentAtStart:i,lineWidth:o=80,minContentWidth:r=20,onFold:a,onOverflow:c}={}){if(!o||o<0)return e;if(oo-Math.max(2,r))u.push(0);else d=o-i}let g=undefined;let h=undefined;let f=false;let E=-1;let C=-1;let Q=-1;if(s===n){E=consumeMoreIndentedLines(e,E,t.length);if(E!==-1)d=E+l}for(let i;i=e[E+=1];){if(s===A&&i==="\\"){C=E;switch(e[E+1]){case"x":E+=3;break;case"u":E+=5;break;case"U":E+=9;break;default:E+=1}Q=E}if(i==="\n"){if(s===n)E=consumeMoreIndentedLines(e,E,t.length);d=E+t.length+l;g=undefined}else{if(i===" "&&h&&h!==" "&&h!=="\n"&&h!=="\t"){const t=e[E+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")g=E}if(E>=d){if(g){u.push(g);d=g+l;g=undefined}else if(s===A){while(h===" "||h==="\t"){h=i;i=e[E+=1];f=true}const t=E>Q+1?E-2:C-1;if(p[t])return e;u.push(t);p[t]=true;d=t+l;g=undefined}else{f=true}}}h=i}if(f&&c)c();if(u.length===0)return e;if(a)a();let B=e.slice(0,u[0]);for(let n=0;n{var n=s(1596);var A=s(1127);var i=s(9799);var o=s(3069);function createStringifyContext(e,t){const s=Object.assign({blockQuote:true,commentString:i.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let n;switch(s.collectionStyle){case"block":n=false;break;case"flow":n=true;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:typeof s.indent==="number"?" ".repeat(s.indent):" ",inFlow:n,options:s}}function getTagObject(e,t){if(t.tag){const s=e.filter((e=>e.tag===t.tag));if(s.length>0)return s.find((e=>e.format===t.format))??s[0]}let s=undefined;let n;if(A.isScalar(t)){n=t.value;let A=e.filter((e=>e.identify?.(n)));if(A.length>1){const e=A.filter((e=>e.test));if(e.length>0)A=e}s=A.find((e=>e.format===t.format))??A.find((e=>!e.format))}else{n=t;s=e.find((e=>e.nodeClass&&n instanceof e.nodeClass))}if(!s){const e=n?.constructor?.name??typeof n;throw new Error(`Tag not resolved for ${e} value`)}return s}function stringifyProps(e,t,{anchors:s,doc:i}){if(!i.directives)return"";const o=[];const r=(A.isScalar(e)||A.isCollection(e))&&e.anchor;if(r&&n.anchorIsValid(r)){s.add(r);o.push(`&${r}`)}const a=e.tag?e.tag:t.default?null:t.tag;if(a)o.push(i.directives.tagString(a));return o.join(" ")}function stringify(e,t,s,n){if(A.isPair(e))return e.toString(t,s,n);if(A.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let i=undefined;const r=A.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});if(!i)i=getTagObject(t.doc.schema.tags,r);const a=stringifyProps(r,i,t);if(a.length>0)t.indentAtStart=(t.indentAtStart??0)+a.length+1;const c=typeof i.stringify==="function"?i.stringify(r,t,s,n):A.isScalar(r)?o.stringifyString(r,t,s,n):r.toString(t,s,n);if(!a)return c;return A.isScalar(r)||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a}\n${t.indent}${c}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},1212:(e,t,s)=>{var n=s(1127);var A=s(2148);var i=s(9799);function stringifyCollection(e,t,s){const n=t.inFlow??e.flow;const A=n?stringifyFlowCollection:stringifyBlockCollection;return A(e,t,s)}function stringifyBlockCollection({comment:e,items:t},s,{blockItemPrefix:o,flowChars:r,itemIndent:a,onChompKeep:c,onComment:l}){const{indent:u,options:{commentString:p}}=s;const d=Object.assign({},s,{indent:a,type:null});let g=false;const h=[];for(let e=0;ec=null),(()=>g=true));if(c)l+=i.lineComment(l,a,p(c));if(g&&c)g=false;h.push(o+l)}let f;if(h.length===0){f=r.start+r.end}else{f=h[0];for(let e=1;ea=null));if(sd||c.includes("\n")))p=true;g.push(c);d=g.length}const{start:h,end:f}=s;if(g.length===0){return h+f}else{if(!p){const e=g.reduce(((e,t)=>e+t.length+2),2);p=t.options.lineWidth>0&&e>t.options.lineWidth}if(p){let e=h;for(const t of g)e+=t?`\n${a}${r}${t}`:"\n";return`${e}\n${r}${f}`}else{return`${h}${c}${g.join(" ")}${c}${f}`}}}function addCommentBefore({indent:e,options:{commentString:t}},s,n,A){if(n&&A)n=n.replace(/^\n+/,"");if(n){const A=i.indentComment(t(n),e);s.push(A.trimStart())}}t.stringifyCollection=stringifyCollection},9799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,s)=>e.endsWith("\n")?indentComment(s,t):s.includes("\n")?"\n"+indentComment(s,t):(e.endsWith(" ")?"":" ")+s;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,s)=>{var n=s(1127);var A=s(2148);var i=s(9799);function stringifyDocument(e,t){const s=[];let o=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){s.push(t);o=true}else if(e.directives.docStart)o=true}if(o)s.push("---");const r=A.createStringifyContext(e,t);const{commentString:a}=r.options;if(e.commentBefore){if(s.length!==1)s.unshift("");const t=a(e.commentBefore);s.unshift(i.indentComment(t,""))}let c=false;let l=null;if(e.contents){if(n.isNode(e.contents)){if(e.contents.spaceBefore&&o)s.push("");if(e.contents.commentBefore){const t=a(e.contents.commentBefore);s.push(i.indentComment(t,""))}r.forceBlockIndent=!!e.comment;l=e.contents.comment}const t=l?undefined:()=>c=true;let u=A.stringify(e.contents,r,(()=>l=null),t);if(l)u+=i.lineComment(u,"",a(l));if((u[0]==="|"||u[0]===">")&&s[s.length-1]==="---"){s[s.length-1]=`--- ${u}`}else s.push(u)}else{s.push(A.stringify(e.contents,r))}if(e.directives?.docEnd){if(e.comment){const t=a(e.comment);if(t.includes("\n")){s.push("...");s.push(i.indentComment(t,""))}else{s.push(`... ${t}`)}}else{s.push("...")}}else{let t=e.comment;if(t&&c)t=t.replace(/^\n+/,"");if(t){if((!c||l)&&s[s.length-1]!=="")s.push("");s.push(i.indentComment(a(t),""))}}return s.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},8689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:s,value:n}){if(typeof n==="bigint")return String(n);const A=typeof n==="number"?n:Number(n);if(!isFinite(A))return isNaN(A)?".nan":A<0?"-.inf":".inf";let i=JSON.stringify(n);if(!e&&t&&(!s||s==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let e=i.indexOf(".");if(e<0){e=i.length;i+="."}let s=t-(i.length-e-1);while(s-- >0)i+="0"}return i}t.stringifyNumber=stringifyNumber},9748:(e,t,s)=>{var n=s(1127);var A=s(3301);var i=s(2148);var o=s(9799);function stringifyPair({key:e,value:t},s,r,a){const{allNullValues:c,doc:l,indent:u,indentStep:p,options:{commentString:d,indentSeq:g,simpleKeys:h}}=s;let f=n.isNode(e)&&e.comment||null;if(h){if(f){throw new Error("With simple keys, key nodes cannot have comments")}if(n.isCollection(e)||!n.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let E=!h&&(!e||f&&t==null&&!s.inFlow||n.isCollection(e)||(n.isScalar(e)?e.type===A.Scalar.BLOCK_FOLDED||e.type===A.Scalar.BLOCK_LITERAL:typeof e==="object"));s=Object.assign({},s,{allNullValues:false,implicitKey:!E&&(h||!c),indent:u+p});let C=false;let Q=false;let B=i.stringify(e,s,(()=>C=true),(()=>Q=true));if(!E&&!s.inFlow&&B.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=true}if(s.inFlow){if(c||t==null){if(C&&r)r();return B===""?"?":E?`? ${B}`:B}}else if(c&&!h||t==null&&E){B=`? ${B}`;if(f&&!C){B+=o.lineComment(B,s.indent,d(f))}else if(Q&&a)a();return B}if(C)f=null;if(E){if(f)B+=o.lineComment(B,s.indent,d(f));B=`? ${B}\n${u}:`}else{B=`${B}:`;if(f)B+=o.lineComment(B,s.indent,d(f))}let m,I,y;if(n.isNode(t)){m=!!t.spaceBefore;I=t.commentBefore;y=t.comment}else{m=false;I=null;y=null;if(t&&typeof t==="object")t=l.createNode(t)}s.implicitKey=false;if(!E&&!f&&n.isScalar(t))s.indentAtStart=B.length+1;Q=false;if(!g&&p.length>=2&&!s.inFlow&&!E&&n.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){s.indent=s.indent.substring(2)}let b=false;const w=i.stringify(t,s,(()=>b=true),(()=>Q=true));let v=" ";if(f||m||I){v=m?"\n":"";if(I){const e=d(I);v+=`\n${o.indentComment(e,s.indent)}`}if(w===""&&!s.inFlow){if(v==="\n")v="\n\n"}else{v+=`\n${s.indent}`}}else if(!E&&n.isCollection(t)){const e=w[0];const n=w.indexOf("\n");const A=n!==-1;const i=s.inFlow??t.flow??t.items.length===0;if(A||!i){let t=false;if(A&&(e==="&"||e==="!")){let s=w.indexOf(" ");if(e==="&"&&s!==-1&&s{var n=s(3301);var A=s(4475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,s){if(!t||t<0)return false;const n=t-s;const A=e.length;if(A<=n)return false;for(let t=0,s=0;tn)return true;s=t+1;if(A-s<=n)return false}}return true}function doubleQuotedString(e,t){const s=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return s;const{implicitKey:n}=t;const i=t.options.doubleQuotedMinMultiLineLength;const o=t.indent||(containsDocumentMarker(e)?" ":"");let r="";let a=0;for(let e=0,t=s[e];t;t=s[++e]){if(t===" "&&s[e+1]==="\\"&&s[e+2]==="n"){r+=s.slice(a,e)+"\\ ";e+=1;a=e;t="\\"}if(t==="\\")switch(s[e+1]){case"u":{r+=s.slice(a,e);const t=s.substr(e+2,4);switch(t){case"0000":r+="\\0";break;case"0007":r+="\\a";break;case"000b":r+="\\v";break;case"001b":r+="\\e";break;case"0085":r+="\\N";break;case"00a0":r+="\\_";break;case"2028":r+="\\L";break;case"2029":r+="\\P";break;default:if(t.substr(0,2)==="00")r+="\\x"+t.substr(2);else r+=s.substr(e,6)}e+=5;a=e+1}break;case"n":if(n||s[e+2]==='"'||s.length\n";let g;let h;for(h=s.length;h>0;--h){const e=s[h-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let f=s.substring(h);const E=f.indexOf("\n");if(E===-1){g="-"}else if(s===f||E!==f.length-1){g="+";if(a)a()}else{g=""}if(f){s=s.slice(0,-f.length);if(f[f.length-1]==="\n")f=f.slice(0,-1);f=f.replace(i,`$&${p}`)}let C=false;let Q;let B=-1;for(Q=0;Q{i=true}}const a=A.foldFlowLines(`${m}${e}${f}`,p,A.FOLD_BLOCK,r);if(!i)return`>${y}\n${p}${a}`}s=s.replace(/\n+/g,`$&${p}`);return`|${y}\n${p}${m}${s}${f}`}function plainString(e,t,s,i){const{type:o,value:r}=e;const{actualString:a,implicitKey:c,indent:l,indentStep:u,inFlow:p}=t;if(c&&r.includes("\n")||p&&/[[\]{},]/.test(r)){return quotedString(r,t)}if(!r||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r)){return c||p||!r.includes("\n")?quotedString(r,t):blockString(e,t,s,i)}if(!c&&!p&&o!==n.Scalar.PLAIN&&r.includes("\n")){return blockString(e,t,s,i)}if(containsDocumentMarker(r)){if(l===""){t.forceBlockIndent=true;return blockString(e,t,s,i)}else if(c&&l===u){return quotedString(r,t)}}const d=r.replace(/\n+/g,`$&\n${l}`);if(a){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(d);const{compat:e,tags:s}=t.doc.schema;if(s.some(test)||e?.some(test))return quotedString(r,t)}return c?d:A.foldFlowLines(d,l,A.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,s,A){const{implicitKey:i,inFlow:o}=t;const r=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;if(a!==n.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(r.value))a=n.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case n.Scalar.BLOCK_FOLDED:case n.Scalar.BLOCK_LITERAL:return i||o?quotedString(r.value,t):blockString(r,t,s,A);case n.Scalar.QUOTE_DOUBLE:return doubleQuotedString(r.value,t);case n.Scalar.QUOTE_SINGLE:return singleQuotedString(r.value,t);case n.Scalar.PLAIN:return plainString(r,t,s,A);default:return null}};let c=_stringify(a);if(c===null){const{defaultKeyType:e,defaultStringType:s}=t.options;const n=i&&e||s;c=_stringify(n);if(c===null)throw new Error(`Unsupported default string type ${n}`)}return c}t.stringifyString=stringifyString},204:(e,t,s)=>{var n=s(1127);const A=Symbol("break visit");const i=Symbol("skip children");const o=Symbol("remove node");function visit(e,t){const s=initVisitor(t);if(n.isDocument(e)){const t=visit_(null,e.contents,s,Object.freeze([e]));if(t===o)e.contents=null}else visit_(null,e,s,Object.freeze([]))}visit.BREAK=A;visit.SKIP=i;visit.REMOVE=o;function visit_(e,t,s,i){const r=callVisitor(e,t,s,i);if(n.isNode(r)||n.isPair(r)){replaceNode(e,i,r);return visit_(e,r,s,i)}if(typeof r!=="symbol"){if(n.isCollection(t)){i=Object.freeze(i.concat(t));for(let e=0;e{e.exports={parallel:s(8210),serial:s(445),serialOrdered:s(3578)}},1700:e=>{e.exports=abort;function abort(e){Object.keys(e.jobs).forEach(clean.bind(e));e.jobs={}}function clean(e){if(typeof this.jobs[e]=="function"){this.jobs[e]()}}},2794:(e,t,s)=>{var n=s(5295);e.exports=async;function async(e){var t=false;n((function(){t=true}));return function async_callback(s,A){if(t){e(s,A)}else{n((function nextTick_callback(){e(s,A)}))}}}},5295:e=>{e.exports=defer;function defer(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(t){t(e)}else{setTimeout(e,0)}}},9023:(e,t,s)=>{var n=s(2794),A=s(1700);e.exports=iterate;function iterate(e,t,s,n){var i=s["keyedList"]?s["keyedList"][s.index]:s.index;s.jobs[i]=runJob(t,i,e[i],(function(e,t){if(!(i in s.jobs)){return}delete s.jobs[i];if(e){A(s)}else{s.results[i]=t}n(e,s.results)}))}function runJob(e,t,s,A){var i;if(e.length==2){i=e(s,n(A))}else{i=e(s,t,n(A))}return i}},2474:e=>{e.exports=state;function state(e,t){var s=!Array.isArray(e),n={index:0,keyedList:s||t?Object.keys(e):null,jobs:{},results:s?{}:[],size:s?Object.keys(e).length:e.length};if(t){n.keyedList.sort(s?t:function(s,n){return t(e[s],e[n])})}return n}},7942:(e,t,s)=>{var n=s(1700),A=s(2794);e.exports=terminator;function terminator(e){if(!Object.keys(this.jobs).length){return}this.index=this.size;n(this);A(e)(null,this.results)}},8210:(e,t,s)=>{var n=s(9023),A=s(2474),i=s(7942);e.exports=parallel;function parallel(e,t,s){var o=A(e);while(o.index<(o["keyedList"]||e).length){n(e,t,o,(function(e,t){if(e){s(e,t);return}if(Object.keys(o.jobs).length===0){s(null,o.results);return}}));o.index++}return i.bind(o,s)}},445:(e,t,s)=>{var n=s(3578);e.exports=serial;function serial(e,t,s){return n(e,t,null,s)}},3578:(e,t,s)=>{var n=s(9023),A=s(2474),i=s(7942);e.exports=serialOrdered;e.exports.ascending=ascending;e.exports.descending=descending;function serialOrdered(e,t,s,o){var r=A(e,s);n(e,t,r,(function iteratorHandler(s,A){if(s){o(s,A);return}r.index++;if(r.index<(r["keyedList"]||e).length){n(e,t,r,iteratorHandler);return}o(null,r.results)}));return i.bind(r,o)}function ascending(e,t){return et?1:0}function descending(e,t){return-1*ascending(e,t)}},9227:(e,t,s)=>{"use strict";var n=s(8334);var A=s(4177);var i=s(2808);var o=s(8309);e.exports=o||n.call(i,A)},4177:e=>{"use strict";e.exports=Function.prototype.apply},2808:e=>{"use strict";e.exports=Function.prototype.call},6815:(e,t,s)=>{"use strict";var n=s(8334);var A=s(6361);var i=s(2808);var o=s(9227);e.exports=function callBindBasic(e){if(e.length<1||typeof e[0]!=="function"){throw new A("a function is required")}return o(n,i,e)}},8309:e=>{"use strict";e.exports=typeof Reflect!=="undefined"&&Reflect&&Reflect.apply},5443:(e,t,s)=>{var n=s(3837);var A=s(2781).Stream;var i=s(8611);e.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false}n.inherits(CombinedStream,A);CombinedStream.create=function(e){var t=new this;e=e||{};for(var s in e){t[s]=e[s]}return t};CombinedStream.isStreamLike=function(e){return typeof e!=="function"&&typeof e!=="string"&&typeof e!=="boolean"&&typeof e!=="number"&&!Buffer.isBuffer(e)};CombinedStream.prototype.append=function(e){var t=CombinedStream.isStreamLike(e);if(t){if(!(e instanceof i)){var s=i.create(e,{maxDataSize:Infinity,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this));e=s}this._handleErrors(e);if(this.pauseStreams){e.pause()}}this._streams.push(e);return this};CombinedStream.prototype.pipe=function(e,t){A.prototype.pipe.call(this,e,t);this.resume();return e};CombinedStream.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=false}};CombinedStream.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e=="undefined"){this.end();return}if(typeof e!=="function"){this._pipeNext(e);return}var t=e;t(function(e){var t=CombinedStream.isStreamLike(e);if(t){e.on("data",this._checkDataSize.bind(this));this._handleErrors(e)}this._pipeNext(e)}.bind(this))};CombinedStream.prototype._pipeNext=function(e){this._currentStream=e;var t=CombinedStream.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this));e.pipe(this,{end:false});return}var s=e;this.write(s);this._getNext()};CombinedStream.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))};CombinedStream.prototype.write=function(e){this.emit("data",e)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){if(!t.dataSize){return}e.dataSize+=t.dataSize}));if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(e){this._reset();this.emit("error",e)}},8222:(e,t,s)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const s="color: "+this.color;t.splice(1,0,s,"color: inherit");let n=0;let A=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){A=n}}));t.splice(A,0,s)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=s(6243)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,t,s)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=s(900);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let s=0;s{if(t==="%%"){return"%"}i++;const A=createDebug.formatters[n];if(typeof A==="function"){const n=e[i];t=A.call(s,n);e.splice(i,1);i--}return t}));createDebug.formatArgs.call(s,e);const o=s.log||createDebug.log;o.apply(s,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(s!==null){return s}if(n!==createDebug.namespaces){n=createDebug.namespaces;A=createDebug.enabled(e)}return A},set:e=>{s=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const s=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);s.log=this.log;return s}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let s=0;let n=0;let A=-1;let i=0;while(s"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},8237:(e,t,s)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=s(8222)}else{e.exports=s(5332)}},5332:(e,t,s)=>{const n=s(6224);const A=s(3837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=A.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=s(9318);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const s=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[s]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:s,useColors:n}=this;if(n){const n=this.color;const A="[3"+(n<8?n:"8;5;"+n);const i=` ${A};1m${s} `;t[0]=i+t[0].split("\n").join("\n"+i);t.push(A+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+s+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(A.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const s=Object.keys(t.inspectOpts);for(let n=0;ne.trim())).join(" ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return A.inspect(e,this.inspectOpts)}},8611:(e,t,s)=>{var n=s(2781).Stream;var A=s(3837);e.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}A.inherits(DelayedStream,n);DelayedStream.create=function(e,t){var s=new this;t=t||{};for(var n in t){s[n]=t[n]}s.source=e;var A=e.emit;e.emit=function(){s._handleEmit(arguments);return A.apply(e,arguments)};e.on("error",(function(){}));if(s.pauseStream){e.pause()}return s};Object.defineProperty(DelayedStream.prototype,"readable",{configurable:true,enumerable:true,get:function(){return this.source.readable}});DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var e=n.prototype.pipe.apply(this,arguments);this.resume();return e};DelayedStream.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}if(e[0]==="data"){this.dataSize+=e[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(e)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}},2693:(e,t,s)=>{"use strict";var n=s(6815);var A=s(8501);var i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS"){throw e}}var o=!!i&&A&&A(Object.prototype,"__proto__");var r=Object;var a=r.getPrototypeOf;e.exports=o&&typeof o.get==="function"?n([o.get]):typeof a==="function"?function getDunder(e){return a(e==null?e:r(e))}:false},6123:e=>{"use strict";var t=Object.defineProperty||false;if(t){try{t({},"a",{value:1})}catch(e){t=false}}e.exports=t},1933:e=>{"use strict";e.exports=EvalError},8015:e=>{"use strict";e.exports=Error},4415:e=>{"use strict";e.exports=RangeError},6279:e=>{"use strict";e.exports=ReferenceError},5474:e=>{"use strict";e.exports=SyntaxError},6361:e=>{"use strict";e.exports=TypeError},5065:e=>{"use strict";e.exports=URIError},8308:e=>{"use strict";e.exports=Object},1770:(e,t,s)=>{"use strict";var n=s(4538);var A=n("%Object.defineProperty%",true);var i=s(9038)();var o=s(2157);var r=s(6361);var a=i?Symbol.toStringTag:null;e.exports=function setToStringTag(e,t){var s=arguments.length>2&&!!arguments[2]&&arguments[2].force;var n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof s!=="undefined"&&typeof s!=="boolean"||typeof n!=="undefined"&&typeof n!=="boolean"){throw new r("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans")}if(a&&(s||!o(e,a))){if(A){A(e,a,{configurable:!n,enumerable:false,value:t,writable:false})}else{e[a]=t}}}},1133:(e,t,s)=>{var n;e.exports=function(){if(!n){try{n=s(8237)("follow-redirects")}catch(e){}if(typeof n!=="function"){n=function(){}}}n.apply(null,arguments)}},7707:(e,t,s)=>{var n=s(7310);var A=n.URL;var i=s(3685);var o=s(5687);var r=s(2781).Writable;var a=s(9491);var c=s(1133);(function detectUnsupportedEnvironment(){var e=typeof process!=="undefined";var t=typeof window!=="undefined"&&typeof document!=="undefined";var s=isFunction(Error.captureStackTrace);if(!e&&(t||!s)){console.warn("The follow-redirects package should be excluded from browser builds.")}})();var l=false;try{a(new A(""))}catch(e){l=e.code==="ERR_INVALID_URL"}var u=["Authorization","Proxy-Authorization","Cookie"];var p=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"];var d=["abort","aborted","connect","error","socket","timeout"];var g=Object.create(null);d.forEach((function(e){g[e]=function(t,s,n){this._redirectable.emit(e,t,s,n)}}));var h=createErrorType("ERR_INVALID_URL","Invalid URL",TypeError);var f=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed");var E=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",f);var C=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var Q=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");var B=r.prototype.destroy||noop;function RedirectableRequest(e,t){r.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(t){this.on("response",t)}var s=this;this._onNativeResponse=function(e){try{s._processResponse(e)}catch(e){s.emit("error",e instanceof f?e:new f({cause:e}))}};this._headerFilter=new RegExp("^(?:"+u.concat(e.sensitiveHeaders).map(escapeRegex).join("|")+")$","i");this._performRequest()}RedirectableRequest.prototype=Object.create(r.prototype);RedirectableRequest.prototype.abort=function(){destroyRequest(this._currentRequest);this._currentRequest.abort();this.emit("abort")};RedirectableRequest.prototype.destroy=function(e){destroyRequest(this._currentRequest,e);B.call(this,e);return this};RedirectableRequest.prototype.write=function(e,t,s){if(this._ending){throw new Q}if(!isString(e)&&!isBuffer(e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(isFunction(t)){s=t;t=null}if(e.length===0){if(s){s()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,s)}else{this.emit("error",new C);this.abort()}};RedirectableRequest.prototype.end=function(e,t,s){if(isFunction(e)){s=e;e=t=null}else if(isFunction(t)){s=t;t=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,s)}else{var n=this;var A=this._currentRequest;this.write(e,t,(function(){n._ended=true;A.end(null,null,s)}));this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,t){var s=this;function destroyOnTimeout(t){t.setTimeout(e);t.removeListener("timeout",t.destroy);t.addListener("timeout",t.destroy)}function startTimer(t){if(s._timeout){clearTimeout(s._timeout)}s._timeout=setTimeout((function(){s.emit("timeout");clearTimer()}),e);destroyOnTimeout(t)}function clearTimer(){if(s._timeout){clearTimeout(s._timeout);s._timeout=null}s.removeListener("abort",clearTimer);s.removeListener("error",clearTimer);s.removeListener("response",clearTimer);s.removeListener("close",clearTimer);if(t){s.removeListener("timeout",t)}if(!s.socket){s._currentRequest.removeListener("socket",startTimer)}}if(t){this.on("timeout",t)}if(this.socket){startTimer(this.socket)}else{this._currentRequest.once("socket",startTimer)}this.on("socket",destroyOnTimeout);this.on("abort",clearTimer);this.on("error",clearTimer);this.on("response",clearTimer);this.on("close",clearTimer);return this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){RedirectableRequest.prototype[e]=function(t,s){return this._currentRequest[e](t,s)}}));["aborted","connection","socket"].forEach((function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})}));RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(!isArray(e.sensitiveHeaders)){e.sensitiveHeaders=[]}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var t=e.path.indexOf("?");if(t<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,t);e.search=e.path.substring(t)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){throw new TypeError("Unsupported protocol "+e)}if(this._options.agents){var s=e.slice(0,-1);this._options.agent=this._options.agents[s]}var A=this._currentRequest=t.request(this._options,this._onNativeResponse);A._redirectable=this;for(var i of d){A.on(i,g[i])}this._currentUrl=/^\//.test(this._options.path)?n.format(this._options):this._options.path;if(this._isRedirect){var o=0;var r=this;var a=this._requestBodyBuffers;(function writeNext(e){if(A===r._currentRequest){if(e){r.emit("error",e)}else if(o=400){e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[];return}destroyRequest(this._currentRequest);e.destroy();if(++this._redirectCount>this._options.maxRedirects){throw new E}var A;var i=this._options.beforeRedirect;if(i){A=Object.assign({Host:e.req.getHeader("host")},this._options.headers)}var o=this._options.method;if((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var r=removeMatchingHeaders(/^host$/i,this._options.headers);var a=parseUrl(this._currentUrl);var l=r||a.host;var u=/^\w+:/.test(s)?this._currentUrl:n.format(Object.assign(a,{host:l}));var p=resolveUrl(s,u);c("redirecting to",p.href);this._isRedirect=true;spreadUrlObject(p,this._options);if(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==l&&!isSubdomain(p.host,l)){removeMatchingHeaders(this._headerFilter,this._options.headers)}if(isFunction(i)){var d={headers:e.headers,statusCode:t};var g={url:u,method:o,headers:A};i(this._options,d,g);this._sanitizeOptions(this._options)}this._performRequest()};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var s={};Object.keys(e).forEach((function(n){var A=n+":";var i=s[A]=e[n];var o=t[n]=Object.create(i);function request(e,n,i){if(isURL(e)){e=spreadUrlObject(e)}else if(isString(e)){e=spreadUrlObject(parseUrl(e))}else{i=n;n=validateUrl(e);e={protocol:A}}if(isFunction(n)){i=n;n=null}n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n);n.nativeProtocols=s;if(!isString(n.host)&&!isString(n.hostname)){n.hostname="::1"}a.equal(n.protocol,A,"protocol mismatch");c("options",n);return new RedirectableRequest(n,i)}function get(e,t,s){var n=o.request(e,t,s);n.end();return n}Object.defineProperties(o,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}})}));return t}function noop(){}function parseUrl(e){var t;if(l){t=new A(e)}else{t=validateUrl(n.parse(e));if(!isString(t.protocol)){throw new h({input:e})}}return t}function resolveUrl(e,t){return l?new A(e,t):parseUrl(n.resolve(t,e))}function validateUrl(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname)){throw new h({input:e.href||e})}if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host)){throw new h({input:e.href||e})}return e}function spreadUrlObject(e,t){var s=t||{};for(var n of p){s[n]=e[n]}if(s.hostname.startsWith("[")){s.hostname=s.hostname.slice(1,-1)}if(s.port!==""){s.port=Number(s.port)}s.path=s.search?s.pathname+s.search:s.pathname;return s}function removeMatchingHeaders(e,t){var s;for(var n in t){if(e.test(n)){s=t[n];delete t[n]}}return s===null||typeof s==="undefined"?undefined:String(s).trim()}function createErrorType(e,t,s){function CustomError(s){if(isFunction(Error.captureStackTrace)){Error.captureStackTrace(this,this.constructor)}Object.assign(this,s||{});this.code=e;this.message=this.cause?t+": "+this.cause.message:t}CustomError.prototype=new(s||Error);Object.defineProperties(CustomError.prototype,{constructor:{value:CustomError,enumerable:false},name:{value:"Error ["+e+"]",enumerable:false}});return CustomError}function destroyRequest(e,t){for(var s of d){e.removeListener(s,g[s])}e.on("error",noop);e.destroy(t)}function isSubdomain(e,t){a(isString(e)&&isString(t));var s=e.length-t.length-1;return s>0&&e[s]==="."&&e.endsWith(t)}function isArray(e){return e instanceof Array}function isString(e){return typeof e==="string"||e instanceof String}function isFunction(e){return typeof e==="function"}function isBuffer(e){return typeof e==="object"&&"length"in e}function isURL(e){return A&&e instanceof A}function escapeRegex(e){return e.replace(/[\]\\/()*+?.$]/g,"\\$&")}e.exports=wrap({http:i,https:o});e.exports.wrap=wrap},4334:(e,t,s)=>{"use strict";var n=s(5443);var A=s(3837);var i=s(1017);var o=s(3685);var r=s(5687);var a=s(7310).parse;var c=s(7147);var l=s(2781).Stream;var u=s(6113);var p=s(3583);var d=s(4812);var g=s(1770);var h=s(2157);var f=s(7142);function escapeHeaderParam(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}function FormData(e){if(!(this instanceof FormData)){return new FormData(e)}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];n.call(this);e=e||{};for(var t in e){this[t]=e[t]}}A.inherits(FormData,n);FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(e,t,s){s=s||{};if(typeof s==="string"){s={filename:s}}var A=n.prototype.append.bind(this);if(typeof t==="number"||t==null){t=String(t)}if(Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(e,t,s);var o=this._multiPartFooter();A(i);A(t);A(o);this._trackLength(i,t,s)};FormData.prototype._trackLength=function(e,t,s){var n=0;if(s.knownLength!=null){n+=Number(s.knownLength)}else if(Buffer.isBuffer(t)){n=t.length}else if(typeof t==="string"){n=Buffer.byteLength(t)}this._valueLength+=n;this._overheadLength+=Buffer.byteLength(e)+FormData.LINE_BREAK.length;if(!t||!t.path&&!(t.readable&&h(t,"httpVersion"))&&!(t instanceof l)){return}if(!s.knownLength){this._valuesToMeasure.push(t)}};FormData.prototype._lengthRetriever=function(e,t){if(h(e,"fd")){if(e.end!=undefined&&e.end!=Infinity&&e.start!=undefined){t(null,e.end+1-(e.start?e.start:0))}else{c.stat(e.path,(function(s,n){if(s){t(s);return}var A=n.size-(e.start?e.start:0);t(null,A)}))}}else if(h(e,"httpVersion")){t(null,Number(e.headers["content-length"]))}else if(h(e,"httpModule")){e.on("response",(function(s){e.pause();t(null,Number(s.headers["content-length"]))}));e.resume()}else{t("Unknown stream")}};FormData.prototype._multiPartHeader=function(e,t,s){if(typeof s.header==="string"){return s.header}var n=this._getContentDisposition(t,s);var A=this._getContentType(t,s);var i="";var o={"Content-Disposition":["form-data",'name="'+escapeHeaderParam(e)+'"'].concat(n||[]),"Content-Type":[].concat(A||[])};if(typeof s.header==="object"){f(o,s.header)}var r;for(var a in o){if(h(o,a)){r=o[a];if(r==null){continue}if(!Array.isArray(r)){r=[r]}if(r.length){i+=a+": "+r.join("; ")+FormData.LINE_BREAK}}}return"--"+this.getBoundary()+FormData.LINE_BREAK+i+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(e,t){var s;if(typeof t.filepath==="string"){s=i.normalize(t.filepath).replace(/\\/g,"/")}else if(t.filename||e&&(e.name||e.path)){s=i.basename(t.filename||e&&(e.name||e.path))}else if(e&&e.readable&&h(e,"httpVersion")){s=i.basename(e.client._httpMessage.path||"")}if(s){return'filename="'+escapeHeaderParam(s)+'"'}};FormData.prototype._getContentType=function(e,t){var s=t.contentType;if(!s&&e&&e.name){s=p.lookup(e.name)}if(!s&&e&&e.path){s=p.lookup(e.path)}if(!s&&e&&e.readable&&h(e,"httpVersion")){s=e.headers["content-type"]}if(!s&&(t.filepath||t.filename)){s=p.lookup(t.filepath||t.filename)}if(!s&&e&&typeof e==="object"){s=FormData.DEFAULT_CONTENT_TYPE}return s};FormData.prototype._multiPartFooter=function(){return function(e){var t=FormData.LINE_BREAK;var s=this._streams.length===0;if(s){t+=this._lastBoundary()}e(t)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(e){var t;var s={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e){if(h(e,t)){s[t.toLowerCase()]=e[t]}}return s};FormData.prototype.setBoundary=function(e){if(typeof e!=="string"){throw new TypeError("FormData boundary must be a string")}this._boundary=e};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype.getBuffer=function(){var e=new Buffer.alloc(0);var t=this.getBoundary();for(var s=0,n=this._streams.length;s{"use strict";e.exports=function(e,t){Object.keys(t).forEach((function(s){e[s]=e[s]||t[s]}));return e}},9320:e=>{"use strict";var t="Function.prototype.bind called on incompatible ";var s=Object.prototype.toString;var n=Math.max;var A="[object Function]";var i=function concatty(e,t){var s=[];for(var n=0;n{"use strict";var n=s(9320);e.exports=Function.prototype.bind||n},4538:(e,t,s)=>{"use strict";var n;var A=s(8308);var i=s(8015);var o=s(1933);var r=s(4415);var a=s(6279);var c=s(5474);var l=s(6361);var u=s(5065);var p=s(9775);var d=s(924);var g=s(2419);var h=s(3373);var f=s(8029);var E=s(9396);var C=s(9091);var Q=Function;var getEvalledConstructor=function(e){try{return Q('"use strict"; return ('+e+").constructor;")()}catch(e){}};var B=s(8501);var m=s(6123);var throwTypeError=function(){throw new l};var I=B?function(){try{arguments.callee;return throwTypeError}catch(e){try{return B(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError;var y=s(587)();var b=s(3592);var w=s(5045);var v=s(8859);var k=s(4177);var x=s(2808);var R={};var D=typeof Uint8Array==="undefined"||!b?n:b(Uint8Array);var S={__proto__:null,"%AggregateError%":typeof AggregateError==="undefined"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics==="undefined"?n:Atomics,"%BigInt%":typeof BigInt==="undefined"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array==="undefined"?n:Float16Array,"%Float32Array%":typeof Float32Array==="undefined"?n:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?n:FinalizationRegistry,"%Function%":Q,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array==="undefined"?n:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?n:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&b?b(b([][Symbol.iterator]())):n,"%JSON%":typeof JSON==="object"?JSON:n,"%Map%":typeof Map==="undefined"?n:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!y||!b?n:b((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":A,"%Object.getOwnPropertyDescriptor%":B,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?n:Promise,"%Proxy%":typeof Proxy==="undefined"?n:Proxy,"%RangeError%":r,"%ReferenceError%":a,"%Reflect%":typeof Reflect==="undefined"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?n:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!y||!b?n:b((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&b?b(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":I,"%TypedArray%":D,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array==="undefined"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap==="undefined"?n:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?n:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?n:WeakSet,"%Function.prototype.call%":x,"%Function.prototype.apply%":k,"%Object.defineProperty%":m,"%Object.getPrototypeOf%":w,"%Math.abs%":p,"%Math.floor%":d,"%Math.max%":g,"%Math.min%":h,"%Math.pow%":f,"%Math.round%":E,"%Math.sign%":C,"%Reflect.getPrototypeOf%":v};if(b){try{null.error}catch(e){var N=b(b(e));S["%Error.prototype%"]=N}}var F=function doEval(e){var t;if(e==="%AsyncFunction%"){t=getEvalledConstructor("async function () {}")}else if(e==="%GeneratorFunction%"){t=getEvalledConstructor("function* () {}")}else if(e==="%AsyncGeneratorFunction%"){t=getEvalledConstructor("async function* () {}")}else if(e==="%AsyncGenerator%"){var s=doEval("%AsyncGeneratorFunction%");if(s){t=s.prototype}}else if(e==="%AsyncIteratorPrototype%"){var n=doEval("%AsyncGenerator%");if(n&&b){t=b(n.prototype)}}S[e]=t;return t};var L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var U=s(8334);var T=s(2157);var M=U.call(x,Array.prototype.concat);var O=U.call(k,Array.prototype.splice);var _=U.call(x,String.prototype.replace);var H=U.call(x,String.prototype.slice);var Y=U.call(x,RegExp.prototype.exec);var J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var P=/\\(\\)?/g;var G=function stringToPath(e){var t=H(e,0,1);var s=H(e,-1);if(t==="%"&&s!=="%"){throw new c("invalid intrinsic syntax, expected closing `%`")}else if(s==="%"&&t!=="%"){throw new c("invalid intrinsic syntax, expected opening `%`")}var n=[];_(e,J,(function(e,t,s,A){n[n.length]=s?_(A,P,"$1"):t||e}));return n};var V=function getBaseIntrinsic(e,t){var s=e;var n;if(T(L,s)){n=L[s];s="%"+n[0]+"%"}if(T(S,s)){var A=S[s];if(A===R){A=F(s)}if(typeof A==="undefined"&&!t){throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!")}return{alias:n,name:s,value:A}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function GetIntrinsic(e,t){if(typeof e!=="string"||e.length===0){throw new l("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof t!=="boolean"){throw new l('"allowMissing" argument must be a boolean')}if(Y(/^%?[^%]*%?$/,e)===null){throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var s=G(e);var A=s.length>0?s[0]:"";var i=V("%"+A+"%",t);var o=i.name;var r=i.value;var a=false;var u=i.alias;if(u){A=u[0];O(s,M([0,1],u))}for(var p=1,d=true;p=s.length){var E=B(r,g);d=!!E;if(d&&"get"in E&&!("originalValue"in E.get)){r=E.get}else{r=r[g]}}else{d=T(r,g);r=r[g]}if(d&&!a){S[o]=r}}}return r}},5045:(e,t,s)=>{"use strict";var n=s(8308);e.exports=n.getPrototypeOf||null},8859:e=>{"use strict";e.exports=typeof Reflect!=="undefined"&&Reflect.getPrototypeOf||null},3592:(e,t,s)=>{"use strict";var n=s(8859);var A=s(5045);var i=s(2693);e.exports=n?function getProto(e){return n(e)}:A?function getProto(e){if(!e||typeof e!=="object"&&typeof e!=="function"){throw new TypeError("getProto: not an object")}return A(e)}:i?function getProto(e){return i(e)}:null},7087:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},8501:(e,t,s)=>{"use strict";var n=s(7087);if(n){try{n([],"length")}catch(e){n=null}}e.exports=n},1621:e=>{"use strict";e.exports=(e,t=process.argv)=>{const s=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(s+e);const A=t.indexOf("--");return n!==-1&&(A===-1||n{"use strict";var n=typeof Symbol!=="undefined"&&Symbol;var A=s(7747);e.exports=function hasNativeSymbols(){if(typeof n!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof n("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return A()}},7747:e=>{"use strict";e.exports=function hasSymbols(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var e={};var t=Symbol("test");var s=Object(t);if(typeof t==="string"){return false}if(Object.prototype.toString.call(t)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(s)!=="[object Symbol]"){return false}var n=42;e[t]=n;for(var A in e){return false}if(typeof Object.keys==="function"&&Object.keys(e).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(e).length!==0){return false}var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t){return false}if(!Object.prototype.propertyIsEnumerable.call(e,t)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||o.enumerable!==true){return false}}return true}},9038:(e,t,s)=>{"use strict";var n=s(7747);e.exports=function hasToStringTagShams(){return n()&&!!Symbol.toStringTag}},2157:(e,t,s)=>{"use strict";var n=Function.prototype.call;var A=Object.prototype.hasOwnProperty;var i=s(8334);e.exports=i.call(n,A)},9775:e=>{"use strict";e.exports=Math.abs},924:e=>{"use strict";e.exports=Math.floor},7661:e=>{"use strict";e.exports=Number.isNaN||function isNaN(e){return e!==e}},2419:e=>{"use strict";e.exports=Math.max},3373:e=>{"use strict";e.exports=Math.min},8029:e=>{"use strict";e.exports=Math.pow},9396:e=>{"use strict";e.exports=Math.round},9091:(e,t,s)=>{"use strict";var n=s(7661);e.exports=function sign(e){if(n(e)||e===0){return e}return e<0?-1:+1}},7426:(e,t,s)=>{ /*! * mime-db * Copyright(c) 2014 Jonathan Ong From a676dd2dae9868e1ab1a5ade99e68e58136447d1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 00:50:38 +0000 Subject: [PATCH 2/2] fix: apply audit fixes --- package-lock.json | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 573db64..c8b60d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1347,16 +1347,16 @@ } }, "node_modules/form-data": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", - "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz", + "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==", "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" + "hasown": "^2.0.4", + "mime-types": "^2.1.35" }, "engines": { "node": ">= 6" @@ -1484,9 +1484,9 @@ } }, "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", "license": "MIT", "dependencies": { "function-bind": "^1.1.2" @@ -1563,10 +1563,20 @@ "license": "ISC" }, "node_modules/js-yaml": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", - "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.2.0.tgz", + "integrity": "sha512-ePWsvanv0DWuDRsW8dnt+R4jQ31SCRCQ7hhNcPXZPsoBZiemuZNYGf7adZdqX2D86j6rvKp3RpCxVTSb8WQlOw==", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], "license": "MIT", "dependencies": { "argparse": "^2.0.1"