diff --git a/CHANGELOG.md b/CHANGELOG.md index 29e0a504..fa7e28c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [3.9.5](https://github.com/TriPSs/conventional-changelog-action/compare/v3.9.4...v3.9.5) (2021-10-05) + + +### Bug Fixes + +* Retry again with the node_modules ([949ce5e](https://github.com/TriPSs/conventional-changelog-action/commit/949ce5e5a6447f5232585b381468821acbf713f2)) + + + ## [3.9.4](https://github.com/TriPSs/conventional-changelog-action/compare/v3.9.3...v3.9.4) (2021-10-05) @@ -34,12 +43,3 @@ -# [3.9.0](https://github.com/TriPSs/conventional-changelog-action/compare/v3.8.0...v3.9.0) (2021-10-05) - - -### Features - -* Added `git-push` option to skip pushing git changes ([9b90fb3](https://github.com/TriPSs/conventional-changelog-action/commit/9b90fb3eeafcfac330320d99235c4462cd7c7614)) - - - diff --git a/lib/commit.hbs b/lib/commit.hbs index e10a0d90..28d92937 100644 --- a/lib/commit.hbs +++ b/lib/commit.hbs @@ -1,12 +1,7 @@ -*{{#if scope}} **{{scope}}:** -{{~/if}} {{#if subject}} - {{~subject}} -{{~else}} - {{~header}} -{{~/if}} +* {{header}} {{~!-- commit link --}} {{#if @root.linkReferences~}} - ([{{shortHash}}]( + ([{{hash}}]( {{~#if @root.repository}} {{~#if @root.host}} {{~@root.host}}/ @@ -20,7 +15,7 @@ {{~/if}}/ {{~@root.commit}}/{{hash}})) {{~else}} - {{~shortHash}} + {{~hash}} {{~/if}} {{~!-- commit references --}} diff --git a/lib/footer.hbs b/lib/footer.hbs index 2aa774f5..dca482f2 100644 --- a/lib/footer.hbs +++ b/lib/footer.hbs @@ -4,8 +4,7 @@ ### {{title}} {{#each notes}} -* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}} +* {{text}} {{/each}} {{/each}} - {{/if}} diff --git a/lib/header.hbs b/lib/header.hbs index fc781c4b..49f56073 100644 --- a/lib/header.hbs +++ b/lib/header.hbs @@ -1,25 +1,9 @@ -{{#if isPatch~}} - ## -{{~else~}} - # -{{~/if}} {{#if @root.linkCompare~}} - [{{version}}]( - {{~#if @root.repository~}} - {{~#if @root.host}} - {{~@root.host}}/ - {{~/if}} - {{~#if @root.owner}} - {{~@root.owner}}/ - {{~/if}} - {{~@root.repository}} - {{~else}} - {{~@root.repoUrl}} +## {{#if isPatch~}} + {{~/if~}} {{version}} + {{~#if title}} "{{title}}" {{~/if~}} - /compare/{{previousTag}}...{{currentTag}}) -{{~else}} - {{~version}} -{{~/if}} -{{~#if title}} "{{title}}" -{{~/if}} -{{~#if date}} ({{date}}) -{{/if}} + {{~#if date}} ({{date}}) + {{~/if~}} + {{~#if isPatch~}} + {{~/if}} + diff --git a/lib/index.js b/lib/index.js index 498d4701..85d180f9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={7351:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const a=o(n(2087));const l=n(5278);function issueCommand(e,t,n){const i=new Command(e,t,n);process.stdout.write(i.toString()+a.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const u="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const i=this.properties[n];if(i){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(i)}`}}}}e+=`${u}${escapeData(this.message)}`;return e}}function escapeData(e){return l.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return l.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var a=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});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 l=n(7351);const u=n(717);const c=n(5278);const f=o(n(2087));const p=o(n(5622));const h=n(8041);var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const n=c.toCommandValue(t);process.env[e]=n;const i=process.env["GITHUB_ENV"]||"";if(i){const t="_GitHubActionsFileCommandDelimeter_";const i=`${e}<<${t}${f.EOL}${n}${f.EOL}${t}`;u.issueCommand("ENV",i)}else{l.issueCommand("set-env",{name:e},n)}}t.exportVariable=exportVariable;function setSecret(e){l.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){u.issueCommand("PATH",e)}else{l.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${p.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return n}return n.trim()}t.getInput=getInput;function getMultilineInput(e,t){const n=getInput(e,t).split("\n").filter((e=>e!==""));return n}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const n=["true","True","TRUE"];const i=["false","False","FALSE"];const s=getInput(e,t);if(n.includes(s))return true;if(i.includes(s))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){process.stdout.write(f.EOL);l.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){l.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){l.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){l.issueCommand("error",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){l.issueCommand("warning",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){l.issueCommand("notice",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+f.EOL)}t.info=info;function startGroup(e){l.issue("group",e)}t.startGroup=startGroup;function endGroup(){l.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return a(this,void 0,void 0,(function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n}))}t.group=group;function saveState(e,t){l.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return a(this,void 0,void 0,(function*(){return yield h.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},717:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const a=o(n(5747));const l=o(n(2087));const u=n(5278);function issueCommand(e,t){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!a.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}a.appendFileSync(n,`${u.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},8041:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const s=n(9925);const o=n(3702);const a=n(2186);class OidcClient{static createHttpClient(e=true,t=10){const n={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],n)}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 i(this,void 0,void 0,(function*(){const n=OidcClient.createHttpClient();const i=yield n.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const s=(t=i.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const n=encodeURIComponent(e);t=`${t}&audience=${n}`}a.debug(`ID token url is ${t}`);const n=yield OidcClient.getCall(t);a.setSecret(n);return n}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},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,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var a=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const l=n(4304);const u=o(n(8159));function exec(e,t,n){return a(this,void 0,void 0,(function*(){const i=u.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const s=i[0];t=i.slice(1).concat(t||[]);const o=new u.ToolRunner(s,t,n);return o.exec()}))}t.exec=exec;function getExecOutput(e,t,n){var i,s;return a(this,void 0,void 0,(function*(){let o="";let a="";const u=new l.StringDecoder("utf8");const c=new l.StringDecoder("utf8");const f=(i=n===null||n===void 0?void 0:n.listeners)===null||i===void 0?void 0:i.stdout;const p=(s=n===null||n===void 0?void 0:n.listeners)===null||s===void 0?void 0:s.stderr;const stdErrListener=e=>{a+=c.write(e);if(p){p(e)}};const stdOutListener=e=>{o+=u.write(e);if(f){f(e)}};const h=Object.assign(Object.assign({},n===null||n===void 0?void 0:n.listeners),{stdout:stdOutListener,stderr:stdErrListener});const d=yield exec(e,t,Object.assign(Object.assign({},n),{listeners:h}));o+=u.end();a+=c.end();return{exitCode:d,stdout:o,stderr:a}}))}t.getExecOutput=getExecOutput},8159:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var a=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const l=o(n(2087));const u=o(n(8614));const c=o(n(3129));const f=o(n(5622));const p=o(n(7436));const h=o(n(1962));const d=n(8213);const m=process.platform==="win32";class ToolRunner extends u.EventEmitter{constructor(e,t,n){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=n||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const n=this._getSpawnFileName();const i=this._getSpawnArgs(e);let s=t?"":"[command]";if(m){if(this._isCmdFile()){s+=n;for(const e of i){s+=` ${e}`}}else if(e.windowsVerbatimArguments){s+=`"${n}"`;for(const e of i){s+=` ${e}`}}else{s+=this._windowsQuoteCmdArg(n);for(const e of i){s+=` ${this._windowsQuoteCmdArg(e)}`}}}else{s+=n;for(const e of i){s+=` ${e}`}}return s}_processLineBuffer(e,t,n){try{let i=t+e.toString();let s=i.indexOf(l.EOL);while(s>-1){const e=i.substring(0,s);n(e);i=i.substring(s+l.EOL.length);s=i.indexOf(l.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(m){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(m){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const n of this.args){t+=" ";t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n)}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 n=false;for(const i of e){if(t.some((e=>e===i))){n=true;break}}if(!n){return e}let i='"';let s=true;for(let t=e.length;t>0;t--){i+=e[t-1];if(s&&e[t-1]==="\\"){i+="\\"}else if(e[t-1]==='"'){s=true;i+='"'}else{s=false}}i+='"';return i.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 n=true;for(let i=e.length;i>0;i--){t+=e[i-1];if(n&&e[i-1]==="\\"){t+="\\"}else if(e[i-1]==='"'){n=true;t+="\\"}else{n=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 n={};n.cwd=e.cwd;n.env=e.env;n["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){n.argv0=`"${t}"`}return n}exec(){return a(this,void 0,void 0,(function*(){if(!h.isRooted(this.toolPath)&&(this.toolPath.includes("/")||m&&this.toolPath.includes("\\"))){this.toolPath=f.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield p.which(this.toolPath,true);return new Promise(((e,t)=>a(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 n=this._cloneExecOptions(this.options);if(!n.silent&&n.outStream){n.outStream.write(this._getCommandString(n)+l.EOL)}const i=new ExecState(n,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield h.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const s=this._getSpawnFileName();const o=c.spawn(s,this._getSpawnArgs(n),this._getSpawnOptions(this.options,s));let a="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!n.silent&&n.outStream){n.outStream.write(e)}a=this._processLineBuffer(e,a,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let u="";if(o.stderr){o.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!n.silent&&n.errStream&&n.outStream){const t=n.failOnStdErr?n.errStream:n.outStream;t.write(e)}u=this._processLineBuffer(e,u,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));o.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));o.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((n,i)=>{if(a.length>0){this.emit("stdline",a)}if(u.length>0){this.emit("errline",u)}o.removeAllListeners();if(n){t(n)}else{e(i)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let n=false;let i=false;let s="";function append(e){if(i&&e!=='"'){s+="\\"}s+=e;i=false}for(let o=0;o0){t.push(s);s=""}continue}append(a)}if(s.length>0){t.push(s.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends u.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()}}},3702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,n){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,n){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,n){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=n(8605);const s=n(7211);const o=n(6443);let a;var l;(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"})(l=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var c;(function(e){e["ApplicationJson"]="application/json"})(c=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const f=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect];const p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout];const h=["OPTIONS","GET","DELETE","HEAD"];const d=10;const m=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 new Promise((async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",(e=>{n=Buffer.concat([n,e])}));this.message.on("end",(()=>{e(n.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,n){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=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,i){return this.request(e,t,n,i)}async getJson(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,c.ApplicationJson);let n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){let i=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,c.ApplicationJson);n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,c.ApplicationJson);let s=await this.post(e,i,n);return this._processResponse(s,this.requestOptions)}async putJson(e,t,n={}){let i=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,c.ApplicationJson);n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,c.ApplicationJson);let s=await this.put(e,i,n);return this._processResponse(s,this.requestOptions)}async patchJson(e,t,n={}){let i=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,c.ApplicationJson);n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,c.ApplicationJson);let s=await this.patch(e,i,n);return this._processResponse(s,this.requestOptions)}async request(e,t,n,i){if(this._disposed){throw new Error("Client has already been disposed.")}let s=new URL(t);let o=this._prepareRequest(e,s,i);let a=this._allowRetries&&h.indexOf(e)!=-1?this._maxRetries+1:1;let u=0;let c;while(u0){const a=c.message.headers["location"];if(!a){break}let l=new URL(a);if(s.protocol=="https:"&&s.protocol!=l.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.")}await c.readBody();if(l.hostname!==s.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}o=this._prepareRequest(e,l,i);c=await this.requestRaw(o,n);t--}if(p.indexOf(c.message.statusCode)==-1){return c}u+=1;if(u{let callbackForResult=function(e,t){if(e){i(e)}n(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,n){let i;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let s=false;let handleResult=(e,t)=>{if(!s){s=true;n(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{i=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,n){const o={};o.parsedUrl=t;const a=o.parsedUrl.protocol==="https:";o.httpModule=a?s:i;const l=a?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):l;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||i||n}_getAgent(e){let t;let l=o.getProxyUrl(e);let u=l&&l.hostname;if(this._keepAlive&&u){t=this._proxyAgent}if(this._keepAlive&&!u){t=this._agent}if(!!t){return t}const c=e.protocol==="https:";let f=100;if(!!this.requestOptions){f=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(u){if(!a){a=n(4294)}const e={maxSockets:f,keepAlive:this._keepAlive,proxy:{...(l.username||l.password)&&{proxyAuth:`${l.username}:${l.password}`},host:l.hostname,port:l.port}};let i;const s=l.protocol==="https:";if(c){i=s?a.httpsOverHttps:a.httpsOverHttp}else{i=s?a.httpOverHttps:a.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:f};t=c?new s.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=c?s.globalAgent:i.globalAgent}if(c&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(d,e);const t=m*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(n,i)=>{const s=e.message.statusCode;const o={statusCode:s,result:null,headers:{}};if(s==l.NotFound){n(o)}let a;let u;try{u=await e.readBody();if(u&&u.length>0){if(t&&t.deserializeDates){a=JSON.parse(u,HttpClient.dateTimeDeserializer)}else{a=JSON.parse(u)}o.result=a}o.headers=e.message.headers}catch(e){}if(s>299){let e;if(a&&a.message){e=a.message}else if(u&&u.length>0){e=u}else{e="Failed request: ("+s+")"}let t=new HttpClientError(e,s);t.result=o.result;i(t)}else{n(o)}}))}}t.HttpClient=HttpClient},6443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let n;if(checkBypass(e)){return n}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){n=new URL(i)}return n}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){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}let i=[e.hostname.toUpperCase()];if(typeof n==="number"){i.push(`${i[0]}:${n}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var a=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var l;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const u=o(n(5747));const c=o(n(5622));l=u.promises,t.chmod=l.chmod,t.copyFile=l.copyFile,t.lstat=l.lstat,t.mkdir=l.mkdir,t.readdir=l.readdir,t.readlink=l.readlink,t.rename=l.rename,t.rmdir=l.rmdir,t.stat=l.stat,t.symlink=l.symlink,t.unlink=l.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return a(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,n=false){return a(this,void 0,void 0,(function*(){const i=n?yield t.stat(e):yield t.lstat(e);return i.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,n){return a(this,void 0,void 0,(function*(){let i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){const t=c.extname(e).toUpperCase();if(n.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(i)){return e}}}const s=e;for(const o of n){e=s+o;i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){try{const n=c.dirname(e);const i=c.basename(e).toUpperCase();for(const s of yield t.readdir(n)){if(i===s.toUpperCase()){e=c.join(n,s);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(i)){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,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var a=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.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 l=n(2357);const u=o(n(3129));const c=o(n(5622));const f=n(1669);const p=o(n(1962));const h=f.promisify(u.exec);const d=f.promisify(u.execFile);function cp(e,t,n={}){return a(this,void 0,void 0,(function*(){const{force:i,recursive:s,copySourceDirectory:o}=readCopyOptions(n);const a=(yield p.exists(t))?yield p.stat(t):null;if(a&&a.isFile()&&!i){return}const l=a&&a.isDirectory()&&o?c.join(t,c.basename(e)):t;if(!(yield p.exists(e))){throw new Error(`no such file or directory: ${e}`)}const u=yield p.stat(e);if(u.isDirectory()){if(!s){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,l,0,i)}}else{if(c.relative(e,l)===""){throw new Error(`'${l}' and '${e}' are the same file`)}yield copyFile(e,l,i)}}))}t.cp=cp;function mv(e,t,n={}){return a(this,void 0,void 0,(function*(){if(yield p.exists(t)){let i=true;if(yield p.isDirectory(t)){t=c.join(t,c.basename(e));i=yield p.exists(t)}if(i){if(n.force==null||n.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(c.dirname(t));yield p.rename(e,t)}))}t.mv=mv;function rmRF(e){return a(this,void 0,void 0,(function*(){if(p.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=p.getCmdPath();if(yield p.isDirectory(e,true)){yield h(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield h(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield p.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield p.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield d(`rm`,[`-rf`,`${e}`])}else{yield p.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return a(this,void 0,void 0,(function*(){l.ok(e,"a path argument must be provided");yield p.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return a(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(p.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 n=yield findInPath(e);if(n&&n.length>0){return n[0]}return""}))}t.which=which;function findInPath(e){return a(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(p.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(c.delimiter)){if(e){t.push(e)}}}if(p.isRooted(e)){const n=yield p.tryGetExecutablePath(e,t);if(n){return[n]}return[]}if(e.includes(c.sep)){return[]}const n=[];if(process.env.PATH){for(const e of process.env.PATH.split(c.delimiter)){if(e){n.push(e)}}}const i=[];for(const s of n){const n=yield p.tryGetExecutablePath(c.join(s,e),t);if(n){i.push(n)}}return i}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const n=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:n,copySourceDirectory:i}}function cpDirRecursive(e,t,n,i){return a(this,void 0,void 0,(function*(){if(n>=255)return;n++;yield mkdirP(t);const s=yield p.readdir(e);for(const o of s){const s=`${e}/${o}`;const a=`${t}/${o}`;const l=yield p.lstat(s);if(l.isDirectory()){yield cpDirRecursive(s,a,n,i)}else{yield copyFile(s,a,i)}}yield p.chmod(t,(yield p.stat(e)).mode)}))}function copyFile(e,t,n){return a(this,void 0,void 0,(function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t);yield p.unlink(t)}catch(e){if(e.code==="EPERM"){yield p.chmod(t,"0666");yield p.unlink(t)}}const n=yield p.readlink(e);yield p.symlink(n,t,p.IS_WINDOWS?"junction":null)}else if(!(yield p.exists(t))||n){yield p.copyFile(e,t)}}))}},922:(e,t,n)=>{"use strict";const{parse:i}=n(8835);const s=new RegExp(/^\/?:?([/\w-.]+)\/([\w-.]+)\/?$/);const o=new RegExp(/^\/repos\/([\w-.]+)\/([\w-.]+)\/(?:tarball|zipball)(?:\/.+)?$/);const a=new RegExp(/^\/([\w-.]+)\/([\w-.]+)\/(?:legacy\.(?:zip|tar\.gz))(?:\/.+)?$/);e.exports=e=>{const t=e.replace(/^git@/,`https://git@`).replace(/\.git$/,``);const n=i(t);const format=e=>({browse:createBrowseURL(n,e),domain:n.host,project:e[2]||null,type:getType(n),user:e[1]||null});if(n.host){if(n.host.includes(`api.github.com`)){const e=o.exec(n.pathname)||[];return format(e)}if(n.host.includes(`codeload.github.com`)){const e=a.exec(n.pathname)||[];return format(e)}}return format(s.exec(n.pathname)||[])};function getType(e){if(typeof e.host!==`string`){return null}if(e.host.indexOf(`github`)!==-1){return"github"}if(e.host.indexOf(`gitlab`)!==-1){return"gitlab"}return null}function createBrowseURL(e,t){const n=e.protocol===`http:`?`http:`:`https:`;const i=`${n}//${e.host}/${t[1]}/${t[2]}`;return()=>i}},1374:(e,t,n)=>{"use strict";const i=n(2033);const s=global.Date;class Date extends s{constructor(e){super(e);this.isDate=true}toISOString(){return`${this.getUTCFullYear()}-${i(2,this.getUTCMonth()+1)}-${i(2,this.getUTCDate())}`}}e.exports=e=>{const t=new Date(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},5606:(e,t,n)=>{"use strict";const i=n(2033);class FloatingDateTime extends Date{constructor(e){super(e+"Z");this.isFloating=true}toISOString(){const e=`${this.getUTCFullYear()}-${i(2,this.getUTCMonth()+1)}-${i(2,this.getUTCDate())}`;const t=`${i(2,this.getUTCHours())}:${i(2,this.getUTCMinutes())}:${i(2,this.getUTCSeconds())}.${i(3,this.getUTCMilliseconds())}`;return`${e}T${t}`}}e.exports=e=>{const t=new FloatingDateTime(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},3173:e=>{"use strict";e.exports=e=>{const t=new Date(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},5484:(e,t,n)=>{"use strict";const i=n(2033);class Time extends Date{constructor(e){super(`0000-01-01T${e}Z`);this.isTime=true}toISOString(){return`${i(2,this.getUTCHours())}:${i(2,this.getUTCMinutes())}:${i(2,this.getUTCSeconds())}.${i(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new Time(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},2033:e=>{"use strict";e.exports=(e,t)=>{t=String(t);while(t.length{"use strict";const t=1114112;class ParserError extends Error{constructor(e,t,n){super("[ParserError] "+e,t,n);this.name="ParserError";this.code="ParserError";if(Error.captureStackTrace)Error.captureStackTrace(this,ParserError)}}class State{constructor(e){this.parser=e;this.buf="";this.returned=null;this.result=null;this.resultTable=null;this.resultArr=null}}class Parser{constructor(){this.pos=0;this.col=0;this.line=0;this.obj={};this.ctx=this.obj;this.stack=[];this._buf="";this.char=null;this.ii=0;this.state=new State(this.parseStart)}parse(e){if(e.length===0||e.length==null)return;this._buf=String(e);this.ii=-1;this.char=-1;let t;while(t===false||this.nextChar()){t=this.runOne()}this._buf=null}nextChar(){if(this.char===10){++this.line;this.col=-1}++this.ii;this.char=this._buf.codePointAt(this.ii);++this.pos;++this.col;return this.haveBuffer()}haveBuffer(){return this.ii{"use strict";module.exports=makeParserClass(__nccwpck_require__(9137));module.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(e){super(e);this.name="TomlError";if(Error.captureStackTrace)Error.captureStackTrace(this,TomlError);this.fromTOML=true;this.wrapped=null}}TomlError.wrap=e=>{const t=new TomlError(e.message);t.code=e.code;t.wrapped=e;return t};module.exports.TomlError=TomlError;const createDateTime=__nccwpck_require__(3173);const createDateTimeFloat=__nccwpck_require__(5606);const createDate=__nccwpck_require__(1374);const createTime=__nccwpck_require__(5484);const CTRL_I=9;const CTRL_J=10;const CTRL_M=13;const CTRL_CHAR_BOUNDARY=31;const CHAR_SP=32;const CHAR_QUOT=34;const CHAR_NUM=35;const CHAR_APOS=39;const CHAR_PLUS=43;const CHAR_COMMA=44;const CHAR_HYPHEN=45;const CHAR_PERIOD=46;const CHAR_0=48;const CHAR_1=49;const CHAR_7=55;const CHAR_9=57;const CHAR_COLON=58;const CHAR_EQUALS=61;const CHAR_A=65;const CHAR_E=69;const CHAR_F=70;const CHAR_T=84;const CHAR_U=85;const CHAR_Z=90;const CHAR_LOWBAR=95;const CHAR_a=97;const CHAR_b=98;const CHAR_e=101;const CHAR_f=102;const CHAR_i=105;const CHAR_l=108;const CHAR_n=110;const CHAR_o=111;const CHAR_r=114;const CHAR_s=115;const CHAR_t=116;const CHAR_u=117;const CHAR_x=120;const CHAR_z=122;const CHAR_LCUB=123;const CHAR_RCUB=125;const CHAR_LSQB=91;const CHAR_BSOL=92;const CHAR_RSQB=93;const CHAR_DEL=127;const SURROGATE_FIRST=55296;const SURROGATE_LAST=57343;const escapes={[CHAR_b]:"\b",[CHAR_t]:"\t",[CHAR_n]:"\n",[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}const _type=Symbol("type");const _declared=Symbol("declared");const hasOwnProperty=Object.prototype.hasOwnProperty;const defineProperty=Object.defineProperty;const descriptor={configurable:true,enumerable:true,writable:true,value:undefined};function hasKey(e,t){if(hasOwnProperty.call(e,t))return true;if(t==="__proto__")defineProperty(e,"__proto__",descriptor);return false}const INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){if(e===null||typeof e!=="object")return false;return e[_type]===INLINE_TABLE}const TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:false,writable:true}})}function isTable(e){if(e===null||typeof e!=="object")return false;return e[_type]===TABLE}const _contentType=Symbol("content-type");const INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){if(e===null||typeof e!=="object")return false;return e[_type]===INLINE_LIST}const LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){if(e===null||typeof e!=="object")return false;return e[_type]===LIST}let _custom;try{const utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}const _inspect=_custom||"inspect";class BoxedBigInt{constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch(e){this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}}const INTEGER=Symbol("integer");function Integer(e){let t=Number(e);if(Object.is(t,-0))t=0;if(global.BigInt&&!Number.isSafeInteger(t)){return new BoxedBigInt(e)}else{return Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}}function isInteger(e){if(e===null||typeof e!=="object")return false;return e[_type]===INTEGER}const FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){if(e===null||typeof e!=="object")return false;return e[_type]===FLOAT}function tomlType(e){const t=typeof e;if(t==="object"){if(e===null)return"null";if(e instanceof Date)return"datetime";if(_type in e){switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}}return t}function makeParserClass(e){class TOMLParser extends e{constructor(){super();this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END){return null}else if(this.char===CHAR_LSQB){return this.call(this.parseTableOrList)}else if(this.char===CHAR_NUM){return this.call(this.parseComment)}else if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M){return null}else if(isAlphaNumQuoteHyphen(this.char)){return this.callNow(this.parseAssignStatement)}else{throw this.error(new TomlError(`Unknown character "${this.char}"`))}}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M){return null}else if(this.char===CHAR_NUM){return this.goto(this.parseComment)}else if(this.char===e.END||this.char===CTRL_J){return this.return()}else{throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(e){let t=this.ctx;let n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared])){throw this.error(new TomlError("Can't redefine existing key"))}t=t[n]=t[n]||Table()}if(hasKey(t,n)){throw this.error(new TomlError("Can't redefine existing key"))}if(isInteger(e.value)||isFloat(e.value)){t[n]=e.value.valueOf()}else{t[n]=e.value}return this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(e){if(this.state.resultTable){this.state.resultTable.push(e)}else{this.state.resultTable=[e]}return this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD){return this.next(this.parseAssignKeywordPostDot)}else if(this.char!==CHAR_SP&&this.char!==CTRL_I){return this.goto(this.parseAssignEqual)}}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}}parseAssignEqual(){if(this.char===CHAR_EQUALS){return this.next(this.parseAssignPreValue)}else{throw this.error(new TomlError('Invalid character, expected "="'))}}parseAssignPreValue(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else{return this.callNow(this.parseValue,this.recordAssignValue)}}recordAssignValue(e){return this.returnNow({key:this.state.resultTable,value:e})}parseComment(){do{if(this.char===e.END||this.char===CTRL_J){return this.return()}}while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB){this.next(this.parseList)}else{return this.goto(this.parseTable)}}parseTable(){this.ctx=this.obj;return this.goto(this.parseTableNext)}parseTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else{return this.callNow(this.parseKeyword,this.parseTableMore)}}parseTableMore(e){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)&&(!isTable(this.ctx[e])||this.ctx[e][_declared])){throw this.error(new TomlError("Can't redefine existing key"))}else{this.ctx=this.ctx[e]=this.ctx[e]||Table();this.ctx[_declared]=true}return this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,e)){this.ctx=this.ctx[e]=Table()}else if(isTable(this.ctx[e])){this.ctx=this.ctx[e]}else if(isList(this.ctx[e])){this.ctx=this.ctx[e][this.ctx[e].length-1]}else{throw this.error(new TomlError("Can't redefine existing key"))}return this.next(this.parseTableNext)}else{throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}}parseList(){this.ctx=this.obj;return this.goto(this.parseListNext)}parseListNext(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else{return this.callNow(this.parseKeyword,this.parseListMore)}}parseListMore(e){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===CHAR_RSQB){if(!hasKey(this.ctx,e)){this.ctx[e]=List()}if(isInlineList(this.ctx[e])){throw this.error(new TomlError("Can't extend an inline array"))}else if(isList(this.ctx[e])){const t=Table();this.ctx[e].push(t);this.ctx=t}else{throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,e)){this.ctx=this.ctx[e]=Table()}else if(isInlineList(this.ctx[e])){throw this.error(new TomlError("Can't extend an inline array"))}else if(isInlineTable(this.ctx[e])){throw this.error(new TomlError("Can't extend an inline table"))}else if(isList(this.ctx[e])){this.ctx=this.ctx[e][this.ctx[e].length-1]}else if(isTable(this.ctx[e])){this.ctx=this.ctx[e]}else{throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListNext)}else{throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}}parseListEnd(e){if(this.char===CHAR_RSQB){return this.next(this.parseWhitespaceToEOL)}else{throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}}parseValue(){if(this.char===e.END){throw this.error(new TomlError("Key without value"))}else if(this.char===CHAR_QUOT){return this.next(this.parseDoubleString)}if(this.char===CHAR_APOS){return this.next(this.parseSingleString)}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){return this.goto(this.parseNumberSign)}else if(this.char===CHAR_i){return this.next(this.parseInf)}else if(this.char===CHAR_n){return this.next(this.parseNan)}else if(isDigit(this.char)){return this.goto(this.parseNumberOrDateTime)}else if(this.char===CHAR_t||this.char===CHAR_f){return this.goto(this.parseBoolean)}else if(this.char===CHAR_LSQB){return this.call(this.parseInlineList,this.recordValue)}else if(this.char===CHAR_LCUB){return this.call(this.parseInlineTable,this.recordValue)}else{throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}}recordValue(e){return this.returnNow(e)}parseInf(){if(this.char===CHAR_n){return this.next(this.parseInf2)}else{throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}}parseInf2(){if(this.char===CHAR_f){if(this.state.buf==="-"){return this.return(-Infinity)}else{return this.return(Infinity)}}else{throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}}parseNan(){if(this.char===CHAR_a){return this.next(this.parseNan2)}else{throw this.error(new TomlError('Unexpected character, expected "nan"'))}}parseNan2(){if(this.char===CHAR_n){return this.return(NaN)}else{throw this.error(new TomlError('Unexpected character, expected "nan"'))}}parseKeyword(){if(this.char===CHAR_QUOT){return this.next(this.parseBasicString)}else if(this.char===CHAR_APOS){return this.next(this.parseLiteralString)}else{return this.goto(this.parseBareKey)}}parseBareKey(){do{if(this.char===e.END){throw this.error(new TomlError("Key ended without value"))}else if(isAlphaNumHyphen(this.char)){this.consume()}else if(this.state.buf.length===0){throw this.error(new TomlError("Empty bare keys are not allowed"))}else{return this.returnNow()}}while(this.nextChar())}parseSingleString(){if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiStringMaybe)}else{return this.goto(this.parseLiteralString)}}parseLiteralString(){do{if(this.char===CHAR_APOS){return this.return()}else if(this.atEndOfLine()){throw this.error(new TomlError("Unterminated string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}parseLiteralMultiStringMaybe(){if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiString)}else{return this.returnNow()}}parseLiteralMultiString(){if(this.char===CTRL_M){return null}else if(this.char===CTRL_J){return this.next(this.parseLiteralMultiStringContent)}else{return this.goto(this.parseLiteralMultiStringContent)}}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiEnd)}else if(this.char===e.END){throw this.error(new TomlError("Unterminated multi-line string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}parseLiteralMultiEnd(){if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiEnd2)}else{this.state.buf+="'";return this.goto(this.parseLiteralMultiStringContent)}}parseLiteralMultiEnd2(){if(this.char===CHAR_APOS){return this.return()}else{this.state.buf+="''";return this.goto(this.parseLiteralMultiStringContent)}}parseDoubleString(){if(this.char===CHAR_QUOT){return this.next(this.parseMultiStringMaybe)}else{return this.goto(this.parseBasicString)}}parseBasicString(){do{if(this.char===CHAR_BSOL){return this.call(this.parseEscape,this.recordEscapeReplacement)}else if(this.char===CHAR_QUOT){return this.return()}else if(this.atEndOfLine()){throw this.error(new TomlError("Unterminated string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}recordEscapeReplacement(e){this.state.buf+=e;return this.goto(this.parseBasicString)}parseMultiStringMaybe(){if(this.char===CHAR_QUOT){return this.next(this.parseMultiString)}else{return this.returnNow()}}parseMultiString(){if(this.char===CTRL_M){return null}else if(this.char===CTRL_J){return this.next(this.parseMultiStringContent)}else{return this.goto(this.parseMultiStringContent)}}parseMultiStringContent(){do{if(this.char===CHAR_BSOL){return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement)}else if(this.char===CHAR_QUOT){return this.next(this.parseMultiEnd)}else if(this.char===e.END){throw this.error(new TomlError("Unterminated multi-line string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}errorControlCharInString(){let e="\\u00";if(this.char<16){e+="0"}e+=this.char.toString(16);return this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${e} instead`))}recordMultiEscapeReplacement(e){this.state.buf+=e;return this.goto(this.parseMultiStringContent)}parseMultiEnd(){if(this.char===CHAR_QUOT){return this.next(this.parseMultiEnd2)}else{this.state.buf+='"';return this.goto(this.parseMultiStringContent)}}parseMultiEnd2(){if(this.char===CHAR_QUOT){return this.return()}else{this.state.buf+='""';return this.goto(this.parseMultiStringContent)}}parseMultiEscape(){if(this.char===CTRL_M||this.char===CTRL_J){return this.next(this.parseMultiTrim)}else if(this.char===CHAR_SP||this.char===CTRL_I){return this.next(this.parsePreMultiTrim)}else{return this.goto(this.parseEscape)}}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===CTRL_M||this.char===CTRL_J){return this.next(this.parseMultiTrim)}else{throw this.error(new TomlError("Can't escape whitespace"))}}parseMultiTrim(){if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M){return null}else{return this.returnNow()}}parseEscape(){if(this.char in escapes){return this.return(escapes[this.char])}else if(this.char===CHAR_u){return this.call(this.parseSmallUnicode,this.parseUnicodeReturn)}else if(this.char===CHAR_U){return this.call(this.parseLargeUnicode,this.parseUnicodeReturn)}else{throw this.error(new TomlError("Unknown escape character: "+this.char))}}parseUnicodeReturn(e){try{const t=parseInt(e,16);if(t>=SURROGATE_FIRST&&t<=SURROGATE_LAST){throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"))}return this.returnNow(String.fromCodePoint(t))}catch(e){throw this.error(TomlError.wrap(e))}}parseSmallUnicode(){if(!isHexit(this.char)){throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}else{this.consume();if(this.state.buf.length>=4)return this.return()}}parseLargeUnicode(){if(!isHexit(this.char)){throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}else{this.consume();if(this.state.buf.length>=8)return this.return()}}parseNumberSign(){this.consume();return this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){if(this.char===CHAR_i){return this.next(this.parseInf)}else if(this.char===CHAR_n){return this.next(this.parseNan)}else{return this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}}parseNumberIntegerStart(){if(this.char===CHAR_0){this.consume();return this.next(this.parseNumberIntegerExponentOrDecimal)}else{return this.goto(this.parseNumberInteger)}}parseNumberIntegerExponentOrDecimal(){if(this.char===CHAR_PERIOD){this.consume();return this.call(this.parseNoUnder,this.parseNumberFloat)}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else{return this.returnNow(Integer(this.state.buf))}}parseNumberInteger(){if(isDigit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder)}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else if(this.char===CHAR_PERIOD){this.consume();return this.call(this.parseNoUnder,this.parseNumberFloat)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e){throw this.error(new TomlError("Unexpected character, expected digit"))}else if(this.atEndOfWord()){throw this.error(new TomlError("Incomplete number"))}return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD){throw this.error(new TomlError("Unexpected character, expected digit"))}else if(this.atEndOfWord()){throw this.error(new TomlError("Incomplete number"))}return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder,this.parseNumberFloat)}else if(isDigit(this.char)){this.consume()}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else{return this.returnNow(Float(this.state.buf))}}parseNumberExponentSign(){if(isDigit(this.char)){return this.goto(this.parseNumberExponent)}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){this.consume();this.call(this.parseNoUnder,this.parseNumberExponent)}else{throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}}parseNumberExponent(){if(isDigit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder)}else{return this.returnNow(Float(this.state.buf))}}parseNumberOrDateTime(){if(this.char===CHAR_0){this.consume();return this.next(this.parseNumberBaseOrDateTime)}else{return this.goto(this.parseNumberOrDateTimeOnly)}}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder,this.parseNumberInteger)}else if(isDigit(this.char)){this.consume();if(this.state.buf.length>4)this.next(this.parseNumberInteger)}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else if(this.char===CHAR_PERIOD){this.consume();return this.call(this.parseNoUnder,this.parseNumberFloat)}else if(this.char===CHAR_HYPHEN){return this.goto(this.parseDateTime)}else if(this.char===CHAR_COLON){return this.goto(this.parseOnlyTimeHour)}else{return this.returnNow(Integer(this.state.buf))}}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char)){return this.consume()}else if(this.char===CHAR_COLON){return this.goto(this.parseOnlyTimeHour)}else{throw this.error(new TomlError("Expected digit while parsing year part of a date"))}}else{if(this.char===CHAR_HYPHEN){return this.goto(this.parseDateTime)}else{throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}}}parseNumberBaseOrDateTime(){if(this.char===CHAR_b){this.consume();return this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)}else if(this.char===CHAR_o){this.consume();return this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)}else if(this.char===CHAR_x){this.consume();return this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)}else if(this.char===CHAR_PERIOD){return this.goto(this.parseNumberInteger)}else if(isDigit(this.char)){return this.goto(this.parseDateTimeOnly)}else{return this.returnNow(Integer(this.state.buf))}}parseIntegerHex(){if(isHexit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnderHexOctBinLiteral)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseIntegerOct(){if(isOctit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnderHexOctBinLiteral)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseIntegerBin(){if(isBit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnderHexOctBinLiteral)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseDateTime(){if(this.state.buf.length<4){throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"))}this.state.result=this.state.buf;this.state.buf="";return this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2){throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"))}this.state.result+="-"+this.state.buf;this.state.buf="";return this.next(this.parseDateDay)}else if(isDigit(this.char)){this.consume()}else{throw this.error(new TomlError("Incomplete datetime"))}}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2){throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"))}this.state.result+="-"+this.state.buf;this.state.buf="";return this.next(this.parseStartTimeHour)}else if(this.atEndOfWord()){return this.returnNow(createDate(this.state.result+"-"+this.state.buf))}else if(isDigit(this.char)){this.consume()}else{throw this.error(new TomlError("Incomplete datetime"))}}parseStartTimeHour(){if(this.atEndOfWord()){return this.returnNow(createDate(this.state.result))}else{return this.goto(this.parseTimeHour)}}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2){throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"))}this.state.result+="T"+this.state.buf;this.state.buf="";return this.next(this.parseTimeMin)}else if(isDigit(this.char)){this.consume()}else{throw this.error(new TomlError("Incomplete datetime"))}}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char)){this.consume()}else if(this.state.buf.length===2&&this.char===CHAR_COLON){this.state.result+=":"+this.state.buf;this.state.buf="";return this.next(this.parseTimeSec)}else{throw this.error(new TomlError("Incomplete datetime"))}}parseTimeSec(){if(isDigit(this.char)){this.consume();if(this.state.buf.length===2){this.state.result+=":"+this.state.buf;this.state.buf="";return this.next(this.parseTimeZoneOrFraction)}}else{throw this.error(new TomlError("Incomplete datetime"))}}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2){throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"))}this.state.result=this.state.buf;this.state.buf="";return this.next(this.parseOnlyTimeMin)}else{throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char)){this.consume()}else if(this.state.buf.length===2&&this.char===CHAR_COLON){this.state.result+=":"+this.state.buf;this.state.buf="";return this.next(this.parseOnlyTimeSec)}else{throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeSec(){if(isDigit(this.char)){this.consume();if(this.state.buf.length===2){return this.next(this.parseOnlyTimeFractionMaybe)}}else{throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeFractionMaybe(){this.state.result+=":"+this.state.buf;if(this.char===CHAR_PERIOD){this.state.buf="";this.next(this.parseOnlyTimeFraction)}else{return this.return(createTime(this.state.result))}}parseOnlyTimeFraction(){if(isDigit(this.char)){this.consume()}else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD){this.consume();this.next(this.parseDateTimeFraction)}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){this.consume();this.next(this.parseTimeZoneHour)}else if(this.char===CHAR_Z){this.consume();return this.return(createDateTime(this.state.result+this.state.buf))}else if(this.atEndOfWord()){return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(isDigit(this.char)){this.consume()}else if(this.state.buf.length===1){throw this.error(new TomlError("Expected digit in milliseconds"))}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){this.consume();this.next(this.parseTimeZoneHour)}else if(this.char===CHAR_Z){this.consume();return this.return(createDateTime(this.state.result+this.state.buf))}else if(this.atEndOfWord()){return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseTimeZoneHour(){if(isDigit(this.char)){this.consume();if(/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else{throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}}parseTimeZoneSep(){if(this.char===CHAR_COLON){this.consume();this.next(this.parseTimeZoneMin)}else{throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}}parseTimeZoneMin(){if(isDigit(this.char)){this.consume();if(/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}}parseBoolean(){if(this.char===CHAR_t){this.consume();return this.next(this.parseTrue_r)}else if(this.char===CHAR_f){this.consume();return this.next(this.parseFalse_a)}}parseTrue_r(){if(this.char===CHAR_r){this.consume();return this.next(this.parseTrue_u)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseTrue_u(){if(this.char===CHAR_u){this.consume();return this.next(this.parseTrue_e)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseTrue_e(){if(this.char===CHAR_e){return this.return(true)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_a(){if(this.char===CHAR_a){this.consume();return this.next(this.parseFalse_l)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_l(){if(this.char===CHAR_l){this.consume();return this.next(this.parseFalse_s)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_s(){if(this.char===CHAR_s){this.consume();return this.next(this.parseFalse_e)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_e(){if(this.char===CHAR_e){return this.return(false)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J){return null}else if(this.char===e.END){throw this.error(new TomlError("Unterminated inline array"))}else if(this.char===CHAR_NUM){return this.call(this.parseComment)}else if(this.char===CHAR_RSQB){return this.return(this.state.resultArr||InlineList())}else{return this.callNow(this.parseValue,this.recordInlineListValue)}}recordInlineListValue(e){if(this.state.resultArr){const t=this.state.resultArr[_contentType];const n=tomlType(e);if(t!==n){throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${t} and ${n}`))}}else{this.state.resultArr=InlineList(tomlType(e))}if(isFloat(e)||isInteger(e)){this.state.resultArr.push(e.valueOf())}else{this.state.resultArr.push(e)}return this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J){return null}else if(this.char===CHAR_NUM){return this.call(this.parseComment)}else if(this.char===CHAR_COMMA){return this.next(this.parseInlineList)}else if(this.char===CHAR_RSQB){return this.goto(this.parseInlineList)}else{throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M){throw this.error(new TomlError("Unterminated inline array"))}else if(this.char===CHAR_RCUB){return this.return(this.state.resultTable||InlineTable())}else{if(!this.state.resultTable)this.state.resultTable=InlineTable();return this.callNow(this.parseAssign,this.recordInlineTableValue)}}recordInlineTableValue(e){let t=this.state.resultTable;let n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared])){throw this.error(new TomlError("Can't redefine existing key"))}t=t[n]=t[n]||Table()}if(hasKey(t,n)){throw this.error(new TomlError("Can't redefine existing key"))}if(isInteger(e.value)||isFloat(e.value)){t[n]=e.value.valueOf()}else{t[n]=e.value}return this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M){throw this.error(new TomlError("Unterminated inline array"))}else if(this.char===CHAR_COMMA){return this.next(this.parseInlineTable)}else if(this.char===CHAR_RCUB){return this.goto(this.parseInlineTable)}else{throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}}return TOMLParser}},1939:(e,t,n)=>{"use strict";e.exports=parseAsync;const i=n(8784);const s=n(7964);function parseAsync(e,t){if(!t)t={};const n=0;const o=t.blocksize||40960;const a=new i;return new Promise(((e,t)=>{setImmediate(parseAsyncNext,n,o,e,t)}));function parseAsyncNext(t,n,i,o){if(t>=e.length){try{return i(a.finish())}catch(t){return o(s(t,e))}}try{a.parse(e.slice(t,t+n));setImmediate(parseAsyncNext,t+n,n,i,o)}catch(t){o(s(t,e))}}}},7964:e=>{"use strict";e.exports=prettyError;function prettyError(e,t){if(e.pos==null||e.line==null)return e;let n=e.message;n+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:\n`;if(t&&t.split){const i=t.split(/\n/);const s=String(Math.min(i.length,e.line+3)).length;let o=" ";while(o.length "+i[t]+"\n";n+=o+" ";for(let t=0;t{"use strict";e.exports=parseStream;const i=n(2413);const s=n(8784);function parseStream(e){if(e){return parseReadable(e)}else{return parseTransform(e)}}function parseReadable(e){const t=new s;e.setEncoding("utf8");return new Promise(((n,i)=>{let s;let o=false;let a=false;function finish(){o=true;if(s)return;try{n(t.finish())}catch(e){i(e)}}function error(e){a=true;i(e)}e.once("end",finish);e.once("error",error);readNext();function readNext(){s=true;let n;while((n=e.read())!==null){try{t.parse(n)}catch(e){return error(e)}}s=false;if(o)return finish();if(a)return;e.once("readable",readNext)}}))}function parseTransform(){const e=new s;return new i.Transform({objectMode:true,transform(t,n,i){try{e.parse(t.toString(n))}catch(e){this.emit("error",e)}i()},flush(t){try{this.push(e.finish())}catch(e){this.emit("error",e)}t()}})}},5865:(e,t,n)=>{"use strict";e.exports=parseString;const i=n(8784);const s=n(7964);function parseString(e){if(global.Buffer&&global.Buffer.isBuffer(e)){e=e.toString("utf8")}const t=new i;try{t.parse(e);return t.finish()}catch(t){throw s(t,e)}}},3848:(e,t,n)=>{"use strict";e.exports=n(5865);e.exports.async=n(1939);e.exports.stream=n(558);e.exports.prettyError=n(7964)},6303:e=>{"use strict";e.exports=stringify;e.exports.value=stringifyInline;function stringify(e){if(e===null)throw typeError("null");if(e===void 0)throw typeError("undefined");if(typeof e!=="object")throw typeError(typeof e);if(typeof e.toJSON==="function")e=e.toJSON();if(e==null)return null;const t=tomlType(e);if(t!=="table")throw typeError(t);return stringifyObject("","",e)}function typeError(e){return new Error("Can only stringify objects, not "+e)}function arrayOneTypeError(){return new Error("Array values can't have mixed types")}function getInlineKeys(e){return Object.keys(e).filter((t=>isInline(e[t])))}function getComplexKeys(e){return Object.keys(e).filter((t=>!isInline(e[t])))}function toJSON(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:undefined}:{};for(let n of Object.keys(e)){if(e[n]&&typeof e[n].toJSON==="function"&&!("toISOString"in e[n])){t[n]=e[n].toJSON()}else{t[n]=e[n]}}return t}function stringifyObject(e,t,n){n=toJSON(n);var i;var s;i=getInlineKeys(n);s=getComplexKeys(n);var o=[];var a=t||"";i.forEach((e=>{var t=tomlType(n[e]);if(t!=="undefined"&&t!=="null"){o.push(a+stringifyKey(e)+" = "+stringifyAnyInline(n[e],true))}}));if(o.length>0)o.push("");var l=e&&i.length>0?t+" ":"";s.forEach((t=>{o.push(stringifyComplex(e,l,t,n[t]))}));return o.join("\n")}function isInline(e){switch(tomlType(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return true;case"array":return e.length===0||tomlType(e[0])!=="table";case"table":return Object.keys(e).length===0;default:return false}}function tomlType(e){if(e===undefined){return"undefined"}else if(e===null){return"null"}else if(typeof e==="bigint"||Number.isInteger(e)&&!Object.is(e,-0)){return"integer"}else if(typeof e==="number"){return"float"}else if(typeof e==="boolean"){return"boolean"}else if(typeof e==="string"){return"string"}else if("toISOString"in e){return isNaN(e)?"undefined":"datetime"}else if(Array.isArray(e)){return"array"}else{return"table"}}function stringifyKey(e){var t=String(e);if(/^[-A-Za-z0-9_]+$/.test(t)){return t}else{return stringifyBasicString(t)}}function stringifyBasicString(e){return'"'+escapeString(e).replace(/"/g,'\\"')+'"'}function stringifyLiteralString(e){return"'"+e+"'"}function numpad(e,t){while(t.length"\\u"+numpad(4,e.codePointAt(0).toString(16))))}function stringifyMultilineString(e){let t=e.split(/\n/).map((e=>escapeString(e).replace(/"(?="")/g,'\\"'))).join("\n");if(t.slice(-1)==='"')t+="\\\n";return'"""\n'+t+'"""'}function stringifyAnyInline(e,t){let n=tomlType(e);if(n==="string"){if(t&&/\n/.test(e)){n="string-multiline"}else if(!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)){n="string-literal"}}return stringifyInline(e,n)}function stringifyInline(e,t){if(!t)t=tomlType(e);switch(t){case"string-multiline":return stringifyMultilineString(e);case"string":return stringifyBasicString(e);case"string-literal":return stringifyLiteralString(e);case"integer":return stringifyInteger(e);case"float":return stringifyFloat(e);case"boolean":return stringifyBoolean(e);case"datetime":return stringifyDatetime(e);case"array":return stringifyInlineArray(e.filter((e=>tomlType(e)!=="null"&&tomlType(e)!=="undefined"&&tomlType(e)!=="nan")));case"table":return stringifyInlineTable(e);default:throw typeError(t)}}function stringifyInteger(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function stringifyFloat(e){if(e===Infinity){return"inf"}else if(e===-Infinity){return"-inf"}else if(Object.is(e,NaN)){return"nan"}else if(Object.is(e,-0)){return"-0.0"}var t=String(e).split(".");var n=t[0];var i=t[1]||0;return stringifyInteger(n)+"."+i}function stringifyBoolean(e){return String(e)}function stringifyDatetime(e){return e.toISOString()}function isNumber(e){return e==="float"||e==="integer"}function arrayType(e){var t=tomlType(e[0]);if(e.every((e=>tomlType(e)===t)))return t;if(e.every((e=>isNumber(tomlType(e)))))return"float";return"mixed"}function validateArray(e){const t=arrayType(e);if(t==="mixed"){throw arrayOneTypeError()}return t}function stringifyInlineArray(e){e=toJSON(e);const t=validateArray(e);var n="[";var i=e.map((e=>stringifyInline(e,t)));if(i.join(", ").length>60||/\n/.test(i)){n+="\n "+i.join(",\n ")+"\n"}else{n+=" "+i.join(", ")+(i.length>0?" ":"")}return n+"]"}function stringifyInlineTable(e){e=toJSON(e);var t=[];Object.keys(e).forEach((n=>{t.push(stringifyKey(n)+" = "+stringifyAnyInline(e[n],false))}));return"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}function stringifyComplex(e,t,n,i){var s=tomlType(i);if(s==="array"){return stringifyArrayOfTables(e,t,n,i)}else if(s==="table"){return stringifyComplexTable(e,t,n,i)}else{throw typeError(s)}}function stringifyArrayOfTables(e,t,n,i){i=toJSON(i);validateArray(i);var s=tomlType(i[0]);if(s!=="table")throw typeError(s);var o=e+stringifyKey(n);var a="";i.forEach((e=>{if(a.length>0)a+="\n";a+=t+"[["+o+"]]\n";a+=stringifyObject(o+".",t,e)}));return a}function stringifyComplexTable(e,t,n,i){var s=e+stringifyKey(n);var o="";if(getInlineKeys(i).length>0){o+=t+"["+s+"]\n"}return o+stringifyObject(s+".",t,i)}},2901:(e,t,n)=>{"use strict";t.parse=n(3848);t.stringify=n(6303)},6235:(e,t,n)=>{"use strict";var i=n(2413).PassThrough;var s=n(2413).Writable;var o=n(1669);o.inherits(Appendee,i);o.inherits(Appender,s);function Appendee(e,t){i.call(this,t);this.factory=e;this.opts=t}Appendee.prototype._flush=function(e){var t=this.factory();t.pipe(new Appender(this,this.opts)).on("finish",e);t.resume()};function Appender(e,t){s.call(this,t);this.target=e}Appender.prototype._write=function(e,t,n){this.target.push(e);n()};function addStream(e,t){t=t||{};var n;if(typeof e==="function"){n=e}else{e.pause();n=function(){return e}}return new Appendee(n,t)}addStream.obj=function(e,t){t=t||{};t.objectMode=true;return addStream(e,t)};e.exports=addStream},8912:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e:[e]}},3018:e=>{var t=Object.prototype.toString;var n=typeof Buffer!=="undefined"&&typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function isArrayBuffer(e){return t.call(e).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(e,t,i){t>>>=0;var s=e.byteLength-t;if(s<0){throw new RangeError("'offset' is out of bounds")}if(i===undefined){i=s}else{i>>>=0;if(i>s){throw new RangeError("'length' is out of bounds")}}return n?Buffer.from(e.slice(t,t+i)):new Buffer(new Uint8Array(e.slice(t,t+i)))}function fromString(e,t){if(typeof t!=="string"||t===""){t="utf8"}if(!Buffer.isEncoding(t)){throw new TypeError('"encoding" must be a valid string encoding')}return n?Buffer.from(e,t):new Buffer(e,t)}function bufferFrom(e,t,i){if(typeof e==="number"){throw new TypeError('"value" argument must not be a number')}if(isArrayBuffer(e)){return fromArrayBuffer(e,t,i)}if(typeof e==="string"){return fromString(e,t)}return n?Buffer.from(e):new Buffer(e)}e.exports=bufferFrom},4623:(e,t,n)=>{"use strict";var i=n(8912);var s=n(2042).get;function compareFunc(e){return function(t,n){var o=0;i(e).some((function(e){var i;var a;if(typeof e==="function"){i=e(t);a=e(n)}else if(typeof e==="string"){i=s(t,e);a=s(n,e)}else{i=t;a=n}if(i===a){o=0;return}if(typeof i==="string"&&typeof a==="string"){o=i.localeCompare(a);return o!==0}o=i{var i=n(1642).Writable;var s=n(4124);var o=n(3018);if(typeof Uint8Array==="undefined"){var a=n(5027).U2}else{var a=Uint8Array}function ConcatStream(e,t){if(!(this instanceof ConcatStream))return new ConcatStream(e,t);if(typeof e==="function"){t=e;e={}}if(!e)e={};var n=e.encoding;var s=false;if(!n){s=true}else{n=String(n).toLowerCase();if(n==="u8"||n==="uint8"){n="uint8array"}}i.call(this,{objectMode:true});this.encoding=n;this.shouldInferEncoding=s;if(t)this.on("finish",(function(){t(this.getBody())}));this.body=[]}e.exports=ConcatStream;s(ConcatStream,i);ConcatStream.prototype._write=function(e,t,n){this.body.push(e);n()};ConcatStream.prototype.inferEncoding=function(e){var t=e===undefined?this.body[0]:e;if(Buffer.isBuffer(t))return"buffer";if(typeof Uint8Array!=="undefined"&&t instanceof Uint8Array)return"uint8array";if(Array.isArray(t))return"array";if(typeof t==="string")return"string";if(Object.prototype.toString.call(t)==="[object Object]")return"object";return"buffer"};ConcatStream.prototype.getBody=function(){if(!this.encoding&&this.body.length===0)return[];if(this.shouldInferEncoding)this.encoding=this.inferEncoding();if(this.encoding==="array")return arrayConcat(this.body);if(this.encoding==="string")return stringConcat(this.body);if(this.encoding==="buffer")return bufferConcat(this.body);if(this.encoding==="uint8array")return u8Concat(this.body);return this.body};var l=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"};function isArrayish(e){return/Array\]$/.test(Object.prototype.toString.call(e))}function isBufferish(e){return typeof e==="string"||isArrayish(e)||e&&typeof e.subarray==="function"}function stringConcat(e){var t=[];var n=false;for(var i=0;i{"use strict";const i=n(6172);const s=n(4593);const o=n(8631);e.exports=i.all([s,o]).spread(((e,t)=>({parserOpts:e,writerOpts:t})))},3625:(e,t,n)=>{"use strict";const i=n(4593);e.exports={parserOpts:i,whatBump:e=>{let t=2;let n=0;let i=0;e.forEach((e=>{if(e.notes.length>0){n+=e.notes.length;t=0}else if(e.type==="feat"){i+=1;if(t===2){t=1}}}));return{level:t,reason:n===1?`There is ${n} BREAKING CHANGE and ${i} features`:`There are ${n} BREAKING CHANGES and ${i} features`}}}},8143:(e,t,n)=>{"use strict";const i=n(6172);const s=n(5290);const o=n(4593);const a=n(3625);const l=n(8631);e.exports=i.all([s,o,a,l]).spread(((e,t,n,i)=>({conventionalChangelog:e,parserOpts:t,recommendedBumpOpts:n,writerOpts:i})))},4593:e=>{"use strict";e.exports={headerPattern:/^(\w*)(?:\((.*)\))?: (.*)$/,headerCorrespondence:["type","scope","subject"],noteKeywords:["BREAKING CHANGE"],revertPattern:/^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,revertCorrespondence:["header","hash"]}},8631:(e,t,n)=>{"use strict";const i=n(4623);const s=n(6172);const o=s.denodeify(n(5747).readFile);const a=n(5622).resolve;e.exports=s.all([o(n.ab+"template.hbs","utf-8"),o(n.ab+"header.hbs","utf-8"),o(n.ab+"commit.hbs","utf-8"),o(n.ab+"footer.hbs","utf-8")]).spread(((e,t,n,i)=>{const s=getWriterOpts();s.mainTemplate=e;s.headerPartial=t;s.commitPartial=n;s.footerPartial=i;return s}));function getWriterOpts(){return{transform:(e,t)=>{let n=true;const i=[];e.notes.forEach((e=>{e.title="BREAKING CHANGES";n=false}));if(e.type==="feat"){e.type="Features"}else if(e.type==="fix"){e.type="Bug Fixes"}else if(e.type==="perf"){e.type="Performance Improvements"}else if(e.type==="revert"||e.revert){e.type="Reverts"}else if(n){return}else if(e.type==="docs"){e.type="Documentation"}else if(e.type==="style"){e.type="Styles"}else if(e.type==="refactor"){e.type="Code Refactoring"}else if(e.type==="test"){e.type="Tests"}else if(e.type==="build"){e.type="Build System"}else if(e.type==="ci"){e.type="Continuous Integration"}if(e.scope==="*"){e.scope=""}if(typeof e.hash==="string"){e.shortHash=e.hash.substring(0,7)}if(typeof e.subject==="string"){let n=t.repository?`${t.host}/${t.owner}/${t.repository}`:t.repoUrl;if(n){n=`${n}/issues/`;e.subject=e.subject.replace(/#([0-9]+)/g,((e,t)=>{i.push(t);return`[#${t}](${n}${t})`}))}if(t.host){e.subject=e.subject.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/g,((e,n)=>{if(n.includes("/")){return`@${n}`}return`[@${n}](${t.host}/${n})`}))}}e.references=e.references.filter((e=>{if(i.indexOf(e.issue)===-1){return true}return false}));return e},groupBy:"type",commitGroupsSort:"title",commitsSort:["scope","subject"],noteGroupsSort:"title",notesSort:i}}},3064:(e,t,n)=>{"use strict";const i=n(6235);const s=n(9834);const o=n(1655);const a=n(6207);const l=n(250);const u=n(2413);const c=n(8180);const f=n(3129).execFileSync;const p=n(3197);function conventionalChangelog(e,t,n,h,d,m){d=d||{};const g=new u.Readable({objectMode:d.includeDetails});g._read=function(){};let y=false;let v=new u.Readable({objectMode:true});v._read=function(){};function commitsRange(e,t){return s(l.merge({},n,{from:e,to:t})).on("error",(function(e){if(!y){setImmediate(v.emit.bind(v),"error",e);y=true}}))}p(e,t,n,h,d,m).then((function(l){e=l.options;t=l.context;n=l.gitRawCommitsOpts;h=l.parserOpts;d=l.writerOpts;m=l.gitRawExecOpts;try{f("git",["rev-parse","--verify","HEAD"],{stdio:"ignore"});let e=t.gitSemverTags.slice(0).reverse();e.push("HEAD");if(n.from){if(e.indexOf(n.from)!==-1){e=e.slice(e.indexOf(n.from))}else{e=[n.from,"HEAD"]}}let s=e.map(((t,n)=>{const i=n>0?e[n-1]:"";return commitsRange(i,t)}));if(n.from){s=s.splice(1)}if(n.reverse){s.reverse()}s.reduce(((e,t)=>t.pipe(i(e)))).on("data",(function(e){setImmediate(v.emit.bind(v),"data",e)})).on("end",(function(){setImmediate(v.emit.bind(v),"end")}))}catch(e){v=s(n,m)}v.on("error",(function(e){e.message="Error in git-raw-commits: "+e.message;setImmediate(g.emit.bind(g),"error",e)})).pipe(o(h)).on("error",(function(e){e.message="Error in conventional-commits-parser: "+e.message;setImmediate(g.emit.bind(g),"error",e)})).pipe(c.obj((function(t,n,i){try{e.transform.call(this,t,i)}catch(e){i(e)}}))).on("error",(function(e){e.message="Error in options.transform: "+e.message;setImmediate(g.emit.bind(g),"error",e)})).pipe(a(t,d)).on("error",(function(e){e.message="Error in conventional-changelog-writer: "+e.message;setImmediate(g.emit.bind(g),"error",e)})).pipe(c({objectMode:d.includeDetails},(function(e,t,n){try{g.push(e)}catch(e){setImmediate((function(){throw e}))}n()}),(function(e){g.push(null);e()})))})).catch((function(e){setImmediate(g.emit.bind(g),"error",e)}));return g}e.exports=conventionalChangelog},3197:(e,t,n)=>{function __ncc_wildcard$0(e){if(e==="bitbucket.json"||e==="bitbucket")return n(6035);else if(e==="github.json"||e==="github")return n(8560);else if(e==="gitlab.json"||e==="gitlab")return n(130)}"use strict";const i=n(1512);const s=n(854);const o=n(2408);const a=n(3188);const l=n(6172);let u;try{u=n(6452)}catch(e){u=function(){return l.reject(e)}}const c=n(3645);const f=n(5767);const p=n(8835).URL;const h=n(250);const d=/github|bitbucket|gitlab/i;function semverTagsPromise(e){return l.Promise((function(t,n){o({lernaTags:!!e.lernaPackage,package:e.lernaPackage,tagPrefix:e.tagPrefix,skipUnstable:e.skipUnstable},(function(e,i){if(e){n(e)}else{t(i)}}))}))}function guessNextTag(e,t){if(e){if(e[0]==="v"&&t[0]!=="v"){return"v"+t}if(e[0]!=="v"&&t[0]==="v"){return t.replace(/^v/,"")}return t}if(t[0]!=="v"){return"v"+t}return t}function mergeConfig(e,t,n,o,m,g){let y;let v;t=t||{};n=n||{};g=g||{};const b=e&&e.tagPrefix?new RegExp(`tag:\\s*[=]?${e.tagPrefix}(.+?)[,)]`,"gi"):/tag:\s*[v=]?(.+?)[,)]/gi;e=h.merge({pkg:{transform:function(e){return e}},append:false,releaseCount:1,skipUnstable:false,debug:function(){},transform:function(e,t){if(h.isString(e.gitTags)){const t=b.exec(e.gitTags);b.lastIndex=0;if(t){e.version=t[1]}}if(e.committerDate){e.committerDate=i(e.committerDate,"yyyy-mm-dd",true)}t(null,e)},lernaPackage:null},e);e.warn=e.warn||e.debug;if(e.config){if(h.isFunction(e.config)){y=l.nfcall(e.config)}else{y=l(e.config)}}if(e.pkg){if(e.pkg.path){v=l(c(e.pkg.path))}else{v=l(f())}}const w=l(u());return l.allSettled([y,v,semverTagsPromise(e),w]).spread((function(i,l,u,c){let f;let v;let b;let w;let S;let E=[];if(y){if(i.state==="fulfilled"){f=i.value}else{e.warn("Error in config"+i.reason.toString());f={}}}else{f={}}t=h.assign(t,f.context);if(e.pkg){if(l.state==="fulfilled"){if(e.pkg.path){v=l.value}else{v=l.value.pkg||{}}v=e.pkg.transform(v)}else if(e.pkg.path){e.warn(l.reason.toString())}}if((!v||!v.repository||!v.repository.url)&&c.state==="fulfilled"){v=v||{};v.repository=v.repository||{};v.repository.url=c.value;a(v)}if(v){t.version=t.version||v.version;try{w=s(v)}catch(e){w={}}if(w.browse){const e=w.browse();if(!t.host){if(w.domain){const n=new p(e);if(n.origin.indexOf("//")!==-1){t.host=n.protocol+"//"+w.domain}else{t.host=n.protocol+w.domain}}else{t.host=null}}t.owner=t.owner||w.user||"";t.repository=t.repository||w.project;if(w.host&&w.project&&w.user){t.repoUrl=e}else{t.repoUrl=t.host}}t.packageData=v}t.version=t.version||"";if(u.state==="fulfilled"){E=t.gitSemverTags=u.value;b=E[e.releaseCount-1];const n=E[0];if(n===t.version||n==="v"+t.version){if(e.outputUnreleased){t.version="Unreleased"}else{e.outputUnreleased=false}}}if(!h.isBoolean(e.outputUnreleased)){e.outputUnreleased=true}if(t.host&&(!t.issue||!t.commit||!o||!o.referenceActions)){let n;if(t.host){const e=t.host.match(d);if(e){n=e[0]}}else if(w&&w.type){n=w.type}if(n){S=__ncc_wildcard$0(n);t=h.assign({issue:S.issue,commit:S.commit},t)}else{e.warn('Host: "'+t.host+'" does not exist');S={}}}else{S={}}if(t.resetChangelog){b=null}n=h.assign({format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci",from:b,merges:false,debug:e.debug},f.gitRawCommitsOpts,n);if(e.append){n.reverse=n.reverse||true}o=h.assign({},f.parserOpts,{warn:e.warn},o);if(S.referenceActions&&o){o.referenceActions=S.referenceActions}if(h.isEmpty(o.issuePrefixes)&&S.issuePrefixes){o.issuePrefixes=S.issuePrefixes}m=h.assign({finalizeContext:function(t,n,i,s,o){const a=o[0];const l=o[o.length-1];const u=a?a.hash:null;const c=l?l.hash:null;if((!t.currentTag||!t.previousTag)&&s){const n=/tag:\s*(.+?)[,)]/gi.exec(s.gitTags);const i=t.currentTag;t.currentTag=i||n?n[1]:null;const o=E.indexOf(t.currentTag);if(o===-1){t.currentTag=i||null}else{const n=t.previousTag=E[o+1];if(!n){if(e.append){t.previousTag=t.previousTag||u}else{t.previousTag=t.previousTag||c}}}}else{t.previousTag=t.previousTag||E[0];if(t.version==="Unreleased"){if(e.append){t.currentTag=t.currentTag||c}else{t.currentTag=t.currentTag||u}}else if(!t.currentTag){if(e.lernaPackage){t.currentTag=e.lernaPackage+"@"+t.version}else if(e.tagPrefix){t.currentTag=e.tagPrefix+t.version}else{t.currentTag=guessNextTag(E[0],t.version)}}}if(!h.isBoolean(t.linkCompare)&&t.previousTag&&t.currentTag){t.linkCompare=true}return t},debug:e.debug},f.writerOpts,{reverse:e.append,doFlush:e.outputUnreleased},m);return{options:e,context:t,gitRawCommitsOpts:n,parserOpts:o,writerOpts:m,gitRawExecOpts:g}}))}e.exports=mergeConfig},8079:(e,t,n)=>{"use strict";const i=n(5622);e.exports=presetLoader(require);e.exports.presetLoader=presetLoader;function presetLoader(e){return t=>{let n="";let s="";let o="";if(typeof t==="string"){n=t.toLowerCase();if(i.isAbsolute(t)){o=t}}else if(typeof t==="object"&&t.name){n=t.name.toLowerCase();if(i.isAbsolute(t.name)){o=t.name}}else{throw Error("preset must be string or object with key name")}if(!o){if(n[0]==="@"){const e=n.split("/");s=e.shift()+"/";n=e.join("/")}if(!n.startsWith("conventional-changelog-")){n=`conventional-changelog-${n}`}}try{const i=e(o||`${s}${n}`);if(i&&!i.then&&typeof t==="object"){return i(t)}else{return i}}catch(e){throw Error("does not exist")}}}},6207:(e,t,n)=>{"use strict";const i=n(1512);const s=n(5622).join;const o=n(5747).readFileSync;const a=n(725).valid;const l=n(8180);const u=n(8857);const c=n(250);function conventionalChangelogWriterInit(e,t){e=c.extend({commit:"commits",issue:"issues",date:i(new Date,"yyyy-mm-dd",true)},e);if(!c.isBoolean(e.linkReferences)&&(e.repository||e.repoUrl)&&e.commit&&e.issue){e.linkReferences=true}t=c.assign({groupBy:"type",commitsSort:"header",noteGroupsSort:"title",notesSort:"text",generateOn:function(e){return a(e.version)},finalizeContext:function(e){return e},debug:function(){},reverse:false,includeDetails:false,ignoreReverted:true,doFlush:true,mainTemplate:o(n.ab+"template1.hbs","utf-8"),headerPartial:o(n.ab+"header1.hbs","utf-8"),commitPartial:o(n.ab+"commit1.hbs","utf-8"),footerPartial:o(n.ab+"footer1.hbs","utf-8")},t);if(!c.isFunction(t.transform)&&c.isObject(t.transform)||c.isUndefined(t.transform)){t.transform=c.assign({hash:function(e){if(c.isString(e)){return e.substring(0,7)}},header:function(e){return e.substring(0,100)},committerDate:function(e){if(!e){return}return i(e,"yyyy-mm-dd",true)}},t.transform)}let s=t.generateOn;if(c.isString(s)){s=function(e){return!c.isUndefined(e[t.generateOn])}}else if(!c.isFunction(s)){s=function(){return false}}t.commitGroupsSort=u.functionify(t.commitGroupsSort);t.commitsSort=u.functionify(t.commitsSort);t.noteGroupsSort=u.functionify(t.noteGroupsSort);t.notesSort=u.functionify(t.notesSort);return{context:e,options:t,generateOn:s}}function conventionalChangelogWriterParseStream(e,t){let n;({context:e,options:t,generateOn:n}=conventionalChangelogWriterInit(e,t));let i=[];let s=true;let o;let a=true;return l.obj((function(l,c,f){try{let c;const p=u.processCommit(l,t.transform,e);const h=p||l;if(t.reverse){if(p){i.push(p)}if(n(h,i,e,t)){s=false;c=u.generate(t,i,e,h);if(t.includeDetails){this.push({log:c,keyCommit:h})}else{this.push(c)}i=[]}}else{if(n(h,i,e,t)){s=false;c=u.generate(t,i,e,o);if(!a||t.doFlush){if(t.includeDetails){this.push({log:c,keyCommit:o})}else{this.push(c)}}a=false;i=[];o=h}if(p){i.push(p)}}f()}catch(e){f(e)}}),(function(n){if(!t.doFlush&&(t.reverse||s)){n(null);return}try{const s=u.generate(t,i,e,o);if(t.includeDetails){this.push({log:s,keyCommit:o})}else{this.push(s)}n()}catch(e){n(e)}}))}conventionalChangelogWriterParseStream.parseArray=(e,t,n)=>{let i;e=[...e];({context:t,options:n,generateOn:i}=conventionalChangelogWriterInit(t,n));let s=[];let o;if(n.reverse){e.reverse()}const a=[];for(const l of e){const e=u.processCommit(l,n.transform,t);const c=e||l;if(i(c,s,t,n)){a.push(u.generate(n,s,t,o));o=c;s=[]}if(e){s.push(e)}}if(n.reverse){a.reverse();return u.generate(n,s,t,o)+a.join("")}else{return a.join("")+u.generate(n,s,t,o)}};e.exports=conventionalChangelogWriterParseStream},8857:(e,t,n)=>{"use strict";const i=n(5003);const s=n(7492);const o=n(725);const a=n(250);const l=n(7073);function compileTemplates(e){const t=e.mainTemplate;const n=e.headerPartial;const i=e.commitPartial;const o=e.footerPartial;const l=e.partials;if(a.isString(n)){s.registerPartial("header",n)}if(a.isString(i)){s.registerPartial("commit",i)}if(a.isString(o)){s.registerPartial("footer",o)}a.forEach(l,(function(e,t){if(a.isString(e)){s.registerPartial(t,e)}}));return s.compile(t,{noEscape:true})}function functionify(e){if(e&&!a.isFunction(e)){return(t,n)=>{let i="";let s="";if(Array.isArray(e)){for(const o of e){i+=t[o]||"";s+=n[o]||""}}else{i+=t[e];s+=n[e]}return i.localeCompare(s)}}else{return e}}function getCommitGroups(e,t,n,i){const s=[];const o=a.groupBy(t,(function(t){return t[e]||""}));a.forEach(o,(function(e,t){if(t===""){t=false}if(i){e.sort(i)}s.push({title:t,commits:e})}));if(n){s.sort(n)}return s}function getNoteGroups(e,t,n){const i=[];a.forEach(e,(function(e){const t=e.title;let n=false;a.forEach(i,(function(i){if(i.title===t){n=true;i.notes.push(e);return false}}));if(!n){i.push({title:t,notes:[e]})}}));if(t){i.sort(t)}if(n){a.forEach(i,(function(e){e.notes.sort(n)}))}return i}function processCommit(e,t,n){let i;try{e=JSON.parse(e)}catch(e){}i=a.cloneDeep(e);if(a.isFunction(t)){i=t(i,n);if(i){i.raw=e}return i}a.forEach(t,(function(e,t){let n=a.get(i,t);if(a.isFunction(e)){n=e(n,t)}else{n=e}a.set(i,t,n)}));i.raw=e;return i}function getExtraContext(e,t,n){const i={};i.commitGroups=getCommitGroups(n.groupBy,e,n.commitGroupsSort,n.commitsSort);i.noteGroups=getNoteGroups(t,n.noteGroupsSort,n.notesSort);return i}function generate(e,t,n,s){let u=[];let c;const f=compileTemplates(e);if(e.ignoreReverted){c=i(t)}else{c=a.clone(t)}a.forEach(c,(function(e){a.map(e.notes,(function(t){t.commit=e;return t}));u=u.concat(e.notes)}));n=a.merge({},n,s,getExtraContext(c,u,e));if(s&&s.committerDate){n.date=s.committerDate}if(n.version&&o.valid(n.version)){n.isPatch=n.isPatch||o.patch(n.version)!==0}n=e.finalizeContext(n,e,c,s,t);e.debug("Your final context is:\n"+l(n,null,2));return f(n)}e.exports={compileTemplates:compileTemplates,functionify:functionify,getCommitGroups:getCommitGroups,getNoteGroups:getNoteGroups,processCommit:processCommit,getExtraContext:getExtraContext,generate:generate}},725:(e,t)=>{t=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var s=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var a=t.re=[];var l=t.src=[];var u=t.tokens={};var c=0;function tok(e){u[e]=c++}tok("NUMERICIDENTIFIER");l[u.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");l[u.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");l[u.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");l[u.MAINVERSION]="("+l[u.NUMERICIDENTIFIER]+")\\."+"("+l[u.NUMERICIDENTIFIER]+")\\."+"("+l[u.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");l[u.MAINVERSIONLOOSE]="("+l[u.NUMERICIDENTIFIERLOOSE]+")\\."+"("+l[u.NUMERICIDENTIFIERLOOSE]+")\\."+"("+l[u.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");l[u.PRERELEASEIDENTIFIER]="(?:"+l[u.NUMERICIDENTIFIER]+"|"+l[u.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");l[u.PRERELEASEIDENTIFIERLOOSE]="(?:"+l[u.NUMERICIDENTIFIERLOOSE]+"|"+l[u.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");l[u.PRERELEASE]="(?:-("+l[u.PRERELEASEIDENTIFIER]+"(?:\\."+l[u.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");l[u.PRERELEASELOOSE]="(?:-?("+l[u.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+l[u.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");l[u.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");l[u.BUILD]="(?:\\+("+l[u.BUILDIDENTIFIER]+"(?:\\."+l[u.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");l[u.FULLPLAIN]="v?"+l[u.MAINVERSION]+l[u.PRERELEASE]+"?"+l[u.BUILD]+"?";l[u.FULL]="^"+l[u.FULLPLAIN]+"$";tok("LOOSEPLAIN");l[u.LOOSEPLAIN]="[v=\\s]*"+l[u.MAINVERSIONLOOSE]+l[u.PRERELEASELOOSE]+"?"+l[u.BUILD]+"?";tok("LOOSE");l[u.LOOSE]="^"+l[u.LOOSEPLAIN]+"$";tok("GTLT");l[u.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");l[u.XRANGEIDENTIFIERLOOSE]=l[u.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");l[u.XRANGEIDENTIFIER]=l[u.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");l[u.XRANGEPLAIN]="[v=\\s]*("+l[u.XRANGEIDENTIFIER]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIER]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIER]+")"+"(?:"+l[u.PRERELEASE]+")?"+l[u.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");l[u.XRANGEPLAINLOOSE]="[v=\\s]*("+l[u.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+l[u.PRERELEASELOOSE]+")?"+l[u.BUILD]+"?"+")?)?";tok("XRANGE");l[u.XRANGE]="^"+l[u.GTLT]+"\\s*"+l[u.XRANGEPLAIN]+"$";tok("XRANGELOOSE");l[u.XRANGELOOSE]="^"+l[u.GTLT]+"\\s*"+l[u.XRANGEPLAINLOOSE]+"$";tok("COERCE");l[u.COERCE]="(^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");a[u.COERCERTL]=new RegExp(l[u.COERCE],"g");tok("LONETILDE");l[u.LONETILDE]="(?:~>?)";tok("TILDETRIM");l[u.TILDETRIM]="(\\s*)"+l[u.LONETILDE]+"\\s+";a[u.TILDETRIM]=new RegExp(l[u.TILDETRIM],"g");var f="$1~";tok("TILDE");l[u.TILDE]="^"+l[u.LONETILDE]+l[u.XRANGEPLAIN]+"$";tok("TILDELOOSE");l[u.TILDELOOSE]="^"+l[u.LONETILDE]+l[u.XRANGEPLAINLOOSE]+"$";tok("LONECARET");l[u.LONECARET]="(?:\\^)";tok("CARETTRIM");l[u.CARETTRIM]="(\\s*)"+l[u.LONECARET]+"\\s+";a[u.CARETTRIM]=new RegExp(l[u.CARETTRIM],"g");var p="$1^";tok("CARET");l[u.CARET]="^"+l[u.LONECARET]+l[u.XRANGEPLAIN]+"$";tok("CARETLOOSE");l[u.CARETLOOSE]="^"+l[u.LONECARET]+l[u.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");l[u.COMPARATORLOOSE]="^"+l[u.GTLT]+"\\s*("+l[u.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");l[u.COMPARATOR]="^"+l[u.GTLT]+"\\s*("+l[u.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");l[u.COMPARATORTRIM]="(\\s*)"+l[u.GTLT]+"\\s*("+l[u.LOOSEPLAIN]+"|"+l[u.XRANGEPLAIN]+")";a[u.COMPARATORTRIM]=new RegExp(l[u.COMPARATORTRIM],"g");var h="$1$2$3";tok("HYPHENRANGE");l[u.HYPHENRANGE]="^\\s*("+l[u.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+l[u.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");l[u.HYPHENRANGELOOSE]="^\\s*("+l[u.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+l[u.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");l[u.STAR]="(<|>)?=?\\s*\\*";for(var d=0;di){return null}var n=t.loose?a[u.LOOSE]:a[u.FULL];if(!n.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var n=parse(e,t);return n?n.version:null}t.clean=clean;function clean(e,t){var n=parse(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;var o=e.trim().match(t.loose?a[u.LOOSE]:a[u.FULL]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>s||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>s||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>s||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,n,i){if(typeof n==="string"){i=n;n=undefined}try{return new SemVer(e,n).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var n=parse(e);var i=parse(t);var s="";if(n.prerelease.length||i.prerelease.length){s="pre";var o="prerelease"}for(var a in n){if(a==="major"||a==="minor"||a==="patch"){if(n[a]!==i[a]){return s+a}}}return o}}t.compareIdentifiers=compareIdentifiers;var m=/^[0-9]+$/;function compareIdentifiers(e,t){var n=m.test(e);var i=m.test(t);if(n&&i){e=+e;t=+t}return e===t?0:n&&!i?-1:i&&!n?1:e0}t.lt=lt;function lt(e,t,n){return compare(e,t,n)<0}t.eq=eq;function eq(e,t,n){return compare(e,t,n)===0}t.neq=neq;function neq(e,t,n){return compare(e,t,n)!==0}t.gte=gte;function gte(e,t,n){return compare(e,t,n)>=0}t.lte=lte;function lte(e,t,n){return compare(e,t,n)<=0}t.cmp=cmp;function cmp(e,t,n,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,i);case"!=":return neq(e,n,i);case">":return gt(e,n,i);case">=":return gte(e,n,i);case"<":return lt(e,n,i);case"<=":return lte(e,n,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===g){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var g={};Comparator.prototype.parse=function(e){var t=this.options.loose?a[u.COMPARATORLOOSE]:a[u.COMPARATOR];var n=e.match(t);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=g}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===g||e===g){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var n;if(this.operator===""){if(this.value===""){return true}n=new Range(e.value,t);return satisfies(this.value,n,t)}else if(e.operator===""){if(e.value===""){return true}n=new Range(this.value,t);return satisfies(e.semver,n,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var l=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var u=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||s||o&&a||l||u};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var i=t?a[u.HYPHENRANGELOOSE]:a[u.HYPHENRANGE];e=e.replace(i,hyphenReplace);n("hyphen replace",e);e=e.replace(a[u.COMPARATORTRIM],h);n("comparator trim",e,a[u.COMPARATORTRIM]);e=e.replace(a[u.TILDETRIM],f);e=e.replace(a[u.CARETTRIM],p);e=e.split(/\s+/).join(" ");var s=t?a[u.COMPARATORLOOSE]:a[u.COMPARATOR];var o=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter((function(e){return!!e.match(s)}))}o=o.map((function(e){return new Comparator(e,this.options)}),this);return o};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(n){return isSatisfiable(n,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var n=true;var i=e.slice();var s=i.pop();while(n&&i.length){n=i.every((function(e){return s.intersects(e,t)}));s=i.pop()}return n}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){n("comp",e,t);e=replaceCarets(e,t);n("caret",e);e=replaceTildes(e,t);n("tildes",e);e=replaceXRanges(e,t);n("xrange",e);e=replaceStars(e,t);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var i=t.loose?a[u.TILDELOOSE]:a[u.TILDE];return e.replace(i,(function(t,i,s,o,a){n("tilde",e,t,i,s,o,a);var l;if(isX(i)){l=""}else if(isX(s)){l=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(o)){l=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else if(a){n("replaceTilde pr",a);l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+(+s+1)+".0"}else{l=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0"}n("tilde return",l);return l}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){n("caret",e,t);var i=t.loose?a[u.CARETLOOSE]:a[u.CARET];return e.replace(i,(function(t,i,s,o,a){n("caret",e,t,i,s,o,a);var l;if(isX(i)){l=""}else if(isX(s)){l=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(o)){if(i==="0"){l=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else{l=">="+i+"."+s+".0 <"+(+i+1)+".0.0"}}else if(a){n("replaceCaret pr",a);if(i==="0"){if(s==="0"){l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+s+"."+(+o+1)}else{l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+(+s+1)+".0"}}else{l=">="+i+"."+s+"."+o+"-"+a+" <"+(+i+1)+".0.0"}}else{n("no pr");if(i==="0"){if(s==="0"){l=">="+i+"."+s+"."+o+" <"+i+"."+s+"."+(+o+1)}else{l=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0"}}else{l=">="+i+"."+s+"."+o+" <"+(+i+1)+".0.0"}}n("caret return",l);return l}))}function replaceXRanges(e,t){n("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?a[u.XRANGELOOSE]:a[u.XRANGE];return e.replace(i,(function(i,s,o,a,l,u){n("xRange",e,i,s,o,a,l,u);var c=isX(o);var f=c||isX(a);var p=f||isX(l);var h=p;if(s==="="&&h){s=""}u=t.includePrerelease?"-0":"";if(c){if(s===">"||s==="<"){i="<0.0.0-0"}else{i="*"}}else if(s&&h){if(f){a=0}l=0;if(s===">"){s=">=";if(f){o=+o+1;a=0;l=0}else{a=+a+1;l=0}}else if(s==="<="){s="<";if(f){o=+o+1}else{a=+a+1}}i=s+o+"."+a+"."+l+u}else if(f){i=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u}else if(p){i=">="+o+"."+a+".0"+u+" <"+o+"."+(+a+1)+".0"+u}n("xRange return",i);return i}))}function replaceStars(e,t){n("replaceStars",e,t);return e.trim().replace(a[u.STAR],"")}function hyphenReplace(e,t,n,i,s,o,a,l,u,c,f,p,h){if(isX(n)){t=""}else if(isX(i)){t=">="+n+".0.0"}else if(isX(s)){t=">="+n+"."+i+".0"}else{t=">="+t}if(isX(u)){l=""}else if(isX(c)){l="<"+(+u+1)+".0.0"}else if(isX(f)){l="<"+u+"."+(+c+1)+".0"}else if(p){l="<="+u+"."+c+"."+f+"-"+p}else{l="<="+l}return(t+" "+l).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var o=e[s].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,n){try{t=new Range(t,n)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,n){var i=null;var s=null;try{var o=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!i||s.compare(e)===-1){i=e;s=new SemVer(i,n)}}}));return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,n){var i=null;var s=null;try{var o=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!i||s.compare(e)===1){i=e;s=new SemVer(i,n)}}}));return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||gt(n,t)){n=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n)){return n}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,n){return outside(e,t,"<",n)}t.gtr=gtr;function gtr(e,t,n){return outside(e,t,">",n)}t.outside=outside;function outside(e,t,n,i){e=new SemVer(e,i);t=new Range(t,i);var s,o,a,l,u;switch(n){case">":s=gt;o=lte;a=lt;l=">";u=">=";break;case"<":s=lt;o=gte;a=gt;l="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var c=0;c=0.0.0")}p=p||e;h=h||e;if(s(e.semver,p.semver,i)){p=e}else if(a(e.semver,h.semver,i)){h=e}}));if(p.operator===l||p.operator===u){return false}if((!h.operator||h.operator===l)&&o(e,h.semver)){return false}else if(h.operator===u&&a(e,h.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var n=parse(e,t);return n&&n.prerelease.length?n.prerelease:null}t.intersects=intersects;function intersects(e,t,n){e=new Range(e,n);t=new Range(t,n);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var n=null;if(!t.rtl){n=e.match(a[u.COERCE])}else{var i;while((i=a[u.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}a[u.COERCERTL].lastIndex=i.index+i[1].length+i[2].length}a[u.COERCERTL].lastIndex=-1}if(n===null){return null}return parse(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},9461:(e,t,n)=>{"use strict";const i=n(3064);const s=n(8079);function conventionalChangelog(e,t,n,o,a){e.warn=e.warn||function(){};if(e.preset){try{e.config=s(e.preset)}catch(t){if(typeof e.preset==="object"){e.warn(`Preset: "${e.preset.name}" ${t.message}`)}else if(typeof e.preset==="string"){e.warn(`Preset: "${e.preset}" ${t.message}`)}else{e.warn(`Preset: ${t.message}`)}}}return i(e,t,n,o,a)}e.exports=conventionalChangelog},5003:(e,t,n)=>{"use strict";const i=n(5100);const s=n(3432);function modifyValue(e){if(typeof e==="string"){return e.trim()}return e}function conventionalCommitsFilter(e){if(!Array.isArray(e)){throw new TypeError("Expected an array")}let t=[];const n=[];const o=[];e.forEach((function(e){if(e.revert){n.push(e)}t.push(e)}));t=t.filter((function(e){let t=false;e=e.raw?s(e.raw,modifyValue):s(e,modifyValue);n.some((function(n){const a=s(n.revert,modifyValue);t=i(e,a);if(t){o.push(n.hash)}return t}));return!t}));t=t.filter((function(e){return o.indexOf(e.hash)!==0}));return t}e.exports=conventionalCommitsFilter},1655:(e,t,n)=>{"use strict";const i=n(1080);const s=n(1411);const o=n(8180);const a=n(250);function assignOpts(e){e=a.extend({headerPattern:/^(\w*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$/,headerCorrespondence:["type","scope","subject"],referenceActions:["close","closes","closed","fix","fixes","fixed","resolve","resolves","resolved"],issuePrefixes:["#"],noteKeywords:["BREAKING CHANGE"],fieldPattern:/^-(.*?)-$/,revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,revertCorrespondence:["header","hash"],warn:function(){},mergePattern:null,mergeCorrespondence:null},e);if(typeof e.headerPattern==="string"){e.headerPattern=new RegExp(e.headerPattern)}if(typeof e.headerCorrespondence==="string"){e.headerCorrespondence=e.headerCorrespondence.split(",")}if(typeof e.referenceActions==="string"){e.referenceActions=e.referenceActions.split(",")}if(typeof e.issuePrefixes==="string"){e.issuePrefixes=e.issuePrefixes.split(",")}if(typeof e.noteKeywords==="string"){e.noteKeywords=e.noteKeywords.split(",")}if(typeof e.fieldPattern==="string"){e.fieldPattern=new RegExp(e.fieldPattern)}if(typeof e.revertPattern==="string"){e.revertPattern=new RegExp(e.revertPattern)}if(typeof e.revertCorrespondence==="string"){e.revertCorrespondence=e.revertCorrespondence.split(",")}if(typeof e.mergePattern==="string"){e.mergePattern=new RegExp(e.mergePattern)}return e}function conventionalCommitsParser(e){e=assignOpts(e);const t=s(e);return o.obj((function(n,s,o){let a;try{a=i(n.toString(),e,t);o(null,a)}catch(t){if(e.warn===true){o(t)}else{e.warn(t.toString());o(null,"")}}}))}function sync(e,t){t=assignOpts(t);const n=s(t);return i(e,t,n)}e.exports=conventionalCommitsParser;e.exports.sync=sync},1080:(e,t,n)=>{"use strict";const i=n(250);const s=/()(.+)/gi;const o="# ------------------------ >8 ------------------------";function trimOffNewlines(e){return e.replace(/^(?:\r|\n)+|(?:\r|\n)+$/g,"")}function append(e,t){if(e){e+="\n"+t}else{e=t}return e}function getCommentFilter(e){return function(t){return t.charAt(0)!==e}}function truncateToScissor(e){const t=e.indexOf(o);if(t===-1){return e}return e.slice(0,t)}function getReferences(e,t){const n=[];let i;let o;const a=e.match(t.references)!==null?t.references:s;while(i=a.exec(e)){const e=i[1]||null;const s=i[2];while(o=t.referenceParts.exec(s)){let t=null;let i=o[1]||"";const s=i.split("/");if(s.length>1){t=s.shift();i=s.join("/")}const a={action:e,owner:t,repository:i||null,issue:o[3],raw:o[0],prefix:o[2]};n.push(a)}}return n}function passTrough(){return true}function parser(e,t,n){if(!e||!e.trim()){throw new TypeError("Expected a raw commit")}if(i.isEmpty(t)){throw new TypeError("Expected options")}if(i.isEmpty(n)){throw new TypeError("Expected regex")}let s;let o;const a={};const l=typeof t.commentChar==="string"?getCommentFilter(t.commentChar):passTrough;const gpgFilter=e=>!e.match(/^\s*gpg:/);const u=trimOffNewlines(e).split(/\r?\n/);const c=truncateToScissor(u).filter(l).filter(gpgFilter);let f=false;let p=true;const h=i.map(t.headerCorrespondence,(function(e){return e.trim()}));const d=i.map(t.revertCorrespondence,(function(e){return e.trim()}));const m=i.map(t.mergeCorrespondence,(function(e){return e.trim()}));let g=null;let y=null;let v=null;const b=[];let w=null;const S=[];const E=[];let _=null;if(c.length===0){return{body:g,footer:y,header:v,mentions:b,merge:w,notes:S,references:E,revert:_,scope:null,subject:null,type:null}}w=c.shift();const O={};const R={};g="";y="";const C=w.match(t.mergePattern);if(C&&t.mergePattern){w=C[0];v=c.shift();while(v!==undefined&&!v.trim()){v=c.shift()}if(!v){v=""}i.forEach(m,(function(e,t){const n=C[t+1]||null;O[e]=n}))}else{v=w;w=null;i.forEach(m,(function(e){O[e]=null}))}const A=v.match(t.headerPattern);if(A){i.forEach(h,(function(e,t){const n=A[t+1]||null;R[e]=n}))}else{i.forEach(h,(function(e){R[e]=null}))}Array.prototype.push.apply(E,getReferences(v,{references:n.references,referenceParts:n.referenceParts}));i.forEach(c,(function(e){if(t.fieldPattern){const n=t.fieldPattern.exec(e);if(n){s=n[1];return}if(s){a[s]=append(a[s],e);return}}let i;const o=e.match(n.notes);if(o){f=true;p=false;y=append(y,e);const t={title:o[1],text:o[2]};S.push(t);return}const l=getReferences(e,{references:n.references,referenceParts:n.referenceParts});if(l.length>0){p=false;i=true;f=false}Array.prototype.push.apply(E,l);if(i){y=append(y,e);return}if(f){S[S.length-1].text=append(S[S.length-1].text,e);y=append(y,e);return}if(p){g=append(g,e)}else{y=append(y,e)}}));if(t.breakingHeaderPattern&&S.length===0){const e=v.match(t.breakingHeaderPattern);if(e){const t=e[3];S.push({title:"BREAKING CHANGE",text:t})}}while(o=n.mentions.exec(e)){b.push(o[1])}const L=e.match(t.revertPattern);if(L){_={};i.forEach(d,(function(e,t){const n=L[t+1]||null;_[e]=n}))}else{_=null}i.map(S,(function(e){e.text=trimOffNewlines(e.text);return e}));const x=i.merge(R,O,{merge:w,header:v,body:g?trimOffNewlines(g):null,footer:y?trimOffNewlines(y):null,notes:S,references:E,mentions:b,revert:_},a);return x}e.exports=parser},1411:e=>{"use strict";const t=/(?!.*)/;function join(e,t){return e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join(t)}function getNotesRegex(e,n){if(!e){return t}const i=join(e,"|");if(!n){return new RegExp("^[\\s|*]*("+i+")[:\\s]+(.*)","i")}return n(i)}function getReferencePartsRegex(e,n){if(!e){return t}const i=n?"g":"gi";return new RegExp("(?:.*?)??\\s*([\\w-\\.\\/]*?)??("+join(e,"|")+")([\\w-]*\\d+)",i)}function getReferencesRegex(e){if(!e){return/()(.+)/gi}const t=join(e,"|");return new RegExp("("+t+")(?:\\s+(.*?))(?=(?:"+t+")|$)","gi")}e.exports=function(e){e=e||{};const t=getNotesRegex(e.noteKeywords,e.notesPattern);const n=getReferencePartsRegex(e.issuePrefixes,e.issuePrefixesCaseSensitive);const i=getReferencesRegex(e.referenceActions);return{notes:t,referenceParts:n,references:i,mentions:/@([\w-]+)/g}}},7011:(e,t,n)=>{"use strict";const i=n(5107);const s=n(5003);const o=n(1655);const a=n(8079);const l=n(2408);const u=n(9834);const c=n(2626);const f=["major","minor","patch"];e.exports=conventionalRecommendedBump;function conventionalRecommendedBump(e,t,n){if(typeof e!=="object"){throw new Error("The 'options' argument must be an object.")}const p=Object.assign({ignoreReverted:true},e);const h=typeof t==="function"?t:n;if(typeof h!=="function"){throw new Error("You must provide a callback function.")}let d=p.config||{};if(p.preset){try{d=a(p.preset)}catch(e){if(e.message==="does not exist"){const e=typeof p.preset==="object"?p.preset.name:p.preset;return h(new Error(`Unable to load the "${e}" preset package. Please make sure it's installed.`))}else{return h(e)}}}c(d).then((e=>{const n=p.whatBump||(e.recommendedBumpOpts&&e.recommendedBumpOpts.whatBump?e.recommendedBumpOpts.whatBump:noop);if(typeof n!=="function"){throw Error("whatBump must be a function")}const a=Object.assign({},e.recommendedBumpOpts&&e.recommendedBumpOpts.parserOpts?e.recommendedBumpOpts.parserOpts:e.parserOpts,t);const c=typeof a.warn==="function"?a.warn:noop;l({lernaTags:!!p.lernaPackage,package:p.lernaPackage,tagPrefix:p.tagPrefix,skipUnstable:p.skipUnstable},((e,t)=>{if(e){return h(e)}u({format:"%B%n-hash-%n%H",from:t[0]||"",path:p.path}).pipe(o(a)).pipe(i((e=>{const t=p.ignoreReverted?s(e):e;if(!t||!t.length){c("No commits since last release")}let i=n(t,p);if(i&&i.level!=null){i.releaseType=f[i.level]}else if(i==null){i={}}h(null,i)})))}))})).catch((e=>h(e)))}function noop(){}},2626:(e,t,n)=>{"use strict";const i=n(6172);e.exports=presetResolver;function presetResolver(e){return i.resolve().then((()=>{if(typeof e==="function"){return i.nfcall(e)}if(typeof e==="object"){return i(e)}throw new Error("preset package must be a promise, function, or object")}))}},2720:e=>{"use strict";const match=(e,t)=>e.some((e=>e instanceof RegExp?e.test(t):e===t));const dargs=(e,t)=>{const n=[];let i=[];let s=[];t={useEquals:true,shortFlag:true,...t};const makeArguments=(e,i)=>{const s=t.shortFlag&&e.length===1?"-":"--";const o=t.allowCamelCase?e:e.replace(/[A-Z]/g,"-$&").toLowerCase();e=s+o;if(t.useEquals){n.push(e+(i?`=${i}`:""))}else{n.push(e);if(i){n.push(i)}}};const makeAliasArg=(e,t)=>{n.push(`-${e}`);if(t){n.push(t)}};for(let[n,o]of Object.entries(e)){let e=makeArguments;if(Array.isArray(t.excludes)&&match(t.excludes,n)){continue}if(Array.isArray(t.includes)&&!match(t.includes,n)){continue}if(typeof t.aliases==="object"&&t.aliases[n]){n=t.aliases[n];e=makeAliasArg}if(n==="--"){if(!Array.isArray(o)){throw new TypeError(`Expected key \`--\` to be Array, got ${typeof o}`)}s=o;continue}if(n==="_"){if(!Array.isArray(o)){throw new TypeError(`Expected key \`_\` to be Array, got ${typeof o}`)}i=o;continue}if(o===true){e(n,"")}if(o===false&&!t.ignoreFalse){e(`no-${n}`)}if(typeof o==="string"){e(n,o)}if(typeof o==="number"&&!Number.isNaN(o)){e(n,String(o))}if(Array.isArray(o)){for(const t of o){e(n,t)}}}for(const e of i){n.push(String(e))}if(s.length>0){n.push("--")}for(const e of s){n.push(String(e))}return n};e.exports=dargs},1512:function(e){(function(t){"use strict";var n=function(){var e=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g;var t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;var i=/[^-+\dA-Z]/g;return function(s,o,a,l){if(arguments.length===1&&kindOf(s)==="string"&&!/\d/.test(s)){o=s;s=undefined}s=s||new Date;if(!(s instanceof Date)){s=new Date(s)}if(isNaN(s)){throw TypeError("Invalid date")}o=String(n.masks[o]||o||n.masks["default"]);var u=o.slice(0,4);if(u==="UTC:"||u==="GMT:"){o=o.slice(4);a=true;if(u==="GMT:"){l=true}}var c=a?"getUTC":"get";var f=s[c+"Date"]();var p=s[c+"Day"]();var h=s[c+"Month"]();var d=s[c+"FullYear"]();var m=s[c+"Hours"]();var g=s[c+"Minutes"]();var y=s[c+"Seconds"]();var v=s[c+"Milliseconds"]();var b=a?0:s.getTimezoneOffset();var w=getWeek(s);var S=getDayOfWeek(s);var E={d:f,dd:pad(f),ddd:n.i18n.dayNames[p],dddd:n.i18n.dayNames[p+7],m:h+1,mm:pad(h+1),mmm:n.i18n.monthNames[h],mmmm:n.i18n.monthNames[h+12],yy:String(d).slice(2),yyyy:d,h:m%12||12,hh:pad(m%12||12),H:m,HH:pad(m),M:g,MM:pad(g),s:y,ss:pad(y),l:pad(v,3),L:pad(Math.round(v/10)),t:m<12?n.i18n.timeNames[0]:n.i18n.timeNames[1],tt:m<12?n.i18n.timeNames[2]:n.i18n.timeNames[3],T:m<12?n.i18n.timeNames[4]:n.i18n.timeNames[5],TT:m<12?n.i18n.timeNames[6]:n.i18n.timeNames[7],Z:l?"GMT":a?"UTC":(String(s).match(t)||[""]).pop().replace(i,""),o:(b>0?"-":"+")+pad(Math.floor(Math.abs(b)/60)*100+Math.abs(b)%60,4),S:["th","st","nd","rd"][f%10>3?0:(f%100-f%10!=10)*f%10],W:w,N:S};return o.replace(e,(function(e){if(e in E){return E[e]}return e.slice(1,e.length-1)}))}}();n.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"};n.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};function pad(e,t){e=String(e);t=t||2;while(e.length{"use strict";const i=n(1389);const s=["__proto__","prototype","constructor"];const isValidPath=e=>!e.some((e=>s.includes(e)));function getPathSegments(e){const t=e.split(".");const n=[];for(let e=0;e{"use strict";var i=n(1669);var s=n(7604);var o=function errorEx(e,t){if(!e||e.constructor!==String){t=e||{};e=Error.name}var n=function ErrorEXError(i){if(!this){return new ErrorEXError(i)}i=i instanceof Error?i.message:i||this.message;Error.call(this,i);Error.captureStackTrace(this,n);this.name=e;Object.defineProperty(this,"message",{configurable:true,enumerable:false,get:function(){var e=i.split(/\r?\n/g);for(var n in t){if(!t.hasOwnProperty(n)){continue}var o=t[n];if("message"in o){e=o.message(this[n],e)||e;if(!s(e)){e=[e]}}}return e.join("\n")},set:function(e){i=e}});var o=null;var a=Object.getOwnPropertyDescriptor(this,"stack");var l=a.get;var u=a.value;delete a.value;delete a.writable;a.set=function(e){o=e};a.get=function(){var e=(o||(l?l.call(this):u)).split(/\r?\n+/g);if(!o){e[0]=this.name+": "+this.message}var n=1;for(var i in t){if(!t.hasOwnProperty(i)){continue}var s=t[i];if("line"in s){var a=s.line(this[i]);if(a){e.splice(n++,0," "+a)}}if("stack"in s){s.stack(this[i],e)}}return e.join("\n")};Object.defineProperty(this,"stack",a)};if(Object.setPrototypeOf){Object.setPrototypeOf(n.prototype,Error.prototype);Object.setPrototypeOf(n,Error)}else{i.inherits(n,Error)}return n};o.append=function(e,t){return{message:function(n,i){n=n||t;if(n){i[0]+=" "+e.replace("%s",n.toString())}return i}}};o.line=function(e,t){return{line:function(n){n=n||t;if(n){return e.replace("%s",n.toString())}return null}}};e.exports=o},9320:e=>{"use strict";var t="Function.prototype.bind called on incompatible ";var n=Array.prototype.slice;var i=Object.prototype.toString;var s="[object Function]";e.exports=function bind(e){var o=this;if(typeof o!=="function"||i.call(o)!==s){throw new TypeError(t+o)}var a=n.call(arguments,1);var l;var binder=function(){if(this instanceof l){var t=o.apply(this,a.concat(n.call(arguments)));if(Object(t)===t){return t}return this}else{return o.apply(e,a.concat(n.call(arguments)))}};var u=Math.max(0,o.length-a.length);var c=[];for(var f=0;f{"use strict";var i=n(9320);e.exports=Function.prototype.bind||i},854:(e,t,n)=>{"use strict";const i=n(8869);const s=n(922);e.exports=e=>{if(!e||!e.repository||typeof e.repository!=="string"&&!e.repository.url){throw new Error(`No valid "repository" data found in package metadata. Please see https://docs.npmjs.com/files/package.json#repository for proper syntax.`)}const t=typeof e.repository==="string"?e.repository:e.repository.url;return i.fromUrl(t)||s(t)}},9834:(e,t,n)=>{"use strict";const i=n(2720);const s=n(3129).execFile;const o=n(5e3);const a=n(2413);const l=n(5762);const u=n(8180);const c="------------------------ >8 ------------------------";function normalizeExecOpts(e){e=e||{};e.cwd=e.cwd||process.cwd();return e}function normalizeGitOpts(e){e=e||{};e.format=e.format||"%B";e.from=e.from||"";e.to=e.to||"HEAD";return e}function getGitArgs(e){const t=l("--format=<%= format %>%n"+c)(e);const n=[e.from,e.to].filter(Boolean).join("..");const s=["log",t,n];if(e.path){s.push("--",e.path)}return s.concat(i(e,{excludes:["debug","from","to","format","path"]}))}function gitRawCommits(e,t){const n=new a.Readable;n._read=function(){};const i=normalizeGitOpts(e);const l=normalizeExecOpts(t);const f=getGitArgs(i);if(i.debug){i.debug("Your git-log command is:\ngit "+f.join(" "))}let p=false;const h=s("git",f,{cwd:l.cwd,maxBuffer:Infinity});h.stdout.pipe(o(c+"\n")).pipe(u((function(e,t,i){n.push(e);p=false;i()}),(function(e){setImmediate((function(){if(!p){n.push(null);n.emit("close")}e()}))})));h.stderr.pipe(u.obj((function(e){p=true;n.emit("error",new Error(e));n.emit("close")})));return n}e.exports=gitRawCommits},6452:(e,t,n)=>{"use strict";const i=n(5838);const s=n(4810);e.exports=e=>s(i)(e||process.cwd()).then((e=>{var t=e.remote&&e.remote.origin&&e.remote.origin.url;if(!t){throw new Error("Couldn't find origin url")}return t}))},2408:(e,t,n)=>{"use strict";const i=n(1765);const s=n(3129).exec;const o=n(6298).valid;const a=/tag:\s*(.+?)[,)]/gi;const l="git log --decorate --no-color";const u=/.+-\w+\.\d+$/;function lernaTag(e,t){if(t&&!new RegExp("^"+t+"@").test(e)){return false}else{return/^.+@[0-9]+\.[0-9]+\.[0-9]+(-.+)?$/.test(e)}}e.exports=function gitSemverTags(e,t){if(typeof e==="function"){t=e;e={}}const n=Object.assign({maxBuffer:Infinity,cwd:i.cwd()},e);if(n.package&&!n.lernaTags){t(new Error("opts.package should only be used when running in lerna mode"));return}s(l,n,(function(e,i){if(e){t(e);return}const s=[];let l;if(n.tagPrefix){l=new RegExp("^"+n.tagPrefix+"(.*)")}i.split("\n").forEach((function(e){let t;while(t=a.exec(e)){const e=t[1];if(n.skipUnstable&&u.test(e)){continue}if(n.lernaTags){if(lernaTag(e,n.package)){s.push(e)}}else if(n.tagPrefix){const t=e.match(l);if(t&&o(t[1])){s.push(e)}}else if(o(e)){s.push(e)}}}));t(null,s)}))}},6298:(e,t)=>{t=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var s=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var a=t.re=[];var l=t.src=[];var u=t.tokens={};var c=0;function tok(e){u[e]=c++}tok("NUMERICIDENTIFIER");l[u.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");l[u.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");l[u.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");l[u.MAINVERSION]="("+l[u.NUMERICIDENTIFIER]+")\\."+"("+l[u.NUMERICIDENTIFIER]+")\\."+"("+l[u.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");l[u.MAINVERSIONLOOSE]="("+l[u.NUMERICIDENTIFIERLOOSE]+")\\."+"("+l[u.NUMERICIDENTIFIERLOOSE]+")\\."+"("+l[u.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");l[u.PRERELEASEIDENTIFIER]="(?:"+l[u.NUMERICIDENTIFIER]+"|"+l[u.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");l[u.PRERELEASEIDENTIFIERLOOSE]="(?:"+l[u.NUMERICIDENTIFIERLOOSE]+"|"+l[u.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");l[u.PRERELEASE]="(?:-("+l[u.PRERELEASEIDENTIFIER]+"(?:\\."+l[u.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");l[u.PRERELEASELOOSE]="(?:-?("+l[u.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+l[u.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");l[u.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");l[u.BUILD]="(?:\\+("+l[u.BUILDIDENTIFIER]+"(?:\\."+l[u.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");l[u.FULLPLAIN]="v?"+l[u.MAINVERSION]+l[u.PRERELEASE]+"?"+l[u.BUILD]+"?";l[u.FULL]="^"+l[u.FULLPLAIN]+"$";tok("LOOSEPLAIN");l[u.LOOSEPLAIN]="[v=\\s]*"+l[u.MAINVERSIONLOOSE]+l[u.PRERELEASELOOSE]+"?"+l[u.BUILD]+"?";tok("LOOSE");l[u.LOOSE]="^"+l[u.LOOSEPLAIN]+"$";tok("GTLT");l[u.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");l[u.XRANGEIDENTIFIERLOOSE]=l[u.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");l[u.XRANGEIDENTIFIER]=l[u.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");l[u.XRANGEPLAIN]="[v=\\s]*("+l[u.XRANGEIDENTIFIER]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIER]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIER]+")"+"(?:"+l[u.PRERELEASE]+")?"+l[u.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");l[u.XRANGEPLAINLOOSE]="[v=\\s]*("+l[u.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+l[u.PRERELEASELOOSE]+")?"+l[u.BUILD]+"?"+")?)?";tok("XRANGE");l[u.XRANGE]="^"+l[u.GTLT]+"\\s*"+l[u.XRANGEPLAIN]+"$";tok("XRANGELOOSE");l[u.XRANGELOOSE]="^"+l[u.GTLT]+"\\s*"+l[u.XRANGEPLAINLOOSE]+"$";tok("COERCE");l[u.COERCE]="(^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");a[u.COERCERTL]=new RegExp(l[u.COERCE],"g");tok("LONETILDE");l[u.LONETILDE]="(?:~>?)";tok("TILDETRIM");l[u.TILDETRIM]="(\\s*)"+l[u.LONETILDE]+"\\s+";a[u.TILDETRIM]=new RegExp(l[u.TILDETRIM],"g");var f="$1~";tok("TILDE");l[u.TILDE]="^"+l[u.LONETILDE]+l[u.XRANGEPLAIN]+"$";tok("TILDELOOSE");l[u.TILDELOOSE]="^"+l[u.LONETILDE]+l[u.XRANGEPLAINLOOSE]+"$";tok("LONECARET");l[u.LONECARET]="(?:\\^)";tok("CARETTRIM");l[u.CARETTRIM]="(\\s*)"+l[u.LONECARET]+"\\s+";a[u.CARETTRIM]=new RegExp(l[u.CARETTRIM],"g");var p="$1^";tok("CARET");l[u.CARET]="^"+l[u.LONECARET]+l[u.XRANGEPLAIN]+"$";tok("CARETLOOSE");l[u.CARETLOOSE]="^"+l[u.LONECARET]+l[u.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");l[u.COMPARATORLOOSE]="^"+l[u.GTLT]+"\\s*("+l[u.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");l[u.COMPARATOR]="^"+l[u.GTLT]+"\\s*("+l[u.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");l[u.COMPARATORTRIM]="(\\s*)"+l[u.GTLT]+"\\s*("+l[u.LOOSEPLAIN]+"|"+l[u.XRANGEPLAIN]+")";a[u.COMPARATORTRIM]=new RegExp(l[u.COMPARATORTRIM],"g");var h="$1$2$3";tok("HYPHENRANGE");l[u.HYPHENRANGE]="^\\s*("+l[u.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+l[u.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");l[u.HYPHENRANGELOOSE]="^\\s*("+l[u.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+l[u.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");l[u.STAR]="(<|>)?=?\\s*\\*";for(var d=0;di){return null}var n=t.loose?a[u.LOOSE]:a[u.FULL];if(!n.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var n=parse(e,t);return n?n.version:null}t.clean=clean;function clean(e,t){var n=parse(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;var o=e.trim().match(t.loose?a[u.LOOSE]:a[u.FULL]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>s||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>s||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>s||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,n,i){if(typeof n==="string"){i=n;n=undefined}try{return new SemVer(e,n).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var n=parse(e);var i=parse(t);var s="";if(n.prerelease.length||i.prerelease.length){s="pre";var o="prerelease"}for(var a in n){if(a==="major"||a==="minor"||a==="patch"){if(n[a]!==i[a]){return s+a}}}return o}}t.compareIdentifiers=compareIdentifiers;var m=/^[0-9]+$/;function compareIdentifiers(e,t){var n=m.test(e);var i=m.test(t);if(n&&i){e=+e;t=+t}return e===t?0:n&&!i?-1:i&&!n?1:e0}t.lt=lt;function lt(e,t,n){return compare(e,t,n)<0}t.eq=eq;function eq(e,t,n){return compare(e,t,n)===0}t.neq=neq;function neq(e,t,n){return compare(e,t,n)!==0}t.gte=gte;function gte(e,t,n){return compare(e,t,n)>=0}t.lte=lte;function lte(e,t,n){return compare(e,t,n)<=0}t.cmp=cmp;function cmp(e,t,n,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,i);case"!=":return neq(e,n,i);case">":return gt(e,n,i);case">=":return gte(e,n,i);case"<":return lt(e,n,i);case"<=":return lte(e,n,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===g){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var g={};Comparator.prototype.parse=function(e){var t=this.options.loose?a[u.COMPARATORLOOSE]:a[u.COMPARATOR];var n=e.match(t);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=g}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===g||e===g){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var n;if(this.operator===""){if(this.value===""){return true}n=new Range(e.value,t);return satisfies(this.value,n,t)}else if(e.operator===""){if(e.value===""){return true}n=new Range(this.value,t);return satisfies(e.semver,n,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var l=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var u=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||s||o&&a||l||u};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var i=t?a[u.HYPHENRANGELOOSE]:a[u.HYPHENRANGE];e=e.replace(i,hyphenReplace);n("hyphen replace",e);e=e.replace(a[u.COMPARATORTRIM],h);n("comparator trim",e,a[u.COMPARATORTRIM]);e=e.replace(a[u.TILDETRIM],f);e=e.replace(a[u.CARETTRIM],p);e=e.split(/\s+/).join(" ");var s=t?a[u.COMPARATORLOOSE]:a[u.COMPARATOR];var o=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter((function(e){return!!e.match(s)}))}o=o.map((function(e){return new Comparator(e,this.options)}),this);return o};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(n){return isSatisfiable(n,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var n=true;var i=e.slice();var s=i.pop();while(n&&i.length){n=i.every((function(e){return s.intersects(e,t)}));s=i.pop()}return n}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){n("comp",e,t);e=replaceCarets(e,t);n("caret",e);e=replaceTildes(e,t);n("tildes",e);e=replaceXRanges(e,t);n("xrange",e);e=replaceStars(e,t);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var i=t.loose?a[u.TILDELOOSE]:a[u.TILDE];return e.replace(i,(function(t,i,s,o,a){n("tilde",e,t,i,s,o,a);var l;if(isX(i)){l=""}else if(isX(s)){l=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(o)){l=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else if(a){n("replaceTilde pr",a);l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+(+s+1)+".0"}else{l=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0"}n("tilde return",l);return l}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){n("caret",e,t);var i=t.loose?a[u.CARETLOOSE]:a[u.CARET];return e.replace(i,(function(t,i,s,o,a){n("caret",e,t,i,s,o,a);var l;if(isX(i)){l=""}else if(isX(s)){l=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(o)){if(i==="0"){l=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else{l=">="+i+"."+s+".0 <"+(+i+1)+".0.0"}}else if(a){n("replaceCaret pr",a);if(i==="0"){if(s==="0"){l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+s+"."+(+o+1)}else{l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+(+s+1)+".0"}}else{l=">="+i+"."+s+"."+o+"-"+a+" <"+(+i+1)+".0.0"}}else{n("no pr");if(i==="0"){if(s==="0"){l=">="+i+"."+s+"."+o+" <"+i+"."+s+"."+(+o+1)}else{l=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0"}}else{l=">="+i+"."+s+"."+o+" <"+(+i+1)+".0.0"}}n("caret return",l);return l}))}function replaceXRanges(e,t){n("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?a[u.XRANGELOOSE]:a[u.XRANGE];return e.replace(i,(function(i,s,o,a,l,u){n("xRange",e,i,s,o,a,l,u);var c=isX(o);var f=c||isX(a);var p=f||isX(l);var h=p;if(s==="="&&h){s=""}u=t.includePrerelease?"-0":"";if(c){if(s===">"||s==="<"){i="<0.0.0-0"}else{i="*"}}else if(s&&h){if(f){a=0}l=0;if(s===">"){s=">=";if(f){o=+o+1;a=0;l=0}else{a=+a+1;l=0}}else if(s==="<="){s="<";if(f){o=+o+1}else{a=+a+1}}i=s+o+"."+a+"."+l+u}else if(f){i=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u}else if(p){i=">="+o+"."+a+".0"+u+" <"+o+"."+(+a+1)+".0"+u}n("xRange return",i);return i}))}function replaceStars(e,t){n("replaceStars",e,t);return e.trim().replace(a[u.STAR],"")}function hyphenReplace(e,t,n,i,s,o,a,l,u,c,f,p,h){if(isX(n)){t=""}else if(isX(i)){t=">="+n+".0.0"}else if(isX(s)){t=">="+n+"."+i+".0"}else{t=">="+t}if(isX(u)){l=""}else if(isX(c)){l="<"+(+u+1)+".0.0"}else if(isX(f)){l="<"+u+"."+(+c+1)+".0"}else if(p){l="<="+u+"."+c+"."+f+"-"+p}else{l="<="+l}return(t+" "+l).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var o=e[s].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,n){try{t=new Range(t,n)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,n){var i=null;var s=null;try{var o=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!i||s.compare(e)===-1){i=e;s=new SemVer(i,n)}}}));return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,n){var i=null;var s=null;try{var o=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!i||s.compare(e)===1){i=e;s=new SemVer(i,n)}}}));return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||gt(n,t)){n=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n)){return n}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,n){return outside(e,t,"<",n)}t.gtr=gtr;function gtr(e,t,n){return outside(e,t,">",n)}t.outside=outside;function outside(e,t,n,i){e=new SemVer(e,i);t=new Range(t,i);var s,o,a,l,u;switch(n){case">":s=gt;o=lte;a=lt;l=">";u=">=";break;case"<":s=lt;o=gte;a=gt;l="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var c=0;c=0.0.0")}p=p||e;h=h||e;if(s(e.semver,p.semver,i)){p=e}else if(a(e.semver,h.semver,i)){h=e}}));if(p.operator===l||p.operator===u){return false}if((!h.operator||h.operator===l)&&o(e,h.semver)){return false}else if(h.operator===u&&a(e,h.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var n=parse(e,t);return n&&n.prerelease.length?n.prerelease:null}t.intersects=intersects;function intersects(e,t,n){e=new Range(e,n);t=new Range(t,n);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var n=null;if(!t.rtl){n=e.match(a[u.COERCE])}else{var i;while((i=a[u.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}a[u.COERCERTL].lastIndex=i.index+i[1].length+i[2].length}a[u.COERCERTL].lastIndex=-1}if(n===null){return null}return parse(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},5838:(e,t,n)=>{var i=n(5747);var s=n(8885);var o=n(5622);e.exports=function(e,t){findGit(e,(function(n){if(!n)return t(new Error("no gitconfig to be found at "+e));i.readFile(n,(function(e,n){if(e)return t(e);try{var i=format(s.parse(n.toString()))}catch(e){return t(e)}t(false,i)}))}))};function format(e){var t={};Object.keys(e).forEach((function(n){if(n.indexOf('"')>-1){var i=n.split('"');var s=i.shift().trim();var o=i.shift().trim();if(!t[s])t[s]={};t[s][o]=e[n]}else{t[n]=e[n]}}));return t}function findGit(e,t){var n=o.join(e,".git/config");i.exists(n,(function(i){if(i)return t(n);if(e===o.resolve(e,".."))return t(false);findGit(o.resolve(e,".."),t)}))}},7356:e=>{"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var n={__proto__:t(e)};else var n=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}));return n}},7758:(e,t,n)=>{var i=n(5747);var s=n(263);var o=n(3086);var a=n(7356);var l=n(1669);var u;var c;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");c=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";c="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,u,{get:function(){return t}})}var f=noop;if(l.debuglog)f=l.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))f=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!i[u]){var p=global[u]||[];publishQueue(i,p);i.close=function(e){function close(t,n){return e.call(i,t,(function(e){if(!e){resetQueue()}if(typeof n==="function")n.apply(this,arguments)}))}Object.defineProperty(close,c,{value:e});return close}(i.close);i.closeSync=function(e){function closeSync(t){e.apply(i,arguments);resetQueue()}Object.defineProperty(closeSync,c,{value:e});return closeSync}(i.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){f(i[u]);n(2357).equal(i[u].length,0)}))}}if(!global[u]){publishQueue(global,i[u])}e.exports=patch(a(i));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched){e.exports=patch(i);i.__patched=true}function patch(e){s(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,n,i){if(typeof n==="function")i=n,n=null;return go$readFile(e,n,i);function go$readFile(e,n,i,s){return t(e,n,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,n,i],t,s||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var n=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,i,s){if(typeof i==="function")s=i,i=null;return go$writeFile(e,t,i,s);function go$writeFile(e,t,i,s,o){return n(e,t,i,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$writeFile,[e,t,i,s],n,o||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}var i=e.appendFile;if(i)e.appendFile=appendFile;function appendFile(e,t,n,s){if(typeof n==="function")s=n,n=null;return go$appendFile(e,t,n,s);function go$appendFile(e,t,n,s,o){return i(e,t,n,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$appendFile,[e,t,n,s],i,o||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}var a=e.copyFile;if(a)e.copyFile=copyFile;function copyFile(e,t,n,i){if(typeof n==="function"){i=n;n=0}return go$copyFile(e,t,n,i);function go$copyFile(e,t,n,i,s){return a(e,t,n,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$copyFile,[e,t,n,i],o,s||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var l=e.readdir;e.readdir=readdir;function readdir(e,t,n){if(typeof t==="function")n=t,t=null;return go$readdir(e,t,n);function go$readdir(e,t,n,i){return l(e,t,(function(s,o){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$readdir,[e,t,n],s,i||Date.now(),Date.now()]);else{if(o&&o.sort)o.sort();if(typeof n==="function")n.call(this,s,o)}}))}}if(process.version.substr(0,4)==="v0.8"){var u=o(e);ReadStream=u.ReadStream;WriteStream=u.WriteStream}var c=e.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var f=e.WriteStream;if(f){WriteStream.prototype=Object.create(f.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var p=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});var h=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,n){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=n;e.emit("open",n);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return f.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,n){if(t){e.destroy();e.emit("error",t)}else{e.fd=n;e.emit("open",n)}}))}function createReadStream(t,n){return new e.ReadStream(t,n)}function createWriteStream(t,n){return new e.WriteStream(t,n)}var d=e.open;e.open=open;function open(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$open(e,t,n,i);function go$open(e,t,n,i,s){return d(e,t,n,(function(o,a){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,n,i],o,s||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}return e}function enqueue(e){f("ENQUEUE",e[0].name,e[1]);i[u].push(e);retry()}var h;function resetQueue(){var e=Date.now();for(var t=0;t2){i[u][t][3]=e;i[u][t][4]=e}}retry()}function retry(){clearTimeout(h);h=undefined;if(i[u].length===0)return;var e=i[u].shift();var t=e[0];var n=e[1];var s=e[2];var o=e[3];var a=e[4];if(o===undefined){f("RETRY",t.name,n);t.apply(null,n)}else if(Date.now()-o>=6e4){f("TIMEOUT",t.name,n);var l=n.pop();if(typeof l==="function")l.call(null,s)}else{var c=Date.now()-a;var p=Math.max(a-o,1);var d=Math.min(p*1.2,100);if(c>=d){f("RETRY",t.name,n);t.apply(null,n.concat([o]))}else{i[u].push(e)}}if(h===undefined){h=setTimeout(retry,0)}}},3086:(e,t,n)=>{var i=n(2413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,n){if(!(this instanceof ReadStream))return new ReadStream(t,n);i.call(this);var s=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;n=n||{};var o=Object.keys(n);for(var a=0,l=o.length;athis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){s._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){s.emit("error",e);s.readable=false;return}s.fd=t;s.emit("open",t);s._read()}))}function WriteStream(t,n){if(!(this instanceof WriteStream))return new WriteStream(t,n);i.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;n=n||{};var s=Object.keys(n);for(var o=0,a=s.length;o= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:(e,t,n)=>{var i=n(7619);var s=process.cwd;var o=null;var a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!o)o=s.call(process);return o};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var l=process.chdir;process.chdir=function(e){o=null;l.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,l)}e.exports=patch;function patch(e){if(i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,n){if(n)process.nextTick(n)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,n,i){if(i)process.nextTick(i)};e.lchownSync=function(){}}if(a==="win32"){e.rename=function(t){return function(n,i,s){var o=Date.now();var a=0;t(n,i,(function CB(l){if(l&&(l.code==="EACCES"||l.code==="EPERM")&&Date.now()-o<6e4){setTimeout((function(){e.stat(i,(function(e,o){if(e&&e.code==="ENOENT")t(n,i,CB);else s(l)}))}),a);if(a<100)a+=10;return}if(s)s(l)}))}}(e.rename)}e.read=function(t){function read(n,i,s,o,a,l){var u;if(l&&typeof l==="function"){var c=0;u=function(f,p,h){if(f&&f.code==="EAGAIN"&&c<10){c++;return t.call(e,n,i,s,o,a,u)}l.apply(this,arguments)}}return t.call(e,n,i,s,o,a,u)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=function(t){return function(n,i,s,o,a){var l=0;while(true){try{return t.call(e,n,i,s,o,a)}catch(e){if(e.code==="EAGAIN"&&l<10){l++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,n,s){e.open(t,i.O_WRONLY|i.O_SYMLINK,n,(function(t,i){if(t){if(s)s(t);return}e.fchmod(i,n,(function(t){e.close(i,(function(e){if(s)s(t||e)}))}))}))};e.lchmodSync=function(t,n){var s=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,n);var o=true;var a;try{a=e.fchmodSync(s,n);o=false}finally{if(o){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return a}}function patchLutimes(e){if(i.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,n,s,o){e.open(t,i.O_SYMLINK,(function(t,i){if(t){if(o)o(t);return}e.futimes(i,n,s,(function(t){e.close(i,(function(e){if(o)o(t||e)}))}))}))};e.lutimesSync=function(t,n,s){var o=e.openSync(t,i.O_SYMLINK);var a;var l=true;try{a=e.futimesSync(o,n,s);l=false}finally{if(l){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return a}}else{e.lutimes=function(e,t,n,i){if(i)process.nextTick(i)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(n,i,s){return t.call(e,n,i,(function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(n,i){try{return t.call(e,n,i)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(n,i,s,o){return t.call(e,n,i,s,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(n,i,s){try{return t.call(e,n,i,s)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(n,i,s){if(typeof i==="function"){s=i;i=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(s)s.apply(this,arguments)}return i?t.call(e,n,i,callback):t.call(e,n,callback)}}function statFixSync(t){if(!t)return t;return function(n,i){var s=i?t.call(e,n,i):t.call(e,n);if(s.uid<0)s.uid+=4294967296;if(s.gid<0)s.gid+=4294967296;return s}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},6956:(e,t,n)=>{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(7390);var s=_interopRequireDefault(i);var o=n(9211);var a=_interopRequireDefault(o);var l=n(1475);var u=n(9081);var c=n(1617);var f=_interopRequireDefault(c);var p=n(4166);var h=_interopRequireDefault(p);var d=n(1983);var m=_interopRequireDefault(d);var g=s["default"].create;function create(){var e=g();e.compile=function(t,n){return u.compile(t,n,e)};e.precompile=function(t,n){return u.precompile(t,n,e)};e.AST=a["default"];e.Compiler=u.Compiler;e.JavaScriptCompiler=f["default"];e.Parser=l.parser;e.parse=l.parse;e.parseWithoutProcessing=l.parseWithoutProcessing;return e}var y=create();y.create=create;m["default"](y);y.Visitor=h["default"];y["default"]=y;t.default=y;e.exports=t["default"]},7390:(e,t,n)=>{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t["default"]=e;return t}}var i=n(4211);var s=_interopRequireWildcard(i);var o=n(3296);var a=_interopRequireDefault(o);var l=n(2879);var u=_interopRequireDefault(l);var c=n(1437);var f=_interopRequireWildcard(c);var p=n(7663);var h=_interopRequireWildcard(p);var d=n(1983);var m=_interopRequireDefault(d);function create(){var e=new s.HandlebarsEnvironment;f.extend(e,s);e.SafeString=a["default"];e.Exception=u["default"];e.Utils=f;e.escapeExpression=f.escapeExpression;e.VM=h;e.template=function(t){return h.template(t,e)};return e}var g=create();g.create=create;m["default"](g);g["default"]=g;t.default=g;e.exports=t["default"]},4211:(e,t,n)=>{"use strict";t.__esModule=true;t.HandlebarsEnvironment=HandlebarsEnvironment;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(1437);var s=n(2879);var o=_interopRequireDefault(s);var a=n(3066);var l=n(4168);var u=n(7142);var c=_interopRequireDefault(u);var f=n(6066);var p="4.7.7";t.VERSION=p;var h=8;t.COMPILER_REVISION=h;var d=7;t.LAST_COMPATIBLE_COMPILER_REVISION=d;var m={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};t.REVISION_CHANGES=m;var g="[object Object]";function HandlebarsEnvironment(e,t,n){this.helpers=e||{};this.partials=t||{};this.decorators=n||{};a.registerDefaultHelpers(this);l.registerDefaultDecorators(this)}HandlebarsEnvironment.prototype={constructor:HandlebarsEnvironment,logger:c["default"],log:c["default"].log,registerHelper:function registerHelper(e,t){if(i.toString.call(e)===g){if(t){throw new o["default"]("Arg not supported with multiple helpers")}i.extend(this.helpers,e)}else{this.helpers[e]=t}},unregisterHelper:function unregisterHelper(e){delete this.helpers[e]},registerPartial:function registerPartial(e,t){if(i.toString.call(e)===g){i.extend(this.partials,e)}else{if(typeof t==="undefined"){throw new o["default"]('Attempting to register a partial called "'+e+'" as undefined')}this.partials[e]=t}},unregisterPartial:function unregisterPartial(e){delete this.partials[e]},registerDecorator:function registerDecorator(e,t){if(i.toString.call(e)===g){if(t){throw new o["default"]("Arg not supported with multiple decorators")}i.extend(this.decorators,e)}else{this.decorators[e]=t}},unregisterDecorator:function unregisterDecorator(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function resetLoggedPropertyAccesses(){f.resetLoggedProperties()}};var y=c["default"].log;t.log=y;t.createFrame=i.createFrame;t.logger=c["default"]},9211:(e,t)=>{"use strict";t.__esModule=true;var n={helpers:{helperExpression:function helperExpression(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.params.length||e.hash)},scopedId:function scopedId(e){return/^\.|this\b/.test(e.original)},simpleId:function simpleId(e){return e.parts.length===1&&!n.helpers.scopedId(e)&&!e.depth}}};t.default=n;e.exports=t["default"]},1475:(e,t,n)=>{"use strict";t.__esModule=true;t.parseWithoutProcessing=parseWithoutProcessing;t.parse=parse;function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t["default"]=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(5505);var s=_interopRequireDefault(i);var o=n(5200);var a=_interopRequireDefault(o);var l=n(4706);var u=_interopRequireWildcard(l);var c=n(1437);t.parser=s["default"];var f={};c.extend(f,u);function parseWithoutProcessing(e,t){if(e.type==="Program"){return e}s["default"].yy=f;f.locInfo=function(e){return new f.SourceLocation(t&&t.srcName,e)};var n=s["default"].parse(e);return n}function parse(e,t){var n=parseWithoutProcessing(e,t);var i=new a["default"](t);return i.accept(n)}},3612:(e,t,n)=>{"use strict";t.__esModule=true;var i=n(1437);var s=undefined;try{if(typeof define!=="function"||!define.amd){var o=n(6594);s=o.SourceNode}}catch(e){}if(!s){s=function(e,t,n,i){this.src="";if(i){this.add(i)}};s.prototype={add:function add(e){if(i.isArray(e)){e=e.join("")}this.src+=e},prepend:function prepend(e){if(i.isArray(e)){e=e.join("")}this.src=e+this.src},toStringWithSourceMap:function toStringWithSourceMap(){return{code:this.toString()}},toString:function toString(){return this.src}}}function castChunk(e,t,n){if(i.isArray(e)){var s=[];for(var o=0,a=e.length;o{"use strict";t.__esModule=true;t.Compiler=Compiler;t.precompile=precompile;t.compile=compile;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(2879);var s=_interopRequireDefault(i);var o=n(1437);var a=n(9211);var l=_interopRequireDefault(a);var u=[].slice;function Compiler(){}Compiler.prototype={compiler:Compiler,equals:function equals(e){var t=this.opcodes.length;if(e.opcodes.length!==t){return false}for(var n=0;n1){throw new s["default"]("Unsupported number of partial arguments: "+n.length,e)}else if(!n.length){if(this.options.explicitPartialContext){this.opcode("pushLiteral","undefined")}else{n.push({type:"PathExpression",parts:[],depth:0})}}var i=e.name.original,o=e.name.type==="SubExpression";if(o){this.accept(e.name)}this.setupFullMustacheParams(e,t,undefined,true);var a=e.indent||"";if(this.options.preventIndent&&a){this.opcode("appendContent",a);a=""}this.opcode("invokePartial",o,i,a);this.opcode("append")},PartialBlockStatement:function PartialBlockStatement(e){this.PartialStatement(e)},MustacheStatement:function MustacheStatement(e){this.SubExpression(e);if(e.escaped&&!this.options.noEscape){this.opcode("appendEscaped")}else{this.opcode("append")}},Decorator:function Decorator(e){this.DecoratorBlock(e)},ContentStatement:function ContentStatement(e){if(e.value){this.opcode("appendContent",e.value)}},CommentStatement:function CommentStatement(){},SubExpression:function SubExpression(e){transformLiteralToPath(e);var t=this.classifySexpr(e);if(t==="simple"){this.simpleSexpr(e)}else if(t==="helper"){this.helperSexpr(e)}else{this.ambiguousSexpr(e)}},ambiguousSexpr:function ambiguousSexpr(e,t,n){var i=e.path,s=i.parts[0],o=t!=null||n!=null;this.opcode("getContext",i.depth);this.opcode("pushProgram",t);this.opcode("pushProgram",n);i.strict=true;this.accept(i);this.opcode("invokeAmbiguous",s,o)},simpleSexpr:function simpleSexpr(e){var t=e.path;t.strict=true;this.accept(t);this.opcode("resolvePossibleLambda")},helperSexpr:function helperSexpr(e,t,n){var i=this.setupFullMustacheParams(e,t,n),o=e.path,a=o.parts[0];if(this.options.knownHelpers[a]){this.opcode("invokeKnownHelper",i.length,a)}else if(this.options.knownHelpersOnly){throw new s["default"]("You specified knownHelpersOnly, but used the unknown helper "+a,e)}else{o.strict=true;o.falsy=true;this.accept(o);this.opcode("invokeHelper",i.length,o.original,l["default"].helpers.simpleId(o))}},PathExpression:function PathExpression(e){this.addDepth(e.depth);this.opcode("getContext",e.depth);var t=e.parts[0],n=l["default"].helpers.scopedId(e),i=!e.depth&&!n&&this.blockParamIndex(t);if(i){this.opcode("lookupBlockParam",i,e.parts)}else if(!t){this.opcode("pushContext")}else if(e.data){this.options.data=true;this.opcode("lookupData",e.depth,e.parts,e.strict)}else{this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n)}},StringLiteral:function StringLiteral(e){this.opcode("pushString",e.value)},NumberLiteral:function NumberLiteral(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function BooleanLiteral(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function UndefinedLiteral(){this.opcode("pushLiteral","undefined")},NullLiteral:function NullLiteral(){this.opcode("pushLiteral","null")},Hash:function Hash(e){var t=e.pairs,n=0,i=t.length;this.opcode("pushHash");for(;n=0){return[t,s]}}}};function precompile(e,t,n){if(e==null||typeof e!=="string"&&e.type!=="Program"){throw new s["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e)}t=t||{};if(!("data"in t)){t.data=true}if(t.compat){t.useDepths=true}var i=n.parse(e,t),o=(new n.Compiler).compile(i,t);return(new n.JavaScriptCompiler).compile(o,t)}function compile(e,t,n){if(t===undefined)t={};if(e==null||typeof e!=="string"&&e.type!=="Program"){throw new s["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e)}t=o.extend({},t);if(!("data"in t)){t.data=true}if(t.compat){t.useDepths=true}var i=undefined;function compileInput(){var i=n.parse(e,t),s=(new n.Compiler).compile(i,t),o=(new n.JavaScriptCompiler).compile(s,t,undefined,true);return n.template(o)}function ret(e,t){if(!i){i=compileInput()}return i.call(this,e,t)}ret._setup=function(e){if(!i){i=compileInput()}return i._setup(e)};ret._child=function(e,t,n,s){if(!i){i=compileInput()}return i._child(e,t,n,s)};return ret}function argEquals(e,t){if(e===t){return true}if(o.isArray(e)&&o.isArray(t)&&e.length===t.length){for(var n=0;n{"use strict";t.__esModule=true;t.SourceLocation=SourceLocation;t.id=id;t.stripFlags=stripFlags;t.stripComment=stripComment;t.preparePath=preparePath;t.prepareMustache=prepareMustache;t.prepareRawBlock=prepareRawBlock;t.prepareBlock=prepareBlock;t.prepareProgram=prepareProgram;t.preparePartialBlock=preparePartialBlock;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(2879);var s=_interopRequireDefault(i);function validateClose(e,t){t=t.path?t.path.original:t;if(e.path.original!==t){var n={loc:e.path.loc};throw new s["default"](e.path.original+" doesn't match "+t,n)}}function SourceLocation(e,t){this.source=e;this.start={line:t.first_line,column:t.first_column};this.end={line:t.last_line,column:t.last_column}}function id(e){if(/^\[.*\]$/.test(e)){return e.substring(1,e.length-1)}else{return e}}function stripFlags(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function stripComment(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function preparePath(e,t,n){n=this.locInfo(n);var i=e?"@":"",o=[],a=0;for(var l=0,u=t.length;l0){throw new s["default"]("Invalid path: "+i,{loc:n})}else if(c===".."){a++}}else{o.push(c)}}return{type:"PathExpression",data:e,depth:a,parts:o,original:i,loc:n}}function prepareMustache(e,t,n,i,s,o){var a=i.charAt(3)||i.charAt(2),l=a!=="{"&&a!=="&";var u=/\*/.test(i);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:s,loc:this.locInfo(o)}}function prepareRawBlock(e,t,n,i){validateClose(e,n);i=this.locInfo(i);var s={type:"Program",body:t,strip:{},loc:i};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:i}}function prepareBlock(e,t,n,i,o,a){if(i&&i.path){validateClose(e,i)}var l=/\*/.test(e.open);t.blockParams=e.blockParams;var u=undefined,c=undefined;if(n){if(l){throw new s["default"]("Unexpected inverse block on decorator",n)}if(n.chain){n.program.body[0].closeStrip=i.strip}c=n.strip;u=n.program}if(o){o=u;u=t;t=o}return{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:c,closeStrip:i&&i.strip,loc:this.locInfo(a)}}function prepareProgram(e,t){if(!t&&e.length){var n=e[0].loc,i=e[e.length-1].loc;if(n&&i){t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:i.end.line,column:i.end.column}}}}return{type:"Program",body:e,strip:{},loc:t}}function preparePartialBlock(e,t,n,i){validateClose(e,n);return{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(i)}}},1617:(e,t,n)=>{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(4211);var s=n(2879);var o=_interopRequireDefault(s);var a=n(1437);var l=n(3612);var u=_interopRequireDefault(l);function Literal(e){this.value=e}function JavaScriptCompiler(){}JavaScriptCompiler.prototype={nameLookup:function nameLookup(e,t){return this.internalNameLookup(e,t)},depthedLookup:function depthedLookup(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function compilerInfo(){var e=i.COMPILER_REVISION,t=i.REVISION_CHANGES[e];return[e,t]},appendToBuffer:function appendToBuffer(e,t,n){if(!a.isArray(e)){e=[e]}e=this.source.wrap(e,t);if(this.environment.isSimple){return["return ",e,";"]}else if(n){return["buffer += ",e,";"]}else{e.appendToBuffer=true;return e}},initializeBuffer:function initializeBuffer(){return this.quotedString("")},internalNameLookup:function internalNameLookup(e,t){this.lookupPropertyFunctionIsUsed=true;return["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:false,compile:function compile(e,t,n,i){this.environment=e;this.options=t;this.stringParams=this.options.stringParams;this.trackIds=this.options.trackIds;this.precompile=!i;this.name=this.environment.name;this.isChild=!!n;this.context=n||{decorators:[],programs:[],environments:[]};this.preamble();this.stackSlot=0;this.stackVars=[];this.aliases={};this.registers={list:[]};this.hashes=[];this.compileStack=[];this.inlineStack=[];this.blockParams=[];this.compileChildren(e,t);this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat;this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=undefined,l=undefined,u=undefined,c=undefined;for(u=0,c=s.length;u0){n+=", "+i.join(", ")}var s=0;Object.keys(this.aliases).forEach((function(e){var i=t.aliases[e];if(i.children&&i.referenceCount>1){n+=", alias"+ ++s+"="+e;i.children[0]="alias"+s}}));if(this.lookupPropertyFunctionIsUsed){n+=", "+this.lookupPropertyFunctionVarDeclaration()}var o=["container","depth0","helpers","partials","data"];if(this.useBlockParams||this.useDepths){o.push("blockParams")}if(this.useDepths){o.push("depths")}var a=this.mergeSource(n);if(e){o.push(a);return Function.apply(this,o)}else{return this.source.wrap(["function(",o.join(","),") {\n ",a,"}"])}},mergeSource:function mergeSource(e){var t=this.environment.isSimple,n=!this.forceBuffer,i=undefined,s=undefined,o=undefined,a=undefined;this.source.each((function(e){if(e.appendToBuffer){if(o){e.prepend(" + ")}else{o=e}a=e}else{if(o){if(!s){i=true}else{o.prepend("buffer += ")}a.add(";");o=a=undefined}s=true;if(!t){n=false}}}));if(n){if(o){o.prepend("return ");a.add(";")}else if(!s){this.source.push('return "";')}}else{e+=", buffer = "+(i?"":this.initializeBuffer());if(o){o.prepend("return buffer + ");a.add(";")}else{this.source.push("return buffer;")}}if(e){this.source.prepend("var "+e.substring(2)+(i?"":";\n"))}return this.source.merge()},lookupPropertyFunctionVarDeclaration:function lookupPropertyFunctionVarDeclaration(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function blockValue(e){var t=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var i=this.popStack();n.splice(1,0,i);this.push(this.source.functionCall(t,"call",n))},ambiguousBlockValue:function ambiguousBlockValue(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,true);this.flushInline();var n=this.topStack();t.splice(1,0,n);this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function appendContent(e){if(this.pendingContent){e=this.pendingContent+e}else{this.pendingLocation=this.source.currentLocation}this.pendingContent=e},append:function append(){if(this.isInline()){this.replaceStack((function(e){return[" != null ? ",e,' : ""']}));this.pushSource(this.appendToBuffer(this.popStack()))}else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,undefined,true)," }"]);if(this.environment.isSimple){this.pushSource(["else { ",this.appendToBuffer("''",undefined,true)," }"])}}},appendEscaped:function appendEscaped(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function getContext(e){this.lastContext=e},pushContext:function pushContext(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function lookupOnContext(e,t,n,i){var s=0;if(!i&&this.options.compat&&!this.lastContext){this.push(this.depthedLookup(e[s++]))}else{this.pushContext()}this.resolvePath("context",e,s,t,n)},lookupBlockParam:function lookupBlockParam(e,t){this.useBlockParams=true;this.push(["blockParams[",e[0],"][",e[1],"]"]);this.resolvePath("context",t,1)},lookupData:function lookupData(e,t,n){if(!e){this.pushStackLiteral("data")}else{this.pushStackLiteral("container.data(data, "+e+")")}this.resolvePath("data",t,0,true,n)},resolvePath:function resolvePath(e,t,n,i,s){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(strictLookup(this.options.strict&&s,this,t,e));return}var a=t.length;for(;nthis.stackVars.length){this.stackVars.push("stack"+this.stackSlot)}return this.topStackName()},topStackName:function topStackName(){return"stack"+this.stackSlot},flushInline:function flushInline(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,n=e.length;t{"use strict";t.__esModule=true;var n=function(){var e={trace:function trace(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function anonymous(e,t,n,i,s,o,a){var l=o.length-1;switch(s){case 1:return o[l-1];break;case 2:this.$=i.prepareProgram(o[l]);break;case 3:this.$=o[l];break;case 4:this.$=o[l];break;case 5:this.$=o[l];break;case 6:this.$=o[l];break;case 7:this.$=o[l];break;case 8:this.$=o[l];break;case 9:this.$={type:"CommentStatement",value:i.stripComment(o[l]),strip:i.stripFlags(o[l],o[l]),loc:i.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:o[l],value:o[l],loc:i.locInfo(this._$)};break;case 11:this.$=i.prepareRawBlock(o[l-2],o[l-1],o[l],this._$);break;case 12:this.$={path:o[l-3],params:o[l-2],hash:o[l-1]};break;case 13:this.$=i.prepareBlock(o[l-3],o[l-2],o[l-1],o[l],false,this._$);break;case 14:this.$=i.prepareBlock(o[l-3],o[l-2],o[l-1],o[l],true,this._$);break;case 15:this.$={open:o[l-5],path:o[l-4],params:o[l-3],hash:o[l-2],blockParams:o[l-1],strip:i.stripFlags(o[l-5],o[l])};break;case 16:this.$={path:o[l-4],params:o[l-3],hash:o[l-2],blockParams:o[l-1],strip:i.stripFlags(o[l-5],o[l])};break;case 17:this.$={path:o[l-4],params:o[l-3],hash:o[l-2],blockParams:o[l-1],strip:i.stripFlags(o[l-5],o[l])};break;case 18:this.$={strip:i.stripFlags(o[l-1],o[l-1]),program:o[l]};break;case 19:var u=i.prepareBlock(o[l-2],o[l-1],o[l],o[l],false,this._$),c=i.prepareProgram([u],o[l-1].loc);c.chained=true;this.$={strip:o[l-2].strip,program:c,chain:true};break;case 20:this.$=o[l];break;case 21:this.$={path:o[l-1],strip:i.stripFlags(o[l-2],o[l])};break;case 22:this.$=i.prepareMustache(o[l-3],o[l-2],o[l-1],o[l-4],i.stripFlags(o[l-4],o[l]),this._$);break;case 23:this.$=i.prepareMustache(o[l-3],o[l-2],o[l-1],o[l-4],i.stripFlags(o[l-4],o[l]),this._$);break;case 24:this.$={type:"PartialStatement",name:o[l-3],params:o[l-2],hash:o[l-1],indent:"",strip:i.stripFlags(o[l-4],o[l]),loc:i.locInfo(this._$)};break;case 25:this.$=i.preparePartialBlock(o[l-2],o[l-1],o[l],this._$);break;case 26:this.$={path:o[l-3],params:o[l-2],hash:o[l-1],strip:i.stripFlags(o[l-4],o[l])};break;case 27:this.$=o[l];break;case 28:this.$=o[l];break;case 29:this.$={type:"SubExpression",path:o[l-3],params:o[l-2],hash:o[l-1],loc:i.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:o[l],loc:i.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:i.id(o[l-2]),value:o[l],loc:i.locInfo(this._$)};break;case 32:this.$=i.id(o[l-1]);break;case 33:this.$=o[l];break;case 34:this.$=o[l];break;case 35:this.$={type:"StringLiteral",value:o[l],original:o[l],loc:i.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(o[l]),original:Number(o[l]),loc:i.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:o[l]==="true",original:o[l]==="true",loc:i.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:undefined,value:undefined,loc:i.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:i.locInfo(this._$)};break;case 40:this.$=o[l];break;case 41:this.$=o[l];break;case 42:this.$=i.preparePath(true,o[l],this._$);break;case 43:this.$=i.preparePath(false,o[l],this._$);break;case 44:o[l-2].push({part:i.id(o[l]),original:o[l],separator:o[l-1]});this.$=o[l-2];break;case 45:this.$=[{part:i.id(o[l]),original:o[l]}];break;case 46:this.$=[];break;case 47:o[l-1].push(o[l]);break;case 48:this.$=[];break;case 49:o[l-1].push(o[l]);break;case 50:this.$=[];break;case 51:o[l-1].push(o[l]);break;case 58:this.$=[];break;case 59:o[l-1].push(o[l]);break;case 64:this.$=[];break;case 65:o[l-1].push(o[l]);break;case 70:this.$=[];break;case 71:o[l-1].push(o[l]);break;case 78:this.$=[];break;case 79:o[l-1].push(o[l]);break;case 82:this.$=[];break;case 83:o[l-1].push(o[l]);break;case 86:this.$=[];break;case 87:o[l-1].push(o[l]);break;case 90:this.$=[];break;case 91:o[l-1].push(o[l]);break;case 94:this.$=[];break;case 95:o[l-1].push(o[l]);break;case 98:this.$=[o[l]];break;case 99:o[l-1].push(o[l]);break;case 100:this.$=[o[l]];break;case 101:o[l-1].push(o[l]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function parseError(e,t){throw new Error(e)},parse:function parse(e){var t=this,n=[0],i=[null],s=[],o=this.table,a="",l=0,u=0,c=0,f=2,p=1;this.lexer.setInput(e);this.lexer.yy=this.yy;this.yy.lexer=this.lexer;this.yy.parser=this;if(typeof this.lexer.yylloc=="undefined")this.lexer.yylloc={};var h=this.lexer.yylloc;s.push(h);var d=this.lexer.options&&this.lexer.options.ranges;if(typeof this.yy.parseError==="function")this.parseError=this.yy.parseError;function popStack(e){n.length=n.length-2*e;i.length=i.length-e;s.length=s.length-e}function lex(){var e;e=t.lexer.lex()||1;if(typeof e!=="number"){e=t.symbols_[e]||e}return e}var m,g,y,v,b,w,S={},E,_,O,R;while(true){y=n[n.length-1];if(this.defaultActions[y]){v=this.defaultActions[y]}else{if(m===null||typeof m=="undefined"){m=lex()}v=o[y]&&o[y][m]}if(typeof v==="undefined"||!v.length||!v[0]){var C="";if(!c){R=[];for(E in o[y])if(this.terminals_[E]&&E>2){R.push("'"+this.terminals_[E]+"'")}if(this.lexer.showPosition){C="Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[m]||m)+"'"}else{C="Parse error on line "+(l+1)+": Unexpected "+(m==1?"end of input":"'"+(this.terminals_[m]||m)+"'")}this.parseError(C,{text:this.lexer.match,token:this.terminals_[m]||m,line:this.lexer.yylineno,loc:h,expected:R})}}if(v[0]instanceof Array&&v.length>1){throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+m)}switch(v[0]){case 1:n.push(m);i.push(this.lexer.yytext);s.push(this.lexer.yylloc);n.push(v[1]);m=null;if(!g){u=this.lexer.yyleng;a=this.lexer.yytext;l=this.lexer.yylineno;h=this.lexer.yylloc;if(c>0)c--}else{m=g;g=null}break;case 2:_=this.productions_[v[1]][1];S.$=i[i.length-_];S._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column};if(d){S._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]}w=this.performAction.call(S,a,u,l,this.yy,v[1],i,s);if(typeof w!=="undefined"){return w}if(_){n=n.slice(0,-1*_*2);i=i.slice(0,-1*_);s=s.slice(0,-1*_)}n.push(this.productions_[v[1]][0]);i.push(S.$);s.push(S._$);O=o[n[n.length-2]][n[n.length-1]];n.push(O);break;case 3:return true}}return true}};var t=function(){var e={EOF:1,parseError:function parseError(e,t){if(this.yy.parser){this.yy.parser.parseError(e,t)}else{throw new Error(e)}},setInput:function setInput(e){this._input=e;this._more=this._less=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges)this.yylloc.range=[0,0];this.offset=0;return this},input:function input(){var e=this._input[0];this.yytext+=e;this.yyleng++;this.offset++;this.match+=e;this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);if(t){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges)this.yylloc.range[1]++;this._input=this._input.slice(1);return e},unput:function unput(e){var t=e.length;var n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-t-1);this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(n.length-1)this.yylineno-=n.length-1;var s=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t};if(this.options.ranges){this.yylloc.range=[s[0],s[0]+this.yyleng-t]}return this},more:function more(){this._more=true;return this},less:function less(e){this.unput(this.match.slice(e))},pastInput:function pastInput(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function upcomingInput(){var e=this.match;if(e.length<20){e+=this._input.substr(0,20-e.length)}return(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function showPosition(){var e=this.pastInput();var t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function next(){if(this.done){return this.EOF}if(!this._input)this.done=true;var e,t,n,i,s,o;if(!this._more){this.yytext="";this.match=""}var a=this._currentRules();for(var l=0;lt[0].length)){t=n;i=l;if(!this.options.flex)break}}if(t){o=t[0].match(/(?:\r\n?|\n).*/g);if(o)this.yylineno+=o.length;this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length};this.yytext+=t[0];this.match+=t[0];this.matches=t;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];e=this.performAction.call(this,this.yy,this,a[i],this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input)this.done=false;if(e)return e;else return}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}},lex:function lex(){var e=this.next();if(typeof e!=="undefined"){return e}else{return this.lex()}},begin:function begin(e){this.conditionStack.push(e)},popState:function popState(){return this.conditionStack.pop()},_currentRules:function _currentRules(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function topState(){return this.conditionStack[this.conditionStack.length-2]},pushState:function begin(e){this.begin(e)}};e.options={};e.performAction=function anonymous(e,t,n,i){function strip(e,n){return t.yytext=t.yytext.substring(e,t.yyleng-n+e)}var s=i;switch(n){case 0:if(t.yytext.slice(-2)==="\\\\"){strip(0,1);this.begin("mu")}else if(t.yytext.slice(-1)==="\\"){strip(0,1);this.begin("emu")}else{this.begin("mu")}if(t.yytext)return 15;break;case 1:return 15;break;case 2:this.popState();return 15;break;case 3:this.begin("raw");return 15;break;case 4:this.popState();if(this.conditionStack[this.conditionStack.length-1]==="raw"){return 15}else{strip(5,9);return"END_RAW_BLOCK"}break;case 5:return 15;break;case 6:this.popState();return 14;break;case 7:return 65;break;case 8:return 68;break;case 9:return 19;break;case 10:this.popState();this.begin("raw");return 23;break;case 11:return 55;break;case 12:return 60;break;case 13:return 29;break;case 14:return 47;break;case 15:this.popState();return 44;break;case 16:this.popState();return 44;break;case 17:return 34;break;case 18:return 39;break;case 19:return 51;break;case 20:return 48;break;case 21:this.unput(t.yytext);this.popState();this.begin("com");break;case 22:this.popState();return 14;break;case 23:return 48;break;case 24:return 73;break;case 25:return 72;break;case 26:return 72;break;case 27:return 87;break;case 28:break;case 29:this.popState();return 54;break;case 30:this.popState();return 33;break;case 31:t.yytext=strip(1,2).replace(/\\"/g,'"');return 80;break;case 32:t.yytext=strip(1,2).replace(/\\'/g,"'");return 80;break;case 33:return 85;break;case 34:return 82;break;case 35:return 82;break;case 36:return 83;break;case 37:return 84;break;case 38:return 81;break;case 39:return 75;break;case 40:return 77;break;case 41:return 72;break;case 42:t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1");return 72;break;case 43:return"INVALID";break;case 44:return 5;break}};e.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/];e.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:false},emu:{rules:[2],inclusive:false},com:{rules:[6],inclusive:false},raw:{rules:[3,4,5],inclusive:false},INITIAL:{rules:[0,1,44],inclusive:true}};return e}();e.lexer=t;function Parser(){this.yy={}}Parser.prototype=e;e.Parser=Parser;return new Parser}();t.default=n;e.exports=t["default"]},9286:(e,t,n)=>{"use strict";t.__esModule=true;t.print=print;t.PrintVisitor=PrintVisitor;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(4166);var s=_interopRequireDefault(i);function print(e){return(new PrintVisitor).accept(e)}function PrintVisitor(){this.padding=0}PrintVisitor.prototype=new s["default"];PrintVisitor.prototype.pad=function(e){var t="";for(var n=0,i=this.padding;n "+t+" }}")};PrintVisitor.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;if(e.params[0]){t+=" "+this.accept(e.params[0])}if(e.hash){t+=" "+this.accept(e.hash)}t+=" "+this.pad("PROGRAM:");this.padding++;t+=this.accept(e.program);this.padding--;return this.pad("{{> "+t+" }}")};PrintVisitor.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};PrintVisitor.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};PrintVisitor.prototype.SubExpression=function(e){var t=e.params,n=[],i=undefined;for(var s=0,o=t.length;s{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(4166);var s=_interopRequireDefault(i);function WhitespaceControl(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];this.options=e}WhitespaceControl.prototype=new s["default"];WhitespaceControl.prototype.Program=function(e){var t=!this.options.ignoreStandalone;var n=!this.isRootSeen;this.isRootSeen=true;var i=e.body;for(var s=0,o=i.length;s{"use strict";t.__esModule=true;t.registerDefaultDecorators=registerDefaultDecorators;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(975);var s=_interopRequireDefault(i);function registerDefaultDecorators(e){s["default"](e)}},975:(e,t,n)=>{"use strict";t.__esModule=true;var i=n(1437);t.default=function(e){e.registerDecorator("inline",(function(e,t,n,s){var o=e;if(!t.partials){t.partials={};o=function(s,o){var a=n.partials;n.partials=i.extend({},a,t.partials);var l=e(s,o);n.partials=a;return l}}t.partials[s.args[0]]=s.fn;return o}))};e.exports=t["default"]},2879:(e,t)=>{"use strict";t.__esModule=true;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Exception(e,t){var i=t&&t.loc,s=undefined,o=undefined,a=undefined,l=undefined;if(i){s=i.start.line;o=i.end.line;a=i.start.column;l=i.end.column;e+=" - "+s+":"+a}var u=Error.prototype.constructor.call(this,e);for(var c=0;c{"use strict";t.__esModule=true;t.registerDefaultHelpers=registerDefaultHelpers;t.moveHelperToHooks=moveHelperToHooks;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(6247);var s=_interopRequireDefault(i);var o=n(9052);var a=_interopRequireDefault(o);var l=n(8950);var u=_interopRequireDefault(l);var c=n(2767);var f=_interopRequireDefault(c);var p=n(9072);var h=_interopRequireDefault(p);var d=n(8168);var m=_interopRequireDefault(d);var g=n(9150);var y=_interopRequireDefault(g);function registerDefaultHelpers(e){s["default"](e);a["default"](e);u["default"](e);f["default"](e);h["default"](e);m["default"](e);y["default"](e)}function moveHelperToHooks(e,t,n){if(e.helpers[t]){e.hooks[t]=e.helpers[t];if(!n){delete e.helpers[t]}}}},6247:(e,t,n)=>{"use strict";t.__esModule=true;var i=n(1437);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,n){var s=n.inverse,o=n.fn;if(t===true){return o(this)}else if(t===false||t==null){return s(this)}else if(i.isArray(t)){if(t.length>0){if(n.ids){n.ids=[n.name]}return e.helpers.each(t,n)}else{return s(this)}}else{if(n.data&&n.ids){var a=i.createFrame(n.data);a.contextPath=i.appendContextPath(n.data.contextPath,n.name);n={data:a}}return o(t,n)}}))};e.exports=t["default"]},9052:(e,t,n)=>{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(1437);var s=n(2879);var o=_interopRequireDefault(s);t.default=function(e){e.registerHelper("each",(function(e,t){if(!t){throw new o["default"]("Must pass iterator to #each")}var n=t.fn,s=t.inverse,a=0,l="",u=undefined,c=undefined;if(t.data&&t.ids){c=i.appendContextPath(t.data.contextPath,t.ids[0])+"."}if(i.isFunction(e)){e=e.call(this)}if(t.data){u=i.createFrame(t.data)}function execIteration(t,s,o){if(u){u.key=t;u.index=s;u.first=s===0;u.last=!!o;if(c){u.contextPath=c+t}}l=l+n(e[t],{data:u,blockParams:i.blockParams([e[t],t],[c+t,null])})}if(e&&typeof e==="object"){if(i.isArray(e)){for(var f=e.length;a{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(2879);var s=_interopRequireDefault(i);t.default=function(e){e.registerHelper("helperMissing",(function(){if(arguments.length===1){return undefined}else{throw new s["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"')}}))};e.exports=t["default"]},2767:(e,t,n)=>{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(1437);var s=n(2879);var o=_interopRequireDefault(s);t.default=function(e){e.registerHelper("if",(function(e,t){if(arguments.length!=2){throw new o["default"]("#if requires exactly one argument")}if(i.isFunction(e)){e=e.call(this)}if(!t.hash.includeZero&&!e||i.isEmpty(e)){return t.inverse(this)}else{return t.fn(this)}}));e.registerHelper("unless",(function(t,n){if(arguments.length!=2){throw new o["default"]("#unless requires exactly one argument")}return e.helpers["if"].call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))};e.exports=t["default"]},9072:(e,t)=>{"use strict";t.__esModule=true;t.default=function(e){e.registerHelper("log",(function(){var t=[undefined],n=arguments[arguments.length-1];for(var i=0;i{"use strict";t.__esModule=true;t.default=function(e){e.registerHelper("lookup",(function(e,t,n){if(!e){return e}return n.lookupProperty(e,t)}))};e.exports=t["default"]},9150:(e,t,n)=>{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(1437);var s=n(2879);var o=_interopRequireDefault(s);t.default=function(e){e.registerHelper("with",(function(e,t){if(arguments.length!=2){throw new o["default"]("#with requires exactly one argument")}if(i.isFunction(e)){e=e.call(this)}var n=t.fn;if(!i.isEmpty(e)){var s=t.data;if(t.data&&t.ids){s=i.createFrame(t.data);s.contextPath=i.appendContextPath(t.data.contextPath,t.ids[0])}return n(e,{data:s,blockParams:i.blockParams([e],[s&&s.contextPath])})}else{return t.inverse(this)}}))};e.exports=t["default"]},6025:(e,t,n)=>{"use strict";t.__esModule=true;t.createNewLookupObject=createNewLookupObject;var i=n(1437);function createNewLookupObject(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";t.__esModule=true;t.createProtoAccessControl=createProtoAccessControl;t.resultIsAllowed=resultIsAllowed;t.resetLoggedProperties=resetLoggedProperties;function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t["default"]=e;return t}}var i=n(6025);var s=n(7142);var o=_interopRequireWildcard(s);var a=Object.create(null);function createProtoAccessControl(e){var t=Object.create(null);t["constructor"]=false;t["__defineGetter__"]=false;t["__defineSetter__"]=false;t["__lookupGetter__"]=false;var n=Object.create(null);n["__proto__"]=false;return{properties:{whitelist:i.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:i.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function resultIsAllowed(e,t,n){if(typeof e==="function"){return checkWhiteList(t.methods,n)}else{return checkWhiteList(t.properties,n)}}function checkWhiteList(e,t){if(e.whitelist[t]!==undefined){return e.whitelist[t]===true}if(e.defaultValue!==undefined){return e.defaultValue}logUnexpecedPropertyAccessOnce(t);return false}function logUnexpecedPropertyAccessOnce(e){if(a[e]!==true){a[e]=true;o.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\n'+"You can add a runtime option to disable the check or this warning:\n"+"See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details")}}function resetLoggedProperties(){Object.keys(a).forEach((function(e){delete a[e]}))}},3268:(e,t)=>{"use strict";t.__esModule=true;t.wrapHelper=wrapHelper;function wrapHelper(e,t){if(typeof e!=="function"){return e}var n=function wrapper(){var n=arguments[arguments.length-1];arguments[arguments.length-1]=t(n);return e.apply(this,arguments)};return n}},7142:(e,t,n)=>{"use strict";t.__esModule=true;var i=n(1437);var s={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function lookupLevel(e){if(typeof e==="string"){var t=i.indexOf(s.methodMap,e.toLowerCase());if(t>=0){e=t}else{e=parseInt(e,10)}}return e},log:function log(e){e=s.lookupLevel(e);if(typeof console!=="undefined"&&s.lookupLevel(s.level)<=e){var t=s.methodMap[e];if(!console[t]){t="log"}for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o{"use strict";t.__esModule=true;t.default=function(e){var t=typeof global!=="undefined"?global:window,n=t.Handlebars;e.noConflict=function(){if(t.Handlebars===e){t.Handlebars=n}return e}};e.exports=t["default"]},7663:(e,t,n)=>{"use strict";t.__esModule=true;t.checkRevision=checkRevision;t.template=template;t.wrapProgram=wrapProgram;t.resolvePartial=resolvePartial;t.invokePartial=invokePartial;t.noop=noop;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t["default"]=e;return t}}var i=n(1437);var s=_interopRequireWildcard(i);var o=n(2879);var a=_interopRequireDefault(o);var l=n(4211);var u=n(3066);var c=n(3268);var f=n(6066);function checkRevision(e){var t=e&&e[0]||1,n=l.COMPILER_REVISION;if(t>=l.LAST_COMPATIBLE_COMPILER_REVISION&&t<=l.COMPILER_REVISION){return}if(t{"use strict";t.__esModule=true;function SafeString(e){this.string=e}SafeString.prototype.toString=SafeString.prototype.toHTML=function(){return""+this.string};t.default=SafeString;e.exports=t["default"]},1437:(e,t)=>{"use strict";t.__esModule=true;t.extend=extend;t.indexOf=indexOf;t.escapeExpression=escapeExpression;t.isEmpty=isEmpty;t.createFrame=createFrame;t.blockParams=blockParams;t.appendContextPath=appendContextPath;var n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="};var i=/[&<>"'`=]/g,s=/[&<>"'`=]/;function escapeChar(e){return n[e]}function extend(e){for(var t=1;t{var i=n(6956).default;var s=n(9286);i.PrintVisitor=s.PrintVisitor;i.print=s.print;e.exports=i;function extension(e,t){var s=n(5747);var o=s.readFileSync(t,"utf8");e.exports=i.compile(o)}if(true&&require.extensions){require.extensions[".handlebars"]=extension;require.extensions[".hbs"]=extension}},6339:(e,t,n)=>{"use strict";var i=n(8334);e.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},135:e=>{"use strict";const maybeJoin=(...e)=>e.every((e=>e))?e.join(""):"";const maybeEncode=e=>e?encodeURIComponent(e):"";const t={sshtemplate:({domain:e,user:t,project:n,committish:i})=>`git@${e}:${t}/${n}.git${maybeJoin("#",i)}`,sshurltemplate:({domain:e,user:t,project:n,committish:i})=>`git+ssh://git@${e}/${t}/${n}.git${maybeJoin("#",i)}`,browsetemplate:({domain:e,user:t,project:n,committish:i,treepath:s})=>`https://${e}/${t}/${n}${maybeJoin("/",s,"/",maybeEncode(i))}`,browsefiletemplate:({domain:e,user:t,project:n,committish:i,treepath:s,path:o,fragment:a,hashformat:l})=>`https://${e}/${t}/${n}/${s}/${maybeEncode(i||"master")}/${o}${maybeJoin("#",l(a||""))}`,docstemplate:({domain:e,user:t,project:n,treepath:i,committish:s})=>`https://${e}/${t}/${n}${maybeJoin("/",i,"/",maybeEncode(s))}#readme`,httpstemplate:({auth:e,domain:t,user:n,project:i,committish:s})=>`git+https://${maybeJoin(e,"@")}${t}/${n}/${i}.git${maybeJoin("#",s)}`,filetemplate:({domain:e,user:t,project:n,committish:i,path:s})=>`https://${e}/${t}/${n}/raw/${maybeEncode(i)||"master"}/${s}`,shortcuttemplate:({type:e,user:t,project:n,committish:i})=>`${e}:${t}/${n}${maybeJoin("#",i)}`,pathtemplate:({user:e,project:t,committish:n})=>`${e}/${t}${maybeJoin("#",n)}`,bugstemplate:({domain:e,user:t,project:n})=>`https://${e}/${t}/${n}/issues`,hashformat:formatHashFragment};const n={};n.github=Object.assign({},t,{protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",filetemplate:({auth:e,user:t,project:n,committish:i,path:s})=>`https://${maybeJoin(e,"@")}raw.githubusercontent.com/${t}/${n}/${maybeEncode(i)||"master"}/${s}`,gittemplate:({auth:e,domain:t,user:n,project:i,committish:s})=>`git://${maybeJoin(e,"@")}${t}/${n}/${i}.git${maybeJoin("#",s)}`,tarballtemplate:({domain:e,user:t,project:n,committish:i})=>`https://codeload.${e}/${t}/${n}/tar.gz/${maybeEncode(i)||"master"}`,extract:e=>{let[,t,n,i,s]=e.pathname.split("/",5);if(i&&i!=="tree"){return}if(!i){s=e.hash.slice(1)}if(n&&n.endsWith(".git")){n=n.slice(0,-4)}if(!t||!n){return}return{user:t,project:n,committish:s}}});n.bitbucket=Object.assign({},t,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",tarballtemplate:({domain:e,user:t,project:n,committish:i})=>`https://${e}/${t}/${n}/get/${maybeEncode(i)||"master"}.tar.gz`,extract:e=>{let[,t,n,i]=e.pathname.split("/",4);if(["get"].includes(i)){return}if(n&&n.endsWith(".git")){n=n.slice(0,-4)}if(!t||!n){return}return{user:t,project:n,committish:e.hash.slice(1)}}});n.gitlab=Object.assign({},t,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",httpstemplate:({auth:e,domain:t,user:n,project:i,committish:s})=>`git+https://${maybeJoin(e,"@")}${t}/${n}/${i}.git${maybeJoin("#",s)}`,tarballtemplate:({domain:e,user:t,project:n,committish:i})=>`https://${e}/${t}/${n}/repository/archive.tar.gz?ref=${maybeEncode(i)||"master"}`,extract:e=>{const t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz")){return}const n=t.split("/");let i=n.pop();if(i.endsWith(".git")){i=i.slice(0,-4)}const s=n.join("/");if(!s||!i){return}return{user:s,project:i,committish:e.hash.slice(1)}}});n.gist=Object.assign({},t,{protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",sshtemplate:({domain:e,project:t,committish:n})=>`git@${e}:${t}.git${maybeJoin("#",n)}`,sshurltemplate:({domain:e,project:t,committish:n})=>`git+ssh://git@${e}/${t}.git${maybeJoin("#",n)}`,browsetemplate:({domain:e,project:t,committish:n})=>`https://${e}/${t}${maybeJoin("/",maybeEncode(n))}`,browsefiletemplate:({domain:e,project:t,committish:n,path:i,hashformat:s})=>`https://${e}/${t}${maybeJoin("/",maybeEncode(n))}${maybeJoin("#",s(i))}`,docstemplate:({domain:e,project:t,committish:n})=>`https://${e}/${t}${maybeJoin("/",maybeEncode(n))}`,httpstemplate:({domain:e,project:t,committish:n})=>`git+https://${e}/${t}.git${maybeJoin("#",n)}`,filetemplate:({user:e,project:t,committish:n,path:i})=>`https://gist.githubusercontent.com/${e}/${t}/raw${maybeJoin("/",maybeEncode(n))}/${i}`,shortcuttemplate:({type:e,project:t,committish:n})=>`${e}:${t}${maybeJoin("#",n)}`,pathtemplate:({project:e,committish:t})=>`${e}${maybeJoin("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:n})=>`git://${e}/${t}.git${maybeJoin("#",n)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${maybeEncode(t)||"master"}`,extract:e=>{let[,t,n,i]=e.pathname.split("/",4);if(i==="raw"){return}if(!n){if(!t){return}n=t;t=null}if(n.endsWith(".git")){n=n.slice(0,-4)}return{user:t,project:n,committish:e.hash.slice(1)}},hashformat:function(e){return e&&"file-"+formatHashFragment(e)}});const i=Object.keys(n);n.byShortcut={};n.byDomain={};for(const e of i){n.byShortcut[`${e}:`]=e;n.byDomain[n[e].domain]=e}function formatHashFragment(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}e.exports=n},8145:(e,t,n)=>{"use strict";const i=n(135);class GitHost{constructor(e,t,n,s,o,a,l={}){Object.assign(this,i[e]);this.type=e;this.user=t;this.auth=n;this.project=s;this.committish=o;this.default=a;this.opts=l}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this._fill(this.sshtemplate,e)}_fill(e,t){if(typeof e==="function"){const n={...this,...this.opts,...t};if(!n.path){n.path=""}if(n.path.startsWith("/")){n.path=n.path.slice(1)}if(n.noCommittish){n.committish=null}const i=e(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}return null}sshurl(e){return this._fill(this.sshurltemplate,e)}browse(e,t,n){if(typeof e!=="string"){return this._fill(this.browsetemplate,e)}if(typeof t!=="string"){n=t;t=null}return this._fill(this.browsefiletemplate,{...n,fragment:t,path:e})}docs(e){return this._fill(this.docstemplate,e)}bugs(e){return this._fill(this.bugstemplate,e)}https(e){return this._fill(this.httpstemplate,e)}git(e){return this._fill(this.gittemplate,e)}shortcut(e){return this._fill(this.shortcuttemplate,e)}path(e){return this._fill(this.pathtemplate,e)}tarball(e){return this._fill(this.tarballtemplate,{...e,noCommittish:false})}file(e,t){return this._fill(this.filetemplate,{...t,path:e})}getDefaultRepresentation(){return this.default}toString(e){if(this.default&&typeof this[this.default]==="function"){return this[this.default](e)}return this.sshurl(e)}}e.exports=GitHost},8869:(e,t,n)=>{"use strict";const i=n(8835);const s=n(135);const o=e.exports=n(8145);const a=n(7129);const l=new a({max:1e3});const u={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function protocolToRepresentation(e){return u[e]||e.slice(0,-1)}const c={"git:":true,"https:":true,"git+https:":true,"http:":true,"git+http:":true};const f=Object.keys(s.byShortcut).concat(["http:","https:","git:","git+ssh:","git+https:","ssh:"]);e.exports.fromUrl=function(e,t){if(typeof e!=="string"){return}const n=e+JSON.stringify(t||{});if(!l.has(n)){l.set(n,fromUrl(e,t))}return l.get(n)};function fromUrl(e,t){if(!e){return}const n=isGitHubShorthand(e)?"github:"+e:correctProtocol(e);const i=parseGitUrl(n);if(!i){return i}const a=s.byShortcut[i.protocol];const l=s.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname];const u=a||l;if(!u){return}const f=s[a||l];let p=null;if(c[i.protocol]&&(i.username||i.password)){p=`${i.username}${i.password?":"+i.password:""}`}let h=null;let d=null;let m=null;let g=null;try{if(a){let e=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname;const t=e.indexOf("@");if(t>-1){e=e.slice(t+1)}const n=e.lastIndexOf("/");if(n>-1){d=decodeURIComponent(e.slice(0,n));if(!d){d=null}m=decodeURIComponent(e.slice(n+1))}else{m=decodeURIComponent(e)}if(m.endsWith(".git")){m=m.slice(0,-4)}if(i.hash){h=decodeURIComponent(i.hash.slice(1))}g="shortcut"}else{if(!f.protocols.includes(i.protocol)){return}const e=f.extract(i);if(!e){return}d=e.user&&decodeURIComponent(e.user);m=decodeURIComponent(e.project);h=decodeURIComponent(e.committish);g=protocolToRepresentation(i.protocol)}}catch(e){if(e instanceof URIError){return}else{throw e}}return new o(u,d,p,m,h,g,t)}const correctProtocol=e=>{const t=e.indexOf(":");const n=e.slice(0,t+1);if(f.includes(n)){return e}const i=e.indexOf("@");if(i>-1){if(i>t){return`git+ssh://${e}`}else{return e}}const s=e.indexOf("//");if(s===t+1){return e}return e.slice(0,t+1)+"//"+e.slice(t+1)};const isGitHubShorthand=e=>{const t=e.indexOf("#");const n=e.indexOf("/");const i=e.indexOf("/",n+1);const s=e.indexOf(":");const o=/\s/.exec(e);const a=e.indexOf("@");const l=!o||t>-1&&o.index>t;const u=a===-1||t>-1&&a>t;const c=s===-1||t>-1&&s>t;const f=i===-1||t>-1&&i>t;const p=n>0;const h=t>-1?e[t-1]!=="/":!e.endsWith("/");const d=!e.startsWith(".");return l&&p&&h&&d&&u&&c&&f};const correctUrl=e=>{const t=e.indexOf("@");const n=e.lastIndexOf("#");let i=e.indexOf(":");let s=e.lastIndexOf(":",n>-1?n:Infinity);let o;if(s>t){o=e.slice(0,s)+"/"+e.slice(s+1);i=o.indexOf(":");s=o.lastIndexOf(":")}if(i===-1&&e.indexOf("//")===-1){o=`git+ssh://${o}`}return o};const parseGitUrl=e=>{let t;try{t=new i.URL(e)}catch(e){}if(t){return t}const n=correctUrl(e);try{t=new i.URL(n)}catch(e){}return t}},4124:(e,t,n)=>{try{var i=n(1669);if(typeof i.inherits!=="function")throw"";e.exports=i.inherits}catch(t){e.exports=n(8544)}},8544:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},8885:(e,t)=>{t.parse=t.decode=decode;t.stringify=t.encode=encode;t.safe=safe;t.unsafe=unsafe;var n=typeof process!=="undefined"&&process.platform==="win32"?"\r\n":"\n";function encode(e,t){var i=[];var s="";if(typeof t==="string"){t={section:t,whitespace:false}}else{t=t||{};t.whitespace=t.whitespace===true}var o=t.whitespace?" = ":"=";Object.keys(e).forEach((function(t,a,l){var u=e[t];if(u&&Array.isArray(u)){u.forEach((function(e){s+=safe(t+"[]")+o+safe(e)+"\n"}))}else if(u&&typeof u==="object")i.push(t);else s+=safe(t)+o+safe(u)+n}));if(t.section&&s.length)s="["+safe(t.section)+"]"+n+s;i.forEach((function(i,o,a){var l=dotSplit(i).join("\\.");var u=(t.section?t.section+".":"")+l;var c=encode(e[i],{section:u,whitespace:t.whitespace});if(s.length&&c.length)s+=n;s+=c}));return s}function dotSplit(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")}))}function decode(e){var t={};var n=t;var i=null;var s=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;var o=e.split(/[\r\n]+/g);o.forEach((function(e,o,a){if(!e||e.match(/^\s*[;#]/))return;var l=e.match(s);if(!l)return;if(l[1]!==undefined){i=unsafe(l[1]);if(i==="__proto__"){n={};return}n=t[i]=t[i]||{};return}var u=unsafe(l[2]);if(u==="__proto__")return;var c=l[3]?unsafe(l[4]):true;switch(c){case"true":case"false":case"null":c=JSON.parse(c)}if(u.length>2&&u.slice(-2)==="[]"){u=u.substring(0,u.length-2);if(u==="__proto__")return;if(!n[u])n[u]=[];else if(!Array.isArray(n[u]))n[u]=[n[u]]}if(Array.isArray(n[u]))n[u].push(c);else n[u]=c}));Object.keys(t).filter((function(e,n,i){if(!t[e]||typeof t[e]!=="object"||Array.isArray(t[e]))return false;var s=dotSplit(e);var o=t;var a=s.pop();var l=a.replace(/\\\./g,".");s.forEach((function(e,t,n){if(e==="__proto__")return;if(!o[e]||typeof o[e]!=="object")o[e]={};o=o[e]}));if(o===t&&l===a)return false;o[l]=t[e];return true})).forEach((function(e,n,i){delete t[e]}));return t}function isQuoted(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function safe(e){return typeof e!=="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&isQuoted(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function unsafe(e,t){e=(e||"").trim();if(isQuoted(e)){if(e.charAt(0)==="'")e=e.substr(1,e.length-2);try{e=JSON.parse(e)}catch(e){}}else{var n=false;var i="";for(var s=0,o=e.length;s{"use strict";e.exports=function isArrayish(e){if(!e){return false}return e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function}},6873:(e,t,n)=>{"use strict";var i=n(6339);function specifierIncluded(e,t){var n=e.split(".");var i=t.split(" ");var s=i.length>1?i[0]:"=";var o=(i.length>1?i[1]:i[0]).split(".");for(var a=0;a<3;++a){var l=parseInt(n[a]||0,10);var u=parseInt(o[a]||0,10);if(l===u){continue}if(s==="<"){return l="){return l>=u}return false}return s===">="}function matchesRange(e,t){var n=t.split(/ ?&& ?/);if(n.length===0){return false}for(var i=0;i{"use strict";e.exports=e=>{const t=typeof e;return e!==null&&(t==="object"||t==="function")}},5586:e=>{"use strict";e.exports=parseJson;function parseJson(e,t,n){n=n||20;try{return JSON.parse(e,t)}catch(t){if(typeof e!=="string"){const t=Array.isArray(e)&&e.length===0;const n="Cannot parse "+(t?"an empty array":String(e));throw new TypeError(n)}const i=t.message.match(/^Unexpected token.*position\s+(\d+)/i);const s=i?+i[1]:t.message.match(/^Unexpected end of JSON.*/i)?e.length-1:null;if(s!=null){const i=s<=n?0:s-n;const o=s+n>=e.length?e.length:s+n;t.message+=` while parsing near '${i===0?"":"..."}${e.slice(i,o)}${o===e.length?"":"..."}'`}else{t.message+=` while parsing '${e.slice(0,n*2)}'`}throw t}}},7073:(e,t)=>{t=e.exports=stringify;t.getSerialize=serializer;function stringify(e,t,n,i){return JSON.stringify(e,serializer(t,i),n)}function serializer(e,t){var n=[],i=[];if(t==null)t=function(e,t){if(n[0]===t)return"[Circular ~]";return"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]"};return function(s,o){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this);~a?i.splice(a,Infinity,s):i.push(s);if(~n.indexOf(o))o=t.call(this,s,o)}else n.push(o);return e==null?o:e.call(this,s,o)}}},5978:(e,t,n)=>{"use strict";const i=n(5622);const s=n(7758);const o=n(8551);const a=n(1680);const l=n(3990);const parse=(e,t)=>a(o(e),i.relative(".",t));e.exports=e=>l(s.readFile)(e,"utf8").then((t=>parse(t,e)));e.exports.sync=e=>parse(s.readFileSync(e,"utf8"),e)},1680:(e,t,n)=>{"use strict";const i=n(3505);const s=n(5586);const o=i("JSONError",{fileName:i.append("in %s")});e.exports=(e,t,n)=>{if(typeof t==="string"){n=t;t=null}try{try{return JSON.parse(e,t)}catch(n){s(e,t);throw n}}catch(e){e.message=e.message.replace(/\n/g,"");const t=new o(e);if(n){t.fileName=n}throw t}}},3990:e=>{"use strict";const processFn=(e,t)=>function(){const n=t.promiseModule;const i=new Array(arguments.length);for(let e=0;e{if(t.errorFirst){i.push((function(e,i){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let n;if(typeof e==="function"){n=function(){if(t.excludeMain){return e.apply(this,arguments)}return processFn(e,t).apply(this,arguments)}}else{n=Object.create(Object.getPrototypeOf(e))}for(const i in e){const s=e[i];n[i]=typeof s==="function"&&filter(i)?processFn(s,t):s}return n}},5100:(e,t,n)=>{e=n.nmd(e);var i=200;var s="__lodash_hash_undefined__";var o=1,a=2;var l=9007199254740991;var u="[object Arguments]",c="[object Array]",f="[object Boolean]",p="[object Date]",h="[object Error]",d="[object Function]",m="[object GeneratorFunction]",g="[object Map]",y="[object Number]",v="[object Object]",b="[object Promise]",w="[object RegExp]",S="[object Set]",E="[object String]",_="[object Symbol]",O="[object WeakMap]";var R="[object ArrayBuffer]",C="[object DataView]",A="[object Float32Array]",L="[object Float64Array]",x="[object Int8Array]",I="[object Int16Array]",T="[object Int32Array]",P="[object Uint8Array]",k="[object Uint8ClampedArray]",N="[object Uint16Array]",M="[object Uint32Array]";var D=/[\\^$.*+?()[\]{}|]/g;var j=/^\[object .+?Constructor\]$/;var $=/^(?:0|[1-9]\d*)$/;var F={};F[A]=F[L]=F[x]=F[I]=F[T]=F[P]=F[k]=F[N]=F[M]=true;F[u]=F[c]=F[R]=F[f]=F[C]=F[p]=F[h]=F[d]=F[g]=F[y]=F[v]=F[w]=F[S]=F[E]=F[O]=false;var B=typeof global=="object"&&global&&global.Object===Object&&global;var U=typeof self=="object"&&self&&self.Object===Object&&self;var H=B||U||Function("return this")();var G=true&&t&&!t.nodeType&&t;var W=G&&"object"=="object"&&e&&!e.nodeType&&e;var V=W&&W.exports===G;var q=V&&B.process;var Y=function(){try{return q&&q.binding("util")}catch(e){}}();var z=Y&&Y.isTypedArray;function arraySome(e,t){var n=-1,i=e?e.length:0;while(++n-1}function listCacheSet(e,t){var n=this.__data__,i=assocIndexOf(n,e);if(i<0){n.push([e,t])}else{n[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,n=e?e.length:0;this.clear();while(++tc)){return false}var p=l.get(e);if(p&&l.get(t)){return p==t}var h=-1,d=true,m=s&o?new SetCache:undefined;l.set(e,t);l.set(t,e);while(++h-1&&e%1==0&&e-1&&e%1==0&&e<=l}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function isMatch(e,t){return e===t||baseIsMatch(e,t,getMatchData(t))}var Re=z?baseUnary(z):baseIsTypedArray;function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}e.exports=isMatch},9213:(e,t,n)=>{var i=n(9882);var s=i.Symbol;e.exports=s},9647:e=>{function apply(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=apply},2237:(e,t,n)=>{var i=n(7765),s=n(8495),o=n(4869),a=n(4190),l=n(9819),u=n(2496);var c=Object.prototype;var f=c.hasOwnProperty;function arrayLikeKeys(e,t){var n=o(e),c=!n&&s(e),p=!n&&!c&&a(e),h=!n&&!c&&!p&&u(e),d=n||c||p||h,m=d?i(e.length,String):[],g=m.length;for(var y in e){if((t||f.call(e,y))&&!(d&&(y=="length"||p&&(y=="offset"||y=="parent")||h&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||l(y,g)))){m.push(y)}}return m}e.exports=arrayLikeKeys},4356:e=>{function arrayMap(e,t){var n=-1,i=e==null?0:e.length,s=Array(i);while(++n{var i=n(3868),s=n(1901);var o=Object.prototype;var a=o.hasOwnProperty;function assignValue(e,t,n){var o=e[t];if(!(a.call(e,t)&&s(o,n))||n===undefined&&!(t in e)){i(e,t,n)}}e.exports=assignValue},3868:(e,t,n)=>{var i=n(416);function baseAssignValue(e,t,n){if(t=="__proto__"&&i){i(e,t,{configurable:true,enumerable:true,value:n,writable:true})}else{e[t]=n}}e.exports=baseAssignValue},7497:(e,t,n)=>{var i=n(9213),s=n(923),o=n(4200);var a="[object Null]",l="[object Undefined]";var u=i?i.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?l:a}return u&&u in Object(e)?s(e):o(e)}e.exports=baseGetTag},2177:(e,t,n)=>{var i=n(7497),s=n(5926);var o="[object Arguments]";function baseIsArguments(e){return s(e)&&i(e)==o}e.exports=baseIsArguments},411:(e,t,n)=>{var i=n(7799),s=n(9058),o=n(3334),a=n(6928);var l=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var c=Function.prototype,f=Object.prototype;var p=c.toString;var h=f.hasOwnProperty;var d=RegExp("^"+p.call(h).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!o(e)||s(e)){return false}var t=i(e)?d:u;return t.test(a(e))}e.exports=baseIsNative},1528:(e,t,n)=>{var i=n(7497),s=n(4530),o=n(5926);var a="[object Arguments]",l="[object Array]",u="[object Boolean]",c="[object Date]",f="[object Error]",p="[object Function]",h="[object Map]",d="[object Number]",m="[object Object]",g="[object RegExp]",y="[object Set]",v="[object String]",b="[object WeakMap]";var w="[object ArrayBuffer]",S="[object DataView]",E="[object Float32Array]",_="[object Float64Array]",O="[object Int8Array]",R="[object Int16Array]",C="[object Int32Array]",A="[object Uint8Array]",L="[object Uint8ClampedArray]",x="[object Uint16Array]",I="[object Uint32Array]";var T={};T[E]=T[_]=T[O]=T[R]=T[C]=T[A]=T[L]=T[x]=T[I]=true;T[a]=T[l]=T[w]=T[u]=T[S]=T[c]=T[f]=T[p]=T[h]=T[d]=T[m]=T[g]=T[y]=T[v]=T[b]=false;function baseIsTypedArray(e){return o(e)&&s(e.length)&&!!T[i(e)]}e.exports=baseIsTypedArray},7164:(e,t,n)=>{var i=n(10),s=n(5778);var o=Object.prototype;var a=o.hasOwnProperty;function baseKeys(e){if(!i(e)){return s(e)}var t=[];for(var n in Object(e)){if(a.call(e,n)&&n!="constructor"){t.push(n)}}return t}e.exports=baseKeys},297:(e,t,n)=>{var i=n(3334),s=n(10),o=n(5383);var a=Object.prototype;var l=a.hasOwnProperty;function baseKeysIn(e){if(!i(e)){return o(e)}var t=s(e),n=[];for(var a in e){if(!(a=="constructor"&&(t||!l.call(e,a)))){n.push(a)}}return n}e.exports=baseKeysIn},6610:e=>{function basePropertyOf(e){return function(t){return e==null?undefined:e[t]}}e.exports=basePropertyOf},2936:(e,t,n)=>{var i=n(7822),s=n(2417),o=n(8416);function baseRest(e,t){return o(s(e,t,i),e+"")}e.exports=baseRest},979:(e,t,n)=>{var i=n(5946),s=n(416),o=n(7822);var a=!s?o:function(e,t){return s(e,"toString",{configurable:true,enumerable:false,value:i(t),writable:true})};e.exports=a},7765:e=>{function baseTimes(e,t){var n=-1,i=Array(e);while(++n{var i=n(9213),s=n(4356),o=n(4869),a=n(6403);var l=1/0;var u=i?i.prototype:undefined,c=u?u.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(o(e)){return s(e,baseToString)+""}if(a(e)){return c?c.call(e):""}var t=e+"";return t=="0"&&1/e==-l?"-0":t}e.exports=baseToString},9258:e=>{function baseUnary(e){return function(t){return e(t)}}e.exports=baseUnary},5159:(e,t,n)=>{var i=n(4356);function baseValues(e,t){return i(t,(function(t){return e[t]}))}e.exports=baseValues},6388:(e,t,n)=>{var i=n(9725),s=n(3868);function copyObject(e,t,n,o){var a=!n;n||(n={});var l=-1,u=t.length;while(++l{var i=n(9882);var s=i["__core-js_shared__"];e.exports=s},1911:(e,t,n)=>{var i=n(2936),s=n(8494);function createAssigner(e){return i((function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:undefined,l=o>2?n[2]:undefined;a=e.length>3&&typeof a=="function"?(o--,a):undefined;if(l&&s(n[0],n[1],l)){a=o<3?undefined:a;o=1}t=Object(t);while(++i{var i=n(1901);var s=Object.prototype;var o=s.hasOwnProperty;function customDefaultsAssignIn(e,t,n,a){if(e===undefined||i(e,s[n])&&!o.call(a,n)){return t}return e}e.exports=customDefaultsAssignIn},416:(e,t,n)=>{var i=n(4479);var s=function(){try{var e=i(Object,"defineProperty");e({},"",{});return e}catch(e){}}();e.exports=s},1786:(e,t,n)=>{var i=n(6610);var s={"&":"&","<":"<",">":">",'"':""","'":"'"};var o=i(s);e.exports=o},4742:e=>{var t={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar(e){return"\\"+t[e]}e.exports=escapeStringChar},2085:e=>{var t=typeof global=="object"&&global&&global.Object===Object&&global;e.exports=t},4479:(e,t,n)=>{var i=n(411),s=n(3542);function getNative(e,t){var n=s(e,t);return i(n)?n:undefined}e.exports=getNative},6271:(e,t,n)=>{var i=n(6320);var s=i(Object.getPrototypeOf,Object);e.exports=s},923:(e,t,n)=>{var i=n(9213);var s=Object.prototype;var o=s.hasOwnProperty;var a=s.toString;var l=i?i.toStringTag:undefined;function getRawTag(e){var t=o.call(e,l),n=e[l];try{e[l]=undefined;var i=true}catch(e){}var s=a.call(e);if(i){if(t){e[l]=n}else{delete e[l]}}return s}e.exports=getRawTag},3542:e=>{function getValue(e,t){return e==null?undefined:e[t]}e.exports=getValue},9819:e=>{var t=9007199254740991;var n=/^(?:0|[1-9]\d*)$/;function isIndex(e,i){var s=typeof e;i=i==null?t:i;return!!i&&(s=="number"||s!="symbol"&&n.test(e))&&(e>-1&&e%1==0&&e{var i=n(1901),s=n(8017),o=n(9819),a=n(3334);function isIterateeCall(e,t,n){if(!a(n)){return false}var l=typeof t;if(l=="number"?s(n)&&o(t,n.length):l=="string"&&t in n){return i(n[t],e)}return false}e.exports=isIterateeCall},9058:(e,t,n)=>{var i=n(8380);var s=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!s&&s in e}e.exports=isMasked},10:e=>{var t=Object.prototype;function isPrototype(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||t;return e===i}e.exports=isPrototype},5778:(e,t,n)=>{var i=n(6320);var s=i(Object.keys,Object);e.exports=s},5383:e=>{function nativeKeysIn(e){var t=[];if(e!=null){for(var n in Object(e)){t.push(n)}}return t}e.exports=nativeKeysIn},4643:(e,t,n)=>{e=n.nmd(e);var i=n(2085);var s=true&&t&&!t.nodeType&&t;var o=s&&"object"=="object"&&e&&!e.nodeType&&e;var a=o&&o.exports===s;var l=a&&i.process;var u=function(){try{var e=o&&o.require&&o.require("util").types;if(e){return e}return l&&l.binding&&l.binding("util")}catch(e){}}();e.exports=u},4200:e=>{var t=Object.prototype;var n=t.toString;function objectToString(e){return n.call(e)}e.exports=objectToString},6320:e=>{function overArg(e,t){return function(n){return e(t(n))}}e.exports=overArg},2417:(e,t,n)=>{var i=n(9647);var s=Math.max;function overRest(e,t,n){t=s(t===undefined?e.length-1:t,0);return function(){var o=arguments,a=-1,l=s(o.length-t,0),u=Array(l);while(++a{var t=/<%-([\s\S]+?)%>/g;e.exports=t},1601:e=>{var t=/<%([\s\S]+?)%>/g;e.exports=t},4070:e=>{var t=/<%=([\s\S]+?)%>/g;e.exports=t},9882:(e,t,n)=>{var i=n(2085);var s=typeof self=="object"&&self&&self.Object===Object&&self;var o=i||s||Function("return this")();e.exports=o},8416:(e,t,n)=>{var i=n(979),s=n(7882);var o=s(i);e.exports=o},7882:e=>{var t=800,n=16;var i=Date.now;function shortOut(e){var s=0,o=0;return function(){var a=i(),l=n-(a-o);o=a;if(l>0){if(++s>=t){return arguments[0]}}else{s=0}return e.apply(undefined,arguments)}}e.exports=shortOut},6928:e=>{var t=Function.prototype;var n=t.toString;function toSource(e){if(e!=null){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}e.exports=toSource},9271:(e,t,n)=>{var i=n(6388),s=n(1911),o=n(9109);var a=s((function(e,t,n,s){i(t,o(t),e,s)}));e.exports=a},4025:(e,t,n)=>{var i=n(9647),s=n(2936),o=n(5411);var a=s((function(e,t){try{return i(e,undefined,t)}catch(e){return o(e)?e:new Error(e)}}));e.exports=a},5946:e=>{function constant(e){return function(){return e}}e.exports=constant},1901:e=>{function eq(e,t){return e===t||e!==e&&t!==t}e.exports=eq},2678:(e,t,n)=>{var i=n(1786),s=n(2931);var o=/[&<>"']/g,a=RegExp(o.source);function escape(e){e=s(e);return e&&a.test(e)?e.replace(o,i):e}e.exports=escape},7822:e=>{function identity(e){return e}e.exports=identity},8495:(e,t,n)=>{var i=n(2177),s=n(5926);var o=Object.prototype;var a=o.hasOwnProperty;var l=o.propertyIsEnumerable;var u=i(function(){return arguments}())?i:function(e){return s(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},4869:e=>{var t=Array.isArray;e.exports=t},8017:(e,t,n)=>{var i=n(7799),s=n(4530);function isArrayLike(e){return e!=null&&s(e.length)&&!i(e)}e.exports=isArrayLike},4190:(e,t,n)=>{e=n.nmd(e);var i=n(9882),s=n(7744);var o=true&&t&&!t.nodeType&&t;var a=o&&"object"=="object"&&e&&!e.nodeType&&e;var l=a&&a.exports===o;var u=l?i.Buffer:undefined;var c=u?u.isBuffer:undefined;var f=c||s;e.exports=f},5411:(e,t,n)=>{var i=n(7497),s=n(5926),o=n(6169);var a="[object DOMException]",l="[object Error]";function isError(e){if(!s(e)){return false}var t=i(e);return t==l||t==a||typeof e.message=="string"&&typeof e.name=="string"&&!o(e)}e.exports=isError},7799:(e,t,n)=>{var i=n(7497),s=n(3334);var o="[object AsyncFunction]",a="[object Function]",l="[object GeneratorFunction]",u="[object Proxy]";function isFunction(e){if(!s(e)){return false}var t=i(e);return t==a||t==l||t==o||t==u}e.exports=isFunction},4530:e=>{var t=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}e.exports=isLength},3334:e=>{function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}e.exports=isObject},5926:e=>{function isObjectLike(e){return e!=null&&typeof e=="object"}e.exports=isObjectLike},6169:(e,t,n)=>{var i=n(7497),s=n(6271),o=n(5926);var a="[object Object]";var l=Function.prototype,u=Object.prototype;var c=l.toString;var f=u.hasOwnProperty;var p=c.call(Object);function isPlainObject(e){if(!o(e)||i(e)!=a){return false}var t=s(e);if(t===null){return true}var n=f.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&c.call(n)==p}e.exports=isPlainObject},6403:(e,t,n)=>{var i=n(7497),s=n(5926);var o="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||s(e)&&i(e)==o}e.exports=isSymbol},2496:(e,t,n)=>{var i=n(1528),s=n(9258),o=n(4643);var a=o&&o.isTypedArray;var l=a?s(a):i;e.exports=l},7645:(e,t,n)=>{var i=n(2237),s=n(7164),o=n(8017);function keys(e){return o(e)?i(e):s(e)}e.exports=keys},9109:(e,t,n)=>{var i=n(2237),s=n(297),o=n(8017);function keysIn(e){return o(e)?i(e,true):s(e)}e.exports=keysIn},250:function(e,t,n){e=n.nmd(e); +(()=>{var __webpack_modules__={7351:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const a=o(n(2087));const l=n(5278);function issueCommand(e,t,n){const i=new Command(e,t,n);process.stdout.write(i.toString()+a.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const u="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const i=this.properties[n];if(i){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(i)}`}}}}e+=`${u}${escapeData(this.message)}`;return e}}function escapeData(e){return l.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return l.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var a=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});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 l=n(7351);const u=n(717);const c=n(5278);const f=o(n(2087));const p=o(n(5622));const h=n(8041);var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const n=c.toCommandValue(t);process.env[e]=n;const i=process.env["GITHUB_ENV"]||"";if(i){const t="_GitHubActionsFileCommandDelimeter_";const i=`${e}<<${t}${f.EOL}${n}${f.EOL}${t}`;u.issueCommand("ENV",i)}else{l.issueCommand("set-env",{name:e},n)}}t.exportVariable=exportVariable;function setSecret(e){l.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){u.issueCommand("PATH",e)}else{l.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${p.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return n}return n.trim()}t.getInput=getInput;function getMultilineInput(e,t){const n=getInput(e,t).split("\n").filter((e=>e!==""));return n}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const n=["true","True","TRUE"];const i=["false","False","FALSE"];const s=getInput(e,t);if(n.includes(s))return true;if(i.includes(s))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){process.stdout.write(f.EOL);l.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){l.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){l.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){l.issueCommand("error",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){l.issueCommand("warning",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){l.issueCommand("notice",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+f.EOL)}t.info=info;function startGroup(e){l.issue("group",e)}t.startGroup=startGroup;function endGroup(){l.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return a(this,void 0,void 0,(function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n}))}t.group=group;function saveState(e,t){l.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return a(this,void 0,void 0,(function*(){return yield h.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken},717:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const a=o(n(5747));const l=o(n(2087));const u=n(5278);function issueCommand(e,t){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!a.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}a.appendFileSync(n,`${u.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},8041:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const s=n(9925);const o=n(3702);const a=n(2186);class OidcClient{static createHttpClient(e=true,t=10){const n={allowRetries:e,maxRetries:t};return new s.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(OidcClient.getRequestToken())],n)}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 i(this,void 0,void 0,(function*(){const n=OidcClient.createHttpClient();const i=yield n.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const s=(t=i.result)===null||t===void 0?void 0:t.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const n=encodeURIComponent(e);t=`${t}&audience=${n}`}a.debug(`ID token url is ${t}`);const n=yield OidcClient.getCall(t);a.setSecret(n);return n}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},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,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var a=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const l=n(4304);const u=o(n(8159));function exec(e,t,n){return a(this,void 0,void 0,(function*(){const i=u.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const s=i[0];t=i.slice(1).concat(t||[]);const o=new u.ToolRunner(s,t,n);return o.exec()}))}t.exec=exec;function getExecOutput(e,t,n){var i,s;return a(this,void 0,void 0,(function*(){let o="";let a="";const u=new l.StringDecoder("utf8");const c=new l.StringDecoder("utf8");const f=(i=n===null||n===void 0?void 0:n.listeners)===null||i===void 0?void 0:i.stdout;const p=(s=n===null||n===void 0?void 0:n.listeners)===null||s===void 0?void 0:s.stderr;const stdErrListener=e=>{a+=c.write(e);if(p){p(e)}};const stdOutListener=e=>{o+=u.write(e);if(f){f(e)}};const h=Object.assign(Object.assign({},n===null||n===void 0?void 0:n.listeners),{stdout:stdOutListener,stderr:stdErrListener});const d=yield exec(e,t,Object.assign(Object.assign({},n),{listeners:h}));o+=u.end();a+=c.end();return{exitCode:d,stdout:o,stderr:a}}))}t.getExecOutput=getExecOutput},8159:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var a=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const l=o(n(2087));const u=o(n(8614));const c=o(n(3129));const f=o(n(5622));const p=o(n(7436));const h=o(n(1962));const d=n(8213);const m=process.platform==="win32";class ToolRunner extends u.EventEmitter{constructor(e,t,n){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=n||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const n=this._getSpawnFileName();const i=this._getSpawnArgs(e);let s=t?"":"[command]";if(m){if(this._isCmdFile()){s+=n;for(const e of i){s+=` ${e}`}}else if(e.windowsVerbatimArguments){s+=`"${n}"`;for(const e of i){s+=` ${e}`}}else{s+=this._windowsQuoteCmdArg(n);for(const e of i){s+=` ${this._windowsQuoteCmdArg(e)}`}}}else{s+=n;for(const e of i){s+=` ${e}`}}return s}_processLineBuffer(e,t,n){try{let i=t+e.toString();let s=i.indexOf(l.EOL);while(s>-1){const e=i.substring(0,s);n(e);i=i.substring(s+l.EOL.length);s=i.indexOf(l.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(m){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(m){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const n of this.args){t+=" ";t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n)}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 n=false;for(const i of e){if(t.some((e=>e===i))){n=true;break}}if(!n){return e}let i='"';let s=true;for(let t=e.length;t>0;t--){i+=e[t-1];if(s&&e[t-1]==="\\"){i+="\\"}else if(e[t-1]==='"'){s=true;i+='"'}else{s=false}}i+='"';return i.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 n=true;for(let i=e.length;i>0;i--){t+=e[i-1];if(n&&e[i-1]==="\\"){t+="\\"}else if(e[i-1]==='"'){n=true;t+="\\"}else{n=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 n={};n.cwd=e.cwd;n.env=e.env;n["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){n.argv0=`"${t}"`}return n}exec(){return a(this,void 0,void 0,(function*(){if(!h.isRooted(this.toolPath)&&(this.toolPath.includes("/")||m&&this.toolPath.includes("\\"))){this.toolPath=f.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield p.which(this.toolPath,true);return new Promise(((e,t)=>a(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 n=this._cloneExecOptions(this.options);if(!n.silent&&n.outStream){n.outStream.write(this._getCommandString(n)+l.EOL)}const i=new ExecState(n,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield h.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const s=this._getSpawnFileName();const o=c.spawn(s,this._getSpawnArgs(n),this._getSpawnOptions(this.options,s));let a="";if(o.stdout){o.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!n.silent&&n.outStream){n.outStream.write(e)}a=this._processLineBuffer(e,a,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let u="";if(o.stderr){o.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!n.silent&&n.errStream&&n.outStream){const t=n.failOnStdErr?n.errStream:n.outStream;t.write(e)}u=this._processLineBuffer(e,u,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}o.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));o.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));o.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((n,i)=>{if(a.length>0){this.emit("stdline",a)}if(u.length>0){this.emit("errline",u)}o.removeAllListeners();if(n){t(n)}else{e(i)}}));if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let n=false;let i=false;let s="";function append(e){if(i&&e!=='"'){s+="\\"}s+=e;i=false}for(let o=0;o0){t.push(s);s=""}continue}append(a)}if(s.length>0){t.push(s.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends u.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()}}},3702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,n){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,n){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,n){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=n(8605);const s=n(7211);const o=n(6443);let a;var l;(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"})(l=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var c;(function(e){e["ApplicationJson"]="application/json"})(c=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const f=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect];const p=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout];const h=["OPTIONS","GET","DELETE","HEAD"];const d=10;const m=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 new Promise((async(e,t)=>{let n=Buffer.alloc(0);this.message.on("data",(e=>{n=Buffer.concat([n,e])}));this.message.on("end",(()=>{e(n.toString())}))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,n){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=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,i){return this.request(e,t,n,i)}async getJson(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,c.ApplicationJson);let n=await this.get(e,t);return this._processResponse(n,this.requestOptions)}async postJson(e,t,n={}){let i=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,c.ApplicationJson);n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,c.ApplicationJson);let s=await this.post(e,i,n);return this._processResponse(s,this.requestOptions)}async putJson(e,t,n={}){let i=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,c.ApplicationJson);n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,c.ApplicationJson);let s=await this.put(e,i,n);return this._processResponse(s,this.requestOptions)}async patchJson(e,t,n={}){let i=JSON.stringify(t,null,2);n[u.Accept]=this._getExistingOrDefaultHeader(n,u.Accept,c.ApplicationJson);n[u.ContentType]=this._getExistingOrDefaultHeader(n,u.ContentType,c.ApplicationJson);let s=await this.patch(e,i,n);return this._processResponse(s,this.requestOptions)}async request(e,t,n,i){if(this._disposed){throw new Error("Client has already been disposed.")}let s=new URL(t);let o=this._prepareRequest(e,s,i);let a=this._allowRetries&&h.indexOf(e)!=-1?this._maxRetries+1:1;let u=0;let c;while(u0){const a=c.message.headers["location"];if(!a){break}let l=new URL(a);if(s.protocol=="https:"&&s.protocol!=l.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.")}await c.readBody();if(l.hostname!==s.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}o=this._prepareRequest(e,l,i);c=await this.requestRaw(o,n);t--}if(p.indexOf(c.message.statusCode)==-1){return c}u+=1;if(u{let callbackForResult=function(e,t){if(e){i(e)}n(t)};this.requestRawWithCallback(e,t,callbackForResult)}))}requestRawWithCallback(e,t,n){let i;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let s=false;let handleResult=(e,t)=>{if(!s){s=true;n(e,t)}};let o=e.httpModule.request(e.options,(e=>{let t=new HttpClientResponse(e);handleResult(null,t)}));o.on("socket",(e=>{i=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));o.on("error",(function(e){handleResult(e,null)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,n){const o={};o.parsedUrl=t;const a=o.parsedUrl.protocol==="https:";o.httpModule=a?s:i;const l=a?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):l;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(o.options)}))}return o}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||i||n}_getAgent(e){let t;let l=o.getProxyUrl(e);let u=l&&l.hostname;if(this._keepAlive&&u){t=this._proxyAgent}if(this._keepAlive&&!u){t=this._agent}if(!!t){return t}const c=e.protocol==="https:";let f=100;if(!!this.requestOptions){f=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(u){if(!a){a=n(4294)}const e={maxSockets:f,keepAlive:this._keepAlive,proxy:{...(l.username||l.password)&&{proxyAuth:`${l.username}:${l.password}`},host:l.hostname,port:l.port}};let i;const s=l.protocol==="https:";if(c){i=s?a.httpsOverHttps:a.httpsOverHttp}else{i=s?a.httpOverHttps:a.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:f};t=c?new s.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=c?s.globalAgent:i.globalAgent}if(c&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(d,e);const t=m*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise((async(n,i)=>{const s=e.message.statusCode;const o={statusCode:s,result:null,headers:{}};if(s==l.NotFound){n(o)}let a;let u;try{u=await e.readBody();if(u&&u.length>0){if(t&&t.deserializeDates){a=JSON.parse(u,HttpClient.dateTimeDeserializer)}else{a=JSON.parse(u)}o.result=a}o.headers=e.message.headers}catch(e){}if(s>299){let e;if(a&&a.message){e=a.message}else if(u&&u.length>0){e=u}else{e="Failed request: ("+s+")"}let t=new HttpClientError(e,s);t.result=o.result;i(t)}else{n(o)}}))}}t.HttpClient=HttpClient},6443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getProxyUrl(e){let t=e.protocol==="https:";let n;if(checkBypass(e)){return n}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){n=new URL(i)}return n}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){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}let i=[e.hostname.toUpperCase()];if(typeof n==="number"){i.push(`${i[0]}:${n}`)}for(let e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(i.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var a=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var l;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const u=o(n(5747));const c=o(n(5622));l=u.promises,t.chmod=l.chmod,t.copyFile=l.copyFile,t.lstat=l.lstat,t.mkdir=l.mkdir,t.readdir=l.readdir,t.readlink=l.readlink,t.rename=l.rename,t.rmdir=l.rmdir,t.stat=l.stat,t.symlink=l.symlink,t.unlink=l.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return a(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,n=false){return a(this,void 0,void 0,(function*(){const i=n?yield t.stat(e):yield t.lstat(e);return i.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,n){return a(this,void 0,void 0,(function*(){let i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){const t=c.extname(e).toUpperCase();if(n.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(i)){return e}}}const s=e;for(const o of n){e=s+o;i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){try{const n=c.dirname(e);const i=c.basename(e).toUpperCase();for(const s of yield t.readdir(n)){if(i===s.toUpperCase()){e=c.join(n,s);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(i)){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,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var a=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){s(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.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 l=n(2357);const u=o(n(3129));const c=o(n(5622));const f=n(1669);const p=o(n(1962));const h=f.promisify(u.exec);const d=f.promisify(u.execFile);function cp(e,t,n={}){return a(this,void 0,void 0,(function*(){const{force:i,recursive:s,copySourceDirectory:o}=readCopyOptions(n);const a=(yield p.exists(t))?yield p.stat(t):null;if(a&&a.isFile()&&!i){return}const l=a&&a.isDirectory()&&o?c.join(t,c.basename(e)):t;if(!(yield p.exists(e))){throw new Error(`no such file or directory: ${e}`)}const u=yield p.stat(e);if(u.isDirectory()){if(!s){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,l,0,i)}}else{if(c.relative(e,l)===""){throw new Error(`'${l}' and '${e}' are the same file`)}yield copyFile(e,l,i)}}))}t.cp=cp;function mv(e,t,n={}){return a(this,void 0,void 0,(function*(){if(yield p.exists(t)){let i=true;if(yield p.isDirectory(t)){t=c.join(t,c.basename(e));i=yield p.exists(t)}if(i){if(n.force==null||n.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(c.dirname(t));yield p.rename(e,t)}))}t.mv=mv;function rmRF(e){return a(this,void 0,void 0,(function*(){if(p.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=p.getCmdPath();if(yield p.isDirectory(e,true)){yield h(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield h(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield p.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield p.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield d(`rm`,[`-rf`,`${e}`])}else{yield p.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return a(this,void 0,void 0,(function*(){l.ok(e,"a path argument must be provided");yield p.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return a(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(p.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 n=yield findInPath(e);if(n&&n.length>0){return n[0]}return""}))}t.which=which;function findInPath(e){return a(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(p.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(c.delimiter)){if(e){t.push(e)}}}if(p.isRooted(e)){const n=yield p.tryGetExecutablePath(e,t);if(n){return[n]}return[]}if(e.includes(c.sep)){return[]}const n=[];if(process.env.PATH){for(const e of process.env.PATH.split(c.delimiter)){if(e){n.push(e)}}}const i=[];for(const s of n){const n=yield p.tryGetExecutablePath(c.join(s,e),t);if(n){i.push(n)}}return i}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const n=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:n,copySourceDirectory:i}}function cpDirRecursive(e,t,n,i){return a(this,void 0,void 0,(function*(){if(n>=255)return;n++;yield mkdirP(t);const s=yield p.readdir(e);for(const o of s){const s=`${e}/${o}`;const a=`${t}/${o}`;const l=yield p.lstat(s);if(l.isDirectory()){yield cpDirRecursive(s,a,n,i)}else{yield copyFile(s,a,i)}}yield p.chmod(t,(yield p.stat(e)).mode)}))}function copyFile(e,t,n){return a(this,void 0,void 0,(function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t);yield p.unlink(t)}catch(e){if(e.code==="EPERM"){yield p.chmod(t,"0666");yield p.unlink(t)}}const n=yield p.readlink(e);yield p.symlink(n,t,p.IS_WINDOWS?"junction":null)}else if(!(yield p.exists(t))||n){yield p.copyFile(e,t)}}))}},922:(e,t,n)=>{"use strict";const{parse:i}=n(8835);const s=new RegExp(/^\/?:?([/\w-.]+)\/([\w-.]+)\/?$/);const o=new RegExp(/^\/repos\/([\w-.]+)\/([\w-.]+)\/(?:tarball|zipball)(?:\/.+)?$/);const a=new RegExp(/^\/([\w-.]+)\/([\w-.]+)\/(?:legacy\.(?:zip|tar\.gz))(?:\/.+)?$/);e.exports=e=>{const t=e.replace(/^git@/,`https://git@`).replace(/\.git$/,``);const n=i(t);const format=e=>({browse:createBrowseURL(n,e),domain:n.host,project:e[2]||null,type:getType(n),user:e[1]||null});if(n.host){if(n.host.includes(`api.github.com`)){const e=o.exec(n.pathname)||[];return format(e)}if(n.host.includes(`codeload.github.com`)){const e=a.exec(n.pathname)||[];return format(e)}}return format(s.exec(n.pathname)||[])};function getType(e){if(typeof e.host!==`string`){return null}if(e.host.indexOf(`github`)!==-1){return"github"}if(e.host.indexOf(`gitlab`)!==-1){return"gitlab"}return null}function createBrowseURL(e,t){const n=e.protocol===`http:`?`http:`:`https:`;const i=`${n}//${e.host}/${t[1]}/${t[2]}`;return()=>i}},1374:(e,t,n)=>{"use strict";const i=n(2033);const s=global.Date;class Date extends s{constructor(e){super(e);this.isDate=true}toISOString(){return`${this.getUTCFullYear()}-${i(2,this.getUTCMonth()+1)}-${i(2,this.getUTCDate())}`}}e.exports=e=>{const t=new Date(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},5606:(e,t,n)=>{"use strict";const i=n(2033);class FloatingDateTime extends Date{constructor(e){super(e+"Z");this.isFloating=true}toISOString(){const e=`${this.getUTCFullYear()}-${i(2,this.getUTCMonth()+1)}-${i(2,this.getUTCDate())}`;const t=`${i(2,this.getUTCHours())}:${i(2,this.getUTCMinutes())}:${i(2,this.getUTCSeconds())}.${i(3,this.getUTCMilliseconds())}`;return`${e}T${t}`}}e.exports=e=>{const t=new FloatingDateTime(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},3173:e=>{"use strict";e.exports=e=>{const t=new Date(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},5484:(e,t,n)=>{"use strict";const i=n(2033);class Time extends Date{constructor(e){super(`0000-01-01T${e}Z`);this.isTime=true}toISOString(){return`${i(2,this.getUTCHours())}:${i(2,this.getUTCMinutes())}:${i(2,this.getUTCSeconds())}.${i(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new Time(e);if(isNaN(t)){throw new TypeError("Invalid Datetime")}else{return t}}},2033:e=>{"use strict";e.exports=(e,t)=>{t=String(t);while(t.length{"use strict";const t=1114112;class ParserError extends Error{constructor(e,t,n){super("[ParserError] "+e,t,n);this.name="ParserError";this.code="ParserError";if(Error.captureStackTrace)Error.captureStackTrace(this,ParserError)}}class State{constructor(e){this.parser=e;this.buf="";this.returned=null;this.result=null;this.resultTable=null;this.resultArr=null}}class Parser{constructor(){this.pos=0;this.col=0;this.line=0;this.obj={};this.ctx=this.obj;this.stack=[];this._buf="";this.char=null;this.ii=0;this.state=new State(this.parseStart)}parse(e){if(e.length===0||e.length==null)return;this._buf=String(e);this.ii=-1;this.char=-1;let t;while(t===false||this.nextChar()){t=this.runOne()}this._buf=null}nextChar(){if(this.char===10){++this.line;this.col=-1}++this.ii;this.char=this._buf.codePointAt(this.ii);++this.pos;++this.col;return this.haveBuffer()}haveBuffer(){return this.ii{"use strict";module.exports=makeParserClass(__nccwpck_require__(9137));module.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(e){super(e);this.name="TomlError";if(Error.captureStackTrace)Error.captureStackTrace(this,TomlError);this.fromTOML=true;this.wrapped=null}}TomlError.wrap=e=>{const t=new TomlError(e.message);t.code=e.code;t.wrapped=e;return t};module.exports.TomlError=TomlError;const createDateTime=__nccwpck_require__(3173);const createDateTimeFloat=__nccwpck_require__(5606);const createDate=__nccwpck_require__(1374);const createTime=__nccwpck_require__(5484);const CTRL_I=9;const CTRL_J=10;const CTRL_M=13;const CTRL_CHAR_BOUNDARY=31;const CHAR_SP=32;const CHAR_QUOT=34;const CHAR_NUM=35;const CHAR_APOS=39;const CHAR_PLUS=43;const CHAR_COMMA=44;const CHAR_HYPHEN=45;const CHAR_PERIOD=46;const CHAR_0=48;const CHAR_1=49;const CHAR_7=55;const CHAR_9=57;const CHAR_COLON=58;const CHAR_EQUALS=61;const CHAR_A=65;const CHAR_E=69;const CHAR_F=70;const CHAR_T=84;const CHAR_U=85;const CHAR_Z=90;const CHAR_LOWBAR=95;const CHAR_a=97;const CHAR_b=98;const CHAR_e=101;const CHAR_f=102;const CHAR_i=105;const CHAR_l=108;const CHAR_n=110;const CHAR_o=111;const CHAR_r=114;const CHAR_s=115;const CHAR_t=116;const CHAR_u=117;const CHAR_x=120;const CHAR_z=122;const CHAR_LCUB=123;const CHAR_RCUB=125;const CHAR_LSQB=91;const CHAR_BSOL=92;const CHAR_RSQB=93;const CHAR_DEL=127;const SURROGATE_FIRST=55296;const SURROGATE_LAST=57343;const escapes={[CHAR_b]:"\b",[CHAR_t]:"\t",[CHAR_n]:"\n",[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}const _type=Symbol("type");const _declared=Symbol("declared");const hasOwnProperty=Object.prototype.hasOwnProperty;const defineProperty=Object.defineProperty;const descriptor={configurable:true,enumerable:true,writable:true,value:undefined};function hasKey(e,t){if(hasOwnProperty.call(e,t))return true;if(t==="__proto__")defineProperty(e,"__proto__",descriptor);return false}const INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){if(e===null||typeof e!=="object")return false;return e[_type]===INLINE_TABLE}const TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:false,writable:true}})}function isTable(e){if(e===null||typeof e!=="object")return false;return e[_type]===TABLE}const _contentType=Symbol("content-type");const INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){if(e===null||typeof e!=="object")return false;return e[_type]===INLINE_LIST}const LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){if(e===null||typeof e!=="object")return false;return e[_type]===LIST}let _custom;try{const utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}const _inspect=_custom||"inspect";class BoxedBigInt{constructor(e){try{this.value=global.BigInt.asIntN(64,e)}catch(e){this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}}const INTEGER=Symbol("integer");function Integer(e){let t=Number(e);if(Object.is(t,-0))t=0;if(global.BigInt&&!Number.isSafeInteger(t)){return new BoxedBigInt(e)}else{return Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}}function isInteger(e){if(e===null||typeof e!=="object")return false;return e[_type]===INTEGER}const FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){if(e===null||typeof e!=="object")return false;return e[_type]===FLOAT}function tomlType(e){const t=typeof e;if(t==="object"){if(e===null)return"null";if(e instanceof Date)return"datetime";if(_type in e){switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}}return t}function makeParserClass(e){class TOMLParser extends e{constructor(){super();this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END){return null}else if(this.char===CHAR_LSQB){return this.call(this.parseTableOrList)}else if(this.char===CHAR_NUM){return this.call(this.parseComment)}else if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M){return null}else if(isAlphaNumQuoteHyphen(this.char)){return this.callNow(this.parseAssignStatement)}else{throw this.error(new TomlError(`Unknown character "${this.char}"`))}}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M){return null}else if(this.char===CHAR_NUM){return this.goto(this.parseComment)}else if(this.char===e.END||this.char===CTRL_J){return this.return()}else{throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(e){let t=this.ctx;let n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared])){throw this.error(new TomlError("Can't redefine existing key"))}t=t[n]=t[n]||Table()}if(hasKey(t,n)){throw this.error(new TomlError("Can't redefine existing key"))}if(isInteger(e.value)||isFloat(e.value)){t[n]=e.value.valueOf()}else{t[n]=e.value}return this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(e){if(this.state.resultTable){this.state.resultTable.push(e)}else{this.state.resultTable=[e]}return this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD){return this.next(this.parseAssignKeywordPostDot)}else if(this.char!==CHAR_SP&&this.char!==CTRL_I){return this.goto(this.parseAssignEqual)}}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}}parseAssignEqual(){if(this.char===CHAR_EQUALS){return this.next(this.parseAssignPreValue)}else{throw this.error(new TomlError('Invalid character, expected "="'))}}parseAssignPreValue(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else{return this.callNow(this.parseValue,this.recordAssignValue)}}recordAssignValue(e){return this.returnNow({key:this.state.resultTable,value:e})}parseComment(){do{if(this.char===e.END||this.char===CTRL_J){return this.return()}}while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB){this.next(this.parseList)}else{return this.goto(this.parseTable)}}parseTable(){this.ctx=this.obj;return this.goto(this.parseTableNext)}parseTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else{return this.callNow(this.parseKeyword,this.parseTableMore)}}parseTableMore(e){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)&&(!isTable(this.ctx[e])||this.ctx[e][_declared])){throw this.error(new TomlError("Can't redefine existing key"))}else{this.ctx=this.ctx[e]=this.ctx[e]||Table();this.ctx[_declared]=true}return this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,e)){this.ctx=this.ctx[e]=Table()}else if(isTable(this.ctx[e])){this.ctx=this.ctx[e]}else if(isList(this.ctx[e])){this.ctx=this.ctx[e][this.ctx[e].length-1]}else{throw this.error(new TomlError("Can't redefine existing key"))}return this.next(this.parseTableNext)}else{throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}}parseList(){this.ctx=this.obj;return this.goto(this.parseListNext)}parseListNext(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else{return this.callNow(this.parseKeyword,this.parseListMore)}}parseListMore(e){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===CHAR_RSQB){if(!hasKey(this.ctx,e)){this.ctx[e]=List()}if(isInlineList(this.ctx[e])){throw this.error(new TomlError("Can't extend an inline array"))}else if(isList(this.ctx[e])){const t=Table();this.ctx[e].push(t);this.ctx=t}else{throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,e)){this.ctx=this.ctx[e]=Table()}else if(isInlineList(this.ctx[e])){throw this.error(new TomlError("Can't extend an inline array"))}else if(isInlineTable(this.ctx[e])){throw this.error(new TomlError("Can't extend an inline table"))}else if(isList(this.ctx[e])){this.ctx=this.ctx[e][this.ctx[e].length-1]}else if(isTable(this.ctx[e])){this.ctx=this.ctx[e]}else{throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListNext)}else{throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}}parseListEnd(e){if(this.char===CHAR_RSQB){return this.next(this.parseWhitespaceToEOL)}else{throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}}parseValue(){if(this.char===e.END){throw this.error(new TomlError("Key without value"))}else if(this.char===CHAR_QUOT){return this.next(this.parseDoubleString)}if(this.char===CHAR_APOS){return this.next(this.parseSingleString)}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){return this.goto(this.parseNumberSign)}else if(this.char===CHAR_i){return this.next(this.parseInf)}else if(this.char===CHAR_n){return this.next(this.parseNan)}else if(isDigit(this.char)){return this.goto(this.parseNumberOrDateTime)}else if(this.char===CHAR_t||this.char===CHAR_f){return this.goto(this.parseBoolean)}else if(this.char===CHAR_LSQB){return this.call(this.parseInlineList,this.recordValue)}else if(this.char===CHAR_LCUB){return this.call(this.parseInlineTable,this.recordValue)}else{throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}}recordValue(e){return this.returnNow(e)}parseInf(){if(this.char===CHAR_n){return this.next(this.parseInf2)}else{throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}}parseInf2(){if(this.char===CHAR_f){if(this.state.buf==="-"){return this.return(-Infinity)}else{return this.return(Infinity)}}else{throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}}parseNan(){if(this.char===CHAR_a){return this.next(this.parseNan2)}else{throw this.error(new TomlError('Unexpected character, expected "nan"'))}}parseNan2(){if(this.char===CHAR_n){return this.return(NaN)}else{throw this.error(new TomlError('Unexpected character, expected "nan"'))}}parseKeyword(){if(this.char===CHAR_QUOT){return this.next(this.parseBasicString)}else if(this.char===CHAR_APOS){return this.next(this.parseLiteralString)}else{return this.goto(this.parseBareKey)}}parseBareKey(){do{if(this.char===e.END){throw this.error(new TomlError("Key ended without value"))}else if(isAlphaNumHyphen(this.char)){this.consume()}else if(this.state.buf.length===0){throw this.error(new TomlError("Empty bare keys are not allowed"))}else{return this.returnNow()}}while(this.nextChar())}parseSingleString(){if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiStringMaybe)}else{return this.goto(this.parseLiteralString)}}parseLiteralString(){do{if(this.char===CHAR_APOS){return this.return()}else if(this.atEndOfLine()){throw this.error(new TomlError("Unterminated string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}parseLiteralMultiStringMaybe(){if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiString)}else{return this.returnNow()}}parseLiteralMultiString(){if(this.char===CTRL_M){return null}else if(this.char===CTRL_J){return this.next(this.parseLiteralMultiStringContent)}else{return this.goto(this.parseLiteralMultiStringContent)}}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiEnd)}else if(this.char===e.END){throw this.error(new TomlError("Unterminated multi-line string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}parseLiteralMultiEnd(){if(this.char===CHAR_APOS){return this.next(this.parseLiteralMultiEnd2)}else{this.state.buf+="'";return this.goto(this.parseLiteralMultiStringContent)}}parseLiteralMultiEnd2(){if(this.char===CHAR_APOS){return this.return()}else{this.state.buf+="''";return this.goto(this.parseLiteralMultiStringContent)}}parseDoubleString(){if(this.char===CHAR_QUOT){return this.next(this.parseMultiStringMaybe)}else{return this.goto(this.parseBasicString)}}parseBasicString(){do{if(this.char===CHAR_BSOL){return this.call(this.parseEscape,this.recordEscapeReplacement)}else if(this.char===CHAR_QUOT){return this.return()}else if(this.atEndOfLine()){throw this.error(new TomlError("Unterminated string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}recordEscapeReplacement(e){this.state.buf+=e;return this.goto(this.parseBasicString)}parseMultiStringMaybe(){if(this.char===CHAR_QUOT){return this.next(this.parseMultiString)}else{return this.returnNow()}}parseMultiString(){if(this.char===CTRL_M){return null}else if(this.char===CTRL_J){return this.next(this.parseMultiStringContent)}else{return this.goto(this.parseMultiStringContent)}}parseMultiStringContent(){do{if(this.char===CHAR_BSOL){return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement)}else if(this.char===CHAR_QUOT){return this.next(this.parseMultiEnd)}else if(this.char===e.END){throw this.error(new TomlError("Unterminated multi-line string"))}else if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M){throw this.errorControlCharInString()}else{this.consume()}}while(this.nextChar())}errorControlCharInString(){let e="\\u00";if(this.char<16){e+="0"}e+=this.char.toString(16);return this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${e} instead`))}recordMultiEscapeReplacement(e){this.state.buf+=e;return this.goto(this.parseMultiStringContent)}parseMultiEnd(){if(this.char===CHAR_QUOT){return this.next(this.parseMultiEnd2)}else{this.state.buf+='"';return this.goto(this.parseMultiStringContent)}}parseMultiEnd2(){if(this.char===CHAR_QUOT){return this.return()}else{this.state.buf+='""';return this.goto(this.parseMultiStringContent)}}parseMultiEscape(){if(this.char===CTRL_M||this.char===CTRL_J){return this.next(this.parseMultiTrim)}else if(this.char===CHAR_SP||this.char===CTRL_I){return this.next(this.parsePreMultiTrim)}else{return this.goto(this.parseEscape)}}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===CTRL_M||this.char===CTRL_J){return this.next(this.parseMultiTrim)}else{throw this.error(new TomlError("Can't escape whitespace"))}}parseMultiTrim(){if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M){return null}else{return this.returnNow()}}parseEscape(){if(this.char in escapes){return this.return(escapes[this.char])}else if(this.char===CHAR_u){return this.call(this.parseSmallUnicode,this.parseUnicodeReturn)}else if(this.char===CHAR_U){return this.call(this.parseLargeUnicode,this.parseUnicodeReturn)}else{throw this.error(new TomlError("Unknown escape character: "+this.char))}}parseUnicodeReturn(e){try{const t=parseInt(e,16);if(t>=SURROGATE_FIRST&&t<=SURROGATE_LAST){throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"))}return this.returnNow(String.fromCodePoint(t))}catch(e){throw this.error(TomlError.wrap(e))}}parseSmallUnicode(){if(!isHexit(this.char)){throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}else{this.consume();if(this.state.buf.length>=4)return this.return()}}parseLargeUnicode(){if(!isHexit(this.char)){throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}else{this.consume();if(this.state.buf.length>=8)return this.return()}}parseNumberSign(){this.consume();return this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){if(this.char===CHAR_i){return this.next(this.parseInf)}else if(this.char===CHAR_n){return this.next(this.parseNan)}else{return this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}}parseNumberIntegerStart(){if(this.char===CHAR_0){this.consume();return this.next(this.parseNumberIntegerExponentOrDecimal)}else{return this.goto(this.parseNumberInteger)}}parseNumberIntegerExponentOrDecimal(){if(this.char===CHAR_PERIOD){this.consume();return this.call(this.parseNoUnder,this.parseNumberFloat)}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else{return this.returnNow(Integer(this.state.buf))}}parseNumberInteger(){if(isDigit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder)}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else if(this.char===CHAR_PERIOD){this.consume();return this.call(this.parseNoUnder,this.parseNumberFloat)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e){throw this.error(new TomlError("Unexpected character, expected digit"))}else if(this.atEndOfWord()){throw this.error(new TomlError("Incomplete number"))}return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD){throw this.error(new TomlError("Unexpected character, expected digit"))}else if(this.atEndOfWord()){throw this.error(new TomlError("Incomplete number"))}return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder,this.parseNumberFloat)}else if(isDigit(this.char)){this.consume()}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else{return this.returnNow(Float(this.state.buf))}}parseNumberExponentSign(){if(isDigit(this.char)){return this.goto(this.parseNumberExponent)}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){this.consume();this.call(this.parseNoUnder,this.parseNumberExponent)}else{throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}}parseNumberExponent(){if(isDigit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder)}else{return this.returnNow(Float(this.state.buf))}}parseNumberOrDateTime(){if(this.char===CHAR_0){this.consume();return this.next(this.parseNumberBaseOrDateTime)}else{return this.goto(this.parseNumberOrDateTimeOnly)}}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnder,this.parseNumberInteger)}else if(isDigit(this.char)){this.consume();if(this.state.buf.length>4)this.next(this.parseNumberInteger)}else if(this.char===CHAR_E||this.char===CHAR_e){this.consume();return this.next(this.parseNumberExponentSign)}else if(this.char===CHAR_PERIOD){this.consume();return this.call(this.parseNoUnder,this.parseNumberFloat)}else if(this.char===CHAR_HYPHEN){return this.goto(this.parseDateTime)}else if(this.char===CHAR_COLON){return this.goto(this.parseOnlyTimeHour)}else{return this.returnNow(Integer(this.state.buf))}}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char)){return this.consume()}else if(this.char===CHAR_COLON){return this.goto(this.parseOnlyTimeHour)}else{throw this.error(new TomlError("Expected digit while parsing year part of a date"))}}else{if(this.char===CHAR_HYPHEN){return this.goto(this.parseDateTime)}else{throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}}}parseNumberBaseOrDateTime(){if(this.char===CHAR_b){this.consume();return this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)}else if(this.char===CHAR_o){this.consume();return this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)}else if(this.char===CHAR_x){this.consume();return this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)}else if(this.char===CHAR_PERIOD){return this.goto(this.parseNumberInteger)}else if(isDigit(this.char)){return this.goto(this.parseDateTimeOnly)}else{return this.returnNow(Integer(this.state.buf))}}parseIntegerHex(){if(isHexit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnderHexOctBinLiteral)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseIntegerOct(){if(isOctit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnderHexOctBinLiteral)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseIntegerBin(){if(isBit(this.char)){this.consume()}else if(this.char===CHAR_LOWBAR){return this.call(this.parseNoUnderHexOctBinLiteral)}else{const e=Integer(this.state.buf);if(e.isNaN()){throw this.error(new TomlError("Invalid number"))}else{return this.returnNow(e)}}}parseDateTime(){if(this.state.buf.length<4){throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"))}this.state.result=this.state.buf;this.state.buf="";return this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2){throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"))}this.state.result+="-"+this.state.buf;this.state.buf="";return this.next(this.parseDateDay)}else if(isDigit(this.char)){this.consume()}else{throw this.error(new TomlError("Incomplete datetime"))}}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2){throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"))}this.state.result+="-"+this.state.buf;this.state.buf="";return this.next(this.parseStartTimeHour)}else if(this.atEndOfWord()){return this.returnNow(createDate(this.state.result+"-"+this.state.buf))}else if(isDigit(this.char)){this.consume()}else{throw this.error(new TomlError("Incomplete datetime"))}}parseStartTimeHour(){if(this.atEndOfWord()){return this.returnNow(createDate(this.state.result))}else{return this.goto(this.parseTimeHour)}}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2){throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"))}this.state.result+="T"+this.state.buf;this.state.buf="";return this.next(this.parseTimeMin)}else if(isDigit(this.char)){this.consume()}else{throw this.error(new TomlError("Incomplete datetime"))}}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char)){this.consume()}else if(this.state.buf.length===2&&this.char===CHAR_COLON){this.state.result+=":"+this.state.buf;this.state.buf="";return this.next(this.parseTimeSec)}else{throw this.error(new TomlError("Incomplete datetime"))}}parseTimeSec(){if(isDigit(this.char)){this.consume();if(this.state.buf.length===2){this.state.result+=":"+this.state.buf;this.state.buf="";return this.next(this.parseTimeZoneOrFraction)}}else{throw this.error(new TomlError("Incomplete datetime"))}}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2){throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"))}this.state.result=this.state.buf;this.state.buf="";return this.next(this.parseOnlyTimeMin)}else{throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char)){this.consume()}else if(this.state.buf.length===2&&this.char===CHAR_COLON){this.state.result+=":"+this.state.buf;this.state.buf="";return this.next(this.parseOnlyTimeSec)}else{throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeSec(){if(isDigit(this.char)){this.consume();if(this.state.buf.length===2){return this.next(this.parseOnlyTimeFractionMaybe)}}else{throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeFractionMaybe(){this.state.result+=":"+this.state.buf;if(this.char===CHAR_PERIOD){this.state.buf="";this.next(this.parseOnlyTimeFraction)}else{return this.return(createTime(this.state.result))}}parseOnlyTimeFraction(){if(isDigit(this.char)){this.consume()}else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD){this.consume();this.next(this.parseDateTimeFraction)}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){this.consume();this.next(this.parseTimeZoneHour)}else if(this.char===CHAR_Z){this.consume();return this.return(createDateTime(this.state.result+this.state.buf))}else if(this.atEndOfWord()){return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(isDigit(this.char)){this.consume()}else if(this.state.buf.length===1){throw this.error(new TomlError("Expected digit in milliseconds"))}else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS){this.consume();this.next(this.parseTimeZoneHour)}else if(this.char===CHAR_Z){this.consume();return this.return(createDateTime(this.state.result+this.state.buf))}else if(this.atEndOfWord()){return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseTimeZoneHour(){if(isDigit(this.char)){this.consume();if(/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else{throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}}parseTimeZoneSep(){if(this.char===CHAR_COLON){this.consume();this.next(this.parseTimeZoneMin)}else{throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}}parseTimeZoneMin(){if(isDigit(this.char)){this.consume();if(/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else{throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}}parseBoolean(){if(this.char===CHAR_t){this.consume();return this.next(this.parseTrue_r)}else if(this.char===CHAR_f){this.consume();return this.next(this.parseFalse_a)}}parseTrue_r(){if(this.char===CHAR_r){this.consume();return this.next(this.parseTrue_u)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseTrue_u(){if(this.char===CHAR_u){this.consume();return this.next(this.parseTrue_e)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseTrue_e(){if(this.char===CHAR_e){return this.return(true)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_a(){if(this.char===CHAR_a){this.consume();return this.next(this.parseFalse_l)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_l(){if(this.char===CHAR_l){this.consume();return this.next(this.parseFalse_s)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_s(){if(this.char===CHAR_s){this.consume();return this.next(this.parseFalse_e)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseFalse_e(){if(this.char===CHAR_e){return this.return(false)}else{throw this.error(new TomlError("Invalid boolean, expected true or false"))}}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J){return null}else if(this.char===e.END){throw this.error(new TomlError("Unterminated inline array"))}else if(this.char===CHAR_NUM){return this.call(this.parseComment)}else if(this.char===CHAR_RSQB){return this.return(this.state.resultArr||InlineList())}else{return this.callNow(this.parseValue,this.recordInlineListValue)}}recordInlineListValue(e){if(this.state.resultArr){const t=this.state.resultArr[_contentType];const n=tomlType(e);if(t!==n){throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${t} and ${n}`))}}else{this.state.resultArr=InlineList(tomlType(e))}if(isFloat(e)||isInteger(e)){this.state.resultArr.push(e.valueOf())}else{this.state.resultArr.push(e)}return this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J){return null}else if(this.char===CHAR_NUM){return this.call(this.parseComment)}else if(this.char===CHAR_COMMA){return this.next(this.parseInlineList)}else if(this.char===CHAR_RSQB){return this.goto(this.parseInlineList)}else{throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M){throw this.error(new TomlError("Unterminated inline array"))}else if(this.char===CHAR_RCUB){return this.return(this.state.resultTable||InlineTable())}else{if(!this.state.resultTable)this.state.resultTable=InlineTable();return this.callNow(this.parseAssign,this.recordInlineTableValue)}}recordInlineTableValue(e){let t=this.state.resultTable;let n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared])){throw this.error(new TomlError("Can't redefine existing key"))}t=t[n]=t[n]||Table()}if(hasKey(t,n)){throw this.error(new TomlError("Can't redefine existing key"))}if(isInteger(e.value)||isFloat(e.value)){t[n]=e.value.valueOf()}else{t[n]=e.value}return this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I){return null}else if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M){throw this.error(new TomlError("Unterminated inline array"))}else if(this.char===CHAR_COMMA){return this.next(this.parseInlineTable)}else if(this.char===CHAR_RCUB){return this.goto(this.parseInlineTable)}else{throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}}return TOMLParser}},1939:(e,t,n)=>{"use strict";e.exports=parseAsync;const i=n(8784);const s=n(7964);function parseAsync(e,t){if(!t)t={};const n=0;const o=t.blocksize||40960;const a=new i;return new Promise(((e,t)=>{setImmediate(parseAsyncNext,n,o,e,t)}));function parseAsyncNext(t,n,i,o){if(t>=e.length){try{return i(a.finish())}catch(t){return o(s(t,e))}}try{a.parse(e.slice(t,t+n));setImmediate(parseAsyncNext,t+n,n,i,o)}catch(t){o(s(t,e))}}}},7964:e=>{"use strict";e.exports=prettyError;function prettyError(e,t){if(e.pos==null||e.line==null)return e;let n=e.message;n+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:\n`;if(t&&t.split){const i=t.split(/\n/);const s=String(Math.min(i.length,e.line+3)).length;let o=" ";while(o.length "+i[t]+"\n";n+=o+" ";for(let t=0;t{"use strict";e.exports=parseStream;const i=n(2413);const s=n(8784);function parseStream(e){if(e){return parseReadable(e)}else{return parseTransform(e)}}function parseReadable(e){const t=new s;e.setEncoding("utf8");return new Promise(((n,i)=>{let s;let o=false;let a=false;function finish(){o=true;if(s)return;try{n(t.finish())}catch(e){i(e)}}function error(e){a=true;i(e)}e.once("end",finish);e.once("error",error);readNext();function readNext(){s=true;let n;while((n=e.read())!==null){try{t.parse(n)}catch(e){return error(e)}}s=false;if(o)return finish();if(a)return;e.once("readable",readNext)}}))}function parseTransform(){const e=new s;return new i.Transform({objectMode:true,transform(t,n,i){try{e.parse(t.toString(n))}catch(e){this.emit("error",e)}i()},flush(t){try{this.push(e.finish())}catch(e){this.emit("error",e)}t()}})}},5865:(e,t,n)=>{"use strict";e.exports=parseString;const i=n(8784);const s=n(7964);function parseString(e){if(global.Buffer&&global.Buffer.isBuffer(e)){e=e.toString("utf8")}const t=new i;try{t.parse(e);return t.finish()}catch(t){throw s(t,e)}}},3848:(e,t,n)=>{"use strict";e.exports=n(5865);e.exports.async=n(1939);e.exports.stream=n(558);e.exports.prettyError=n(7964)},6303:e=>{"use strict";e.exports=stringify;e.exports.value=stringifyInline;function stringify(e){if(e===null)throw typeError("null");if(e===void 0)throw typeError("undefined");if(typeof e!=="object")throw typeError(typeof e);if(typeof e.toJSON==="function")e=e.toJSON();if(e==null)return null;const t=tomlType(e);if(t!=="table")throw typeError(t);return stringifyObject("","",e)}function typeError(e){return new Error("Can only stringify objects, not "+e)}function arrayOneTypeError(){return new Error("Array values can't have mixed types")}function getInlineKeys(e){return Object.keys(e).filter((t=>isInline(e[t])))}function getComplexKeys(e){return Object.keys(e).filter((t=>!isInline(e[t])))}function toJSON(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:undefined}:{};for(let n of Object.keys(e)){if(e[n]&&typeof e[n].toJSON==="function"&&!("toISOString"in e[n])){t[n]=e[n].toJSON()}else{t[n]=e[n]}}return t}function stringifyObject(e,t,n){n=toJSON(n);var i;var s;i=getInlineKeys(n);s=getComplexKeys(n);var o=[];var a=t||"";i.forEach((e=>{var t=tomlType(n[e]);if(t!=="undefined"&&t!=="null"){o.push(a+stringifyKey(e)+" = "+stringifyAnyInline(n[e],true))}}));if(o.length>0)o.push("");var l=e&&i.length>0?t+" ":"";s.forEach((t=>{o.push(stringifyComplex(e,l,t,n[t]))}));return o.join("\n")}function isInline(e){switch(tomlType(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return true;case"array":return e.length===0||tomlType(e[0])!=="table";case"table":return Object.keys(e).length===0;default:return false}}function tomlType(e){if(e===undefined){return"undefined"}else if(e===null){return"null"}else if(typeof e==="bigint"||Number.isInteger(e)&&!Object.is(e,-0)){return"integer"}else if(typeof e==="number"){return"float"}else if(typeof e==="boolean"){return"boolean"}else if(typeof e==="string"){return"string"}else if("toISOString"in e){return isNaN(e)?"undefined":"datetime"}else if(Array.isArray(e)){return"array"}else{return"table"}}function stringifyKey(e){var t=String(e);if(/^[-A-Za-z0-9_]+$/.test(t)){return t}else{return stringifyBasicString(t)}}function stringifyBasicString(e){return'"'+escapeString(e).replace(/"/g,'\\"')+'"'}function stringifyLiteralString(e){return"'"+e+"'"}function numpad(e,t){while(t.length"\\u"+numpad(4,e.codePointAt(0).toString(16))))}function stringifyMultilineString(e){let t=e.split(/\n/).map((e=>escapeString(e).replace(/"(?="")/g,'\\"'))).join("\n");if(t.slice(-1)==='"')t+="\\\n";return'"""\n'+t+'"""'}function stringifyAnyInline(e,t){let n=tomlType(e);if(n==="string"){if(t&&/\n/.test(e)){n="string-multiline"}else if(!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)){n="string-literal"}}return stringifyInline(e,n)}function stringifyInline(e,t){if(!t)t=tomlType(e);switch(t){case"string-multiline":return stringifyMultilineString(e);case"string":return stringifyBasicString(e);case"string-literal":return stringifyLiteralString(e);case"integer":return stringifyInteger(e);case"float":return stringifyFloat(e);case"boolean":return stringifyBoolean(e);case"datetime":return stringifyDatetime(e);case"array":return stringifyInlineArray(e.filter((e=>tomlType(e)!=="null"&&tomlType(e)!=="undefined"&&tomlType(e)!=="nan")));case"table":return stringifyInlineTable(e);default:throw typeError(t)}}function stringifyInteger(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function stringifyFloat(e){if(e===Infinity){return"inf"}else if(e===-Infinity){return"-inf"}else if(Object.is(e,NaN)){return"nan"}else if(Object.is(e,-0)){return"-0.0"}var t=String(e).split(".");var n=t[0];var i=t[1]||0;return stringifyInteger(n)+"."+i}function stringifyBoolean(e){return String(e)}function stringifyDatetime(e){return e.toISOString()}function isNumber(e){return e==="float"||e==="integer"}function arrayType(e){var t=tomlType(e[0]);if(e.every((e=>tomlType(e)===t)))return t;if(e.every((e=>isNumber(tomlType(e)))))return"float";return"mixed"}function validateArray(e){const t=arrayType(e);if(t==="mixed"){throw arrayOneTypeError()}return t}function stringifyInlineArray(e){e=toJSON(e);const t=validateArray(e);var n="[";var i=e.map((e=>stringifyInline(e,t)));if(i.join(", ").length>60||/\n/.test(i)){n+="\n "+i.join(",\n ")+"\n"}else{n+=" "+i.join(", ")+(i.length>0?" ":"")}return n+"]"}function stringifyInlineTable(e){e=toJSON(e);var t=[];Object.keys(e).forEach((n=>{t.push(stringifyKey(n)+" = "+stringifyAnyInline(e[n],false))}));return"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}function stringifyComplex(e,t,n,i){var s=tomlType(i);if(s==="array"){return stringifyArrayOfTables(e,t,n,i)}else if(s==="table"){return stringifyComplexTable(e,t,n,i)}else{throw typeError(s)}}function stringifyArrayOfTables(e,t,n,i){i=toJSON(i);validateArray(i);var s=tomlType(i[0]);if(s!=="table")throw typeError(s);var o=e+stringifyKey(n);var a="";i.forEach((e=>{if(a.length>0)a+="\n";a+=t+"[["+o+"]]\n";a+=stringifyObject(o+".",t,e)}));return a}function stringifyComplexTable(e,t,n,i){var s=e+stringifyKey(n);var o="";if(getInlineKeys(i).length>0){o+=t+"["+s+"]\n"}return o+stringifyObject(s+".",t,i)}},2901:(e,t,n)=>{"use strict";t.parse=n(3848);t.stringify=n(6303)},6235:(e,t,n)=>{"use strict";var i=n(2413).PassThrough;var s=n(2413).Writable;var o=n(1669);o.inherits(Appendee,i);o.inherits(Appender,s);function Appendee(e,t){i.call(this,t);this.factory=e;this.opts=t}Appendee.prototype._flush=function(e){var t=this.factory();t.pipe(new Appender(this,this.opts)).on("finish",e);t.resume()};function Appender(e,t){s.call(this,t);this.target=e}Appender.prototype._write=function(e,t,n){this.target.push(e);n()};function addStream(e,t){t=t||{};var n;if(typeof e==="function"){n=e}else{e.pause();n=function(){return e}}return new Appendee(n,t)}addStream.obj=function(e,t){t=t||{};t.objectMode=true;return addStream(e,t)};e.exports=addStream},3018:e=>{var t=Object.prototype.toString;var n=typeof Buffer!=="undefined"&&typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function isArrayBuffer(e){return t.call(e).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(e,t,i){t>>>=0;var s=e.byteLength-t;if(s<0){throw new RangeError("'offset' is out of bounds")}if(i===undefined){i=s}else{i>>>=0;if(i>s){throw new RangeError("'length' is out of bounds")}}return n?Buffer.from(e.slice(t,t+i)):new Buffer(new Uint8Array(e.slice(t,t+i)))}function fromString(e,t){if(typeof t!=="string"||t===""){t="utf8"}if(!Buffer.isEncoding(t)){throw new TypeError('"encoding" must be a valid string encoding')}return n?Buffer.from(e,t):new Buffer(e,t)}function bufferFrom(e,t,i){if(typeof e==="number"){throw new TypeError('"value" argument must not be a number')}if(isArrayBuffer(e)){return fromArrayBuffer(e,t,i)}if(typeof e==="string"){return fromString(e,t)}return n?Buffer.from(e):new Buffer(e)}e.exports=bufferFrom},5107:(e,t,n)=>{var i=n(1642).Writable;var s=n(4124);var o=n(3018);if(typeof Uint8Array==="undefined"){var a=n(5027).U2}else{var a=Uint8Array}function ConcatStream(e,t){if(!(this instanceof ConcatStream))return new ConcatStream(e,t);if(typeof e==="function"){t=e;e={}}if(!e)e={};var n=e.encoding;var s=false;if(!n){s=true}else{n=String(n).toLowerCase();if(n==="u8"||n==="uint8"){n="uint8array"}}i.call(this,{objectMode:true});this.encoding=n;this.shouldInferEncoding=s;if(t)this.on("finish",(function(){t(this.getBody())}));this.body=[]}e.exports=ConcatStream;s(ConcatStream,i);ConcatStream.prototype._write=function(e,t,n){this.body.push(e);n()};ConcatStream.prototype.inferEncoding=function(e){var t=e===undefined?this.body[0]:e;if(Buffer.isBuffer(t))return"buffer";if(typeof Uint8Array!=="undefined"&&t instanceof Uint8Array)return"uint8array";if(Array.isArray(t))return"array";if(typeof t==="string")return"string";if(Object.prototype.toString.call(t)==="[object Object]")return"object";return"buffer"};ConcatStream.prototype.getBody=function(){if(!this.encoding&&this.body.length===0)return[];if(this.shouldInferEncoding)this.encoding=this.inferEncoding();if(this.encoding==="array")return arrayConcat(this.body);if(this.encoding==="string")return stringConcat(this.body);if(this.encoding==="buffer")return bufferConcat(this.body);if(this.encoding==="uint8array")return u8Concat(this.body);return this.body};var l=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"};function isArrayish(e){return/Array\]$/.test(Object.prototype.toString.call(e))}function isBufferish(e){return typeof e==="string"||isArrayish(e)||e&&typeof e.subarray==="function"}function stringConcat(e){var t=[];var n=false;for(var i=0;i{"use strict";const i=n(6235);const s=n(9834);const o=n(1655);const a=n(6207);const l=n(250);const u=n(2413);const c=n(8180);const f=n(3129).execFileSync;const p=n(3197);function conventionalChangelog(e,t,n,h,d,m){d=d||{};const g=new u.Readable({objectMode:d.includeDetails});g._read=function(){};let y=false;let v=new u.Readable({objectMode:true});v._read=function(){};function commitsRange(e,t){return s(l.merge({},n,{from:e,to:t})).on("error",(function(e){if(!y){setImmediate(v.emit.bind(v),"error",e);y=true}}))}p(e,t,n,h,d,m).then((function(l){e=l.options;t=l.context;n=l.gitRawCommitsOpts;h=l.parserOpts;d=l.writerOpts;m=l.gitRawExecOpts;try{f("git",["rev-parse","--verify","HEAD"],{stdio:"ignore"});let e=t.gitSemverTags.slice(0).reverse();e.push("HEAD");if(n.from){if(e.indexOf(n.from)!==-1){e=e.slice(e.indexOf(n.from))}else{e=[n.from,"HEAD"]}}let s=e.map(((t,n)=>{const i=n>0?e[n-1]:"";return commitsRange(i,t)}));if(n.from){s=s.splice(1)}if(n.reverse){s.reverse()}s.reduce(((e,t)=>t.pipe(i(e)))).on("data",(function(e){setImmediate(v.emit.bind(v),"data",e)})).on("end",(function(){setImmediate(v.emit.bind(v),"end")}))}catch(e){v=s(n,m)}v.on("error",(function(e){e.message="Error in git-raw-commits: "+e.message;setImmediate(g.emit.bind(g),"error",e)})).pipe(o(h)).on("error",(function(e){e.message="Error in conventional-commits-parser: "+e.message;setImmediate(g.emit.bind(g),"error",e)})).pipe(c.obj((function(t,n,i){try{e.transform.call(this,t,i)}catch(e){i(e)}}))).on("error",(function(e){e.message="Error in options.transform: "+e.message;setImmediate(g.emit.bind(g),"error",e)})).pipe(a(t,d)).on("error",(function(e){e.message="Error in conventional-changelog-writer: "+e.message;setImmediate(g.emit.bind(g),"error",e)})).pipe(c({objectMode:d.includeDetails},(function(e,t,n){try{g.push(e)}catch(e){setImmediate((function(){throw e}))}n()}),(function(e){g.push(null);e()})))})).catch((function(e){setImmediate(g.emit.bind(g),"error",e)}));return g}e.exports=conventionalChangelog},3197:(e,t,n)=>{function __ncc_wildcard$0(e){if(e==="bitbucket.json"||e==="bitbucket")return n(6035);else if(e==="github.json"||e==="github")return n(8560);else if(e==="gitlab.json"||e==="gitlab")return n(130)}"use strict";const i=n(1512);const s=n(854);const o=n(2408);const a=n(3188);const l=n(6172);let u;try{u=n(6452)}catch(e){u=function(){return l.reject(e)}}const c=n(3645);const f=n(5767);const p=n(8835).URL;const h=n(250);const d=/github|bitbucket|gitlab/i;function semverTagsPromise(e){return l.Promise((function(t,n){o({lernaTags:!!e.lernaPackage,package:e.lernaPackage,tagPrefix:e.tagPrefix,skipUnstable:e.skipUnstable},(function(e,i){if(e){n(e)}else{t(i)}}))}))}function guessNextTag(e,t){if(e){if(e[0]==="v"&&t[0]!=="v"){return"v"+t}if(e[0]!=="v"&&t[0]==="v"){return t.replace(/^v/,"")}return t}if(t[0]!=="v"){return"v"+t}return t}function mergeConfig(e,t,n,o,m,g){let y;let v;t=t||{};n=n||{};g=g||{};const b=e&&e.tagPrefix?new RegExp(`tag:\\s*[=]?${e.tagPrefix}(.+?)[,)]`,"gi"):/tag:\s*[v=]?(.+?)[,)]/gi;e=h.merge({pkg:{transform:function(e){return e}},append:false,releaseCount:1,skipUnstable:false,debug:function(){},transform:function(e,t){if(h.isString(e.gitTags)){const t=b.exec(e.gitTags);b.lastIndex=0;if(t){e.version=t[1]}}if(e.committerDate){e.committerDate=i(e.committerDate,"yyyy-mm-dd",true)}t(null,e)},lernaPackage:null},e);e.warn=e.warn||e.debug;if(e.config){if(h.isFunction(e.config)){y=l.nfcall(e.config)}else{y=l(e.config)}}if(e.pkg){if(e.pkg.path){v=l(c(e.pkg.path))}else{v=l(f())}}const w=l(u());return l.allSettled([y,v,semverTagsPromise(e),w]).spread((function(i,l,u,c){let f;let v;let b;let w;let S;let E=[];if(y){if(i.state==="fulfilled"){f=i.value}else{e.warn("Error in config"+i.reason.toString());f={}}}else{f={}}t=h.assign(t,f.context);if(e.pkg){if(l.state==="fulfilled"){if(e.pkg.path){v=l.value}else{v=l.value.pkg||{}}v=e.pkg.transform(v)}else if(e.pkg.path){e.warn(l.reason.toString())}}if((!v||!v.repository||!v.repository.url)&&c.state==="fulfilled"){v=v||{};v.repository=v.repository||{};v.repository.url=c.value;a(v)}if(v){t.version=t.version||v.version;try{w=s(v)}catch(e){w={}}if(w.browse){const e=w.browse();if(!t.host){if(w.domain){const n=new p(e);if(n.origin.indexOf("//")!==-1){t.host=n.protocol+"//"+w.domain}else{t.host=n.protocol+w.domain}}else{t.host=null}}t.owner=t.owner||w.user||"";t.repository=t.repository||w.project;if(w.host&&w.project&&w.user){t.repoUrl=e}else{t.repoUrl=t.host}}t.packageData=v}t.version=t.version||"";if(u.state==="fulfilled"){E=t.gitSemverTags=u.value;b=E[e.releaseCount-1];const n=E[0];if(n===t.version||n==="v"+t.version){if(e.outputUnreleased){t.version="Unreleased"}else{e.outputUnreleased=false}}}if(!h.isBoolean(e.outputUnreleased)){e.outputUnreleased=true}if(t.host&&(!t.issue||!t.commit||!o||!o.referenceActions)){let n;if(t.host){const e=t.host.match(d);if(e){n=e[0]}}else if(w&&w.type){n=w.type}if(n){S=__ncc_wildcard$0(n);t=h.assign({issue:S.issue,commit:S.commit},t)}else{e.warn('Host: "'+t.host+'" does not exist');S={}}}else{S={}}if(t.resetChangelog){b=null}n=h.assign({format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci",from:b,merges:false,debug:e.debug},f.gitRawCommitsOpts,n);if(e.append){n.reverse=n.reverse||true}o=h.assign({},f.parserOpts,{warn:e.warn},o);if(S.referenceActions&&o){o.referenceActions=S.referenceActions}if(h.isEmpty(o.issuePrefixes)&&S.issuePrefixes){o.issuePrefixes=S.issuePrefixes}m=h.assign({finalizeContext:function(t,n,i,s,o){const a=o[0];const l=o[o.length-1];const u=a?a.hash:null;const c=l?l.hash:null;if((!t.currentTag||!t.previousTag)&&s){const n=/tag:\s*(.+?)[,)]/gi.exec(s.gitTags);const i=t.currentTag;t.currentTag=i||n?n[1]:null;const o=E.indexOf(t.currentTag);if(o===-1){t.currentTag=i||null}else{const n=t.previousTag=E[o+1];if(!n){if(e.append){t.previousTag=t.previousTag||u}else{t.previousTag=t.previousTag||c}}}}else{t.previousTag=t.previousTag||E[0];if(t.version==="Unreleased"){if(e.append){t.currentTag=t.currentTag||c}else{t.currentTag=t.currentTag||u}}else if(!t.currentTag){if(e.lernaPackage){t.currentTag=e.lernaPackage+"@"+t.version}else if(e.tagPrefix){t.currentTag=e.tagPrefix+t.version}else{t.currentTag=guessNextTag(E[0],t.version)}}}if(!h.isBoolean(t.linkCompare)&&t.previousTag&&t.currentTag){t.linkCompare=true}return t},debug:e.debug},f.writerOpts,{reverse:e.append,doFlush:e.outputUnreleased},m);return{options:e,context:t,gitRawCommitsOpts:n,parserOpts:o,writerOpts:m,gitRawExecOpts:g}}))}e.exports=mergeConfig},8079:(e,t,n)=>{"use strict";const i=n(5622);e.exports=presetLoader(require);e.exports.presetLoader=presetLoader;function presetLoader(e){return t=>{let n="";let s="";let o="";if(typeof t==="string"){n=t.toLowerCase();if(i.isAbsolute(t)){o=t}}else if(typeof t==="object"&&t.name){n=t.name.toLowerCase();if(i.isAbsolute(t.name)){o=t.name}}else{throw Error("preset must be string or object with key name")}if(!o){if(n[0]==="@"){const e=n.split("/");s=e.shift()+"/";n=e.join("/")}if(!n.startsWith("conventional-changelog-")){n=`conventional-changelog-${n}`}}try{const i=e(o||`${s}${n}`);if(i&&!i.then&&typeof t==="object"){return i(t)}else{return i}}catch(e){throw Error("does not exist")}}}},6207:(e,t,n)=>{"use strict";const i=n(1512);const s=n(5622).join;const o=n(5747).readFileSync;const a=n(725).valid;const l=n(8180);const u=n(8857);const c=n(250);function conventionalChangelogWriterInit(e,t){e=c.extend({commit:"commits",issue:"issues",date:i(new Date,"yyyy-mm-dd",true)},e);if(!c.isBoolean(e.linkReferences)&&(e.repository||e.repoUrl)&&e.commit&&e.issue){e.linkReferences=true}t=c.assign({groupBy:"type",commitsSort:"header",noteGroupsSort:"title",notesSort:"text",generateOn:function(e){return a(e.version)},finalizeContext:function(e){return e},debug:function(){},reverse:false,includeDetails:false,ignoreReverted:true,doFlush:true,mainTemplate:o(n.ab+"template.hbs","utf-8"),headerPartial:o(n.ab+"header.hbs","utf-8"),commitPartial:o(n.ab+"commit.hbs","utf-8"),footerPartial:o(n.ab+"footer.hbs","utf-8")},t);if(!c.isFunction(t.transform)&&c.isObject(t.transform)||c.isUndefined(t.transform)){t.transform=c.assign({hash:function(e){if(c.isString(e)){return e.substring(0,7)}},header:function(e){return e.substring(0,100)},committerDate:function(e){if(!e){return}return i(e,"yyyy-mm-dd",true)}},t.transform)}let s=t.generateOn;if(c.isString(s)){s=function(e){return!c.isUndefined(e[t.generateOn])}}else if(!c.isFunction(s)){s=function(){return false}}t.commitGroupsSort=u.functionify(t.commitGroupsSort);t.commitsSort=u.functionify(t.commitsSort);t.noteGroupsSort=u.functionify(t.noteGroupsSort);t.notesSort=u.functionify(t.notesSort);return{context:e,options:t,generateOn:s}}function conventionalChangelogWriterParseStream(e,t){let n;({context:e,options:t,generateOn:n}=conventionalChangelogWriterInit(e,t));let i=[];let s=true;let o;let a=true;return l.obj((function(l,c,f){try{let c;const p=u.processCommit(l,t.transform,e);const h=p||l;if(t.reverse){if(p){i.push(p)}if(n(h,i,e,t)){s=false;c=u.generate(t,i,e,h);if(t.includeDetails){this.push({log:c,keyCommit:h})}else{this.push(c)}i=[]}}else{if(n(h,i,e,t)){s=false;c=u.generate(t,i,e,o);if(!a||t.doFlush){if(t.includeDetails){this.push({log:c,keyCommit:o})}else{this.push(c)}}a=false;i=[];o=h}if(p){i.push(p)}}f()}catch(e){f(e)}}),(function(n){if(!t.doFlush&&(t.reverse||s)){n(null);return}try{const s=u.generate(t,i,e,o);if(t.includeDetails){this.push({log:s,keyCommit:o})}else{this.push(s)}n()}catch(e){n(e)}}))}conventionalChangelogWriterParseStream.parseArray=(e,t,n)=>{let i;e=[...e];({context:t,options:n,generateOn:i}=conventionalChangelogWriterInit(t,n));let s=[];let o;if(n.reverse){e.reverse()}const a=[];for(const l of e){const e=u.processCommit(l,n.transform,t);const c=e||l;if(i(c,s,t,n)){a.push(u.generate(n,s,t,o));o=c;s=[]}if(e){s.push(e)}}if(n.reverse){a.reverse();return u.generate(n,s,t,o)+a.join("")}else{return a.join("")+u.generate(n,s,t,o)}};e.exports=conventionalChangelogWriterParseStream},8857:(e,t,n)=>{"use strict";const i=n(5003);const s=n(7492);const o=n(725);const a=n(250);const l=n(7073);function compileTemplates(e){const t=e.mainTemplate;const n=e.headerPartial;const i=e.commitPartial;const o=e.footerPartial;const l=e.partials;if(a.isString(n)){s.registerPartial("header",n)}if(a.isString(i)){s.registerPartial("commit",i)}if(a.isString(o)){s.registerPartial("footer",o)}a.forEach(l,(function(e,t){if(a.isString(e)){s.registerPartial(t,e)}}));return s.compile(t,{noEscape:true})}function functionify(e){if(e&&!a.isFunction(e)){return(t,n)=>{let i="";let s="";if(Array.isArray(e)){for(const o of e){i+=t[o]||"";s+=n[o]||""}}else{i+=t[e];s+=n[e]}return i.localeCompare(s)}}else{return e}}function getCommitGroups(e,t,n,i){const s=[];const o=a.groupBy(t,(function(t){return t[e]||""}));a.forEach(o,(function(e,t){if(t===""){t=false}if(i){e.sort(i)}s.push({title:t,commits:e})}));if(n){s.sort(n)}return s}function getNoteGroups(e,t,n){const i=[];a.forEach(e,(function(e){const t=e.title;let n=false;a.forEach(i,(function(i){if(i.title===t){n=true;i.notes.push(e);return false}}));if(!n){i.push({title:t,notes:[e]})}}));if(t){i.sort(t)}if(n){a.forEach(i,(function(e){e.notes.sort(n)}))}return i}function processCommit(e,t,n){let i;try{e=JSON.parse(e)}catch(e){}i=a.cloneDeep(e);if(a.isFunction(t)){i=t(i,n);if(i){i.raw=e}return i}a.forEach(t,(function(e,t){let n=a.get(i,t);if(a.isFunction(e)){n=e(n,t)}else{n=e}a.set(i,t,n)}));i.raw=e;return i}function getExtraContext(e,t,n){const i={};i.commitGroups=getCommitGroups(n.groupBy,e,n.commitGroupsSort,n.commitsSort);i.noteGroups=getNoteGroups(t,n.noteGroupsSort,n.notesSort);return i}function generate(e,t,n,s){let u=[];let c;const f=compileTemplates(e);if(e.ignoreReverted){c=i(t)}else{c=a.clone(t)}a.forEach(c,(function(e){a.map(e.notes,(function(t){t.commit=e;return t}));u=u.concat(e.notes)}));n=a.merge({},n,s,getExtraContext(c,u,e));if(s&&s.committerDate){n.date=s.committerDate}if(n.version&&o.valid(n.version)){n.isPatch=n.isPatch||o.patch(n.version)!==0}n=e.finalizeContext(n,e,c,s,t);e.debug("Your final context is:\n"+l(n,null,2));return f(n)}e.exports={compileTemplates:compileTemplates,functionify:functionify,getCommitGroups:getCommitGroups,getNoteGroups:getNoteGroups,processCommit:processCommit,getExtraContext:getExtraContext,generate:generate}},725:(e,t)=>{t=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var s=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var a=t.re=[];var l=t.src=[];var u=t.tokens={};var c=0;function tok(e){u[e]=c++}tok("NUMERICIDENTIFIER");l[u.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");l[u.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");l[u.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");l[u.MAINVERSION]="("+l[u.NUMERICIDENTIFIER]+")\\."+"("+l[u.NUMERICIDENTIFIER]+")\\."+"("+l[u.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");l[u.MAINVERSIONLOOSE]="("+l[u.NUMERICIDENTIFIERLOOSE]+")\\."+"("+l[u.NUMERICIDENTIFIERLOOSE]+")\\."+"("+l[u.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");l[u.PRERELEASEIDENTIFIER]="(?:"+l[u.NUMERICIDENTIFIER]+"|"+l[u.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");l[u.PRERELEASEIDENTIFIERLOOSE]="(?:"+l[u.NUMERICIDENTIFIERLOOSE]+"|"+l[u.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");l[u.PRERELEASE]="(?:-("+l[u.PRERELEASEIDENTIFIER]+"(?:\\."+l[u.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");l[u.PRERELEASELOOSE]="(?:-?("+l[u.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+l[u.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");l[u.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");l[u.BUILD]="(?:\\+("+l[u.BUILDIDENTIFIER]+"(?:\\."+l[u.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");l[u.FULLPLAIN]="v?"+l[u.MAINVERSION]+l[u.PRERELEASE]+"?"+l[u.BUILD]+"?";l[u.FULL]="^"+l[u.FULLPLAIN]+"$";tok("LOOSEPLAIN");l[u.LOOSEPLAIN]="[v=\\s]*"+l[u.MAINVERSIONLOOSE]+l[u.PRERELEASELOOSE]+"?"+l[u.BUILD]+"?";tok("LOOSE");l[u.LOOSE]="^"+l[u.LOOSEPLAIN]+"$";tok("GTLT");l[u.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");l[u.XRANGEIDENTIFIERLOOSE]=l[u.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");l[u.XRANGEIDENTIFIER]=l[u.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");l[u.XRANGEPLAIN]="[v=\\s]*("+l[u.XRANGEIDENTIFIER]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIER]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIER]+")"+"(?:"+l[u.PRERELEASE]+")?"+l[u.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");l[u.XRANGEPLAINLOOSE]="[v=\\s]*("+l[u.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+l[u.PRERELEASELOOSE]+")?"+l[u.BUILD]+"?"+")?)?";tok("XRANGE");l[u.XRANGE]="^"+l[u.GTLT]+"\\s*"+l[u.XRANGEPLAIN]+"$";tok("XRANGELOOSE");l[u.XRANGELOOSE]="^"+l[u.GTLT]+"\\s*"+l[u.XRANGEPLAINLOOSE]+"$";tok("COERCE");l[u.COERCE]="(^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");a[u.COERCERTL]=new RegExp(l[u.COERCE],"g");tok("LONETILDE");l[u.LONETILDE]="(?:~>?)";tok("TILDETRIM");l[u.TILDETRIM]="(\\s*)"+l[u.LONETILDE]+"\\s+";a[u.TILDETRIM]=new RegExp(l[u.TILDETRIM],"g");var f="$1~";tok("TILDE");l[u.TILDE]="^"+l[u.LONETILDE]+l[u.XRANGEPLAIN]+"$";tok("TILDELOOSE");l[u.TILDELOOSE]="^"+l[u.LONETILDE]+l[u.XRANGEPLAINLOOSE]+"$";tok("LONECARET");l[u.LONECARET]="(?:\\^)";tok("CARETTRIM");l[u.CARETTRIM]="(\\s*)"+l[u.LONECARET]+"\\s+";a[u.CARETTRIM]=new RegExp(l[u.CARETTRIM],"g");var p="$1^";tok("CARET");l[u.CARET]="^"+l[u.LONECARET]+l[u.XRANGEPLAIN]+"$";tok("CARETLOOSE");l[u.CARETLOOSE]="^"+l[u.LONECARET]+l[u.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");l[u.COMPARATORLOOSE]="^"+l[u.GTLT]+"\\s*("+l[u.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");l[u.COMPARATOR]="^"+l[u.GTLT]+"\\s*("+l[u.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");l[u.COMPARATORTRIM]="(\\s*)"+l[u.GTLT]+"\\s*("+l[u.LOOSEPLAIN]+"|"+l[u.XRANGEPLAIN]+")";a[u.COMPARATORTRIM]=new RegExp(l[u.COMPARATORTRIM],"g");var h="$1$2$3";tok("HYPHENRANGE");l[u.HYPHENRANGE]="^\\s*("+l[u.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+l[u.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");l[u.HYPHENRANGELOOSE]="^\\s*("+l[u.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+l[u.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");l[u.STAR]="(<|>)?=?\\s*\\*";for(var d=0;di){return null}var n=t.loose?a[u.LOOSE]:a[u.FULL];if(!n.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var n=parse(e,t);return n?n.version:null}t.clean=clean;function clean(e,t){var n=parse(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;var o=e.trim().match(t.loose?a[u.LOOSE]:a[u.FULL]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>s||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>s||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>s||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,n,i){if(typeof n==="string"){i=n;n=undefined}try{return new SemVer(e,n).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var n=parse(e);var i=parse(t);var s="";if(n.prerelease.length||i.prerelease.length){s="pre";var o="prerelease"}for(var a in n){if(a==="major"||a==="minor"||a==="patch"){if(n[a]!==i[a]){return s+a}}}return o}}t.compareIdentifiers=compareIdentifiers;var m=/^[0-9]+$/;function compareIdentifiers(e,t){var n=m.test(e);var i=m.test(t);if(n&&i){e=+e;t=+t}return e===t?0:n&&!i?-1:i&&!n?1:e0}t.lt=lt;function lt(e,t,n){return compare(e,t,n)<0}t.eq=eq;function eq(e,t,n){return compare(e,t,n)===0}t.neq=neq;function neq(e,t,n){return compare(e,t,n)!==0}t.gte=gte;function gte(e,t,n){return compare(e,t,n)>=0}t.lte=lte;function lte(e,t,n){return compare(e,t,n)<=0}t.cmp=cmp;function cmp(e,t,n,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,i);case"!=":return neq(e,n,i);case">":return gt(e,n,i);case">=":return gte(e,n,i);case"<":return lt(e,n,i);case"<=":return lte(e,n,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===g){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var g={};Comparator.prototype.parse=function(e){var t=this.options.loose?a[u.COMPARATORLOOSE]:a[u.COMPARATOR];var n=e.match(t);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=g}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===g||e===g){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var n;if(this.operator===""){if(this.value===""){return true}n=new Range(e.value,t);return satisfies(this.value,n,t)}else if(e.operator===""){if(e.value===""){return true}n=new Range(this.value,t);return satisfies(e.semver,n,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var l=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var u=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||s||o&&a||l||u};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var i=t?a[u.HYPHENRANGELOOSE]:a[u.HYPHENRANGE];e=e.replace(i,hyphenReplace);n("hyphen replace",e);e=e.replace(a[u.COMPARATORTRIM],h);n("comparator trim",e,a[u.COMPARATORTRIM]);e=e.replace(a[u.TILDETRIM],f);e=e.replace(a[u.CARETTRIM],p);e=e.split(/\s+/).join(" ");var s=t?a[u.COMPARATORLOOSE]:a[u.COMPARATOR];var o=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter((function(e){return!!e.match(s)}))}o=o.map((function(e){return new Comparator(e,this.options)}),this);return o};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(n){return isSatisfiable(n,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var n=true;var i=e.slice();var s=i.pop();while(n&&i.length){n=i.every((function(e){return s.intersects(e,t)}));s=i.pop()}return n}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){n("comp",e,t);e=replaceCarets(e,t);n("caret",e);e=replaceTildes(e,t);n("tildes",e);e=replaceXRanges(e,t);n("xrange",e);e=replaceStars(e,t);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var i=t.loose?a[u.TILDELOOSE]:a[u.TILDE];return e.replace(i,(function(t,i,s,o,a){n("tilde",e,t,i,s,o,a);var l;if(isX(i)){l=""}else if(isX(s)){l=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(o)){l=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else if(a){n("replaceTilde pr",a);l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+(+s+1)+".0"}else{l=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0"}n("tilde return",l);return l}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){n("caret",e,t);var i=t.loose?a[u.CARETLOOSE]:a[u.CARET];return e.replace(i,(function(t,i,s,o,a){n("caret",e,t,i,s,o,a);var l;if(isX(i)){l=""}else if(isX(s)){l=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(o)){if(i==="0"){l=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else{l=">="+i+"."+s+".0 <"+(+i+1)+".0.0"}}else if(a){n("replaceCaret pr",a);if(i==="0"){if(s==="0"){l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+s+"."+(+o+1)}else{l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+(+s+1)+".0"}}else{l=">="+i+"."+s+"."+o+"-"+a+" <"+(+i+1)+".0.0"}}else{n("no pr");if(i==="0"){if(s==="0"){l=">="+i+"."+s+"."+o+" <"+i+"."+s+"."+(+o+1)}else{l=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0"}}else{l=">="+i+"."+s+"."+o+" <"+(+i+1)+".0.0"}}n("caret return",l);return l}))}function replaceXRanges(e,t){n("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?a[u.XRANGELOOSE]:a[u.XRANGE];return e.replace(i,(function(i,s,o,a,l,u){n("xRange",e,i,s,o,a,l,u);var c=isX(o);var f=c||isX(a);var p=f||isX(l);var h=p;if(s==="="&&h){s=""}u=t.includePrerelease?"-0":"";if(c){if(s===">"||s==="<"){i="<0.0.0-0"}else{i="*"}}else if(s&&h){if(f){a=0}l=0;if(s===">"){s=">=";if(f){o=+o+1;a=0;l=0}else{a=+a+1;l=0}}else if(s==="<="){s="<";if(f){o=+o+1}else{a=+a+1}}i=s+o+"."+a+"."+l+u}else if(f){i=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u}else if(p){i=">="+o+"."+a+".0"+u+" <"+o+"."+(+a+1)+".0"+u}n("xRange return",i);return i}))}function replaceStars(e,t){n("replaceStars",e,t);return e.trim().replace(a[u.STAR],"")}function hyphenReplace(e,t,n,i,s,o,a,l,u,c,f,p,h){if(isX(n)){t=""}else if(isX(i)){t=">="+n+".0.0"}else if(isX(s)){t=">="+n+"."+i+".0"}else{t=">="+t}if(isX(u)){l=""}else if(isX(c)){l="<"+(+u+1)+".0.0"}else if(isX(f)){l="<"+u+"."+(+c+1)+".0"}else if(p){l="<="+u+"."+c+"."+f+"-"+p}else{l="<="+l}return(t+" "+l).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var o=e[s].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,n){try{t=new Range(t,n)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,n){var i=null;var s=null;try{var o=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!i||s.compare(e)===-1){i=e;s=new SemVer(i,n)}}}));return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,n){var i=null;var s=null;try{var o=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!i||s.compare(e)===1){i=e;s=new SemVer(i,n)}}}));return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||gt(n,t)){n=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n)){return n}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,n){return outside(e,t,"<",n)}t.gtr=gtr;function gtr(e,t,n){return outside(e,t,">",n)}t.outside=outside;function outside(e,t,n,i){e=new SemVer(e,i);t=new Range(t,i);var s,o,a,l,u;switch(n){case">":s=gt;o=lte;a=lt;l=">";u=">=";break;case"<":s=lt;o=gte;a=gt;l="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var c=0;c=0.0.0")}p=p||e;h=h||e;if(s(e.semver,p.semver,i)){p=e}else if(a(e.semver,h.semver,i)){h=e}}));if(p.operator===l||p.operator===u){return false}if((!h.operator||h.operator===l)&&o(e,h.semver)){return false}else if(h.operator===u&&a(e,h.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var n=parse(e,t);return n&&n.prerelease.length?n.prerelease:null}t.intersects=intersects;function intersects(e,t,n){e=new Range(e,n);t=new Range(t,n);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var n=null;if(!t.rtl){n=e.match(a[u.COERCE])}else{var i;while((i=a[u.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}a[u.COERCERTL].lastIndex=i.index+i[1].length+i[2].length}a[u.COERCERTL].lastIndex=-1}if(n===null){return null}return parse(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},9461:(e,t,n)=>{"use strict";const i=n(3064);const s=n(8079);function conventionalChangelog(e,t,n,o,a){e.warn=e.warn||function(){};if(e.preset){try{e.config=s(e.preset)}catch(t){if(typeof e.preset==="object"){e.warn(`Preset: "${e.preset.name}" ${t.message}`)}else if(typeof e.preset==="string"){e.warn(`Preset: "${e.preset}" ${t.message}`)}else{e.warn(`Preset: ${t.message}`)}}}return i(e,t,n,o,a)}e.exports=conventionalChangelog},5003:(e,t,n)=>{"use strict";const i=n(5100);const s=n(3432);function modifyValue(e){if(typeof e==="string"){return e.trim()}return e}function conventionalCommitsFilter(e){if(!Array.isArray(e)){throw new TypeError("Expected an array")}let t=[];const n=[];const o=[];e.forEach((function(e){if(e.revert){n.push(e)}t.push(e)}));t=t.filter((function(e){let t=false;e=e.raw?s(e.raw,modifyValue):s(e,modifyValue);n.some((function(n){const a=s(n.revert,modifyValue);t=i(e,a);if(t){o.push(n.hash)}return t}));return!t}));t=t.filter((function(e){return o.indexOf(e.hash)!==0}));return t}e.exports=conventionalCommitsFilter},1655:(e,t,n)=>{"use strict";const i=n(1080);const s=n(1411);const o=n(8180);const a=n(250);function assignOpts(e){e=a.extend({headerPattern:/^(\w*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$/,headerCorrespondence:["type","scope","subject"],referenceActions:["close","closes","closed","fix","fixes","fixed","resolve","resolves","resolved"],issuePrefixes:["#"],noteKeywords:["BREAKING CHANGE"],fieldPattern:/^-(.*?)-$/,revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,revertCorrespondence:["header","hash"],warn:function(){},mergePattern:null,mergeCorrespondence:null},e);if(typeof e.headerPattern==="string"){e.headerPattern=new RegExp(e.headerPattern)}if(typeof e.headerCorrespondence==="string"){e.headerCorrespondence=e.headerCorrespondence.split(",")}if(typeof e.referenceActions==="string"){e.referenceActions=e.referenceActions.split(",")}if(typeof e.issuePrefixes==="string"){e.issuePrefixes=e.issuePrefixes.split(",")}if(typeof e.noteKeywords==="string"){e.noteKeywords=e.noteKeywords.split(",")}if(typeof e.fieldPattern==="string"){e.fieldPattern=new RegExp(e.fieldPattern)}if(typeof e.revertPattern==="string"){e.revertPattern=new RegExp(e.revertPattern)}if(typeof e.revertCorrespondence==="string"){e.revertCorrespondence=e.revertCorrespondence.split(",")}if(typeof e.mergePattern==="string"){e.mergePattern=new RegExp(e.mergePattern)}return e}function conventionalCommitsParser(e){e=assignOpts(e);const t=s(e);return o.obj((function(n,s,o){let a;try{a=i(n.toString(),e,t);o(null,a)}catch(t){if(e.warn===true){o(t)}else{e.warn(t.toString());o(null,"")}}}))}function sync(e,t){t=assignOpts(t);const n=s(t);return i(e,t,n)}e.exports=conventionalCommitsParser;e.exports.sync=sync},1080:(e,t,n)=>{"use strict";const i=n(250);const s=/()(.+)/gi;const o="# ------------------------ >8 ------------------------";function trimOffNewlines(e){return e.replace(/^(?:\r|\n)+|(?:\r|\n)+$/g,"")}function append(e,t){if(e){e+="\n"+t}else{e=t}return e}function getCommentFilter(e){return function(t){return t.charAt(0)!==e}}function truncateToScissor(e){const t=e.indexOf(o);if(t===-1){return e}return e.slice(0,t)}function getReferences(e,t){const n=[];let i;let o;const a=e.match(t.references)!==null?t.references:s;while(i=a.exec(e)){const e=i[1]||null;const s=i[2];while(o=t.referenceParts.exec(s)){let t=null;let i=o[1]||"";const s=i.split("/");if(s.length>1){t=s.shift();i=s.join("/")}const a={action:e,owner:t,repository:i||null,issue:o[3],raw:o[0],prefix:o[2]};n.push(a)}}return n}function passTrough(){return true}function parser(e,t,n){if(!e||!e.trim()){throw new TypeError("Expected a raw commit")}if(i.isEmpty(t)){throw new TypeError("Expected options")}if(i.isEmpty(n)){throw new TypeError("Expected regex")}let s;let o;const a={};const l=typeof t.commentChar==="string"?getCommentFilter(t.commentChar):passTrough;const gpgFilter=e=>!e.match(/^\s*gpg:/);const u=trimOffNewlines(e).split(/\r?\n/);const c=truncateToScissor(u).filter(l).filter(gpgFilter);let f=false;let p=true;const h=i.map(t.headerCorrespondence,(function(e){return e.trim()}));const d=i.map(t.revertCorrespondence,(function(e){return e.trim()}));const m=i.map(t.mergeCorrespondence,(function(e){return e.trim()}));let g=null;let y=null;let v=null;const b=[];let w=null;const S=[];const E=[];let _=null;if(c.length===0){return{body:g,footer:y,header:v,mentions:b,merge:w,notes:S,references:E,revert:_,scope:null,subject:null,type:null}}w=c.shift();const O={};const R={};g="";y="";const C=w.match(t.mergePattern);if(C&&t.mergePattern){w=C[0];v=c.shift();while(v!==undefined&&!v.trim()){v=c.shift()}if(!v){v=""}i.forEach(m,(function(e,t){const n=C[t+1]||null;O[e]=n}))}else{v=w;w=null;i.forEach(m,(function(e){O[e]=null}))}const A=v.match(t.headerPattern);if(A){i.forEach(h,(function(e,t){const n=A[t+1]||null;R[e]=n}))}else{i.forEach(h,(function(e){R[e]=null}))}Array.prototype.push.apply(E,getReferences(v,{references:n.references,referenceParts:n.referenceParts}));i.forEach(c,(function(e){if(t.fieldPattern){const n=t.fieldPattern.exec(e);if(n){s=n[1];return}if(s){a[s]=append(a[s],e);return}}let i;const o=e.match(n.notes);if(o){f=true;p=false;y=append(y,e);const t={title:o[1],text:o[2]};S.push(t);return}const l=getReferences(e,{references:n.references,referenceParts:n.referenceParts});if(l.length>0){p=false;i=true;f=false}Array.prototype.push.apply(E,l);if(i){y=append(y,e);return}if(f){S[S.length-1].text=append(S[S.length-1].text,e);y=append(y,e);return}if(p){g=append(g,e)}else{y=append(y,e)}}));if(t.breakingHeaderPattern&&S.length===0){const e=v.match(t.breakingHeaderPattern);if(e){const t=e[3];S.push({title:"BREAKING CHANGE",text:t})}}while(o=n.mentions.exec(e)){b.push(o[1])}const L=e.match(t.revertPattern);if(L){_={};i.forEach(d,(function(e,t){const n=L[t+1]||null;_[e]=n}))}else{_=null}i.map(S,(function(e){e.text=trimOffNewlines(e.text);return e}));const x=i.merge(R,O,{merge:w,header:v,body:g?trimOffNewlines(g):null,footer:y?trimOffNewlines(y):null,notes:S,references:E,mentions:b,revert:_},a);return x}e.exports=parser},1411:e=>{"use strict";const t=/(?!.*)/;function join(e,t){return e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join(t)}function getNotesRegex(e,n){if(!e){return t}const i=join(e,"|");if(!n){return new RegExp("^[\\s|*]*("+i+")[:\\s]+(.*)","i")}return n(i)}function getReferencePartsRegex(e,n){if(!e){return t}const i=n?"g":"gi";return new RegExp("(?:.*?)??\\s*([\\w-\\.\\/]*?)??("+join(e,"|")+")([\\w-]*\\d+)",i)}function getReferencesRegex(e){if(!e){return/()(.+)/gi}const t=join(e,"|");return new RegExp("("+t+")(?:\\s+(.*?))(?=(?:"+t+")|$)","gi")}e.exports=function(e){e=e||{};const t=getNotesRegex(e.noteKeywords,e.notesPattern);const n=getReferencePartsRegex(e.issuePrefixes,e.issuePrefixesCaseSensitive);const i=getReferencesRegex(e.referenceActions);return{notes:t,referenceParts:n,references:i,mentions:/@([\w-]+)/g}}},7011:(e,t,n)=>{"use strict";const i=n(5107);const s=n(5003);const o=n(1655);const a=n(8079);const l=n(2408);const u=n(9834);const c=n(2626);const f=["major","minor","patch"];e.exports=conventionalRecommendedBump;function conventionalRecommendedBump(e,t,n){if(typeof e!=="object"){throw new Error("The 'options' argument must be an object.")}const p=Object.assign({ignoreReverted:true},e);const h=typeof t==="function"?t:n;if(typeof h!=="function"){throw new Error("You must provide a callback function.")}let d=p.config||{};if(p.preset){try{d=a(p.preset)}catch(e){if(e.message==="does not exist"){const e=typeof p.preset==="object"?p.preset.name:p.preset;return h(new Error(`Unable to load the "${e}" preset package. Please make sure it's installed.`))}else{return h(e)}}}c(d).then((e=>{const n=p.whatBump||(e.recommendedBumpOpts&&e.recommendedBumpOpts.whatBump?e.recommendedBumpOpts.whatBump:noop);if(typeof n!=="function"){throw Error("whatBump must be a function")}const a=Object.assign({},e.recommendedBumpOpts&&e.recommendedBumpOpts.parserOpts?e.recommendedBumpOpts.parserOpts:e.parserOpts,t);const c=typeof a.warn==="function"?a.warn:noop;l({lernaTags:!!p.lernaPackage,package:p.lernaPackage,tagPrefix:p.tagPrefix,skipUnstable:p.skipUnstable},((e,t)=>{if(e){return h(e)}u({format:"%B%n-hash-%n%H",from:t[0]||"",path:p.path}).pipe(o(a)).pipe(i((e=>{const t=p.ignoreReverted?s(e):e;if(!t||!t.length){c("No commits since last release")}let i=n(t,p);if(i&&i.level!=null){i.releaseType=f[i.level]}else if(i==null){i={}}h(null,i)})))}))})).catch((e=>h(e)))}function noop(){}},2626:(e,t,n)=>{"use strict";const i=n(6172);e.exports=presetResolver;function presetResolver(e){return i.resolve().then((()=>{if(typeof e==="function"){return i.nfcall(e)}if(typeof e==="object"){return i(e)}throw new Error("preset package must be a promise, function, or object")}))}},2720:e=>{"use strict";const match=(e,t)=>e.some((e=>e instanceof RegExp?e.test(t):e===t));const dargs=(e,t)=>{const n=[];let i=[];let s=[];t={useEquals:true,shortFlag:true,...t};const makeArguments=(e,i)=>{const s=t.shortFlag&&e.length===1?"-":"--";const o=t.allowCamelCase?e:e.replace(/[A-Z]/g,"-$&").toLowerCase();e=s+o;if(t.useEquals){n.push(e+(i?`=${i}`:""))}else{n.push(e);if(i){n.push(i)}}};const makeAliasArg=(e,t)=>{n.push(`-${e}`);if(t){n.push(t)}};for(let[n,o]of Object.entries(e)){let e=makeArguments;if(Array.isArray(t.excludes)&&match(t.excludes,n)){continue}if(Array.isArray(t.includes)&&!match(t.includes,n)){continue}if(typeof t.aliases==="object"&&t.aliases[n]){n=t.aliases[n];e=makeAliasArg}if(n==="--"){if(!Array.isArray(o)){throw new TypeError(`Expected key \`--\` to be Array, got ${typeof o}`)}s=o;continue}if(n==="_"){if(!Array.isArray(o)){throw new TypeError(`Expected key \`_\` to be Array, got ${typeof o}`)}i=o;continue}if(o===true){e(n,"")}if(o===false&&!t.ignoreFalse){e(`no-${n}`)}if(typeof o==="string"){e(n,o)}if(typeof o==="number"&&!Number.isNaN(o)){e(n,String(o))}if(Array.isArray(o)){for(const t of o){e(n,t)}}}for(const e of i){n.push(String(e))}if(s.length>0){n.push("--")}for(const e of s){n.push(String(e))}return n};e.exports=dargs},1512:function(e){(function(t){"use strict";var n=function(){var e=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g;var t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;var i=/[^-+\dA-Z]/g;return function(s,o,a,l){if(arguments.length===1&&kindOf(s)==="string"&&!/\d/.test(s)){o=s;s=undefined}s=s||new Date;if(!(s instanceof Date)){s=new Date(s)}if(isNaN(s)){throw TypeError("Invalid date")}o=String(n.masks[o]||o||n.masks["default"]);var u=o.slice(0,4);if(u==="UTC:"||u==="GMT:"){o=o.slice(4);a=true;if(u==="GMT:"){l=true}}var c=a?"getUTC":"get";var f=s[c+"Date"]();var p=s[c+"Day"]();var h=s[c+"Month"]();var d=s[c+"FullYear"]();var m=s[c+"Hours"]();var g=s[c+"Minutes"]();var y=s[c+"Seconds"]();var v=s[c+"Milliseconds"]();var b=a?0:s.getTimezoneOffset();var w=getWeek(s);var S=getDayOfWeek(s);var E={d:f,dd:pad(f),ddd:n.i18n.dayNames[p],dddd:n.i18n.dayNames[p+7],m:h+1,mm:pad(h+1),mmm:n.i18n.monthNames[h],mmmm:n.i18n.monthNames[h+12],yy:String(d).slice(2),yyyy:d,h:m%12||12,hh:pad(m%12||12),H:m,HH:pad(m),M:g,MM:pad(g),s:y,ss:pad(y),l:pad(v,3),L:pad(Math.round(v/10)),t:m<12?n.i18n.timeNames[0]:n.i18n.timeNames[1],tt:m<12?n.i18n.timeNames[2]:n.i18n.timeNames[3],T:m<12?n.i18n.timeNames[4]:n.i18n.timeNames[5],TT:m<12?n.i18n.timeNames[6]:n.i18n.timeNames[7],Z:l?"GMT":a?"UTC":(String(s).match(t)||[""]).pop().replace(i,""),o:(b>0?"-":"+")+pad(Math.floor(Math.abs(b)/60)*100+Math.abs(b)%60,4),S:["th","st","nd","rd"][f%10>3?0:(f%100-f%10!=10)*f%10],W:w,N:S};return o.replace(e,(function(e){if(e in E){return E[e]}return e.slice(1,e.length-1)}))}}();n.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"};n.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};function pad(e,t){e=String(e);t=t||2;while(e.length{"use strict";var i=n(1669);var s=n(7604);var o=function errorEx(e,t){if(!e||e.constructor!==String){t=e||{};e=Error.name}var n=function ErrorEXError(i){if(!this){return new ErrorEXError(i)}i=i instanceof Error?i.message:i||this.message;Error.call(this,i);Error.captureStackTrace(this,n);this.name=e;Object.defineProperty(this,"message",{configurable:true,enumerable:false,get:function(){var e=i.split(/\r?\n/g);for(var n in t){if(!t.hasOwnProperty(n)){continue}var o=t[n];if("message"in o){e=o.message(this[n],e)||e;if(!s(e)){e=[e]}}}return e.join("\n")},set:function(e){i=e}});var o=null;var a=Object.getOwnPropertyDescriptor(this,"stack");var l=a.get;var u=a.value;delete a.value;delete a.writable;a.set=function(e){o=e};a.get=function(){var e=(o||(l?l.call(this):u)).split(/\r?\n+/g);if(!o){e[0]=this.name+": "+this.message}var n=1;for(var i in t){if(!t.hasOwnProperty(i)){continue}var s=t[i];if("line"in s){var a=s.line(this[i]);if(a){e.splice(n++,0," "+a)}}if("stack"in s){s.stack(this[i],e)}}return e.join("\n")};Object.defineProperty(this,"stack",a)};if(Object.setPrototypeOf){Object.setPrototypeOf(n.prototype,Error.prototype);Object.setPrototypeOf(n,Error)}else{i.inherits(n,Error)}return n};o.append=function(e,t){return{message:function(n,i){n=n||t;if(n){i[0]+=" "+e.replace("%s",n.toString())}return i}}};o.line=function(e,t){return{line:function(n){n=n||t;if(n){return e.replace("%s",n.toString())}return null}}};e.exports=o},9320:e=>{"use strict";var t="Function.prototype.bind called on incompatible ";var n=Array.prototype.slice;var i=Object.prototype.toString;var s="[object Function]";e.exports=function bind(e){var o=this;if(typeof o!=="function"||i.call(o)!==s){throw new TypeError(t+o)}var a=n.call(arguments,1);var l;var binder=function(){if(this instanceof l){var t=o.apply(this,a.concat(n.call(arguments)));if(Object(t)===t){return t}return this}else{return o.apply(e,a.concat(n.call(arguments)))}};var u=Math.max(0,o.length-a.length);var c=[];for(var f=0;f{"use strict";var i=n(9320);e.exports=Function.prototype.bind||i},854:(e,t,n)=>{"use strict";const i=n(8869);const s=n(922);e.exports=e=>{if(!e||!e.repository||typeof e.repository!=="string"&&!e.repository.url){throw new Error(`No valid "repository" data found in package metadata. Please see https://docs.npmjs.com/files/package.json#repository for proper syntax.`)}const t=typeof e.repository==="string"?e.repository:e.repository.url;return i.fromUrl(t)||s(t)}},9834:(e,t,n)=>{"use strict";const i=n(2720);const s=n(3129).execFile;const o=n(5e3);const a=n(2413);const l=n(5762);const u=n(8180);const c="------------------------ >8 ------------------------";function normalizeExecOpts(e){e=e||{};e.cwd=e.cwd||process.cwd();return e}function normalizeGitOpts(e){e=e||{};e.format=e.format||"%B";e.from=e.from||"";e.to=e.to||"HEAD";return e}function getGitArgs(e){const t=l("--format=<%= format %>%n"+c)(e);const n=[e.from,e.to].filter(Boolean).join("..");const s=["log",t,n];if(e.path){s.push("--",e.path)}return s.concat(i(e,{excludes:["debug","from","to","format","path"]}))}function gitRawCommits(e,t){const n=new a.Readable;n._read=function(){};const i=normalizeGitOpts(e);const l=normalizeExecOpts(t);const f=getGitArgs(i);if(i.debug){i.debug("Your git-log command is:\ngit "+f.join(" "))}let p=false;const h=s("git",f,{cwd:l.cwd,maxBuffer:Infinity});h.stdout.pipe(o(c+"\n")).pipe(u((function(e,t,i){n.push(e);p=false;i()}),(function(e){setImmediate((function(){if(!p){n.push(null);n.emit("close")}e()}))})));h.stderr.pipe(u.obj((function(e){p=true;n.emit("error",new Error(e));n.emit("close")})));return n}e.exports=gitRawCommits},6452:(e,t,n)=>{"use strict";const i=n(5838);const s=n(4810);e.exports=e=>s(i)(e||process.cwd()).then((e=>{var t=e.remote&&e.remote.origin&&e.remote.origin.url;if(!t){throw new Error("Couldn't find origin url")}return t}))},2408:(e,t,n)=>{"use strict";const i=n(1765);const s=n(3129).exec;const o=n(6298).valid;const a=/tag:\s*(.+?)[,)]/gi;const l="git log --decorate --no-color";const u=/.+-\w+\.\d+$/;function lernaTag(e,t){if(t&&!new RegExp("^"+t+"@").test(e)){return false}else{return/^.+@[0-9]+\.[0-9]+\.[0-9]+(-.+)?$/.test(e)}}e.exports=function gitSemverTags(e,t){if(typeof e==="function"){t=e;e={}}const n=Object.assign({maxBuffer:Infinity,cwd:i.cwd()},e);if(n.package&&!n.lernaTags){t(new Error("opts.package should only be used when running in lerna mode"));return}s(l,n,(function(e,i){if(e){t(e);return}const s=[];let l;if(n.tagPrefix){l=new RegExp("^"+n.tagPrefix+"(.*)")}i.split("\n").forEach((function(e){let t;while(t=a.exec(e)){const e=t[1];if(n.skipUnstable&&u.test(e)){continue}if(n.lernaTags){if(lernaTag(e,n.package)){s.push(e)}}else if(n.tagPrefix){const t=e.match(l);if(t&&o(t[1])){s.push(e)}}else if(o(e)){s.push(e)}}}));t(null,s)}))}},6298:(e,t)=>{t=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var s=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var a=t.re=[];var l=t.src=[];var u=t.tokens={};var c=0;function tok(e){u[e]=c++}tok("NUMERICIDENTIFIER");l[u.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");l[u.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");l[u.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");l[u.MAINVERSION]="("+l[u.NUMERICIDENTIFIER]+")\\."+"("+l[u.NUMERICIDENTIFIER]+")\\."+"("+l[u.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");l[u.MAINVERSIONLOOSE]="("+l[u.NUMERICIDENTIFIERLOOSE]+")\\."+"("+l[u.NUMERICIDENTIFIERLOOSE]+")\\."+"("+l[u.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");l[u.PRERELEASEIDENTIFIER]="(?:"+l[u.NUMERICIDENTIFIER]+"|"+l[u.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");l[u.PRERELEASEIDENTIFIERLOOSE]="(?:"+l[u.NUMERICIDENTIFIERLOOSE]+"|"+l[u.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");l[u.PRERELEASE]="(?:-("+l[u.PRERELEASEIDENTIFIER]+"(?:\\."+l[u.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");l[u.PRERELEASELOOSE]="(?:-?("+l[u.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+l[u.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");l[u.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");l[u.BUILD]="(?:\\+("+l[u.BUILDIDENTIFIER]+"(?:\\."+l[u.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");l[u.FULLPLAIN]="v?"+l[u.MAINVERSION]+l[u.PRERELEASE]+"?"+l[u.BUILD]+"?";l[u.FULL]="^"+l[u.FULLPLAIN]+"$";tok("LOOSEPLAIN");l[u.LOOSEPLAIN]="[v=\\s]*"+l[u.MAINVERSIONLOOSE]+l[u.PRERELEASELOOSE]+"?"+l[u.BUILD]+"?";tok("LOOSE");l[u.LOOSE]="^"+l[u.LOOSEPLAIN]+"$";tok("GTLT");l[u.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");l[u.XRANGEIDENTIFIERLOOSE]=l[u.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");l[u.XRANGEIDENTIFIER]=l[u.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");l[u.XRANGEPLAIN]="[v=\\s]*("+l[u.XRANGEIDENTIFIER]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIER]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIER]+")"+"(?:"+l[u.PRERELEASE]+")?"+l[u.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");l[u.XRANGEPLAINLOOSE]="[v=\\s]*("+l[u.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+l[u.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+l[u.PRERELEASELOOSE]+")?"+l[u.BUILD]+"?"+")?)?";tok("XRANGE");l[u.XRANGE]="^"+l[u.GTLT]+"\\s*"+l[u.XRANGEPLAIN]+"$";tok("XRANGELOOSE");l[u.XRANGELOOSE]="^"+l[u.GTLT]+"\\s*"+l[u.XRANGEPLAINLOOSE]+"$";tok("COERCE");l[u.COERCE]="(^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");a[u.COERCERTL]=new RegExp(l[u.COERCE],"g");tok("LONETILDE");l[u.LONETILDE]="(?:~>?)";tok("TILDETRIM");l[u.TILDETRIM]="(\\s*)"+l[u.LONETILDE]+"\\s+";a[u.TILDETRIM]=new RegExp(l[u.TILDETRIM],"g");var f="$1~";tok("TILDE");l[u.TILDE]="^"+l[u.LONETILDE]+l[u.XRANGEPLAIN]+"$";tok("TILDELOOSE");l[u.TILDELOOSE]="^"+l[u.LONETILDE]+l[u.XRANGEPLAINLOOSE]+"$";tok("LONECARET");l[u.LONECARET]="(?:\\^)";tok("CARETTRIM");l[u.CARETTRIM]="(\\s*)"+l[u.LONECARET]+"\\s+";a[u.CARETTRIM]=new RegExp(l[u.CARETTRIM],"g");var p="$1^";tok("CARET");l[u.CARET]="^"+l[u.LONECARET]+l[u.XRANGEPLAIN]+"$";tok("CARETLOOSE");l[u.CARETLOOSE]="^"+l[u.LONECARET]+l[u.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");l[u.COMPARATORLOOSE]="^"+l[u.GTLT]+"\\s*("+l[u.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");l[u.COMPARATOR]="^"+l[u.GTLT]+"\\s*("+l[u.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");l[u.COMPARATORTRIM]="(\\s*)"+l[u.GTLT]+"\\s*("+l[u.LOOSEPLAIN]+"|"+l[u.XRANGEPLAIN]+")";a[u.COMPARATORTRIM]=new RegExp(l[u.COMPARATORTRIM],"g");var h="$1$2$3";tok("HYPHENRANGE");l[u.HYPHENRANGE]="^\\s*("+l[u.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+l[u.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");l[u.HYPHENRANGELOOSE]="^\\s*("+l[u.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+l[u.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");l[u.STAR]="(<|>)?=?\\s*\\*";for(var d=0;di){return null}var n=t.loose?a[u.LOOSE]:a[u.FULL];if(!n.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var n=parse(e,t);return n?n.version:null}t.clean=clean;function clean(e,t){var n=parse(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;var o=e.trim().match(t.loose?a[u.LOOSE]:a[u.FULL]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>s||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>s||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>s||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,n,i){if(typeof n==="string"){i=n;n=undefined}try{return new SemVer(e,n).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var n=parse(e);var i=parse(t);var s="";if(n.prerelease.length||i.prerelease.length){s="pre";var o="prerelease"}for(var a in n){if(a==="major"||a==="minor"||a==="patch"){if(n[a]!==i[a]){return s+a}}}return o}}t.compareIdentifiers=compareIdentifiers;var m=/^[0-9]+$/;function compareIdentifiers(e,t){var n=m.test(e);var i=m.test(t);if(n&&i){e=+e;t=+t}return e===t?0:n&&!i?-1:i&&!n?1:e0}t.lt=lt;function lt(e,t,n){return compare(e,t,n)<0}t.eq=eq;function eq(e,t,n){return compare(e,t,n)===0}t.neq=neq;function neq(e,t,n){return compare(e,t,n)!==0}t.gte=gte;function gte(e,t,n){return compare(e,t,n)>=0}t.lte=lte;function lte(e,t,n){return compare(e,t,n)<=0}t.cmp=cmp;function cmp(e,t,n,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,i);case"!=":return neq(e,n,i);case">":return gt(e,n,i);case">=":return gte(e,n,i);case"<":return lt(e,n,i);case"<=":return lte(e,n,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===g){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var g={};Comparator.prototype.parse=function(e){var t=this.options.loose?a[u.COMPARATORLOOSE]:a[u.COMPARATOR];var n=e.match(t);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=g}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===g||e===g){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var n;if(this.operator===""){if(this.value===""){return true}n=new Range(e.value,t);return satisfies(this.value,n,t)}else if(e.operator===""){if(e.value===""){return true}n=new Range(this.value,t);return satisfies(e.semver,n,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var l=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var u=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||s||o&&a||l||u};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var i=t?a[u.HYPHENRANGELOOSE]:a[u.HYPHENRANGE];e=e.replace(i,hyphenReplace);n("hyphen replace",e);e=e.replace(a[u.COMPARATORTRIM],h);n("comparator trim",e,a[u.COMPARATORTRIM]);e=e.replace(a[u.TILDETRIM],f);e=e.replace(a[u.CARETTRIM],p);e=e.split(/\s+/).join(" ");var s=t?a[u.COMPARATORLOOSE]:a[u.COMPARATOR];var o=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter((function(e){return!!e.match(s)}))}o=o.map((function(e){return new Comparator(e,this.options)}),this);return o};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(n){return isSatisfiable(n,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var n=true;var i=e.slice();var s=i.pop();while(n&&i.length){n=i.every((function(e){return s.intersects(e,t)}));s=i.pop()}return n}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){n("comp",e,t);e=replaceCarets(e,t);n("caret",e);e=replaceTildes(e,t);n("tildes",e);e=replaceXRanges(e,t);n("xrange",e);e=replaceStars(e,t);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var i=t.loose?a[u.TILDELOOSE]:a[u.TILDE];return e.replace(i,(function(t,i,s,o,a){n("tilde",e,t,i,s,o,a);var l;if(isX(i)){l=""}else if(isX(s)){l=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(o)){l=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else if(a){n("replaceTilde pr",a);l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+(+s+1)+".0"}else{l=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0"}n("tilde return",l);return l}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){n("caret",e,t);var i=t.loose?a[u.CARETLOOSE]:a[u.CARET];return e.replace(i,(function(t,i,s,o,a){n("caret",e,t,i,s,o,a);var l;if(isX(i)){l=""}else if(isX(s)){l=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(o)){if(i==="0"){l=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else{l=">="+i+"."+s+".0 <"+(+i+1)+".0.0"}}else if(a){n("replaceCaret pr",a);if(i==="0"){if(s==="0"){l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+s+"."+(+o+1)}else{l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+(+s+1)+".0"}}else{l=">="+i+"."+s+"."+o+"-"+a+" <"+(+i+1)+".0.0"}}else{n("no pr");if(i==="0"){if(s==="0"){l=">="+i+"."+s+"."+o+" <"+i+"."+s+"."+(+o+1)}else{l=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0"}}else{l=">="+i+"."+s+"."+o+" <"+(+i+1)+".0.0"}}n("caret return",l);return l}))}function replaceXRanges(e,t){n("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?a[u.XRANGELOOSE]:a[u.XRANGE];return e.replace(i,(function(i,s,o,a,l,u){n("xRange",e,i,s,o,a,l,u);var c=isX(o);var f=c||isX(a);var p=f||isX(l);var h=p;if(s==="="&&h){s=""}u=t.includePrerelease?"-0":"";if(c){if(s===">"||s==="<"){i="<0.0.0-0"}else{i="*"}}else if(s&&h){if(f){a=0}l=0;if(s===">"){s=">=";if(f){o=+o+1;a=0;l=0}else{a=+a+1;l=0}}else if(s==="<="){s="<";if(f){o=+o+1}else{a=+a+1}}i=s+o+"."+a+"."+l+u}else if(f){i=">="+o+".0.0"+u+" <"+(+o+1)+".0.0"+u}else if(p){i=">="+o+"."+a+".0"+u+" <"+o+"."+(+a+1)+".0"+u}n("xRange return",i);return i}))}function replaceStars(e,t){n("replaceStars",e,t);return e.trim().replace(a[u.STAR],"")}function hyphenReplace(e,t,n,i,s,o,a,l,u,c,f,p,h){if(isX(n)){t=""}else if(isX(i)){t=">="+n+".0.0"}else if(isX(s)){t=">="+n+"."+i+".0"}else{t=">="+t}if(isX(u)){l=""}else if(isX(c)){l="<"+(+u+1)+".0.0"}else if(isX(f)){l="<"+u+"."+(+c+1)+".0"}else if(p){l="<="+u+"."+c+"."+f+"-"+p}else{l="<="+l}return(t+" "+l).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var o=e[s].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,n){try{t=new Range(t,n)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,n){var i=null;var s=null;try{var o=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!i||s.compare(e)===-1){i=e;s=new SemVer(i,n)}}}));return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,n){var i=null;var s=null;try{var o=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!i||s.compare(e)===1){i=e;s=new SemVer(i,n)}}}));return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||gt(n,t)){n=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n)){return n}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,n){return outside(e,t,"<",n)}t.gtr=gtr;function gtr(e,t,n){return outside(e,t,">",n)}t.outside=outside;function outside(e,t,n,i){e=new SemVer(e,i);t=new Range(t,i);var s,o,a,l,u;switch(n){case">":s=gt;o=lte;a=lt;l=">";u=">=";break;case"<":s=lt;o=gte;a=gt;l="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var c=0;c=0.0.0")}p=p||e;h=h||e;if(s(e.semver,p.semver,i)){p=e}else if(a(e.semver,h.semver,i)){h=e}}));if(p.operator===l||p.operator===u){return false}if((!h.operator||h.operator===l)&&o(e,h.semver)){return false}else if(h.operator===u&&a(e,h.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var n=parse(e,t);return n&&n.prerelease.length?n.prerelease:null}t.intersects=intersects;function intersects(e,t,n){e=new Range(e,n);t=new Range(t,n);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var n=null;if(!t.rtl){n=e.match(a[u.COERCE])}else{var i;while((i=a[u.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}a[u.COERCERTL].lastIndex=i.index+i[1].length+i[2].length}a[u.COERCERTL].lastIndex=-1}if(n===null){return null}return parse(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},5838:(e,t,n)=>{var i=n(5747);var s=n(8885);var o=n(5622);e.exports=function(e,t){findGit(e,(function(n){if(!n)return t(new Error("no gitconfig to be found at "+e));i.readFile(n,(function(e,n){if(e)return t(e);try{var i=format(s.parse(n.toString()))}catch(e){return t(e)}t(false,i)}))}))};function format(e){var t={};Object.keys(e).forEach((function(n){if(n.indexOf('"')>-1){var i=n.split('"');var s=i.shift().trim();var o=i.shift().trim();if(!t[s])t[s]={};t[s][o]=e[n]}else{t[n]=e[n]}}));return t}function findGit(e,t){var n=o.join(e,".git/config");i.exists(n,(function(i){if(i)return t(n);if(e===o.resolve(e,".."))return t(false);findGit(o.resolve(e,".."),t)}))}},7356:e=>{"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var n={__proto__:t(e)};else var n=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}));return n}},7758:(e,t,n)=>{var i=n(5747);var s=n(263);var o=n(3086);var a=n(7356);var l=n(1669);var u;var c;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");c=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";c="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,u,{get:function(){return t}})}var f=noop;if(l.debuglog)f=l.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))f=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!i[u]){var p=global[u]||[];publishQueue(i,p);i.close=function(e){function close(t,n){return e.call(i,t,(function(e){if(!e){resetQueue()}if(typeof n==="function")n.apply(this,arguments)}))}Object.defineProperty(close,c,{value:e});return close}(i.close);i.closeSync=function(e){function closeSync(t){e.apply(i,arguments);resetQueue()}Object.defineProperty(closeSync,c,{value:e});return closeSync}(i.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){f(i[u]);n(2357).equal(i[u].length,0)}))}}if(!global[u]){publishQueue(global,i[u])}e.exports=patch(a(i));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched){e.exports=patch(i);i.__patched=true}function patch(e){s(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,n,i){if(typeof n==="function")i=n,n=null;return go$readFile(e,n,i);function go$readFile(e,n,i,s){return t(e,n,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,n,i],t,s||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var n=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,i,s){if(typeof i==="function")s=i,i=null;return go$writeFile(e,t,i,s);function go$writeFile(e,t,i,s,o){return n(e,t,i,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$writeFile,[e,t,i,s],n,o||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}var i=e.appendFile;if(i)e.appendFile=appendFile;function appendFile(e,t,n,s){if(typeof n==="function")s=n,n=null;return go$appendFile(e,t,n,s);function go$appendFile(e,t,n,s,o){return i(e,t,n,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$appendFile,[e,t,n,s],i,o||Date.now(),Date.now()]);else{if(typeof s==="function")s.apply(this,arguments)}}))}}var a=e.copyFile;if(a)e.copyFile=copyFile;function copyFile(e,t,n,i){if(typeof n==="function"){i=n;n=0}return go$copyFile(e,t,n,i);function go$copyFile(e,t,n,i,s){return a(e,t,n,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$copyFile,[e,t,n,i],o,s||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var l=e.readdir;e.readdir=readdir;function readdir(e,t,n){if(typeof t==="function")n=t,t=null;return go$readdir(e,t,n);function go$readdir(e,t,n,i){return l(e,t,(function(s,o){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$readdir,[e,t,n],s,i||Date.now(),Date.now()]);else{if(o&&o.sort)o.sort();if(typeof n==="function")n.call(this,s,o)}}))}}if(process.version.substr(0,4)==="v0.8"){var u=o(e);ReadStream=u.ReadStream;WriteStream=u.WriteStream}var c=e.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var f=e.WriteStream;if(f){WriteStream.prototype=Object.create(f.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var p=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});var h=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,n){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=n;e.emit("open",n);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return f.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,n){if(t){e.destroy();e.emit("error",t)}else{e.fd=n;e.emit("open",n)}}))}function createReadStream(t,n){return new e.ReadStream(t,n)}function createWriteStream(t,n){return new e.WriteStream(t,n)}var d=e.open;e.open=open;function open(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$open(e,t,n,i);function go$open(e,t,n,i,s){return d(e,t,n,(function(o,a){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,n,i],o,s||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}return e}function enqueue(e){f("ENQUEUE",e[0].name,e[1]);i[u].push(e);retry()}var h;function resetQueue(){var e=Date.now();for(var t=0;t2){i[u][t][3]=e;i[u][t][4]=e}}retry()}function retry(){clearTimeout(h);h=undefined;if(i[u].length===0)return;var e=i[u].shift();var t=e[0];var n=e[1];var s=e[2];var o=e[3];var a=e[4];if(o===undefined){f("RETRY",t.name,n);t.apply(null,n)}else if(Date.now()-o>=6e4){f("TIMEOUT",t.name,n);var l=n.pop();if(typeof l==="function")l.call(null,s)}else{var c=Date.now()-a;var p=Math.max(a-o,1);var d=Math.min(p*1.2,100);if(c>=d){f("RETRY",t.name,n);t.apply(null,n.concat([o]))}else{i[u].push(e)}}if(h===undefined){h=setTimeout(retry,0)}}},3086:(e,t,n)=>{var i=n(2413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,n){if(!(this instanceof ReadStream))return new ReadStream(t,n);i.call(this);var s=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;n=n||{};var o=Object.keys(n);for(var a=0,l=o.length;athis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){s._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){s.emit("error",e);s.readable=false;return}s.fd=t;s.emit("open",t);s._read()}))}function WriteStream(t,n){if(!(this instanceof WriteStream))return new WriteStream(t,n);i.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;n=n||{};var s=Object.keys(n);for(var o=0,a=s.length;o= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:(e,t,n)=>{var i=n(7619);var s=process.cwd;var o=null;var a=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!o)o=s.call(process);return o};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var l=process.chdir;process.chdir=function(e){o=null;l.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,l)}e.exports=patch;function patch(e){if(i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,n){if(n)process.nextTick(n)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,n,i){if(i)process.nextTick(i)};e.lchownSync=function(){}}if(a==="win32"){e.rename=function(t){return function(n,i,s){var o=Date.now();var a=0;t(n,i,(function CB(l){if(l&&(l.code==="EACCES"||l.code==="EPERM")&&Date.now()-o<6e4){setTimeout((function(){e.stat(i,(function(e,o){if(e&&e.code==="ENOENT")t(n,i,CB);else s(l)}))}),a);if(a<100)a+=10;return}if(s)s(l)}))}}(e.rename)}e.read=function(t){function read(n,i,s,o,a,l){var u;if(l&&typeof l==="function"){var c=0;u=function(f,p,h){if(f&&f.code==="EAGAIN"&&c<10){c++;return t.call(e,n,i,s,o,a,u)}l.apply(this,arguments)}}return t.call(e,n,i,s,o,a,u)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=function(t){return function(n,i,s,o,a){var l=0;while(true){try{return t.call(e,n,i,s,o,a)}catch(e){if(e.code==="EAGAIN"&&l<10){l++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,n,s){e.open(t,i.O_WRONLY|i.O_SYMLINK,n,(function(t,i){if(t){if(s)s(t);return}e.fchmod(i,n,(function(t){e.close(i,(function(e){if(s)s(t||e)}))}))}))};e.lchmodSync=function(t,n){var s=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,n);var o=true;var a;try{a=e.fchmodSync(s,n);o=false}finally{if(o){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return a}}function patchLutimes(e){if(i.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,n,s,o){e.open(t,i.O_SYMLINK,(function(t,i){if(t){if(o)o(t);return}e.futimes(i,n,s,(function(t){e.close(i,(function(e){if(o)o(t||e)}))}))}))};e.lutimesSync=function(t,n,s){var o=e.openSync(t,i.O_SYMLINK);var a;var l=true;try{a=e.futimesSync(o,n,s);l=false}finally{if(l){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return a}}else{e.lutimes=function(e,t,n,i){if(i)process.nextTick(i)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(n,i,s){return t.call(e,n,i,(function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(n,i){try{return t.call(e,n,i)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(n,i,s,o){return t.call(e,n,i,s,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(n,i,s){try{return t.call(e,n,i,s)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(n,i,s){if(typeof i==="function"){s=i;i=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(s)s.apply(this,arguments)}return i?t.call(e,n,i,callback):t.call(e,n,callback)}}function statFixSync(t){if(!t)return t;return function(n,i){var s=i?t.call(e,n,i):t.call(e,n);if(s.uid<0)s.uid+=4294967296;if(s.gid<0)s.gid+=4294967296;return s}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},6956:(e,t,n)=>{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(7390);var s=_interopRequireDefault(i);var o=n(9211);var a=_interopRequireDefault(o);var l=n(1475);var u=n(9081);var c=n(1617);var f=_interopRequireDefault(c);var p=n(4166);var h=_interopRequireDefault(p);var d=n(1983);var m=_interopRequireDefault(d);var g=s["default"].create;function create(){var e=g();e.compile=function(t,n){return u.compile(t,n,e)};e.precompile=function(t,n){return u.precompile(t,n,e)};e.AST=a["default"];e.Compiler=u.Compiler;e.JavaScriptCompiler=f["default"];e.Parser=l.parser;e.parse=l.parse;e.parseWithoutProcessing=l.parseWithoutProcessing;return e}var y=create();y.create=create;m["default"](y);y.Visitor=h["default"];y["default"]=y;t.default=y;e.exports=t["default"]},7390:(e,t,n)=>{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t["default"]=e;return t}}var i=n(4211);var s=_interopRequireWildcard(i);var o=n(3296);var a=_interopRequireDefault(o);var l=n(2879);var u=_interopRequireDefault(l);var c=n(1437);var f=_interopRequireWildcard(c);var p=n(7663);var h=_interopRequireWildcard(p);var d=n(1983);var m=_interopRequireDefault(d);function create(){var e=new s.HandlebarsEnvironment;f.extend(e,s);e.SafeString=a["default"];e.Exception=u["default"];e.Utils=f;e.escapeExpression=f.escapeExpression;e.VM=h;e.template=function(t){return h.template(t,e)};return e}var g=create();g.create=create;m["default"](g);g["default"]=g;t.default=g;e.exports=t["default"]},4211:(e,t,n)=>{"use strict";t.__esModule=true;t.HandlebarsEnvironment=HandlebarsEnvironment;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(1437);var s=n(2879);var o=_interopRequireDefault(s);var a=n(3066);var l=n(4168);var u=n(7142);var c=_interopRequireDefault(u);var f=n(6066);var p="4.7.7";t.VERSION=p;var h=8;t.COMPILER_REVISION=h;var d=7;t.LAST_COMPATIBLE_COMPILER_REVISION=d;var m={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};t.REVISION_CHANGES=m;var g="[object Object]";function HandlebarsEnvironment(e,t,n){this.helpers=e||{};this.partials=t||{};this.decorators=n||{};a.registerDefaultHelpers(this);l.registerDefaultDecorators(this)}HandlebarsEnvironment.prototype={constructor:HandlebarsEnvironment,logger:c["default"],log:c["default"].log,registerHelper:function registerHelper(e,t){if(i.toString.call(e)===g){if(t){throw new o["default"]("Arg not supported with multiple helpers")}i.extend(this.helpers,e)}else{this.helpers[e]=t}},unregisterHelper:function unregisterHelper(e){delete this.helpers[e]},registerPartial:function registerPartial(e,t){if(i.toString.call(e)===g){i.extend(this.partials,e)}else{if(typeof t==="undefined"){throw new o["default"]('Attempting to register a partial called "'+e+'" as undefined')}this.partials[e]=t}},unregisterPartial:function unregisterPartial(e){delete this.partials[e]},registerDecorator:function registerDecorator(e,t){if(i.toString.call(e)===g){if(t){throw new o["default"]("Arg not supported with multiple decorators")}i.extend(this.decorators,e)}else{this.decorators[e]=t}},unregisterDecorator:function unregisterDecorator(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function resetLoggedPropertyAccesses(){f.resetLoggedProperties()}};var y=c["default"].log;t.log=y;t.createFrame=i.createFrame;t.logger=c["default"]},9211:(e,t)=>{"use strict";t.__esModule=true;var n={helpers:{helperExpression:function helperExpression(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.params.length||e.hash)},scopedId:function scopedId(e){return/^\.|this\b/.test(e.original)},simpleId:function simpleId(e){return e.parts.length===1&&!n.helpers.scopedId(e)&&!e.depth}}};t.default=n;e.exports=t["default"]},1475:(e,t,n)=>{"use strict";t.__esModule=true;t.parseWithoutProcessing=parseWithoutProcessing;t.parse=parse;function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t["default"]=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(5505);var s=_interopRequireDefault(i);var o=n(5200);var a=_interopRequireDefault(o);var l=n(4706);var u=_interopRequireWildcard(l);var c=n(1437);t.parser=s["default"];var f={};c.extend(f,u);function parseWithoutProcessing(e,t){if(e.type==="Program"){return e}s["default"].yy=f;f.locInfo=function(e){return new f.SourceLocation(t&&t.srcName,e)};var n=s["default"].parse(e);return n}function parse(e,t){var n=parseWithoutProcessing(e,t);var i=new a["default"](t);return i.accept(n)}},3612:(e,t,n)=>{"use strict";t.__esModule=true;var i=n(1437);var s=undefined;try{if(typeof define!=="function"||!define.amd){var o=n(6594);s=o.SourceNode}}catch(e){}if(!s){s=function(e,t,n,i){this.src="";if(i){this.add(i)}};s.prototype={add:function add(e){if(i.isArray(e)){e=e.join("")}this.src+=e},prepend:function prepend(e){if(i.isArray(e)){e=e.join("")}this.src=e+this.src},toStringWithSourceMap:function toStringWithSourceMap(){return{code:this.toString()}},toString:function toString(){return this.src}}}function castChunk(e,t,n){if(i.isArray(e)){var s=[];for(var o=0,a=e.length;o{"use strict";t.__esModule=true;t.Compiler=Compiler;t.precompile=precompile;t.compile=compile;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(2879);var s=_interopRequireDefault(i);var o=n(1437);var a=n(9211);var l=_interopRequireDefault(a);var u=[].slice;function Compiler(){}Compiler.prototype={compiler:Compiler,equals:function equals(e){var t=this.opcodes.length;if(e.opcodes.length!==t){return false}for(var n=0;n1){throw new s["default"]("Unsupported number of partial arguments: "+n.length,e)}else if(!n.length){if(this.options.explicitPartialContext){this.opcode("pushLiteral","undefined")}else{n.push({type:"PathExpression",parts:[],depth:0})}}var i=e.name.original,o=e.name.type==="SubExpression";if(o){this.accept(e.name)}this.setupFullMustacheParams(e,t,undefined,true);var a=e.indent||"";if(this.options.preventIndent&&a){this.opcode("appendContent",a);a=""}this.opcode("invokePartial",o,i,a);this.opcode("append")},PartialBlockStatement:function PartialBlockStatement(e){this.PartialStatement(e)},MustacheStatement:function MustacheStatement(e){this.SubExpression(e);if(e.escaped&&!this.options.noEscape){this.opcode("appendEscaped")}else{this.opcode("append")}},Decorator:function Decorator(e){this.DecoratorBlock(e)},ContentStatement:function ContentStatement(e){if(e.value){this.opcode("appendContent",e.value)}},CommentStatement:function CommentStatement(){},SubExpression:function SubExpression(e){transformLiteralToPath(e);var t=this.classifySexpr(e);if(t==="simple"){this.simpleSexpr(e)}else if(t==="helper"){this.helperSexpr(e)}else{this.ambiguousSexpr(e)}},ambiguousSexpr:function ambiguousSexpr(e,t,n){var i=e.path,s=i.parts[0],o=t!=null||n!=null;this.opcode("getContext",i.depth);this.opcode("pushProgram",t);this.opcode("pushProgram",n);i.strict=true;this.accept(i);this.opcode("invokeAmbiguous",s,o)},simpleSexpr:function simpleSexpr(e){var t=e.path;t.strict=true;this.accept(t);this.opcode("resolvePossibleLambda")},helperSexpr:function helperSexpr(e,t,n){var i=this.setupFullMustacheParams(e,t,n),o=e.path,a=o.parts[0];if(this.options.knownHelpers[a]){this.opcode("invokeKnownHelper",i.length,a)}else if(this.options.knownHelpersOnly){throw new s["default"]("You specified knownHelpersOnly, but used the unknown helper "+a,e)}else{o.strict=true;o.falsy=true;this.accept(o);this.opcode("invokeHelper",i.length,o.original,l["default"].helpers.simpleId(o))}},PathExpression:function PathExpression(e){this.addDepth(e.depth);this.opcode("getContext",e.depth);var t=e.parts[0],n=l["default"].helpers.scopedId(e),i=!e.depth&&!n&&this.blockParamIndex(t);if(i){this.opcode("lookupBlockParam",i,e.parts)}else if(!t){this.opcode("pushContext")}else if(e.data){this.options.data=true;this.opcode("lookupData",e.depth,e.parts,e.strict)}else{this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n)}},StringLiteral:function StringLiteral(e){this.opcode("pushString",e.value)},NumberLiteral:function NumberLiteral(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function BooleanLiteral(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function UndefinedLiteral(){this.opcode("pushLiteral","undefined")},NullLiteral:function NullLiteral(){this.opcode("pushLiteral","null")},Hash:function Hash(e){var t=e.pairs,n=0,i=t.length;this.opcode("pushHash");for(;n=0){return[t,s]}}}};function precompile(e,t,n){if(e==null||typeof e!=="string"&&e.type!=="Program"){throw new s["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e)}t=t||{};if(!("data"in t)){t.data=true}if(t.compat){t.useDepths=true}var i=n.parse(e,t),o=(new n.Compiler).compile(i,t);return(new n.JavaScriptCompiler).compile(o,t)}function compile(e,t,n){if(t===undefined)t={};if(e==null||typeof e!=="string"&&e.type!=="Program"){throw new s["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e)}t=o.extend({},t);if(!("data"in t)){t.data=true}if(t.compat){t.useDepths=true}var i=undefined;function compileInput(){var i=n.parse(e,t),s=(new n.Compiler).compile(i,t),o=(new n.JavaScriptCompiler).compile(s,t,undefined,true);return n.template(o)}function ret(e,t){if(!i){i=compileInput()}return i.call(this,e,t)}ret._setup=function(e){if(!i){i=compileInput()}return i._setup(e)};ret._child=function(e,t,n,s){if(!i){i=compileInput()}return i._child(e,t,n,s)};return ret}function argEquals(e,t){if(e===t){return true}if(o.isArray(e)&&o.isArray(t)&&e.length===t.length){for(var n=0;n{"use strict";t.__esModule=true;t.SourceLocation=SourceLocation;t.id=id;t.stripFlags=stripFlags;t.stripComment=stripComment;t.preparePath=preparePath;t.prepareMustache=prepareMustache;t.prepareRawBlock=prepareRawBlock;t.prepareBlock=prepareBlock;t.prepareProgram=prepareProgram;t.preparePartialBlock=preparePartialBlock;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(2879);var s=_interopRequireDefault(i);function validateClose(e,t){t=t.path?t.path.original:t;if(e.path.original!==t){var n={loc:e.path.loc};throw new s["default"](e.path.original+" doesn't match "+t,n)}}function SourceLocation(e,t){this.source=e;this.start={line:t.first_line,column:t.first_column};this.end={line:t.last_line,column:t.last_column}}function id(e){if(/^\[.*\]$/.test(e)){return e.substring(1,e.length-1)}else{return e}}function stripFlags(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function stripComment(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function preparePath(e,t,n){n=this.locInfo(n);var i=e?"@":"",o=[],a=0;for(var l=0,u=t.length;l0){throw new s["default"]("Invalid path: "+i,{loc:n})}else if(c===".."){a++}}else{o.push(c)}}return{type:"PathExpression",data:e,depth:a,parts:o,original:i,loc:n}}function prepareMustache(e,t,n,i,s,o){var a=i.charAt(3)||i.charAt(2),l=a!=="{"&&a!=="&";var u=/\*/.test(i);return{type:u?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:s,loc:this.locInfo(o)}}function prepareRawBlock(e,t,n,i){validateClose(e,n);i=this.locInfo(i);var s={type:"Program",body:t,strip:{},loc:i};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:i}}function prepareBlock(e,t,n,i,o,a){if(i&&i.path){validateClose(e,i)}var l=/\*/.test(e.open);t.blockParams=e.blockParams;var u=undefined,c=undefined;if(n){if(l){throw new s["default"]("Unexpected inverse block on decorator",n)}if(n.chain){n.program.body[0].closeStrip=i.strip}c=n.strip;u=n.program}if(o){o=u;u=t;t=o}return{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:u,openStrip:e.strip,inverseStrip:c,closeStrip:i&&i.strip,loc:this.locInfo(a)}}function prepareProgram(e,t){if(!t&&e.length){var n=e[0].loc,i=e[e.length-1].loc;if(n&&i){t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:i.end.line,column:i.end.column}}}}return{type:"Program",body:e,strip:{},loc:t}}function preparePartialBlock(e,t,n,i){validateClose(e,n);return{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(i)}}},1617:(e,t,n)=>{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(4211);var s=n(2879);var o=_interopRequireDefault(s);var a=n(1437);var l=n(3612);var u=_interopRequireDefault(l);function Literal(e){this.value=e}function JavaScriptCompiler(){}JavaScriptCompiler.prototype={nameLookup:function nameLookup(e,t){return this.internalNameLookup(e,t)},depthedLookup:function depthedLookup(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function compilerInfo(){var e=i.COMPILER_REVISION,t=i.REVISION_CHANGES[e];return[e,t]},appendToBuffer:function appendToBuffer(e,t,n){if(!a.isArray(e)){e=[e]}e=this.source.wrap(e,t);if(this.environment.isSimple){return["return ",e,";"]}else if(n){return["buffer += ",e,";"]}else{e.appendToBuffer=true;return e}},initializeBuffer:function initializeBuffer(){return this.quotedString("")},internalNameLookup:function internalNameLookup(e,t){this.lookupPropertyFunctionIsUsed=true;return["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:false,compile:function compile(e,t,n,i){this.environment=e;this.options=t;this.stringParams=this.options.stringParams;this.trackIds=this.options.trackIds;this.precompile=!i;this.name=this.environment.name;this.isChild=!!n;this.context=n||{decorators:[],programs:[],environments:[]};this.preamble();this.stackSlot=0;this.stackVars=[];this.aliases={};this.registers={list:[]};this.hashes=[];this.compileStack=[];this.inlineStack=[];this.blockParams=[];this.compileChildren(e,t);this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat;this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=undefined,l=undefined,u=undefined,c=undefined;for(u=0,c=s.length;u0){n+=", "+i.join(", ")}var s=0;Object.keys(this.aliases).forEach((function(e){var i=t.aliases[e];if(i.children&&i.referenceCount>1){n+=", alias"+ ++s+"="+e;i.children[0]="alias"+s}}));if(this.lookupPropertyFunctionIsUsed){n+=", "+this.lookupPropertyFunctionVarDeclaration()}var o=["container","depth0","helpers","partials","data"];if(this.useBlockParams||this.useDepths){o.push("blockParams")}if(this.useDepths){o.push("depths")}var a=this.mergeSource(n);if(e){o.push(a);return Function.apply(this,o)}else{return this.source.wrap(["function(",o.join(","),") {\n ",a,"}"])}},mergeSource:function mergeSource(e){var t=this.environment.isSimple,n=!this.forceBuffer,i=undefined,s=undefined,o=undefined,a=undefined;this.source.each((function(e){if(e.appendToBuffer){if(o){e.prepend(" + ")}else{o=e}a=e}else{if(o){if(!s){i=true}else{o.prepend("buffer += ")}a.add(";");o=a=undefined}s=true;if(!t){n=false}}}));if(n){if(o){o.prepend("return ");a.add(";")}else if(!s){this.source.push('return "";')}}else{e+=", buffer = "+(i?"":this.initializeBuffer());if(o){o.prepend("return buffer + ");a.add(";")}else{this.source.push("return buffer;")}}if(e){this.source.prepend("var "+e.substring(2)+(i?"":";\n"))}return this.source.merge()},lookupPropertyFunctionVarDeclaration:function lookupPropertyFunctionVarDeclaration(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function blockValue(e){var t=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var i=this.popStack();n.splice(1,0,i);this.push(this.source.functionCall(t,"call",n))},ambiguousBlockValue:function ambiguousBlockValue(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,true);this.flushInline();var n=this.topStack();t.splice(1,0,n);this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function appendContent(e){if(this.pendingContent){e=this.pendingContent+e}else{this.pendingLocation=this.source.currentLocation}this.pendingContent=e},append:function append(){if(this.isInline()){this.replaceStack((function(e){return[" != null ? ",e,' : ""']}));this.pushSource(this.appendToBuffer(this.popStack()))}else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,undefined,true)," }"]);if(this.environment.isSimple){this.pushSource(["else { ",this.appendToBuffer("''",undefined,true)," }"])}}},appendEscaped:function appendEscaped(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function getContext(e){this.lastContext=e},pushContext:function pushContext(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function lookupOnContext(e,t,n,i){var s=0;if(!i&&this.options.compat&&!this.lastContext){this.push(this.depthedLookup(e[s++]))}else{this.pushContext()}this.resolvePath("context",e,s,t,n)},lookupBlockParam:function lookupBlockParam(e,t){this.useBlockParams=true;this.push(["blockParams[",e[0],"][",e[1],"]"]);this.resolvePath("context",t,1)},lookupData:function lookupData(e,t,n){if(!e){this.pushStackLiteral("data")}else{this.pushStackLiteral("container.data(data, "+e+")")}this.resolvePath("data",t,0,true,n)},resolvePath:function resolvePath(e,t,n,i,s){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(strictLookup(this.options.strict&&s,this,t,e));return}var a=t.length;for(;nthis.stackVars.length){this.stackVars.push("stack"+this.stackSlot)}return this.topStackName()},topStackName:function topStackName(){return"stack"+this.stackSlot},flushInline:function flushInline(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,n=e.length;t{"use strict";t.__esModule=true;var n=function(){var e={trace:function trace(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function anonymous(e,t,n,i,s,o,a){var l=o.length-1;switch(s){case 1:return o[l-1];break;case 2:this.$=i.prepareProgram(o[l]);break;case 3:this.$=o[l];break;case 4:this.$=o[l];break;case 5:this.$=o[l];break;case 6:this.$=o[l];break;case 7:this.$=o[l];break;case 8:this.$=o[l];break;case 9:this.$={type:"CommentStatement",value:i.stripComment(o[l]),strip:i.stripFlags(o[l],o[l]),loc:i.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:o[l],value:o[l],loc:i.locInfo(this._$)};break;case 11:this.$=i.prepareRawBlock(o[l-2],o[l-1],o[l],this._$);break;case 12:this.$={path:o[l-3],params:o[l-2],hash:o[l-1]};break;case 13:this.$=i.prepareBlock(o[l-3],o[l-2],o[l-1],o[l],false,this._$);break;case 14:this.$=i.prepareBlock(o[l-3],o[l-2],o[l-1],o[l],true,this._$);break;case 15:this.$={open:o[l-5],path:o[l-4],params:o[l-3],hash:o[l-2],blockParams:o[l-1],strip:i.stripFlags(o[l-5],o[l])};break;case 16:this.$={path:o[l-4],params:o[l-3],hash:o[l-2],blockParams:o[l-1],strip:i.stripFlags(o[l-5],o[l])};break;case 17:this.$={path:o[l-4],params:o[l-3],hash:o[l-2],blockParams:o[l-1],strip:i.stripFlags(o[l-5],o[l])};break;case 18:this.$={strip:i.stripFlags(o[l-1],o[l-1]),program:o[l]};break;case 19:var u=i.prepareBlock(o[l-2],o[l-1],o[l],o[l],false,this._$),c=i.prepareProgram([u],o[l-1].loc);c.chained=true;this.$={strip:o[l-2].strip,program:c,chain:true};break;case 20:this.$=o[l];break;case 21:this.$={path:o[l-1],strip:i.stripFlags(o[l-2],o[l])};break;case 22:this.$=i.prepareMustache(o[l-3],o[l-2],o[l-1],o[l-4],i.stripFlags(o[l-4],o[l]),this._$);break;case 23:this.$=i.prepareMustache(o[l-3],o[l-2],o[l-1],o[l-4],i.stripFlags(o[l-4],o[l]),this._$);break;case 24:this.$={type:"PartialStatement",name:o[l-3],params:o[l-2],hash:o[l-1],indent:"",strip:i.stripFlags(o[l-4],o[l]),loc:i.locInfo(this._$)};break;case 25:this.$=i.preparePartialBlock(o[l-2],o[l-1],o[l],this._$);break;case 26:this.$={path:o[l-3],params:o[l-2],hash:o[l-1],strip:i.stripFlags(o[l-4],o[l])};break;case 27:this.$=o[l];break;case 28:this.$=o[l];break;case 29:this.$={type:"SubExpression",path:o[l-3],params:o[l-2],hash:o[l-1],loc:i.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:o[l],loc:i.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:i.id(o[l-2]),value:o[l],loc:i.locInfo(this._$)};break;case 32:this.$=i.id(o[l-1]);break;case 33:this.$=o[l];break;case 34:this.$=o[l];break;case 35:this.$={type:"StringLiteral",value:o[l],original:o[l],loc:i.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(o[l]),original:Number(o[l]),loc:i.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:o[l]==="true",original:o[l]==="true",loc:i.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:undefined,value:undefined,loc:i.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:i.locInfo(this._$)};break;case 40:this.$=o[l];break;case 41:this.$=o[l];break;case 42:this.$=i.preparePath(true,o[l],this._$);break;case 43:this.$=i.preparePath(false,o[l],this._$);break;case 44:o[l-2].push({part:i.id(o[l]),original:o[l],separator:o[l-1]});this.$=o[l-2];break;case 45:this.$=[{part:i.id(o[l]),original:o[l]}];break;case 46:this.$=[];break;case 47:o[l-1].push(o[l]);break;case 48:this.$=[];break;case 49:o[l-1].push(o[l]);break;case 50:this.$=[];break;case 51:o[l-1].push(o[l]);break;case 58:this.$=[];break;case 59:o[l-1].push(o[l]);break;case 64:this.$=[];break;case 65:o[l-1].push(o[l]);break;case 70:this.$=[];break;case 71:o[l-1].push(o[l]);break;case 78:this.$=[];break;case 79:o[l-1].push(o[l]);break;case 82:this.$=[];break;case 83:o[l-1].push(o[l]);break;case 86:this.$=[];break;case 87:o[l-1].push(o[l]);break;case 90:this.$=[];break;case 91:o[l-1].push(o[l]);break;case 94:this.$=[];break;case 95:o[l-1].push(o[l]);break;case 98:this.$=[o[l]];break;case 99:o[l-1].push(o[l]);break;case 100:this.$=[o[l]];break;case 101:o[l-1].push(o[l]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function parseError(e,t){throw new Error(e)},parse:function parse(e){var t=this,n=[0],i=[null],s=[],o=this.table,a="",l=0,u=0,c=0,f=2,p=1;this.lexer.setInput(e);this.lexer.yy=this.yy;this.yy.lexer=this.lexer;this.yy.parser=this;if(typeof this.lexer.yylloc=="undefined")this.lexer.yylloc={};var h=this.lexer.yylloc;s.push(h);var d=this.lexer.options&&this.lexer.options.ranges;if(typeof this.yy.parseError==="function")this.parseError=this.yy.parseError;function popStack(e){n.length=n.length-2*e;i.length=i.length-e;s.length=s.length-e}function lex(){var e;e=t.lexer.lex()||1;if(typeof e!=="number"){e=t.symbols_[e]||e}return e}var m,g,y,v,b,w,S={},E,_,O,R;while(true){y=n[n.length-1];if(this.defaultActions[y]){v=this.defaultActions[y]}else{if(m===null||typeof m=="undefined"){m=lex()}v=o[y]&&o[y][m]}if(typeof v==="undefined"||!v.length||!v[0]){var C="";if(!c){R=[];for(E in o[y])if(this.terminals_[E]&&E>2){R.push("'"+this.terminals_[E]+"'")}if(this.lexer.showPosition){C="Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[m]||m)+"'"}else{C="Parse error on line "+(l+1)+": Unexpected "+(m==1?"end of input":"'"+(this.terminals_[m]||m)+"'")}this.parseError(C,{text:this.lexer.match,token:this.terminals_[m]||m,line:this.lexer.yylineno,loc:h,expected:R})}}if(v[0]instanceof Array&&v.length>1){throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+m)}switch(v[0]){case 1:n.push(m);i.push(this.lexer.yytext);s.push(this.lexer.yylloc);n.push(v[1]);m=null;if(!g){u=this.lexer.yyleng;a=this.lexer.yytext;l=this.lexer.yylineno;h=this.lexer.yylloc;if(c>0)c--}else{m=g;g=null}break;case 2:_=this.productions_[v[1]][1];S.$=i[i.length-_];S._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column};if(d){S._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]}w=this.performAction.call(S,a,u,l,this.yy,v[1],i,s);if(typeof w!=="undefined"){return w}if(_){n=n.slice(0,-1*_*2);i=i.slice(0,-1*_);s=s.slice(0,-1*_)}n.push(this.productions_[v[1]][0]);i.push(S.$);s.push(S._$);O=o[n[n.length-2]][n[n.length-1]];n.push(O);break;case 3:return true}}return true}};var t=function(){var e={EOF:1,parseError:function parseError(e,t){if(this.yy.parser){this.yy.parser.parseError(e,t)}else{throw new Error(e)}},setInput:function setInput(e){this._input=e;this._more=this._less=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges)this.yylloc.range=[0,0];this.offset=0;return this},input:function input(){var e=this._input[0];this.yytext+=e;this.yyleng++;this.offset++;this.match+=e;this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);if(t){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges)this.yylloc.range[1]++;this._input=this._input.slice(1);return e},unput:function unput(e){var t=e.length;var n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-t-1);this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(n.length-1)this.yylineno-=n.length-1;var s=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t};if(this.options.ranges){this.yylloc.range=[s[0],s[0]+this.yyleng-t]}return this},more:function more(){this._more=true;return this},less:function less(e){this.unput(this.match.slice(e))},pastInput:function pastInput(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function upcomingInput(){var e=this.match;if(e.length<20){e+=this._input.substr(0,20-e.length)}return(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function showPosition(){var e=this.pastInput();var t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function next(){if(this.done){return this.EOF}if(!this._input)this.done=true;var e,t,n,i,s,o;if(!this._more){this.yytext="";this.match=""}var a=this._currentRules();for(var l=0;lt[0].length)){t=n;i=l;if(!this.options.flex)break}}if(t){o=t[0].match(/(?:\r\n?|\n).*/g);if(o)this.yylineno+=o.length;this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length};this.yytext+=t[0];this.match+=t[0];this.matches=t;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];e=this.performAction.call(this,this.yy,this,a[i],this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input)this.done=false;if(e)return e;else return}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}},lex:function lex(){var e=this.next();if(typeof e!=="undefined"){return e}else{return this.lex()}},begin:function begin(e){this.conditionStack.push(e)},popState:function popState(){return this.conditionStack.pop()},_currentRules:function _currentRules(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function topState(){return this.conditionStack[this.conditionStack.length-2]},pushState:function begin(e){this.begin(e)}};e.options={};e.performAction=function anonymous(e,t,n,i){function strip(e,n){return t.yytext=t.yytext.substring(e,t.yyleng-n+e)}var s=i;switch(n){case 0:if(t.yytext.slice(-2)==="\\\\"){strip(0,1);this.begin("mu")}else if(t.yytext.slice(-1)==="\\"){strip(0,1);this.begin("emu")}else{this.begin("mu")}if(t.yytext)return 15;break;case 1:return 15;break;case 2:this.popState();return 15;break;case 3:this.begin("raw");return 15;break;case 4:this.popState();if(this.conditionStack[this.conditionStack.length-1]==="raw"){return 15}else{strip(5,9);return"END_RAW_BLOCK"}break;case 5:return 15;break;case 6:this.popState();return 14;break;case 7:return 65;break;case 8:return 68;break;case 9:return 19;break;case 10:this.popState();this.begin("raw");return 23;break;case 11:return 55;break;case 12:return 60;break;case 13:return 29;break;case 14:return 47;break;case 15:this.popState();return 44;break;case 16:this.popState();return 44;break;case 17:return 34;break;case 18:return 39;break;case 19:return 51;break;case 20:return 48;break;case 21:this.unput(t.yytext);this.popState();this.begin("com");break;case 22:this.popState();return 14;break;case 23:return 48;break;case 24:return 73;break;case 25:return 72;break;case 26:return 72;break;case 27:return 87;break;case 28:break;case 29:this.popState();return 54;break;case 30:this.popState();return 33;break;case 31:t.yytext=strip(1,2).replace(/\\"/g,'"');return 80;break;case 32:t.yytext=strip(1,2).replace(/\\'/g,"'");return 80;break;case 33:return 85;break;case 34:return 82;break;case 35:return 82;break;case 36:return 83;break;case 37:return 84;break;case 38:return 81;break;case 39:return 75;break;case 40:return 77;break;case 41:return 72;break;case 42:t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1");return 72;break;case 43:return"INVALID";break;case 44:return 5;break}};e.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/];e.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:false},emu:{rules:[2],inclusive:false},com:{rules:[6],inclusive:false},raw:{rules:[3,4,5],inclusive:false},INITIAL:{rules:[0,1,44],inclusive:true}};return e}();e.lexer=t;function Parser(){this.yy={}}Parser.prototype=e;e.Parser=Parser;return new Parser}();t.default=n;e.exports=t["default"]},9286:(e,t,n)=>{"use strict";t.__esModule=true;t.print=print;t.PrintVisitor=PrintVisitor;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(4166);var s=_interopRequireDefault(i);function print(e){return(new PrintVisitor).accept(e)}function PrintVisitor(){this.padding=0}PrintVisitor.prototype=new s["default"];PrintVisitor.prototype.pad=function(e){var t="";for(var n=0,i=this.padding;n "+t+" }}")};PrintVisitor.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;if(e.params[0]){t+=" "+this.accept(e.params[0])}if(e.hash){t+=" "+this.accept(e.hash)}t+=" "+this.pad("PROGRAM:");this.padding++;t+=this.accept(e.program);this.padding--;return this.pad("{{> "+t+" }}")};PrintVisitor.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};PrintVisitor.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};PrintVisitor.prototype.SubExpression=function(e){var t=e.params,n=[],i=undefined;for(var s=0,o=t.length;s{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(4166);var s=_interopRequireDefault(i);function WhitespaceControl(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];this.options=e}WhitespaceControl.prototype=new s["default"];WhitespaceControl.prototype.Program=function(e){var t=!this.options.ignoreStandalone;var n=!this.isRootSeen;this.isRootSeen=true;var i=e.body;for(var s=0,o=i.length;s{"use strict";t.__esModule=true;t.registerDefaultDecorators=registerDefaultDecorators;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(975);var s=_interopRequireDefault(i);function registerDefaultDecorators(e){s["default"](e)}},975:(e,t,n)=>{"use strict";t.__esModule=true;var i=n(1437);t.default=function(e){e.registerDecorator("inline",(function(e,t,n,s){var o=e;if(!t.partials){t.partials={};o=function(s,o){var a=n.partials;n.partials=i.extend({},a,t.partials);var l=e(s,o);n.partials=a;return l}}t.partials[s.args[0]]=s.fn;return o}))};e.exports=t["default"]},2879:(e,t)=>{"use strict";t.__esModule=true;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Exception(e,t){var i=t&&t.loc,s=undefined,o=undefined,a=undefined,l=undefined;if(i){s=i.start.line;o=i.end.line;a=i.start.column;l=i.end.column;e+=" - "+s+":"+a}var u=Error.prototype.constructor.call(this,e);for(var c=0;c{"use strict";t.__esModule=true;t.registerDefaultHelpers=registerDefaultHelpers;t.moveHelperToHooks=moveHelperToHooks;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(6247);var s=_interopRequireDefault(i);var o=n(9052);var a=_interopRequireDefault(o);var l=n(8950);var u=_interopRequireDefault(l);var c=n(2767);var f=_interopRequireDefault(c);var p=n(9072);var h=_interopRequireDefault(p);var d=n(8168);var m=_interopRequireDefault(d);var g=n(9150);var y=_interopRequireDefault(g);function registerDefaultHelpers(e){s["default"](e);a["default"](e);u["default"](e);f["default"](e);h["default"](e);m["default"](e);y["default"](e)}function moveHelperToHooks(e,t,n){if(e.helpers[t]){e.hooks[t]=e.helpers[t];if(!n){delete e.helpers[t]}}}},6247:(e,t,n)=>{"use strict";t.__esModule=true;var i=n(1437);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,n){var s=n.inverse,o=n.fn;if(t===true){return o(this)}else if(t===false||t==null){return s(this)}else if(i.isArray(t)){if(t.length>0){if(n.ids){n.ids=[n.name]}return e.helpers.each(t,n)}else{return s(this)}}else{if(n.data&&n.ids){var a=i.createFrame(n.data);a.contextPath=i.appendContextPath(n.data.contextPath,n.name);n={data:a}}return o(t,n)}}))};e.exports=t["default"]},9052:(e,t,n)=>{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(1437);var s=n(2879);var o=_interopRequireDefault(s);t.default=function(e){e.registerHelper("each",(function(e,t){if(!t){throw new o["default"]("Must pass iterator to #each")}var n=t.fn,s=t.inverse,a=0,l="",u=undefined,c=undefined;if(t.data&&t.ids){c=i.appendContextPath(t.data.contextPath,t.ids[0])+"."}if(i.isFunction(e)){e=e.call(this)}if(t.data){u=i.createFrame(t.data)}function execIteration(t,s,o){if(u){u.key=t;u.index=s;u.first=s===0;u.last=!!o;if(c){u.contextPath=c+t}}l=l+n(e[t],{data:u,blockParams:i.blockParams([e[t],t],[c+t,null])})}if(e&&typeof e==="object"){if(i.isArray(e)){for(var f=e.length;a{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(2879);var s=_interopRequireDefault(i);t.default=function(e){e.registerHelper("helperMissing",(function(){if(arguments.length===1){return undefined}else{throw new s["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"')}}))};e.exports=t["default"]},2767:(e,t,n)=>{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(1437);var s=n(2879);var o=_interopRequireDefault(s);t.default=function(e){e.registerHelper("if",(function(e,t){if(arguments.length!=2){throw new o["default"]("#if requires exactly one argument")}if(i.isFunction(e)){e=e.call(this)}if(!t.hash.includeZero&&!e||i.isEmpty(e)){return t.inverse(this)}else{return t.fn(this)}}));e.registerHelper("unless",(function(t,n){if(arguments.length!=2){throw new o["default"]("#unless requires exactly one argument")}return e.helpers["if"].call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))};e.exports=t["default"]},9072:(e,t)=>{"use strict";t.__esModule=true;t.default=function(e){e.registerHelper("log",(function(){var t=[undefined],n=arguments[arguments.length-1];for(var i=0;i{"use strict";t.__esModule=true;t.default=function(e){e.registerHelper("lookup",(function(e,t,n){if(!e){return e}return n.lookupProperty(e,t)}))};e.exports=t["default"]},9150:(e,t,n)=>{"use strict";t.__esModule=true;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i=n(1437);var s=n(2879);var o=_interopRequireDefault(s);t.default=function(e){e.registerHelper("with",(function(e,t){if(arguments.length!=2){throw new o["default"]("#with requires exactly one argument")}if(i.isFunction(e)){e=e.call(this)}var n=t.fn;if(!i.isEmpty(e)){var s=t.data;if(t.data&&t.ids){s=i.createFrame(t.data);s.contextPath=i.appendContextPath(t.data.contextPath,t.ids[0])}return n(e,{data:s,blockParams:i.blockParams([e],[s&&s.contextPath])})}else{return t.inverse(this)}}))};e.exports=t["default"]},6025:(e,t,n)=>{"use strict";t.__esModule=true;t.createNewLookupObject=createNewLookupObject;var i=n(1437);function createNewLookupObject(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";t.__esModule=true;t.createProtoAccessControl=createProtoAccessControl;t.resultIsAllowed=resultIsAllowed;t.resetLoggedProperties=resetLoggedProperties;function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t["default"]=e;return t}}var i=n(6025);var s=n(7142);var o=_interopRequireWildcard(s);var a=Object.create(null);function createProtoAccessControl(e){var t=Object.create(null);t["constructor"]=false;t["__defineGetter__"]=false;t["__defineSetter__"]=false;t["__lookupGetter__"]=false;var n=Object.create(null);n["__proto__"]=false;return{properties:{whitelist:i.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:i.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function resultIsAllowed(e,t,n){if(typeof e==="function"){return checkWhiteList(t.methods,n)}else{return checkWhiteList(t.properties,n)}}function checkWhiteList(e,t){if(e.whitelist[t]!==undefined){return e.whitelist[t]===true}if(e.defaultValue!==undefined){return e.defaultValue}logUnexpecedPropertyAccessOnce(t);return false}function logUnexpecedPropertyAccessOnce(e){if(a[e]!==true){a[e]=true;o.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\n'+"You can add a runtime option to disable the check or this warning:\n"+"See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details")}}function resetLoggedProperties(){Object.keys(a).forEach((function(e){delete a[e]}))}},3268:(e,t)=>{"use strict";t.__esModule=true;t.wrapHelper=wrapHelper;function wrapHelper(e,t){if(typeof e!=="function"){return e}var n=function wrapper(){var n=arguments[arguments.length-1];arguments[arguments.length-1]=t(n);return e.apply(this,arguments)};return n}},7142:(e,t,n)=>{"use strict";t.__esModule=true;var i=n(1437);var s={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function lookupLevel(e){if(typeof e==="string"){var t=i.indexOf(s.methodMap,e.toLowerCase());if(t>=0){e=t}else{e=parseInt(e,10)}}return e},log:function log(e){e=s.lookupLevel(e);if(typeof console!=="undefined"&&s.lookupLevel(s.level)<=e){var t=s.methodMap[e];if(!console[t]){t="log"}for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o{"use strict";t.__esModule=true;t.default=function(e){var t=typeof global!=="undefined"?global:window,n=t.Handlebars;e.noConflict=function(){if(t.Handlebars===e){t.Handlebars=n}return e}};e.exports=t["default"]},7663:(e,t,n)=>{"use strict";t.__esModule=true;t.checkRevision=checkRevision;t.template=template;t.wrapProgram=wrapProgram;t.resolvePartial=resolvePartial;t.invokePartial=invokePartial;t.noop=noop;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t["default"]=e;return t}}var i=n(1437);var s=_interopRequireWildcard(i);var o=n(2879);var a=_interopRequireDefault(o);var l=n(4211);var u=n(3066);var c=n(3268);var f=n(6066);function checkRevision(e){var t=e&&e[0]||1,n=l.COMPILER_REVISION;if(t>=l.LAST_COMPATIBLE_COMPILER_REVISION&&t<=l.COMPILER_REVISION){return}if(t{"use strict";t.__esModule=true;function SafeString(e){this.string=e}SafeString.prototype.toString=SafeString.prototype.toHTML=function(){return""+this.string};t.default=SafeString;e.exports=t["default"]},1437:(e,t)=>{"use strict";t.__esModule=true;t.extend=extend;t.indexOf=indexOf;t.escapeExpression=escapeExpression;t.isEmpty=isEmpty;t.createFrame=createFrame;t.blockParams=blockParams;t.appendContextPath=appendContextPath;var n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="};var i=/[&<>"'`=]/g,s=/[&<>"'`=]/;function escapeChar(e){return n[e]}function extend(e){for(var t=1;t{var i=n(6956).default;var s=n(9286);i.PrintVisitor=s.PrintVisitor;i.print=s.print;e.exports=i;function extension(e,t){var s=n(5747);var o=s.readFileSync(t,"utf8");e.exports=i.compile(o)}if(true&&require.extensions){require.extensions[".handlebars"]=extension;require.extensions[".hbs"]=extension}},6339:(e,t,n)=>{"use strict";var i=n(8334);e.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},135:e=>{"use strict";const maybeJoin=(...e)=>e.every((e=>e))?e.join(""):"";const maybeEncode=e=>e?encodeURIComponent(e):"";const t={sshtemplate:({domain:e,user:t,project:n,committish:i})=>`git@${e}:${t}/${n}.git${maybeJoin("#",i)}`,sshurltemplate:({domain:e,user:t,project:n,committish:i})=>`git+ssh://git@${e}/${t}/${n}.git${maybeJoin("#",i)}`,browsetemplate:({domain:e,user:t,project:n,committish:i,treepath:s})=>`https://${e}/${t}/${n}${maybeJoin("/",s,"/",maybeEncode(i))}`,browsefiletemplate:({domain:e,user:t,project:n,committish:i,treepath:s,path:o,fragment:a,hashformat:l})=>`https://${e}/${t}/${n}/${s}/${maybeEncode(i||"master")}/${o}${maybeJoin("#",l(a||""))}`,docstemplate:({domain:e,user:t,project:n,treepath:i,committish:s})=>`https://${e}/${t}/${n}${maybeJoin("/",i,"/",maybeEncode(s))}#readme`,httpstemplate:({auth:e,domain:t,user:n,project:i,committish:s})=>`git+https://${maybeJoin(e,"@")}${t}/${n}/${i}.git${maybeJoin("#",s)}`,filetemplate:({domain:e,user:t,project:n,committish:i,path:s})=>`https://${e}/${t}/${n}/raw/${maybeEncode(i)||"master"}/${s}`,shortcuttemplate:({type:e,user:t,project:n,committish:i})=>`${e}:${t}/${n}${maybeJoin("#",i)}`,pathtemplate:({user:e,project:t,committish:n})=>`${e}/${t}${maybeJoin("#",n)}`,bugstemplate:({domain:e,user:t,project:n})=>`https://${e}/${t}/${n}/issues`,hashformat:formatHashFragment};const n={};n.github=Object.assign({},t,{protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",filetemplate:({auth:e,user:t,project:n,committish:i,path:s})=>`https://${maybeJoin(e,"@")}raw.githubusercontent.com/${t}/${n}/${maybeEncode(i)||"master"}/${s}`,gittemplate:({auth:e,domain:t,user:n,project:i,committish:s})=>`git://${maybeJoin(e,"@")}${t}/${n}/${i}.git${maybeJoin("#",s)}`,tarballtemplate:({domain:e,user:t,project:n,committish:i})=>`https://codeload.${e}/${t}/${n}/tar.gz/${maybeEncode(i)||"master"}`,extract:e=>{let[,t,n,i,s]=e.pathname.split("/",5);if(i&&i!=="tree"){return}if(!i){s=e.hash.slice(1)}if(n&&n.endsWith(".git")){n=n.slice(0,-4)}if(!t||!n){return}return{user:t,project:n,committish:s}}});n.bitbucket=Object.assign({},t,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",tarballtemplate:({domain:e,user:t,project:n,committish:i})=>`https://${e}/${t}/${n}/get/${maybeEncode(i)||"master"}.tar.gz`,extract:e=>{let[,t,n,i]=e.pathname.split("/",4);if(["get"].includes(i)){return}if(n&&n.endsWith(".git")){n=n.slice(0,-4)}if(!t||!n){return}return{user:t,project:n,committish:e.hash.slice(1)}}});n.gitlab=Object.assign({},t,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",httpstemplate:({auth:e,domain:t,user:n,project:i,committish:s})=>`git+https://${maybeJoin(e,"@")}${t}/${n}/${i}.git${maybeJoin("#",s)}`,tarballtemplate:({domain:e,user:t,project:n,committish:i})=>`https://${e}/${t}/${n}/repository/archive.tar.gz?ref=${maybeEncode(i)||"master"}`,extract:e=>{const t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz")){return}const n=t.split("/");let i=n.pop();if(i.endsWith(".git")){i=i.slice(0,-4)}const s=n.join("/");if(!s||!i){return}return{user:s,project:i,committish:e.hash.slice(1)}}});n.gist=Object.assign({},t,{protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",sshtemplate:({domain:e,project:t,committish:n})=>`git@${e}:${t}.git${maybeJoin("#",n)}`,sshurltemplate:({domain:e,project:t,committish:n})=>`git+ssh://git@${e}/${t}.git${maybeJoin("#",n)}`,browsetemplate:({domain:e,project:t,committish:n})=>`https://${e}/${t}${maybeJoin("/",maybeEncode(n))}`,browsefiletemplate:({domain:e,project:t,committish:n,path:i,hashformat:s})=>`https://${e}/${t}${maybeJoin("/",maybeEncode(n))}${maybeJoin("#",s(i))}`,docstemplate:({domain:e,project:t,committish:n})=>`https://${e}/${t}${maybeJoin("/",maybeEncode(n))}`,httpstemplate:({domain:e,project:t,committish:n})=>`git+https://${e}/${t}.git${maybeJoin("#",n)}`,filetemplate:({user:e,project:t,committish:n,path:i})=>`https://gist.githubusercontent.com/${e}/${t}/raw${maybeJoin("/",maybeEncode(n))}/${i}`,shortcuttemplate:({type:e,project:t,committish:n})=>`${e}:${t}${maybeJoin("#",n)}`,pathtemplate:({project:e,committish:t})=>`${e}${maybeJoin("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:n})=>`git://${e}/${t}.git${maybeJoin("#",n)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${maybeEncode(t)||"master"}`,extract:e=>{let[,t,n,i]=e.pathname.split("/",4);if(i==="raw"){return}if(!n){if(!t){return}n=t;t=null}if(n.endsWith(".git")){n=n.slice(0,-4)}return{user:t,project:n,committish:e.hash.slice(1)}},hashformat:function(e){return e&&"file-"+formatHashFragment(e)}});const i=Object.keys(n);n.byShortcut={};n.byDomain={};for(const e of i){n.byShortcut[`${e}:`]=e;n.byDomain[n[e].domain]=e}function formatHashFragment(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}e.exports=n},8145:(e,t,n)=>{"use strict";const i=n(135);class GitHost{constructor(e,t,n,s,o,a,l={}){Object.assign(this,i[e]);this.type=e;this.user=t;this.auth=n;this.project=s;this.committish=o;this.default=a;this.opts=l}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this._fill(this.sshtemplate,e)}_fill(e,t){if(typeof e==="function"){const n={...this,...this.opts,...t};if(!n.path){n.path=""}if(n.path.startsWith("/")){n.path=n.path.slice(1)}if(n.noCommittish){n.committish=null}const i=e(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}return null}sshurl(e){return this._fill(this.sshurltemplate,e)}browse(e,t,n){if(typeof e!=="string"){return this._fill(this.browsetemplate,e)}if(typeof t!=="string"){n=t;t=null}return this._fill(this.browsefiletemplate,{...n,fragment:t,path:e})}docs(e){return this._fill(this.docstemplate,e)}bugs(e){return this._fill(this.bugstemplate,e)}https(e){return this._fill(this.httpstemplate,e)}git(e){return this._fill(this.gittemplate,e)}shortcut(e){return this._fill(this.shortcuttemplate,e)}path(e){return this._fill(this.pathtemplate,e)}tarball(e){return this._fill(this.tarballtemplate,{...e,noCommittish:false})}file(e,t){return this._fill(this.filetemplate,{...t,path:e})}getDefaultRepresentation(){return this.default}toString(e){if(this.default&&typeof this[this.default]==="function"){return this[this.default](e)}return this.sshurl(e)}}e.exports=GitHost},8869:(e,t,n)=>{"use strict";const i=n(8835);const s=n(135);const o=e.exports=n(8145);const a=n(7129);const l=new a({max:1e3});const u={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function protocolToRepresentation(e){return u[e]||e.slice(0,-1)}const c={"git:":true,"https:":true,"git+https:":true,"http:":true,"git+http:":true};const f=Object.keys(s.byShortcut).concat(["http:","https:","git:","git+ssh:","git+https:","ssh:"]);e.exports.fromUrl=function(e,t){if(typeof e!=="string"){return}const n=e+JSON.stringify(t||{});if(!l.has(n)){l.set(n,fromUrl(e,t))}return l.get(n)};function fromUrl(e,t){if(!e){return}const n=isGitHubShorthand(e)?"github:"+e:correctProtocol(e);const i=parseGitUrl(n);if(!i){return i}const a=s.byShortcut[i.protocol];const l=s.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname];const u=a||l;if(!u){return}const f=s[a||l];let p=null;if(c[i.protocol]&&(i.username||i.password)){p=`${i.username}${i.password?":"+i.password:""}`}let h=null;let d=null;let m=null;let g=null;try{if(a){let e=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname;const t=e.indexOf("@");if(t>-1){e=e.slice(t+1)}const n=e.lastIndexOf("/");if(n>-1){d=decodeURIComponent(e.slice(0,n));if(!d){d=null}m=decodeURIComponent(e.slice(n+1))}else{m=decodeURIComponent(e)}if(m.endsWith(".git")){m=m.slice(0,-4)}if(i.hash){h=decodeURIComponent(i.hash.slice(1))}g="shortcut"}else{if(!f.protocols.includes(i.protocol)){return}const e=f.extract(i);if(!e){return}d=e.user&&decodeURIComponent(e.user);m=decodeURIComponent(e.project);h=decodeURIComponent(e.committish);g=protocolToRepresentation(i.protocol)}}catch(e){if(e instanceof URIError){return}else{throw e}}return new o(u,d,p,m,h,g,t)}const correctProtocol=e=>{const t=e.indexOf(":");const n=e.slice(0,t+1);if(f.includes(n)){return e}const i=e.indexOf("@");if(i>-1){if(i>t){return`git+ssh://${e}`}else{return e}}const s=e.indexOf("//");if(s===t+1){return e}return e.slice(0,t+1)+"//"+e.slice(t+1)};const isGitHubShorthand=e=>{const t=e.indexOf("#");const n=e.indexOf("/");const i=e.indexOf("/",n+1);const s=e.indexOf(":");const o=/\s/.exec(e);const a=e.indexOf("@");const l=!o||t>-1&&o.index>t;const u=a===-1||t>-1&&a>t;const c=s===-1||t>-1&&s>t;const f=i===-1||t>-1&&i>t;const p=n>0;const h=t>-1?e[t-1]!=="/":!e.endsWith("/");const d=!e.startsWith(".");return l&&p&&h&&d&&u&&c&&f};const correctUrl=e=>{const t=e.indexOf("@");const n=e.lastIndexOf("#");let i=e.indexOf(":");let s=e.lastIndexOf(":",n>-1?n:Infinity);let o;if(s>t){o=e.slice(0,s)+"/"+e.slice(s+1);i=o.indexOf(":");s=o.lastIndexOf(":")}if(i===-1&&e.indexOf("//")===-1){o=`git+ssh://${o}`}return o};const parseGitUrl=e=>{let t;try{t=new i.URL(e)}catch(e){}if(t){return t}const n=correctUrl(e);try{t=new i.URL(n)}catch(e){}return t}},4124:(e,t,n)=>{try{var i=n(1669);if(typeof i.inherits!=="function")throw"";e.exports=i.inherits}catch(t){e.exports=n(8544)}},8544:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},8885:(e,t)=>{t.parse=t.decode=decode;t.stringify=t.encode=encode;t.safe=safe;t.unsafe=unsafe;var n=typeof process!=="undefined"&&process.platform==="win32"?"\r\n":"\n";function encode(e,t){var i=[];var s="";if(typeof t==="string"){t={section:t,whitespace:false}}else{t=t||{};t.whitespace=t.whitespace===true}var o=t.whitespace?" = ":"=";Object.keys(e).forEach((function(t,a,l){var u=e[t];if(u&&Array.isArray(u)){u.forEach((function(e){s+=safe(t+"[]")+o+safe(e)+"\n"}))}else if(u&&typeof u==="object")i.push(t);else s+=safe(t)+o+safe(u)+n}));if(t.section&&s.length)s="["+safe(t.section)+"]"+n+s;i.forEach((function(i,o,a){var l=dotSplit(i).join("\\.");var u=(t.section?t.section+".":"")+l;var c=encode(e[i],{section:u,whitespace:t.whitespace});if(s.length&&c.length)s+=n;s+=c}));return s}function dotSplit(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")}))}function decode(e){var t={};var n=t;var i=null;var s=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;var o=e.split(/[\r\n]+/g);o.forEach((function(e,o,a){if(!e||e.match(/^\s*[;#]/))return;var l=e.match(s);if(!l)return;if(l[1]!==undefined){i=unsafe(l[1]);if(i==="__proto__"){n={};return}n=t[i]=t[i]||{};return}var u=unsafe(l[2]);if(u==="__proto__")return;var c=l[3]?unsafe(l[4]):true;switch(c){case"true":case"false":case"null":c=JSON.parse(c)}if(u.length>2&&u.slice(-2)==="[]"){u=u.substring(0,u.length-2);if(u==="__proto__")return;if(!n[u])n[u]=[];else if(!Array.isArray(n[u]))n[u]=[n[u]]}if(Array.isArray(n[u]))n[u].push(c);else n[u]=c}));Object.keys(t).filter((function(e,n,i){if(!t[e]||typeof t[e]!=="object"||Array.isArray(t[e]))return false;var s=dotSplit(e);var o=t;var a=s.pop();var l=a.replace(/\\\./g,".");s.forEach((function(e,t,n){if(e==="__proto__")return;if(!o[e]||typeof o[e]!=="object")o[e]={};o=o[e]}));if(o===t&&l===a)return false;o[l]=t[e];return true})).forEach((function(e,n,i){delete t[e]}));return t}function isQuoted(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function safe(e){return typeof e!=="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&isQuoted(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function unsafe(e,t){e=(e||"").trim();if(isQuoted(e)){if(e.charAt(0)==="'")e=e.substr(1,e.length-2);try{e=JSON.parse(e)}catch(e){}}else{var n=false;var i="";for(var s=0,o=e.length;s{"use strict";e.exports=function isArrayish(e){if(!e){return false}return e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function}},6873:(e,t,n)=>{"use strict";var i=n(6339);function specifierIncluded(e,t){var n=e.split(".");var i=t.split(" ");var s=i.length>1?i[0]:"=";var o=(i.length>1?i[1]:i[0]).split(".");for(var a=0;a<3;++a){var l=parseInt(n[a]||0,10);var u=parseInt(o[a]||0,10);if(l===u){continue}if(s==="<"){return l="){return l>=u}return false}return s===">="}function matchesRange(e,t){var n=t.split(/ ?&& ?/);if(n.length===0){return false}for(var i=0;i{"use strict";e.exports=parseJson;function parseJson(e,t,n){n=n||20;try{return JSON.parse(e,t)}catch(t){if(typeof e!=="string"){const t=Array.isArray(e)&&e.length===0;const n="Cannot parse "+(t?"an empty array":String(e));throw new TypeError(n)}const i=t.message.match(/^Unexpected token.*position\s+(\d+)/i);const s=i?+i[1]:t.message.match(/^Unexpected end of JSON.*/i)?e.length-1:null;if(s!=null){const i=s<=n?0:s-n;const o=s+n>=e.length?e.length:s+n;t.message+=` while parsing near '${i===0?"":"..."}${e.slice(i,o)}${o===e.length?"":"..."}'`}else{t.message+=` while parsing '${e.slice(0,n*2)}'`}throw t}}},7073:(e,t)=>{t=e.exports=stringify;t.getSerialize=serializer;function stringify(e,t,n,i){return JSON.stringify(e,serializer(t,i),n)}function serializer(e,t){var n=[],i=[];if(t==null)t=function(e,t){if(n[0]===t)return"[Circular ~]";return"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]"};return function(s,o){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this);~a?i.splice(a,Infinity,s):i.push(s);if(~n.indexOf(o))o=t.call(this,s,o)}else n.push(o);return e==null?o:e.call(this,s,o)}}},5978:(e,t,n)=>{"use strict";const i=n(5622);const s=n(7758);const o=n(8551);const a=n(1680);const l=n(3990);const parse=(e,t)=>a(o(e),i.relative(".",t));e.exports=e=>l(s.readFile)(e,"utf8").then((t=>parse(t,e)));e.exports.sync=e=>parse(s.readFileSync(e,"utf8"),e)},1680:(e,t,n)=>{"use strict";const i=n(3505);const s=n(5586);const o=i("JSONError",{fileName:i.append("in %s")});e.exports=(e,t,n)=>{if(typeof t==="string"){n=t;t=null}try{try{return JSON.parse(e,t)}catch(n){s(e,t);throw n}}catch(e){e.message=e.message.replace(/\n/g,"");const t=new o(e);if(n){t.fileName=n}throw t}}},3990:e=>{"use strict";const processFn=(e,t)=>function(){const n=t.promiseModule;const i=new Array(arguments.length);for(let e=0;e{if(t.errorFirst){i.push((function(e,i){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},t);const filter=e=>{const match=t=>typeof t==="string"?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};let n;if(typeof e==="function"){n=function(){if(t.excludeMain){return e.apply(this,arguments)}return processFn(e,t).apply(this,arguments)}}else{n=Object.create(Object.getPrototypeOf(e))}for(const i in e){const s=e[i];n[i]=typeof s==="function"&&filter(i)?processFn(s,t):s}return n}},5100:(e,t,n)=>{e=n.nmd(e);var i=200;var s="__lodash_hash_undefined__";var o=1,a=2;var l=9007199254740991;var u="[object Arguments]",c="[object Array]",f="[object Boolean]",p="[object Date]",h="[object Error]",d="[object Function]",m="[object GeneratorFunction]",g="[object Map]",y="[object Number]",v="[object Object]",b="[object Promise]",w="[object RegExp]",S="[object Set]",E="[object String]",_="[object Symbol]",O="[object WeakMap]";var R="[object ArrayBuffer]",C="[object DataView]",A="[object Float32Array]",L="[object Float64Array]",x="[object Int8Array]",I="[object Int16Array]",T="[object Int32Array]",P="[object Uint8Array]",k="[object Uint8ClampedArray]",N="[object Uint16Array]",M="[object Uint32Array]";var D=/[\\^$.*+?()[\]{}|]/g;var j=/^\[object .+?Constructor\]$/;var $=/^(?:0|[1-9]\d*)$/;var F={};F[A]=F[L]=F[x]=F[I]=F[T]=F[P]=F[k]=F[N]=F[M]=true;F[u]=F[c]=F[R]=F[f]=F[C]=F[p]=F[h]=F[d]=F[g]=F[y]=F[v]=F[w]=F[S]=F[E]=F[O]=false;var B=typeof global=="object"&&global&&global.Object===Object&&global;var U=typeof self=="object"&&self&&self.Object===Object&&self;var H=B||U||Function("return this")();var G=true&&t&&!t.nodeType&&t;var W=G&&"object"=="object"&&e&&!e.nodeType&&e;var V=W&&W.exports===G;var q=V&&B.process;var Y=function(){try{return q&&q.binding("util")}catch(e){}}();var z=Y&&Y.isTypedArray;function arraySome(e,t){var n=-1,i=e?e.length:0;while(++n-1}function listCacheSet(e,t){var n=this.__data__,i=assocIndexOf(n,e);if(i<0){n.push([e,t])}else{n[i][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,n=e?e.length:0;this.clear();while(++tc)){return false}var p=l.get(e);if(p&&l.get(t)){return p==t}var h=-1,d=true,m=s&o?new SetCache:undefined;l.set(e,t);l.set(t,e);while(++h-1&&e%1==0&&e-1&&e%1==0&&e<=l}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function isMatch(e,t){return e===t||baseIsMatch(e,t,getMatchData(t))}var Re=z?baseUnary(z):baseIsTypedArray;function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}e.exports=isMatch},9213:(e,t,n)=>{var i=n(9882);var s=i.Symbol;e.exports=s},9647:e=>{function apply(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=apply},2237:(e,t,n)=>{var i=n(7765),s=n(8495),o=n(4869),a=n(4190),l=n(9819),u=n(2496);var c=Object.prototype;var f=c.hasOwnProperty;function arrayLikeKeys(e,t){var n=o(e),c=!n&&s(e),p=!n&&!c&&a(e),h=!n&&!c&&!p&&u(e),d=n||c||p||h,m=d?i(e.length,String):[],g=m.length;for(var y in e){if((t||f.call(e,y))&&!(d&&(y=="length"||p&&(y=="offset"||y=="parent")||h&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||l(y,g)))){m.push(y)}}return m}e.exports=arrayLikeKeys},4356:e=>{function arrayMap(e,t){var n=-1,i=e==null?0:e.length,s=Array(i);while(++n{var i=n(3868),s=n(1901);var o=Object.prototype;var a=o.hasOwnProperty;function assignValue(e,t,n){var o=e[t];if(!(a.call(e,t)&&s(o,n))||n===undefined&&!(t in e)){i(e,t,n)}}e.exports=assignValue},3868:(e,t,n)=>{var i=n(416);function baseAssignValue(e,t,n){if(t=="__proto__"&&i){i(e,t,{configurable:true,enumerable:true,value:n,writable:true})}else{e[t]=n}}e.exports=baseAssignValue},7497:(e,t,n)=>{var i=n(9213),s=n(923),o=n(4200);var a="[object Null]",l="[object Undefined]";var u=i?i.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?l:a}return u&&u in Object(e)?s(e):o(e)}e.exports=baseGetTag},2177:(e,t,n)=>{var i=n(7497),s=n(5926);var o="[object Arguments]";function baseIsArguments(e){return s(e)&&i(e)==o}e.exports=baseIsArguments},411:(e,t,n)=>{var i=n(7799),s=n(9058),o=n(3334),a=n(6928);var l=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var c=Function.prototype,f=Object.prototype;var p=c.toString;var h=f.hasOwnProperty;var d=RegExp("^"+p.call(h).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!o(e)||s(e)){return false}var t=i(e)?d:u;return t.test(a(e))}e.exports=baseIsNative},1528:(e,t,n)=>{var i=n(7497),s=n(4530),o=n(5926);var a="[object Arguments]",l="[object Array]",u="[object Boolean]",c="[object Date]",f="[object Error]",p="[object Function]",h="[object Map]",d="[object Number]",m="[object Object]",g="[object RegExp]",y="[object Set]",v="[object String]",b="[object WeakMap]";var w="[object ArrayBuffer]",S="[object DataView]",E="[object Float32Array]",_="[object Float64Array]",O="[object Int8Array]",R="[object Int16Array]",C="[object Int32Array]",A="[object Uint8Array]",L="[object Uint8ClampedArray]",x="[object Uint16Array]",I="[object Uint32Array]";var T={};T[E]=T[_]=T[O]=T[R]=T[C]=T[A]=T[L]=T[x]=T[I]=true;T[a]=T[l]=T[w]=T[u]=T[S]=T[c]=T[f]=T[p]=T[h]=T[d]=T[m]=T[g]=T[y]=T[v]=T[b]=false;function baseIsTypedArray(e){return o(e)&&s(e.length)&&!!T[i(e)]}e.exports=baseIsTypedArray},7164:(e,t,n)=>{var i=n(10),s=n(5778);var o=Object.prototype;var a=o.hasOwnProperty;function baseKeys(e){if(!i(e)){return s(e)}var t=[];for(var n in Object(e)){if(a.call(e,n)&&n!="constructor"){t.push(n)}}return t}e.exports=baseKeys},297:(e,t,n)=>{var i=n(3334),s=n(10),o=n(5383);var a=Object.prototype;var l=a.hasOwnProperty;function baseKeysIn(e){if(!i(e)){return o(e)}var t=s(e),n=[];for(var a in e){if(!(a=="constructor"&&(t||!l.call(e,a)))){n.push(a)}}return n}e.exports=baseKeysIn},6610:e=>{function basePropertyOf(e){return function(t){return e==null?undefined:e[t]}}e.exports=basePropertyOf},2936:(e,t,n)=>{var i=n(7822),s=n(2417),o=n(8416);function baseRest(e,t){return o(s(e,t,i),e+"")}e.exports=baseRest},979:(e,t,n)=>{var i=n(5946),s=n(416),o=n(7822);var a=!s?o:function(e,t){return s(e,"toString",{configurable:true,enumerable:false,value:i(t),writable:true})};e.exports=a},7765:e=>{function baseTimes(e,t){var n=-1,i=Array(e);while(++n{var i=n(9213),s=n(4356),o=n(4869),a=n(6403);var l=1/0;var u=i?i.prototype:undefined,c=u?u.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(o(e)){return s(e,baseToString)+""}if(a(e)){return c?c.call(e):""}var t=e+"";return t=="0"&&1/e==-l?"-0":t}e.exports=baseToString},9258:e=>{function baseUnary(e){return function(t){return e(t)}}e.exports=baseUnary},5159:(e,t,n)=>{var i=n(4356);function baseValues(e,t){return i(t,(function(t){return e[t]}))}e.exports=baseValues},6388:(e,t,n)=>{var i=n(9725),s=n(3868);function copyObject(e,t,n,o){var a=!n;n||(n={});var l=-1,u=t.length;while(++l{var i=n(9882);var s=i["__core-js_shared__"];e.exports=s},1911:(e,t,n)=>{var i=n(2936),s=n(8494);function createAssigner(e){return i((function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:undefined,l=o>2?n[2]:undefined;a=e.length>3&&typeof a=="function"?(o--,a):undefined;if(l&&s(n[0],n[1],l)){a=o<3?undefined:a;o=1}t=Object(t);while(++i{var i=n(1901);var s=Object.prototype;var o=s.hasOwnProperty;function customDefaultsAssignIn(e,t,n,a){if(e===undefined||i(e,s[n])&&!o.call(a,n)){return t}return e}e.exports=customDefaultsAssignIn},416:(e,t,n)=>{var i=n(4479);var s=function(){try{var e=i(Object,"defineProperty");e({},"",{});return e}catch(e){}}();e.exports=s},1786:(e,t,n)=>{var i=n(6610);var s={"&":"&","<":"<",">":">",'"':""","'":"'"};var o=i(s);e.exports=o},4742:e=>{var t={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar(e){return"\\"+t[e]}e.exports=escapeStringChar},2085:e=>{var t=typeof global=="object"&&global&&global.Object===Object&&global;e.exports=t},4479:(e,t,n)=>{var i=n(411),s=n(3542);function getNative(e,t){var n=s(e,t);return i(n)?n:undefined}e.exports=getNative},6271:(e,t,n)=>{var i=n(6320);var s=i(Object.getPrototypeOf,Object);e.exports=s},923:(e,t,n)=>{var i=n(9213);var s=Object.prototype;var o=s.hasOwnProperty;var a=s.toString;var l=i?i.toStringTag:undefined;function getRawTag(e){var t=o.call(e,l),n=e[l];try{e[l]=undefined;var i=true}catch(e){}var s=a.call(e);if(i){if(t){e[l]=n}else{delete e[l]}}return s}e.exports=getRawTag},3542:e=>{function getValue(e,t){return e==null?undefined:e[t]}e.exports=getValue},9819:e=>{var t=9007199254740991;var n=/^(?:0|[1-9]\d*)$/;function isIndex(e,i){var s=typeof e;i=i==null?t:i;return!!i&&(s=="number"||s!="symbol"&&n.test(e))&&(e>-1&&e%1==0&&e{var i=n(1901),s=n(8017),o=n(9819),a=n(3334);function isIterateeCall(e,t,n){if(!a(n)){return false}var l=typeof t;if(l=="number"?s(n)&&o(t,n.length):l=="string"&&t in n){return i(n[t],e)}return false}e.exports=isIterateeCall},9058:(e,t,n)=>{var i=n(8380);var s=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!s&&s in e}e.exports=isMasked},10:e=>{var t=Object.prototype;function isPrototype(e){var n=e&&e.constructor,i=typeof n=="function"&&n.prototype||t;return e===i}e.exports=isPrototype},5778:(e,t,n)=>{var i=n(6320);var s=i(Object.keys,Object);e.exports=s},5383:e=>{function nativeKeysIn(e){var t=[];if(e!=null){for(var n in Object(e)){t.push(n)}}return t}e.exports=nativeKeysIn},4643:(e,t,n)=>{e=n.nmd(e);var i=n(2085);var s=true&&t&&!t.nodeType&&t;var o=s&&"object"=="object"&&e&&!e.nodeType&&e;var a=o&&o.exports===s;var l=a&&i.process;var u=function(){try{var e=o&&o.require&&o.require("util").types;if(e){return e}return l&&l.binding&&l.binding("util")}catch(e){}}();e.exports=u},4200:e=>{var t=Object.prototype;var n=t.toString;function objectToString(e){return n.call(e)}e.exports=objectToString},6320:e=>{function overArg(e,t){return function(n){return e(t(n))}}e.exports=overArg},2417:(e,t,n)=>{var i=n(9647);var s=Math.max;function overRest(e,t,n){t=s(t===undefined?e.length-1:t,0);return function(){var o=arguments,a=-1,l=s(o.length-t,0),u=Array(l);while(++a{var t=/<%-([\s\S]+?)%>/g;e.exports=t},1601:e=>{var t=/<%([\s\S]+?)%>/g;e.exports=t},4070:e=>{var t=/<%=([\s\S]+?)%>/g;e.exports=t},9882:(e,t,n)=>{var i=n(2085);var s=typeof self=="object"&&self&&self.Object===Object&&self;var o=i||s||Function("return this")();e.exports=o},8416:(e,t,n)=>{var i=n(979),s=n(7882);var o=s(i);e.exports=o},7882:e=>{var t=800,n=16;var i=Date.now;function shortOut(e){var s=0,o=0;return function(){var a=i(),l=n-(a-o);o=a;if(l>0){if(++s>=t){return arguments[0]}}else{s=0}return e.apply(undefined,arguments)}}e.exports=shortOut},6928:e=>{var t=Function.prototype;var n=t.toString;function toSource(e){if(e!=null){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}e.exports=toSource},9271:(e,t,n)=>{var i=n(6388),s=n(1911),o=n(9109);var a=s((function(e,t,n,s){i(t,o(t),e,s)}));e.exports=a},4025:(e,t,n)=>{var i=n(9647),s=n(2936),o=n(5411);var a=s((function(e,t){try{return i(e,undefined,t)}catch(e){return o(e)?e:new Error(e)}}));e.exports=a},5946:e=>{function constant(e){return function(){return e}}e.exports=constant},1901:e=>{function eq(e,t){return e===t||e!==e&&t!==t}e.exports=eq},2678:(e,t,n)=>{var i=n(1786),s=n(2931);var o=/[&<>"']/g,a=RegExp(o.source);function escape(e){e=s(e);return e&&a.test(e)?e.replace(o,i):e}e.exports=escape},7822:e=>{function identity(e){return e}e.exports=identity},8495:(e,t,n)=>{var i=n(2177),s=n(5926);var o=Object.prototype;var a=o.hasOwnProperty;var l=o.propertyIsEnumerable;var u=i(function(){return arguments}())?i:function(e){return s(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},4869:e=>{var t=Array.isArray;e.exports=t},8017:(e,t,n)=>{var i=n(7799),s=n(4530);function isArrayLike(e){return e!=null&&s(e.length)&&!i(e)}e.exports=isArrayLike},4190:(e,t,n)=>{e=n.nmd(e);var i=n(9882),s=n(7744);var o=true&&t&&!t.nodeType&&t;var a=o&&"object"=="object"&&e&&!e.nodeType&&e;var l=a&&a.exports===o;var u=l?i.Buffer:undefined;var c=u?u.isBuffer:undefined;var f=c||s;e.exports=f},5411:(e,t,n)=>{var i=n(7497),s=n(5926),o=n(6169);var a="[object DOMException]",l="[object Error]";function isError(e){if(!s(e)){return false}var t=i(e);return t==l||t==a||typeof e.message=="string"&&typeof e.name=="string"&&!o(e)}e.exports=isError},7799:(e,t,n)=>{var i=n(7497),s=n(3334);var o="[object AsyncFunction]",a="[object Function]",l="[object GeneratorFunction]",u="[object Proxy]";function isFunction(e){if(!s(e)){return false}var t=i(e);return t==a||t==l||t==o||t==u}e.exports=isFunction},4530:e=>{var t=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}e.exports=isLength},3334:e=>{function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}e.exports=isObject},5926:e=>{function isObjectLike(e){return e!=null&&typeof e=="object"}e.exports=isObjectLike},6169:(e,t,n)=>{var i=n(7497),s=n(6271),o=n(5926);var a="[object Object]";var l=Function.prototype,u=Object.prototype;var c=l.toString;var f=u.hasOwnProperty;var p=c.call(Object);function isPlainObject(e){if(!o(e)||i(e)!=a){return false}var t=s(e);if(t===null){return true}var n=f.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&c.call(n)==p}e.exports=isPlainObject},6403:(e,t,n)=>{var i=n(7497),s=n(5926);var o="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||s(e)&&i(e)==o}e.exports=isSymbol},2496:(e,t,n)=>{var i=n(1528),s=n(9258),o=n(4643);var a=o&&o.isTypedArray;var l=a?s(a):i;e.exports=l},7645:(e,t,n)=>{var i=n(2237),s=n(7164),o=n(8017);function keys(e){return o(e)?i(e):s(e)}e.exports=keys},9109:(e,t,n)=>{var i=n(2237),s=n(297),o=n(8017);function keysIn(e){return o(e)?i(e,true):s(e)}e.exports=keysIn},250:function(e,t,n){e=n.nmd(e); /** * @license * Lodash @@ -35,4 +35,4 @@ */ (function(t){"use strict";if(typeof bootstrap==="function"){bootstrap("promise",t)}else if(true){e.exports=t()}else{var n,i}})((function(){"use strict";var e=false;try{throw new Error}catch(t){e=!!t.stack}var t=captureLine();var n;var noop=function(){};var i=function(){var e={task:void 0,next:null};var t=e;var n=false;var s=void 0;var o=false;var a=[];function flush(){var t,i;while(e.next){e=e.next;t=e.task;e.task=void 0;i=e.domain;if(i){e.domain=void 0;i.enter()}runSingle(t,i)}while(a.length){t=a.pop();runSingle(t)}n=false}function runSingle(e,t){try{e()}catch(e){if(o){if(t){t.exit()}setTimeout(flush,0);if(t){t.enter()}throw e}else{setTimeout((function(){throw e}),0)}}if(t){t.exit()}}i=function(e){t=t.next={task:e,domain:o&&process.domain,next:null};if(!n){n=true;s()}};if(typeof process==="object"&&process.toString()==="[object process]"&&process.nextTick){o=true;s=function(){process.nextTick(flush)}}else if(typeof setImmediate==="function"){if(typeof window!=="undefined"){s=setImmediate.bind(window,flush)}else{s=function(){setImmediate(flush)}}}else if(typeof MessageChannel!=="undefined"){var l=new MessageChannel;l.port1.onmessage=function(){s=requestPortTick;l.port1.onmessage=flush;flush()};var requestPortTick=function(){l.port2.postMessage(0)};s=function(){setTimeout(flush,0);requestPortTick()}}else{s=function(){setTimeout(flush,0)}}i.runAfter=function(e){a.push(e);if(!n){n=true;s()}};return i}();var s=Function.call;function uncurryThis(e){return function(){return s.apply(e,arguments)}}var o=uncurryThis(Array.prototype.slice);var a=uncurryThis(Array.prototype.reduce||function(e,t){var n=0,i=this.length;if(arguments.length===1){do{if(n in this){t=this[n++];break}if(++n>=i){throw new TypeError}}while(1)}for(;ns.stackCounter)){f(t,"__minimumStackCounter__",{value:s.stackCounter,configurable:true});i.unshift(s.stack)}}i.unshift(t.stack);var o=i.join("\n"+g+"\n");var a=filterStackString(o);f(t,"stack",{value:a,configurable:true})}}function filterStackString(e){var t=e.split("\n");var n=[];for(var i=0;i=t&&o<=E}function captureLine(){if(!e){return}try{throw new Error}catch(e){var t=e.stack.split("\n");var i=t[0].indexOf("@")>0?t[1]:t[2];var s=getFileNameAndLineNumber(i);if(!s){return}n=s[0];return s[1]}}function deprecate(e,t,n){return function(){if(typeof console!=="undefined"&&typeof console.warn==="function"){console.warn(t+" is deprecated, use "+n+" instead.",new Error("").stack)}return e.apply(e,arguments)}}function Q(e){if(e instanceof Promise){return e}if(isPromiseAlike(e)){return coerce(e)}else{return fulfill(e)}}Q.resolve=Q;Q.nextTick=i;Q.longStackSupport=false;var y=1;if(typeof process==="object"&&process&&process.env&&process.env.Q_DEBUG){Q.longStackSupport=true}Q.defer=defer;function defer(){var t=[],n=[],i;var s=c(defer.prototype);var l=c(Promise.prototype);l.promiseDispatch=function(e,s,a){var l=o(arguments);if(t){t.push(l);if(s==="when"&&a[1]){n.push(a[1])}}else{Q.nextTick((function(){i.promiseDispatch.apply(i,l)}))}};l.valueOf=function(){if(t){return l}var e=nearer(i);if(isPromise(e)){i=e}return e};l.inspect=function(){if(!i){return{state:"pending"}}return i.inspect()};if(Q.longStackSupport&&e){try{throw new Error}catch(e){l.stack=e.stack.substring(e.stack.indexOf("\n")+1);l.stackCounter=y++}}function become(s){i=s;if(Q.longStackSupport&&e){l.source=s}a(t,(function(e,t){Q.nextTick((function(){s.promiseDispatch.apply(s,t)}))}),void 0);t=void 0;n=void 0}s.promise=l;s.resolve=function(e){if(i){return}become(Q(e))};s.fulfill=function(e){if(i){return}become(fulfill(e))};s.reject=function(e){if(i){return}become(reject(e))};s.notify=function(e){if(i){return}a(n,(function(t,n){Q.nextTick((function(){n(e)}))}),void 0)};return s}defer.prototype.makeNodeResolver=function(){var e=this;return function(t,n){if(t){e.reject(t)}else if(arguments.length>2){e.resolve(o(arguments,1))}else{e.resolve(n)}}};Q.Promise=promise;Q.promise=promise;function promise(e){if(typeof e!=="function"){throw new TypeError("resolver must be a function.")}var t=defer();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}promise.race=race;promise.all=all;promise.reject=reject;promise.resolve=Q;Q.passByCopy=function(e){return e};Promise.prototype.passByCopy=function(){return this};Q.join=function(e,t){return Q(e).join(t)};Promise.prototype.join=function(e){return Q([this,e]).spread((function(e,t){if(e===t){return e}else{throw new Error("Q can't join: not the same: "+e+" "+t)}}))};Q.race=race;function race(e){return promise((function(t,n){for(var i=0,s=e.length;i{"use strict";const i=n(7280);const s=n(3645);e.exports=e=>i("package.json",e).then((t=>{if(!t){return{}}return s(t,e).then((e=>({pkg:e,path:t})))}));e.exports.sync=e=>{const t=i.sync("package.json",e);if(!t){return{}}return{pkg:s.sync(t,e),path:t}}},7280:(e,t,n)=>{"use strict";const i=n(5622);const s=n(7795);e.exports=(e,t)=>{t=t||{};const n=i.resolve(t.cwd||"");const o=i.parse(n).root;const a=[].concat(e);return new Promise((e=>{(function find(t){s(a,{cwd:t}).then((n=>{if(n){e(i.join(t,n))}else if(t===o){e(null)}else{find(i.dirname(t))}}))})(n)}))};e.exports.sync=(e,t)=>{t=t||{};let n=i.resolve(t.cwd||"");const o=i.parse(n).root;const a=[].concat(e);while(true){const e=s.sync(a,{cwd:n});if(e){return i.join(n,e)}else if(n===o){return null}n=i.dirname(n)}}},7795:(e,t,n)=>{"use strict";const i=n(5622);const s=n(6638);const o=n(4296);e.exports=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);return o(e,(e=>s(i.resolve(t.cwd,e))),t)};e.exports.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(const n of e){if(s.sync(i.resolve(t.cwd,n))){return n}}}},9298:(e,t,n)=>{"use strict";const i=n(8496);e.exports=e=>{if(e<1){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const t=[];let n=0;const next=()=>{n--;if(t.length>0){t.shift()()}};return s=>new Promise(((o,a)=>{const run=()=>{n++;i(s).then((e=>{o(e);next()}),(e=>{a(e);next()}))};if(n{"use strict";const i=n(9298);class EndError extends Error{constructor(e){super();this.value=e}}const finder=e=>Promise.all(e).then((e=>e[1]===true&&Promise.reject(new EndError(e[0]))));e.exports=(e,t,n)=>{n=Object.assign({concurrency:Infinity,preserveOrder:true},n);const s=i(n.concurrency);const o=Array.from(e).map((e=>[e,s((()=>Promise.resolve(e).then(t)))]));const a=i(n.preserveOrder?1:Infinity);return Promise.all(o.map((e=>a((()=>finder(e)))))).then((()=>{})).catch((e=>e instanceof EndError?e.value:Promise.reject(e)))}},8496:e=>{"use strict";e.exports=e=>new Promise((t=>{t(e())}))},6638:(e,t,n)=>{"use strict";const i=n(5747);e.exports=e=>new Promise((t=>{i.access(e,(e=>{t(!e)}))}));e.exports.sync=e=>{try{i.accessSync(e);return true}catch(e){return false}}},3645:(e,t,n)=>{"use strict";const i=n(5622);const s=n(5978);const o=n(3433);e.exports=(e,t)=>{if(typeof e!=="string"){t=e;e="."}t=t||{};return o.dir(e).then((t=>{if(t){e=i.join(e,"package.json")}return s(e)})).then((e=>{if(t.normalize!==false){n(5358)(e)}return e}))};e.exports.sync=(e,t)=>{if(typeof e!=="string"){t=e;e="."}t=t||{};e=o.dirSync(e)?i.join(e,"package.json"):e;const a=s.sync(e);if(t.normalize!==false){n(5358)(a)}return a}},9913:e=>{"use strict";var t=e.exports={github:{protocols:["git","http","git+ssh","git+https","ssh","https"],domain:"github.com",treepath:"tree",filetemplate:"https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}",bugstemplate:"https://{domain}/{user}/{project}/issues",gittemplate:"git://{auth@}{domain}/{user}/{project}.git{#committish}",tarballtemplate:"https://codeload.{domain}/{user}/{project}/tar.gz/{committish}"},bitbucket:{protocols:["git+ssh","git+https","ssh","https"],domain:"bitbucket.org",treepath:"src",tarballtemplate:"https://{domain}/{user}/{project}/get/{committish}.tar.gz"},gitlab:{protocols:["git+ssh","git+https","ssh","https"],domain:"gitlab.com",treepath:"tree",bugstemplate:"https://{domain}/{user}/{project}/issues",httpstemplate:"git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}",tarballtemplate:"https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}",pathmatch:/^[/]([^/]+)[/]((?!.*(\/-\/|\/repository\/archive\.tar\.gz\?=.*|\/repository\/[^/]+\/archive.tar.gz$)).*?)(?:[.]git|[/])?$/},gist:{protocols:["git","git+ssh","git+https","ssh","https"],domain:"gist.github.com",pathmatch:/^[/](?:([^/]+)[/])?([a-z0-9]{32,})(?:[.]git)?$/,filetemplate:"https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}",bugstemplate:"https://{domain}/{project}",gittemplate:"git://{domain}/{project}.git{#committish}",sshtemplate:"git@{domain}:/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{project}.git{#committish}",browsetemplate:"https://{domain}/{project}{/committish}",browsefiletemplate:"https://{domain}/{project}{/committish}{#path}",docstemplate:"https://{domain}/{project}{/committish}",httpstemplate:"git+https://{domain}/{project}.git{#committish}",shortcuttemplate:"{type}:{project}{#committish}",pathtemplate:"{project}{#committish}",tarballtemplate:"https://codeload.github.com/gist/{project}/tar.gz/{committish}",hashformat:function(e){return"file-"+formatHashFragment(e)}}};var n={sshtemplate:"git@{domain}:{user}/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{user}/{project}.git{#committish}",browsetemplate:"https://{domain}/{user}/{project}{/tree/committish}",browsefiletemplate:"https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}",docstemplate:"https://{domain}/{user}/{project}{/tree/committish}#readme",httpstemplate:"git+https://{auth@}{domain}/{user}/{project}.git{#committish}",filetemplate:"https://{domain}/{user}/{project}/raw/{committish}/{path}",shortcuttemplate:"{type}:{user}/{project}{#committish}",pathtemplate:"{user}/{project}{#committish}",pathmatch:/^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/,hashformat:formatHashFragment};Object.keys(t).forEach((function(e){Object.keys(n).forEach((function(i){if(t[e][i])return;t[e][i]=n[i]}));t[e].protocols_re=RegExp("^("+t[e].protocols.map((function(e){return e.replace(/([\\+*{}()[\]$^|])/g,"\\$1")})).join("|")+"):$")}));function formatHashFragment(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}},9718:(e,t,n)=>{"use strict";var i=n(9913);var s=Object.assign||function _extend(e,t){if(t===null||typeof t!=="object")return e;var n=Object.keys(t);var i=n.length;while(i--){e[n[i]]=t[n[i]]}return e};e.exports=GitHost;function GitHost(e,t,n,s,o,a,l){var u=this;u.type=e;Object.keys(i[e]).forEach((function(t){u[t]=i[e][t]}));u.user=t;u.auth=n;u.project=s;u.committish=o;u.default=a;u.opts=l||{}}GitHost.prototype.hash=function(){return this.committish?"#"+this.committish:""};GitHost.prototype._fill=function(e,t){if(!e)return;var n=s({},t);n.path=n.path?n.path.replace(/^[/]+/g,""):"";t=s(s({},this.opts),t);var i=this;Object.keys(this).forEach((function(e){if(i[e]!=null&&n[e]==null)n[e]=i[e]}));var o=n.auth;var a=n.committish;var l=n.fragment;var u=n.path;var c=n.project;Object.keys(n).forEach((function(e){var t=n[e];if((e==="path"||e==="project")&&typeof t==="string"){n[e]=t.split("/").map((function(e){return encodeURIComponent(e)})).join("/")}else{n[e]=encodeURIComponent(t)}}));n["auth@"]=o?o+"@":"";n["#fragment"]=l?"#"+this.hashformat(l):"";n.fragment=n.fragment?n.fragment:"";n["#path"]=u?"#"+this.hashformat(u):"";n["/path"]=n.path?"/"+n.path:"";n.projectPath=c.split("/").map(encodeURIComponent).join("/");if(t.noCommittish){n["#committish"]="";n["/tree/committish"]="";n["/committish"]="";n.committish=""}else{n["#committish"]=a?"#"+a:"";n["/tree/committish"]=n.committish?"/"+n.treepath+"/"+n.committish:"";n["/committish"]=n.committish?"/"+n.committish:"";n.committish=n.committish||"master"}var f=e;Object.keys(n).forEach((function(e){f=f.replace(new RegExp("[{]"+e+"[}]","g"),n[e])}));if(t.noGitPlus){return f.replace(/^git[+]/,"")}else{return f}};GitHost.prototype.ssh=function(e){return this._fill(this.sshtemplate,e)};GitHost.prototype.sshurl=function(e){return this._fill(this.sshurltemplate,e)};GitHost.prototype.browse=function(e,t,n){if(typeof e==="string"){if(typeof t!=="string"){n=t;t=null}return this._fill(this.browsefiletemplate,s({fragment:t,path:e},n))}else{return this._fill(this.browsetemplate,e)}};GitHost.prototype.docs=function(e){return this._fill(this.docstemplate,e)};GitHost.prototype.bugs=function(e){return this._fill(this.bugstemplate,e)};GitHost.prototype.https=function(e){return this._fill(this.httpstemplate,e)};GitHost.prototype.git=function(e){return this._fill(this.gittemplate,e)};GitHost.prototype.shortcut=function(e){return this._fill(this.shortcuttemplate,e)};GitHost.prototype.path=function(e){return this._fill(this.pathtemplate,e)};GitHost.prototype.tarball=function(e){var t=s({},e,{noCommittish:false});return this._fill(this.tarballtemplate,t)};GitHost.prototype.file=function(e,t){return this._fill(this.filetemplate,s({path:e},t))};GitHost.prototype.getDefaultRepresentation=function(){return this.default};GitHost.prototype.toString=function(e){if(this.default&&typeof this[this.default]==="function")return this[this.default](e);return this.sshurl(e)}},8382:(e,t,n)=>{"use strict";var i=n(8835);var s=n(9913);var o=e.exports=n(9718);var a={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function protocolToRepresentation(e){return a[e]||e.slice(0,-1)}var l={"git:":true,"https:":true,"git+https:":true,"http:":true,"git+http:":true};var u={};e.exports.fromUrl=function(e,t){if(typeof e!=="string")return;var n=e+JSON.stringify(t||{});if(!(n in u)){u[n]=fromUrl(e,t)}return u[n]};function fromUrl(e,t){if(e==null||e==="")return;var n=fixupUnqualifiedGist(isGitHubShorthand(e)?"github:"+e:e);var i=parseGitUrl(n);var a=n.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/);var u=Object.keys(s).map((function(e){try{var n=s[e];var u=null;if(i.auth&&l[i.protocol]){u=i.auth}var c=i.hash?decodeURIComponent(i.hash.substr(1)):null;var f=null;var p=null;var h=null;if(a&&a[1]===e){f=a[2]&&decodeURIComponent(a[2]);p=decodeURIComponent(a[3].replace(/\.git$/,""));h="shortcut"}else{if(i.host&&i.host!==n.domain&&i.host.replace(/^www[.]/,"")!==n.domain)return;if(!n.protocols_re.test(i.protocol))return;if(!i.path)return;var d=n.pathmatch;var m=i.path.match(d);if(!m)return;if(m[1]!==null&&m[1]!==undefined){f=decodeURIComponent(m[1].replace(/^:/,""))}p=decodeURIComponent(m[2]);h=protocolToRepresentation(i.protocol)}return new o(e,f,u,p,c,h,t)}catch(e){if(e instanceof URIError){}else throw e}})).filter((function(e){return e}));if(u.length!==1)return;return u[0]}function isGitHubShorthand(e){return/^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(e)}function fixupUnqualifiedGist(e){var t=i.parse(e);if(t.protocol==="gist:"&&t.host&&!t.path){return t.protocol+"/"+t.host}else{return e}}function parseGitUrl(e){var t=e.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);if(!t){var n=i.parse(e);if(n.auth&&typeof i.URL==="function"){var s=e.match(/[^@]+@[^:/]+/);if(s){var o=new i.URL(s[0]);n.auth=o.username||"";if(o.password)n.auth+=":"+o.password}}return n}return{protocol:"git+ssh:",slashes:true,auth:t[1],host:t[2],port:null,hostname:t[2],hash:t[4],search:null,query:null,pathname:"/"+t[3],path:"/"+t[3],href:"git+ssh://"+t[1]+"@"+t[2]+"/"+t[3]+(t[4]||"")}}},5727:e=>{e.exports=extractDescription;function extractDescription(e){if(!e)return;if(e==="ERROR: No README data found!")return;e=e.trim().split("\n");for(var t=0;e[t]&&e[t].trim().match(/^(#|$)/);t++);var n=e.length;for(var i=t+1;i{var i=n(8940);var s=n(2524);var o=n(8382);var a=n(9283).isCore;var l=["dependencies","devDependencies","optionalDependencies"];var u=n(5727);var c=n(8835);var f=n(6659);var p=e.exports={warn:function(){},fixRepositoryField:function(e){if(e.repositories){this.warn("repositories");e.repository=e.repositories[0]}if(!e.repository)return this.warn("missingRepository");if(typeof e.repository==="string"){e.repository={type:"git",url:e.repository}}var t=e.repository.url||"";if(t){var n=o.fromUrl(t);if(n){t=e.repository.url=n.getDefaultRepresentation()=="shortcut"?n.https():n.toString()}}if(t.match(/github.com\/[^\/]+\/[^\/]+\.git\.git$/)){this.warn("brokenGitUrl",t)}},fixTypos:function(e){Object.keys(f.topLevel).forEach((function(t){if(e.hasOwnProperty(t)){this.warn("typo",t,f.topLevel[t])}}),this)},fixScriptsField:function(e){if(!e.scripts)return;if(typeof e.scripts!=="object"){this.warn("nonObjectScripts");delete e.scripts;return}Object.keys(e.scripts).forEach((function(t){if(typeof e.scripts[t]!=="string"){this.warn("nonStringScript");delete e.scripts[t]}else if(f.script[t]&&!e.scripts[f.script[t]]){this.warn("typo",t,f.script[t],"scripts")}}),this)},fixFilesField:function(e){var t=e.files;if(t&&!Array.isArray(t)){this.warn("nonArrayFiles");delete e.files}else if(e.files){e.files=e.files.filter((function(e){if(!e||typeof e!=="string"){this.warn("invalidFilename",e);return false}else{return true}}),this)}},fixBinField:function(e){if(!e.bin)return;if(typeof e.bin==="string"){var t={};var n;if(n=e.name.match(/^@[^/]+[/](.*)$/)){t[n[1]]=e.bin}else{t[e.name]=e.bin}e.bin=t}},fixManField:function(e){if(!e.man)return;if(typeof e.man==="string"){e.man=[e.man]}},fixBundleDependenciesField:function(e){var t="bundledDependencies";var n="bundleDependencies";if(e[t]&&!e[n]){e[n]=e[t];delete e[t]}if(e[n]&&!Array.isArray(e[n])){this.warn("nonArrayBundleDependencies");delete e[n]}else if(e[n]){e[n]=e[n].filter((function(t){if(!t||typeof t!=="string"){this.warn("nonStringBundleDependency",t);return false}else{if(!e.dependencies){e.dependencies={}}if(!e.dependencies.hasOwnProperty(t)){this.warn("nonDependencyBundleDependency",t);e.dependencies[t]="*"}return true}}),this)}},fixDependencies:function(e,t){var n=!t;objectifyDeps(e,this.warn);addOptionalDepsToDeps(e,this.warn);this.fixBundleDependenciesField(e);["dependencies","devDependencies"].forEach((function(t){if(!(t in e))return;if(!e[t]||typeof e[t]!=="object"){this.warn("nonObjectDependencies",t);delete e[t];return}Object.keys(e[t]).forEach((function(n){var i=e[t][n];if(typeof i!=="string"){this.warn("nonStringDependency",n,JSON.stringify(i));delete e[t][n]}var s=o.fromUrl(e[t][n]);if(s)e[t][n]=s.toString()}),this)}),this)},fixModulesField:function(e){if(e.modules){this.warn("deprecatedModules");delete e.modules}},fixKeywordsField:function(e){if(typeof e.keywords==="string"){e.keywords=e.keywords.split(/,\s+/)}if(e.keywords&&!Array.isArray(e.keywords)){delete e.keywords;this.warn("nonArrayKeywords")}else if(e.keywords){e.keywords=e.keywords.filter((function(e){if(typeof e!=="string"||!e){this.warn("nonStringKeyword");return false}else{return true}}),this)}},fixVersionField:function(e,t){var n=!t;if(!e.version){e.version="";return true}if(!i.valid(e.version,n)){throw new Error('Invalid version: "'+e.version+'"')}e.version=i.clean(e.version,n);return true},fixPeople:function(e){modifyPeople(e,unParsePerson);modifyPeople(e,parsePerson)},fixNameField:function(e,t){if(typeof t==="boolean")t={strict:t};else if(typeof t==="undefined")t={};var n=t.strict;if(!e.name&&!n){e.name="";return}if(typeof e.name!=="string"){throw new Error("name field must be a string.")}if(!n)e.name=e.name.trim();ensureValidName(e.name,n,t.allowLegacyCase);if(a(e.name))this.warn("conflictingName",e.name)},fixDescriptionField:function(e){if(e.description&&typeof e.description!=="string"){this.warn("nonStringDescription");delete e.description}if(e.readme&&!e.description)e.description=u(e.readme);if(e.description===undefined)delete e.description;if(!e.description)this.warn("missingDescription")},fixReadmeField:function(e){if(!e.readme){this.warn("missingReadme");e.readme="ERROR: No README data found!"}},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=o.fromUrl(e.repository.url);if(t&&t.bugs()){e.bugs={url:t.bugs()}}}else if(e.bugs){var n=/^.+@.*\..+$/;if(typeof e.bugs=="string"){if(n.test(e.bugs))e.bugs={email:e.bugs};else if(c.parse(e.bugs).protocol)e.bugs={url:e.bugs};else this.warn("nonEmailUrlBugsString")}else{bugsTypos(e.bugs,this.warn);var i=e.bugs;e.bugs={};if(i.url){if(typeof i.url=="string"&&c.parse(i.url).protocol)e.bugs.url=i.url;else this.warn("nonUrlBugsUrlField")}if(i.email){if(typeof i.email=="string"&&n.test(i.email))e.bugs.email=i.email;else this.warn("nonEmailBugsEmailField")}}if(!e.bugs.email&&!e.bugs.url){delete e.bugs;this.warn("emptyNormalizedBugs")}}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=o.fromUrl(e.repository.url);if(t&&t.docs())e.homepage=t.docs()}if(!e.homepage)return;if(typeof e.homepage!=="string"){this.warn("nonUrlHomepage");return delete e.homepage}if(!c.parse(e.homepage).protocol){e.homepage="http://"+e.homepage}},fixLicenseField:function(e){if(!e.license){return this.warn("missingLicense")}else{if(typeof e.license!=="string"||e.license.length<1||e.license.trim()===""){this.warn("invalidLicense")}else{if(!s(e.license).validForNewPackages)this.warn("invalidLicense")}}}};function isValidScopedPackageName(e){if(e.charAt(0)!=="@")return false;var t=e.slice(1).split("/");if(t.length!==2)return false;return t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function isCorrectlyEncodedName(e){return!e.match(/[\/@\s\+%:]/)&&e===encodeURIComponent(e)}function ensureValidName(e,t,n){if(e.charAt(0)==="."||!(isValidScopedPackageName(e)||isCorrectlyEncodedName(e))||t&&!n&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico"){throw new Error("Invalid name: "+JSON.stringify(e))}}function modifyPeople(e,t){if(e.author)e.author=t(e.author);["maintainers","contributors"].forEach((function(n){if(!Array.isArray(e[n]))return;e[n]=e[n].map(t)}));return e}function unParsePerson(e){if(typeof e==="string")return e;var t=e.name||"";var n=e.url||e.web;var i=n?" ("+n+")":"";var s=e.email||e.mail;var o=s?" <"+s+">":"";return t+o+i}function parsePerson(e){if(typeof e!=="string")return e;var t=e.match(/^([^\(<]+)/);var n=e.match(/\(([^\)]+)\)/);var i=e.match(/<([^>]+)>/);var s={};if(t&&t[0].trim())s.name=t[0].trim();if(i)s.email=i[1];if(n)s.url=n[1];return s}function addOptionalDepsToDeps(e,t){var n=e.optionalDependencies;if(!n)return;var i=e.dependencies||{};Object.keys(n).forEach((function(e){i[e]=n[e]}));e.dependencies=i}function depObjectify(e,t,n){if(!e)return{};if(typeof e==="string"){e=e.trim().split(/[\n\r\s\t ,]+/)}if(!Array.isArray(e))return e;n("deprecatedArrayDependencies",t);var i={};e.filter((function(e){return typeof e==="string"})).forEach((function(e){e=e.trim().split(/(:?[@\s><=])/);var t=e.shift();var n=e.join("");n=n.trim();n=n.replace(/^@/,"");i[t]=n}));return i}function objectifyDeps(e,t){l.forEach((function(n){if(!e[n])return;e[n]=depObjectify(e[n],n,t)}))}function bugsTypos(e,t){if(!e)return;Object.keys(e).forEach((function(n){if(f.bugs[n]){t("typo",n,f.bugs[n],"bugs");e[f.bugs[n]]=e[n];delete e[n]}}))}},3676:(e,t,n)=>{var i=n(1669);var s=n(4136);e.exports=function(){var e=Array.prototype.slice.call(arguments,0);var t=e.shift();if(t=="typo"){return makeTypoWarning.apply(null,e)}else{var n=s[t]?s[t]:t+": '%s'";e.unshift(n);return i.format.apply(null,e)}};function makeTypoWarning(e,t,n){if(n){e=n+"['"+e+"']";t=n+"['"+t+"']"}return i.format(s.typo,e,t)}},5358:(e,t,n)=>{e.exports=normalize;var i=n(3403);normalize.fixer=i;var s=n(3676);var o=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"];var a=["dependencies","people","typos"];var l=o.map((function(e){return ucFirst(e)+"Field"}));l=l.concat(a);function normalize(e,t,n){if(t===true)t=null,n=true;if(!n)n=false;if(!t||e.private)t=function(e){};if(e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall){e.gypfile=true}i.warn=function(){t(s.apply(null,arguments))};l.forEach((function(t){i["fix"+ucFirst(t)](e,n)}));e._id=e.name+"@"+e.version}function ucFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}},8940:(e,t)=>{t=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var s=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var a=t.re=[];var l=t.src=[];var u=0;var c=u++;l[c]="0|[1-9]\\d*";var f=u++;l[f]="[0-9]+";var p=u++;l[p]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var h=u++;l[h]="("+l[c]+")\\."+"("+l[c]+")\\."+"("+l[c]+")";var d=u++;l[d]="("+l[f]+")\\."+"("+l[f]+")\\."+"("+l[f]+")";var m=u++;l[m]="(?:"+l[c]+"|"+l[p]+")";var g=u++;l[g]="(?:"+l[f]+"|"+l[p]+")";var y=u++;l[y]="(?:-("+l[m]+"(?:\\."+l[m]+")*))";var v=u++;l[v]="(?:-?("+l[g]+"(?:\\."+l[g]+")*))";var b=u++;l[b]="[0-9A-Za-z-]+";var w=u++;l[w]="(?:\\+("+l[b]+"(?:\\."+l[b]+")*))";var S=u++;var E="v?"+l[h]+l[y]+"?"+l[w]+"?";l[S]="^"+E+"$";var _="[v=\\s]*"+l[d]+l[v]+"?"+l[w]+"?";var O=u++;l[O]="^"+_+"$";var R=u++;l[R]="((?:<|>)?=?)";var C=u++;l[C]=l[f]+"|x|X|\\*";var A=u++;l[A]=l[c]+"|x|X|\\*";var L=u++;l[L]="[v=\\s]*("+l[A]+")"+"(?:\\.("+l[A]+")"+"(?:\\.("+l[A]+")"+"(?:"+l[y]+")?"+l[w]+"?"+")?)?";var x=u++;l[x]="[v=\\s]*("+l[C]+")"+"(?:\\.("+l[C]+")"+"(?:\\.("+l[C]+")"+"(?:"+l[v]+")?"+l[w]+"?"+")?)?";var I=u++;l[I]="^"+l[R]+"\\s*"+l[L]+"$";var T=u++;l[T]="^"+l[R]+"\\s*"+l[x]+"$";var P=u++;l[P]="(?:^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";var k=u++;l[k]="(?:~>?)";var N=u++;l[N]="(\\s*)"+l[k]+"\\s+";a[N]=new RegExp(l[N],"g");var M="$1~";var D=u++;l[D]="^"+l[k]+l[L]+"$";var j=u++;l[j]="^"+l[k]+l[x]+"$";var $=u++;l[$]="(?:\\^)";var F=u++;l[F]="(\\s*)"+l[$]+"\\s+";a[F]=new RegExp(l[F],"g");var B="$1^";var U=u++;l[U]="^"+l[$]+l[L]+"$";var H=u++;l[H]="^"+l[$]+l[x]+"$";var G=u++;l[G]="^"+l[R]+"\\s*("+_+")$|^$";var W=u++;l[W]="^"+l[R]+"\\s*("+E+")$|^$";var V=u++;l[V]="(\\s*)"+l[R]+"\\s*("+_+"|"+l[L]+")";a[V]=new RegExp(l[V],"g");var q="$1$2$3";var Y=u++;l[Y]="^\\s*("+l[L]+")"+"\\s+-\\s+"+"("+l[L]+")"+"\\s*$";var z=u++;l[z]="^\\s*("+l[x]+")"+"\\s+-\\s+"+"("+l[x]+")"+"\\s*$";var K=u++;l[K]="(<|>)?=?\\s*\\*";for(var X=0;Xi){return null}var n=t.loose?a[O]:a[S];if(!n.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var n=parse(e,t);return n?n.version:null}t.clean=clean;function clean(e,t){var n=parse(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;var o=e.trim().match(t.loose?a[O]:a[S]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>s||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>s||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>s||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,n,i){if(typeof n==="string"){i=n;n=undefined}try{return new SemVer(e,n).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var n=parse(e);var i=parse(t);var s="";if(n.prerelease.length||i.prerelease.length){s="pre";var o="prerelease"}for(var a in n){if(a==="major"||a==="minor"||a==="patch"){if(n[a]!==i[a]){return s+a}}}return o}}t.compareIdentifiers=compareIdentifiers;var J=/^[0-9]+$/;function compareIdentifiers(e,t){var n=J.test(e);var i=J.test(t);if(n&&i){e=+e;t=+t}return e===t?0:n&&!i?-1:i&&!n?1:e0}t.lt=lt;function lt(e,t,n){return compare(e,t,n)<0}t.eq=eq;function eq(e,t,n){return compare(e,t,n)===0}t.neq=neq;function neq(e,t,n){return compare(e,t,n)!==0}t.gte=gte;function gte(e,t,n){return compare(e,t,n)>=0}t.lte=lte;function lte(e,t,n){return compare(e,t,n)<=0}t.cmp=cmp;function cmp(e,t,n,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,i);case"!=":return neq(e,n,i);case">":return gt(e,n,i);case">=":return gte(e,n,i);case"<":return lt(e,n,i);case"<=":return lte(e,n,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===Z){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var Z={};Comparator.prototype.parse=function(e){var t=this.options.loose?a[G]:a[W];var n=e.match(t);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1];if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=Z}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===Z){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var n;if(this.operator===""){n=new Range(e.value,t);return satisfies(this.value,n,t)}else if(e.operator===""){n=new Range(this.value,t);return satisfies(e.semver,n,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var l=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var u=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||s||o&&a||l||u};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var i=t?a[z]:a[Y];e=e.replace(i,hyphenReplace);n("hyphen replace",e);e=e.replace(a[V],q);n("comparator trim",e,a[V]);e=e.replace(a[N],M);e=e.replace(a[F],B);e=e.split(/\s+/).join(" ");var s=t?a[G]:a[W];var o=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter((function(e){return!!e.match(s)}))}o=o.map((function(e){return new Comparator(e,this.options)}),this);return o};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){n("comp",e,t);e=replaceCarets(e,t);n("caret",e);e=replaceTildes(e,t);n("tildes",e);e=replaceXRanges(e,t);n("xrange",e);e=replaceStars(e,t);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var i=t.loose?a[j]:a[D];return e.replace(i,(function(t,i,s,o,a){n("tilde",e,t,i,s,o,a);var l;if(isX(i)){l=""}else if(isX(s)){l=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(o)){l=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else if(a){n("replaceTilde pr",a);l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+(+s+1)+".0"}else{l=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0"}n("tilde return",l);return l}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){n("caret",e,t);var i=t.loose?a[H]:a[U];return e.replace(i,(function(t,i,s,o,a){n("caret",e,t,i,s,o,a);var l;if(isX(i)){l=""}else if(isX(s)){l=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(o)){if(i==="0"){l=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}else{l=">="+i+"."+s+".0 <"+(+i+1)+".0.0"}}else if(a){n("replaceCaret pr",a);if(i==="0"){if(s==="0"){l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+s+"."+(+o+1)}else{l=">="+i+"."+s+"."+o+"-"+a+" <"+i+"."+(+s+1)+".0"}}else{l=">="+i+"."+s+"."+o+"-"+a+" <"+(+i+1)+".0.0"}}else{n("no pr");if(i==="0"){if(s==="0"){l=">="+i+"."+s+"."+o+" <"+i+"."+s+"."+(+o+1)}else{l=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0"}}else{l=">="+i+"."+s+"."+o+" <"+(+i+1)+".0.0"}}n("caret return",l);return l}))}function replaceXRanges(e,t){n("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?a[T]:a[I];return e.replace(i,(function(t,i,s,o,a,l){n("xRange",e,t,i,s,o,a,l);var u=isX(s);var c=u||isX(o);var f=c||isX(a);var p=f;if(i==="="&&p){i=""}if(u){if(i===">"||i==="<"){t="<0.0.0"}else{t="*"}}else if(i&&p){if(c){o=0}a=0;if(i===">"){i=">=";if(c){s=+s+1;o=0;a=0}else{o=+o+1;a=0}}else if(i==="<="){i="<";if(c){s=+s+1}else{o=+o+1}}t=i+s+"."+o+"."+a}else if(c){t=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(f){t=">="+s+"."+o+".0 <"+s+"."+(+o+1)+".0"}n("xRange return",t);return t}))}function replaceStars(e,t){n("replaceStars",e,t);return e.trim().replace(a[K],"")}function hyphenReplace(e,t,n,i,s,o,a,l,u,c,f,p,h){if(isX(n)){t=""}else if(isX(i)){t=">="+n+".0.0"}else if(isX(s)){t=">="+n+"."+i+".0"}else{t=">="+t}if(isX(u)){l=""}else if(isX(c)){l="<"+(+u+1)+".0.0"}else if(isX(f)){l="<"+u+"."+(+c+1)+".0"}else if(p){l="<="+u+"."+c+"."+f+"-"+p}else{l="<="+l}return(t+" "+l).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t0){var o=e[s].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,n){try{t=new Range(t,n)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,n){var i=null;var s=null;try{var o=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!i||s.compare(e)===-1){i=e;s=new SemVer(i,n)}}}));return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,n){var i=null;var s=null;try{var o=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!i||s.compare(e)===1){i=e;s=new SemVer(i,n)}}}));return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||gt(n,t)){n=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n)){return n}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,n){return outside(e,t,"<",n)}t.gtr=gtr;function gtr(e,t,n){return outside(e,t,">",n)}t.outside=outside;function outside(e,t,n,i){e=new SemVer(e,i);t=new Range(t,i);var s,o,a,l,u;switch(n){case">":s=gt;o=lte;a=lt;l=">";u=">=";break;case"<":s=lt;o=gte;a=gt;l="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var c=0;c=0.0.0")}p=p||e;h=h||e;if(s(e.semver,p.semver,i)){p=e}else if(a(e.semver,h.semver,i)){h=e}}));if(p.operator===l||p.operator===u){return false}if((!h.operator||h.operator===l)&&o(e,h.semver)){return false}else if(h.operator===u&&a(e,h.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var n=parse(e,t);return n&&n.prerelease.length?n.prerelease:null}t.intersects=intersects;function intersects(e,t,n){e=new Range(e,n);t=new Range(t,n);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(a[P]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},7214:e=>{"use strict";const t={};function createErrorType(e,n,i){if(!i){i=Error}function getMessage(e,t,i){if(typeof n==="string"){return n}else{return n(e,t,i)}}class NodeError extends i{constructor(e,t,n){super(getMessage(e,t,n))}}NodeError.prototype.name=i.name;NodeError.prototype.code=e;t[e]=NodeError}function oneOf(e,t){if(Array.isArray(e)){const n=e.length;e=e.map((e=>String(e)));if(n>2){return`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]}else if(n===2){return`one of ${t} ${e[0]} or ${e[1]}`}else{return`of ${t} ${e[0]}`}}else{return`of ${t} ${String(e)}`}}function startsWith(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function endsWith(e,t,n){if(n===undefined||n>e.length){n=e.length}return e.substring(n-t.length,n)===t}function includes(e,t,n){if(typeof n!=="number"){n=0}if(n+t.length>e.length){return false}else{return e.indexOf(t,n)!==-1}}createErrorType("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError);createErrorType("ERR_INVALID_ARG_TYPE",(function(e,t,n){let i;if(typeof t==="string"&&startsWith(t,"not ")){i="must not be";t=t.replace(/^not /,"")}else{i="must be"}let s;if(endsWith(e," argument")){s=`The ${e} ${i} ${oneOf(t,"type")}`}else{const n=includes(e,".")?"property":"argument";s=`The "${e}" ${n} ${i} ${oneOf(t,"type")}`}s+=`. Received type ${typeof n}`;return s}),TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"}));createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"}));createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");e.exports.q=t},1359:(e,t,n)=>{"use strict";var i=Object.keys||function(e){var t=[];for(var n in e){t.push(n)}return t};e.exports=Duplex;var s=n(1433);var o=n(6993);n(4124)(Duplex,s);{var a=i(o.prototype);for(var l=0;l{"use strict";e.exports=PassThrough;var i=n(4415);n(4124)(PassThrough,i);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}PassThrough.prototype._transform=function(e,t,n){n(null,e)}},1433:(e,t,n)=>{"use strict";e.exports=Readable;var i;Readable.ReadableState=ReadableState;var s=n(8614).EventEmitter;var o=function EElistenerCount(e,t){return e.listeners(t).length};var a=n(2387);var l=n(4293).Buffer;var u=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return l.from(e)}function _isUint8Array(e){return l.isBuffer(e)||e instanceof u}var c=n(1669);var f;if(c&&c.debuglog){f=c.debuglog("stream")}else{f=function debug(){}}var p=n(2746);var h=n(7049);var d=n(9948),m=d.getHighWaterMark;var g=n(7214).q,y=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,b=g.ERR_METHOD_NOT_IMPLEMENTED,w=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var S;var E;var _;n(4124)(Readable,a);var O=h.errorOrDestroy;var R=["error","close","destroy","pause","resume"];function prependListener(e,t,n){if(typeof e.prependListener==="function")return e.prependListener(t,n);if(!e._events||!e._events[t])e.on(t,n);else if(Array.isArray(e._events[t]))e._events[t].unshift(n);else e._events[t]=[n,e._events[t]]}function ReadableState(e,t,s){i=i||n(1359);e=e||{};if(typeof s!=="boolean")s=t instanceof i;this.objectMode=!!e.objectMode;if(s)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=m(this,e,"readableHighWaterMark",s);this.buffer=new p;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.paused=true;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!S)S=n(4841).s;this.decoder=new S(e.encoding);this.encoding=e.encoding}}function Readable(e){i=i||n(1359);if(!(this instanceof Readable))return new Readable(e);var t=this instanceof i;this._readableState=new ReadableState(e,this,t);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}a.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:false,get:function get(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function set(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=h.destroy;Readable.prototype._undestroy=h.undestroy;Readable.prototype._destroy=function(e,t){t(e)};Readable.prototype.push=function(e,t){var n=this._readableState;var i;if(!n.objectMode){if(typeof e==="string"){t=t||n.defaultEncoding;if(t!==n.encoding){e=l.from(e,t);t=""}i=true}}else{i=true}return readableAddChunk(this,e,t,false,i)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,n,i,s){f("readableAddChunk",t);var o=e._readableState;if(t===null){o.reading=false;onEofChunk(e,o)}else{var a;if(!s)a=chunkInvalid(o,t);if(a){O(e,a)}else if(o.objectMode||t&&t.length>0){if(typeof t!=="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==l.prototype){t=_uint8ArrayToBuffer(t)}if(i){if(o.endEmitted)O(e,new w);else addChunk(e,o,t,true)}else if(o.ended){O(e,new v)}else if(o.destroyed){return false}else{o.reading=false;if(o.decoder&&!n){t=o.decoder.write(t);if(o.objectMode||t.length!==0)addChunk(e,o,t,false);else maybeReadMore(e,o)}else{addChunk(e,o,t,false)}}}else if(!i){o.reading=false;maybeReadMore(e,o)}}return!o.ended&&(o.length=C){e=C}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){f("read",e);e=parseInt(e,10);var t=this._readableState;var n=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended)){f("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var i=t.needReadable;f("need readable",i);if(t.length===0||t.length-e0)s=fromList(e,t);else s=null;if(s===null){t.needReadable=t.length<=t.highWaterMark;e=0}else{t.length-=e;t.awaitDrain=0}if(t.length===0){if(!t.ended)t.needReadable=true;if(n!==e&&t.ended)endReadable(this)}if(s!==null)this.emit("data",s);return s};function onEofChunk(e,t){f("onEofChunk");if(t.ended)return;if(t.decoder){var n=t.decoder.end();if(n&&n.length){t.buffer.push(n);t.length+=t.objectMode?1:n.length}}t.ended=true;if(t.sync){emitReadable(e)}else{t.needReadable=false;if(!t.emittedReadable){t.emittedReadable=true;emitReadable_(e)}}}function emitReadable(e){var t=e._readableState;f("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){f("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;f("emitReadable_",t.destroyed,t.length,t.ended);if(!t.destroyed&&(t.length||t.ended)){e.emit("readable");t.emittedReadable=false}t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark;flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;process.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){while(!t.reading&&!t.ended&&(t.length1&&indexOf(i.pipes,e)!==-1)&&!u){f("false write response, pause",i.awaitDrain);i.awaitDrain++}n.pause()}}function onerror(t){f("onerror",t);unpipe();e.removeListener("error",onerror);if(o(e,"error")===0)O(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){f("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){f("unpipe");n.unpipe(e)}e.emit("pipe",n);if(!i.flowing){f("pipe resume");n.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&o(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var n={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,n);return this}if(!e){var i=t.pipes;var s=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var o=0;o0;if(i.flowing!==false)this.resume()}else if(e==="readable"){if(!i.endEmitted&&!i.readableListening){i.readableListening=i.needReadable=true;i.flowing=false;i.emittedReadable=false;f("on readable",i.length,i.reading);if(i.length){emitReadable(this)}else if(!i.reading){process.nextTick(nReadingNextTick,this)}}}return n};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return n};Readable.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);if(e==="readable"||e===undefined){process.nextTick(updateReadableListening,this)}return t};function updateReadableListening(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0;if(t.resumeScheduled&&!t.paused){t.flowing=true}else if(e.listenerCount("data")>0){e.resume()}}function nReadingNextTick(e){f("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){f("resume");e.flowing=!e.readableListening;resume(this,e)}e.paused=false;return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;process.nextTick(resume_,e,t)}}function resume_(e,t){f("resume",t.reading);if(!t.reading){e.read(0)}t.resumeScheduled=false;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){f("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){f("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;f("flow",t.flowing);while(t.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var t=this;var n=this._readableState;var i=false;e.on("end",(function(){f("wrapped end");if(n.decoder&&!n.ended){var e=n.decoder.end();if(e&&e.length)t.push(e)}t.push(null)}));e.on("data",(function(s){f("wrapped data");if(n.decoder)s=n.decoder.write(s);if(n.objectMode&&(s===null||s===undefined))return;else if(!n.objectMode&&(!s||!s.length))return;var o=t.push(s);if(!o){i=true;e.pause()}}));for(var s in e){if(this[s]===undefined&&typeof e[s]==="function"){this[s]=function methodWrap(t){return function methodWrapReturnFunction(){return e[t].apply(e,arguments)}}(s)}}for(var o=0;o=t.length){if(t.decoder)n=t.buffer.join("");else if(t.buffer.length===1)n=t.buffer.first();else n=t.buffer.concat(t.length);t.buffer.clear()}else{n=t.buffer.consume(e,t.decoder)}return n}function endReadable(e){var t=e._readableState;f("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){f("endReadableNT",e.endEmitted,e.length);if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end");if(e.autoDestroy){var n=t._writableState;if(!n||n.autoDestroy&&n.finished){t.destroy()}}}}if(typeof Symbol==="function"){Readable.from=function(e,t){if(_===undefined){_=n(9082)}return _(Readable,e,t)}}function indexOf(e,t){for(var n=0,i=e.length;n{"use strict";e.exports=Transform;var i=n(7214).q,s=i.ERR_METHOD_NOT_IMPLEMENTED,o=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,l=i.ERR_TRANSFORM_WITH_LENGTH_0;var u=n(1359);n(4124)(Transform,u);function afterTransform(e,t){var n=this._transformState;n.transforming=false;var i=n.writecb;if(i===null){return this.emit("error",new o)}n.writechunk=null;n.writecb=null;if(t!=null)this.push(t);i(e);var s=this._readableState;s.reading=false;if(s.needReadable||s.length{"use strict";e.exports=Writable;function WriteReq(e,t,n){this.chunk=e;this.encoding=t;this.callback=n;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var i;Writable.WritableState=WritableState;var s={deprecate:n(7127)};var o=n(2387);var a=n(4293).Buffer;var l=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return a.from(e)}function _isUint8Array(e){return a.isBuffer(e)||e instanceof l}var u=n(7049);var c=n(9948),f=c.getHighWaterMark;var p=n(7214).q,h=p.ERR_INVALID_ARG_TYPE,d=p.ERR_METHOD_NOT_IMPLEMENTED,m=p.ERR_MULTIPLE_CALLBACK,g=p.ERR_STREAM_CANNOT_PIPE,y=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,b=p.ERR_STREAM_WRITE_AFTER_END,w=p.ERR_UNKNOWN_ENCODING;var S=u.errorOrDestroy;n(4124)(Writable,o);function nop(){}function WritableState(e,t,s){i=i||n(1359);e=e||{};if(typeof s!=="boolean")s=t instanceof i;this.objectMode=!!e.objectMode;if(s)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=f(this,e,"writableHighWaterMark",s);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var o=e.decodeStrings===false;this.decodeStrings=!o;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:s.deprecate((function writableStateBufferGetter(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var E;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){E=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(E.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{E=function realHasInstance(e){return e instanceof this}}function Writable(e){i=i||n(1359);var t=this instanceof i;if(!t&&!E.call(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,t);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}o.call(this)}Writable.prototype.pipe=function(){S(this,new g)};function writeAfterEnd(e,t){var n=new b;S(e,n);process.nextTick(t,n)}function validChunk(e,t,n,i){var s;if(n===null){s=new v}else if(typeof n!=="string"&&!t.objectMode){s=new h("chunk",["string","Buffer"],n)}if(s){S(e,s);process.nextTick(i,s);return false}return true}Writable.prototype.write=function(e,t,n){var i=this._writableState;var s=false;var o=!i.objectMode&&_isUint8Array(e);if(o&&!a.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){n=t;t=null}if(o)t="buffer";else if(!t)t=i.defaultEncoding;if(typeof n!=="function")n=nop;if(i.ending)writeAfterEnd(this,n);else if(o||validChunk(this,i,e,n)){i.pendingcb++;s=writeOrBuffer(this,i,o,e,t,n)}return s};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);this._writableState.defaultEncoding=e;return this};Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:false,get:function get(){return this._writableState&&this._writableState.getBuffer()}});function decodeChunk(e,t,n){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=a.from(t,n)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function get(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,n,i,s,o){if(!n){var a=decodeChunk(t,i,s);if(i!==a){n=true;s="buffer";i=a}}var l=t.objectMode?1:i.length;t.length+=l;var u=t.length{"use strict";var i;function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}var s=n(6080);var o=Symbol("lastResolve");var a=Symbol("lastReject");var l=Symbol("error");var u=Symbol("ended");var c=Symbol("lastPromise");var f=Symbol("handlePromise");var p=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[o];if(t!==null){var n=e[p].read();if(n!==null){e[c]=null;e[o]=null;e[a]=null;t(createIterResult(n,false))}}}function onReadable(e){process.nextTick(readAndResolve,e)}function wrapForNext(e,t){return function(n,i){e.then((function(){if(t[u]){n(createIterResult(undefined,true));return}t[f](n,i)}),i)}}var h=Object.getPrototypeOf((function(){}));var d=Object.setPrototypeOf((i={get stream(){return this[p]},next:function next(){var e=this;var t=this[l];if(t!==null){return Promise.reject(t)}if(this[u]){return Promise.resolve(createIterResult(undefined,true))}if(this[p].destroyed){return new Promise((function(t,n){process.nextTick((function(){if(e[l]){n(e[l])}else{t(createIterResult(undefined,true))}}))}))}var n=this[c];var i;if(n){i=new Promise(wrapForNext(n,this))}else{var s=this[p].read();if(s!==null){return Promise.resolve(createIterResult(s,false))}i=new Promise(this[f])}this[c]=i;return i}},_defineProperty(i,Symbol.asyncIterator,(function(){return this})),_defineProperty(i,"return",(function _return(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){if(e){n(e);return}t(createIterResult(undefined,true))}))}))})),i),h);var m=function createReadableStreamAsyncIterator(e){var t;var n=Object.create(d,(t={},_defineProperty(t,p,{value:e,writable:true}),_defineProperty(t,o,{value:null,writable:true}),_defineProperty(t,a,{value:null,writable:true}),_defineProperty(t,l,{value:null,writable:true}),_defineProperty(t,u,{value:e._readableState.endEmitted,writable:true}),_defineProperty(t,f,{value:function value(e,t){var i=n[p].read();if(i){n[c]=null;n[o]=null;n[a]=null;e(createIterResult(i,false))}else{n[o]=e;n[a]=t}},writable:true}),t));n[c]=null;s(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=n[a];if(t!==null){n[c]=null;n[o]=null;n[a]=null;t(e)}n[l]=e;return}var i=n[o];if(i!==null){n[c]=null;n[o]=null;n[a]=null;i(createIterResult(undefined,true))}n[u]=true}));e.on("readable",onReadable.bind(null,n));return n};e.exports=m},2746:(e,t,n)=>{"use strict";function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);if(t)i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}));n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t0)this.tail.next=t;else this.head=t;this.tail=t;++this.length}},{key:"unshift",value:function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length}},{key:"shift",value:function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e}},{key:"clear",value:function clear(){this.head=this.tail=null;this.length=0}},{key:"join",value:function join(e){if(this.length===0)return"";var t=this.head;var n=""+t.data;while(t=t.next){n+=e+t.data}return n}},{key:"concat",value:function concat(e){if(this.length===0)return s.alloc(0);var t=s.allocUnsafe(e>>>0);var n=this.head;var i=0;while(n){copyBuffer(n.data,t,i);i+=n.data.length;n=n.next}return t}},{key:"consume",value:function consume(e,t){var n;if(es.length?s.length:e;if(o===s.length)i+=s;else i+=s.slice(0,e);e-=o;if(e===0){if(o===s.length){++n;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=s.slice(o)}break}++n}this.length-=n;return i}},{key:"_getBuffer",value:function _getBuffer(e){var t=s.allocUnsafe(e);var n=this.head;var i=1;n.data.copy(t);e-=n.data.length;while(n=n.next){var o=n.data;var a=e>o.length?o.length:e;o.copy(t,t.length-e,0,a);e-=a;if(e===0){if(a===o.length){++i;if(n.next)this.head=n.next;else this.head=this.tail=null}else{this.head=n;n.data=o.slice(a)}break}++i}this.length-=i;return t}},{key:l,value:function value(e,t){return a(this,_objectSpread({},t,{depth:0,customInspect:false}))}}]);return BufferList}()},7049:e=>{"use strict";function destroy(e,t){var n=this;var i=this._readableState&&this._readableState.destroyed;var s=this._writableState&&this._writableState.destroyed;if(i||s){if(t){t(e)}else if(e){if(!this._writableState){process.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;process.nextTick(emitErrorNT,this,e)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!t&&e){if(!n._writableState){process.nextTick(emitErrorAndCloseNT,n,e)}else if(!n._writableState.errorEmitted){n._writableState.errorEmitted=true;process.nextTick(emitErrorAndCloseNT,n,e)}else{process.nextTick(emitCloseNT,n)}}else if(t){process.nextTick(emitCloseNT,n);t(e)}else{process.nextTick(emitCloseNT,n)}}));return this}function emitErrorAndCloseNT(e,t){emitErrorNT(e,t);emitCloseNT(e)}function emitCloseNT(e){if(e._writableState&&!e._writableState.emitClose)return;if(e._readableState&&!e._readableState.emitClose)return;e.emit("close")}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}function errorOrDestroy(e,t){var n=e._readableState;var i=e._writableState;if(n&&n.autoDestroy||i&&i.autoDestroy)e.destroy(t);else e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},6080:(e,t,n)=>{"use strict";var i=n(7214).q.ERR_STREAM_PREMATURE_CLOSE;function once(e){var t=false;return function(){if(t)return;t=true;for(var n=arguments.length,i=new Array(n),s=0;s{"use strict";function asyncGeneratorStep(e,t,n,i,s,o,a){try{var l=e[o](a);var u=l.value}catch(e){n(e);return}if(l.done){t(u)}else{Promise.resolve(u).then(i,s)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(i,s){var o=e.apply(t,n);function _next(e){asyncGeneratorStep(o,i,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(o,i,s,_next,_throw,"throw",e)}_next(undefined)}))}}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);if(t)i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}));n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t{"use strict";var i;function once(e){var t=false;return function(){if(t)return;t=true;e.apply(void 0,arguments)}}var s=n(7214).q,o=s.ERR_MISSING_ARGS,a=s.ERR_STREAM_DESTROYED;function noop(e){if(e)throw e}function isRequest(e){return e.setHeader&&typeof e.abort==="function"}function destroyer(e,t,s,o){o=once(o);var l=false;e.on("close",(function(){l=true}));if(i===undefined)i=n(6080);i(e,{readable:t,writable:s},(function(e){if(e)return o(e);l=true;o()}));var u=false;return function(t){if(l)return;if(u)return;u=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();o(t||new a("pipe"))}}function call(e){e()}function pipe(e,t){return e.pipe(t)}function popCallback(e){if(!e.length)return noop;if(typeof e[e.length-1]!=="function")return noop;return e.pop()}function pipeline(){for(var e=arguments.length,t=new Array(e),n=0;n0;return destroyer(e,o,l,(function(e){if(!s)s=e;if(e)a.forEach(call);if(o)return;a.forEach(call);i(s)}))}));return t.reduce(pipe)}e.exports=pipeline},9948:(e,t,n)=>{"use strict";var i=n(7214).q.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function getHighWaterMark(e,t,n,s){var o=highWaterMarkFrom(t,s,n);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var a=s?n:"highWaterMark";throw new i(a,o)}return Math.floor(o)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},2387:(e,t,n)=>{e.exports=n(2413)},1642:(e,t,n)=>{var i=n(2413);if(process.env.READABLE_STREAM==="disable"&&i){e.exports=i.Readable;Object.assign(e.exports,i);e.exports.Stream=i}else{t=e.exports=n(1433);t.Stream=i||t;t.Readable=t;t.Writable=n(6993);t.Duplex=n(1359);t.Transform=n(4415);t.PassThrough=n(1542);t.finished=n(6080);t.pipeline=n(6989)}},9283:(e,t,n)=>{var i=n(2125);i.core=n(6226);i.isCore=n(8115);i.sync=n(5284);e.exports=i},2125:(e,t,n)=>{var i=n(5747);var s=n(5622);var o=n(6155);var a=n(3265);var l=n(7990);var u=n(6873);var c=i.realpath&&typeof i.realpath.native==="function"?i.realpath.native:i.realpath;var f=function isFile(e,t){i.stat(e,(function(e,n){if(!e){return t(null,n.isFile()||n.isFIFO())}if(e.code==="ENOENT"||e.code==="ENOTDIR")return t(null,false);return t(e)}))};var p=function isDirectory(e,t){i.stat(e,(function(e,n){if(!e){return t(null,n.isDirectory())}if(e.code==="ENOENT"||e.code==="ENOTDIR")return t(null,false);return t(e)}))};var h=function realpath(e,t){c(e,(function(n,i){if(n&&n.code!=="ENOENT")t(n);else t(null,n?e:i)}))};var d=function maybeRealpath(e,t,n,i){if(n&&n.preserveSymlinks===false){e(t,i)}else{i(null,t)}};var m=function defaultReadPackage(e,t,n){e(t,(function(e,t){if(e)n(e);else{try{var i=JSON.parse(t);n(null,i)}catch(e){n(null)}}}))};var g=function getPackageCandidates(e,t,n){var i=a(t,n,e);for(var o=0;o{e.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t};var t=(new Error).stack;Error.prepareStackTrace=e;return t[2].getFileName()}},6226:(e,t,n)=>{var i=process.versions&&process.versions.node&&process.versions.node.split(".")||[];function specifierIncluded(e){var t=e.split(" ");var n=t.length>1?t[0]:"=";var s=(t.length>1?t[1]:t[0]).split(".");for(var o=0;o<3;++o){var a=parseInt(i[o]||0,10);var l=parseInt(s[o]||0,10);if(a===l){continue}if(n==="<"){return a="){return a>=l}else{return false}}return n===">="}function matchesRange(e){var t=e.split(/ ?&& ?/);if(t.length===0){return false}for(var n=0;n{var i=n(6873);e.exports=function isCore(e){return i(e)}},3265:(e,t,n)=>{var i=n(5622);var s=i.parse||n(5980);var o=function getNodeModulesDirs(e,t){var n="/";if(/^([A-Za-z]:)/.test(e)){n=""}else if(/^\\\\/.test(e)){n="\\\\"}var o=[e];var a=s(e);while(a.dir!==o[o.length-1]){o.push(a.dir);a=s(a.dir)}return o.reduce((function(e,s){return e.concat(t.map((function(e){return i.resolve(n,s,e)})))}),[])};e.exports=function nodeModulesPaths(e,t,n){var i=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&typeof t.paths==="function"){return t.paths(n,e,(function(){return o(e,i)}),t)}var s=o(e,i);return t&&t.paths?s.concat(t.paths):s}},7990:e=>{e.exports=function(e,t){return t||{}}},5284:(e,t,n)=>{var i=n(6873);var s=n(5747);var o=n(5622);var a=n(6155);var l=n(3265);var u=n(7990);var c=s.realpathSync&&typeof s.realpathSync.native==="function"?s.realpathSync.native:s.realpathSync;var f=function isFile(e){try{var t=s.statSync(e)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR"))return false;throw e}return t.isFile()||t.isFIFO()};var p=function isDirectory(e){try{var t=s.statSync(e)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR"))return false;throw e}return t.isDirectory()};var h=function realpathSync(e){try{return c(e)}catch(e){if(e.code!=="ENOENT"){throw e}}return e};var d=function maybeRealpathSync(e,t,n){if(n&&n.preserveSymlinks===false){return e(t)}return t};var m=function defaultReadPackageSync(e,t){var n=e(t);try{var i=JSON.parse(n);return i}catch(e){}};var g=function getPackageCandidates(e,t,n){var i=l(t,n,e);for(var s=0;s{ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ -var i=n(4293);var s=i.Buffer;function copyProps(e,t){for(var n in e){t[n]=e[n]}}if(s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow){e.exports=i}else{copyProps(i,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,n){return s(e,t,n)}SafeBuffer.prototype=Object.create(s.prototype);copyProps(s,SafeBuffer);SafeBuffer.from=function(e,t,n){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return s(e,t,n)};SafeBuffer.alloc=function(e,t,n){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var i=s(e);if(t!==undefined){if(typeof n==="string"){i.fill(t,n)}else{i.fill(t)}}else{i.fill(0)}return i};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return s(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i.SlowBuffer(e)}},1532:(e,t,n)=>{const i=Symbol("SemVer ANY");class Comparator{static get ANY(){return i}constructor(e,t){t=s(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}u("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===i){this.value=""}else{this.value=this.operator+this.semver.version}u("comp",this)}parse(e){const t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=i}else{this.semver=new c(n[2],this.options.loose)}}toString(){return this.value}test(e){u("Comparator.test",e,this.options.loose);if(this.semver===i||e===i){return true}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new f(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new f(this.value,t).test(e.semver)}const n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const s=this.semver.version===e.semver.version;const o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const a=l(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const u=l(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||i||s&&o||a||u}}e.exports=Comparator;const s=n(785);const{re:o,t:a}=n(9523);const l=n(5098);const u=n(427);const c=n(8088);const f=n(9828)},9828:(e,t,n)=>{class Range{constructor(e,t){t=o(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof a){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0)this.set=[e];else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=Object.keys(this.options).join(",");const n=`parseRange:${t}:${e}`;const i=s.get(n);if(i)return i;const o=this.options.loose;const u=o?c[f.HYPHENRANGELOOSE]:c[f.HYPHENRANGE];e=e.replace(u,hyphenReplace(this.options.includePrerelease));l("hyphen replace",e);e=e.replace(c[f.COMPARATORTRIM],p);l("comparator trim",e,c[f.COMPARATORTRIM]);e=e.replace(c[f.TILDETRIM],h);e=e.replace(c[f.CARETTRIM],d);e=e.split(/\s+/).join(" ");const m=o?c[f.COMPARATORLOOSE]:c[f.COMPARATOR];const g=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options))).filter(this.options.loose?e=>!!e.match(m):()=>true).map((e=>new a(e,this.options)));const y=g.length;const v=new Map;for(const e of g){if(isNullSet(e))return[e];v.set(e.value,e)}if(v.size>1&&v.has(""))v.delete("");const b=[...v.values()];s.set(n,b);return b}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new u(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const i=e.slice();let s=i.pop();while(n&&i.length){n=i.every((e=>s.intersects(e,t)));s=i.pop()}return n};const parseComparator=(e,t)=>{l("comp",e,t);e=replaceCarets(e,t);l("caret",e);e=replaceTildes(e,t);l("tildes",e);e=replaceXRanges(e,t);l("xrange",e);e=replaceStars(e,t);l("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?c[f.TILDELOOSE]:c[f.TILDE];return e.replace(n,((t,n,i,s,o)=>{l("tilde",e,t,n,i,s,o);let a;if(isX(n)){a=""}else if(isX(i)){a=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(s)){a=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`}else if(o){l("replaceTilde pr",o);a=`>=${n}.${i}.${s}-${o} <${n}.${+i+1}.0-0`}else{a=`>=${n}.${i}.${s} <${n}.${+i+1}.0-0`}l("tilde return",a);return a}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{l("caret",e,t);const n=t.loose?c[f.CARETLOOSE]:c[f.CARET];const i=t.includePrerelease?"-0":"";return e.replace(n,((t,n,s,o,a)=>{l("caret",e,t,n,s,o,a);let u;if(isX(n)){u=""}else if(isX(s)){u=`>=${n}.0.0${i} <${+n+1}.0.0-0`}else if(isX(o)){if(n==="0"){u=`>=${n}.${s}.0${i} <${n}.${+s+1}.0-0`}else{u=`>=${n}.${s}.0${i} <${+n+1}.0.0-0`}}else if(a){l("replaceCaret pr",a);if(n==="0"){if(s==="0"){u=`>=${n}.${s}.${o}-${a} <${n}.${s}.${+o+1}-0`}else{u=`>=${n}.${s}.${o}-${a} <${n}.${+s+1}.0-0`}}else{u=`>=${n}.${s}.${o}-${a} <${+n+1}.0.0-0`}}else{l("no pr");if(n==="0"){if(s==="0"){u=`>=${n}.${s}.${o}${i} <${n}.${s}.${+o+1}-0`}else{u=`>=${n}.${s}.${o}${i} <${n}.${+s+1}.0-0`}}else{u=`>=${n}.${s}.${o} <${+n+1}.0.0-0`}}l("caret return",u);return u}))};const replaceXRanges=(e,t)=>{l("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?c[f.XRANGELOOSE]:c[f.XRANGE];return e.replace(n,((n,i,s,o,a,u)=>{l("xRange",e,n,i,s,o,a,u);const c=isX(s);const f=c||isX(o);const p=f||isX(a);const h=p;if(i==="="&&h){i=""}u=t.includePrerelease?"-0":"";if(c){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&h){if(f){o=0}a=0;if(i===">"){i=">=";if(f){s=+s+1;o=0;a=0}else{o=+o+1;a=0}}else if(i==="<="){i="<";if(f){s=+s+1}else{o=+o+1}}if(i==="<")u="-0";n=`${i+s}.${o}.${a}${u}`}else if(f){n=`>=${s}.0.0${u} <${+s+1}.0.0-0`}else if(p){n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`}l("xRange return",n);return n}))};const replaceStars=(e,t)=>{l("replaceStars",e,t);return e.trim().replace(c[f.STAR],"")};const replaceGTE0=(e,t)=>{l("replaceGTE0",e,t);return e.trim().replace(c[t.includePrerelease?f.GTE0PRE:f.GTE0],"")};const hyphenReplace=e=>(t,n,i,s,o,a,l,u,c,f,p,h,d)=>{if(isX(i)){n=""}else if(isX(s)){n=`>=${i}.0.0${e?"-0":""}`}else if(isX(o)){n=`>=${i}.${s}.0${e?"-0":""}`}else if(a){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(c)){u=""}else if(isX(f)){u=`<${+c+1}.0.0-0`}else if(isX(p)){u=`<${c}.${+f+1}.0-0`}else if(h){u=`<=${c}.${f}.${p}-${h}`}else if(e){u=`<${c}.${f}.${+p+1}-0`}else{u=`<=${u}`}return`${n} ${u}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n0){const i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch){return true}}}return false}return true}},8088:(e,t,n)=>{const i=n(427);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:o}=n(2293);const{re:a,t:l}=n(9523);const u=n(785);const{compareIdentifiers:c}=n(2463);class SemVer{constructor(e,t){t=u(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid Version: ${e}`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}i("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},8848:(e,t,n)=>{const i=n(5925);const clean=(e,t)=>{const n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},5098:(e,t,n)=>{const i=n(1898);const s=n(6017);const o=n(4123);const a=n(5522);const l=n(194);const u=n(7520);const cmp=(e,t,n,c)=>{switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return i(e,n,c);case"!=":return s(e,n,c);case">":return o(e,n,c);case">=":return a(e,n,c);case"<":return l(e,n,c);case"<=":return u(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},3466:(e,t,n)=>{const i=n(8088);const s=n(5925);const{re:o,t:a}=n(9523);const coerce=(e,t)=>{if(e instanceof i){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(o[a.COERCE])}else{let t;while((t=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||t.index+t[0].length!==n.index+n[0].length){n=t}o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}o[a.COERCERTL].lastIndex=-1}if(n===null)return null;return s(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};e.exports=coerce},2156:(e,t,n)=>{const i=n(8088);const compareBuild=(e,t,n)=>{const s=new i(e,n);const o=new i(t,n);return s.compare(o)||s.compareBuild(o)};e.exports=compareBuild},2804:(e,t,n)=>{const i=n(4309);const compareLoose=(e,t)=>i(e,t,true);e.exports=compareLoose},4309:(e,t,n)=>{const i=n(8088);const compare=(e,t,n)=>new i(e,n).compare(new i(t,n));e.exports=compare},4297:(e,t,n)=>{const i=n(5925);const s=n(1898);const diff=(e,t)=>{if(s(e,t)){return null}else{const n=i(e);const s=i(t);const o=n.prerelease.length||s.prerelease.length;const a=o?"pre":"";const l=o?"prerelease":"";for(const e in n){if(e==="major"||e==="minor"||e==="patch"){if(n[e]!==s[e]){return a+e}}}return l}};e.exports=diff},1898:(e,t,n)=>{const i=n(4309);const eq=(e,t,n)=>i(e,t,n)===0;e.exports=eq},4123:(e,t,n)=>{const i=n(4309);const gt=(e,t,n)=>i(e,t,n)>0;e.exports=gt},5522:(e,t,n)=>{const i=n(4309);const gte=(e,t,n)=>i(e,t,n)>=0;e.exports=gte},900:(e,t,n)=>{const i=n(8088);const inc=(e,t,n,s)=>{if(typeof n==="string"){s=n;n=undefined}try{return new i(e,n).inc(t,s).version}catch(e){return null}};e.exports=inc},194:(e,t,n)=>{const i=n(4309);const lt=(e,t,n)=>i(e,t,n)<0;e.exports=lt},7520:(e,t,n)=>{const i=n(4309);const lte=(e,t,n)=>i(e,t,n)<=0;e.exports=lte},6688:(e,t,n)=>{const i=n(8088);const major=(e,t)=>new i(e,t).major;e.exports=major},8447:(e,t,n)=>{const i=n(8088);const minor=(e,t)=>new i(e,t).minor;e.exports=minor},6017:(e,t,n)=>{const i=n(4309);const neq=(e,t,n)=>i(e,t,n)!==0;e.exports=neq},5925:(e,t,n)=>{const{MAX_LENGTH:i}=n(2293);const{re:s,t:o}=n(9523);const a=n(8088);const l=n(785);const parse=(e,t)=>{t=l(t);if(e instanceof a){return e}if(typeof e!=="string"){return null}if(e.length>i){return null}const n=t.loose?s[o.LOOSE]:s[o.FULL];if(!n.test(e)){return null}try{return new a(e,t)}catch(e){return null}};e.exports=parse},2866:(e,t,n)=>{const i=n(8088);const patch=(e,t)=>new i(e,t).patch;e.exports=patch},6014:(e,t,n)=>{const i=n(5925);const prerelease=(e,t)=>{const n=i(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},6417:(e,t,n)=>{const i=n(4309);const rcompare=(e,t,n)=>i(t,e,n);e.exports=rcompare},8701:(e,t,n)=>{const i=n(2156);const rsort=(e,t)=>e.sort(((e,n)=>i(n,e,t)));e.exports=rsort},6055:(e,t,n)=>{const i=n(9828);const satisfies=(e,t,n)=>{try{t=new i(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},1426:(e,t,n)=>{const i=n(2156);const sort=(e,t)=>e.sort(((e,n)=>i(e,n,t)));e.exports=sort},9601:(e,t,n)=>{const i=n(5925);const valid=(e,t)=>{const n=i(e,t);return n?n.version:null};e.exports=valid},1383:(e,t,n)=>{const i=n(9523);e.exports={re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:n(2293).SEMVER_SPEC_VERSION,SemVer:n(8088),compareIdentifiers:n(2463).compareIdentifiers,rcompareIdentifiers:n(2463).rcompareIdentifiers,parse:n(5925),valid:n(9601),clean:n(8848),inc:n(900),diff:n(4297),major:n(6688),minor:n(8447),patch:n(2866),prerelease:n(6014),compare:n(4309),rcompare:n(6417),compareLoose:n(2804),compareBuild:n(2156),sort:n(1426),rsort:n(8701),gt:n(4123),lt:n(194),eq:n(1898),neq:n(6017),gte:n(5522),lte:n(7520),cmp:n(5098),coerce:n(3466),Comparator:n(1532),Range:n(9828),satisfies:n(6055),toComparators:n(2706),maxSatisfying:n(579),minSatisfying:n(832),minVersion:n(4179),validRange:n(2098),outside:n(420),gtr:n(9380),ltr:n(3323),intersects:n(7008),simplifyRange:n(5297),subset:n(7863)}},2293:e=>{const t="2.0.0";const n=256;const i=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;e.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:n,MAX_SAFE_INTEGER:i,MAX_SAFE_COMPONENT_LENGTH:s}},427:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},2463:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{const i=t.test(e);const s=t.test(n);if(i&&s){e=+e;n=+n}return e===n?0:i&&!s?-1:s&&!i?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},785:e=>{const t=["includePrerelease","loose","rtl"];const parseOptions=e=>!e?{}:typeof e!=="object"?{loose:true}:t.filter((t=>e[t])).reduce(((e,t)=>{e[t]=true;return e}),{});e.exports=parseOptions},9523:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:i}=n(2293);const s=n(427);t=e.exports={};const o=t.re=[];const a=t.src=[];const l=t.t={};let u=0;const createToken=(e,t,n)=>{const i=u++;s(i,t);l[e]=i;a[i]=t;o[i]=new RegExp(t,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${a[l.NUMERICIDENTIFIER]})\\.`+`(${a[l.NUMERICIDENTIFIER]})\\.`+`(${a[l.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${a[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${a[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${a[l.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${a[l.NUMERICIDENTIFIER]}|${a[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${a[l.NUMERICIDENTIFIERLOOSE]}|${a[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${a[l.PRERELEASEIDENTIFIER]}(?:\\.${a[l.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${a[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[l.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${a[l.BUILDIDENTIFIER]}(?:\\.${a[l.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${a[l.MAINVERSION]}${a[l.PRERELEASE]}?${a[l.BUILD]}?`);createToken("FULL",`^${a[l.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${a[l.MAINVERSIONLOOSE]}${a[l.PRERELEASELOOSE]}?${a[l.BUILD]}?`);createToken("LOOSE",`^${a[l.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${a[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${a[l.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${a[l.XRANGEIDENTIFIER]})`+`(?:\\.(${a[l.XRANGEIDENTIFIER]})`+`(?:\\.(${a[l.XRANGEIDENTIFIER]})`+`(?:${a[l.PRERELEASE]})?${a[l.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${a[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${a[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${a[l.XRANGEIDENTIFIERLOOSE]})`+`(?:${a[l.PRERELEASELOOSE]})?${a[l.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${a[l.GTLT]}\\s*${a[l.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${a[l.GTLT]}\\s*${a[l.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${i}})`+`(?:\\.(\\d{1,${i}}))?`+`(?:\\.(\\d{1,${i}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",a[l.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${a[l.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${a[l.LONETILDE]}${a[l.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${a[l.LONETILDE]}${a[l.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${a[l.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${a[l.LONECARET]}${a[l.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${a[l.LONECARET]}${a[l.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${a[l.GTLT]}\\s*(${a[l.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${a[l.GTLT]}\\s*(${a[l.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${a[l.GTLT]}\\s*(${a[l.LOOSEPLAIN]}|${a[l.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${a[l.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${a[l.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${a[l.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${a[l.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0.0.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},9380:(e,t,n)=>{const i=n(420);const gtr=(e,t,n)=>i(e,t,">",n);e.exports=gtr},7008:(e,t,n)=>{const i=n(9828);const intersects=(e,t,n)=>{e=new i(e,n);t=new i(t,n);return e.intersects(t)};e.exports=intersects},3323:(e,t,n)=>{const i=n(420);const ltr=(e,t,n)=>i(e,t,"<",n);e.exports=ltr},579:(e,t,n)=>{const i=n(8088);const s=n(9828);const maxSatisfying=(e,t,n)=>{let o=null;let a=null;let l=null;try{l=new s(t,n)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!o||a.compare(e)===-1){o=e;a=new i(o,n)}}}));return o};e.exports=maxSatisfying},832:(e,t,n)=>{const i=n(8088);const s=n(9828);const minSatisfying=(e,t,n)=>{let o=null;let a=null;let l=null;try{l=new s(t,n)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!o||a.compare(e)===1){o=e;a=new i(o,n)}}}));return o};e.exports=minSatisfying},4179:(e,t,n)=>{const i=n(8088);const s=n(9828);const o=n(4123);const minVersion=(e,t)=>{e=new s(e,t);let n=new i("0.0.0");if(e.test(n)){return n}n=new i("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t{const t=new i(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!a||o(t,a)){a=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(a&&(!n||o(n,a)))n=a}if(n&&e.test(n)){return n}return null};e.exports=minVersion},420:(e,t,n)=>{const i=n(8088);const s=n(1532);const{ANY:o}=s;const a=n(9828);const l=n(6055);const u=n(4123);const c=n(194);const f=n(7520);const p=n(5522);const outside=(e,t,n,h)=>{e=new i(e,h);t=new a(t,h);let d,m,g,y,v;switch(n){case">":d=u;m=f;g=c;y=">";v=">=";break;case"<":d=c;m=p;g=u;y="<";v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(e,t,h)){return false}for(let n=0;n{if(e.semver===o){e=new s(">=0.0.0")}a=a||e;l=l||e;if(d(e.semver,a.semver,h)){a=e}else if(g(e.semver,l.semver,h)){l=e}}));if(a.operator===y||a.operator===v){return false}if((!l.operator||l.operator===y)&&m(e,l.semver)){return false}else if(l.operator===v&&g(e,l.semver)){return false}}return true};e.exports=outside},5297:(e,t,n)=>{const i=n(6055);const s=n(4309);e.exports=(e,t,n)=>{const o=[];let a=null;let l=null;const u=e.sort(((e,t)=>s(e,t,n)));for(const e of u){const s=i(e,t,n);if(s){l=e;if(!a)a=e}else{if(l){o.push([a,l])}l=null;a=null}}if(a)o.push([a,null]);const c=[];for(const[e,t]of o){if(e===t)c.push(e);else if(!t&&e===u[0])c.push("*");else if(!t)c.push(`>=${e}`);else if(e===u[0])c.push(`<=${t}`);else c.push(`${e} - ${t}`)}const f=c.join(" || ");const p=typeof t.raw==="string"?t.raw:String(t);return f.length{const i=n(9828);const s=n(1532);const{ANY:o}=s;const a=n(6055);const l=n(4309);const subset=(e,t,n={})=>{if(e===t)return true;e=new i(e,n);t=new i(t,n);let s=false;e:for(const i of e.set){for(const e of t.set){const t=simpleSubset(i,e,n);s=s||t!==null;if(t)continue e}if(s)return false}return true};const simpleSubset=(e,t,n)=>{if(e===t)return true;if(e.length===1&&e[0].semver===o){if(t.length===1&&t[0].semver===o)return true;else if(n.includePrerelease)e=[new s(">=0.0.0-0")];else e=[new s(">=0.0.0")]}if(t.length===1&&t[0].semver===o){if(n.includePrerelease)return true;else t=[new s(">=0.0.0")]}const i=new Set;let u,c;for(const t of e){if(t.operator===">"||t.operator===">=")u=higherGT(u,t,n);else if(t.operator==="<"||t.operator==="<=")c=lowerLT(c,t,n);else i.add(t.semver)}if(i.size>1)return null;let f;if(u&&c){f=l(u.semver,c.semver,n);if(f>0)return null;else if(f===0&&(u.operator!==">="||c.operator!=="<="))return null}for(const e of i){if(u&&!a(e,String(u),n))return null;if(c&&!a(e,String(c),n))return null;for(const i of t){if(!a(e,String(i),n))return false}return true}let p,h;let d,m;let g=c&&!n.includePrerelease&&c.semver.prerelease.length?c.semver:false;let y=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:false;if(g&&g.prerelease.length===1&&c.operator==="<"&&g.prerelease[0]===0){g=false}for(const e of t){m=m||e.operator===">"||e.operator===">=";d=d||e.operator==="<"||e.operator==="<=";if(u){if(y){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch){y=false}}if(e.operator===">"||e.operator===">="){p=higherGT(u,e,n);if(p===e&&p!==u)return false}else if(u.operator===">="&&!a(u.semver,String(e),n))return false}if(c){if(g){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch){g=false}}if(e.operator==="<"||e.operator==="<="){h=lowerLT(c,e,n);if(h===e&&h!==c)return false}else if(c.operator==="<="&&!a(c.semver,String(e),n))return false}if(!e.operator&&(c||u)&&f!==0)return false}if(u&&d&&!c&&f!==0)return false;if(c&&m&&!u&&f!==0)return false;if(y||g)return false;return true};const higherGT=(e,t,n)=>{if(!e)return t;const i=l(e.semver,t.semver,n);return i>0?e:i<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e)return t;const i=l(e.semver,t.semver,n);return i<0?e:i>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},2706:(e,t,n)=>{const i=n(9828);const toComparators=(e,t)=>new i(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},2098:(e,t,n)=>{const i=n(9828);const validRange=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}};e.exports=validRange},6375:(e,t,n)=>{var i=n(2344);var s=Object.prototype.hasOwnProperty;var o=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=o?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,t){var n=new ArraySet;for(var i=0,s=e.length;i=0){return t}}else{var n=i.toSetString(e);if(s.call(this._set,n)){return this._set[n]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e{var i=n(6156);var s=5;var o=1<>1;return t?-n:n}t.encode=function base64VLQ_encode(e){var t="";var n;var o=toVLQSigned(e);do{n=o&a;o>>>=s;if(o>0){n|=l}t+=i.encode(n)}while(o>0);return t};t.decode=function base64VLQ_decode(e,t,n){var o=e.length;var u=0;var c=0;var f,p;do{if(t>=o){throw new Error("Expected more digits in base 64 VLQ value.")}p=i.decode(e.charCodeAt(t++));if(p===-1){throw new Error("Invalid base64 digit: "+e.charAt(t-1))}f=!!(p&l);p&=a;u=u+(p<{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e{t.GREATEST_LOWER_BOUND=1;t.LEAST_UPPER_BOUND=2;function recursiveSearch(e,n,i,s,o,a){var l=Math.floor((n-e)/2)+e;var u=o(i,s[l],true);if(u===0){return l}else if(u>0){if(n-l>1){return recursiveSearch(l,n,i,s,o,a)}if(a==t.LEAST_UPPER_BOUND){return n1){return recursiveSearch(e,l,i,s,o,a)}if(a==t.LEAST_UPPER_BOUND){return l}else{return e<0?-1:e}}}t.search=function search(e,n,i,s){if(n.length===0){return-1}var o=recursiveSearch(-1,n.length,e,n,i,s||t.GREATEST_LOWER_BOUND);if(o<0){return-1}while(o-1>=0){if(i(n[o],n[o-1],true)!==0){break}--o}return o}},6817:(e,t,n)=>{var i=n(2344);function generatedPositionAfter(e,t){var n=e.generatedLine;var s=t.generatedLine;var o=e.generatedColumn;var a=t.generatedColumn;return s>n||s==n&&a>=o||i.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,t){this._array.forEach(e,t)};MappingList.prototype.add=function MappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(i.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};t.H=MappingList},3254:(e,t)=>{function swap(e,t,n){var i=e[t];e[t]=e[n];e[n]=i}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,n,i){if(n{var i;var s=n(2344);var o=n(3600);var a=n(6375).I;var l=n(5807);var u=n(3254).U;function SourceMapConsumer(e,t){var n=e;if(typeof e==="string"){n=s.parseSourceMapInput(e)}return n.sections!=null?new IndexedSourceMapConsumer(n,t):new BasicSourceMapConsumer(n,t)}SourceMapConsumer.fromSourceMap=function(e,t){return BasicSourceMapConsumer.fromSourceMap(e,t)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(e,t){var n=e.charAt(t);return n===";"||n===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,t){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(e,t,n){var i=t||null;var o=n||SourceMapConsumer.GENERATED_ORDER;var a;switch(o){case SourceMapConsumer.GENERATED_ORDER:a=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var l=this.sourceRoot;a.map((function(e){var t=e.source===null?null:this._sources.at(e.source);t=s.computeSourceURL(l,t,this._sourceMapURL);return{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}}),this).forEach(e,i)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(e){var t=s.getArg(e,"line");var n={source:s.getArg(e,"source"),originalLine:t,originalColumn:s.getArg(e,"column",0)};n.source=this._findSourceIndex(n.source);if(n.source<0){return[]}var i=[];var a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(a>=0){var l=this._originalMappings[a];if(e.column===undefined){var u=l.originalLine;while(l&&l.originalLine===u){i.push({line:s.getArg(l,"generatedLine",null),column:s.getArg(l,"generatedColumn",null),lastColumn:s.getArg(l,"lastGeneratedColumn",null)});l=this._originalMappings[++a]}}else{var c=l.originalColumn;while(l&&l.originalLine===t&&l.originalColumn==c){i.push({line:s.getArg(l,"generatedLine",null),column:s.getArg(l,"generatedColumn",null),lastColumn:s.getArg(l,"lastGeneratedColumn",null)});l=this._originalMappings[++a]}}}return i};t.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(e,t){var n=e;if(typeof e==="string"){n=s.parseSourceMapInput(e)}var i=s.getArg(n,"version");var o=s.getArg(n,"sources");var l=s.getArg(n,"names",[]);var u=s.getArg(n,"sourceRoot",null);var c=s.getArg(n,"sourcesContent",null);var f=s.getArg(n,"mappings");var p=s.getArg(n,"file",null);if(i!=this._version){throw new Error("Unsupported version: "+i)}if(u){u=s.normalize(u)}o=o.map(String).map(s.normalize).map((function(e){return u&&s.isAbsolute(u)&&s.isAbsolute(e)?s.relative(u,e):e}));this._names=a.fromArray(l.map(String),true);this._sources=a.fromArray(o,true);this._absoluteSources=this._sources.toArray().map((function(e){return s.computeSourceURL(u,e,t)}));this.sourceRoot=u;this.sourcesContent=c;this._mappings=f;this._sourceMapURL=t;this.file=p}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null){t=s.relative(this.sourceRoot,t)}if(this._sources.has(t)){return this._sources.indexOf(t)}var n;for(n=0;n1){v.source=c+w[1];c+=w[1];v.originalLine=o+w[2];o=v.originalLine;v.originalLine+=1;v.originalColumn=a+w[3];a=v.originalColumn;if(w.length>4){v.name=f+w[4];f+=w[4]}}y.push(v);if(typeof v.originalLine==="number"){g.push(v)}}}u(y,s.compareByGeneratedPositionsDeflated);this.__generatedMappings=y;u(g,s.compareByOriginalPositions);this.__originalMappings=g};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(e,t,n,i,s,a){if(e[n]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+e[n])}if(e[i]<0){throw new TypeError("Column must be greater than or equal to 0, got "+e[i])}return o.search(e,t,s,a)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var e=0;e=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var o=s.getArg(i,"source",null);if(o!==null){o=this._sources.at(o);o=s.computeSourceURL(this.sourceRoot,o,this._sourceMapURL)}var a=s.getArg(i,"name",null);if(a!==null){a=this._names.at(a)}return{source:o,line:s.getArg(i,"originalLine",null),column:s.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return e==null}))};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(e,t){if(!this.sourcesContent){return null}var n=this._findSourceIndex(e);if(n>=0){return this.sourcesContent[n]}var i=e;if(this.sourceRoot!=null){i=s.relative(this.sourceRoot,i)}var o;if(this.sourceRoot!=null&&(o=s.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a)){return this.sourcesContent[this._sources.indexOf(a)]}if((!o.path||o.path=="/")&&this._sources.has("/"+i)){return this.sourcesContent[this._sources.indexOf("/"+i)]}}if(t){return null}else{throw new Error('"'+i+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(e){var t=s.getArg(e,"source");t=this._findSourceIndex(t);if(t<0){return{line:null,column:null,lastColumn:null}}var n={source:t,originalLine:s.getArg(e,"line"),originalColumn:s.getArg(e,"column")};var i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,s.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source){return{line:s.getArg(o,"generatedLine",null),column:s.getArg(o,"generatedColumn",null),lastColumn:s.getArg(o,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};i=BasicSourceMapConsumer;function IndexedSourceMapConsumer(e,t){var n=e;if(typeof e==="string"){n=s.parseSourceMapInput(e)}var i=s.getArg(n,"version");var o=s.getArg(n,"sections");if(i!=this._version){throw new Error("Unsupported version: "+i)}this._sources=new a;this._names=new a;var l={line:-1,column:0};this._sections=o.map((function(e){if(e.url){throw new Error("Support for url field in sections not implemented.")}var n=s.getArg(e,"offset");var i=s.getArg(n,"line");var o=s.getArg(n,"column");if(i{var i=n(5807);var s=n(2344);var o=n(6375).I;var a=n(6817).H;function SourceMapGenerator(e){if(!e){e={}}this._file=s.getArg(e,"file",null);this._sourceRoot=s.getArg(e,"sourceRoot",null);this._skipValidation=s.getArg(e,"skipValidation",false);this._sources=new o;this._names=new o;this._mappings=new a;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(e){var t=e.sourceRoot;var n=new SourceMapGenerator({file:e.file,sourceRoot:t});e.eachMapping((function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){i.source=e.source;if(t!=null){i.source=s.relative(t,i.source)}i.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){i.name=e.name}}n.addMapping(i)}));e.sources.forEach((function(i){var o=i;if(t!==null){o=s.relative(t,i)}if(!n._sources.has(o)){n._sources.add(o)}var a=e.sourceContentFor(i);if(a!=null){n.setSourceContent(i,a)}}));return n};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(e){var t=s.getArg(e,"generated");var n=s.getArg(e,"original",null);var i=s.getArg(e,"source",null);var o=s.getArg(e,"name",null);if(!this._skipValidation){this._validateMapping(t,n,i,o)}if(i!=null){i=String(i);if(!this._sources.has(i)){this._sources.add(i)}}if(o!=null){o=String(o);if(!this._names.has(o)){this._names.add(o)}}this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(e,t){var n=e;if(this._sourceRoot!=null){n=s.relative(this._sourceRoot,n)}if(t!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[s.toSetString(n)]=t}else if(this._sourcesContents){delete this._sourcesContents[s.toSetString(n)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(e,t,n){var i=t;if(t==null){if(e.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}i=e.file}var a=this._sourceRoot;if(a!=null){i=s.relative(a,i)}var l=new o;var u=new o;this._mappings.unsortedForEach((function(t){if(t.source===i&&t.originalLine!=null){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});if(o.source!=null){t.source=o.source;if(n!=null){t.source=s.join(n,t.source)}if(a!=null){t.source=s.relative(a,t.source)}t.originalLine=o.line;t.originalColumn=o.column;if(o.name!=null){t.name=o.name}}}var c=t.source;if(c!=null&&!l.has(c)){l.add(c)}var f=t.name;if(f!=null&&!u.has(f)){u.add(f)}}),this);this._sources=l;this._names=u;e.sources.forEach((function(t){var i=e.sourceContentFor(t);if(i!=null){if(n!=null){t=s.join(n,t)}if(a!=null){t=s.relative(a,t)}this.setSourceContent(t,i)}}),this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(e,t,n,i){if(t&&typeof t.line!=="number"&&typeof t.column!=="number"){throw new Error("original.line and original.column are not numbers -- you probably meant to omit "+"the original mapping entirely and only map the generated position. If so, pass "+"null for the original mapping instead of an object with empty or null values.")}if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!n&&!i){return}else if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:i}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var e=0;var t=1;var n=0;var o=0;var a=0;var l=0;var u="";var c;var f;var p;var h;var d=this._mappings.toArray();for(var m=0,g=d.length;m0){if(!s.compareByGeneratedPositionsInflated(f,d[m-1])){continue}c+=","}}c+=i.encode(f.generatedColumn-e);e=f.generatedColumn;if(f.source!=null){h=this._sources.indexOf(f.source);c+=i.encode(h-l);l=h;c+=i.encode(f.originalLine-1-o);o=f.originalLine-1;c+=i.encode(f.originalColumn-n);n=f.originalColumn;if(f.name!=null){p=this._names.indexOf(f.name);c+=i.encode(p-a);a=p}}u+=c}return u};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents){return null}if(t!=null){e=s.relative(t,e)}var n=s.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){e.file=this._file}if(this._sourceRoot!=null){e.sourceRoot=this._sourceRoot}if(this._sourcesContents){e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)}return e};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};t.SourceMapGenerator=SourceMapGenerator},2616:(e,t,n)=>{var i=n(9425).SourceMapGenerator;var s=n(2344);var o=/(\r?\n)/;var a=10;var l="$$$isSourceNode$$$";function SourceNode(e,t,n,i,s){this.children=[];this.sourceContents={};this.line=e==null?null:e;this.column=t==null?null:t;this.source=n==null?null:n;this.name=s==null?null:s;this[l]=true;if(i!=null)this.add(i)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(e,t,n){var i=new SourceNode;var a=e.split(o);var l=0;var shiftNextLine=function(){var e=getNextLine();var t=getNextLine()||"";return e+t;function getNextLine(){return l=0;t--){this.prepend(e[t])}}else if(e[l]||typeof e==="string"){this.children.unshift(e)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.walk=function SourceNode_walk(e){var t;for(var n=0,i=this.children.length;n0){t=[];for(n=0;n{function getArg(e,t,n){if(t in e){return e[t]}else if(arguments.length===3){return n}else{throw new Error('"'+t+'" is a required argument.')}}t.getArg=getArg;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;var i=/^data:.+\,.+$/;function urlParse(e){var t=e.match(n);if(!t){return null}return{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}}t.urlParse=urlParse;function urlGenerate(e){var t="";if(e.scheme){t+=e.scheme+":"}t+="//";if(e.auth){t+=e.auth+"@"}if(e.host){t+=e.host}if(e.port){t+=":"+e.port}if(e.path){t+=e.path}return t}t.urlGenerate=urlGenerate;function normalize(e){var n=e;var i=urlParse(e);if(i){if(!i.path){return e}n=i.path}var s=t.isAbsolute(n);var o=n.split(/\/+/);for(var a,l=0,u=o.length-1;u>=0;u--){a=o[u];if(a==="."){o.splice(u,1)}else if(a===".."){l++}else if(l>0){if(a===""){o.splice(u+1,l);l=0}else{o.splice(u,2);l--}}}n=o.join("/");if(n===""){n=s?"/":"."}if(i){i.path=n;return urlGenerate(i)}return n}t.normalize=normalize;function join(e,t){if(e===""){e="."}if(t===""){t="."}var n=urlParse(t);var s=urlParse(e);if(s){e=s.path||"/"}if(n&&!n.scheme){if(s){n.scheme=s.scheme}return urlGenerate(n)}if(n||t.match(i)){return t}if(s&&!s.host&&!s.path){s.host=t;return urlGenerate(s)}var o=t.charAt(0)==="/"?t:normalize(e.replace(/\/+$/,"")+"/"+t);if(s){s.path=o;return urlGenerate(s)}return o}t.join=join;t.isAbsolute=function(e){return e.charAt(0)==="/"||n.test(e)};function relative(e,t){if(e===""){e="."}e=e.replace(/\/$/,"");var n=0;while(t.indexOf(e+"/")!==0){var i=e.lastIndexOf("/");if(i<0){return t}e=e.slice(0,i);if(e.match(/^([^\/]+:\/)?\/*$/)){return t}++n}return Array(n+1).join("../")+t.substr(e.length+1)}t.relative=relative;var s=function(){var e=Object.create(null);return!("__proto__"in e)}();function identity(e){return e}function toSetString(e){if(isProtoString(e)){return"$"+e}return e}t.toSetString=s?identity:toSetString;function fromSetString(e){if(isProtoString(e)){return e.slice(1)}return e}t.fromSetString=s?identity:fromSetString;function isProtoString(e){if(!e){return false}var t=e.length;if(t<9){return false}if(e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95){return false}for(var n=t-10;n>=0;n--){if(e.charCodeAt(n)!==36){return false}}return true}function compareByOriginalPositions(e,t,n){var i=strcmp(e.source,t.source);if(i!==0){return i}i=e.originalLine-t.originalLine;if(i!==0){return i}i=e.originalColumn-t.originalColumn;if(i!==0||n){return i}i=e.generatedColumn-t.generatedColumn;if(i!==0){return i}i=e.generatedLine-t.generatedLine;if(i!==0){return i}return strcmp(e.name,t.name)}t.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(e,t,n){var i=e.generatedLine-t.generatedLine;if(i!==0){return i}i=e.generatedColumn-t.generatedColumn;if(i!==0||n){return i}i=strcmp(e.source,t.source);if(i!==0){return i}i=e.originalLine-t.originalLine;if(i!==0){return i}i=e.originalColumn-t.originalColumn;if(i!==0){return i}return strcmp(e.name,t.name)}t.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(e,t){if(e===t){return 0}if(e===null){return 1}if(t===null){return-1}if(e>t){return 1}return-1}function compareByGeneratedPositionsInflated(e,t){var n=e.generatedLine-t.generatedLine;if(n!==0){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0){return n}n=strcmp(e.source,t.source);if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0){return n}return strcmp(e.name,t.name)}t.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;function parseSourceMapInput(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=parseSourceMapInput;function computeSourceURL(e,t,n){t=t||"";if(e){if(e[e.length-1]!=="/"&&t[0]!=="/"){e+="/"}t=e+t}if(n){var i=urlParse(n);if(!i){throw new Error("sourceMapURL could not be parsed")}if(i.path){var s=i.path.lastIndexOf("/");if(s>=0){i.path=i.path.substring(0,s+1)}}t=join(urlGenerate(i),t)}return normalize(t)}t.computeSourceURL=computeSourceURL},6594:(e,t,n)=>{t.SourceMapGenerator=n(9425).SourceMapGenerator;t.SourceMapConsumer=n(5155).SourceMapConsumer;t.SourceNode=n(2616).SourceNode},2372:(e,t,n)=>{var i=n(1620);var s=n(2172);function valid(e){try{i(e);return true}catch(e){return false}}var o=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["-License",""]];var a=0;var l=1;var u=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){if(e.indexOf("3.0")!==-1){return e+"-or-later"}else{return e+"-only"}},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}];var c=s.map((function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]})).reduce((function(e,t){var n=t[1];e[n]=e[n]||[];e[n].push(t[0]);return e}),{});var f=Object.keys(c).map((function makeEntries(e){return[e,c[e]]})).filter((function identifySoleVersions(e){return e[1].length===1&&e[0]!==null&&e[0]!=="APL"})).map((function createLastResorts(e){return[e[0],e[1][0]]}));c=undefined;var p=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(f);var h=0;var d=1;var validTransformation=function(e){for(var t=0;t-1){return i[d]}}return null};var anyCorrection=function(e,t){for(var n=0;n-1){var u=e.replace(s,i[l]);var c=t(u);if(c!==null){return c}}}return null};e.exports=function(e,t){t=t||{};var n=t.upgrade===undefined?true:!!t.upgrade;function postprocess(e){return n?upgradeGPLs(e):e}var i=typeof e==="string"&&e.trim().length!==0;if(!i){throw Error("Invalid argument. Expected non-empty string.")}e=e.trim();if(valid(e)){return postprocess(e)}var s=e.replace(/\+$/,"").trim();if(valid(s)){return postprocess(s)}var o=validTransformation(e);if(o!==null){return postprocess(o)}o=anyCorrection(e,(function(e){if(valid(e)){return e}return validTransformation(e)}));if(o!==null){return postprocess(o)}o=validLastResort(e);if(o!==null){return postprocess(o)}o=anyCorrection(e,validLastResort);if(o!==null){return postprocess(o)}return null};function upgradeGPLs(e){if(["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1){return e+"-only"}else if(["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1){return e.replace(/\+$/,"-or-later")}else if(["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1){return e+"-or-later"}else{return e}}},1620:(e,t,n)=>{"use strict";var i=n(7380);var s=n(9868);e.exports=function(e){return s(i(e))}},9868:e=>{"use strict";e.exports=function(e){var t=0;function hasMore(){return t{"use strict";var i=[].concat(n(2172)).concat(n(4185));var s=n(9752);e.exports=function(e){var t=0;function hasMore(){return t1&&e[t-2]===" "){throw new Error("Space before `+`")}return n&&{type:"OPERATOR",string:n}}function idstring(){return read(/[A-Za-z0-9-.]+/)}function expectIdstring(){var e=idstring();if(!e){throw new Error("Expected idstring at offset "+t)}return e}function documentRef(){if(read("DocumentRef-")){var e=expectIdstring();return{type:"DOCUMENTREF",string:e}}}function licenseRef(){if(read("LicenseRef-")){var e=expectIdstring();return{type:"LICENSEREF",string:e}}}function identifier(){var e=t;var n=idstring();if(i.indexOf(n)!==-1){return{type:"LICENSE",string:n}}else if(s.indexOf(n)!==-1){return{type:"EXCEPTION",string:n}}t=e}function parseToken(){return operator()||documentRef()||licenseRef()||identifier()}var n=[];while(hasMore()){skipWhitespace();if(!hasMore()){break}var o=parseToken();if(!o){throw new Error("Unexpected `"+e[t]+"` at offset "+t)}n.push(o)}return n}},5e3:(e,t,n)=>{"use strict";const{Transform:i}=n(1642);const{StringDecoder:s}=n(4304);const o=Symbol("last");const a=Symbol("decoder");function transform(e,t,n){var i;if(this.overflow){var s=this[a].write(e);i=s.split(this.matcher);if(i.length===1)return n();i.shift();this.overflow=false}else{this[o]+=this[a].write(e);i=this[o].split(this.matcher)}this[o]=i.pop();for(var l=0;lthis.maxLength;if(this.overflow&&!this.skipOverflow)return n(new Error("maximum buffer reached"));n()}function flush(e){this[o]+=this[a].end();if(this[o]){try{push(this,this.mapper(this[o]))}catch(t){return e(t)}}e()}function push(e,t){if(t!==undefined){e.push(t)}}function noop(e){return e}function split(e,t,n){e=e||/\r?\n/;t=t||noop;n=n||{};switch(arguments.length){case 1:if(typeof e==="function"){t=e;e=/\r?\n/}else if(typeof e==="object"&&!(e instanceof RegExp)){n=e;e=/\r?\n/}break;case 2:if(typeof e==="function"){n=t;t=e;e=/\r?\n/}else if(typeof t==="object"){n=t;t=noop}}n=Object.assign({},n);n.transform=transform;n.flush=flush;n.readableObjectMode=true;const l=new i(n);l[o]="";l[a]=new s("utf8");l.matcher=e;l.mapper=t;l.maxLength=n.maxLength;l.skipOverflow=n.skipOverflow;l.overflow=false;return l}e.exports=split},4841:(e,t,n)=>{"use strict";var i=n(1867).Buffer;var s=i.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(i.isEncoding===s||!s(e)))throw new Error("Unknown encoding: "+e);return t||e}t.s=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=i.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var n;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";n=this.lastNeed;this.lastNeed=0}else{n=0}if(n>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,n){var i=t.length-1;if(i=0){if(s>0)e.lastNeed=s-1;return s}if(--i=0){if(s>0)e.lastNeed=s-2;return s}if(--i=0){if(s>0){if(s===2)s=0;else e.lastNeed=s-3}return s}return 0}function utf8CheckExtraBytes(e,t,n){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var n=utf8CheckExtraBytes(this,e,t);if(n!==undefined)return n;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var n=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);e.copy(this.lastChar,0,i);return e.toString("utf8",t,i)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return n.slice(0,-1)}}return n}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function base64Text(e,t){var n=(e.length-t)%3;if(n===0)return e.toString("base64",t);this.lastNeed=3-n;this.lastTotal=3;if(n===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-n)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},8551:e=>{"use strict";e.exports=e=>{if(typeof e!=="string"){throw new TypeError("Expected a string, got "+typeof e)}if(e.charCodeAt(0)===65279){return e.slice(1)}return e}},8180:(e,t,n)=>{const{Transform:i}=n(1642);function inherits(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function through2(e){return(t,n,i)=>{if(typeof t==="function"){i=n;n=t;t={}}if(typeof n!=="function"){n=(e,t,n)=>n(null,e)}if(typeof i!=="function"){i=null}return e(t,n,i)}}const s=through2(((e,t,n)=>{const s=new i(e);s._transform=t;if(n){s._flush=n}return s}));const o=through2(((e,t,n)=>{function Through2(s){if(!(this instanceof Through2)){return new Through2(s)}this.options=Object.assign({},e,s);i.call(this,this.options);this._transform=t;if(n){this._flush=n}}inherits(Through2,i);return Through2}));const a=through2((function(e,t,n){const s=new i(Object.assign({objectMode:true,highWaterMark:16},e));s._transform=t;if(n){s._flush=n}return s}));e.exports=s;e.exports.ctor=o;e.exports.obj=a},4294:(e,t,n)=>{e.exports=n(4219)},4219:(e,t,n)=>{"use strict";var i=n(1631);var s=n(4016);var o=n(8605);var a=n(7211);var l=n(8614);var u=n(2357);var c=n(1669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=a.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=a.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,n,i,s){var o=toOptions(n,i,s);for(var a=0,l=t.requests.length;a=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var n=this;var i={};n.sockets.push(i);var s=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}f("making CONNECT request");var o=n.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick((function(){onConnect(e,t,n)}))}function onConnect(s,a,l){o.removeAllListeners();a.removeAllListeners();if(s.statusCode!==200){f("tunneling socket could not be established, statusCode=%d",s.statusCode);a.destroy();var u=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);u.code="ECONNRESET";e.request.emit("error",u);n.removeSocket(i);return}if(l.length>0){f("got illegal response body from proxy");a.destroy();var u=new Error("got illegal response body from proxy");u.code="ECONNRESET";e.request.emit("error",u);n.removeSocket(i);return}f("tunneling connection has established");n.sockets[n.sockets.indexOf(i)]=a;return t(a)}function onError(t){o.removeAllListeners();f("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);n.removeSocket(i)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var n=this.requests.shift();if(n){this.createSocket(n,(function(e){n.request.onSocket(e)}))}};function createSecureSocket(e,t){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,(function(i){var o=e.request.getHeader("host");var a=mergeOptions({},n.options,{socket:i,servername:o?o.replace(/:.*$/,""):e.host});var l=s.connect(0,a);n.sockets[n.sockets.indexOf(i)]=l;t(l)}))}function toOptions(e,t,n){if(typeof e==="string"){return{host:e,port:t,localAddress:n}}return e}function mergeOptions(e){for(var t=1,n=arguments.length;t{var n=void 0;var i=1e5;var s=function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;return{Class:function(t){return e.call(t).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,n){return t.call(e,n)},IsCallable:function(e){return typeof e==="function"},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0}}}();var o=Math.LN2,a=Math.abs,l=Math.floor,u=Math.log,c=Math.min,f=Math.pow,p=Math.round;function configureProperties(e){if(d&&h){var t=d(e),n;for(n=0;ni)throw new RangeError("Array too large for polyfill");function makeArrayAccessor(t){h(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:true,configurable:false})}var t;for(t=0;t>n}function as_unsigned(e,t){var n=32-t;return e<>>n}function packI8(e){return[e&255]}function unpackI8(e){return as_signed(e[0],8)}function packU8(e){return[e&255]}function unpackU8(e){return as_unsigned(e[0],8)}function packU8Clamped(e){e=p(Number(e));return[e<0?0:e>255?255:e&255]}function packI16(e){return[e>>8&255,e&255]}function unpackI16(e){return as_signed(e[0]<<8|e[1],16)}function packU16(e){return[e>>8&255,e&255]}function unpackU16(e){return as_unsigned(e[0]<<8|e[1],16)}function packI32(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function unpackI32(e){return as_signed(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function packU32(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function unpackU32(e){return as_unsigned(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function packIEEE754(e,t,n){var i=(1<.5)return t+1;return t%2?t+1:t}if(e!==e){p=(1<=f(2,1-i)){p=c(l(u(e)/o),1023);h=roundToEven(e/f(2,p)*f(2,n));if(h/f(2,n)>=2){p=p+1;h=1}if(p>i){p=(1<>1}}i.reverse();l=i.join("");u=(1<0){return c*f(2,p-u)*(1+h/f(2,n))}else if(h!==0){return c*f(2,-(u-1))*(h/f(2,n))}else{return c<0?-0:0}}function unpackF64(e){return unpackIEEE754(e,11,52)}function packF64(e){return packIEEE754(e,11,52)}function unpackF32(e){return unpackIEEE754(e,8,23)}function packF32(e){return packIEEE754(e,8,23)}(function(){var e=function ArrayBuffer(e){e=s.ToInt32(e);if(e<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");this.byteLength=e;this._bytes=[];this._bytes.length=e;var t;for(t=0;tthis.buffer.byteLength){throw new RangeError("byteOffset out of range")}if(this.byteOffset%this.BYTES_PER_ELEMENT){throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.")}if(arguments.length<3){this.byteLength=this.buffer.byteLength-this.byteOffset;if(this.byteLength%this.BYTES_PER_ELEMENT){throw new RangeError("length of buffer minus byteOffset not a multiple of the element size")}this.length=this.byteLength/this.BYTES_PER_ELEMENT}else{this.length=s.ToUint32(i);this.byteLength=this.length*this.BYTES_PER_ELEMENT}if(this.byteOffset+this.byteLength>this.buffer.byteLength){throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}}else{throw new TypeError("Unexpected argument type(s)")}this.constructor=l;configureProperties(this);makeArrayAccessors(this)};l.prototype=new i;l.prototype.BYTES_PER_ELEMENT=t;l.prototype._pack=o;l.prototype._unpack=a;l.BYTES_PER_ELEMENT=t;l.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");e=s.ToUint32(e);if(e>=this.length){return n}var t=[],i,o;for(i=0,o=this.byteOffset+e*this.BYTES_PER_ELEMENT;i=this.length){return n}var i=this._pack(t),o,a;for(o=0,a=this.byteOffset+e*this.BYTES_PER_ELEMENT;othis.length){throw new RangeError("Offset plus length of array is out of range")}f=this.byteOffset+o*this.BYTES_PER_ELEMENT;p=n.length*this.BYTES_PER_ELEMENT;if(n.buffer===this.buffer){h=[];for(l=0,u=n.byteOffset;lthis.length){throw new RangeError("Offset plus length of array is out of range")}for(l=0;ln?n:e}e=s.ToInt32(e);t=s.ToInt32(t);if(arguments.length<1){e=0}if(arguments.length<2){t=this.length}if(e<0){e=this.length+e}if(t<0){t=this.length+t}e=clamp(e,0,this.length);t=clamp(t,0,this.length);var n=t-e;if(n<0){n=0}return new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,n)};return l}var o=makeConstructor(1,packI8,unpackI8);var a=makeConstructor(1,packU8,unpackU8);var l=makeConstructor(1,packU8Clamped,unpackU8);var u=makeConstructor(2,packI16,unpackI16);var c=makeConstructor(2,packU16,unpackU16);var f=makeConstructor(4,packI32,unpackI32);var p=makeConstructor(4,packU32,unpackU32);var h=makeConstructor(4,packF32,unpackF32);var d=makeConstructor(8,packF64,unpackF64);t.iq=t.iq||o;t.U2=t.U2||a;t.we=t.we||l;t.M2=t.M2||u;t.HA=t.HA||c;t.ZV=t.ZV||f;t._R=t._R||p;t.$L=t.$L||h;t.I=t.I||d})();(function(){function r(e,t){return s.IsCallable(e.get)?e.get(t):e[t]}var e=function(){var e=new t.HA([4660]),n=new t.U2(e.buffer);return r(n,0)===18}();var n=function DataView(e,n,i){if(arguments.length===0){e=new t.eT(0)}else if(!(e instanceof t.eT||s.Class(e)==="ArrayBuffer")){throw new TypeError("TypeError")}this.buffer=e||new t.eT(0);this.byteOffset=s.ToUint32(n);if(this.byteOffset>this.buffer.byteLength){throw new RangeError("byteOffset out of range")}if(arguments.length<3){this.byteLength=this.buffer.byteLength-this.byteOffset}else{this.byteLength=s.ToUint32(i)}if(this.byteOffset+this.byteLength>this.buffer.byteLength){throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}configureProperties(this)};function makeGetter(n){return function(i,o){i=s.ToUint32(i);if(i+n.BYTES_PER_ELEMENT>this.byteLength){throw new RangeError("Array index out of range")}i+=this.byteOffset;var a=new t.U2(this.buffer,i,n.BYTES_PER_ELEMENT),l=[],u;for(u=0;uthis.byteLength){throw new RangeError("Array index out of range")}var l=new n([o]),u=new t.U2(l.buffer),c=[],f,p;for(f=0;f{e.exports=n(1669).deprecate},2524:(e,t,n)=>{var i=n(1620);var s=n(2372);var o="license should be "+'a valid SPDX license expression (without "LicenseRef"), '+'"UNLICENSED", or '+'"SEE LICENSE IN "';var a=/^SEE LICEN[CS]E IN (.+)$/;function startsWith(e,t){return t.slice(0,e.length)===e}function usesLicenseRef(e){if(e.hasOwnProperty("license")){var t=e.license;return startsWith("LicenseRef",t)||startsWith("DocumentRef",t)}else{return usesLicenseRef(e.left)||usesLicenseRef(e.right)}}e.exports=function(e){var t;try{t=i(e)}catch(t){var n;if(e==="UNLICENSED"||e==="UNLICENCED"){return{validForOldPackages:true,validForNewPackages:true,unlicensed:true}}else if(n=a.exec(e)){return{validForOldPackages:true,validForNewPackages:true,inFile:n[1]}}else{var l={validForOldPackages:false,validForNewPackages:false,warnings:[o]};if(e.trim().length!==0){var u=s(e);if(u){l.warnings.push('license is similar to the valid expression "'+u+'"')}}return l}}if(usesLicenseRef(t)){return{validForNewPackages:false,validForOldPackages:false,spdx:true,warnings:[o]}}else{return{validForNewPackages:true,validForOldPackages:true,spdx:true}}}},4091:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},665:(e,t,n)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var n=0,i=arguments.length;n1){n=t}else if(this.head){i=this.head.next;n=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=0;i!==null;s++){n=e(n,i.value,s);i=i.next}return n};Yallist.prototype.reduceReverse=function(e,t){var n;var i=this.tail;if(arguments.length>1){n=t}else if(this.tail){i=this.tail.prev;n=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=this.length-1;i!==null;s--){n=e(n,i.value,s);i=i.prev}return n};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,n=this.head;n!==null;t++){e[t]=n.value;n=n.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,n=this.tail;n!==null;t++){e[t]=n.value;n=n.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var n=new Yallist;if(tthis.length){t=this.length}for(var i=0,s=this.head;s!==null&&ithis.length){t=this.length}for(var i=this.length,s=this.tail;s!==null&&i>t;i--){s=s.prev}for(;s!==null&&i>e;i--,s=s.prev){n.push(s.value)}return n};Yallist.prototype.splice=function(e,t,...n){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var i=0,s=this.head;s!==null&&i{"use strict";var i=n(5215);var s=n(4227);var o=n(8021);const a={anchorPrefix:"a",customTags:null,indent:2,indentSeq:true,keepCstNodes:false,keepNodeTypes:true,keepBlobsInJSON:true,mapAsMap:false,maxAliasCount:100,prettyErrors:false,simpleKeys:false,version:"1.2"};const l={get binary(){return s.binaryOptions},set binary(e){Object.assign(s.binaryOptions,e)},get bool(){return s.boolOptions},set bool(e){Object.assign(s.boolOptions,e)},get int(){return s.intOptions},set int(e){Object.assign(s.intOptions,e)},get null(){return s.nullOptions},set null(e){Object.assign(s.nullOptions,e)},get str(){return s.strOptions},set str(e){Object.assign(s.strOptions,e)}};const u={"1.0":{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:i.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:i.defaultTagPrefix}]},1.2:{schema:"core",merge:false,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:i.defaultTagPrefix}]}};function stringifyTag(e,t){if((e.version||e.options.version)==="1.0"){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>t.indexOf(e.prefix)===0));if(!n){const i=e.getDefaults().tagPrefixes;n=i&&i.find((e=>t.indexOf(e.prefix)===0))}if(!n)return t[0]==="!"?t:`!<${t}>`;const i=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+i}function getTagObject(e,t){if(t instanceof s.Alias)return s.Alias;if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))||n[0]}let n,i;if(t instanceof s.Scalar){i=t.value;const s=e.filter((e=>e.identify&&e.identify(i)||e.class&&i instanceof e.class));n=s.find((e=>e.format===t.format))||s.find((e=>!e.format))}else{i=t;n=e.find((e=>e.nodeClass&&i instanceof e.nodeClass))}if(!n){const e=i&&i.constructor?i.constructor.name:typeof i;throw new Error(`Tag not resolved for ${e} value`)}return n}function stringifyProps(e,t,{anchors:n,doc:i}){const s=[];const o=i.anchors.getName(e);if(o){n[o]=e;s.push(`&${o}`)}if(e.tag){s.push(stringifyTag(i,e.tag))}else if(!t.default){s.push(stringifyTag(i,t.tag))}return s.join(" ")}function stringify(e,t,n,i){const{anchors:o,schema:a}=t.doc;let l;if(!(e instanceof s.Node)){const t={aliasNodes:[],onTagObj:e=>l=e,prevObjects:new Map};e=a.createNode(e,true,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=o.getName(e.source);if(!t){t=o.newName();o.map[t]=e.source}}}if(e instanceof s.Pair)return e.toString(t,n,i);if(!l)l=getTagObject(a.tags,e);const u=stringifyProps(e,l,t);if(u.length>0)t.indentAtStart=(t.indentAtStart||0)+u.length+1;const c=typeof l.stringify==="function"?l.stringify(e,t,n,i):e instanceof s.Scalar?s.stringifyString(e,t,n,i):e.toString(t,n,i);if(!u)return c;return e instanceof s.Scalar||c[0]==="{"||c[0]==="["?`${u} ${c}`:`${u}\n${t.indent}${c}`}class Anchors{static validAnchorNode(e){return e instanceof s.Scalar||e instanceof s.YAMLSeq||e instanceof s.YAMLMap}constructor(e){i._defineProperty(this,"map",Object.create(null));this.prefix=e}createAlias(e,t){this.setAnchor(e,t);return new s.Alias(e)}createMergePair(...e){const t=new s.Merge;t.value.items=e.map((e=>{if(e instanceof s.Alias){if(e.source instanceof s.YAMLMap)return e}else if(e instanceof s.YAMLMap){return this.createAlias(e)}throw new Error("Merge sources must be Map nodes or their Aliases")}));return t}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){if(!e)e=this.prefix;const t=Object.keys(this.map);for(let n=1;true;++n){const i=`${e}${n}`;if(!t.includes(i))return i}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved}));t.forEach((e=>{e.source=e.source.resolved}));delete this._cstAliases}setAnchor(e,t){if(e!=null&&!Anchors.validAnchorNode(e)){throw new Error("Anchors may only be set for Scalar, Seq and Map nodes")}if(t&&/[\x00-\x19\s,[\]{}]/.test(t)){throw new Error("Anchor names must not contain whitespace or control characters")}const{map:n}=this;const i=e&&Object.keys(n).find((t=>n[t]===e));if(i){if(!t){return i}else if(i!==t){delete n[i];n[t]=e}}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}const visit=(e,t)=>{if(e&&typeof e==="object"){const{tag:n}=e;if(e instanceof s.Collection){if(n)t[n]=true;e.items.forEach((e=>visit(e,t)))}else if(e instanceof s.Pair){visit(e.key,t);visit(e.value,t)}else if(e instanceof s.Scalar){if(n)t[n]=true}}return t};const listTagNames=e=>Object.keys(visit(e,{}));function parseContents(e,t){const n={before:[],after:[]};let o=undefined;let a=false;for(const l of t){if(l.valueRange){if(o!==undefined){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new i.YAMLSyntaxError(l,t));break}const t=s.resolveNode(e,l);if(a){t.spaceBefore=true;a=false}o=t}else if(l.comment!==null){const e=o===undefined?n.before:n.after;e.push(l.comment)}else if(l.type===i.Type.BLANK_LINE){a=true;if(o===undefined&&n.before.length>0&&!e.commentBefore){e.commentBefore=n.before.join("\n");n.before=[]}}}e.contents=o||null;if(!o){e.comment=n.before.concat(n.after).join("\n")||null}else{const t=n.before.join("\n");if(t){const e=o instanceof s.Collection&&o.items[0]?o.items[0]:o;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=n.after.join("\n")||null}}function resolveTagDirective({tagPrefixes:e},t){const[n,s]=t.parameters;if(!n||!s){const e="Insufficient parameters given for %TAG directive";throw new i.YAMLSemanticError(t,e)}if(e.some((e=>e.handle===n))){const e="The %TAG directive must only be given at most once per handle in the same document.";throw new i.YAMLSemanticError(t,e)}return{handle:n,prefix:s}}function resolveYamlDirective(e,t){let[n]=t.parameters;if(t.name==="YAML:1.0")n="1.0";if(!n){const e="Insufficient parameters given for %YAML directive";throw new i.YAMLSemanticError(t,e)}if(!u[n]){const s=e.version||e.options.version;const o=`Document will be parsed as YAML ${s} rather than YAML ${n}`;e.warnings.push(new i.YAMLWarning(t,o))}return n}function parseDirectives(e,t,n){const s=[];let o=false;for(const n of t){const{comment:t,name:a}=n;switch(a){case"TAG":try{e.tagPrefixes.push(resolveTagDirective(e,n))}catch(t){e.errors.push(t)}o=true;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new i.YAMLSemanticError(n,t))}try{e.version=resolveYamlDirective(e,n)}catch(t){e.errors.push(t)}o=true;break;default:if(a){const t=`YAML only supports %TAG and %YAML directives, and not %${a}`;e.warnings.push(new i.YAMLWarning(n,t))}}if(t)s.push(t)}if(n&&!o&&"1.1"===(e.version||n.version||e.options.version)){const copyTagPrefix=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=n.tagPrefixes.map(copyTagPrefix);e.version=n.version}e.commentBefore=s.join("\n")||null}function assertCollection(e){if(e instanceof s.Collection)return true;throw new Error("Expected a YAML collection as document contents")}class Document{constructor(e){this.anchors=new Anchors(e.anchorPrefix);this.commentBefore=null;this.comment=null;this.contents=null;this.directivesEndMarker=null;this.errors=[];this.options=e;this.schema=null;this.tagPrefixes=[];this.version=null;this.warnings=[]}add(e){assertCollection(this.contents);return this.contents.add(e)}addIn(e,t){assertCollection(this.contents);this.contents.addIn(e,t)}delete(e){assertCollection(this.contents);return this.contents.delete(e)}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}assertCollection(this.contents);return this.contents.deleteIn(e)}getDefaults(){return Document.defaults[this.version]||Document.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof s.Collection?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&this.contents instanceof s.Scalar?this.contents.value:this.contents;return this.contents instanceof s.Collection?this.contents.getIn(e,t):undefined}has(e){return this.contents instanceof s.Collection?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return this.contents instanceof s.Collection?this.contents.hasIn(e):false}set(e,t){assertCollection(this.contents);this.contents.set(e,t)}setIn(e,t){if(s.isEmptyPath(e))this.contents=t;else{assertCollection(this.contents);this.contents.setIn(e,t)}}setSchema(e,t){if(!e&&!t&&this.schema)return;if(typeof e==="number")e=e.toFixed(1);if(e==="1.0"||e==="1.1"||e==="1.2"){if(this.version)this.version=e;else this.options.version=e;delete this.options.schema}else if(e&&typeof e==="string"){this.options.schema=e}if(Array.isArray(t))this.options.customTags=t;const n=Object.assign({},this.getDefaults(),this.options);this.schema=new o.Schema(n)}parse(e,t){if(this.options.keepCstNodes)this.cstNode=e;if(this.options.keepNodeTypes)this.type="DOCUMENT";const{directives:n=[],contents:s=[],directivesEndMarker:o,error:a,valueRange:l}=e;if(a){if(!a.source)a.source=this;this.errors.push(a)}parseDirectives(this,n,t);if(o)this.directivesEndMarker=true;this.range=l?[l.start,l.end]:null;this.setSchema();this.anchors._cstAliases=[];parseContents(this,s);this.anchors.resolveNodes();if(this.options.prettyErrors){for(const e of this.errors)if(e instanceof i.YAMLError)e.makePretty();for(const e of this.warnings)if(e instanceof i.YAMLError)e.makePretty()}return this}listNonDefaultTags(){return listTagNames(this.contents).filter((e=>e.indexOf(o.Schema.defaultPrefix)!==0))}setTagPrefix(e,t){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));if(n)n.prefix=t;else this.tagPrefixes.push({handle:e,prefix:t})}else{this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}}toJSON(e,t){const{keepBlobsInJSON:n,mapAsMap:i,maxAliasCount:o}=this.options;const a=n&&(typeof e!=="string"||!(this.contents instanceof s.Scalar));const l={doc:this,indentStep:" ",keep:a,mapAsMap:a&&!!i,maxAliasCount:o,stringify:stringify};const u=Object.keys(this.anchors.map);if(u.length>0)l.anchors=new Map(u.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}])));const c=s.toJSON(this.contents,e,l);if(typeof t==="function"&&l.anchors)for(const{count:e,res:n}of l.anchors.values())t(n,e);return c}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const t=[];let n=false;if(this.version){let e="%YAML 1.2";if(this.schema.name==="yaml-1.1"){if(this.version==="1.0")e="%YAML:1.0";else if(this.version==="1.1")e="%YAML 1.1"}t.push(e);n=true}const i=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:s})=>{if(i.some((e=>e.indexOf(s)===0))){t.push(`%TAG ${e} ${s}`);n=true}}));if(n||this.directivesEndMarker)t.push("---");if(this.commentBefore){if(n||!this.directivesEndMarker)t.unshift("");t.unshift(this.commentBefore.replace(/^/gm,"#"))}const o={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:stringify};let a=false;let l=null;if(this.contents){if(this.contents instanceof s.Node){if(this.contents.spaceBefore&&(n||this.directivesEndMarker))t.push("");if(this.contents.commentBefore)t.push(this.contents.commentBefore.replace(/^/gm,"#"));o.forceBlockIndent=!!this.comment;l=this.contents.comment}const e=l?null:()=>a=true;const i=stringify(this.contents,o,(()=>l=null),e);t.push(s.addComment(i,"",l))}else if(this.contents!==undefined){t.push(stringify(this.contents,o))}if(this.comment){if((!a||l)&&t[t.length-1]!=="")t.push("");t.push(this.comment.replace(/^/gm,"#"))}return t.join("\n")+"\n"}}i._defineProperty(Document,"defaults",u);t.Document=Document;t.defaultOptions=a;t.scalarOptions=l},5215:(e,t)=>{"use strict";const n={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};const i={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};const s="tag:yaml.org,2002:";const o={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function findLineStarts(e){const t=[0];let n=e.indexOf("\n");while(n!==-1){n+=1;t.push(n);n=e.indexOf("\n",n)}return t}function getSrcInfo(e){let t,n;if(typeof e==="string"){t=findLineStarts(e);n=e}else{if(Array.isArray(e))e=e[0];if(e&&e.context){if(!e.lineStarts)e.lineStarts=findLineStarts(e.context.src);t=e.lineStarts;n=e.context.src}}return{lineStarts:t,src:n}}function getLinePos(e,t){if(typeof e!=="number"||e<0)return null;const{lineStarts:n,src:i}=getSrcInfo(t);if(!n||!i||e>i.length)return null;for(let t=0;t=1)||e>n.length)return null;const s=n[e-1];let o=n[e];while(o&&o>s&&i[o-1]==="\n")--o;return i.slice(s,o)}function getPrettyContext({start:e,end:t},n,i=80){let s=getLine(e.line,n);if(!s)return null;let{col:o}=e;if(s.length>i){if(o<=i-10){s=s.substr(0,i-1)+"…"}else{const e=Math.round(i/2);if(s.length>o+e)s=s.substr(0,o+e-1)+"…";o-=s.length-i;s="…"+s.substr(1-i)}}let a=1;let l="";if(t){if(t.line===e.line&&o+(t.col-e.col)<=i+1){a=t.col-e.col}else{a=Math.min(s.length+1,i)-o;l="…"}}const u=o>1?" ".repeat(o-1):"";const c="^".repeat(a);return`${s}\n${u}${c}${l}`}class Range{static copy(e){return new Range(e.start,e.end)}constructor(e,t){this.start=e;this.end=t||e}isEmpty(){return typeof this.start!=="number"||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:i}=this;if(e.length===0||i<=e[0]){this.origStart=n;this.origEnd=i;return t}let s=t;while(sn)break;else++s}this.origStart=n+s;const o=s;while(s=i)break;else++s}this.origEnd=i+s;return o}}class Node{static addStringTerminator(e,t,n){if(n[n.length-1]==="\n")return n;const i=Node.endOfWhiteSpace(e,t);return i>=e.length||e[i]==="\n"?n+"\n":n}static atDocumentBoundary(e,t,i){const s=e[t];if(!s)return true;const o=e[t-1];if(o&&o!=="\n")return false;if(i){if(s!==i)return false}else{if(s!==n.DIRECTIVES_END&&s!==n.DOCUMENT_END)return false}const a=e[t+1];const l=e[t+2];if(a!==s||l!==s)return false;const u=e[t+3];return!u||u==="\n"||u==="\t"||u===" "}static endOfIdentifier(e,t){let n=e[t];const i=n==="<";const s=i?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];while(n&&s.indexOf(n)===-1)n=e[t+=1];if(i&&n===">")t+=1;return t}static endOfIndent(e,t){let n=e[t];while(n===" ")n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];while(n&&n!=="\n")n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];while(n==="\t"||n===" ")n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if(n==="\n")return t;while(n&&n!=="\n")n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const i=Node.endOfIndent(e,n);if(i>n+t){return i}else{const t=Node.endOfWhiteSpace(e,i);const n=e[t];if(!n||n==="\n")return t}return null}static atBlank(e,t,n){const i=e[t];return i==="\n"||i==="\t"||i===" "||n&&!i}static nextNodeIsIndented(e,t,n){if(!e||t<0)return false;if(t>0)return true;return n&&e==="-"}static normalizeOffset(e,t){const n=e[t];return!n?t:n!=="\n"&&e[t-1]==="\n"?t-1:Node.endOfWhiteSpace(e,t)}static foldNewline(e,t,n){let i=0;let s=false;let o="";let a=e[t+1];while(a===" "||a==="\t"||a==="\n"){switch(a){case"\n":i=0;t+=1;o+="\n";break;case"\t":if(i<=n)s=true;t=Node.endOfWhiteSpace(e,t+2)-1;break;case" ":i+=1;t+=1;break}a=e[t+1]}if(!o)o=" ";if(a&&i<=n)s=true;return{fold:o,offset:t,error:s}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:true});this.error=null;this.range=null;this.valueRange=null;this.props=t||[];this.type=e;this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:i}=this.context;const s=this.props[e];return s&&i[s.start]===t?i.slice(s.start+(n?1:0),s.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return false;if(!this.valueRange)return false;const{end:n}=this.valueRange;return e!==n||Node.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tn.setOrigRange(e,t)));return t}toString(){const{context:{src:e},range:t,value:n}=this;if(n!=null)return n;const i=e.slice(t.start,t.end);return Node.addStringTerminator(e,t.end,i)}}class YAMLError extends Error{constructor(e,t,n){if(!n||!(t instanceof Node))throw new Error(`Invalid arguments for new ${e}`);super();this.name=e;this.message=n;this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if(typeof this.offset==="number"){this.range=new Range(this.offset,this.offset+1);const t=e&&getLinePos(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else{this.range=this.source.range;this.linePos=this.source.rangeAsLinePos}if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;const i=e&&getPrettyContext(this.linePos,e);if(i)this.message+=`:\n\n${i}\n`}delete this.source}}class YAMLReferenceError extends YAMLError{constructor(e,t){super("YAMLReferenceError",e,t)}}class YAMLSemanticError extends YAMLError{constructor(e,t){super("YAMLSemanticError",e,t)}}class YAMLSyntaxError extends YAMLError{constructor(e,t){super("YAMLSyntaxError",e,t)}}class YAMLWarning extends YAMLError{constructor(e,t){super("YAMLWarning",e,t)}}function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}class PlainValue extends Node{static endOfLine(e,t,n){let i=e[t];let s=t;while(i&&i!=="\n"){if(n&&(i==="["||i==="]"||i==="{"||i==="}"||i===","))break;const t=e[s+1];if(i===":"&&(!t||t==="\n"||t==="\t"||t===" "||n&&t===","))break;if((i===" "||i==="\t")&&t==="#")break;s+=1;i=t}return s}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let i=n[t-1];while(eo?n.slice(o,i+1):e}else{s+=e}}const o=n[e];switch(o){case"\t":{const e="Plain value cannot start with a tab character";const t=[new YAMLSemanticError(this,e)];return{errors:t,str:s}}case"@":case"`":{const e=`Plain value cannot start with reserved character ${o}`;const t=[new YAMLSemanticError(this,e)];return{errors:t,str:s}}default:return s}}parseBlockValue(e){const{indent:t,inFlow:n,src:i}=this.context;let s=e;let o=e;for(let e=i[s];e==="\n";e=i[s]){if(Node.atDocumentBoundary(i,s+1))break;const e=Node.endOfBlockIndent(i,t,s+1);if(e===null||i[e]==="#")break;if(i[e]==="\n"){s=e}else{o=PlainValue.endOfLine(i,e,n);s=o}}if(this.valueRange.isEmpty())this.valueRange.start=e;this.valueRange.end=o;return o}parse(e,t){this.context=e;const{inFlow:n,src:i}=e;let s=t;const o=i[s];if(o&&o!=="#"&&o!=="\n"){s=PlainValue.endOfLine(i,t,n)}this.valueRange=new Range(t,s);s=Node.endOfWhiteSpace(i,s);s=this.parseComment(s);if(!this.hasComment||this.valueRange.isEmpty()){s=this.parseBlockValue(s)}return s}}t.Char=n;t.Node=Node;t.PlainValue=PlainValue;t.Range=Range;t.Type=i;t.YAMLError=YAMLError;t.YAMLReferenceError=YAMLReferenceError;t.YAMLSemanticError=YAMLSemanticError;t.YAMLSyntaxError=YAMLSyntaxError;t.YAMLWarning=YAMLWarning;t._defineProperty=_defineProperty;t.defaultTagPrefix=s;t.defaultTags=o},8021:(e,t,n)=>{"use strict";var i=n(5215);var s=n(4227);var o=n(6003);function createMap(e,t,n){const i=new s.YAMLMap(e);if(t instanceof Map){for(const[s,o]of t)i.items.push(e.createPair(s,o,n))}else if(t&&typeof t==="object"){for(const s of Object.keys(t))i.items.push(e.createPair(s,t[s],n))}if(typeof e.sortMapEntries==="function"){i.items.sort(e.sortMapEntries)}return i}const a={createNode:createMap,default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:s.resolveMap};function createSeq(e,t,n){const i=new s.YAMLSeq(e);if(t&&t[Symbol.iterator]){for(const s of t){const t=e.createNode(s,n.wrapScalars,null,n);i.items.push(t)}}return i}const l={createNode:createSeq,default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:s.resolveSeq};const u={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:s.resolveString,stringify(e,t,n,i){t=Object.assign({actualString:true},t);return s.stringifyString(e,t,n,i)},options:s.strOptions};const c=[a,l,u];const intIdentify$2=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve$1=(e,t,n)=>s.intOptions.asBigInt?BigInt(e):parseInt(t,n);function intStringify$1(e,t,n){const{value:i}=e;if(intIdentify$2(i)&&i>=0)return n+i.toString(t);return s.stringifyNumber(e)}const f={identify:e=>e==null,createNode:(e,t,n)=>n.wrapScalars?new s.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:s.nullOptions,stringify:()=>s.nullOptions.nullStr};const p={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>e[0]==="t"||e[0]==="T",options:s.boolOptions,stringify:({value:e})=>e?s.boolOptions.trueStr:s.boolOptions.falseStr};const h={identify:e=>intIdentify$2(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>intResolve$1(e,t,8),options:s.intOptions,stringify:e=>intStringify$1(e,8,"0o")};const d={identify:intIdentify$2,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>intResolve$1(e,e,10),options:s.intOptions,stringify:s.stringifyNumber};const m={identify:e=>intIdentify$2(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>intResolve$1(e,t,16),options:s.intOptions,stringify:e=>intStringify$1(e,16,"0x")};const g={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const y={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:({value:e})=>Number(e).toExponential()};const v={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,n){const i=t||n;const o=new s.Scalar(parseFloat(e));if(i&&i[i.length-1]==="0")o.minFractionDigits=i.length;return o},stringify:s.stringifyNumber};const b=c.concat([f,p,h,d,m,g,y,v]);const intIdentify$1=e=>typeof e==="bigint"||Number.isInteger(e);const stringifyJSON=({value:e})=>JSON.stringify(e);const w=[a,l,{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:s.resolveString,stringify:stringifyJSON},{identify:e=>e==null,createNode:(e,t,n)=>n.wrapScalars?new s.Scalar(null):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$1,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>s.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify$1(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}];w.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};const boolStringify=({value:e})=>e?s.boolOptions.trueStr:s.boolOptions.falseStr;const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,n){let i=t.replace(/_/g,"");if(s.intOptions.asBigInt){switch(n){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`;break}const t=BigInt(i);return e==="-"?BigInt(-1)*t:t}const o=parseInt(i,n);return e==="-"?-1*o:o}function intStringify(e,t,n){const{value:i}=e;if(intIdentify(i)){const e=i.toString(t);return i<0?"-"+n+e.substr(1):n+e}return s.stringifyNumber(e)}const S=c.concat([{identify:e=>e==null,createNode:(e,t,n)=>n.wrapScalars?new s.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:s.nullOptions,stringify:()=>s.nullOptions.nullStr},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>true,options:s.boolOptions,stringify:boolStringify},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>false,options:s.boolOptions,stringify:boolStringify},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>intResolve(t,n,2),stringify:e=>intStringify(e,2,"0b")},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>intResolve(t,n,8),stringify:e=>intStringify(e,8,"0")},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>intResolve(t,n,10),stringify:s.stringifyNumber},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>intResolve(t,n,16),stringify:e=>intStringify(e,16,"0x")},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber},{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:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const n=new s.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");if(e[e.length-1]==="0")n.minFractionDigits=e.length}return n},stringify:s.stringifyNumber}],o.binary,o.omap,o.pairs,o.set,o.intTime,o.floatTime,o.timestamp);const E={core:b,failsafe:c,json:w,yaml11:S};const _={binary:o.binary,bool:p,float:v,floatExp:y,floatNaN:g,floatTime:o.floatTime,int:d,intHex:m,intOct:h,intTime:o.intTime,map:a,null:f,omap:o.omap,pairs:o.pairs,seq:l,set:o.set,timestamp:o.timestamp};function findTagObject(e,t,n){if(t){const e=n.filter((e=>e.tag===t));const i=e.find((e=>!e.format))||e[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}function createNode(e,t,n){if(e instanceof s.Node)return e;const{defaultPrefix:i,onTagObj:o,prevObjects:u,schema:c,wrapScalars:f}=n;if(t&&t.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,c.tags);if(!p){if(typeof e.toJSON==="function")e=e.toJSON();if(!e||typeof e!=="object")return f?new s.Scalar(e):e;p=e instanceof Map?a:e[Symbol.iterator]?l:a}if(o){o(p);delete n.onTagObj}const h={value:undefined,node:undefined};if(e&&typeof e==="object"&&u){const t=u.get(e);if(t){const e=new s.Alias(t);n.aliasNodes.push(e);return e}h.value=e;u.set(e,h)}h.node=p.createNode?p.createNode(n.schema,e,n):f?new s.Scalar(e):e;if(t&&h.node instanceof s.Node)h.node.tag=t;return h.node}function getSchemaTags(e,t,n,i){let s=e[i.replace(/\W/g,"")];if(!s){const t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${i}"; use one of ${t}`)}if(Array.isArray(n)){for(const e of n)s=s.concat(e)}else if(typeof n==="function"){s=n(s.slice())}for(let e=0;eJSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}s[e]=i}}return s}const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({customTags:e,merge:t,schema:n,sortMapEntries:i,tags:s}){this.merge=!!t;this.name=n;this.sortMapEntries=i===true?sortMapEntriesByKey:i||null;if(!e&&s)o.warnOptionDeprecation("tags","customTags");this.tags=getSchemaTags(E,_,e||s,n)}createNode(e,t,n,i){const s={defaultPrefix:Schema.defaultPrefix,schema:this,wrapScalars:t};const o=i?Object.assign(i,s):s;return createNode(e,n,o)}createPair(e,t,n){if(!n)n={wrapScalars:true};const i=this.createNode(e,n.wrapScalars,null,n);const o=this.createNode(t,n.wrapScalars,null,n);return new s.Pair(i,o)}}i._defineProperty(Schema,"defaultPrefix",i.defaultTagPrefix);i._defineProperty(Schema,"defaultTags",i.defaultTags);t.Schema=Schema},5065:(e,t,n)=>{"use strict";var i=n(445);var s=n(5506);var o=n(8021);var a=n(5215);var l=n(6003);n(4227);function createNode(e,t=true,n){if(n===undefined&&typeof t==="string"){n=t;t=true}const i=Object.assign({},s.Document.defaults[s.defaultOptions.version],s.defaultOptions);const a=new o.Schema(i);return a.createNode(e,t,n)}class Document extends s.Document{constructor(e){super(Object.assign({},s.defaultOptions,e))}}function parseAllDocuments(e,t){const n=[];let s;for(const o of i.parse(e)){const e=new Document(t);e.parse(o,s);n.push(e);s=e}return n}function parseDocument(e,t){const n=i.parse(e);const s=new Document(t).parse(n[0]);if(n.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";s.errors.unshift(new a.YAMLSemanticError(n[1],e))}return s}function parse(e,t){const n=parseDocument(e,t);n.warnings.forEach((e=>l.warn(e)));if(n.errors.length>0)throw n.errors[0];return n.toJSON()}function stringify(e,t){const n=new Document(t);n.contents=e;return String(n)}const u={createNode:createNode,defaultOptions:s.defaultOptions,Document:Document,parse:parse,parseAllDocuments:parseAllDocuments,parseCST:i.parse,parseDocument:parseDocument,scalarOptions:s.scalarOptions,stringify:stringify};t.YAML=u},445:(e,t,n)=>{"use strict";var i=n(5215);class BlankLine extends i.Node{constructor(){super(i.Type.BLANK_LINE)}get includesTrailingLines(){return true}parse(e,t){this.context=e;this.range=new i.Range(t,t+1);return t+1}}class CollectionItem extends i.Node{constructor(e,t){super(e,t);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:n,src:s}=e;let{atLineStart:o,lineStart:a}=e;if(!o&&this.type===i.Type.SEQ_ITEM)this.error=new i.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line");const l=o?t-a:e.indent;let u=i.Node.endOfWhiteSpace(s,t+1);let c=s[u];const f=c==="#";const p=[];let h=null;while(c==="\n"||c==="#"){if(c==="#"){const e=i.Node.endOfLine(s,u+1);p.push(new i.Range(u,e));u=e}else{o=true;a=u+1;const e=i.Node.endOfWhiteSpace(s,a);if(s[e]==="\n"&&p.length===0){h=new BlankLine;a=h.parse({src:s},a)}u=i.Node.endOfIndent(s,a)}c=s[u]}if(i.Node.nextNodeIsIndented(c,u-(a+l),this.type!==i.Type.SEQ_ITEM)){this.node=n({atLineStart:o,inCollection:false,indent:l,lineStart:a,parent:this},u)}else if(c&&a>t+1){u=a-1}if(this.node){if(h){const t=e.parent.items||e.parent.contents;if(t)t.push(h)}if(p.length)Array.prototype.push.apply(this.props,p);u=this.node.range.end}else{if(f){const e=p[0];this.props.push(e);u=e.end}else{u=i.Node.endOfLine(s,t+1)}}const d=this.node?this.node.valueRange.end:u;this.valueRange=new i.Range(t,d);return u}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:s}=this;if(s!=null)return s;const o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return i.Node.addStringTerminator(e,n.end,o)}}class Comment extends i.Node{constructor(){super(i.Type.COMMENT)}parse(e,t){this.context=e;const n=this.parseComment(t);this.range=new i.Range(t,n);return n}}function grabCollectionEndComments(e){let t=e;while(t instanceof CollectionItem)t=t.node;if(!(t instanceof Collection))return null;const n=t.items.length;let s=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===i.Type.COMMENT){const{indent:t,lineStart:i}=n.context;if(t>0&&n.range.start>=i+t)break;s=e}else if(n.type===i.Type.BLANK_LINE)s=e;else break}if(s===-1)return null;const o=t.items.splice(s,n-s);const a=o[0].range.start;while(true){t.range.end=a;if(t.valueRange&&t.valueRange.end>a)t.valueRange.end=a;if(t===e)break;t=t.context.parent}return o}class Collection extends i.Node{static nextContentHasIndent(e,t,n){const s=i.Node.endOfLine(e,t)+1;t=i.Node.endOfWhiteSpace(e,s);const o=e[t];if(!o)return false;if(t>=s+n)return true;if(o!=="#"&&o!=="\n")return false;return Collection.nextContentHasIndent(e,t,n)}constructor(e){super(e.type===i.Type.SEQ_ITEM?i.Type.SEQ:i.Type.MAP);for(let t=e.props.length-1;t>=0;--t){if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:n,src:s}=e;let o=i.Node.startOfLine(s,t);const a=this.items[0];a.context.parent=this;this.valueRange=i.Range.copy(a.valueRange);const l=a.range.start-a.context.lineStart;let u=t;u=i.Node.normalizeOffset(s,u);let c=s[u];let f=i.Node.endOfWhiteSpace(s,o)===u;let p=false;while(c){while(c==="\n"||c==="#"){if(f&&c==="\n"&&!p){const e=new BlankLine;u=e.parse({src:s},u);this.valueRange.end=u;if(u>=s.length){c=null;break}this.items.push(e);u-=1}else if(c==="#"){if(u=s.length){c=null;break}}o=u+1;u=i.Node.endOfIndent(s,o);if(i.Node.atBlank(s,u)){const e=i.Node.endOfWhiteSpace(s,u);const t=s[e];if(!t||t==="\n"||t==="#"){u=e}}c=s[u];f=true}if(!c){break}if(u!==o+l&&(f||c!==":")){if(ut)u=o;break}else if(!this.error){const e="All collection items must start at the same column";this.error=new i.YAMLSyntaxError(this,e)}}if(a.type===i.Type.SEQ_ITEM){if(c!=="-"){if(o>t)u=o;break}}else if(c==="-"&&!this.error){const e=s[u+1];if(!e||e==="\n"||e==="\t"||e===" "){const e="A collection cannot be both a mapping and a sequence";this.error=new i.YAMLSyntaxError(this,e)}}const e=n({atLineStart:f,inCollection:true,indent:l,lineStart:o,parent:this},u);if(!e)return u;this.items.push(e);this.valueRange.end=e.valueRange.end;u=i.Node.normalizeOffset(s,e.range.end);c=s[u];f=false;p=e.includesTrailingLines;if(c){let e=u-1;let t=s[e];while(t===" "||t==="\t")t=s[--e];if(t==="\n"){o=e+1;f=true}}const h=grabCollectionEndComments(e);if(h)Array.prototype.push.apply(this.items,h)}return u}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.items.forEach((n=>{t=n.setOrigRanges(e,t)}));return t}toString(){const{context:{src:e},items:t,range:n,value:s}=this;if(s!=null)return s;let o=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e0){this.contents=this.directives;this.directives=[]}return o}}if(t[o]){this.directivesEndMarker=new i.Range(o,o+3);return o+3}if(s){this.error=new i.YAMLSemanticError(this,"Missing directives-end indicator line")}else if(this.directives.length>0){this.contents=this.directives;this.directives=[]}return o}parseContents(e){const{parseNode:t,src:n}=this.context;if(!this.contents)this.contents=[];let s=e;while(n[s-1]==="-")s-=1;let o=i.Node.endOfWhiteSpace(n,e);let a=s===e;this.valueRange=new i.Range(o);while(!i.Node.atDocumentBoundary(n,o,i.Char.DOCUMENT_END)){switch(n[o]){case"\n":if(a){const e=new BlankLine;o=e.parse({src:n},o);if(o{t=n.setOrigRanges(e,t)}));if(this.directivesEndMarker)t=this.directivesEndMarker.setOrigRange(e,t);this.contents.forEach((n=>{t=n.setOrigRanges(e,t)}));if(this.documentEndMarker)t=this.documentEndMarker.setOrigRange(e,t);return t}toString(){const{contents:e,directives:t,value:n}=this;if(n!=null)return n;let s=t.join("");if(e.length>0){if(t.length>0||e[0].type===i.Type.COMMENT)s+="---\n";s+=e.join("")}if(s[s.length-1]!=="\n")s+="\n";return s}}class Alias extends i.Node{parse(e,t){this.context=e;const{src:n}=e;let s=i.Node.endOfIdentifier(n,t+1);this.valueRange=new i.Range(t+1,s);s=i.Node.endOfWhiteSpace(n,s);s=this.parseComment(s);return s}}const s={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};class BlockValue extends i.Node{constructor(e,t){super(e,t);this.blockIndent=null;this.chomping=s.CLIP;this.header=null}get includesTrailingLines(){return this.chomping===s.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:n,src:o}=this.context;if(this.valueRange.isEmpty())return"";let a=null;let l=o[t-1];while(l==="\n"||l==="\t"||l===" "){t-=1;if(t<=e){if(this.chomping===s.KEEP)break;else return""}if(l==="\n")a=t;l=o[t-1]}let u=t+1;if(a){if(this.chomping===s.KEEP){u=a;t=this.valueRange.end}else{t=a}}const c=n+this.blockIndent;const f=this.type===i.Type.BLOCK_FOLDED;let p=true;let h="";let d="";let m=false;for(let n=e;nu){u=c}}else if(s&&s!=="\n"&&c{if(n instanceof i.Node){t=n.setOrigRanges(e,t)}else if(e.length===0){n.origOffset=n.offset}else{let i=t;while(in.offset)break;else++i}n.origOffset=n.offset+i;t=i}}));return t}toString(){const{context:{src:e},items:t,range:n,value:s}=this;if(s!=null)return s;const o=t.filter((e=>e instanceof i.Node));let a="";let l=n.start;o.forEach((t=>{const n=e.slice(l,t.range.start);l=t.range.end;a+=n+String(t);if(a[a.length-1]==="\n"&&e[l-1]!=="\n"&&e[l]==="\n"){l+=1}}));a+=e.slice(l,n.end);return i.Node.addStringTerminator(e,n.end,a)}}class QuoteDouble extends i.Node{static endOfQuote(e,t){let n=e[t];while(n&&n!=='"'){t+=n==="\\"?2:1;n=e[t]}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:n}=this.valueRange;const{indent:s,src:o}=this.context;if(o[n-1]!=='"')e.push(new i.YAMLSyntaxError(this,'Missing closing "quote'));let a="";for(let l=t+1;le?o.slice(e,l+1):t}else{a+=t}}return e.length>0?{errors:e,str:a}:a}parseCharCode(e,t,n){const{src:s}=this.context;const o=s.substr(e,t);const a=o.length===t&&/^[0-9a-fA-F]+$/.test(o);const l=a?parseInt(o,16):NaN;if(isNaN(l)){n.push(new i.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,t+2)}`));return s.substr(e-2,t+2)}return String.fromCodePoint(l)}parse(e,t){this.context=e;const{src:n}=e;let s=QuoteDouble.endOfQuote(n,t+1);this.valueRange=new i.Range(t,s);s=i.Node.endOfWhiteSpace(n,s);s=this.parseComment(s);return s}}class QuoteSingle extends i.Node{static endOfQuote(e,t){let n=e[t];while(n){if(n==="'"){if(e[t+1]!=="'")break;n=e[t+=2]}else{n=e[t+=1]}}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:n}=this.valueRange;const{indent:s,src:o}=this.context;if(o[n-1]!=="'")e.push(new i.YAMLSyntaxError(this,"Missing closing 'quote"));let a="";for(let l=t+1;le?o.slice(e,l+1):t}else{a+=t}}return e.length>0?{errors:e,str:a}:a}parse(e,t){this.context=e;const{src:n}=e;let s=QuoteSingle.endOfQuote(n,t+1);this.valueRange=new i.Range(t,s);s=i.Node.endOfWhiteSpace(n,s);s=this.parseComment(s);return s}}function createNewNode(e,t){switch(e){case i.Type.ALIAS:return new Alias(e,t);case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return new BlockValue(e,t);case i.Type.FLOW_MAP:case i.Type.FLOW_SEQ:return new FlowCollection(e,t);case i.Type.MAP_KEY:case i.Type.MAP_VALUE:case i.Type.SEQ_ITEM:return new CollectionItem(e,t);case i.Type.COMMENT:case i.Type.PLAIN:return new i.PlainValue(e,t);case i.Type.QUOTE_DOUBLE:return new QuoteDouble(e,t);case i.Type.QUOTE_SINGLE:return new QuoteSingle(e,t);default:return null}}class ParseContext{static parseType(e,t,n){switch(e[t]){case"*":return i.Type.ALIAS;case">":return i.Type.BLOCK_FOLDED;case"|":return i.Type.BLOCK_LITERAL;case"{":return i.Type.FLOW_MAP;case"[":return i.Type.FLOW_SEQ;case"?":return!n&&i.Node.atBlank(e,t+1,true)?i.Type.MAP_KEY:i.Type.PLAIN;case":":return!n&&i.Node.atBlank(e,t+1,true)?i.Type.MAP_VALUE:i.Type.PLAIN;case"-":return!n&&i.Node.atBlank(e,t+1,true)?i.Type.SEQ_ITEM:i.Type.PLAIN;case'"':return i.Type.QUOTE_DOUBLE;case"'":return i.Type.QUOTE_SINGLE;default:return i.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:n,inFlow:s,indent:o,lineStart:a,parent:l}={}){i._defineProperty(this,"parseNode",((e,t)=>{if(i.Node.atDocumentBoundary(this.src,t))return null;const n=new ParseContext(this,e);const{props:s,type:o,valueStart:a}=n.parseProps(t);const l=createNewNode(o,s);let u=l.parse(n,a);l.range=new i.Range(t,u);if(u<=t){l.error=new Error(`Node#parse consumed no characters`);l.error.parseEnd=u;l.error.source=l;l.range.end=t+1}if(n.nodeStartsCollection(l)){if(!l.error&&!n.atLineStart&&n.parent.type===i.Type.DOCUMENT){l.error=new i.YAMLSyntaxError(l,"Block collection must not have preceding content here (e.g. directives-end indicator)")}const e=new Collection(l);u=e.parse(new ParseContext(n),u);e.range=new i.Range(t,u);return e}return l}));this.atLineStart=t!=null?t:e.atLineStart||false;this.inCollection=n!=null?n:e.inCollection||false;this.inFlow=s!=null?s:e.inFlow||false;this.indent=o!=null?o:e.indent;this.lineStart=a!=null?a:e.lineStart;this.parent=l!=null?l:e.parent||{};this.root=e.root;this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:s}=this;if(t||n)return false;if(e instanceof CollectionItem)return true;let o=e.range.end;if(s[o]==="\n"||s[o-1]==="\n")return false;o=i.Node.endOfWhiteSpace(s,o);return s[o]===":"}parseProps(e){const{inFlow:t,parent:n,src:s}=this;const o=[];let a=false;e=this.atLineStart?i.Node.endOfIndent(s,e):i.Node.endOfWhiteSpace(s,e);let l=s[e];while(l===i.Char.ANCHOR||l===i.Char.COMMENT||l===i.Char.TAG||l==="\n"){if(l==="\n"){let t=e;let o;do{o=t+1;t=i.Node.endOfIndent(s,o)}while(s[t]==="\n");const l=t-(o+this.indent);const u=n.type===i.Type.SEQ_ITEM&&n.context.atLineStart;if(s[t]!=="#"&&!i.Node.nextNodeIsIndented(s[t],l,!u))break;this.atLineStart=true;this.lineStart=o;a=false;e=t}else if(l===i.Char.COMMENT){const t=i.Node.endOfLine(s,e+1);o.push(new i.Range(e,t));e=t}else{let t=i.Node.endOfIdentifier(s,e+1);if(l===i.Char.TAG&&s[t]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e+1,t+13))){t=i.Node.endOfIdentifier(s,t+5)}o.push(new i.Range(e,t));a=true;e=i.Node.endOfWhiteSpace(s,t)}l=s[e]}if(a&&l===":"&&i.Node.atBlank(s,e+1,true))e-=1;const u=ParseContext.parseType(s,e,t);return{props:o,type:u,valueStart:e}}}function parse(e){const t=[];if(e.indexOf("\r")!==-1){e=e.replace(/\r\n?/g,((e,n)=>{if(e.length>1)t.push(n);return"\n"}))}const n=[];let i=0;do{const t=new Document;const s=new ParseContext({src:e});i=t.parse(s,i);n.push(t)}while(i{if(t.length===0)return false;for(let e=1;en.join("...\n");return n}t.parse=parse},4227:(e,t,n)=>{"use strict";var i=n(5215);function addCommentBefore(e,t,n){if(!n)return e;const i=n.replace(/[\s\S]^/gm,`$&${t}#`);return`#${i}\n${t}${e}`}function addComment(e,t,n){return!n?e:n.indexOf("\n")===-1?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`)}class Node{}function toJSON(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>toJSON(e,String(t),n)));if(e&&typeof e.toJSON==="function"){const i=n&&n.anchors&&n.anchors.get(e);if(i)n.onCreate=e=>{i.res=e;delete n.onCreate};const s=e.toJSON(t,n);if(i&&n.onCreate)n.onCreate(s);return s}if((!n||!n.keep)&&typeof e==="bigint")return Number(e);return e}class Scalar extends Node{constructor(e){super();this.value=e}toJSON(e,t){return t&&t.keep?this.value:toJSON(this.value,e,t)}toString(){return String(this.value)}}function collectionFromPath(e,t,n){let i=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(Number.isInteger(n)&&n>=0){const e=[];e[n]=i;i=e}else{const e={};Object.defineProperty(e,n,{value:i,writable:true,enumerable:true,configurable:true});i=e}}return e.createNode(i,false)}const isEmptyPath=e=>e==null||typeof e==="object"&&e[Symbol.iterator]().next().done;class Collection extends Node{constructor(e){super();i._defineProperty(this,"items",[]);this.schema=e}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[n,...i]=e;const s=this.get(n,true);if(s instanceof Collection)s.addIn(i,t);else if(s===undefined&&this.schema)this.set(n,collectionFromPath(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn([e,...t]){if(t.length===0)return this.delete(e);const n=this.get(e,true);if(n instanceof Collection)return n.deleteIn(t);else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const i=this.get(e,true);if(t.length===0)return!n&&i instanceof Scalar?i.value:i;else return i instanceof Collection?i.getIn(t,n):undefined}hasAllNullValues(){return this.items.every((e=>{if(!e||e.type!=="PAIR")return false;const t=e.value;return t==null||t instanceof Scalar&&t.value==null&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(t.length===0)return this.has(e);const n=this.get(e,true);return n instanceof Collection?n.hasIn(t):false}setIn([e,...t],n){if(t.length===0){this.set(e,n)}else{const i=this.get(e,true);if(i instanceof Collection)i.setIn(t,n);else if(i===undefined&&this.schema)this.set(e,collectionFromPath(this.schema,t,n));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}}toJSON(){return null}toString(e,{blockItem:t,flowChars:n,isMap:s,itemIndent:o},a,l){const{indent:u,indentStep:c,stringify:f}=e;const p=this.type===i.Type.FLOW_MAP||this.type===i.Type.FLOW_SEQ||e.inFlow;if(p)o+=c;const h=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:h,indent:o,inFlow:p,type:null});let d=false;let m=false;const g=this.items.reduce(((t,n,i)=>{let s;if(n){if(!d&&n.spaceBefore)t.push({type:"comment",str:""});if(n.commentBefore)n.commentBefore.match(/^.*$/gm).forEach((e=>{t.push({type:"comment",str:`#${e}`})}));if(n.comment)s=n.comment;if(p&&(!d&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment)))m=true}d=false;let a=f(n,e,(()=>s=null),(()=>d=true));if(p&&!m&&a.includes("\n"))m=true;if(p&&ie.str));if(m||i.reduce(((e,t)=>e+t.length+2),2)>Collection.maxFlowStringSingleLineLength){y=e;for(const e of i){y+=e?`\n${c}${u}${e}`:"\n"}y+=`\n${u}${t}`}else{y=`${e} ${i.join(" ")} ${t}`}}else{const e=g.map(t);y=e.shift();for(const t of e)y+=t?`\n${u}${t}`:"\n"}if(this.comment){y+="\n"+this.comment.replace(/^/gm,`${u}#`);if(a)a()}else if(d&&l)l();return y}}i._defineProperty(Collection,"maxFlowStringSingleLineLength",60);function asItemIndex(e){let t=e instanceof Scalar?e.value:e;if(t&&typeof t==="string")t=Number(t);return Number.isInteger(t)&&t>=0?t:null}class YAMLSeq extends Collection{add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const n=this.items.splice(t,1);return n.length>0}get(e,t){const n=asItemIndex(e);if(typeof n!=="number")return undefined;const i=this.items[n];return!t&&i instanceof Scalar?i.value:i}has(e){const t=asItemIndex(e);return typeof t==="number"&&te.type==="comment"?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:false,itemIndent:(e.indent||"")+" "},t,n)}}const stringifyKey=(e,t,n)=>{if(t===null)return"";if(typeof t!=="object")return String(t);if(e instanceof Node&&n&&n.doc)return e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:true,inStringifyKey:true,stringify:n.stringify});return JSON.stringify(t)};class Pair extends Node{constructor(e,t=null){super();this.key=e;this.value=t;this.type=Pair.Type.PAIR}get commentBefore(){return this.key instanceof Node?this.key.commentBefore:undefined}set commentBefore(e){if(this.key==null)this.key=new Scalar(null);if(this.key instanceof Node)this.key.commentBefore=e;else{const e="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(e)}}addToJSMap(e,t){const n=toJSON(this.key,"",e);if(t instanceof Map){const i=toJSON(this.value,n,e);t.set(n,i)}else if(t instanceof Set){t.add(n)}else{const i=stringifyKey(this.key,n,e);const s=toJSON(this.value,i,e);if(i in t)Object.defineProperty(t,i,{value:s,writable:true,enumerable:true,configurable:true});else t[i]=s}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,n){if(!e||!e.doc)return JSON.stringify(this);const{indent:s,indentSeq:o,simpleKeys:a}=e.doc.options;let{key:l,value:u}=this;let c=l instanceof Node&&l.comment;if(a){if(c){throw new Error("With simple keys, key nodes cannot have comments")}if(l instanceof Collection){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let f=!a&&(!l||c||(l instanceof Node?l instanceof Collection||l.type===i.Type.BLOCK_FOLDED||l.type===i.Type.BLOCK_LITERAL:typeof l==="object"));const{doc:p,indent:h,indentStep:d,stringify:m}=e;e=Object.assign({},e,{implicitKey:!f,indent:h+d});let g=false;let y=m(l,e,(()=>c=null),(()=>g=true));y=addComment(y,e.indent,c);if(!f&&y.length>1024){if(a)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=true}if(e.allNullValues&&!a){if(this.comment){y=addComment(y,e.indent,this.comment);if(t)t()}else if(g&&!c&&n)n();return e.inFlow&&!f?y:`? ${y}`}y=f?`? ${y}\n${h}:`:`${y}:`;if(this.comment){y=addComment(y,e.indent,this.comment);if(t)t()}let v="";let b=null;if(u instanceof Node){if(u.spaceBefore)v="\n";if(u.commentBefore){const t=u.commentBefore.replace(/^/gm,`${e.indent}#`);v+=`\n${t}`}b=u.comment}else if(u&&typeof u==="object"){u=p.schema.createNode(u,true)}e.implicitKey=false;if(!f&&!this.comment&&u instanceof Scalar)e.indentAtStart=y.length+1;g=false;if(!o&&s>=2&&!e.inFlow&&!f&&u instanceof YAMLSeq&&u.type!==i.Type.FLOW_SEQ&&!u.tag&&!p.anchors.getName(u)){e.indent=e.indent.substr(2)}const w=m(u,e,(()=>b=null),(()=>g=true));let S=" ";if(v||this.comment){S=`${v}\n${e.indent}`}else if(!f&&u instanceof Collection){const t=w[0]==="["||w[0]==="{";if(!t||w.includes("\n"))S=`\n${e.indent}`}else if(w[0]==="\n")S="";if(g&&!b&&n)n();return addComment(y+S+w,e.indent,b)}}i._defineProperty(Pair,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const getAliasCount=(e,t)=>{if(e instanceof Alias){const n=t.get(e.source);return n.count*n.aliasCount}else if(e instanceof Collection){let n=0;for(const i of e.items){const e=getAliasCount(i,t);if(e>n)n=e}return n}else if(e instanceof Pair){const n=getAliasCount(e.key,t);const i=getAliasCount(e.value,t);return Math.max(n,i)}return 1};class Alias extends Node{static stringify({range:e,source:t},{anchors:n,doc:i,implicitKey:s,inStringifyKey:o}){let a=Object.keys(n).find((e=>n[e]===t));if(!a&&o)a=i.anchors.getName(t)||i.anchors.newName();if(a)return`*${a}${s?" ":""}`;const l=i.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${l} [${e}]`)}constructor(e){super();this.source=e;this.type=i.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return toJSON(this.source,e,t);const{anchors:n,maxAliasCount:s}=t;const o=n.get(this.source);if(!o||o.res===undefined){const e="This should not happen: Alias anchor was not resolved?";if(this.cstNode)throw new i.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}if(s>=0){o.count+=1;if(o.aliasCount===0)o.aliasCount=getAliasCount(this.source,n);if(o.count*o.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";if(this.cstNode)throw new i.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}}return o.res}toString(e){return Alias.stringify(this,e)}}i._defineProperty(Alias,"default",true);function findPair(e,t){const n=t instanceof Scalar?t.value:t;for(const i of e){if(i instanceof Pair){if(i.key===t||i.key===n)return i;if(i.key&&i.key.value===n)return i}}return undefined}class YAMLMap extends Collection{add(e,t){if(!e)e=new Pair(e);else if(!(e instanceof Pair))e=new Pair(e.key||e,e.value);const n=findPair(this.items,e.key);const i=this.schema&&this.schema.sortMapEntries;if(n){if(t)n.value=e.value;else throw new Error(`Key ${e.key} already set`)}else if(i){const t=this.items.findIndex((t=>i(e,t)<0));if(t===-1)this.items.push(e);else this.items.splice(t,0,e)}else{this.items.push(e)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const n=this.items.splice(this.items.indexOf(t),1);return n.length>0}get(e,t){const n=findPair(this.items,e);const i=n&&n.value;return!t&&i instanceof Scalar?i.value:i}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new Pair(e,t),true)}toJSON(e,t,n){const i=n?new n:t&&t.mapAsMap?new Map:{};if(t&&t.onCreate)t.onCreate(i);for(const e of this.items)e.addToJSMap(t,i);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items){if(!(e instanceof Pair))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:true,itemIndent:e.indent||""},t,n)}}const s="<<";class Merge extends Pair{constructor(e){if(e instanceof Pair){let t=e.value;if(!(t instanceof YAMLSeq)){t=new YAMLSeq;t.items.push(e.value);t.range=e.value.range}super(e.key,t);this.range=e.range}else{super(new Scalar(s),new YAMLSeq)}this.type=Pair.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:n}of this.value.items){if(!(n instanceof YAMLMap))throw new Error("Merge sources must be maps");const i=n.toJSON(null,e,Map);for(const[e,n]of i){if(t instanceof Map){if(!t.has(e))t.set(e,n)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:n,writable:true,enumerable:true,configurable:true})}}}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const i=super.toString(e,t);this.value=n;return i}}const o={defaultType:i.Type.BLOCK_LITERAL,lineWidth:76};const a={trueStr:"true",falseStr:"false"};const l={asBigInt:false};const u={nullStr:"null"};const c={defaultType:i.Type.PLAIN,doubleQuoted:{jsonEncoding:false,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function resolveScalar(e,t,n){for(const{format:n,test:i,resolve:s}of t){if(i){const t=e.match(i);if(t){let e=s.apply(null,t);if(!(e instanceof Scalar))e=new Scalar(e);if(n)e.format=n;return e}}}if(n)e=n(e);return new Scalar(e)}const f="flow";const p="block";const h="quoted";const consumeMoreIndentedLines=(e,t)=>{let n=e[t+1];while(n===" "||n==="\t"){do{n=e[t+=1]}while(n&&n!=="\n");n=e[t+1]}return t};function foldFlowLines(e,t,n,{indentAtStart:i,lineWidth:s=80,minContentWidth:o=20,onFold:a,onOverflow:l}){if(!s||s<0)return e;const u=Math.max(1+o,1+s-t.length);if(e.length<=u)return e;const c=[];const f={};let d=s-t.length;if(typeof i==="number"){if(i>s-Math.max(2,o))c.push(0);else d=s-i}let m=undefined;let g=undefined;let y=false;let v=-1;let b=-1;let w=-1;if(n===p){v=consumeMoreIndentedLines(e,v);if(v!==-1)d=v+u}for(let t;t=e[v+=1];){if(n===h&&t==="\\"){b=v;switch(e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}w=v}if(t==="\n"){if(n===p)v=consumeMoreIndentedLines(e,v);d=v+u;m=undefined}else{if(t===" "&&g&&g!==" "&&g!=="\n"&&g!=="\t"){const t=e[v+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")m=v}if(v>=d){if(m){c.push(m);d=m+u;m=undefined}else if(n===h){while(g===" "||g==="\t"){g=t;t=e[v+=1];y=true}const n=v>w+1?v-2:b-1;if(f[n])return e;c.push(n);f[n]=true;d=n+u;m=undefined}else{y=true}}}g=t}if(y&&l)l();if(c.length===0)return e;if(a)a();let S=e.slice(0,c[0]);for(let i=0;ie?Object.assign({indentAtStart:e},c.fold):c.fold;const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,n){if(!t||t<0)return false;const i=t-n;const s=e.length;if(s<=i)return false;for(let t=0,n=0;ti)return true;n=t+1;if(s-n<=i)return false}}return true}function doubleQuotedString(e,t){const{implicitKey:n}=t;const{jsonEncoding:i,minMultiLineLength:s}=c.doubleQuoted;const o=JSON.stringify(e);if(i)return o;const a=t.indent||(containsDocumentMarker(e)?" ":"");let l="";let u=0;for(let e=0,t=o[e];t;t=o[++e]){if(t===" "&&o[e+1]==="\\"&&o[e+2]==="n"){l+=o.slice(u,e)+"\\ ";e+=1;u=e;t="\\"}if(t==="\\")switch(o[e+1]){case"u":{l+=o.slice(u,e);const t=o.substr(e+2,4);switch(t){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:if(t.substr(0,2)==="00")l+="\\x"+t.substr(2);else l+=o.substr(e,6)}e+=5;u=e+1}break;case"n":if(n||o[e+2]==='"'||o.length";if(!n)return h+"\n";let d="";let m="";n=n.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");if(t===-1){h+="-"}else if(n===e||t!==e.length-1){h+="+";if(a)a()}m=e.replace(/\n$/,"");return""})).replace(/^[\n ]*/,(e=>{if(e.indexOf(" ")!==-1)h+=u;const t=e.match(/ +$/);if(t){d=e.slice(0,-t[0].length);return t[0]}else{d=e;return""}}));if(m)m=m.replace(/\n+(?!\n|$)/g,`$&${l}`);if(d)d=d.replace(/\n+/g,`$&${l}`);if(e){h+=" #"+e.replace(/ ?[\r\n]+/g," ");if(o)o()}if(!n)return`${h}${u}\n${l}${m}`;if(f){n=n.replace(/\n+/g,`$&${l}`);return`${h}\n${l}${d}${n}${m}`}n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`);const g=foldFlowLines(`${d}${n}${m}`,l,p,c.fold);return`${h}\n${l}${g}`}function plainString(e,t,n,s){const{comment:o,type:a,value:l}=e;const{actualString:u,implicitKey:c,indent:p,inFlow:h}=t;if(c&&/[\n[\]{},]/.test(l)||h&&/[[\]{},]/.test(l)){return doubleQuotedString(l,t)}if(!l||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(l)){return c||h||l.indexOf("\n")===-1?l.indexOf('"')!==-1&&l.indexOf("'")===-1?singleQuotedString(l,t):doubleQuotedString(l,t):blockString(e,t,n,s)}if(!c&&!h&&a!==i.Type.PLAIN&&l.indexOf("\n")!==-1){return blockString(e,t,n,s)}if(p===""&&containsDocumentMarker(l)){t.forceBlockIndent=true;return blockString(e,t,n,s)}const d=l.replace(/\n+/g,`$&\n${p}`);if(u){const{tags:e}=t.doc.schema;const n=resolveScalar(d,e,e.scalarFallback).value;if(typeof n!=="string")return doubleQuotedString(l,t)}const m=c?d:foldFlowLines(d,p,f,getFoldOptions(t));if(o&&!h&&(m.indexOf("\n")!==-1||o.indexOf("\n")!==-1)){if(n)n();return addCommentBefore(m,p,o)}return m}function stringifyString(e,t,n,s){const{defaultType:o}=c;const{implicitKey:a,inFlow:l}=t;let{type:u,value:f}=e;if(typeof f!=="string"){f=String(f);e=Object.assign({},e,{value:f})}const _stringify=o=>{switch(o){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return blockString(e,t,n,s);case i.Type.QUOTE_DOUBLE:return doubleQuotedString(f,t);case i.Type.QUOTE_SINGLE:return singleQuotedString(f,t);case i.Type.PLAIN:return plainString(e,t,n,s);default:return null}};if(u!==i.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(f)){u=i.Type.QUOTE_DOUBLE}else if((a||l)&&(u===i.Type.BLOCK_FOLDED||u===i.Type.BLOCK_LITERAL)){u=i.Type.QUOTE_DOUBLE}let p=_stringify(u);if(p===null){p=_stringify(o);if(p===null)throw new Error(`Unsupported default string type ${o}`)}return p}function stringifyNumber({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i==="bigint")return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let e=s.indexOf(".");if(e<0){e=s.length;s+="."}let n=t-(s.length-e-1);while(n-- >0)s+="0"}return s}function checkFlowCollectionEnd(e,t){let n,s;switch(t.type){case i.Type.FLOW_MAP:n="}";s="flow map";break;case i.Type.FLOW_SEQ:n="]";s="flow sequence";break;default:e.push(new i.YAMLSemanticError(t,"Not a flow collection!?"));return}let o;for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==i.Type.COMMENT){o=n;break}}if(o&&o.char!==n){const a=`Expected ${s} to end with ${n}`;let l;if(typeof o.offset==="number"){l=new i.YAMLSemanticError(t,a);l.offset=o.offset+1}else{l=new i.YAMLSemanticError(o,a);if(o.range&&o.range.end)l.offset=o.range.end-o.range.start}e.push(l)}}function checkFlowCommentSpace(e,t){const n=t.context.src[t.range.start-1];if(n!=="\n"&&n!=="\t"&&n!==" "){const n="Comments must be separated from other tokens by white space characters";e.push(new i.YAMLSemanticError(t,n))}}function getLongKeyError(e,t){const n=String(t);const s=n.substr(0,8)+"..."+n.substr(-8);return new i.YAMLSemanticError(e,`The "${s}" key is too long`)}function resolveComments(e,t){for(const{afterKey:n,before:i,comment:s}of t){let t=e.items[i];if(!t){if(s!==undefined){if(e.comment)e.comment+="\n"+s;else e.comment=s}}else{if(n&&t.value)t=t.value;if(s===undefined){if(n||!t.commentBefore)t.spaceBefore=true}else{if(t.commentBefore)t.commentBefore+="\n"+s;else t.commentBefore=s}}}}function resolveString(e,t){const n=t.strValue;if(!n)return"";if(typeof n==="string")return n;n.errors.forEach((n=>{if(!n.source)n.source=t;e.errors.push(n)}));return n.str}function resolveTagHandle(e,t){const{handle:n,suffix:s}=t.tag;let o=e.tagPrefixes.find((e=>e.handle===n));if(!o){const s=e.getDefaults().tagPrefixes;if(s)o=s.find((e=>e.handle===n));if(!o)throw new i.YAMLSemanticError(t,`The ${n} tag handle is non-default and was not declared.`)}if(!s)throw new i.YAMLSemanticError(t,`The ${n} tag has no suffix.`);if(n==="!"&&(e.version||e.options.version)==="1.0"){if(s[0]==="^"){e.warnings.push(new i.YAMLWarning(t,"YAML 1.0 ^ tag expansion is not supported"));return s}if(/[:/]/.test(s)){const e=s.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${s}`}}return o.prefix+decodeURIComponent(s)}function resolveTagName(e,t){const{tag:n,type:s}=t;let o=false;if(n){const{handle:s,suffix:a,verbatim:l}=n;if(l){if(l!=="!"&&l!=="!!")return l;const n=`Verbatim tags aren't resolved, so ${l} is invalid.`;e.errors.push(new i.YAMLSemanticError(t,n))}else if(s==="!"&&!a){o=true}else{try{return resolveTagHandle(e,t)}catch(t){e.errors.push(t)}}}switch(s){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:case i.Type.QUOTE_DOUBLE:case i.Type.QUOTE_SINGLE:return i.defaultTags.STR;case i.Type.FLOW_MAP:case i.Type.MAP:return i.defaultTags.MAP;case i.Type.FLOW_SEQ:case i.Type.SEQ:return i.defaultTags.SEQ;case i.Type.PLAIN:return o?i.defaultTags.STR:null;default:return null}}function resolveByTagName(e,t,n){const{tags:i}=e.schema;const s=[];for(const o of i){if(o.tag===n){if(o.test)s.push(o);else{const n=o.resolve(e,t);return n instanceof Collection?n:new Scalar(n)}}}const o=resolveString(e,t);if(typeof o==="string"&&s.length>0)return resolveScalar(o,s,i.scalarFallback);return null}function getFallbackTagName({type:e}){switch(e){case i.Type.FLOW_MAP:case i.Type.MAP:return i.defaultTags.MAP;case i.Type.FLOW_SEQ:case i.Type.SEQ:return i.defaultTags.SEQ;default:return i.defaultTags.STR}}function resolveTag(e,t,n){try{const i=resolveByTagName(e,t,n);if(i){if(n&&t.tag)i.tag=n;return i}}catch(n){if(!n.source)n.source=t;e.errors.push(n);return null}try{const s=getFallbackTagName(t);if(!s)throw new Error(`The tag ${n} is unavailable`);const o=`The tag ${n} is unavailable, falling back to ${s}`;e.warnings.push(new i.YAMLWarning(t,o));const a=resolveByTagName(e,t,s);a.tag=n;return a}catch(n){const s=new i.YAMLReferenceError(t,n.message);s.stack=n.stack;e.errors.push(s);return null}}const isCollectionItem=e=>{if(!e)return false;const{type:t}=e;return t===i.Type.MAP_KEY||t===i.Type.MAP_VALUE||t===i.Type.SEQ_ITEM};function resolveNodeProps(e,t){const n={before:[],after:[]};let s=false;let o=false;const a=isCollectionItem(t.context.parent)?t.context.parent.props.concat(t.props):t.props;for(const{start:l,end:u}of a){switch(t.context.src[l]){case i.Char.COMMENT:{if(!t.commentHasRequiredWhitespace(l)){const n="Comments must be separated from other tokens by white space characters";e.push(new i.YAMLSemanticError(t,n))}const{header:s,valueRange:o}=t;const a=o&&(l>o.start||s&&l>s.start)?n.after:n.before;a.push(t.context.src.slice(l+1,u));break}case i.Char.ANCHOR:if(s){const n="A node can have at most one anchor";e.push(new i.YAMLSemanticError(t,n))}s=true;break;case i.Char.TAG:if(o){const n="A node can have at most one tag";e.push(new i.YAMLSemanticError(t,n))}o=true;break}}return{comments:n,hasAnchor:s,hasTag:o}}function resolveNodeValue(e,t){const{anchors:n,errors:s,schema:o}=e;if(t.type===i.Type.ALIAS){const e=t.rawValue;const o=n.getNode(e);if(!o){const n=`Aliased anchor not found: ${e}`;s.push(new i.YAMLReferenceError(t,n));return null}const a=new Alias(o);n._cstAliases.push(a);return a}const a=resolveTagName(e,t);if(a)return resolveTag(e,t,a);if(t.type!==i.Type.PLAIN){const e=`Failed to resolve ${t.type} node here`;s.push(new i.YAMLSyntaxError(t,e));return null}try{const n=resolveString(e,t);return resolveScalar(n,o.tags,o.tags.scalarFallback)}catch(e){if(!e.source)e.source=t;s.push(e);return null}}function resolveNode(e,t){if(!t)return null;if(t.error)e.errors.push(t.error);const{comments:n,hasAnchor:s,hasTag:o}=resolveNodeProps(e.errors,t);if(s){const{anchors:n}=e;const i=t.anchor;const s=n.getNode(i);if(s)n.map[n.newName(i)]=s;n.map[i]=t}if(t.type===i.Type.ALIAS&&(s||o)){const n="An alias node must not specify any properties";e.errors.push(new i.YAMLSemanticError(t,n))}const a=resolveNodeValue(e,t);if(a){a.range=[t.range.start,t.range.end];if(e.options.keepCstNodes)a.cstNode=t;if(e.options.keepNodeTypes)a.type=t.type;const i=n.before.join("\n");if(i){a.commentBefore=a.commentBefore?`${a.commentBefore}\n${i}`:i}const s=n.after.join("\n");if(s)a.comment=a.comment?`${a.comment}\n${s}`:s}return t.resolved=a}function resolveMap(e,t){if(t.type!==i.Type.MAP&&t.type!==i.Type.FLOW_MAP){const n=`A ${t.type} node cannot be resolved as a mapping`;e.errors.push(new i.YAMLSyntaxError(t,n));return null}const{comments:n,items:o}=t.type===i.Type.FLOW_MAP?resolveFlowMapItems(e,t):resolveBlockMapItems(e,t);const a=new YAMLMap;a.items=o;resolveComments(a,n);let l=false;for(let n=0;n{if(e instanceof Alias){const{type:t}=e.source;if(t===i.Type.MAP||t===i.Type.FLOW_MAP)return false;return a="Merge nodes aliases can only point to maps"}return a="Merge nodes can only have Alias nodes as values"}));if(a)e.errors.push(new i.YAMLSemanticError(t,a))}else{for(let s=n+1;s{if(s.length===0)return false;const{start:o}=s[0];if(t&&o>t.valueRange.start)return false;if(n[o]!==i.Char.COMMENT)return false;for(let t=e;t0){n=new i.PlainValue(i.Type.PLAIN,[]);n.context={parent:u,src:u.context.src};const e=u.range.start+1;n.range={start:e,end:e};n.valueRange={start:e,end:e};if(typeof u.range.origStart==="number"){const e=u.range.origStart+1;n.range.origStart=n.range.origEnd=e;n.valueRange.origStart=n.valueRange.origEnd=e}}const l=new Pair(o,resolveNode(e,n));resolvePairComment(u,l);s.push(l);if(o&&typeof a==="number"){if(u.range.start>a+1024)e.errors.push(getLongKeyError(t,o))}o=undefined;a=null}break;default:if(o!==undefined)s.push(new Pair(o));o=resolveNode(e,u);a=u.range.start;if(u.error)e.errors.push(u.error);e:for(let n=l+1;;++n){const s=t.items[n];switch(s&&s.type){case i.Type.BLANK_LINE:case i.Type.COMMENT:continue e;case i.Type.MAP_VALUE:break e;default:{const t="Implicit map keys need to be followed by map values";e.errors.push(new i.YAMLSemanticError(u,t));break e}}}if(u.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new i.YAMLSemanticError(u,t))}}}if(o!==undefined)s.push(new Pair(o));return{comments:n,items:s}}function resolveFlowMapItems(e,t){const n=[];const s=[];let o=undefined;let a=false;let l="{";for(let u=0;ue instanceof Pair&&e.key instanceof Collection))){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new i.YAMLWarning(t,n))}t.resolved=o;return o}function resolveBlockSeqItems(e,t){const n=[];const s=[];for(let o=0;ol+1024)e.errors.push(getLongKeyError(t,a));const{src:s}=c.context;for(let t=l;t{"use strict";var i=n(5215);var s=n(4227);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const n=s.resolveString(e,t);if(typeof Buffer==="function"){return Buffer.from(n,"base64")}else if(typeof atob==="function"){const e=atob(n.replace(/[\n\r]/g,""));const t=new Uint8Array(e.length);for(let n=0;n{let u;if(typeof Buffer==="function"){u=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64")}else if(typeof btoa==="function"){let e="";for(let t=0;t1){const e="Each pair must have its own sequence indicator";throw new i.YAMLSemanticError(t,e)}const e=o.items[0]||new s.Pair;if(o.commentBefore)e.commentBefore=e.commentBefore?`${o.commentBefore}\n${e.commentBefore}`:o.commentBefore;if(o.comment)e.comment=e.comment?`${o.comment}\n${e.comment}`:o.comment;o=e}n.items[e]=o instanceof s.Pair?o:new s.Pair(o)}return n}function createPairs(e,t,n){const i=new s.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";for(const s of t){let t,o;if(Array.isArray(s)){if(s.length===2){t=s[0];o=s[1]}else throw new TypeError(`Expected [key, value] tuple: ${s}`)}else if(s&&s instanceof Object){const e=Object.keys(s);if(e.length===1){t=e[0];o=s[t]}else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else{t=s}const a=e.createPair(t,o,n);i.items.push(a)}return i}const a={default:false,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs};class YAMLOMap extends s.YAMLSeq{constructor(){super();i._defineProperty(this,"add",s.YAMLMap.prototype.add.bind(this));i._defineProperty(this,"delete",s.YAMLMap.prototype.delete.bind(this));i._defineProperty(this,"get",s.YAMLMap.prototype.get.bind(this));i._defineProperty(this,"has",s.YAMLMap.prototype.has.bind(this));i._defineProperty(this,"set",s.YAMLMap.prototype.set.bind(this));this.tag=YAMLOMap.tag}toJSON(e,t){const n=new Map;if(t&&t.onCreate)t.onCreate(n);for(const e of this.items){let i,o;if(e instanceof s.Pair){i=s.toJSON(e.key,"",t);o=s.toJSON(e.value,i,t)}else{i=s.toJSON(e,"",t)}if(n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,o)}return n}}i._defineProperty(YAMLOMap,"tag","tag:yaml.org,2002:omap");function parseOMap(e,t){const n=parsePairs(e,t);const o=[];for(const{key:e}of n.items){if(e instanceof s.Scalar){if(o.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new i.YAMLSemanticError(t,e)}else{o.push(e.value)}}}return Object.assign(new YAMLOMap,n)}function createOMap(e,t,n){const i=createPairs(e,t,n);const s=new YAMLOMap;s.items=i.items;return s}const l={identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap};class YAMLSet extends s.YAMLMap{constructor(){super();this.tag=YAMLSet.tag}add(e){const t=e instanceof s.Pair?e:new s.Pair(e);const n=s.findPair(this.items,t.key);if(!n)this.items.push(t)}get(e,t){const n=s.findPair(this.items,e);return!t&&n instanceof s.Pair?n.key instanceof s.Scalar?n.key.value:n.key:n}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 n=s.findPair(this.items,e);if(n&&!t){this.items.splice(this.items.indexOf(n),1)}else if(!n&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);else throw new Error("Set items must all have null values")}}i._defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,t){const n=s.resolveMap(e,t);if(!n.hasAllNullValues())throw new i.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new YAMLSet,n)}function createSet(e,t,n){const i=new YAMLSet;for(const s of t)i.items.push(e.createPair(s,null,n));return i}const u={identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet};const parseSexagesimal=(e,t)=>{const n=t.split(":").reduce(((e,t)=>e*60+Number(t)),0);return e==="-"?-n:n};const stringifySexagesimal=({value:e})=>{if(isNaN(e)||!isFinite(e))return s.stringifyNumber(e);let t="";if(e<0){t="-";e=Math.abs(e)}const n=[e%60];if(e<60){n.unshift(0)}else{e=Math.round((e-n[0])/60);n.unshift(e%60);if(e>=60){e=Math.round((e-n[0])/60);n.unshift(e)}}return t+n.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")};const c={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>parseSexagesimal(t,n.replace(/_/g,"")),stringify:stringifySexagesimal};const f={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,t,n)=>parseSexagesimal(t,n.replace(/_/g,"")),stringify:stringifySexagesimal};const p={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,t,n,i,s,o,a,l,u)=>{if(l)l=(l+"00").substr(1,3);let c=Date.UTC(t,n-1,i,s||0,o||0,a||0,l||0);if(u&&u!=="Z"){let e=parseSexagesimal(u[0],u.slice(1));if(Math.abs(e)<30)e*=60;c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function shouldWarn(e){const t=typeof process!=="undefined"&&process.env||{};if(e){if(typeof YAML_SILENCE_DEPRECATION_WARNINGS!=="undefined")return!YAML_SILENCE_DEPRECATION_WARNINGS;return!t.YAML_SILENCE_DEPRECATION_WARNINGS}if(typeof YAML_SILENCE_WARNINGS!=="undefined")return!YAML_SILENCE_WARNINGS;return!t.YAML_SILENCE_WARNINGS}function warn(e,t){if(shouldWarn(false)){const n=typeof process!=="undefined"&&process.emitWarning;if(n)n(e,t);else{console.warn(t?`${t}: ${e}`:e)}}}function warnFileDeprecation(e){if(shouldWarn(true)){const t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");warn(`The endpoint 'yaml/${t}' will be removed in a future release.`,"DeprecationWarning")}}const h={};function warnOptionDeprecation(e,t){if(!h[e]&&shouldWarn(true)){h[e]=true;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".";warn(n,"DeprecationWarning")}}t.binary=o;t.floatTime=f;t.intTime=c;t.omap=l;t.pairs=a;t.set=u;t.timestamp=p;t.warn=warn;t.warnFileDeprecation=warnFileDeprecation;t.warnOptionDeprecation=warnOptionDeprecation},3552:(e,t,n)=>{e.exports=n(5065).YAML},1581:(e,t,n)=>{const i=n(2186);const s=n(1383).valid;const o=n(4492);e.exports=async(e,t)=>{let n,a,l;if(t){[n,a,l]=t.split(".");switch(e){case"major":n=parseInt(n,10)+1;a=0;l=0;break;case"minor":a=parseInt(a,10)+1;l=0;break;default:l=parseInt(l,10)+1}}else{let e=s(i.getInput("fallback-version"));if(e){[n,a,l]=e.split(".")}else{n=0;a=1;l=0}i.info(`The version could not be detected, using fallback version '${n}.${a}.${l}'.`)}const u=i.getInput("pre-changelog-generation");let c=`${n}.${a}.${l}`;if(u){const e=o(u);if(e&&e.preVersionGeneration){const t=await e.preVersionGeneration(c);if(t){i.info(`Using modified version "${t}"`);c=t}}}return c}},1749:(e,t,n)=>{const i=n(5747);const s=n(9461);const getChangelogStream=(e,t,n,i,o)=>s({preset:t,releaseCount:parseInt(i,10),tagPrefix:e,config:o},{version:n,currentTag:`${e}${n}`},{},o&&o.parserOpts,o&&o.writerOpts);e.exports=getChangelogStream;e.exports.generateStringChangelog=(e,t,n,i,s)=>new Promise(((o,a)=>{const l=getChangelogStream(e,t,n,i,s);let u="";l.on("data",(e=>{u+=e.toString()})).on("end",(()=>o(u)))}));e.exports.generateFileChangelog=(e,t,n,s,o,a)=>new Promise((l=>{const u=getChangelogStream(e,t,n,o,a);u.pipe(i.createWriteStream(s)).on("finish",l)}))},4881:(e,t,n)=>{const i=n(2186);const s=n(1514);const o=n(2357);const{GITHUB_REPOSITORY:a,GITHUB_REF:l,ENV:u}=process.env;const c=l.replace("refs/heads/","");e.exports=new class Git{commandsRun=[];constructor(){const e=i.getInput("github-token");i.setSecret(e);const t=i.getInput("git-user-name");const n=i.getInput("git-user-email");if(u==="dont-use-git"){this.exec=e=>{const t=`git ${e}`;console.log(`Skipping "${t}" because of test env`);if(!t.includes("git remote set-url origin")){this.commandsRun.push(t)}}}this.config("user.name",t);this.config("user.email",n);if(e){this.updateOrigin(`https://x-access-token:${e}@github.com/${a}.git`)}}exec=e=>new Promise((async(t,n)=>{let i="";const o={listeners:{stdout:e=>{i+=e.toString()}}};const a=await s.exec(`git ${e}`,null,o);if(a===0){t(i)}else{n(`Command "git ${e}" exited with code ${a}.`)}}));config=(e,t)=>this.exec(`config ${e} "${t}"`);add=e=>this.exec(`add ${e}`);commit=e=>this.exec(`commit -m "${e}"`);pull=async()=>{const e=["pull"];if(await this.isShallow()){e.push("--unshallow")}e.push("--tags");e.push(i.getInput("git-pull-method"));return this.exec(e.join(" "))};push=()=>this.exec(`push origin ${c} --follow-tags`);isShallow=async()=>{if(u==="dont-use-git"){return false}const e=await this.exec("rev-parse --is-shallow-repository");return e.trim().replace("\n","")==="true"};updateOrigin=e=>this.exec(`remote set-url origin ${e}`);createTag=e=>this.exec(`tag -a ${e} -m "${e}"`);testHistory=()=>{if(u==="dont-use-git"){const{EXPECTED_TAG:e,SKIPPED_COMMIT:t,EXPECTED_NO_PUSH:n}=process.env;const i=['git config user.name "Conventional Changelog Action"','git config user.email "conventional.changelog.action@github.com"',"git pull --tags --ff-only"];if(!t){i.push("git add .");i.push(`git commit -m "chore(release): ${e}"`)}i.push(`git tag -a ${e} -m "${e}"`);if(!n){i.push(`git push origin ${c} --follow-tags`)}o.deepStrictEqual(this.commandsRun,i)}}}},4492:(e,t,n)=>{const i=n(2186);const s=n(5622);const o=n(5747);e.exports=e=>{const t=s.resolve(process.cwd(),e);if(o.existsSync(t)){i.info(`Loading "${t}" script`);return require(t)}i.error(`Tried to load "${t}" script but it does not exists!`);return undefined}},3030:(e,t,n)=>{const i=n(2186);const s=n(5747);e.exports=class BaseVersioning{fileLocation=null;versionPath=null;newVersion=null;init=(e,t)=>{this.fileLocation=e;this.versionPath=t};read=()=>{if(s.existsSync(this.fileLocation)){return s.readFileSync(this.fileLocation,"utf8")}i.warning(`Tried to read "${this.fileLocation}" but file does not exist!`);return""};bump=e=>{throw new Error("Implement bump logic in class!")};update=e=>s.writeFileSync(this.fileLocation,e)}},1230:(e,t,n)=>{const i=n(2186);const s=n(2408);const o=n(3030);const a=n(1581);e.exports=class Git extends o{bump=e=>new Promise((t=>{const n=i.getInput("tag-prefix");s({tagPrefix:n},(async(i,s)=>{const o=s.length>0?s.shift().replace(n,""):null;this.newVersion=await a(e,o);t()}))}))}},6286:(e,t,n)=>{const i=n(757);const s=n(1230);const o=n(5731);const a=n(3636);e.exports=e=>{switch(e.toLowerCase()){case"json":return new i;case"yaml":case"yml":return new o;case"toml":return new a;case"git":return new s;default:return null}}},757:(e,t,n)=>{const i=n(2186);const s=n(7934);const o=n(3030);const a=n(1581);e.exports=class Json extends o{bump=async e=>{const t=this.read();let n;try{n=JSON.parse(t)}catch(e){i.startGroup(`Error when parsing the file '${this.fileLocation}'`);i.info(`File-Content: ${t}`);i.info(e);i.endGroup();n={}}const o=s.get(n,this.versionPath,null);this.newVersion=await a(e,o);i.info(`Bumped file "${this.fileLocation}" from "${o}" to "${this.newVersion}"`);s.set(n,this.versionPath,this.newVersion);this.update(JSON.stringify(n,null,2))}}},3636:(e,t,n)=>{const i=n(2186);const s=n(7934);const o=n(2901);const a=n(3030);const l=n(1581);e.exports=class Toml extends a{bump=async e=>{const t=this.read();const n=o.parse(t);const a=s.get(n,this.versionPath,null);this.newVersion=await l(e,a);if(a){const e=this.versionPath.split(".").pop();i.info(`Bumped file "${this.fileLocation}" from "${a}" to "${this.newVersion}"`);this.update(t.replace(`${e} = "${a}"`,`${e} = "${this.newVersion}"`))}else{s.set(n,this.versionPath,this.newVersion);this.update(o.stringify(n))}}}},5731:(e,t,n)=>{const i=n(2186);const s=n(7934);const o=n(3552);const a=n(3030);const l=n(1581);e.exports=class Yaml extends a{bump=async e=>{const t=this.read();const n=o.parse(t)||{};const a=s.get(n,this.versionPath,null);this.newVersion=await l(e,a);if(a){const e=this.versionPath.split(".").pop();i.info(`Bumped file "${this.fileLocation}" from "${a}" to "${this.newVersion}"`);this.update(t.replace(`${e}: '${a}'`,`${e}: '${this.newVersion}'`).replace(`${e}: "${a}"`,`${e}: "${this.newVersion}"`).replace(`${e}: ${a}`,`${e}: ${this.newVersion}`))}else{s.set(n,this.versionPath,this.newVersion);this.update(o.stringify(n))}}}},6035:e=>{"use strict";e.exports=JSON.parse('{"issue":"issue","commit":"commits","referenceActions":["close","closes","closed","closing","fix","fixes","fixed","fixing","resolve","resolves","resolved","resolving"],"issuePrefixes":["#"]}')},8560:e=>{"use strict";e.exports=JSON.parse('{"issue":"issues","commit":"commit","referenceActions":["close","closes","closed","fix","fixes","fixed","resolve","resolves","resolved"],"issuePrefixes":["#","gh-"]}')},130:e=>{"use strict";e.exports=JSON.parse('{"issue":"issues","commit":"commit","referenceActions":["close","closes","closed","closing","fix","fixes","fixed","fixing"],"issuePrefixes":["#"]}')},3991:e=>{"use strict";e.exports=JSON.parse('{"assert":true,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16","async_hooks":">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],"buffer_ieee754":"< 0.9.7","buffer":true,"node:buffer":[">= 14.18 && < 15",">= 16"],"child_process":true,"node:child_process":[">= 14.18 && < 15",">= 16"],"cluster":true,"node:cluster":[">= 14.18 && < 15",">= 16"],"console":true,"node:console":[">= 14.18 && < 15",">= 16"],"constants":true,"node:constants":[">= 14.18 && < 15",">= 16"],"crypto":true,"node:crypto":[">= 14.18 && < 15",">= 16"],"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"node:dgram":[">= 14.18 && < 15",">= 16"],"diagnostics_channel":[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],"dns":true,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16","domain":">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],"events":true,"node:events":[">= 14.18 && < 15",">= 16"],"freelist":"< 6","fs":true,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],"_http_agent":">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],"_http_client":">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],"_http_common":">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],"_http_incoming":">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],"_http_outgoing":">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],"_http_server":">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],"http":true,"node:http":[">= 14.18 && < 15",">= 16"],"http2":">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],"https":true,"node:https":[">= 14.18 && < 15",">= 16"],"inspector":">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"_linklist":"< 8","module":true,"node:module":[">= 14.18 && < 15",">= 16"],"net":true,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12","os":true,"node:os":[">= 14.18 && < 15",">= 16"],"path":true,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16","perf_hooks":">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],"process":">= 1","node:process":[">= 14.18 && < 15",">= 16"],"punycode":true,"node:punycode":[">= 14.18 && < 15",">= 16"],"querystring":true,"node:querystring":[">= 14.18 && < 15",">= 16"],"readline":true,"node:readline":[">= 14.18 && < 15",">= 16"],"repl":true,"node:repl":[">= 14.18 && < 15",">= 16"],"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],"_stream_transform":">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],"_stream_wrap":">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],"_stream_passthrough":">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],"_stream_readable":">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],"_stream_writable":">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],"stream":true,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5","string_decoder":true,"node:string_decoder":[">= 14.18 && < 15",">= 16"],"sys":[">= 0.6 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"timers":true,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16","_tls_common":">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],"_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],"tls":true,"node:tls":[">= 14.18 && < 15",">= 16"],"trace_events":">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],"tty":true,"node:tty":[">= 14.18 && < 15",">= 16"],"url":true,"node:url":[">= 14.18 && < 15",">= 16"],"util":true,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8":">= 1","node:v8":[">= 14.18 && < 15",">= 16"],"vm":true,"node:vm":[">= 14.18 && < 15",">= 16"],"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],"zlib":true,"node:zlib":[">= 14.18 && < 15",">= 16"]}')},9043:e=>{"use strict";e.exports=JSON.parse('{"topLevel":{"dependancies":"dependencies","dependecies":"dependencies","depdenencies":"dependencies","devEependencies":"devDependencies","depends":"dependencies","dev-dependencies":"devDependencies","devDependences":"devDependencies","devDepenencies":"devDependencies","devdependencies":"devDependencies","repostitory":"repository","repo":"repository","prefereGlobal":"preferGlobal","hompage":"homepage","hampage":"homepage","autohr":"author","autor":"author","contributers":"contributors","publicationConfig":"publishConfig","script":"scripts"},"bugs":{"web":"url","name":"url"},"script":{"server":"start","tests":"test"}}')},8402:e=>{"use strict";e.exports=JSON.parse('{"repositories":"\'repositories\' (plural) Not supported. Please pick one as the \'repository\' field","missingRepository":"No repository field.","brokenGitUrl":"Probably broken git url: %s","nonObjectScripts":"scripts must be an object","nonStringScript":"script values must be string commands","nonArrayFiles":"Invalid \'files\' member","invalidFilename":"Invalid filename in \'files\' list: %s","nonArrayBundleDependencies":"Invalid \'bundleDependencies\' list. Must be array of package names","nonStringBundleDependency":"Invalid bundleDependencies member: %s","nonDependencyBundleDependency":"Non-dependency in bundleDependencies: %s","nonObjectDependencies":"%s field must be an object","nonStringDependency":"Invalid dependency: %s %s","deprecatedArrayDependencies":"specifying %s as array is deprecated","deprecatedModules":"modules field is deprecated","nonArrayKeywords":"keywords should be an array of strings","nonStringKeyword":"keywords should be an array of strings","conflictingName":"%s is also the name of a node core module.","nonStringDescription":"\'description\' field should be a string","missingDescription":"No description","missingReadme":"No README data","missingLicense":"No license field.","nonEmailUrlBugsString":"Bug string field must be url, email, or {email,url}","nonUrlBugsUrlField":"bugs.url field must be a string url. Deleted.","nonEmailBugsEmailField":"bugs.email field must be a string email. Deleted.","emptyNormalizedBugs":"Normalized value of bugs field is an empty object. Deleted.","nonUrlHomepage":"homepage field must be a string url. Deleted.","invalidLicense":"license should be a valid SPDX license expression","typo":"%s should probably be %s."}')},6659:e=>{"use strict";e.exports=JSON.parse('{"topLevel":{"dependancies":"dependencies","dependecies":"dependencies","depdenencies":"dependencies","devEependencies":"devDependencies","depends":"dependencies","dev-dependencies":"devDependencies","devDependences":"devDependencies","devDepenencies":"devDependencies","devdependencies":"devDependencies","repostitory":"repository","repo":"repository","prefereGlobal":"preferGlobal","hompage":"homepage","hampage":"homepage","autohr":"author","autor":"author","contributers":"contributors","publicationConfig":"publishConfig","script":"scripts"},"bugs":{"web":"url","name":"url"},"script":{"server":"start","tests":"test"}}')},4136:e=>{"use strict";e.exports=JSON.parse('{"repositories":"\'repositories\' (plural) Not supported. Please pick one as the \'repository\' field","missingRepository":"No repository field.","brokenGitUrl":"Probably broken git url: %s","nonObjectScripts":"scripts must be an object","nonStringScript":"script values must be string commands","nonArrayFiles":"Invalid \'files\' member","invalidFilename":"Invalid filename in \'files\' list: %s","nonArrayBundleDependencies":"Invalid \'bundleDependencies\' list. Must be array of package names","nonStringBundleDependency":"Invalid bundleDependencies member: %s","nonDependencyBundleDependency":"Non-dependency in bundleDependencies: %s","nonObjectDependencies":"%s field must be an object","nonStringDependency":"Invalid dependency: %s %s","deprecatedArrayDependencies":"specifying %s as array is deprecated","deprecatedModules":"modules field is deprecated","nonArrayKeywords":"keywords should be an array of strings","nonStringKeyword":"keywords should be an array of strings","conflictingName":"%s is also the name of a node core module.","nonStringDescription":"\'description\' field should be a string","missingDescription":"No description","missingReadme":"No README data","missingLicense":"No license field.","nonEmailUrlBugsString":"Bug string field must be url, email, or {email,url}","nonUrlBugsUrlField":"bugs.url field must be a string url. Deleted.","nonEmailBugsEmailField":"bugs.email field must be a string email. Deleted.","emptyNormalizedBugs":"Normalized value of bugs field is an empty object. Deleted.","nonUrlHomepage":"homepage field must be a string url. Deleted.","invalidLicense":"license should be a valid SPDX license expression","typo":"%s should probably be %s."}')},5537:e=>{"use strict";e.exports=JSON.parse('{"assert":true,"assert/strict":">= 15","async_hooks":">= 8","buffer_ieee754":"< 0.9.7","buffer":true,"child_process":true,"cluster":true,"console":true,"constants":true,"crypto":true,"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"diagnostics_channel":">= 15.1","dns":true,"dns/promises":">= 15","domain":">= 0.7.12","events":true,"freelist":"< 6","fs":true,"fs/promises":[">= 10 && < 10.1",">= 14"],"_http_agent":">= 0.11.1","_http_client":">= 0.11.1","_http_common":">= 0.11.1","_http_incoming":">= 0.11.1","_http_outgoing":">= 0.11.1","_http_server":">= 0.11.1","http":true,"http2":">= 8.8","https":true,"inspector":">= 8.0.0","_linklist":"< 8","module":true,"net":true,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12","os":true,"path":true,"path/posix":">= 15.3","path/win32":">= 15.3","perf_hooks":">= 8.5","process":">= 1","punycode":true,"querystring":true,"readline":true,"repl":true,"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","_stream_transform":">= 0.9.4","_stream_wrap":">= 1.4.1","_stream_passthrough":">= 0.9.4","_stream_readable":">= 0.9.4","_stream_writable":">= 0.9.4","stream":true,"stream/promises":">= 15","string_decoder":true,"sys":[">= 0.6 && < 0.7",">= 0.8"],"timers":true,"timers/promises":">= 15","_tls_common":">= 0.11.13","_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","tls":true,"trace_events":">= 10","tty":true,"url":true,"util":true,"util/types":">= 15.3","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8":">= 1","vm":true,"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","zlib":true}')},9752:e=>{"use strict";e.exports=JSON.parse('["389-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-3.1","gnu-javamail-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","i2p-gpl-java-exception","Libtool-exception","Linux-syscall-note","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","Swift-exception","u-boot-exception-2.0","Universal-FOSS-exception-1.0","WxWindows-exception-3.1"]')},4185:e=>{"use strict";e.exports=JSON.parse('["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Nunit","StandardML-NJ","eCos-2.0","wxWindows"]')},2172:e=>{"use strict";e.exports=JSON.parse('["0BSD","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Abstyles","Adobe-2006","Adobe-Glyph","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-Protection","BSD-Source-Code","BSL-1.0","BUSL-1.1","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","BlueOak-1.0.0","Borceux","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-DE","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","ClArtistic","Condor-1.1","Crossword","CrystalStacker","Cube","D-FSL-1.0","DOC","DRL-1.0","DSDP","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Entessa","ErlPL-1.1","Eurosym","FSFAP","FSFUL","FSFULLR","FTL","Fair","Frameworx-1.0","FreeBSD-DOC","FreeImage","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","HPND","HPND-sell-variant","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IJG","IPA","IPL-1.0","ISC","ImageMagick","Imlib2","Info-ZIP","Intel","Intel-ACPI","Interbase-1.0","JPNIC","JSON","JasPer-2.0","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","Latex2e","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","MIT","MIT-0","MIT-CMU","MIT-Modern-Variant","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MITNFA","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-PL","MS-RL","MTLL","MakeIndex","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCGL-UK-2.0","NCSA","NGPL","NIST-PD","NIST-PD-fallback","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","Net-SNMP","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OML","OPL-1.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenSSL","PDDL-1.0","PHP-3.0","PHP-3.01","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","QPL-1.0","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","SAX-PD","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","TAPR-OHL-1.0","TCL","TCP-wrappers","TMate","TORQUE-1.1","TOSL","TU-Berlin-1.0","TU-Berlin-2.0","UCL-1.0","UPL-1.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Wsuipa","X11","XFree86-1.1","XSkat","Xerox","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.5","bzip2-1.0.6","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dvipdfm","eGenix","etalab-2.0","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","mpich2","psfrag","psutils","xinetd","xpp","zlib-acknowledgement"]')},2357:e=>{"use strict";e.exports=require("assert")},4293:e=>{"use strict";e.exports=require("buffer")},3129:e=>{"use strict";e.exports=require("child_process")},7619:e=>{"use strict";e.exports=require("constants")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},1765:e=>{"use strict";e.exports=require("process")},2413:e=>{"use strict";e.exports=require("stream")},4304:e=>{"use strict";e.exports=require("string_decoder")},8213:e=>{"use strict";e.exports=require("timers")},4016:e=>{"use strict";e.exports=require("tls")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var n=__webpack_module_cache__[e]={id:e,loaded:false,exports:{}};var i=true;try{__webpack_modules__[e].call(n.exports,n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete __webpack_module_cache__[e]}n.loaded=true;return n.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{const e=__nccwpck_require__(2186);const t=__nccwpck_require__(7011);const n=__nccwpck_require__(5622);__nccwpck_require__(8143);const i=__nccwpck_require__(6286);const s=__nccwpck_require__(4881);const o=__nccwpck_require__(1749);const a=__nccwpck_require__(4492);async function handleVersioningByExtension(e,t,s,o){const a=i(e);if(a===null){throw new Error(`File extension "${e}" from file "${t}" is not supported`)}a.init(n.resolve(process.cwd(),t),s);await a.bump(o);return a}async function run(){try{const n=e.getInput("git-message");const i=e.getInput("git-user-name");const l=e.getInput("git-user-email");const u=e.getInput("git-push").toLowerCase()==="true";const c=e.getInput("tag-prefix");const f=!e.getInput("config-file-path")?e.getInput("preset"):"";const p=e.getInput("pre-commit");const h=e.getInput("output-file");const d=e.getInput("release-count");const m=e.getInput("version-file");const g=e.getInput("version-path");const y=e.getInput("skip-version-file").toLowerCase()==="true";const v=e.getInput("skip-commit").toLowerCase()==="true";const b=e.getInput("skip-on-empty").toLowerCase()==="true";const w=e.getInput("config-file-path");const S=e.getInput("pre-changelog-generation");e.info(`Using "${f}" preset`);e.info(`Using "${n}" as commit message`);e.info(`Using "${i}" as git user.name`);e.info(`Using "${l}" as git user.email`);e.info(`Using "${d}" release count`);e.info(`Using "${m}" as version file`);e.info(`Using "${g}" as version path`);e.info(`Using "${c}" as tag prefix`);e.info(`Using "${h}" as output file`);e.info(`Using "${w}" as config file`);if(p){e.info(`Using "${p}" as pre-commit script`)}if(S){e.info(`Using "${S}" as pre-changelog-generation script`)}e.info(`Skipping empty releases is "${b?"enabled":"disabled"}"`);e.info(`Skipping the update of the version file is "${y?"enabled":"disabled"}"`);e.info("Pull to make sure we have the full git history");await s.pull();const E=w&&a(w);t({preset:f,tagPrefix:c,config:E},(async(t,i)=>{if(t){e.setFailed(t.message);return}e.info(`Recommended release type: ${i.releaseType}`);if(i.reason){e.info(`Because: ${i.reason}`)}let l;if(y||v){e.info("Using GIT to determine the new version");const t=await handleVersioningByExtension("git",m,g,i.releaseType);l=t.newVersion}else{const t=m.split(",").map((e=>e.trim()));e.info(`Files to bump: ${t.join(", ")}`);const n=await Promise.all(t.map((t=>{const n=t.split(".").pop();e.info(`Bumping version to file "${t}" with extension "${n}"`);return handleVersioningByExtension(n,t,g,i.releaseType)})));l=n[0].newVersion}let w=`${c}${l}`;if(S){const t=a(S);if(t&&t.preTagGeneration){const n=await t.preTagGeneration(w);if(n){e.info(`Using modified tag "${n}"`);w=n}}}const _=await o.generateStringChangelog(c,f,l,1,E);e.info("Changelog generated");e.info(_);const O=_.split("\n").slice(3).join("\n").trim();if(b&&O===""){e.info("Generated changelog is empty and skip-on-empty has been activated so we skip this step");e.setOutput("skipped","true");return}e.info(`New version: ${l}`);if(h!=="false"){await o.generateFileChangelog(c,f,l,h,d,E)}if(!v){if(p){const e=a(p);if(e&&e.preCommit){await e.preCommit({tag:w,version:l})}}await s.add(".");await s.commit(n.replace("{version}",w))}await s.createTag(w);if(u){try{e.info("Push all changes");await s.push()}catch(t){console.error(t);e.setFailed(t);return}}else{e.info("We not going to push the GIT changes")}e.setOutput("changelog",_);e.setOutput("clean_changelog",O);e.setOutput("version",l);e.setOutput("tag",w);e.setOutput("skipped","false");try{s.testHistory()}catch(t){console.error(t);e.setFailed(t)}}))}catch(t){e.setFailed(t)}}run()})();module.exports=__webpack_exports__})(); \ No newline at end of file +var i=n(4293);var s=i.Buffer;function copyProps(e,t){for(var n in e){t[n]=e[n]}}if(s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow){e.exports=i}else{copyProps(i,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,n){return s(e,t,n)}SafeBuffer.prototype=Object.create(s.prototype);copyProps(s,SafeBuffer);SafeBuffer.from=function(e,t,n){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return s(e,t,n)};SafeBuffer.alloc=function(e,t,n){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var i=s(e);if(t!==undefined){if(typeof n==="string"){i.fill(t,n)}else{i.fill(t)}}else{i.fill(0)}return i};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return s(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i.SlowBuffer(e)}},1532:(e,t,n)=>{const i=Symbol("SemVer ANY");class Comparator{static get ANY(){return i}constructor(e,t){t=s(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}u("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===i){this.value=""}else{this.value=this.operator+this.semver.version}u("comp",this)}parse(e){const t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=i}else{this.semver=new c(n[2],this.options.loose)}}toString(){return this.value}test(e){u("Comparator.test",e,this.options.loose);if(this.semver===i||e===i){return true}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new f(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new f(this.value,t).test(e.semver)}const n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const s=this.semver.version===e.semver.version;const o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const a=l(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const u=l(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||i||s&&o||a||u}}e.exports=Comparator;const s=n(785);const{re:o,t:a}=n(9523);const l=n(5098);const u=n(427);const c=n(8088);const f=n(9828)},9828:(e,t,n)=>{class Range{constructor(e,t){t=o(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof a){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0)this.set=[e];else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=Object.keys(this.options).join(",");const n=`parseRange:${t}:${e}`;const i=s.get(n);if(i)return i;const o=this.options.loose;const u=o?c[f.HYPHENRANGELOOSE]:c[f.HYPHENRANGE];e=e.replace(u,hyphenReplace(this.options.includePrerelease));l("hyphen replace",e);e=e.replace(c[f.COMPARATORTRIM],p);l("comparator trim",e,c[f.COMPARATORTRIM]);e=e.replace(c[f.TILDETRIM],h);e=e.replace(c[f.CARETTRIM],d);e=e.split(/\s+/).join(" ");const m=o?c[f.COMPARATORLOOSE]:c[f.COMPARATOR];const g=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options))).filter(this.options.loose?e=>!!e.match(m):()=>true).map((e=>new a(e,this.options)));const y=g.length;const v=new Map;for(const e of g){if(isNullSet(e))return[e];v.set(e.value,e)}if(v.size>1&&v.has(""))v.delete("");const b=[...v.values()];s.set(n,b);return b}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new u(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const i=e.slice();let s=i.pop();while(n&&i.length){n=i.every((e=>s.intersects(e,t)));s=i.pop()}return n};const parseComparator=(e,t)=>{l("comp",e,t);e=replaceCarets(e,t);l("caret",e);e=replaceTildes(e,t);l("tildes",e);e=replaceXRanges(e,t);l("xrange",e);e=replaceStars(e,t);l("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?c[f.TILDELOOSE]:c[f.TILDE];return e.replace(n,((t,n,i,s,o)=>{l("tilde",e,t,n,i,s,o);let a;if(isX(n)){a=""}else if(isX(i)){a=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(s)){a=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`}else if(o){l("replaceTilde pr",o);a=`>=${n}.${i}.${s}-${o} <${n}.${+i+1}.0-0`}else{a=`>=${n}.${i}.${s} <${n}.${+i+1}.0-0`}l("tilde return",a);return a}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{l("caret",e,t);const n=t.loose?c[f.CARETLOOSE]:c[f.CARET];const i=t.includePrerelease?"-0":"";return e.replace(n,((t,n,s,o,a)=>{l("caret",e,t,n,s,o,a);let u;if(isX(n)){u=""}else if(isX(s)){u=`>=${n}.0.0${i} <${+n+1}.0.0-0`}else if(isX(o)){if(n==="0"){u=`>=${n}.${s}.0${i} <${n}.${+s+1}.0-0`}else{u=`>=${n}.${s}.0${i} <${+n+1}.0.0-0`}}else if(a){l("replaceCaret pr",a);if(n==="0"){if(s==="0"){u=`>=${n}.${s}.${o}-${a} <${n}.${s}.${+o+1}-0`}else{u=`>=${n}.${s}.${o}-${a} <${n}.${+s+1}.0-0`}}else{u=`>=${n}.${s}.${o}-${a} <${+n+1}.0.0-0`}}else{l("no pr");if(n==="0"){if(s==="0"){u=`>=${n}.${s}.${o}${i} <${n}.${s}.${+o+1}-0`}else{u=`>=${n}.${s}.${o}${i} <${n}.${+s+1}.0-0`}}else{u=`>=${n}.${s}.${o} <${+n+1}.0.0-0`}}l("caret return",u);return u}))};const replaceXRanges=(e,t)=>{l("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?c[f.XRANGELOOSE]:c[f.XRANGE];return e.replace(n,((n,i,s,o,a,u)=>{l("xRange",e,n,i,s,o,a,u);const c=isX(s);const f=c||isX(o);const p=f||isX(a);const h=p;if(i==="="&&h){i=""}u=t.includePrerelease?"-0":"";if(c){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&h){if(f){o=0}a=0;if(i===">"){i=">=";if(f){s=+s+1;o=0;a=0}else{o=+o+1;a=0}}else if(i==="<="){i="<";if(f){s=+s+1}else{o=+o+1}}if(i==="<")u="-0";n=`${i+s}.${o}.${a}${u}`}else if(f){n=`>=${s}.0.0${u} <${+s+1}.0.0-0`}else if(p){n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`}l("xRange return",n);return n}))};const replaceStars=(e,t)=>{l("replaceStars",e,t);return e.trim().replace(c[f.STAR],"")};const replaceGTE0=(e,t)=>{l("replaceGTE0",e,t);return e.trim().replace(c[t.includePrerelease?f.GTE0PRE:f.GTE0],"")};const hyphenReplace=e=>(t,n,i,s,o,a,l,u,c,f,p,h,d)=>{if(isX(i)){n=""}else if(isX(s)){n=`>=${i}.0.0${e?"-0":""}`}else if(isX(o)){n=`>=${i}.${s}.0${e?"-0":""}`}else if(a){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(c)){u=""}else if(isX(f)){u=`<${+c+1}.0.0-0`}else if(isX(p)){u=`<${c}.${+f+1}.0-0`}else if(h){u=`<=${c}.${f}.${p}-${h}`}else if(e){u=`<${c}.${f}.${+p+1}-0`}else{u=`<=${u}`}return`${n} ${u}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n0){const i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch){return true}}}return false}return true}},8088:(e,t,n)=>{const i=n(427);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:o}=n(2293);const{re:a,t:l}=n(9523);const u=n(785);const{compareIdentifiers:c}=n(2463);class SemVer{constructor(e,t){t=u(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid Version: ${e}`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}i("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},8848:(e,t,n)=>{const i=n(5925);const clean=(e,t)=>{const n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},5098:(e,t,n)=>{const i=n(1898);const s=n(6017);const o=n(4123);const a=n(5522);const l=n(194);const u=n(7520);const cmp=(e,t,n,c)=>{switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return i(e,n,c);case"!=":return s(e,n,c);case">":return o(e,n,c);case">=":return a(e,n,c);case"<":return l(e,n,c);case"<=":return u(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},3466:(e,t,n)=>{const i=n(8088);const s=n(5925);const{re:o,t:a}=n(9523);const coerce=(e,t)=>{if(e instanceof i){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(o[a.COERCE])}else{let t;while((t=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||t.index+t[0].length!==n.index+n[0].length){n=t}o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}o[a.COERCERTL].lastIndex=-1}if(n===null)return null;return s(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};e.exports=coerce},2156:(e,t,n)=>{const i=n(8088);const compareBuild=(e,t,n)=>{const s=new i(e,n);const o=new i(t,n);return s.compare(o)||s.compareBuild(o)};e.exports=compareBuild},2804:(e,t,n)=>{const i=n(4309);const compareLoose=(e,t)=>i(e,t,true);e.exports=compareLoose},4309:(e,t,n)=>{const i=n(8088);const compare=(e,t,n)=>new i(e,n).compare(new i(t,n));e.exports=compare},4297:(e,t,n)=>{const i=n(5925);const s=n(1898);const diff=(e,t)=>{if(s(e,t)){return null}else{const n=i(e);const s=i(t);const o=n.prerelease.length||s.prerelease.length;const a=o?"pre":"";const l=o?"prerelease":"";for(const e in n){if(e==="major"||e==="minor"||e==="patch"){if(n[e]!==s[e]){return a+e}}}return l}};e.exports=diff},1898:(e,t,n)=>{const i=n(4309);const eq=(e,t,n)=>i(e,t,n)===0;e.exports=eq},4123:(e,t,n)=>{const i=n(4309);const gt=(e,t,n)=>i(e,t,n)>0;e.exports=gt},5522:(e,t,n)=>{const i=n(4309);const gte=(e,t,n)=>i(e,t,n)>=0;e.exports=gte},900:(e,t,n)=>{const i=n(8088);const inc=(e,t,n,s)=>{if(typeof n==="string"){s=n;n=undefined}try{return new i(e,n).inc(t,s).version}catch(e){return null}};e.exports=inc},194:(e,t,n)=>{const i=n(4309);const lt=(e,t,n)=>i(e,t,n)<0;e.exports=lt},7520:(e,t,n)=>{const i=n(4309);const lte=(e,t,n)=>i(e,t,n)<=0;e.exports=lte},6688:(e,t,n)=>{const i=n(8088);const major=(e,t)=>new i(e,t).major;e.exports=major},8447:(e,t,n)=>{const i=n(8088);const minor=(e,t)=>new i(e,t).minor;e.exports=minor},6017:(e,t,n)=>{const i=n(4309);const neq=(e,t,n)=>i(e,t,n)!==0;e.exports=neq},5925:(e,t,n)=>{const{MAX_LENGTH:i}=n(2293);const{re:s,t:o}=n(9523);const a=n(8088);const l=n(785);const parse=(e,t)=>{t=l(t);if(e instanceof a){return e}if(typeof e!=="string"){return null}if(e.length>i){return null}const n=t.loose?s[o.LOOSE]:s[o.FULL];if(!n.test(e)){return null}try{return new a(e,t)}catch(e){return null}};e.exports=parse},2866:(e,t,n)=>{const i=n(8088);const patch=(e,t)=>new i(e,t).patch;e.exports=patch},6014:(e,t,n)=>{const i=n(5925);const prerelease=(e,t)=>{const n=i(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},6417:(e,t,n)=>{const i=n(4309);const rcompare=(e,t,n)=>i(t,e,n);e.exports=rcompare},8701:(e,t,n)=>{const i=n(2156);const rsort=(e,t)=>e.sort(((e,n)=>i(n,e,t)));e.exports=rsort},6055:(e,t,n)=>{const i=n(9828);const satisfies=(e,t,n)=>{try{t=new i(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},1426:(e,t,n)=>{const i=n(2156);const sort=(e,t)=>e.sort(((e,n)=>i(e,n,t)));e.exports=sort},9601:(e,t,n)=>{const i=n(5925);const valid=(e,t)=>{const n=i(e,t);return n?n.version:null};e.exports=valid},1383:(e,t,n)=>{const i=n(9523);e.exports={re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:n(2293).SEMVER_SPEC_VERSION,SemVer:n(8088),compareIdentifiers:n(2463).compareIdentifiers,rcompareIdentifiers:n(2463).rcompareIdentifiers,parse:n(5925),valid:n(9601),clean:n(8848),inc:n(900),diff:n(4297),major:n(6688),minor:n(8447),patch:n(2866),prerelease:n(6014),compare:n(4309),rcompare:n(6417),compareLoose:n(2804),compareBuild:n(2156),sort:n(1426),rsort:n(8701),gt:n(4123),lt:n(194),eq:n(1898),neq:n(6017),gte:n(5522),lte:n(7520),cmp:n(5098),coerce:n(3466),Comparator:n(1532),Range:n(9828),satisfies:n(6055),toComparators:n(2706),maxSatisfying:n(579),minSatisfying:n(832),minVersion:n(4179),validRange:n(2098),outside:n(420),gtr:n(9380),ltr:n(3323),intersects:n(7008),simplifyRange:n(5297),subset:n(7863)}},2293:e=>{const t="2.0.0";const n=256;const i=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;e.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:n,MAX_SAFE_INTEGER:i,MAX_SAFE_COMPONENT_LENGTH:s}},427:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},2463:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{const i=t.test(e);const s=t.test(n);if(i&&s){e=+e;n=+n}return e===n?0:i&&!s?-1:s&&!i?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},785:e=>{const t=["includePrerelease","loose","rtl"];const parseOptions=e=>!e?{}:typeof e!=="object"?{loose:true}:t.filter((t=>e[t])).reduce(((e,t)=>{e[t]=true;return e}),{});e.exports=parseOptions},9523:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:i}=n(2293);const s=n(427);t=e.exports={};const o=t.re=[];const a=t.src=[];const l=t.t={};let u=0;const createToken=(e,t,n)=>{const i=u++;s(i,t);l[e]=i;a[i]=t;o[i]=new RegExp(t,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${a[l.NUMERICIDENTIFIER]})\\.`+`(${a[l.NUMERICIDENTIFIER]})\\.`+`(${a[l.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${a[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${a[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${a[l.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${a[l.NUMERICIDENTIFIER]}|${a[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${a[l.NUMERICIDENTIFIERLOOSE]}|${a[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${a[l.PRERELEASEIDENTIFIER]}(?:\\.${a[l.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${a[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[l.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${a[l.BUILDIDENTIFIER]}(?:\\.${a[l.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${a[l.MAINVERSION]}${a[l.PRERELEASE]}?${a[l.BUILD]}?`);createToken("FULL",`^${a[l.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${a[l.MAINVERSIONLOOSE]}${a[l.PRERELEASELOOSE]}?${a[l.BUILD]}?`);createToken("LOOSE",`^${a[l.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${a[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${a[l.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${a[l.XRANGEIDENTIFIER]})`+`(?:\\.(${a[l.XRANGEIDENTIFIER]})`+`(?:\\.(${a[l.XRANGEIDENTIFIER]})`+`(?:${a[l.PRERELEASE]})?${a[l.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${a[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${a[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${a[l.XRANGEIDENTIFIERLOOSE]})`+`(?:${a[l.PRERELEASELOOSE]})?${a[l.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${a[l.GTLT]}\\s*${a[l.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${a[l.GTLT]}\\s*${a[l.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${i}})`+`(?:\\.(\\d{1,${i}}))?`+`(?:\\.(\\d{1,${i}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",a[l.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${a[l.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${a[l.LONETILDE]}${a[l.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${a[l.LONETILDE]}${a[l.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${a[l.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${a[l.LONECARET]}${a[l.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${a[l.LONECARET]}${a[l.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${a[l.GTLT]}\\s*(${a[l.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${a[l.GTLT]}\\s*(${a[l.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${a[l.GTLT]}\\s*(${a[l.LOOSEPLAIN]}|${a[l.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${a[l.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${a[l.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${a[l.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${a[l.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0.0.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},9380:(e,t,n)=>{const i=n(420);const gtr=(e,t,n)=>i(e,t,">",n);e.exports=gtr},7008:(e,t,n)=>{const i=n(9828);const intersects=(e,t,n)=>{e=new i(e,n);t=new i(t,n);return e.intersects(t)};e.exports=intersects},3323:(e,t,n)=>{const i=n(420);const ltr=(e,t,n)=>i(e,t,"<",n);e.exports=ltr},579:(e,t,n)=>{const i=n(8088);const s=n(9828);const maxSatisfying=(e,t,n)=>{let o=null;let a=null;let l=null;try{l=new s(t,n)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!o||a.compare(e)===-1){o=e;a=new i(o,n)}}}));return o};e.exports=maxSatisfying},832:(e,t,n)=>{const i=n(8088);const s=n(9828);const minSatisfying=(e,t,n)=>{let o=null;let a=null;let l=null;try{l=new s(t,n)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!o||a.compare(e)===1){o=e;a=new i(o,n)}}}));return o};e.exports=minSatisfying},4179:(e,t,n)=>{const i=n(8088);const s=n(9828);const o=n(4123);const minVersion=(e,t)=>{e=new s(e,t);let n=new i("0.0.0");if(e.test(n)){return n}n=new i("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t{const t=new i(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!a||o(t,a)){a=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(a&&(!n||o(n,a)))n=a}if(n&&e.test(n)){return n}return null};e.exports=minVersion},420:(e,t,n)=>{const i=n(8088);const s=n(1532);const{ANY:o}=s;const a=n(9828);const l=n(6055);const u=n(4123);const c=n(194);const f=n(7520);const p=n(5522);const outside=(e,t,n,h)=>{e=new i(e,h);t=new a(t,h);let d,m,g,y,v;switch(n){case">":d=u;m=f;g=c;y=">";v=">=";break;case"<":d=c;m=p;g=u;y="<";v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(e,t,h)){return false}for(let n=0;n{if(e.semver===o){e=new s(">=0.0.0")}a=a||e;l=l||e;if(d(e.semver,a.semver,h)){a=e}else if(g(e.semver,l.semver,h)){l=e}}));if(a.operator===y||a.operator===v){return false}if((!l.operator||l.operator===y)&&m(e,l.semver)){return false}else if(l.operator===v&&g(e,l.semver)){return false}}return true};e.exports=outside},5297:(e,t,n)=>{const i=n(6055);const s=n(4309);e.exports=(e,t,n)=>{const o=[];let a=null;let l=null;const u=e.sort(((e,t)=>s(e,t,n)));for(const e of u){const s=i(e,t,n);if(s){l=e;if(!a)a=e}else{if(l){o.push([a,l])}l=null;a=null}}if(a)o.push([a,null]);const c=[];for(const[e,t]of o){if(e===t)c.push(e);else if(!t&&e===u[0])c.push("*");else if(!t)c.push(`>=${e}`);else if(e===u[0])c.push(`<=${t}`);else c.push(`${e} - ${t}`)}const f=c.join(" || ");const p=typeof t.raw==="string"?t.raw:String(t);return f.length{const i=n(9828);const s=n(1532);const{ANY:o}=s;const a=n(6055);const l=n(4309);const subset=(e,t,n={})=>{if(e===t)return true;e=new i(e,n);t=new i(t,n);let s=false;e:for(const i of e.set){for(const e of t.set){const t=simpleSubset(i,e,n);s=s||t!==null;if(t)continue e}if(s)return false}return true};const simpleSubset=(e,t,n)=>{if(e===t)return true;if(e.length===1&&e[0].semver===o){if(t.length===1&&t[0].semver===o)return true;else if(n.includePrerelease)e=[new s(">=0.0.0-0")];else e=[new s(">=0.0.0")]}if(t.length===1&&t[0].semver===o){if(n.includePrerelease)return true;else t=[new s(">=0.0.0")]}const i=new Set;let u,c;for(const t of e){if(t.operator===">"||t.operator===">=")u=higherGT(u,t,n);else if(t.operator==="<"||t.operator==="<=")c=lowerLT(c,t,n);else i.add(t.semver)}if(i.size>1)return null;let f;if(u&&c){f=l(u.semver,c.semver,n);if(f>0)return null;else if(f===0&&(u.operator!==">="||c.operator!=="<="))return null}for(const e of i){if(u&&!a(e,String(u),n))return null;if(c&&!a(e,String(c),n))return null;for(const i of t){if(!a(e,String(i),n))return false}return true}let p,h;let d,m;let g=c&&!n.includePrerelease&&c.semver.prerelease.length?c.semver:false;let y=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:false;if(g&&g.prerelease.length===1&&c.operator==="<"&&g.prerelease[0]===0){g=false}for(const e of t){m=m||e.operator===">"||e.operator===">=";d=d||e.operator==="<"||e.operator==="<=";if(u){if(y){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch){y=false}}if(e.operator===">"||e.operator===">="){p=higherGT(u,e,n);if(p===e&&p!==u)return false}else if(u.operator===">="&&!a(u.semver,String(e),n))return false}if(c){if(g){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch){g=false}}if(e.operator==="<"||e.operator==="<="){h=lowerLT(c,e,n);if(h===e&&h!==c)return false}else if(c.operator==="<="&&!a(c.semver,String(e),n))return false}if(!e.operator&&(c||u)&&f!==0)return false}if(u&&d&&!c&&f!==0)return false;if(c&&m&&!u&&f!==0)return false;if(y||g)return false;return true};const higherGT=(e,t,n)=>{if(!e)return t;const i=l(e.semver,t.semver,n);return i>0?e:i<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e)return t;const i=l(e.semver,t.semver,n);return i<0?e:i>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},2706:(e,t,n)=>{const i=n(9828);const toComparators=(e,t)=>new i(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},2098:(e,t,n)=>{const i=n(9828);const validRange=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}};e.exports=validRange},6375:(e,t,n)=>{var i=n(2344);var s=Object.prototype.hasOwnProperty;var o=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=o?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,t){var n=new ArraySet;for(var i=0,s=e.length;i=0){return t}}else{var n=i.toSetString(e);if(s.call(this._set,n)){return this._set[n]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e{var i=n(6156);var s=5;var o=1<>1;return t?-n:n}t.encode=function base64VLQ_encode(e){var t="";var n;var o=toVLQSigned(e);do{n=o&a;o>>>=s;if(o>0){n|=l}t+=i.encode(n)}while(o>0);return t};t.decode=function base64VLQ_decode(e,t,n){var o=e.length;var u=0;var c=0;var f,p;do{if(t>=o){throw new Error("Expected more digits in base 64 VLQ value.")}p=i.decode(e.charCodeAt(t++));if(p===-1){throw new Error("Invalid base64 digit: "+e.charAt(t-1))}f=!!(p&l);p&=a;u=u+(p<{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e{t.GREATEST_LOWER_BOUND=1;t.LEAST_UPPER_BOUND=2;function recursiveSearch(e,n,i,s,o,a){var l=Math.floor((n-e)/2)+e;var u=o(i,s[l],true);if(u===0){return l}else if(u>0){if(n-l>1){return recursiveSearch(l,n,i,s,o,a)}if(a==t.LEAST_UPPER_BOUND){return n1){return recursiveSearch(e,l,i,s,o,a)}if(a==t.LEAST_UPPER_BOUND){return l}else{return e<0?-1:e}}}t.search=function search(e,n,i,s){if(n.length===0){return-1}var o=recursiveSearch(-1,n.length,e,n,i,s||t.GREATEST_LOWER_BOUND);if(o<0){return-1}while(o-1>=0){if(i(n[o],n[o-1],true)!==0){break}--o}return o}},6817:(e,t,n)=>{var i=n(2344);function generatedPositionAfter(e,t){var n=e.generatedLine;var s=t.generatedLine;var o=e.generatedColumn;var a=t.generatedColumn;return s>n||s==n&&a>=o||i.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,t){this._array.forEach(e,t)};MappingList.prototype.add=function MappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(i.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};t.H=MappingList},3254:(e,t)=>{function swap(e,t,n){var i=e[t];e[t]=e[n];e[n]=i}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,n,i){if(n{var i;var s=n(2344);var o=n(3600);var a=n(6375).I;var l=n(5807);var u=n(3254).U;function SourceMapConsumer(e,t){var n=e;if(typeof e==="string"){n=s.parseSourceMapInput(e)}return n.sections!=null?new IndexedSourceMapConsumer(n,t):new BasicSourceMapConsumer(n,t)}SourceMapConsumer.fromSourceMap=function(e,t){return BasicSourceMapConsumer.fromSourceMap(e,t)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(e,t){var n=e.charAt(t);return n===";"||n===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,t){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(e,t,n){var i=t||null;var o=n||SourceMapConsumer.GENERATED_ORDER;var a;switch(o){case SourceMapConsumer.GENERATED_ORDER:a=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var l=this.sourceRoot;a.map((function(e){var t=e.source===null?null:this._sources.at(e.source);t=s.computeSourceURL(l,t,this._sourceMapURL);return{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}}),this).forEach(e,i)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(e){var t=s.getArg(e,"line");var n={source:s.getArg(e,"source"),originalLine:t,originalColumn:s.getArg(e,"column",0)};n.source=this._findSourceIndex(n.source);if(n.source<0){return[]}var i=[];var a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(a>=0){var l=this._originalMappings[a];if(e.column===undefined){var u=l.originalLine;while(l&&l.originalLine===u){i.push({line:s.getArg(l,"generatedLine",null),column:s.getArg(l,"generatedColumn",null),lastColumn:s.getArg(l,"lastGeneratedColumn",null)});l=this._originalMappings[++a]}}else{var c=l.originalColumn;while(l&&l.originalLine===t&&l.originalColumn==c){i.push({line:s.getArg(l,"generatedLine",null),column:s.getArg(l,"generatedColumn",null),lastColumn:s.getArg(l,"lastGeneratedColumn",null)});l=this._originalMappings[++a]}}}return i};t.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(e,t){var n=e;if(typeof e==="string"){n=s.parseSourceMapInput(e)}var i=s.getArg(n,"version");var o=s.getArg(n,"sources");var l=s.getArg(n,"names",[]);var u=s.getArg(n,"sourceRoot",null);var c=s.getArg(n,"sourcesContent",null);var f=s.getArg(n,"mappings");var p=s.getArg(n,"file",null);if(i!=this._version){throw new Error("Unsupported version: "+i)}if(u){u=s.normalize(u)}o=o.map(String).map(s.normalize).map((function(e){return u&&s.isAbsolute(u)&&s.isAbsolute(e)?s.relative(u,e):e}));this._names=a.fromArray(l.map(String),true);this._sources=a.fromArray(o,true);this._absoluteSources=this._sources.toArray().map((function(e){return s.computeSourceURL(u,e,t)}));this.sourceRoot=u;this.sourcesContent=c;this._mappings=f;this._sourceMapURL=t;this.file=p}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null){t=s.relative(this.sourceRoot,t)}if(this._sources.has(t)){return this._sources.indexOf(t)}var n;for(n=0;n1){v.source=c+w[1];c+=w[1];v.originalLine=o+w[2];o=v.originalLine;v.originalLine+=1;v.originalColumn=a+w[3];a=v.originalColumn;if(w.length>4){v.name=f+w[4];f+=w[4]}}y.push(v);if(typeof v.originalLine==="number"){g.push(v)}}}u(y,s.compareByGeneratedPositionsDeflated);this.__generatedMappings=y;u(g,s.compareByOriginalPositions);this.__originalMappings=g};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(e,t,n,i,s,a){if(e[n]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+e[n])}if(e[i]<0){throw new TypeError("Column must be greater than or equal to 0, got "+e[i])}return o.search(e,t,s,a)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var e=0;e=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var o=s.getArg(i,"source",null);if(o!==null){o=this._sources.at(o);o=s.computeSourceURL(this.sourceRoot,o,this._sourceMapURL)}var a=s.getArg(i,"name",null);if(a!==null){a=this._names.at(a)}return{source:o,line:s.getArg(i,"originalLine",null),column:s.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return e==null}))};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(e,t){if(!this.sourcesContent){return null}var n=this._findSourceIndex(e);if(n>=0){return this.sourcesContent[n]}var i=e;if(this.sourceRoot!=null){i=s.relative(this.sourceRoot,i)}var o;if(this.sourceRoot!=null&&(o=s.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a)){return this.sourcesContent[this._sources.indexOf(a)]}if((!o.path||o.path=="/")&&this._sources.has("/"+i)){return this.sourcesContent[this._sources.indexOf("/"+i)]}}if(t){return null}else{throw new Error('"'+i+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(e){var t=s.getArg(e,"source");t=this._findSourceIndex(t);if(t<0){return{line:null,column:null,lastColumn:null}}var n={source:t,originalLine:s.getArg(e,"line"),originalColumn:s.getArg(e,"column")};var i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,s.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source){return{line:s.getArg(o,"generatedLine",null),column:s.getArg(o,"generatedColumn",null),lastColumn:s.getArg(o,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};i=BasicSourceMapConsumer;function IndexedSourceMapConsumer(e,t){var n=e;if(typeof e==="string"){n=s.parseSourceMapInput(e)}var i=s.getArg(n,"version");var o=s.getArg(n,"sections");if(i!=this._version){throw new Error("Unsupported version: "+i)}this._sources=new a;this._names=new a;var l={line:-1,column:0};this._sections=o.map((function(e){if(e.url){throw new Error("Support for url field in sections not implemented.")}var n=s.getArg(e,"offset");var i=s.getArg(n,"line");var o=s.getArg(n,"column");if(i{var i=n(5807);var s=n(2344);var o=n(6375).I;var a=n(6817).H;function SourceMapGenerator(e){if(!e){e={}}this._file=s.getArg(e,"file",null);this._sourceRoot=s.getArg(e,"sourceRoot",null);this._skipValidation=s.getArg(e,"skipValidation",false);this._sources=new o;this._names=new o;this._mappings=new a;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(e){var t=e.sourceRoot;var n=new SourceMapGenerator({file:e.file,sourceRoot:t});e.eachMapping((function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){i.source=e.source;if(t!=null){i.source=s.relative(t,i.source)}i.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){i.name=e.name}}n.addMapping(i)}));e.sources.forEach((function(i){var o=i;if(t!==null){o=s.relative(t,i)}if(!n._sources.has(o)){n._sources.add(o)}var a=e.sourceContentFor(i);if(a!=null){n.setSourceContent(i,a)}}));return n};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(e){var t=s.getArg(e,"generated");var n=s.getArg(e,"original",null);var i=s.getArg(e,"source",null);var o=s.getArg(e,"name",null);if(!this._skipValidation){this._validateMapping(t,n,i,o)}if(i!=null){i=String(i);if(!this._sources.has(i)){this._sources.add(i)}}if(o!=null){o=String(o);if(!this._names.has(o)){this._names.add(o)}}this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(e,t){var n=e;if(this._sourceRoot!=null){n=s.relative(this._sourceRoot,n)}if(t!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[s.toSetString(n)]=t}else if(this._sourcesContents){delete this._sourcesContents[s.toSetString(n)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(e,t,n){var i=t;if(t==null){if(e.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}i=e.file}var a=this._sourceRoot;if(a!=null){i=s.relative(a,i)}var l=new o;var u=new o;this._mappings.unsortedForEach((function(t){if(t.source===i&&t.originalLine!=null){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});if(o.source!=null){t.source=o.source;if(n!=null){t.source=s.join(n,t.source)}if(a!=null){t.source=s.relative(a,t.source)}t.originalLine=o.line;t.originalColumn=o.column;if(o.name!=null){t.name=o.name}}}var c=t.source;if(c!=null&&!l.has(c)){l.add(c)}var f=t.name;if(f!=null&&!u.has(f)){u.add(f)}}),this);this._sources=l;this._names=u;e.sources.forEach((function(t){var i=e.sourceContentFor(t);if(i!=null){if(n!=null){t=s.join(n,t)}if(a!=null){t=s.relative(a,t)}this.setSourceContent(t,i)}}),this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(e,t,n,i){if(t&&typeof t.line!=="number"&&typeof t.column!=="number"){throw new Error("original.line and original.column are not numbers -- you probably meant to omit "+"the original mapping entirely and only map the generated position. If so, pass "+"null for the original mapping instead of an object with empty or null values.")}if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!n&&!i){return}else if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:i}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var e=0;var t=1;var n=0;var o=0;var a=0;var l=0;var u="";var c;var f;var p;var h;var d=this._mappings.toArray();for(var m=0,g=d.length;m0){if(!s.compareByGeneratedPositionsInflated(f,d[m-1])){continue}c+=","}}c+=i.encode(f.generatedColumn-e);e=f.generatedColumn;if(f.source!=null){h=this._sources.indexOf(f.source);c+=i.encode(h-l);l=h;c+=i.encode(f.originalLine-1-o);o=f.originalLine-1;c+=i.encode(f.originalColumn-n);n=f.originalColumn;if(f.name!=null){p=this._names.indexOf(f.name);c+=i.encode(p-a);a=p}}u+=c}return u};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents){return null}if(t!=null){e=s.relative(t,e)}var n=s.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){e.file=this._file}if(this._sourceRoot!=null){e.sourceRoot=this._sourceRoot}if(this._sourcesContents){e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)}return e};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};t.SourceMapGenerator=SourceMapGenerator},2616:(e,t,n)=>{var i=n(9425).SourceMapGenerator;var s=n(2344);var o=/(\r?\n)/;var a=10;var l="$$$isSourceNode$$$";function SourceNode(e,t,n,i,s){this.children=[];this.sourceContents={};this.line=e==null?null:e;this.column=t==null?null:t;this.source=n==null?null:n;this.name=s==null?null:s;this[l]=true;if(i!=null)this.add(i)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(e,t,n){var i=new SourceNode;var a=e.split(o);var l=0;var shiftNextLine=function(){var e=getNextLine();var t=getNextLine()||"";return e+t;function getNextLine(){return l=0;t--){this.prepend(e[t])}}else if(e[l]||typeof e==="string"){this.children.unshift(e)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.walk=function SourceNode_walk(e){var t;for(var n=0,i=this.children.length;n0){t=[];for(n=0;n{function getArg(e,t,n){if(t in e){return e[t]}else if(arguments.length===3){return n}else{throw new Error('"'+t+'" is a required argument.')}}t.getArg=getArg;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;var i=/^data:.+\,.+$/;function urlParse(e){var t=e.match(n);if(!t){return null}return{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}}t.urlParse=urlParse;function urlGenerate(e){var t="";if(e.scheme){t+=e.scheme+":"}t+="//";if(e.auth){t+=e.auth+"@"}if(e.host){t+=e.host}if(e.port){t+=":"+e.port}if(e.path){t+=e.path}return t}t.urlGenerate=urlGenerate;function normalize(e){var n=e;var i=urlParse(e);if(i){if(!i.path){return e}n=i.path}var s=t.isAbsolute(n);var o=n.split(/\/+/);for(var a,l=0,u=o.length-1;u>=0;u--){a=o[u];if(a==="."){o.splice(u,1)}else if(a===".."){l++}else if(l>0){if(a===""){o.splice(u+1,l);l=0}else{o.splice(u,2);l--}}}n=o.join("/");if(n===""){n=s?"/":"."}if(i){i.path=n;return urlGenerate(i)}return n}t.normalize=normalize;function join(e,t){if(e===""){e="."}if(t===""){t="."}var n=urlParse(t);var s=urlParse(e);if(s){e=s.path||"/"}if(n&&!n.scheme){if(s){n.scheme=s.scheme}return urlGenerate(n)}if(n||t.match(i)){return t}if(s&&!s.host&&!s.path){s.host=t;return urlGenerate(s)}var o=t.charAt(0)==="/"?t:normalize(e.replace(/\/+$/,"")+"/"+t);if(s){s.path=o;return urlGenerate(s)}return o}t.join=join;t.isAbsolute=function(e){return e.charAt(0)==="/"||n.test(e)};function relative(e,t){if(e===""){e="."}e=e.replace(/\/$/,"");var n=0;while(t.indexOf(e+"/")!==0){var i=e.lastIndexOf("/");if(i<0){return t}e=e.slice(0,i);if(e.match(/^([^\/]+:\/)?\/*$/)){return t}++n}return Array(n+1).join("../")+t.substr(e.length+1)}t.relative=relative;var s=function(){var e=Object.create(null);return!("__proto__"in e)}();function identity(e){return e}function toSetString(e){if(isProtoString(e)){return"$"+e}return e}t.toSetString=s?identity:toSetString;function fromSetString(e){if(isProtoString(e)){return e.slice(1)}return e}t.fromSetString=s?identity:fromSetString;function isProtoString(e){if(!e){return false}var t=e.length;if(t<9){return false}if(e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95){return false}for(var n=t-10;n>=0;n--){if(e.charCodeAt(n)!==36){return false}}return true}function compareByOriginalPositions(e,t,n){var i=strcmp(e.source,t.source);if(i!==0){return i}i=e.originalLine-t.originalLine;if(i!==0){return i}i=e.originalColumn-t.originalColumn;if(i!==0||n){return i}i=e.generatedColumn-t.generatedColumn;if(i!==0){return i}i=e.generatedLine-t.generatedLine;if(i!==0){return i}return strcmp(e.name,t.name)}t.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(e,t,n){var i=e.generatedLine-t.generatedLine;if(i!==0){return i}i=e.generatedColumn-t.generatedColumn;if(i!==0||n){return i}i=strcmp(e.source,t.source);if(i!==0){return i}i=e.originalLine-t.originalLine;if(i!==0){return i}i=e.originalColumn-t.originalColumn;if(i!==0){return i}return strcmp(e.name,t.name)}t.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(e,t){if(e===t){return 0}if(e===null){return 1}if(t===null){return-1}if(e>t){return 1}return-1}function compareByGeneratedPositionsInflated(e,t){var n=e.generatedLine-t.generatedLine;if(n!==0){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0){return n}n=strcmp(e.source,t.source);if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0){return n}return strcmp(e.name,t.name)}t.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;function parseSourceMapInput(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=parseSourceMapInput;function computeSourceURL(e,t,n){t=t||"";if(e){if(e[e.length-1]!=="/"&&t[0]!=="/"){e+="/"}t=e+t}if(n){var i=urlParse(n);if(!i){throw new Error("sourceMapURL could not be parsed")}if(i.path){var s=i.path.lastIndexOf("/");if(s>=0){i.path=i.path.substring(0,s+1)}}t=join(urlGenerate(i),t)}return normalize(t)}t.computeSourceURL=computeSourceURL},6594:(e,t,n)=>{t.SourceMapGenerator=n(9425).SourceMapGenerator;t.SourceMapConsumer=n(5155).SourceMapConsumer;t.SourceNode=n(2616).SourceNode},2372:(e,t,n)=>{var i=n(1620);var s=n(2172);function valid(e){try{i(e);return true}catch(e){return false}}var o=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["-License",""]];var a=0;var l=1;var u=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){if(e.indexOf("3.0")!==-1){return e+"-or-later"}else{return e+"-only"}},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}];var c=s.map((function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]})).reduce((function(e,t){var n=t[1];e[n]=e[n]||[];e[n].push(t[0]);return e}),{});var f=Object.keys(c).map((function makeEntries(e){return[e,c[e]]})).filter((function identifySoleVersions(e){return e[1].length===1&&e[0]!==null&&e[0]!=="APL"})).map((function createLastResorts(e){return[e[0],e[1][0]]}));c=undefined;var p=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(f);var h=0;var d=1;var validTransformation=function(e){for(var t=0;t-1){return i[d]}}return null};var anyCorrection=function(e,t){for(var n=0;n-1){var u=e.replace(s,i[l]);var c=t(u);if(c!==null){return c}}}return null};e.exports=function(e,t){t=t||{};var n=t.upgrade===undefined?true:!!t.upgrade;function postprocess(e){return n?upgradeGPLs(e):e}var i=typeof e==="string"&&e.trim().length!==0;if(!i){throw Error("Invalid argument. Expected non-empty string.")}e=e.trim();if(valid(e)){return postprocess(e)}var s=e.replace(/\+$/,"").trim();if(valid(s)){return postprocess(s)}var o=validTransformation(e);if(o!==null){return postprocess(o)}o=anyCorrection(e,(function(e){if(valid(e)){return e}return validTransformation(e)}));if(o!==null){return postprocess(o)}o=validLastResort(e);if(o!==null){return postprocess(o)}o=anyCorrection(e,validLastResort);if(o!==null){return postprocess(o)}return null};function upgradeGPLs(e){if(["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1){return e+"-only"}else if(["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1){return e.replace(/\+$/,"-or-later")}else if(["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1){return e+"-or-later"}else{return e}}},1620:(e,t,n)=>{"use strict";var i=n(7380);var s=n(9868);e.exports=function(e){return s(i(e))}},9868:e=>{"use strict";e.exports=function(e){var t=0;function hasMore(){return t{"use strict";var i=[].concat(n(2172)).concat(n(4185));var s=n(9752);e.exports=function(e){var t=0;function hasMore(){return t1&&e[t-2]===" "){throw new Error("Space before `+`")}return n&&{type:"OPERATOR",string:n}}function idstring(){return read(/[A-Za-z0-9-.]+/)}function expectIdstring(){var e=idstring();if(!e){throw new Error("Expected idstring at offset "+t)}return e}function documentRef(){if(read("DocumentRef-")){var e=expectIdstring();return{type:"DOCUMENTREF",string:e}}}function licenseRef(){if(read("LicenseRef-")){var e=expectIdstring();return{type:"LICENSEREF",string:e}}}function identifier(){var e=t;var n=idstring();if(i.indexOf(n)!==-1){return{type:"LICENSE",string:n}}else if(s.indexOf(n)!==-1){return{type:"EXCEPTION",string:n}}t=e}function parseToken(){return operator()||documentRef()||licenseRef()||identifier()}var n=[];while(hasMore()){skipWhitespace();if(!hasMore()){break}var o=parseToken();if(!o){throw new Error("Unexpected `"+e[t]+"` at offset "+t)}n.push(o)}return n}},5e3:(e,t,n)=>{"use strict";const{Transform:i}=n(1642);const{StringDecoder:s}=n(4304);const o=Symbol("last");const a=Symbol("decoder");function transform(e,t,n){var i;if(this.overflow){var s=this[a].write(e);i=s.split(this.matcher);if(i.length===1)return n();i.shift();this.overflow=false}else{this[o]+=this[a].write(e);i=this[o].split(this.matcher)}this[o]=i.pop();for(var l=0;lthis.maxLength;if(this.overflow&&!this.skipOverflow)return n(new Error("maximum buffer reached"));n()}function flush(e){this[o]+=this[a].end();if(this[o]){try{push(this,this.mapper(this[o]))}catch(t){return e(t)}}e()}function push(e,t){if(t!==undefined){e.push(t)}}function noop(e){return e}function split(e,t,n){e=e||/\r?\n/;t=t||noop;n=n||{};switch(arguments.length){case 1:if(typeof e==="function"){t=e;e=/\r?\n/}else if(typeof e==="object"&&!(e instanceof RegExp)){n=e;e=/\r?\n/}break;case 2:if(typeof e==="function"){n=t;t=e;e=/\r?\n/}else if(typeof t==="object"){n=t;t=noop}}n=Object.assign({},n);n.transform=transform;n.flush=flush;n.readableObjectMode=true;const l=new i(n);l[o]="";l[a]=new s("utf8");l.matcher=e;l.mapper=t;l.maxLength=n.maxLength;l.skipOverflow=n.skipOverflow;l.overflow=false;return l}e.exports=split},4841:(e,t,n)=>{"use strict";var i=n(1867).Buffer;var s=i.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(i.isEncoding===s||!s(e)))throw new Error("Unknown encoding: "+e);return t||e}t.s=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=i.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var n;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";n=this.lastNeed;this.lastNeed=0}else{n=0}if(n>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,n){var i=t.length-1;if(i=0){if(s>0)e.lastNeed=s-1;return s}if(--i=0){if(s>0)e.lastNeed=s-2;return s}if(--i=0){if(s>0){if(s===2)s=0;else e.lastNeed=s-3}return s}return 0}function utf8CheckExtraBytes(e,t,n){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var n=utf8CheckExtraBytes(this,e,t);if(n!==undefined)return n;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var n=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);e.copy(this.lastChar,0,i);return e.toString("utf8",t,i)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return n.slice(0,-1)}}return n}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function base64Text(e,t){var n=(e.length-t)%3;if(n===0)return e.toString("base64",t);this.lastNeed=3-n;this.lastTotal=3;if(n===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-n)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},8551:e=>{"use strict";e.exports=e=>{if(typeof e!=="string"){throw new TypeError("Expected a string, got "+typeof e)}if(e.charCodeAt(0)===65279){return e.slice(1)}return e}},8180:(e,t,n)=>{const{Transform:i}=n(1642);function inherits(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function through2(e){return(t,n,i)=>{if(typeof t==="function"){i=n;n=t;t={}}if(typeof n!=="function"){n=(e,t,n)=>n(null,e)}if(typeof i!=="function"){i=null}return e(t,n,i)}}const s=through2(((e,t,n)=>{const s=new i(e);s._transform=t;if(n){s._flush=n}return s}));const o=through2(((e,t,n)=>{function Through2(s){if(!(this instanceof Through2)){return new Through2(s)}this.options=Object.assign({},e,s);i.call(this,this.options);this._transform=t;if(n){this._flush=n}}inherits(Through2,i);return Through2}));const a=through2((function(e,t,n){const s=new i(Object.assign({objectMode:true,highWaterMark:16},e));s._transform=t;if(n){s._flush=n}return s}));e.exports=s;e.exports.ctor=o;e.exports.obj=a},4294:(e,t,n)=>{e.exports=n(4219)},4219:(e,t,n)=>{"use strict";var i=n(1631);var s=n(4016);var o=n(8605);var a=n(7211);var l=n(8614);var u=n(2357);var c=n(1669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=a.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=a.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,n,i,s){var o=toOptions(n,i,s);for(var a=0,l=t.requests.length;a=this.maxSockets){s.requests.push(o);return}s.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){s.emit("free",t,o)}function onCloseOrRemove(e){s.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var n=this;var i={};n.sockets.push(i);var s=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}f("making CONNECT request");var o=n.request(s);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick((function(){onConnect(e,t,n)}))}function onConnect(s,a,l){o.removeAllListeners();a.removeAllListeners();if(s.statusCode!==200){f("tunneling socket could not be established, statusCode=%d",s.statusCode);a.destroy();var u=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);u.code="ECONNRESET";e.request.emit("error",u);n.removeSocket(i);return}if(l.length>0){f("got illegal response body from proxy");a.destroy();var u=new Error("got illegal response body from proxy");u.code="ECONNRESET";e.request.emit("error",u);n.removeSocket(i);return}f("tunneling connection has established");n.sockets[n.sockets.indexOf(i)]=a;return t(a)}function onError(t){o.removeAllListeners();f("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var s=new Error("tunneling socket could not be established, "+"cause="+t.message);s.code="ECONNRESET";e.request.emit("error",s);n.removeSocket(i)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var n=this.requests.shift();if(n){this.createSocket(n,(function(e){n.request.onSocket(e)}))}};function createSecureSocket(e,t){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,(function(i){var o=e.request.getHeader("host");var a=mergeOptions({},n.options,{socket:i,servername:o?o.replace(/:.*$/,""):e.host});var l=s.connect(0,a);n.sockets[n.sockets.indexOf(i)]=l;t(l)}))}function toOptions(e,t,n){if(typeof e==="string"){return{host:e,port:t,localAddress:n}}return e}function mergeOptions(e){for(var t=1,n=arguments.length;t{var n=void 0;var i=1e5;var s=function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;return{Class:function(t){return e.call(t).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,n){return t.call(e,n)},IsCallable:function(e){return typeof e==="function"},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0}}}();var o=Math.LN2,a=Math.abs,l=Math.floor,u=Math.log,c=Math.min,f=Math.pow,p=Math.round;function configureProperties(e){if(d&&h){var t=d(e),n;for(n=0;ni)throw new RangeError("Array too large for polyfill");function makeArrayAccessor(t){h(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:true,configurable:false})}var t;for(t=0;t>n}function as_unsigned(e,t){var n=32-t;return e<>>n}function packI8(e){return[e&255]}function unpackI8(e){return as_signed(e[0],8)}function packU8(e){return[e&255]}function unpackU8(e){return as_unsigned(e[0],8)}function packU8Clamped(e){e=p(Number(e));return[e<0?0:e>255?255:e&255]}function packI16(e){return[e>>8&255,e&255]}function unpackI16(e){return as_signed(e[0]<<8|e[1],16)}function packU16(e){return[e>>8&255,e&255]}function unpackU16(e){return as_unsigned(e[0]<<8|e[1],16)}function packI32(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function unpackI32(e){return as_signed(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function packU32(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function unpackU32(e){return as_unsigned(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function packIEEE754(e,t,n){var i=(1<.5)return t+1;return t%2?t+1:t}if(e!==e){p=(1<=f(2,1-i)){p=c(l(u(e)/o),1023);h=roundToEven(e/f(2,p)*f(2,n));if(h/f(2,n)>=2){p=p+1;h=1}if(p>i){p=(1<>1}}i.reverse();l=i.join("");u=(1<0){return c*f(2,p-u)*(1+h/f(2,n))}else if(h!==0){return c*f(2,-(u-1))*(h/f(2,n))}else{return c<0?-0:0}}function unpackF64(e){return unpackIEEE754(e,11,52)}function packF64(e){return packIEEE754(e,11,52)}function unpackF32(e){return unpackIEEE754(e,8,23)}function packF32(e){return packIEEE754(e,8,23)}(function(){var e=function ArrayBuffer(e){e=s.ToInt32(e);if(e<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");this.byteLength=e;this._bytes=[];this._bytes.length=e;var t;for(t=0;tthis.buffer.byteLength){throw new RangeError("byteOffset out of range")}if(this.byteOffset%this.BYTES_PER_ELEMENT){throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.")}if(arguments.length<3){this.byteLength=this.buffer.byteLength-this.byteOffset;if(this.byteLength%this.BYTES_PER_ELEMENT){throw new RangeError("length of buffer minus byteOffset not a multiple of the element size")}this.length=this.byteLength/this.BYTES_PER_ELEMENT}else{this.length=s.ToUint32(i);this.byteLength=this.length*this.BYTES_PER_ELEMENT}if(this.byteOffset+this.byteLength>this.buffer.byteLength){throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}}else{throw new TypeError("Unexpected argument type(s)")}this.constructor=l;configureProperties(this);makeArrayAccessors(this)};l.prototype=new i;l.prototype.BYTES_PER_ELEMENT=t;l.prototype._pack=o;l.prototype._unpack=a;l.BYTES_PER_ELEMENT=t;l.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");e=s.ToUint32(e);if(e>=this.length){return n}var t=[],i,o;for(i=0,o=this.byteOffset+e*this.BYTES_PER_ELEMENT;i=this.length){return n}var i=this._pack(t),o,a;for(o=0,a=this.byteOffset+e*this.BYTES_PER_ELEMENT;othis.length){throw new RangeError("Offset plus length of array is out of range")}f=this.byteOffset+o*this.BYTES_PER_ELEMENT;p=n.length*this.BYTES_PER_ELEMENT;if(n.buffer===this.buffer){h=[];for(l=0,u=n.byteOffset;lthis.length){throw new RangeError("Offset plus length of array is out of range")}for(l=0;ln?n:e}e=s.ToInt32(e);t=s.ToInt32(t);if(arguments.length<1){e=0}if(arguments.length<2){t=this.length}if(e<0){e=this.length+e}if(t<0){t=this.length+t}e=clamp(e,0,this.length);t=clamp(t,0,this.length);var n=t-e;if(n<0){n=0}return new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,n)};return l}var o=makeConstructor(1,packI8,unpackI8);var a=makeConstructor(1,packU8,unpackU8);var l=makeConstructor(1,packU8Clamped,unpackU8);var u=makeConstructor(2,packI16,unpackI16);var c=makeConstructor(2,packU16,unpackU16);var f=makeConstructor(4,packI32,unpackI32);var p=makeConstructor(4,packU32,unpackU32);var h=makeConstructor(4,packF32,unpackF32);var d=makeConstructor(8,packF64,unpackF64);t.iq=t.iq||o;t.U2=t.U2||a;t.we=t.we||l;t.M2=t.M2||u;t.HA=t.HA||c;t.ZV=t.ZV||f;t._R=t._R||p;t.$L=t.$L||h;t.I=t.I||d})();(function(){function r(e,t){return s.IsCallable(e.get)?e.get(t):e[t]}var e=function(){var e=new t.HA([4660]),n=new t.U2(e.buffer);return r(n,0)===18}();var n=function DataView(e,n,i){if(arguments.length===0){e=new t.eT(0)}else if(!(e instanceof t.eT||s.Class(e)==="ArrayBuffer")){throw new TypeError("TypeError")}this.buffer=e||new t.eT(0);this.byteOffset=s.ToUint32(n);if(this.byteOffset>this.buffer.byteLength){throw new RangeError("byteOffset out of range")}if(arguments.length<3){this.byteLength=this.buffer.byteLength-this.byteOffset}else{this.byteLength=s.ToUint32(i)}if(this.byteOffset+this.byteLength>this.buffer.byteLength){throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}configureProperties(this)};function makeGetter(n){return function(i,o){i=s.ToUint32(i);if(i+n.BYTES_PER_ELEMENT>this.byteLength){throw new RangeError("Array index out of range")}i+=this.byteOffset;var a=new t.U2(this.buffer,i,n.BYTES_PER_ELEMENT),l=[],u;for(u=0;uthis.byteLength){throw new RangeError("Array index out of range")}var l=new n([o]),u=new t.U2(l.buffer),c=[],f,p;for(f=0;f{e.exports=n(1669).deprecate},2524:(e,t,n)=>{var i=n(1620);var s=n(2372);var o="license should be "+'a valid SPDX license expression (without "LicenseRef"), '+'"UNLICENSED", or '+'"SEE LICENSE IN "';var a=/^SEE LICEN[CS]E IN (.+)$/;function startsWith(e,t){return t.slice(0,e.length)===e}function usesLicenseRef(e){if(e.hasOwnProperty("license")){var t=e.license;return startsWith("LicenseRef",t)||startsWith("DocumentRef",t)}else{return usesLicenseRef(e.left)||usesLicenseRef(e.right)}}e.exports=function(e){var t;try{t=i(e)}catch(t){var n;if(e==="UNLICENSED"||e==="UNLICENCED"){return{validForOldPackages:true,validForNewPackages:true,unlicensed:true}}else if(n=a.exec(e)){return{validForOldPackages:true,validForNewPackages:true,inFile:n[1]}}else{var l={validForOldPackages:false,validForNewPackages:false,warnings:[o]};if(e.trim().length!==0){var u=s(e);if(u){l.warnings.push('license is similar to the valid expression "'+u+'"')}}return l}}if(usesLicenseRef(t)){return{validForNewPackages:false,validForOldPackages:false,spdx:true,warnings:[o]}}else{return{validForNewPackages:true,validForOldPackages:true,spdx:true}}}},4091:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},665:(e,t,n)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var n=0,i=arguments.length;n1){n=t}else if(this.head){i=this.head.next;n=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=0;i!==null;s++){n=e(n,i.value,s);i=i.next}return n};Yallist.prototype.reduceReverse=function(e,t){var n;var i=this.tail;if(arguments.length>1){n=t}else if(this.tail){i=this.tail.prev;n=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=this.length-1;i!==null;s--){n=e(n,i.value,s);i=i.prev}return n};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,n=this.head;n!==null;t++){e[t]=n.value;n=n.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,n=this.tail;n!==null;t++){e[t]=n.value;n=n.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var n=new Yallist;if(tthis.length){t=this.length}for(var i=0,s=this.head;s!==null&&ithis.length){t=this.length}for(var i=this.length,s=this.tail;s!==null&&i>t;i--){s=s.prev}for(;s!==null&&i>e;i--,s=s.prev){n.push(s.value)}return n};Yallist.prototype.splice=function(e,t,...n){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var i=0,s=this.head;s!==null&&i{"use strict";var i=n(5215);var s=n(4227);var o=n(8021);const a={anchorPrefix:"a",customTags:null,indent:2,indentSeq:true,keepCstNodes:false,keepNodeTypes:true,keepBlobsInJSON:true,mapAsMap:false,maxAliasCount:100,prettyErrors:false,simpleKeys:false,version:"1.2"};const l={get binary(){return s.binaryOptions},set binary(e){Object.assign(s.binaryOptions,e)},get bool(){return s.boolOptions},set bool(e){Object.assign(s.boolOptions,e)},get int(){return s.intOptions},set int(e){Object.assign(s.intOptions,e)},get null(){return s.nullOptions},set null(e){Object.assign(s.nullOptions,e)},get str(){return s.strOptions},set str(e){Object.assign(s.strOptions,e)}};const u={"1.0":{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:i.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:i.defaultTagPrefix}]},1.2:{schema:"core",merge:false,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:i.defaultTagPrefix}]}};function stringifyTag(e,t){if((e.version||e.options.version)==="1.0"){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>t.indexOf(e.prefix)===0));if(!n){const i=e.getDefaults().tagPrefixes;n=i&&i.find((e=>t.indexOf(e.prefix)===0))}if(!n)return t[0]==="!"?t:`!<${t}>`;const i=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+i}function getTagObject(e,t){if(t instanceof s.Alias)return s.Alias;if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))||n[0]}let n,i;if(t instanceof s.Scalar){i=t.value;const s=e.filter((e=>e.identify&&e.identify(i)||e.class&&i instanceof e.class));n=s.find((e=>e.format===t.format))||s.find((e=>!e.format))}else{i=t;n=e.find((e=>e.nodeClass&&i instanceof e.nodeClass))}if(!n){const e=i&&i.constructor?i.constructor.name:typeof i;throw new Error(`Tag not resolved for ${e} value`)}return n}function stringifyProps(e,t,{anchors:n,doc:i}){const s=[];const o=i.anchors.getName(e);if(o){n[o]=e;s.push(`&${o}`)}if(e.tag){s.push(stringifyTag(i,e.tag))}else if(!t.default){s.push(stringifyTag(i,t.tag))}return s.join(" ")}function stringify(e,t,n,i){const{anchors:o,schema:a}=t.doc;let l;if(!(e instanceof s.Node)){const t={aliasNodes:[],onTagObj:e=>l=e,prevObjects:new Map};e=a.createNode(e,true,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=o.getName(e.source);if(!t){t=o.newName();o.map[t]=e.source}}}if(e instanceof s.Pair)return e.toString(t,n,i);if(!l)l=getTagObject(a.tags,e);const u=stringifyProps(e,l,t);if(u.length>0)t.indentAtStart=(t.indentAtStart||0)+u.length+1;const c=typeof l.stringify==="function"?l.stringify(e,t,n,i):e instanceof s.Scalar?s.stringifyString(e,t,n,i):e.toString(t,n,i);if(!u)return c;return e instanceof s.Scalar||c[0]==="{"||c[0]==="["?`${u} ${c}`:`${u}\n${t.indent}${c}`}class Anchors{static validAnchorNode(e){return e instanceof s.Scalar||e instanceof s.YAMLSeq||e instanceof s.YAMLMap}constructor(e){i._defineProperty(this,"map",Object.create(null));this.prefix=e}createAlias(e,t){this.setAnchor(e,t);return new s.Alias(e)}createMergePair(...e){const t=new s.Merge;t.value.items=e.map((e=>{if(e instanceof s.Alias){if(e.source instanceof s.YAMLMap)return e}else if(e instanceof s.YAMLMap){return this.createAlias(e)}throw new Error("Merge sources must be Map nodes or their Aliases")}));return t}getName(e){const{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){if(!e)e=this.prefix;const t=Object.keys(this.map);for(let n=1;true;++n){const i=`${e}${n}`;if(!t.includes(i))return i}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved}));t.forEach((e=>{e.source=e.source.resolved}));delete this._cstAliases}setAnchor(e,t){if(e!=null&&!Anchors.validAnchorNode(e)){throw new Error("Anchors may only be set for Scalar, Seq and Map nodes")}if(t&&/[\x00-\x19\s,[\]{}]/.test(t)){throw new Error("Anchor names must not contain whitespace or control characters")}const{map:n}=this;const i=e&&Object.keys(n).find((t=>n[t]===e));if(i){if(!t){return i}else if(i!==t){delete n[i];n[t]=e}}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}const visit=(e,t)=>{if(e&&typeof e==="object"){const{tag:n}=e;if(e instanceof s.Collection){if(n)t[n]=true;e.items.forEach((e=>visit(e,t)))}else if(e instanceof s.Pair){visit(e.key,t);visit(e.value,t)}else if(e instanceof s.Scalar){if(n)t[n]=true}}return t};const listTagNames=e=>Object.keys(visit(e,{}));function parseContents(e,t){const n={before:[],after:[]};let o=undefined;let a=false;for(const l of t){if(l.valueRange){if(o!==undefined){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new i.YAMLSyntaxError(l,t));break}const t=s.resolveNode(e,l);if(a){t.spaceBefore=true;a=false}o=t}else if(l.comment!==null){const e=o===undefined?n.before:n.after;e.push(l.comment)}else if(l.type===i.Type.BLANK_LINE){a=true;if(o===undefined&&n.before.length>0&&!e.commentBefore){e.commentBefore=n.before.join("\n");n.before=[]}}}e.contents=o||null;if(!o){e.comment=n.before.concat(n.after).join("\n")||null}else{const t=n.before.join("\n");if(t){const e=o instanceof s.Collection&&o.items[0]?o.items[0]:o;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=n.after.join("\n")||null}}function resolveTagDirective({tagPrefixes:e},t){const[n,s]=t.parameters;if(!n||!s){const e="Insufficient parameters given for %TAG directive";throw new i.YAMLSemanticError(t,e)}if(e.some((e=>e.handle===n))){const e="The %TAG directive must only be given at most once per handle in the same document.";throw new i.YAMLSemanticError(t,e)}return{handle:n,prefix:s}}function resolveYamlDirective(e,t){let[n]=t.parameters;if(t.name==="YAML:1.0")n="1.0";if(!n){const e="Insufficient parameters given for %YAML directive";throw new i.YAMLSemanticError(t,e)}if(!u[n]){const s=e.version||e.options.version;const o=`Document will be parsed as YAML ${s} rather than YAML ${n}`;e.warnings.push(new i.YAMLWarning(t,o))}return n}function parseDirectives(e,t,n){const s=[];let o=false;for(const n of t){const{comment:t,name:a}=n;switch(a){case"TAG":try{e.tagPrefixes.push(resolveTagDirective(e,n))}catch(t){e.errors.push(t)}o=true;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new i.YAMLSemanticError(n,t))}try{e.version=resolveYamlDirective(e,n)}catch(t){e.errors.push(t)}o=true;break;default:if(a){const t=`YAML only supports %TAG and %YAML directives, and not %${a}`;e.warnings.push(new i.YAMLWarning(n,t))}}if(t)s.push(t)}if(n&&!o&&"1.1"===(e.version||n.version||e.options.version)){const copyTagPrefix=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=n.tagPrefixes.map(copyTagPrefix);e.version=n.version}e.commentBefore=s.join("\n")||null}function assertCollection(e){if(e instanceof s.Collection)return true;throw new Error("Expected a YAML collection as document contents")}class Document{constructor(e){this.anchors=new Anchors(e.anchorPrefix);this.commentBefore=null;this.comment=null;this.contents=null;this.directivesEndMarker=null;this.errors=[];this.options=e;this.schema=null;this.tagPrefixes=[];this.version=null;this.warnings=[]}add(e){assertCollection(this.contents);return this.contents.add(e)}addIn(e,t){assertCollection(this.contents);this.contents.addIn(e,t)}delete(e){assertCollection(this.contents);return this.contents.delete(e)}deleteIn(e){if(s.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}assertCollection(this.contents);return this.contents.deleteIn(e)}getDefaults(){return Document.defaults[this.version]||Document.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof s.Collection?this.contents.get(e,t):undefined}getIn(e,t){if(s.isEmptyPath(e))return!t&&this.contents instanceof s.Scalar?this.contents.value:this.contents;return this.contents instanceof s.Collection?this.contents.getIn(e,t):undefined}has(e){return this.contents instanceof s.Collection?this.contents.has(e):false}hasIn(e){if(s.isEmptyPath(e))return this.contents!==undefined;return this.contents instanceof s.Collection?this.contents.hasIn(e):false}set(e,t){assertCollection(this.contents);this.contents.set(e,t)}setIn(e,t){if(s.isEmptyPath(e))this.contents=t;else{assertCollection(this.contents);this.contents.setIn(e,t)}}setSchema(e,t){if(!e&&!t&&this.schema)return;if(typeof e==="number")e=e.toFixed(1);if(e==="1.0"||e==="1.1"||e==="1.2"){if(this.version)this.version=e;else this.options.version=e;delete this.options.schema}else if(e&&typeof e==="string"){this.options.schema=e}if(Array.isArray(t))this.options.customTags=t;const n=Object.assign({},this.getDefaults(),this.options);this.schema=new o.Schema(n)}parse(e,t){if(this.options.keepCstNodes)this.cstNode=e;if(this.options.keepNodeTypes)this.type="DOCUMENT";const{directives:n=[],contents:s=[],directivesEndMarker:o,error:a,valueRange:l}=e;if(a){if(!a.source)a.source=this;this.errors.push(a)}parseDirectives(this,n,t);if(o)this.directivesEndMarker=true;this.range=l?[l.start,l.end]:null;this.setSchema();this.anchors._cstAliases=[];parseContents(this,s);this.anchors.resolveNodes();if(this.options.prettyErrors){for(const e of this.errors)if(e instanceof i.YAMLError)e.makePretty();for(const e of this.warnings)if(e instanceof i.YAMLError)e.makePretty()}return this}listNonDefaultTags(){return listTagNames(this.contents).filter((e=>e.indexOf(o.Schema.defaultPrefix)!==0))}setTagPrefix(e,t){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find((t=>t.handle===e));if(n)n.prefix=t;else this.tagPrefixes.push({handle:e,prefix:t})}else{this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}}toJSON(e,t){const{keepBlobsInJSON:n,mapAsMap:i,maxAliasCount:o}=this.options;const a=n&&(typeof e!=="string"||!(this.contents instanceof s.Scalar));const l={doc:this,indentStep:" ",keep:a,mapAsMap:a&&!!i,maxAliasCount:o,stringify:stringify};const u=Object.keys(this.anchors.map);if(u.length>0)l.anchors=new Map(u.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}])));const c=s.toJSON(this.contents,e,l);if(typeof t==="function"&&l.anchors)for(const{count:e,res:n}of l.anchors.values())t(n,e);return c}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const t=[];let n=false;if(this.version){let e="%YAML 1.2";if(this.schema.name==="yaml-1.1"){if(this.version==="1.0")e="%YAML:1.0";else if(this.version==="1.1")e="%YAML 1.1"}t.push(e);n=true}const i=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:s})=>{if(i.some((e=>e.indexOf(s)===0))){t.push(`%TAG ${e} ${s}`);n=true}}));if(n||this.directivesEndMarker)t.push("---");if(this.commentBefore){if(n||!this.directivesEndMarker)t.unshift("");t.unshift(this.commentBefore.replace(/^/gm,"#"))}const o={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:stringify};let a=false;let l=null;if(this.contents){if(this.contents instanceof s.Node){if(this.contents.spaceBefore&&(n||this.directivesEndMarker))t.push("");if(this.contents.commentBefore)t.push(this.contents.commentBefore.replace(/^/gm,"#"));o.forceBlockIndent=!!this.comment;l=this.contents.comment}const e=l?null:()=>a=true;const i=stringify(this.contents,o,(()=>l=null),e);t.push(s.addComment(i,"",l))}else if(this.contents!==undefined){t.push(stringify(this.contents,o))}if(this.comment){if((!a||l)&&t[t.length-1]!=="")t.push("");t.push(this.comment.replace(/^/gm,"#"))}return t.join("\n")+"\n"}}i._defineProperty(Document,"defaults",u);t.Document=Document;t.defaultOptions=a;t.scalarOptions=l},5215:(e,t)=>{"use strict";const n={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};const i={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};const s="tag:yaml.org,2002:";const o={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function findLineStarts(e){const t=[0];let n=e.indexOf("\n");while(n!==-1){n+=1;t.push(n);n=e.indexOf("\n",n)}return t}function getSrcInfo(e){let t,n;if(typeof e==="string"){t=findLineStarts(e);n=e}else{if(Array.isArray(e))e=e[0];if(e&&e.context){if(!e.lineStarts)e.lineStarts=findLineStarts(e.context.src);t=e.lineStarts;n=e.context.src}}return{lineStarts:t,src:n}}function getLinePos(e,t){if(typeof e!=="number"||e<0)return null;const{lineStarts:n,src:i}=getSrcInfo(t);if(!n||!i||e>i.length)return null;for(let t=0;t=1)||e>n.length)return null;const s=n[e-1];let o=n[e];while(o&&o>s&&i[o-1]==="\n")--o;return i.slice(s,o)}function getPrettyContext({start:e,end:t},n,i=80){let s=getLine(e.line,n);if(!s)return null;let{col:o}=e;if(s.length>i){if(o<=i-10){s=s.substr(0,i-1)+"…"}else{const e=Math.round(i/2);if(s.length>o+e)s=s.substr(0,o+e-1)+"…";o-=s.length-i;s="…"+s.substr(1-i)}}let a=1;let l="";if(t){if(t.line===e.line&&o+(t.col-e.col)<=i+1){a=t.col-e.col}else{a=Math.min(s.length+1,i)-o;l="…"}}const u=o>1?" ".repeat(o-1):"";const c="^".repeat(a);return`${s}\n${u}${c}${l}`}class Range{static copy(e){return new Range(e.start,e.end)}constructor(e,t){this.start=e;this.end=t||e}isEmpty(){return typeof this.start!=="number"||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:i}=this;if(e.length===0||i<=e[0]){this.origStart=n;this.origEnd=i;return t}let s=t;while(sn)break;else++s}this.origStart=n+s;const o=s;while(s=i)break;else++s}this.origEnd=i+s;return o}}class Node{static addStringTerminator(e,t,n){if(n[n.length-1]==="\n")return n;const i=Node.endOfWhiteSpace(e,t);return i>=e.length||e[i]==="\n"?n+"\n":n}static atDocumentBoundary(e,t,i){const s=e[t];if(!s)return true;const o=e[t-1];if(o&&o!=="\n")return false;if(i){if(s!==i)return false}else{if(s!==n.DIRECTIVES_END&&s!==n.DOCUMENT_END)return false}const a=e[t+1];const l=e[t+2];if(a!==s||l!==s)return false;const u=e[t+3];return!u||u==="\n"||u==="\t"||u===" "}static endOfIdentifier(e,t){let n=e[t];const i=n==="<";const s=i?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];while(n&&s.indexOf(n)===-1)n=e[t+=1];if(i&&n===">")t+=1;return t}static endOfIndent(e,t){let n=e[t];while(n===" ")n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];while(n&&n!=="\n")n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];while(n==="\t"||n===" ")n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if(n==="\n")return t;while(n&&n!=="\n")n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const i=Node.endOfIndent(e,n);if(i>n+t){return i}else{const t=Node.endOfWhiteSpace(e,i);const n=e[t];if(!n||n==="\n")return t}return null}static atBlank(e,t,n){const i=e[t];return i==="\n"||i==="\t"||i===" "||n&&!i}static nextNodeIsIndented(e,t,n){if(!e||t<0)return false;if(t>0)return true;return n&&e==="-"}static normalizeOffset(e,t){const n=e[t];return!n?t:n!=="\n"&&e[t-1]==="\n"?t-1:Node.endOfWhiteSpace(e,t)}static foldNewline(e,t,n){let i=0;let s=false;let o="";let a=e[t+1];while(a===" "||a==="\t"||a==="\n"){switch(a){case"\n":i=0;t+=1;o+="\n";break;case"\t":if(i<=n)s=true;t=Node.endOfWhiteSpace(e,t+2)-1;break;case" ":i+=1;t+=1;break}a=e[t+1]}if(!o)o=" ";if(a&&i<=n)s=true;return{fold:o,offset:t,error:s}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:true});this.error=null;this.range=null;this.valueRange=null;this.props=t||[];this.type=e;this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:i}=this.context;const s=this.props[e];return s&&i[s.start]===t?i.slice(s.start+(n?1:0),s.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return false;if(!this.valueRange)return false;const{end:n}=this.valueRange;return e!==n||Node.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tn.setOrigRange(e,t)));return t}toString(){const{context:{src:e},range:t,value:n}=this;if(n!=null)return n;const i=e.slice(t.start,t.end);return Node.addStringTerminator(e,t.end,i)}}class YAMLError extends Error{constructor(e,t,n){if(!n||!(t instanceof Node))throw new Error(`Invalid arguments for new ${e}`);super();this.name=e;this.message=n;this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if(typeof this.offset==="number"){this.range=new Range(this.offset,this.offset+1);const t=e&&getLinePos(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else{this.range=this.source.range;this.linePos=this.source.rangeAsLinePos}if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;const i=e&&getPrettyContext(this.linePos,e);if(i)this.message+=`:\n\n${i}\n`}delete this.source}}class YAMLReferenceError extends YAMLError{constructor(e,t){super("YAMLReferenceError",e,t)}}class YAMLSemanticError extends YAMLError{constructor(e,t){super("YAMLSemanticError",e,t)}}class YAMLSyntaxError extends YAMLError{constructor(e,t){super("YAMLSyntaxError",e,t)}}class YAMLWarning extends YAMLError{constructor(e,t){super("YAMLWarning",e,t)}}function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}class PlainValue extends Node{static endOfLine(e,t,n){let i=e[t];let s=t;while(i&&i!=="\n"){if(n&&(i==="["||i==="]"||i==="{"||i==="}"||i===","))break;const t=e[s+1];if(i===":"&&(!t||t==="\n"||t==="\t"||t===" "||n&&t===","))break;if((i===" "||i==="\t")&&t==="#")break;s+=1;i=t}return s}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let i=n[t-1];while(eo?n.slice(o,i+1):e}else{s+=e}}const o=n[e];switch(o){case"\t":{const e="Plain value cannot start with a tab character";const t=[new YAMLSemanticError(this,e)];return{errors:t,str:s}}case"@":case"`":{const e=`Plain value cannot start with reserved character ${o}`;const t=[new YAMLSemanticError(this,e)];return{errors:t,str:s}}default:return s}}parseBlockValue(e){const{indent:t,inFlow:n,src:i}=this.context;let s=e;let o=e;for(let e=i[s];e==="\n";e=i[s]){if(Node.atDocumentBoundary(i,s+1))break;const e=Node.endOfBlockIndent(i,t,s+1);if(e===null||i[e]==="#")break;if(i[e]==="\n"){s=e}else{o=PlainValue.endOfLine(i,e,n);s=o}}if(this.valueRange.isEmpty())this.valueRange.start=e;this.valueRange.end=o;return o}parse(e,t){this.context=e;const{inFlow:n,src:i}=e;let s=t;const o=i[s];if(o&&o!=="#"&&o!=="\n"){s=PlainValue.endOfLine(i,t,n)}this.valueRange=new Range(t,s);s=Node.endOfWhiteSpace(i,s);s=this.parseComment(s);if(!this.hasComment||this.valueRange.isEmpty()){s=this.parseBlockValue(s)}return s}}t.Char=n;t.Node=Node;t.PlainValue=PlainValue;t.Range=Range;t.Type=i;t.YAMLError=YAMLError;t.YAMLReferenceError=YAMLReferenceError;t.YAMLSemanticError=YAMLSemanticError;t.YAMLSyntaxError=YAMLSyntaxError;t.YAMLWarning=YAMLWarning;t._defineProperty=_defineProperty;t.defaultTagPrefix=s;t.defaultTags=o},8021:(e,t,n)=>{"use strict";var i=n(5215);var s=n(4227);var o=n(6003);function createMap(e,t,n){const i=new s.YAMLMap(e);if(t instanceof Map){for(const[s,o]of t)i.items.push(e.createPair(s,o,n))}else if(t&&typeof t==="object"){for(const s of Object.keys(t))i.items.push(e.createPair(s,t[s],n))}if(typeof e.sortMapEntries==="function"){i.items.sort(e.sortMapEntries)}return i}const a={createNode:createMap,default:true,nodeClass:s.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:s.resolveMap};function createSeq(e,t,n){const i=new s.YAMLSeq(e);if(t&&t[Symbol.iterator]){for(const s of t){const t=e.createNode(s,n.wrapScalars,null,n);i.items.push(t)}}return i}const l={createNode:createSeq,default:true,nodeClass:s.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:s.resolveSeq};const u={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:s.resolveString,stringify(e,t,n,i){t=Object.assign({actualString:true},t);return s.stringifyString(e,t,n,i)},options:s.strOptions};const c=[a,l,u];const intIdentify$2=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve$1=(e,t,n)=>s.intOptions.asBigInt?BigInt(e):parseInt(t,n);function intStringify$1(e,t,n){const{value:i}=e;if(intIdentify$2(i)&&i>=0)return n+i.toString(t);return s.stringifyNumber(e)}const f={identify:e=>e==null,createNode:(e,t,n)=>n.wrapScalars?new s.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:s.nullOptions,stringify:()=>s.nullOptions.nullStr};const p={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>e[0]==="t"||e[0]==="T",options:s.boolOptions,stringify:({value:e})=>e?s.boolOptions.trueStr:s.boolOptions.falseStr};const h={identify:e=>intIdentify$2(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>intResolve$1(e,t,8),options:s.intOptions,stringify:e=>intStringify$1(e,8,"0o")};const d={identify:intIdentify$2,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>intResolve$1(e,e,10),options:s.intOptions,stringify:s.stringifyNumber};const m={identify:e=>intIdentify$2(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>intResolve$1(e,t,16),options:s.intOptions,stringify:e=>intStringify$1(e,16,"0x")};const g={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber};const y={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:({value:e})=>Number(e).toExponential()};const v={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,n){const i=t||n;const o=new s.Scalar(parseFloat(e));if(i&&i[i.length-1]==="0")o.minFractionDigits=i.length;return o},stringify:s.stringifyNumber};const b=c.concat([f,p,h,d,m,g,y,v]);const intIdentify$1=e=>typeof e==="bigint"||Number.isInteger(e);const stringifyJSON=({value:e})=>JSON.stringify(e);const w=[a,l,{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:s.resolveString,stringify:stringifyJSON},{identify:e=>e==null,createNode:(e,t,n)=>n.wrapScalars?new s.Scalar(null):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$1,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>s.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify$1(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}];w.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};const boolStringify=({value:e})=>e?s.boolOptions.trueStr:s.boolOptions.falseStr;const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,n){let i=t.replace(/_/g,"");if(s.intOptions.asBigInt){switch(n){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`;break}const t=BigInt(i);return e==="-"?BigInt(-1)*t:t}const o=parseInt(i,n);return e==="-"?-1*o:o}function intStringify(e,t,n){const{value:i}=e;if(intIdentify(i)){const e=i.toString(t);return i<0?"-"+n+e.substr(1):n+e}return s.stringifyNumber(e)}const S=c.concat([{identify:e=>e==null,createNode:(e,t,n)=>n.wrapScalars?new s.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:s.nullOptions,stringify:()=>s.nullOptions.nullStr},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>true,options:s.boolOptions,stringify:boolStringify},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>false,options:s.boolOptions,stringify:boolStringify},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>intResolve(t,n,2),stringify:e=>intStringify(e,2,"0b")},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>intResolve(t,n,8),stringify:e=>intStringify(e,8,"0")},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>intResolve(t,n,10),stringify:s.stringifyNumber},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>intResolve(t,n,16),stringify:e=>intStringify(e,16,"0x")},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:s.stringifyNumber},{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:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const n=new s.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");if(e[e.length-1]==="0")n.minFractionDigits=e.length}return n},stringify:s.stringifyNumber}],o.binary,o.omap,o.pairs,o.set,o.intTime,o.floatTime,o.timestamp);const E={core:b,failsafe:c,json:w,yaml11:S};const _={binary:o.binary,bool:p,float:v,floatExp:y,floatNaN:g,floatTime:o.floatTime,int:d,intHex:m,intOct:h,intTime:o.intTime,map:a,null:f,omap:o.omap,pairs:o.pairs,seq:l,set:o.set,timestamp:o.timestamp};function findTagObject(e,t,n){if(t){const e=n.filter((e=>e.tag===t));const i=e.find((e=>!e.format))||e[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}function createNode(e,t,n){if(e instanceof s.Node)return e;const{defaultPrefix:i,onTagObj:o,prevObjects:u,schema:c,wrapScalars:f}=n;if(t&&t.startsWith("!!"))t=i+t.slice(2);let p=findTagObject(e,t,c.tags);if(!p){if(typeof e.toJSON==="function")e=e.toJSON();if(!e||typeof e!=="object")return f?new s.Scalar(e):e;p=e instanceof Map?a:e[Symbol.iterator]?l:a}if(o){o(p);delete n.onTagObj}const h={value:undefined,node:undefined};if(e&&typeof e==="object"&&u){const t=u.get(e);if(t){const e=new s.Alias(t);n.aliasNodes.push(e);return e}h.value=e;u.set(e,h)}h.node=p.createNode?p.createNode(n.schema,e,n):f?new s.Scalar(e):e;if(t&&h.node instanceof s.Node)h.node.tag=t;return h.node}function getSchemaTags(e,t,n,i){let s=e[i.replace(/\W/g,"")];if(!s){const t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${i}"; use one of ${t}`)}if(Array.isArray(n)){for(const e of n)s=s.concat(e)}else if(typeof n==="function"){s=n(s.slice())}for(let e=0;eJSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}s[e]=i}}return s}const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({customTags:e,merge:t,schema:n,sortMapEntries:i,tags:s}){this.merge=!!t;this.name=n;this.sortMapEntries=i===true?sortMapEntriesByKey:i||null;if(!e&&s)o.warnOptionDeprecation("tags","customTags");this.tags=getSchemaTags(E,_,e||s,n)}createNode(e,t,n,i){const s={defaultPrefix:Schema.defaultPrefix,schema:this,wrapScalars:t};const o=i?Object.assign(i,s):s;return createNode(e,n,o)}createPair(e,t,n){if(!n)n={wrapScalars:true};const i=this.createNode(e,n.wrapScalars,null,n);const o=this.createNode(t,n.wrapScalars,null,n);return new s.Pair(i,o)}}i._defineProperty(Schema,"defaultPrefix",i.defaultTagPrefix);i._defineProperty(Schema,"defaultTags",i.defaultTags);t.Schema=Schema},5065:(e,t,n)=>{"use strict";var i=n(445);var s=n(5506);var o=n(8021);var a=n(5215);var l=n(6003);n(4227);function createNode(e,t=true,n){if(n===undefined&&typeof t==="string"){n=t;t=true}const i=Object.assign({},s.Document.defaults[s.defaultOptions.version],s.defaultOptions);const a=new o.Schema(i);return a.createNode(e,t,n)}class Document extends s.Document{constructor(e){super(Object.assign({},s.defaultOptions,e))}}function parseAllDocuments(e,t){const n=[];let s;for(const o of i.parse(e)){const e=new Document(t);e.parse(o,s);n.push(e);s=e}return n}function parseDocument(e,t){const n=i.parse(e);const s=new Document(t).parse(n[0]);if(n.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";s.errors.unshift(new a.YAMLSemanticError(n[1],e))}return s}function parse(e,t){const n=parseDocument(e,t);n.warnings.forEach((e=>l.warn(e)));if(n.errors.length>0)throw n.errors[0];return n.toJSON()}function stringify(e,t){const n=new Document(t);n.contents=e;return String(n)}const u={createNode:createNode,defaultOptions:s.defaultOptions,Document:Document,parse:parse,parseAllDocuments:parseAllDocuments,parseCST:i.parse,parseDocument:parseDocument,scalarOptions:s.scalarOptions,stringify:stringify};t.YAML=u},445:(e,t,n)=>{"use strict";var i=n(5215);class BlankLine extends i.Node{constructor(){super(i.Type.BLANK_LINE)}get includesTrailingLines(){return true}parse(e,t){this.context=e;this.range=new i.Range(t,t+1);return t+1}}class CollectionItem extends i.Node{constructor(e,t){super(e,t);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:n,src:s}=e;let{atLineStart:o,lineStart:a}=e;if(!o&&this.type===i.Type.SEQ_ITEM)this.error=new i.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line");const l=o?t-a:e.indent;let u=i.Node.endOfWhiteSpace(s,t+1);let c=s[u];const f=c==="#";const p=[];let h=null;while(c==="\n"||c==="#"){if(c==="#"){const e=i.Node.endOfLine(s,u+1);p.push(new i.Range(u,e));u=e}else{o=true;a=u+1;const e=i.Node.endOfWhiteSpace(s,a);if(s[e]==="\n"&&p.length===0){h=new BlankLine;a=h.parse({src:s},a)}u=i.Node.endOfIndent(s,a)}c=s[u]}if(i.Node.nextNodeIsIndented(c,u-(a+l),this.type!==i.Type.SEQ_ITEM)){this.node=n({atLineStart:o,inCollection:false,indent:l,lineStart:a,parent:this},u)}else if(c&&a>t+1){u=a-1}if(this.node){if(h){const t=e.parent.items||e.parent.contents;if(t)t.push(h)}if(p.length)Array.prototype.push.apply(this.props,p);u=this.node.range.end}else{if(f){const e=p[0];this.props.push(e);u=e.end}else{u=i.Node.endOfLine(s,t+1)}}const d=this.node?this.node.valueRange.end:u;this.valueRange=new i.Range(t,d);return u}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:s}=this;if(s!=null)return s;const o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return i.Node.addStringTerminator(e,n.end,o)}}class Comment extends i.Node{constructor(){super(i.Type.COMMENT)}parse(e,t){this.context=e;const n=this.parseComment(t);this.range=new i.Range(t,n);return n}}function grabCollectionEndComments(e){let t=e;while(t instanceof CollectionItem)t=t.node;if(!(t instanceof Collection))return null;const n=t.items.length;let s=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===i.Type.COMMENT){const{indent:t,lineStart:i}=n.context;if(t>0&&n.range.start>=i+t)break;s=e}else if(n.type===i.Type.BLANK_LINE)s=e;else break}if(s===-1)return null;const o=t.items.splice(s,n-s);const a=o[0].range.start;while(true){t.range.end=a;if(t.valueRange&&t.valueRange.end>a)t.valueRange.end=a;if(t===e)break;t=t.context.parent}return o}class Collection extends i.Node{static nextContentHasIndent(e,t,n){const s=i.Node.endOfLine(e,t)+1;t=i.Node.endOfWhiteSpace(e,s);const o=e[t];if(!o)return false;if(t>=s+n)return true;if(o!=="#"&&o!=="\n")return false;return Collection.nextContentHasIndent(e,t,n)}constructor(e){super(e.type===i.Type.SEQ_ITEM?i.Type.SEQ:i.Type.MAP);for(let t=e.props.length-1;t>=0;--t){if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:n,src:s}=e;let o=i.Node.startOfLine(s,t);const a=this.items[0];a.context.parent=this;this.valueRange=i.Range.copy(a.valueRange);const l=a.range.start-a.context.lineStart;let u=t;u=i.Node.normalizeOffset(s,u);let c=s[u];let f=i.Node.endOfWhiteSpace(s,o)===u;let p=false;while(c){while(c==="\n"||c==="#"){if(f&&c==="\n"&&!p){const e=new BlankLine;u=e.parse({src:s},u);this.valueRange.end=u;if(u>=s.length){c=null;break}this.items.push(e);u-=1}else if(c==="#"){if(u=s.length){c=null;break}}o=u+1;u=i.Node.endOfIndent(s,o);if(i.Node.atBlank(s,u)){const e=i.Node.endOfWhiteSpace(s,u);const t=s[e];if(!t||t==="\n"||t==="#"){u=e}}c=s[u];f=true}if(!c){break}if(u!==o+l&&(f||c!==":")){if(ut)u=o;break}else if(!this.error){const e="All collection items must start at the same column";this.error=new i.YAMLSyntaxError(this,e)}}if(a.type===i.Type.SEQ_ITEM){if(c!=="-"){if(o>t)u=o;break}}else if(c==="-"&&!this.error){const e=s[u+1];if(!e||e==="\n"||e==="\t"||e===" "){const e="A collection cannot be both a mapping and a sequence";this.error=new i.YAMLSyntaxError(this,e)}}const e=n({atLineStart:f,inCollection:true,indent:l,lineStart:o,parent:this},u);if(!e)return u;this.items.push(e);this.valueRange.end=e.valueRange.end;u=i.Node.normalizeOffset(s,e.range.end);c=s[u];f=false;p=e.includesTrailingLines;if(c){let e=u-1;let t=s[e];while(t===" "||t==="\t")t=s[--e];if(t==="\n"){o=e+1;f=true}}const h=grabCollectionEndComments(e);if(h)Array.prototype.push.apply(this.items,h)}return u}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.items.forEach((n=>{t=n.setOrigRanges(e,t)}));return t}toString(){const{context:{src:e},items:t,range:n,value:s}=this;if(s!=null)return s;let o=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e0){this.contents=this.directives;this.directives=[]}return o}}if(t[o]){this.directivesEndMarker=new i.Range(o,o+3);return o+3}if(s){this.error=new i.YAMLSemanticError(this,"Missing directives-end indicator line")}else if(this.directives.length>0){this.contents=this.directives;this.directives=[]}return o}parseContents(e){const{parseNode:t,src:n}=this.context;if(!this.contents)this.contents=[];let s=e;while(n[s-1]==="-")s-=1;let o=i.Node.endOfWhiteSpace(n,e);let a=s===e;this.valueRange=new i.Range(o);while(!i.Node.atDocumentBoundary(n,o,i.Char.DOCUMENT_END)){switch(n[o]){case"\n":if(a){const e=new BlankLine;o=e.parse({src:n},o);if(o{t=n.setOrigRanges(e,t)}));if(this.directivesEndMarker)t=this.directivesEndMarker.setOrigRange(e,t);this.contents.forEach((n=>{t=n.setOrigRanges(e,t)}));if(this.documentEndMarker)t=this.documentEndMarker.setOrigRange(e,t);return t}toString(){const{contents:e,directives:t,value:n}=this;if(n!=null)return n;let s=t.join("");if(e.length>0){if(t.length>0||e[0].type===i.Type.COMMENT)s+="---\n";s+=e.join("")}if(s[s.length-1]!=="\n")s+="\n";return s}}class Alias extends i.Node{parse(e,t){this.context=e;const{src:n}=e;let s=i.Node.endOfIdentifier(n,t+1);this.valueRange=new i.Range(t+1,s);s=i.Node.endOfWhiteSpace(n,s);s=this.parseComment(s);return s}}const s={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};class BlockValue extends i.Node{constructor(e,t){super(e,t);this.blockIndent=null;this.chomping=s.CLIP;this.header=null}get includesTrailingLines(){return this.chomping===s.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:n,src:o}=this.context;if(this.valueRange.isEmpty())return"";let a=null;let l=o[t-1];while(l==="\n"||l==="\t"||l===" "){t-=1;if(t<=e){if(this.chomping===s.KEEP)break;else return""}if(l==="\n")a=t;l=o[t-1]}let u=t+1;if(a){if(this.chomping===s.KEEP){u=a;t=this.valueRange.end}else{t=a}}const c=n+this.blockIndent;const f=this.type===i.Type.BLOCK_FOLDED;let p=true;let h="";let d="";let m=false;for(let n=e;nu){u=c}}else if(s&&s!=="\n"&&c{if(n instanceof i.Node){t=n.setOrigRanges(e,t)}else if(e.length===0){n.origOffset=n.offset}else{let i=t;while(in.offset)break;else++i}n.origOffset=n.offset+i;t=i}}));return t}toString(){const{context:{src:e},items:t,range:n,value:s}=this;if(s!=null)return s;const o=t.filter((e=>e instanceof i.Node));let a="";let l=n.start;o.forEach((t=>{const n=e.slice(l,t.range.start);l=t.range.end;a+=n+String(t);if(a[a.length-1]==="\n"&&e[l-1]!=="\n"&&e[l]==="\n"){l+=1}}));a+=e.slice(l,n.end);return i.Node.addStringTerminator(e,n.end,a)}}class QuoteDouble extends i.Node{static endOfQuote(e,t){let n=e[t];while(n&&n!=='"'){t+=n==="\\"?2:1;n=e[t]}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:n}=this.valueRange;const{indent:s,src:o}=this.context;if(o[n-1]!=='"')e.push(new i.YAMLSyntaxError(this,'Missing closing "quote'));let a="";for(let l=t+1;le?o.slice(e,l+1):t}else{a+=t}}return e.length>0?{errors:e,str:a}:a}parseCharCode(e,t,n){const{src:s}=this.context;const o=s.substr(e,t);const a=o.length===t&&/^[0-9a-fA-F]+$/.test(o);const l=a?parseInt(o,16):NaN;if(isNaN(l)){n.push(new i.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,t+2)}`));return s.substr(e-2,t+2)}return String.fromCodePoint(l)}parse(e,t){this.context=e;const{src:n}=e;let s=QuoteDouble.endOfQuote(n,t+1);this.valueRange=new i.Range(t,s);s=i.Node.endOfWhiteSpace(n,s);s=this.parseComment(s);return s}}class QuoteSingle extends i.Node{static endOfQuote(e,t){let n=e[t];while(n){if(n==="'"){if(e[t+1]!=="'")break;n=e[t+=2]}else{n=e[t+=1]}}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:n}=this.valueRange;const{indent:s,src:o}=this.context;if(o[n-1]!=="'")e.push(new i.YAMLSyntaxError(this,"Missing closing 'quote"));let a="";for(let l=t+1;le?o.slice(e,l+1):t}else{a+=t}}return e.length>0?{errors:e,str:a}:a}parse(e,t){this.context=e;const{src:n}=e;let s=QuoteSingle.endOfQuote(n,t+1);this.valueRange=new i.Range(t,s);s=i.Node.endOfWhiteSpace(n,s);s=this.parseComment(s);return s}}function createNewNode(e,t){switch(e){case i.Type.ALIAS:return new Alias(e,t);case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return new BlockValue(e,t);case i.Type.FLOW_MAP:case i.Type.FLOW_SEQ:return new FlowCollection(e,t);case i.Type.MAP_KEY:case i.Type.MAP_VALUE:case i.Type.SEQ_ITEM:return new CollectionItem(e,t);case i.Type.COMMENT:case i.Type.PLAIN:return new i.PlainValue(e,t);case i.Type.QUOTE_DOUBLE:return new QuoteDouble(e,t);case i.Type.QUOTE_SINGLE:return new QuoteSingle(e,t);default:return null}}class ParseContext{static parseType(e,t,n){switch(e[t]){case"*":return i.Type.ALIAS;case">":return i.Type.BLOCK_FOLDED;case"|":return i.Type.BLOCK_LITERAL;case"{":return i.Type.FLOW_MAP;case"[":return i.Type.FLOW_SEQ;case"?":return!n&&i.Node.atBlank(e,t+1,true)?i.Type.MAP_KEY:i.Type.PLAIN;case":":return!n&&i.Node.atBlank(e,t+1,true)?i.Type.MAP_VALUE:i.Type.PLAIN;case"-":return!n&&i.Node.atBlank(e,t+1,true)?i.Type.SEQ_ITEM:i.Type.PLAIN;case'"':return i.Type.QUOTE_DOUBLE;case"'":return i.Type.QUOTE_SINGLE;default:return i.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:n,inFlow:s,indent:o,lineStart:a,parent:l}={}){i._defineProperty(this,"parseNode",((e,t)=>{if(i.Node.atDocumentBoundary(this.src,t))return null;const n=new ParseContext(this,e);const{props:s,type:o,valueStart:a}=n.parseProps(t);const l=createNewNode(o,s);let u=l.parse(n,a);l.range=new i.Range(t,u);if(u<=t){l.error=new Error(`Node#parse consumed no characters`);l.error.parseEnd=u;l.error.source=l;l.range.end=t+1}if(n.nodeStartsCollection(l)){if(!l.error&&!n.atLineStart&&n.parent.type===i.Type.DOCUMENT){l.error=new i.YAMLSyntaxError(l,"Block collection must not have preceding content here (e.g. directives-end indicator)")}const e=new Collection(l);u=e.parse(new ParseContext(n),u);e.range=new i.Range(t,u);return e}return l}));this.atLineStart=t!=null?t:e.atLineStart||false;this.inCollection=n!=null?n:e.inCollection||false;this.inFlow=s!=null?s:e.inFlow||false;this.indent=o!=null?o:e.indent;this.lineStart=a!=null?a:e.lineStart;this.parent=l!=null?l:e.parent||{};this.root=e.root;this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:s}=this;if(t||n)return false;if(e instanceof CollectionItem)return true;let o=e.range.end;if(s[o]==="\n"||s[o-1]==="\n")return false;o=i.Node.endOfWhiteSpace(s,o);return s[o]===":"}parseProps(e){const{inFlow:t,parent:n,src:s}=this;const o=[];let a=false;e=this.atLineStart?i.Node.endOfIndent(s,e):i.Node.endOfWhiteSpace(s,e);let l=s[e];while(l===i.Char.ANCHOR||l===i.Char.COMMENT||l===i.Char.TAG||l==="\n"){if(l==="\n"){let t=e;let o;do{o=t+1;t=i.Node.endOfIndent(s,o)}while(s[t]==="\n");const l=t-(o+this.indent);const u=n.type===i.Type.SEQ_ITEM&&n.context.atLineStart;if(s[t]!=="#"&&!i.Node.nextNodeIsIndented(s[t],l,!u))break;this.atLineStart=true;this.lineStart=o;a=false;e=t}else if(l===i.Char.COMMENT){const t=i.Node.endOfLine(s,e+1);o.push(new i.Range(e,t));e=t}else{let t=i.Node.endOfIdentifier(s,e+1);if(l===i.Char.TAG&&s[t]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e+1,t+13))){t=i.Node.endOfIdentifier(s,t+5)}o.push(new i.Range(e,t));a=true;e=i.Node.endOfWhiteSpace(s,t)}l=s[e]}if(a&&l===":"&&i.Node.atBlank(s,e+1,true))e-=1;const u=ParseContext.parseType(s,e,t);return{props:o,type:u,valueStart:e}}}function parse(e){const t=[];if(e.indexOf("\r")!==-1){e=e.replace(/\r\n?/g,((e,n)=>{if(e.length>1)t.push(n);return"\n"}))}const n=[];let i=0;do{const t=new Document;const s=new ParseContext({src:e});i=t.parse(s,i);n.push(t)}while(i{if(t.length===0)return false;for(let e=1;en.join("...\n");return n}t.parse=parse},4227:(e,t,n)=>{"use strict";var i=n(5215);function addCommentBefore(e,t,n){if(!n)return e;const i=n.replace(/[\s\S]^/gm,`$&${t}#`);return`#${i}\n${t}${e}`}function addComment(e,t,n){return!n?e:n.indexOf("\n")===-1?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`)}class Node{}function toJSON(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>toJSON(e,String(t),n)));if(e&&typeof e.toJSON==="function"){const i=n&&n.anchors&&n.anchors.get(e);if(i)n.onCreate=e=>{i.res=e;delete n.onCreate};const s=e.toJSON(t,n);if(i&&n.onCreate)n.onCreate(s);return s}if((!n||!n.keep)&&typeof e==="bigint")return Number(e);return e}class Scalar extends Node{constructor(e){super();this.value=e}toJSON(e,t){return t&&t.keep?this.value:toJSON(this.value,e,t)}toString(){return String(this.value)}}function collectionFromPath(e,t,n){let i=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(Number.isInteger(n)&&n>=0){const e=[];e[n]=i;i=e}else{const e={};Object.defineProperty(e,n,{value:i,writable:true,enumerable:true,configurable:true});i=e}}return e.createNode(i,false)}const isEmptyPath=e=>e==null||typeof e==="object"&&e[Symbol.iterator]().next().done;class Collection extends Node{constructor(e){super();i._defineProperty(this,"items",[]);this.schema=e}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[n,...i]=e;const s=this.get(n,true);if(s instanceof Collection)s.addIn(i,t);else if(s===undefined&&this.schema)this.set(n,collectionFromPath(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn([e,...t]){if(t.length===0)return this.delete(e);const n=this.get(e,true);if(n instanceof Collection)return n.deleteIn(t);else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const i=this.get(e,true);if(t.length===0)return!n&&i instanceof Scalar?i.value:i;else return i instanceof Collection?i.getIn(t,n):undefined}hasAllNullValues(){return this.items.every((e=>{if(!e||e.type!=="PAIR")return false;const t=e.value;return t==null||t instanceof Scalar&&t.value==null&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([e,...t]){if(t.length===0)return this.has(e);const n=this.get(e,true);return n instanceof Collection?n.hasIn(t):false}setIn([e,...t],n){if(t.length===0){this.set(e,n)}else{const i=this.get(e,true);if(i instanceof Collection)i.setIn(t,n);else if(i===undefined&&this.schema)this.set(e,collectionFromPath(this.schema,t,n));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}}toJSON(){return null}toString(e,{blockItem:t,flowChars:n,isMap:s,itemIndent:o},a,l){const{indent:u,indentStep:c,stringify:f}=e;const p=this.type===i.Type.FLOW_MAP||this.type===i.Type.FLOW_SEQ||e.inFlow;if(p)o+=c;const h=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:h,indent:o,inFlow:p,type:null});let d=false;let m=false;const g=this.items.reduce(((t,n,i)=>{let s;if(n){if(!d&&n.spaceBefore)t.push({type:"comment",str:""});if(n.commentBefore)n.commentBefore.match(/^.*$/gm).forEach((e=>{t.push({type:"comment",str:`#${e}`})}));if(n.comment)s=n.comment;if(p&&(!d&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment)))m=true}d=false;let a=f(n,e,(()=>s=null),(()=>d=true));if(p&&!m&&a.includes("\n"))m=true;if(p&&ie.str));if(m||i.reduce(((e,t)=>e+t.length+2),2)>Collection.maxFlowStringSingleLineLength){y=e;for(const e of i){y+=e?`\n${c}${u}${e}`:"\n"}y+=`\n${u}${t}`}else{y=`${e} ${i.join(" ")} ${t}`}}else{const e=g.map(t);y=e.shift();for(const t of e)y+=t?`\n${u}${t}`:"\n"}if(this.comment){y+="\n"+this.comment.replace(/^/gm,`${u}#`);if(a)a()}else if(d&&l)l();return y}}i._defineProperty(Collection,"maxFlowStringSingleLineLength",60);function asItemIndex(e){let t=e instanceof Scalar?e.value:e;if(t&&typeof t==="string")t=Number(t);return Number.isInteger(t)&&t>=0?t:null}class YAMLSeq extends Collection{add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const n=this.items.splice(t,1);return n.length>0}get(e,t){const n=asItemIndex(e);if(typeof n!=="number")return undefined;const i=this.items[n];return!t&&i instanceof Scalar?i.value:i}has(e){const t=asItemIndex(e);return typeof t==="number"&&te.type==="comment"?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:false,itemIndent:(e.indent||"")+" "},t,n)}}const stringifyKey=(e,t,n)=>{if(t===null)return"";if(typeof t!=="object")return String(t);if(e instanceof Node&&n&&n.doc)return e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:true,inStringifyKey:true,stringify:n.stringify});return JSON.stringify(t)};class Pair extends Node{constructor(e,t=null){super();this.key=e;this.value=t;this.type=Pair.Type.PAIR}get commentBefore(){return this.key instanceof Node?this.key.commentBefore:undefined}set commentBefore(e){if(this.key==null)this.key=new Scalar(null);if(this.key instanceof Node)this.key.commentBefore=e;else{const e="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(e)}}addToJSMap(e,t){const n=toJSON(this.key,"",e);if(t instanceof Map){const i=toJSON(this.value,n,e);t.set(n,i)}else if(t instanceof Set){t.add(n)}else{const i=stringifyKey(this.key,n,e);const s=toJSON(this.value,i,e);if(i in t)Object.defineProperty(t,i,{value:s,writable:true,enumerable:true,configurable:true});else t[i]=s}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,n){if(!e||!e.doc)return JSON.stringify(this);const{indent:s,indentSeq:o,simpleKeys:a}=e.doc.options;let{key:l,value:u}=this;let c=l instanceof Node&&l.comment;if(a){if(c){throw new Error("With simple keys, key nodes cannot have comments")}if(l instanceof Collection){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let f=!a&&(!l||c||(l instanceof Node?l instanceof Collection||l.type===i.Type.BLOCK_FOLDED||l.type===i.Type.BLOCK_LITERAL:typeof l==="object"));const{doc:p,indent:h,indentStep:d,stringify:m}=e;e=Object.assign({},e,{implicitKey:!f,indent:h+d});let g=false;let y=m(l,e,(()=>c=null),(()=>g=true));y=addComment(y,e.indent,c);if(!f&&y.length>1024){if(a)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=true}if(e.allNullValues&&!a){if(this.comment){y=addComment(y,e.indent,this.comment);if(t)t()}else if(g&&!c&&n)n();return e.inFlow&&!f?y:`? ${y}`}y=f?`? ${y}\n${h}:`:`${y}:`;if(this.comment){y=addComment(y,e.indent,this.comment);if(t)t()}let v="";let b=null;if(u instanceof Node){if(u.spaceBefore)v="\n";if(u.commentBefore){const t=u.commentBefore.replace(/^/gm,`${e.indent}#`);v+=`\n${t}`}b=u.comment}else if(u&&typeof u==="object"){u=p.schema.createNode(u,true)}e.implicitKey=false;if(!f&&!this.comment&&u instanceof Scalar)e.indentAtStart=y.length+1;g=false;if(!o&&s>=2&&!e.inFlow&&!f&&u instanceof YAMLSeq&&u.type!==i.Type.FLOW_SEQ&&!u.tag&&!p.anchors.getName(u)){e.indent=e.indent.substr(2)}const w=m(u,e,(()=>b=null),(()=>g=true));let S=" ";if(v||this.comment){S=`${v}\n${e.indent}`}else if(!f&&u instanceof Collection){const t=w[0]==="["||w[0]==="{";if(!t||w.includes("\n"))S=`\n${e.indent}`}else if(w[0]==="\n")S="";if(g&&!b&&n)n();return addComment(y+S+w,e.indent,b)}}i._defineProperty(Pair,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const getAliasCount=(e,t)=>{if(e instanceof Alias){const n=t.get(e.source);return n.count*n.aliasCount}else if(e instanceof Collection){let n=0;for(const i of e.items){const e=getAliasCount(i,t);if(e>n)n=e}return n}else if(e instanceof Pair){const n=getAliasCount(e.key,t);const i=getAliasCount(e.value,t);return Math.max(n,i)}return 1};class Alias extends Node{static stringify({range:e,source:t},{anchors:n,doc:i,implicitKey:s,inStringifyKey:o}){let a=Object.keys(n).find((e=>n[e]===t));if(!a&&o)a=i.anchors.getName(t)||i.anchors.newName();if(a)return`*${a}${s?" ":""}`;const l=i.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${l} [${e}]`)}constructor(e){super();this.source=e;this.type=i.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return toJSON(this.source,e,t);const{anchors:n,maxAliasCount:s}=t;const o=n.get(this.source);if(!o||o.res===undefined){const e="This should not happen: Alias anchor was not resolved?";if(this.cstNode)throw new i.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}if(s>=0){o.count+=1;if(o.aliasCount===0)o.aliasCount=getAliasCount(this.source,n);if(o.count*o.aliasCount>s){const e="Excessive alias count indicates a resource exhaustion attack";if(this.cstNode)throw new i.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}}return o.res}toString(e){return Alias.stringify(this,e)}}i._defineProperty(Alias,"default",true);function findPair(e,t){const n=t instanceof Scalar?t.value:t;for(const i of e){if(i instanceof Pair){if(i.key===t||i.key===n)return i;if(i.key&&i.key.value===n)return i}}return undefined}class YAMLMap extends Collection{add(e,t){if(!e)e=new Pair(e);else if(!(e instanceof Pair))e=new Pair(e.key||e,e.value);const n=findPair(this.items,e.key);const i=this.schema&&this.schema.sortMapEntries;if(n){if(t)n.value=e.value;else throw new Error(`Key ${e.key} already set`)}else if(i){const t=this.items.findIndex((t=>i(e,t)<0));if(t===-1)this.items.push(e);else this.items.splice(t,0,e)}else{this.items.push(e)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const n=this.items.splice(this.items.indexOf(t),1);return n.length>0}get(e,t){const n=findPair(this.items,e);const i=n&&n.value;return!t&&i instanceof Scalar?i.value:i}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new Pair(e,t),true)}toJSON(e,t,n){const i=n?new n:t&&t.mapAsMap?new Map:{};if(t&&t.onCreate)t.onCreate(i);for(const e of this.items)e.addToJSMap(t,i);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items){if(!(e instanceof Pair))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:true,itemIndent:e.indent||""},t,n)}}const s="<<";class Merge extends Pair{constructor(e){if(e instanceof Pair){let t=e.value;if(!(t instanceof YAMLSeq)){t=new YAMLSeq;t.items.push(e.value);t.range=e.value.range}super(e.key,t);this.range=e.range}else{super(new Scalar(s),new YAMLSeq)}this.type=Pair.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:n}of this.value.items){if(!(n instanceof YAMLMap))throw new Error("Merge sources must be maps");const i=n.toJSON(null,e,Map);for(const[e,n]of i){if(t instanceof Map){if(!t.has(e))t.set(e,n)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:n,writable:true,enumerable:true,configurable:true})}}}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const i=super.toString(e,t);this.value=n;return i}}const o={defaultType:i.Type.BLOCK_LITERAL,lineWidth:76};const a={trueStr:"true",falseStr:"false"};const l={asBigInt:false};const u={nullStr:"null"};const c={defaultType:i.Type.PLAIN,doubleQuoted:{jsonEncoding:false,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function resolveScalar(e,t,n){for(const{format:n,test:i,resolve:s}of t){if(i){const t=e.match(i);if(t){let e=s.apply(null,t);if(!(e instanceof Scalar))e=new Scalar(e);if(n)e.format=n;return e}}}if(n)e=n(e);return new Scalar(e)}const f="flow";const p="block";const h="quoted";const consumeMoreIndentedLines=(e,t)=>{let n=e[t+1];while(n===" "||n==="\t"){do{n=e[t+=1]}while(n&&n!=="\n");n=e[t+1]}return t};function foldFlowLines(e,t,n,{indentAtStart:i,lineWidth:s=80,minContentWidth:o=20,onFold:a,onOverflow:l}){if(!s||s<0)return e;const u=Math.max(1+o,1+s-t.length);if(e.length<=u)return e;const c=[];const f={};let d=s-t.length;if(typeof i==="number"){if(i>s-Math.max(2,o))c.push(0);else d=s-i}let m=undefined;let g=undefined;let y=false;let v=-1;let b=-1;let w=-1;if(n===p){v=consumeMoreIndentedLines(e,v);if(v!==-1)d=v+u}for(let t;t=e[v+=1];){if(n===h&&t==="\\"){b=v;switch(e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}w=v}if(t==="\n"){if(n===p)v=consumeMoreIndentedLines(e,v);d=v+u;m=undefined}else{if(t===" "&&g&&g!==" "&&g!=="\n"&&g!=="\t"){const t=e[v+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")m=v}if(v>=d){if(m){c.push(m);d=m+u;m=undefined}else if(n===h){while(g===" "||g==="\t"){g=t;t=e[v+=1];y=true}const n=v>w+1?v-2:b-1;if(f[n])return e;c.push(n);f[n]=true;d=n+u;m=undefined}else{y=true}}}g=t}if(y&&l)l();if(c.length===0)return e;if(a)a();let S=e.slice(0,c[0]);for(let i=0;ie?Object.assign({indentAtStart:e},c.fold):c.fold;const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,n){if(!t||t<0)return false;const i=t-n;const s=e.length;if(s<=i)return false;for(let t=0,n=0;ti)return true;n=t+1;if(s-n<=i)return false}}return true}function doubleQuotedString(e,t){const{implicitKey:n}=t;const{jsonEncoding:i,minMultiLineLength:s}=c.doubleQuoted;const o=JSON.stringify(e);if(i)return o;const a=t.indent||(containsDocumentMarker(e)?" ":"");let l="";let u=0;for(let e=0,t=o[e];t;t=o[++e]){if(t===" "&&o[e+1]==="\\"&&o[e+2]==="n"){l+=o.slice(u,e)+"\\ ";e+=1;u=e;t="\\"}if(t==="\\")switch(o[e+1]){case"u":{l+=o.slice(u,e);const t=o.substr(e+2,4);switch(t){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:if(t.substr(0,2)==="00")l+="\\x"+t.substr(2);else l+=o.substr(e,6)}e+=5;u=e+1}break;case"n":if(n||o[e+2]==='"'||o.length";if(!n)return h+"\n";let d="";let m="";n=n.replace(/[\n\t ]*$/,(e=>{const t=e.indexOf("\n");if(t===-1){h+="-"}else if(n===e||t!==e.length-1){h+="+";if(a)a()}m=e.replace(/\n$/,"");return""})).replace(/^[\n ]*/,(e=>{if(e.indexOf(" ")!==-1)h+=u;const t=e.match(/ +$/);if(t){d=e.slice(0,-t[0].length);return t[0]}else{d=e;return""}}));if(m)m=m.replace(/\n+(?!\n|$)/g,`$&${l}`);if(d)d=d.replace(/\n+/g,`$&${l}`);if(e){h+=" #"+e.replace(/ ?[\r\n]+/g," ");if(o)o()}if(!n)return`${h}${u}\n${l}${m}`;if(f){n=n.replace(/\n+/g,`$&${l}`);return`${h}\n${l}${d}${n}${m}`}n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`);const g=foldFlowLines(`${d}${n}${m}`,l,p,c.fold);return`${h}\n${l}${g}`}function plainString(e,t,n,s){const{comment:o,type:a,value:l}=e;const{actualString:u,implicitKey:c,indent:p,inFlow:h}=t;if(c&&/[\n[\]{},]/.test(l)||h&&/[[\]{},]/.test(l)){return doubleQuotedString(l,t)}if(!l||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(l)){return c||h||l.indexOf("\n")===-1?l.indexOf('"')!==-1&&l.indexOf("'")===-1?singleQuotedString(l,t):doubleQuotedString(l,t):blockString(e,t,n,s)}if(!c&&!h&&a!==i.Type.PLAIN&&l.indexOf("\n")!==-1){return blockString(e,t,n,s)}if(p===""&&containsDocumentMarker(l)){t.forceBlockIndent=true;return blockString(e,t,n,s)}const d=l.replace(/\n+/g,`$&\n${p}`);if(u){const{tags:e}=t.doc.schema;const n=resolveScalar(d,e,e.scalarFallback).value;if(typeof n!=="string")return doubleQuotedString(l,t)}const m=c?d:foldFlowLines(d,p,f,getFoldOptions(t));if(o&&!h&&(m.indexOf("\n")!==-1||o.indexOf("\n")!==-1)){if(n)n();return addCommentBefore(m,p,o)}return m}function stringifyString(e,t,n,s){const{defaultType:o}=c;const{implicitKey:a,inFlow:l}=t;let{type:u,value:f}=e;if(typeof f!=="string"){f=String(f);e=Object.assign({},e,{value:f})}const _stringify=o=>{switch(o){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return blockString(e,t,n,s);case i.Type.QUOTE_DOUBLE:return doubleQuotedString(f,t);case i.Type.QUOTE_SINGLE:return singleQuotedString(f,t);case i.Type.PLAIN:return plainString(e,t,n,s);default:return null}};if(u!==i.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(f)){u=i.Type.QUOTE_DOUBLE}else if((a||l)&&(u===i.Type.BLOCK_FOLDED||u===i.Type.BLOCK_LITERAL)){u=i.Type.QUOTE_DOUBLE}let p=_stringify(u);if(p===null){p=_stringify(o);if(p===null)throw new Error(`Unsupported default string type ${o}`)}return p}function stringifyNumber({format:e,minFractionDigits:t,tag:n,value:i}){if(typeof i==="bigint")return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(i);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let e=s.indexOf(".");if(e<0){e=s.length;s+="."}let n=t-(s.length-e-1);while(n-- >0)s+="0"}return s}function checkFlowCollectionEnd(e,t){let n,s;switch(t.type){case i.Type.FLOW_MAP:n="}";s="flow map";break;case i.Type.FLOW_SEQ:n="]";s="flow sequence";break;default:e.push(new i.YAMLSemanticError(t,"Not a flow collection!?"));return}let o;for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==i.Type.COMMENT){o=n;break}}if(o&&o.char!==n){const a=`Expected ${s} to end with ${n}`;let l;if(typeof o.offset==="number"){l=new i.YAMLSemanticError(t,a);l.offset=o.offset+1}else{l=new i.YAMLSemanticError(o,a);if(o.range&&o.range.end)l.offset=o.range.end-o.range.start}e.push(l)}}function checkFlowCommentSpace(e,t){const n=t.context.src[t.range.start-1];if(n!=="\n"&&n!=="\t"&&n!==" "){const n="Comments must be separated from other tokens by white space characters";e.push(new i.YAMLSemanticError(t,n))}}function getLongKeyError(e,t){const n=String(t);const s=n.substr(0,8)+"..."+n.substr(-8);return new i.YAMLSemanticError(e,`The "${s}" key is too long`)}function resolveComments(e,t){for(const{afterKey:n,before:i,comment:s}of t){let t=e.items[i];if(!t){if(s!==undefined){if(e.comment)e.comment+="\n"+s;else e.comment=s}}else{if(n&&t.value)t=t.value;if(s===undefined){if(n||!t.commentBefore)t.spaceBefore=true}else{if(t.commentBefore)t.commentBefore+="\n"+s;else t.commentBefore=s}}}}function resolveString(e,t){const n=t.strValue;if(!n)return"";if(typeof n==="string")return n;n.errors.forEach((n=>{if(!n.source)n.source=t;e.errors.push(n)}));return n.str}function resolveTagHandle(e,t){const{handle:n,suffix:s}=t.tag;let o=e.tagPrefixes.find((e=>e.handle===n));if(!o){const s=e.getDefaults().tagPrefixes;if(s)o=s.find((e=>e.handle===n));if(!o)throw new i.YAMLSemanticError(t,`The ${n} tag handle is non-default and was not declared.`)}if(!s)throw new i.YAMLSemanticError(t,`The ${n} tag has no suffix.`);if(n==="!"&&(e.version||e.options.version)==="1.0"){if(s[0]==="^"){e.warnings.push(new i.YAMLWarning(t,"YAML 1.0 ^ tag expansion is not supported"));return s}if(/[:/]/.test(s)){const e=s.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${s}`}}return o.prefix+decodeURIComponent(s)}function resolveTagName(e,t){const{tag:n,type:s}=t;let o=false;if(n){const{handle:s,suffix:a,verbatim:l}=n;if(l){if(l!=="!"&&l!=="!!")return l;const n=`Verbatim tags aren't resolved, so ${l} is invalid.`;e.errors.push(new i.YAMLSemanticError(t,n))}else if(s==="!"&&!a){o=true}else{try{return resolveTagHandle(e,t)}catch(t){e.errors.push(t)}}}switch(s){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:case i.Type.QUOTE_DOUBLE:case i.Type.QUOTE_SINGLE:return i.defaultTags.STR;case i.Type.FLOW_MAP:case i.Type.MAP:return i.defaultTags.MAP;case i.Type.FLOW_SEQ:case i.Type.SEQ:return i.defaultTags.SEQ;case i.Type.PLAIN:return o?i.defaultTags.STR:null;default:return null}}function resolveByTagName(e,t,n){const{tags:i}=e.schema;const s=[];for(const o of i){if(o.tag===n){if(o.test)s.push(o);else{const n=o.resolve(e,t);return n instanceof Collection?n:new Scalar(n)}}}const o=resolveString(e,t);if(typeof o==="string"&&s.length>0)return resolveScalar(o,s,i.scalarFallback);return null}function getFallbackTagName({type:e}){switch(e){case i.Type.FLOW_MAP:case i.Type.MAP:return i.defaultTags.MAP;case i.Type.FLOW_SEQ:case i.Type.SEQ:return i.defaultTags.SEQ;default:return i.defaultTags.STR}}function resolveTag(e,t,n){try{const i=resolveByTagName(e,t,n);if(i){if(n&&t.tag)i.tag=n;return i}}catch(n){if(!n.source)n.source=t;e.errors.push(n);return null}try{const s=getFallbackTagName(t);if(!s)throw new Error(`The tag ${n} is unavailable`);const o=`The tag ${n} is unavailable, falling back to ${s}`;e.warnings.push(new i.YAMLWarning(t,o));const a=resolveByTagName(e,t,s);a.tag=n;return a}catch(n){const s=new i.YAMLReferenceError(t,n.message);s.stack=n.stack;e.errors.push(s);return null}}const isCollectionItem=e=>{if(!e)return false;const{type:t}=e;return t===i.Type.MAP_KEY||t===i.Type.MAP_VALUE||t===i.Type.SEQ_ITEM};function resolveNodeProps(e,t){const n={before:[],after:[]};let s=false;let o=false;const a=isCollectionItem(t.context.parent)?t.context.parent.props.concat(t.props):t.props;for(const{start:l,end:u}of a){switch(t.context.src[l]){case i.Char.COMMENT:{if(!t.commentHasRequiredWhitespace(l)){const n="Comments must be separated from other tokens by white space characters";e.push(new i.YAMLSemanticError(t,n))}const{header:s,valueRange:o}=t;const a=o&&(l>o.start||s&&l>s.start)?n.after:n.before;a.push(t.context.src.slice(l+1,u));break}case i.Char.ANCHOR:if(s){const n="A node can have at most one anchor";e.push(new i.YAMLSemanticError(t,n))}s=true;break;case i.Char.TAG:if(o){const n="A node can have at most one tag";e.push(new i.YAMLSemanticError(t,n))}o=true;break}}return{comments:n,hasAnchor:s,hasTag:o}}function resolveNodeValue(e,t){const{anchors:n,errors:s,schema:o}=e;if(t.type===i.Type.ALIAS){const e=t.rawValue;const o=n.getNode(e);if(!o){const n=`Aliased anchor not found: ${e}`;s.push(new i.YAMLReferenceError(t,n));return null}const a=new Alias(o);n._cstAliases.push(a);return a}const a=resolveTagName(e,t);if(a)return resolveTag(e,t,a);if(t.type!==i.Type.PLAIN){const e=`Failed to resolve ${t.type} node here`;s.push(new i.YAMLSyntaxError(t,e));return null}try{const n=resolveString(e,t);return resolveScalar(n,o.tags,o.tags.scalarFallback)}catch(e){if(!e.source)e.source=t;s.push(e);return null}}function resolveNode(e,t){if(!t)return null;if(t.error)e.errors.push(t.error);const{comments:n,hasAnchor:s,hasTag:o}=resolveNodeProps(e.errors,t);if(s){const{anchors:n}=e;const i=t.anchor;const s=n.getNode(i);if(s)n.map[n.newName(i)]=s;n.map[i]=t}if(t.type===i.Type.ALIAS&&(s||o)){const n="An alias node must not specify any properties";e.errors.push(new i.YAMLSemanticError(t,n))}const a=resolveNodeValue(e,t);if(a){a.range=[t.range.start,t.range.end];if(e.options.keepCstNodes)a.cstNode=t;if(e.options.keepNodeTypes)a.type=t.type;const i=n.before.join("\n");if(i){a.commentBefore=a.commentBefore?`${a.commentBefore}\n${i}`:i}const s=n.after.join("\n");if(s)a.comment=a.comment?`${a.comment}\n${s}`:s}return t.resolved=a}function resolveMap(e,t){if(t.type!==i.Type.MAP&&t.type!==i.Type.FLOW_MAP){const n=`A ${t.type} node cannot be resolved as a mapping`;e.errors.push(new i.YAMLSyntaxError(t,n));return null}const{comments:n,items:o}=t.type===i.Type.FLOW_MAP?resolveFlowMapItems(e,t):resolveBlockMapItems(e,t);const a=new YAMLMap;a.items=o;resolveComments(a,n);let l=false;for(let n=0;n{if(e instanceof Alias){const{type:t}=e.source;if(t===i.Type.MAP||t===i.Type.FLOW_MAP)return false;return a="Merge nodes aliases can only point to maps"}return a="Merge nodes can only have Alias nodes as values"}));if(a)e.errors.push(new i.YAMLSemanticError(t,a))}else{for(let s=n+1;s{if(s.length===0)return false;const{start:o}=s[0];if(t&&o>t.valueRange.start)return false;if(n[o]!==i.Char.COMMENT)return false;for(let t=e;t0){n=new i.PlainValue(i.Type.PLAIN,[]);n.context={parent:u,src:u.context.src};const e=u.range.start+1;n.range={start:e,end:e};n.valueRange={start:e,end:e};if(typeof u.range.origStart==="number"){const e=u.range.origStart+1;n.range.origStart=n.range.origEnd=e;n.valueRange.origStart=n.valueRange.origEnd=e}}const l=new Pair(o,resolveNode(e,n));resolvePairComment(u,l);s.push(l);if(o&&typeof a==="number"){if(u.range.start>a+1024)e.errors.push(getLongKeyError(t,o))}o=undefined;a=null}break;default:if(o!==undefined)s.push(new Pair(o));o=resolveNode(e,u);a=u.range.start;if(u.error)e.errors.push(u.error);e:for(let n=l+1;;++n){const s=t.items[n];switch(s&&s.type){case i.Type.BLANK_LINE:case i.Type.COMMENT:continue e;case i.Type.MAP_VALUE:break e;default:{const t="Implicit map keys need to be followed by map values";e.errors.push(new i.YAMLSemanticError(u,t));break e}}}if(u.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new i.YAMLSemanticError(u,t))}}}if(o!==undefined)s.push(new Pair(o));return{comments:n,items:s}}function resolveFlowMapItems(e,t){const n=[];const s=[];let o=undefined;let a=false;let l="{";for(let u=0;ue instanceof Pair&&e.key instanceof Collection))){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new i.YAMLWarning(t,n))}t.resolved=o;return o}function resolveBlockSeqItems(e,t){const n=[];const s=[];for(let o=0;ol+1024)e.errors.push(getLongKeyError(t,a));const{src:s}=c.context;for(let t=l;t{"use strict";var i=n(5215);var s=n(4227);const o={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const n=s.resolveString(e,t);if(typeof Buffer==="function"){return Buffer.from(n,"base64")}else if(typeof atob==="function"){const e=atob(n.replace(/[\n\r]/g,""));const t=new Uint8Array(e.length);for(let n=0;n{let u;if(typeof Buffer==="function"){u=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64")}else if(typeof btoa==="function"){let e="";for(let t=0;t1){const e="Each pair must have its own sequence indicator";throw new i.YAMLSemanticError(t,e)}const e=o.items[0]||new s.Pair;if(o.commentBefore)e.commentBefore=e.commentBefore?`${o.commentBefore}\n${e.commentBefore}`:o.commentBefore;if(o.comment)e.comment=e.comment?`${o.comment}\n${e.comment}`:o.comment;o=e}n.items[e]=o instanceof s.Pair?o:new s.Pair(o)}return n}function createPairs(e,t,n){const i=new s.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";for(const s of t){let t,o;if(Array.isArray(s)){if(s.length===2){t=s[0];o=s[1]}else throw new TypeError(`Expected [key, value] tuple: ${s}`)}else if(s&&s instanceof Object){const e=Object.keys(s);if(e.length===1){t=e[0];o=s[t]}else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else{t=s}const a=e.createPair(t,o,n);i.items.push(a)}return i}const a={default:false,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs};class YAMLOMap extends s.YAMLSeq{constructor(){super();i._defineProperty(this,"add",s.YAMLMap.prototype.add.bind(this));i._defineProperty(this,"delete",s.YAMLMap.prototype.delete.bind(this));i._defineProperty(this,"get",s.YAMLMap.prototype.get.bind(this));i._defineProperty(this,"has",s.YAMLMap.prototype.has.bind(this));i._defineProperty(this,"set",s.YAMLMap.prototype.set.bind(this));this.tag=YAMLOMap.tag}toJSON(e,t){const n=new Map;if(t&&t.onCreate)t.onCreate(n);for(const e of this.items){let i,o;if(e instanceof s.Pair){i=s.toJSON(e.key,"",t);o=s.toJSON(e.value,i,t)}else{i=s.toJSON(e,"",t)}if(n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,o)}return n}}i._defineProperty(YAMLOMap,"tag","tag:yaml.org,2002:omap");function parseOMap(e,t){const n=parsePairs(e,t);const o=[];for(const{key:e}of n.items){if(e instanceof s.Scalar){if(o.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new i.YAMLSemanticError(t,e)}else{o.push(e.value)}}}return Object.assign(new YAMLOMap,n)}function createOMap(e,t,n){const i=createPairs(e,t,n);const s=new YAMLOMap;s.items=i.items;return s}const l={identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap};class YAMLSet extends s.YAMLMap{constructor(){super();this.tag=YAMLSet.tag}add(e){const t=e instanceof s.Pair?e:new s.Pair(e);const n=s.findPair(this.items,t.key);if(!n)this.items.push(t)}get(e,t){const n=s.findPair(this.items,e);return!t&&n instanceof s.Pair?n.key instanceof s.Scalar?n.key.value:n.key:n}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 n=s.findPair(this.items,e);if(n&&!t){this.items.splice(this.items.indexOf(n),1)}else if(!n&&t){this.items.push(new s.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);else throw new Error("Set items must all have null values")}}i._defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,t){const n=s.resolveMap(e,t);if(!n.hasAllNullValues())throw new i.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new YAMLSet,n)}function createSet(e,t,n){const i=new YAMLSet;for(const s of t)i.items.push(e.createPair(s,null,n));return i}const u={identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet};const parseSexagesimal=(e,t)=>{const n=t.split(":").reduce(((e,t)=>e*60+Number(t)),0);return e==="-"?-n:n};const stringifySexagesimal=({value:e})=>{if(isNaN(e)||!isFinite(e))return s.stringifyNumber(e);let t="";if(e<0){t="-";e=Math.abs(e)}const n=[e%60];if(e<60){n.unshift(0)}else{e=Math.round((e-n[0])/60);n.unshift(e%60);if(e>=60){e=Math.round((e-n[0])/60);n.unshift(e)}}return t+n.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")};const c={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>parseSexagesimal(t,n.replace(/_/g,"")),stringify:stringifySexagesimal};const f={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,t,n)=>parseSexagesimal(t,n.replace(/_/g,"")),stringify:stringifySexagesimal};const p={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,t,n,i,s,o,a,l,u)=>{if(l)l=(l+"00").substr(1,3);let c=Date.UTC(t,n-1,i,s||0,o||0,a||0,l||0);if(u&&u!=="Z"){let e=parseSexagesimal(u[0],u.slice(1));if(Math.abs(e)<30)e*=60;c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function shouldWarn(e){const t=typeof process!=="undefined"&&process.env||{};if(e){if(typeof YAML_SILENCE_DEPRECATION_WARNINGS!=="undefined")return!YAML_SILENCE_DEPRECATION_WARNINGS;return!t.YAML_SILENCE_DEPRECATION_WARNINGS}if(typeof YAML_SILENCE_WARNINGS!=="undefined")return!YAML_SILENCE_WARNINGS;return!t.YAML_SILENCE_WARNINGS}function warn(e,t){if(shouldWarn(false)){const n=typeof process!=="undefined"&&process.emitWarning;if(n)n(e,t);else{console.warn(t?`${t}: ${e}`:e)}}}function warnFileDeprecation(e){if(shouldWarn(true)){const t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");warn(`The endpoint 'yaml/${t}' will be removed in a future release.`,"DeprecationWarning")}}const h={};function warnOptionDeprecation(e,t){if(!h[e]&&shouldWarn(true)){h[e]=true;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".";warn(n,"DeprecationWarning")}}t.binary=o;t.floatTime=f;t.intTime=c;t.omap=l;t.pairs=a;t.set=u;t.timestamp=p;t.warn=warn;t.warnFileDeprecation=warnFileDeprecation;t.warnOptionDeprecation=warnOptionDeprecation},3552:(e,t,n)=>{e.exports=n(5065).YAML},1581:(e,t,n)=>{const i=n(2186);const s=n(1383).valid;const o=n(4492);e.exports=async(e,t)=>{let n,a,l;if(t){[n,a,l]=t.split(".");switch(e){case"major":n=parseInt(n,10)+1;a=0;l=0;break;case"minor":a=parseInt(a,10)+1;l=0;break;default:l=parseInt(l,10)+1}}else{let e=s(i.getInput("fallback-version"));if(e){[n,a,l]=e.split(".")}else{n=0;a=1;l=0}i.info(`The version could not be detected, using fallback version '${n}.${a}.${l}'.`)}const u=i.getInput("pre-changelog-generation");let c=`${n}.${a}.${l}`;if(u){const e=o(u);if(e&&e.preVersionGeneration){const t=await e.preVersionGeneration(c);if(t){i.info(`Using modified version "${t}"`);c=t}}}return c}},1749:(e,t,n)=>{const i=n(5747);const s=n(9461);const getChangelogStream=(e,t,n,i,o)=>s({preset:t,releaseCount:parseInt(i,10),tagPrefix:e,config:o},{version:n,currentTag:`${e}${n}`},{},o&&o.parserOpts,o&&o.writerOpts);e.exports=getChangelogStream;e.exports.generateStringChangelog=(e,t,n,i,s)=>new Promise(((o,a)=>{const l=getChangelogStream(e,t,n,i,s);let u="";l.on("data",(e=>{u+=e.toString()})).on("end",(()=>o(u)))}));e.exports.generateFileChangelog=(e,t,n,s,o,a)=>new Promise((l=>{const u=getChangelogStream(e,t,n,o,a);u.pipe(i.createWriteStream(s)).on("finish",l)}))},4881:(e,t,n)=>{const i=n(2186);const s=n(1514);const o=n(2357);const{GITHUB_REPOSITORY:a,GITHUB_REF:l,ENV:u}=process.env;const c=l.replace("refs/heads/","");e.exports=new class Git{commandsRun=[];constructor(){const e=i.getInput("github-token");i.setSecret(e);const t=i.getInput("git-user-name");const n=i.getInput("git-user-email");if(u==="dont-use-git"){this.exec=e=>{const t=`git ${e}`;console.log(`Skipping "${t}" because of test env`);if(!t.includes("git remote set-url origin")){this.commandsRun.push(t)}}}this.config("user.name",t);this.config("user.email",n);if(e){this.updateOrigin(`https://x-access-token:${e}@github.com/${a}.git`)}}exec=e=>new Promise((async(t,n)=>{let i="";const o={listeners:{stdout:e=>{i+=e.toString()}}};const a=await s.exec(`git ${e}`,null,o);if(a===0){t(i)}else{n(`Command "git ${e}" exited with code ${a}.`)}}));config=(e,t)=>this.exec(`config ${e} "${t}"`);add=e=>this.exec(`add ${e}`);commit=e=>this.exec(`commit -m "${e}"`);pull=async()=>{const e=["pull"];if(await this.isShallow()){e.push("--unshallow")}e.push("--tags");e.push(i.getInput("git-pull-method"));return this.exec(e.join(" "))};push=()=>this.exec(`push origin ${c} --follow-tags`);isShallow=async()=>{if(u==="dont-use-git"){return false}const e=await this.exec("rev-parse --is-shallow-repository");return e.trim().replace("\n","")==="true"};updateOrigin=e=>this.exec(`remote set-url origin ${e}`);createTag=e=>this.exec(`tag -a ${e} -m "${e}"`);testHistory=()=>{if(u==="dont-use-git"){const{EXPECTED_TAG:e,SKIPPED_COMMIT:t,EXPECTED_NO_PUSH:n}=process.env;const i=['git config user.name "Conventional Changelog Action"','git config user.email "conventional.changelog.action@github.com"',"git pull --tags --ff-only"];if(!t){i.push("git add .");i.push(`git commit -m "chore(release): ${e}"`)}i.push(`git tag -a ${e} -m "${e}"`);if(!n){i.push(`git push origin ${c} --follow-tags`)}o.deepStrictEqual(this.commandsRun,i)}}}},4492:(e,t,n)=>{const i=n(2186);const s=n(5622);const o=n(5747);e.exports=e=>{const t=s.resolve(process.cwd(),e);if(o.existsSync(t)){i.info(`Loading "${t}" script`);return require(t)}i.error(`Tried to load "${t}" script but it does not exists!`);return undefined}},3030:(e,t,n)=>{const i=n(2186);const s=n(5747);e.exports=class BaseVersioning{fileLocation=null;versionPath=null;newVersion=null;init=(e,t)=>{this.fileLocation=e;this.versionPath=t};read=()=>{if(s.existsSync(this.fileLocation)){return s.readFileSync(this.fileLocation,"utf8")}i.warning(`Tried to read "${this.fileLocation}" but file does not exist!`);return""};bump=e=>{throw new Error("Implement bump logic in class!")};update=e=>s.writeFileSync(this.fileLocation,e)}},1230:(e,t,n)=>{const i=n(2186);const s=n(2408);const o=n(3030);const a=n(1581);e.exports=class Git extends o{bump=e=>new Promise((t=>{const n=i.getInput("tag-prefix");s({tagPrefix:n},(async(i,s)=>{const o=s.length>0?s.shift().replace(n,""):null;this.newVersion=await a(e,o);t()}))}))}},6286:(e,t,n)=>{const i=n(757);const s=n(1230);const o=n(5731);const a=n(3636);e.exports=e=>{switch(e.toLowerCase()){case"json":return new i;case"yaml":case"yml":return new o;case"toml":return new a;case"git":return new s;default:return null}}},757:(e,t,n)=>{const i=n(2186);const s=n(7934);const o=n(3030);const a=n(1581);e.exports=class Json extends o{bump=async e=>{const t=this.read();let n;try{n=JSON.parse(t)}catch(e){i.startGroup(`Error when parsing the file '${this.fileLocation}'`);i.info(`File-Content: ${t}`);i.info(e);i.endGroup();n={}}const o=s.get(n,this.versionPath,null);this.newVersion=await a(e,o);i.info(`Bumped file "${this.fileLocation}" from "${o}" to "${this.newVersion}"`);s.set(n,this.versionPath,this.newVersion);this.update(JSON.stringify(n,null,2))}}},3636:(e,t,n)=>{const i=n(2186);const s=n(7934);const o=n(2901);const a=n(3030);const l=n(1581);e.exports=class Toml extends a{bump=async e=>{const t=this.read();const n=o.parse(t);const a=s.get(n,this.versionPath,null);this.newVersion=await l(e,a);if(a){const e=this.versionPath.split(".").pop();i.info(`Bumped file "${this.fileLocation}" from "${a}" to "${this.newVersion}"`);this.update(t.replace(`${e} = "${a}"`,`${e} = "${this.newVersion}"`))}else{s.set(n,this.versionPath,this.newVersion);this.update(o.stringify(n))}}}},5731:(e,t,n)=>{const i=n(2186);const s=n(7934);const o=n(3552);const a=n(3030);const l=n(1581);e.exports=class Yaml extends a{bump=async e=>{const t=this.read();const n=o.parse(t)||{};const a=s.get(n,this.versionPath,null);this.newVersion=await l(e,a);if(a){const e=this.versionPath.split(".").pop();i.info(`Bumped file "${this.fileLocation}" from "${a}" to "${this.newVersion}"`);this.update(t.replace(`${e}: '${a}'`,`${e}: '${this.newVersion}'`).replace(`${e}: "${a}"`,`${e}: "${this.newVersion}"`).replace(`${e}: ${a}`,`${e}: ${this.newVersion}`))}else{s.set(n,this.versionPath,this.newVersion);this.update(o.stringify(n))}}}},6035:e=>{"use strict";e.exports=JSON.parse('{"issue":"issue","commit":"commits","referenceActions":["close","closes","closed","closing","fix","fixes","fixed","fixing","resolve","resolves","resolved","resolving"],"issuePrefixes":["#"]}')},8560:e=>{"use strict";e.exports=JSON.parse('{"issue":"issues","commit":"commit","referenceActions":["close","closes","closed","fix","fixes","fixed","resolve","resolves","resolved"],"issuePrefixes":["#","gh-"]}')},130:e=>{"use strict";e.exports=JSON.parse('{"issue":"issues","commit":"commit","referenceActions":["close","closes","closed","closing","fix","fixes","fixed","fixing"],"issuePrefixes":["#"]}')},3991:e=>{"use strict";e.exports=JSON.parse('{"assert":true,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16","async_hooks":">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],"buffer_ieee754":"< 0.9.7","buffer":true,"node:buffer":[">= 14.18 && < 15",">= 16"],"child_process":true,"node:child_process":[">= 14.18 && < 15",">= 16"],"cluster":true,"node:cluster":[">= 14.18 && < 15",">= 16"],"console":true,"node:console":[">= 14.18 && < 15",">= 16"],"constants":true,"node:constants":[">= 14.18 && < 15",">= 16"],"crypto":true,"node:crypto":[">= 14.18 && < 15",">= 16"],"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"node:dgram":[">= 14.18 && < 15",">= 16"],"diagnostics_channel":[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],"dns":true,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16","domain":">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],"events":true,"node:events":[">= 14.18 && < 15",">= 16"],"freelist":"< 6","fs":true,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],"_http_agent":">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],"_http_client":">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],"_http_common":">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],"_http_incoming":">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],"_http_outgoing":">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],"_http_server":">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],"http":true,"node:http":[">= 14.18 && < 15",">= 16"],"http2":">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],"https":true,"node:https":[">= 14.18 && < 15",">= 16"],"inspector":">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"_linklist":"< 8","module":true,"node:module":[">= 14.18 && < 15",">= 16"],"net":true,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12","os":true,"node:os":[">= 14.18 && < 15",">= 16"],"path":true,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16","perf_hooks":">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],"process":">= 1","node:process":[">= 14.18 && < 15",">= 16"],"punycode":true,"node:punycode":[">= 14.18 && < 15",">= 16"],"querystring":true,"node:querystring":[">= 14.18 && < 15",">= 16"],"readline":true,"node:readline":[">= 14.18 && < 15",">= 16"],"repl":true,"node:repl":[">= 14.18 && < 15",">= 16"],"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],"_stream_transform":">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],"_stream_wrap":">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],"_stream_passthrough":">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],"_stream_readable":">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],"_stream_writable":">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],"stream":true,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5","string_decoder":true,"node:string_decoder":[">= 14.18 && < 15",">= 16"],"sys":[">= 0.6 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"timers":true,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16","_tls_common":">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],"_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],"tls":true,"node:tls":[">= 14.18 && < 15",">= 16"],"trace_events":">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],"tty":true,"node:tty":[">= 14.18 && < 15",">= 16"],"url":true,"node:url":[">= 14.18 && < 15",">= 16"],"util":true,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8":">= 1","node:v8":[">= 14.18 && < 15",">= 16"],"vm":true,"node:vm":[">= 14.18 && < 15",">= 16"],"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],"zlib":true,"node:zlib":[">= 14.18 && < 15",">= 16"]}')},9043:e=>{"use strict";e.exports=JSON.parse('{"topLevel":{"dependancies":"dependencies","dependecies":"dependencies","depdenencies":"dependencies","devEependencies":"devDependencies","depends":"dependencies","dev-dependencies":"devDependencies","devDependences":"devDependencies","devDepenencies":"devDependencies","devdependencies":"devDependencies","repostitory":"repository","repo":"repository","prefereGlobal":"preferGlobal","hompage":"homepage","hampage":"homepage","autohr":"author","autor":"author","contributers":"contributors","publicationConfig":"publishConfig","script":"scripts"},"bugs":{"web":"url","name":"url"},"script":{"server":"start","tests":"test"}}')},8402:e=>{"use strict";e.exports=JSON.parse('{"repositories":"\'repositories\' (plural) Not supported. Please pick one as the \'repository\' field","missingRepository":"No repository field.","brokenGitUrl":"Probably broken git url: %s","nonObjectScripts":"scripts must be an object","nonStringScript":"script values must be string commands","nonArrayFiles":"Invalid \'files\' member","invalidFilename":"Invalid filename in \'files\' list: %s","nonArrayBundleDependencies":"Invalid \'bundleDependencies\' list. Must be array of package names","nonStringBundleDependency":"Invalid bundleDependencies member: %s","nonDependencyBundleDependency":"Non-dependency in bundleDependencies: %s","nonObjectDependencies":"%s field must be an object","nonStringDependency":"Invalid dependency: %s %s","deprecatedArrayDependencies":"specifying %s as array is deprecated","deprecatedModules":"modules field is deprecated","nonArrayKeywords":"keywords should be an array of strings","nonStringKeyword":"keywords should be an array of strings","conflictingName":"%s is also the name of a node core module.","nonStringDescription":"\'description\' field should be a string","missingDescription":"No description","missingReadme":"No README data","missingLicense":"No license field.","nonEmailUrlBugsString":"Bug string field must be url, email, or {email,url}","nonUrlBugsUrlField":"bugs.url field must be a string url. Deleted.","nonEmailBugsEmailField":"bugs.email field must be a string email. Deleted.","emptyNormalizedBugs":"Normalized value of bugs field is an empty object. Deleted.","nonUrlHomepage":"homepage field must be a string url. Deleted.","invalidLicense":"license should be a valid SPDX license expression","typo":"%s should probably be %s."}')},6659:e=>{"use strict";e.exports=JSON.parse('{"topLevel":{"dependancies":"dependencies","dependecies":"dependencies","depdenencies":"dependencies","devEependencies":"devDependencies","depends":"dependencies","dev-dependencies":"devDependencies","devDependences":"devDependencies","devDepenencies":"devDependencies","devdependencies":"devDependencies","repostitory":"repository","repo":"repository","prefereGlobal":"preferGlobal","hompage":"homepage","hampage":"homepage","autohr":"author","autor":"author","contributers":"contributors","publicationConfig":"publishConfig","script":"scripts"},"bugs":{"web":"url","name":"url"},"script":{"server":"start","tests":"test"}}')},4136:e=>{"use strict";e.exports=JSON.parse('{"repositories":"\'repositories\' (plural) Not supported. Please pick one as the \'repository\' field","missingRepository":"No repository field.","brokenGitUrl":"Probably broken git url: %s","nonObjectScripts":"scripts must be an object","nonStringScript":"script values must be string commands","nonArrayFiles":"Invalid \'files\' member","invalidFilename":"Invalid filename in \'files\' list: %s","nonArrayBundleDependencies":"Invalid \'bundleDependencies\' list. Must be array of package names","nonStringBundleDependency":"Invalid bundleDependencies member: %s","nonDependencyBundleDependency":"Non-dependency in bundleDependencies: %s","nonObjectDependencies":"%s field must be an object","nonStringDependency":"Invalid dependency: %s %s","deprecatedArrayDependencies":"specifying %s as array is deprecated","deprecatedModules":"modules field is deprecated","nonArrayKeywords":"keywords should be an array of strings","nonStringKeyword":"keywords should be an array of strings","conflictingName":"%s is also the name of a node core module.","nonStringDescription":"\'description\' field should be a string","missingDescription":"No description","missingReadme":"No README data","missingLicense":"No license field.","nonEmailUrlBugsString":"Bug string field must be url, email, or {email,url}","nonUrlBugsUrlField":"bugs.url field must be a string url. Deleted.","nonEmailBugsEmailField":"bugs.email field must be a string email. Deleted.","emptyNormalizedBugs":"Normalized value of bugs field is an empty object. Deleted.","nonUrlHomepage":"homepage field must be a string url. Deleted.","invalidLicense":"license should be a valid SPDX license expression","typo":"%s should probably be %s."}')},5537:e=>{"use strict";e.exports=JSON.parse('{"assert":true,"assert/strict":">= 15","async_hooks":">= 8","buffer_ieee754":"< 0.9.7","buffer":true,"child_process":true,"cluster":true,"console":true,"constants":true,"crypto":true,"_debug_agent":">= 1 && < 8","_debugger":"< 8","dgram":true,"diagnostics_channel":">= 15.1","dns":true,"dns/promises":">= 15","domain":">= 0.7.12","events":true,"freelist":"< 6","fs":true,"fs/promises":[">= 10 && < 10.1",">= 14"],"_http_agent":">= 0.11.1","_http_client":">= 0.11.1","_http_common":">= 0.11.1","_http_incoming":">= 0.11.1","_http_outgoing":">= 0.11.1","_http_server":">= 0.11.1","http":true,"http2":">= 8.8","https":true,"inspector":">= 8.0.0","_linklist":"< 8","module":true,"net":true,"node-inspect/lib/_inspect":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6.0 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6.0 && < 12","os":true,"path":true,"path/posix":">= 15.3","path/win32":">= 15.3","perf_hooks":">= 8.5","process":">= 1","punycode":true,"querystring":true,"readline":true,"repl":true,"smalloc":">= 0.11.5 && < 3","_stream_duplex":">= 0.9.4","_stream_transform":">= 0.9.4","_stream_wrap":">= 1.4.1","_stream_passthrough":">= 0.9.4","_stream_readable":">= 0.9.4","_stream_writable":">= 0.9.4","stream":true,"stream/promises":">= 15","string_decoder":true,"sys":[">= 0.6 && < 0.7",">= 0.8"],"timers":true,"timers/promises":">= 15","_tls_common":">= 0.11.13","_tls_legacy":">= 0.11.3 && < 10","_tls_wrap":">= 0.11.3","tls":true,"trace_events":">= 10","tty":true,"url":true,"util":true,"util/types":">= 15.3","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/consarray":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/csvparser":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/logreader":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/profile_view":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8/tools/splaytree":[">= 4.4.0 && < 5",">= 5.2.0 && < 12"],"v8":">= 1","vm":true,"wasi":">= 13.4 && < 13.5","worker_threads":">= 11.7","zlib":true}')},9752:e=>{"use strict";e.exports=JSON.parse('["389-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-3.1","gnu-javamail-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","i2p-gpl-java-exception","Libtool-exception","Linux-syscall-note","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","Swift-exception","u-boot-exception-2.0","Universal-FOSS-exception-1.0","WxWindows-exception-3.1"]')},4185:e=>{"use strict";e.exports=JSON.parse('["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Nunit","StandardML-NJ","eCos-2.0","wxWindows"]')},2172:e=>{"use strict";e.exports=JSON.parse('["0BSD","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Abstyles","Adobe-2006","Adobe-Glyph","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-Protection","BSD-Source-Code","BSL-1.0","BUSL-1.1","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","BlueOak-1.0.0","Borceux","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-DE","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","ClArtistic","Condor-1.1","Crossword","CrystalStacker","Cube","D-FSL-1.0","DOC","DRL-1.0","DSDP","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Entessa","ErlPL-1.1","Eurosym","FSFAP","FSFUL","FSFULLR","FTL","Fair","Frameworx-1.0","FreeBSD-DOC","FreeImage","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","HPND","HPND-sell-variant","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IJG","IPA","IPL-1.0","ISC","ImageMagick","Imlib2","Info-ZIP","Intel","Intel-ACPI","Interbase-1.0","JPNIC","JSON","JasPer-2.0","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","Latex2e","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","MIT","MIT-0","MIT-CMU","MIT-Modern-Variant","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MITNFA","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-PL","MS-RL","MTLL","MakeIndex","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCGL-UK-2.0","NCSA","NGPL","NIST-PD","NIST-PD-fallback","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","Net-SNMP","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OML","OPL-1.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenSSL","PDDL-1.0","PHP-3.0","PHP-3.01","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","QPL-1.0","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","SAX-PD","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","TAPR-OHL-1.0","TCL","TCP-wrappers","TMate","TORQUE-1.1","TOSL","TU-Berlin-1.0","TU-Berlin-2.0","UCL-1.0","UPL-1.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Wsuipa","X11","XFree86-1.1","XSkat","Xerox","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.5","bzip2-1.0.6","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dvipdfm","eGenix","etalab-2.0","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","mpich2","psfrag","psutils","xinetd","xpp","zlib-acknowledgement"]')},2357:e=>{"use strict";e.exports=require("assert")},4293:e=>{"use strict";e.exports=require("buffer")},3129:e=>{"use strict";e.exports=require("child_process")},7619:e=>{"use strict";e.exports=require("constants")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},1765:e=>{"use strict";e.exports=require("process")},2413:e=>{"use strict";e.exports=require("stream")},4304:e=>{"use strict";e.exports=require("string_decoder")},8213:e=>{"use strict";e.exports=require("timers")},4016:e=>{"use strict";e.exports=require("tls")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var n=__webpack_module_cache__[e]={id:e,loaded:false,exports:{}};var i=true;try{__webpack_modules__[e].call(n.exports,n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete __webpack_module_cache__[e]}n.loaded=true;return n.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{const e=__nccwpck_require__(2186);const t=__nccwpck_require__(7011);const n=__nccwpck_require__(5622);const i=__nccwpck_require__(6286);const s=__nccwpck_require__(4881);const o=__nccwpck_require__(1749);const a=__nccwpck_require__(4492);async function handleVersioningByExtension(e,t,s,o){const a=i(e);if(a===null){throw new Error(`File extension "${e}" from file "${t}" is not supported`)}a.init(n.resolve(process.cwd(),t),s);await a.bump(o);return a}async function run(){try{const n=e.getInput("git-message");const i=e.getInput("git-user-name");const l=e.getInput("git-user-email");const u=e.getInput("git-push").toLowerCase()==="true";const c=e.getInput("tag-prefix");const f=!e.getInput("config-file-path")?e.getInput("preset"):"";const p=e.getInput("pre-commit");const h=e.getInput("output-file");const d=e.getInput("release-count");const m=e.getInput("version-file");const g=e.getInput("version-path");const y=e.getInput("skip-version-file").toLowerCase()==="true";const v=e.getInput("skip-commit").toLowerCase()==="true";const b=e.getInput("skip-on-empty").toLowerCase()==="true";const w=e.getInput("config-file-path");const S=e.getInput("pre-changelog-generation");e.info(`Using "${f}" preset`);e.info(`Using "${n}" as commit message`);e.info(`Using "${i}" as git user.name`);e.info(`Using "${l}" as git user.email`);e.info(`Using "${d}" release count`);e.info(`Using "${m}" as version file`);e.info(`Using "${g}" as version path`);e.info(`Using "${c}" as tag prefix`);e.info(`Using "${h}" as output file`);e.info(`Using "${w}" as config file`);if(p){e.info(`Using "${p}" as pre-commit script`)}if(S){e.info(`Using "${S}" as pre-changelog-generation script`)}e.info(`Skipping empty releases is "${b?"enabled":"disabled"}"`);e.info(`Skipping the update of the version file is "${y?"enabled":"disabled"}"`);e.info("Pull to make sure we have the full git history");await s.pull();const E=w&&a(w);t({preset:f,tagPrefix:c,config:E},(async(t,i)=>{if(t){e.setFailed(t.message);return}e.info(`Recommended release type: ${i.releaseType}`);if(i.reason){e.info(`Because: ${i.reason}`)}let l;if(y||v){e.info("Using GIT to determine the new version");const t=await handleVersioningByExtension("git",m,g,i.releaseType);l=t.newVersion}else{const t=m.split(",").map((e=>e.trim()));e.info(`Files to bump: ${t.join(", ")}`);const n=await Promise.all(t.map((t=>{const n=t.split(".").pop();e.info(`Bumping version to file "${t}" with extension "${n}"`);return handleVersioningByExtension(n,t,g,i.releaseType)})));l=n[0].newVersion}let w=`${c}${l}`;if(S){const t=a(S);if(t&&t.preTagGeneration){const n=await t.preTagGeneration(w);if(n){e.info(`Using modified tag "${n}"`);w=n}}}const _=await o.generateStringChangelog(c,f,l,1,E);e.info("Changelog generated");e.info(_);const O=_.split("\n").slice(3).join("\n").trim();if(b&&O===""){e.info("Generated changelog is empty and skip-on-empty has been activated so we skip this step");e.setOutput("skipped","true");return}e.info(`New version: ${l}`);if(h!=="false"){await o.generateFileChangelog(c,f,l,h,d,E)}if(!v){if(p){const e=a(p);if(e&&e.preCommit){await e.preCommit({tag:w,version:l})}}await s.add(".");await s.commit(n.replace("{version}",w))}await s.createTag(w);if(u){try{e.info("Push all changes");await s.push()}catch(t){console.error(t);e.setFailed(t);return}}else{e.info("We not going to push the GIT changes")}e.setOutput("changelog",_);e.setOutput("clean_changelog",O);e.setOutput("version",l);e.setOutput("tag",w);e.setOutput("skipped","false");try{s.testHistory()}catch(t){console.error(t);e.setFailed(t)}}))}catch(t){e.setFailed(t)}}run()})();module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/lib/template.hbs b/lib/template.hbs index 38e15d24..2c1349a6 100644 --- a/lib/template.hbs +++ b/lib/template.hbs @@ -1,16 +1,11 @@ {{> header}} {{#each commitGroups}} - -{{#if title}} -### {{title}} - -{{/if}} {{#each commits}} {{> commit root=@root}} {{/each}} - {{/each}} + {{> footer}} diff --git a/node_modules/.bin/JSONStream b/node_modules/.bin/JSONStream new file mode 120000 index 00000000..3983a36c --- /dev/null +++ b/node_modules/.bin/JSONStream @@ -0,0 +1 @@ +../JSONStream/bin.js \ No newline at end of file diff --git a/node_modules/.bin/commitlint b/node_modules/.bin/commitlint new file mode 120000 index 00000000..561e6ad6 --- /dev/null +++ b/node_modules/.bin/commitlint @@ -0,0 +1 @@ +../@commitlint/cli/cli.js \ No newline at end of file diff --git a/node_modules/.bin/conventional-changelog-writer b/node_modules/.bin/conventional-changelog-writer new file mode 120000 index 00000000..9ab139ea --- /dev/null +++ b/node_modules/.bin/conventional-changelog-writer @@ -0,0 +1 @@ +../conventional-changelog-writer/cli.js \ No newline at end of file diff --git a/node_modules/.bin/conventional-commits-parser b/node_modules/.bin/conventional-commits-parser new file mode 120000 index 00000000..4959532f --- /dev/null +++ b/node_modules/.bin/conventional-commits-parser @@ -0,0 +1 @@ +../conventional-commits-parser/cli.js \ No newline at end of file diff --git a/node_modules/.bin/conventional-recommended-bump b/node_modules/.bin/conventional-recommended-bump new file mode 120000 index 00000000..a54da613 --- /dev/null +++ b/node_modules/.bin/conventional-recommended-bump @@ -0,0 +1 @@ +../conventional-recommended-bump/cli.js \ No newline at end of file diff --git a/node_modules/.bin/get-pkg-repo b/node_modules/.bin/get-pkg-repo new file mode 120000 index 00000000..4935b8ae --- /dev/null +++ b/node_modules/.bin/get-pkg-repo @@ -0,0 +1 @@ +../get-pkg-repo/src/cli.js \ No newline at end of file diff --git a/node_modules/.bin/git-raw-commits b/node_modules/.bin/git-raw-commits new file mode 120000 index 00000000..22045fdc --- /dev/null +++ b/node_modules/.bin/git-raw-commits @@ -0,0 +1 @@ +../git-raw-commits/cli.js \ No newline at end of file diff --git a/node_modules/.bin/git-semver-tags b/node_modules/.bin/git-semver-tags new file mode 120000 index 00000000..1c854e01 --- /dev/null +++ b/node_modules/.bin/git-semver-tags @@ -0,0 +1 @@ +../git-semver-tags/cli.js \ No newline at end of file diff --git a/node_modules/.bin/handlebars b/node_modules/.bin/handlebars new file mode 120000 index 00000000..fb7d090f --- /dev/null +++ b/node_modules/.bin/handlebars @@ -0,0 +1 @@ +../handlebars/bin/handlebars \ No newline at end of file diff --git a/node_modules/.bin/husky-run b/node_modules/.bin/husky-run new file mode 120000 index 00000000..be5b5758 --- /dev/null +++ b/node_modules/.bin/husky-run @@ -0,0 +1 @@ +../husky/bin/run.js \ No newline at end of file diff --git a/node_modules/.bin/husky-upgrade b/node_modules/.bin/husky-upgrade new file mode 120000 index 00000000..81c2d28c --- /dev/null +++ b/node_modules/.bin/husky-upgrade @@ -0,0 +1 @@ +../husky/lib/upgrader/bin.js \ No newline at end of file diff --git a/node_modules/.bin/ncc b/node_modules/.bin/ncc new file mode 120000 index 00000000..e05914af --- /dev/null +++ b/node_modules/.bin/ncc @@ -0,0 +1 @@ +../@vercel/ncc/dist/ncc/cli.js \ No newline at end of file diff --git a/node_modules/.bin/node-which b/node_modules/.bin/node-which new file mode 120000 index 00000000..6f8415ec --- /dev/null +++ b/node_modules/.bin/node-which @@ -0,0 +1 @@ +../which/bin/node-which \ No newline at end of file diff --git a/node_modules/.bin/opencollective-postinstall b/node_modules/.bin/opencollective-postinstall new file mode 120000 index 00000000..ec1c6ccb --- /dev/null +++ b/node_modules/.bin/opencollective-postinstall @@ -0,0 +1 @@ +../opencollective-postinstall/index.js \ No newline at end of file diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver new file mode 120000 index 00000000..5aaadf42 --- /dev/null +++ b/node_modules/.bin/semver @@ -0,0 +1 @@ +../semver/bin/semver.js \ No newline at end of file diff --git a/node_modules/.bin/ts-node b/node_modules/.bin/ts-node new file mode 120000 index 00000000..b3ff94bc --- /dev/null +++ b/node_modules/.bin/ts-node @@ -0,0 +1 @@ +../ts-node/dist/bin.js \ No newline at end of file diff --git a/node_modules/.bin/ts-node-script b/node_modules/.bin/ts-node-script new file mode 120000 index 00000000..edc40b30 --- /dev/null +++ b/node_modules/.bin/ts-node-script @@ -0,0 +1 @@ +../ts-node/dist/bin-script.js \ No newline at end of file diff --git a/node_modules/.bin/ts-node-transpile-only b/node_modules/.bin/ts-node-transpile-only new file mode 120000 index 00000000..173710d0 --- /dev/null +++ b/node_modules/.bin/ts-node-transpile-only @@ -0,0 +1 @@ +../ts-node/dist/bin-transpile.js \ No newline at end of file diff --git a/node_modules/.bin/ts-script b/node_modules/.bin/ts-script new file mode 120000 index 00000000..7382912f --- /dev/null +++ b/node_modules/.bin/ts-script @@ -0,0 +1 @@ +../ts-node/dist/bin-script-deprecated.js \ No newline at end of file diff --git a/node_modules/.bin/uglifyjs b/node_modules/.bin/uglifyjs new file mode 120000 index 00000000..fef3468b --- /dev/null +++ b/node_modules/.bin/uglifyjs @@ -0,0 +1 @@ +../uglify-js/bin/uglifyjs \ No newline at end of file diff --git a/node_modules/@actions/core/LICENSE.md b/node_modules/@actions/core/LICENSE.md new file mode 100644 index 00000000..dbae2edb --- /dev/null +++ b/node_modules/@actions/core/LICENSE.md @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@actions/core/README.md b/node_modules/@actions/core/README.md new file mode 100644 index 00000000..8f227a83 --- /dev/null +++ b/node_modules/@actions/core/README.md @@ -0,0 +1,312 @@ +# `@actions/core` + +> Core functions for setting results, logging, registering secrets and exporting variables across actions + +## Usage + +### Import the package + +```js +// javascript +const core = require('@actions/core'); + +// typescript +import * as core from '@actions/core'; +``` + +#### Inputs/Outputs + +Action inputs can be read with `getInput` which returns a `string` or `getBooleanInput` which parses a boolean based on the [yaml 1.2 specification](https://yaml.org/spec/1.2/spec.html#id2804923). If `required` set to be false, the input should have a default value in `action.yml`. + +Outputs can be set with `setOutput` which makes them available to be mapped into inputs of other actions to ensure they are decoupled. + +```js +const myInput = core.getInput('inputName', { required: true }); +const myBooleanInput = core.getBooleanInput('booleanInputName', { required: true }); +const myMultilineInput = core.getMultilineInput('multilineInputName', { required: true }); +core.setOutput('outputKey', 'outputVal'); +``` + +#### Exporting variables + +Since each step runs in a separate process, you can use `exportVariable` to add it to this step and future steps environment blocks. + +```js +core.exportVariable('envVar', 'Val'); +``` + +#### Setting a secret + +Setting a secret registers the secret with the runner to ensure it is masked in logs. + +```js +core.setSecret('myPassword'); +``` + +#### PATH Manipulation + +To make a tool's path available in the path for the remainder of the job (without altering the machine or containers state), use `addPath`. The runner will prepend the path given to the jobs PATH. + +```js +core.addPath('/path/to/mytool'); +``` + +#### Exit codes + +You should use this library to set the failing exit code for your action. If status is not set and the script runs to completion, that will lead to a success. + +```js +const core = require('@actions/core'); + +try { + // Do stuff +} +catch (err) { + // setFailed logs the message and sets a failing exit code + core.setFailed(`Action failed with error ${err}`); +} +``` + +Note that `setNeutral` is not yet implemented in actions V2 but equivalent functionality is being planned. + +#### Logging + +Finally, this library provides some utilities for logging. Note that debug logging is hidden from the logs by default. This behavior can be toggled by enabling the [Step Debug Logs](../../docs/action-debugging.md#step-debug-logs). + +```js +const core = require('@actions/core'); + +const myInput = core.getInput('input'); +try { + core.debug('Inside try block'); + + if (!myInput) { + core.warning('myInput was not set'); + } + + if (core.isDebug()) { + // curl -v https://github.com + } else { + // curl https://github.com + } + + // Do stuff + core.info('Output to the actions build log') + + core.notice('This is a message that will also emit an annotation') +} +catch (err) { + core.error(`Error ${err}, action may still succeed though`); +} +``` + +This library can also wrap chunks of output in foldable groups. + +```js +const core = require('@actions/core') + +// Manually wrap output +core.startGroup('Do some function') +doSomeFunction() +core.endGroup() + +// Wrap an asynchronous function call +const result = await core.group('Do something async', async () => { + const response = await doSomeHTTPRequest() + return response +}) +``` + +#### Annotations + +This library has 3 methods that will produce [annotations](https://docs.github.com/en/rest/reference/checks#create-a-check-run). +```js +core.error('This is a bad error. This will also fail the build.') + +core.warning('Something went wrong, but it\'s not bad enough to fail the build.') + +core.notice('Something happened that you might want to know about.') +``` + +These will surface to the UI in the Actions page and on Pull Requests. They look something like this: + +![Annotations Image](../../docs/assets/annotations.png) + +These annotations can also be attached to particular lines and columns of your source files to show exactly where a problem is occuring. + +These options are: +```typescript +export interface AnnotationProperties { + /** + * A title for the annotation. + */ + title?: string + + /** + * The name of the file for which the annotation should be created. + */ + file?: string + + /** + * The start line for the annotation. + */ + startLine?: number + + /** + * The end line for the annotation. Defaults to `startLine` when `startLine` is provided. + */ + endLine?: number + + /** + * The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values. + */ + startColumn?: number + + /** + * The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values. + * Defaults to `startColumn` when `startColumn` is provided. + */ + endColumn?: number +} +``` + +#### Styling output + +Colored output is supported in the Action logs via standard [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code). 3/4 bit, 8 bit and 24 bit colors are all supported. + +Foreground colors: + +```js +// 3/4 bit +core.info('\u001b[35mThis foreground will be magenta') + +// 8 bit +core.info('\u001b[38;5;6mThis foreground will be cyan') + +// 24 bit +core.info('\u001b[38;2;255;0;0mThis foreground will be bright red') +``` + +Background colors: + +```js +// 3/4 bit +core.info('\u001b[43mThis background will be yellow'); + +// 8 bit +core.info('\u001b[48;5;6mThis background will be cyan') + +// 24 bit +core.info('\u001b[48;2;255;0;0mThis background will be bright red') +``` + +Special styles: + +```js +core.info('\u001b[1mBold text') +core.info('\u001b[3mItalic text') +core.info('\u001b[4mUnderlined text') +``` + +ANSI escape codes can be combined with one another: + +```js +core.info('\u001b[31;46mRed foreground with a cyan background and \u001b[1mbold text at the end'); +``` + +> Note: Escape codes reset at the start of each line + +```js +core.info('\u001b[35mThis foreground will be magenta') +core.info('This foreground will reset to the default') +``` + +Manually typing escape codes can be a little difficult, but you can use third party modules such as [ansi-styles](https://github.com/chalk/ansi-styles). + +```js +const style = require('ansi-styles'); +core.info(style.color.ansi16m.hex('#abcdef') + 'Hello world!') +``` + +#### Action state + +You can use this library to save state and get state for sharing information between a given wrapper action: + +**action.yml**: + +```yaml +name: 'Wrapper action sample' +inputs: + name: + default: 'GitHub' +runs: + using: 'node12' + main: 'main.js' + post: 'cleanup.js' +``` + +In action's `main.js`: + +```js +const core = require('@actions/core'); + +core.saveState("pidToKill", 12345); +``` + +In action's `cleanup.js`: + +```js +const core = require('@actions/core'); + +var pid = core.getState("pidToKill"); + +process.kill(pid); +``` + +#### OIDC Token + +You can use these methods to interact with the GitHub OIDC provider and get a JWT ID token which would help to get access token from third party cloud providers. + +**Method Name**: getIDToken() + +**Inputs** + +audience : optional + +**Outputs** + +A [JWT](https://jwt.io/) ID Token + +In action's `main.ts`: +```js +const core = require('@actions/core'); +async function getIDTokenAction(): Promise { + + const audience = core.getInput('audience', {required: false}) + + const id_token1 = await core.getIDToken() // ID Token with default audience + const id_token2 = await core.getIDToken(audience) // ID token with custom audience + + // this id_token can be used to get access token from third party cloud providers +} +getIDTokenAction() +``` + +In action's `actions.yml`: + +```yaml +name: 'GetIDToken' +description: 'Get ID token from Github OIDC provider' +inputs: + audience: + description: 'Audience for which the ID token is intended for' + required: false +outputs: + id_token1: + description: 'ID token obtained from OIDC provider' + id_token2: + description: 'ID token obtained from OIDC provider' +runs: + using: 'node12' + main: 'dist/index.js' +``` \ No newline at end of file diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json new file mode 100644 index 00000000..bfa29e3a --- /dev/null +++ b/node_modules/@actions/core/package.json @@ -0,0 +1,48 @@ +{ + "name": "@actions/core", + "version": "1.6.0", + "description": "Actions core lib", + "keywords": [ + "github", + "actions", + "core" + ], + "homepage": "https://github.com/actions/toolkit/tree/main/packages/core", + "license": "MIT", + "main": "lib/core.js", + "types": "lib/core.d.ts", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "files": [ + "lib", + "!.DS_Store" + ], + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/actions/toolkit.git", + "directory": "packages/core" + }, + "scripts": { + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", + "test": "echo \"Error: run tests from root\" && exit 1", + "tsc": "tsc" + }, + "bugs": { + "url": "https://github.com/actions/toolkit/issues" + }, + "dependencies": { + "@actions/http-client": "^1.0.11" + }, + "devDependencies": { + "@types/node": "^12.0.2" + } + +,"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.6.0.tgz" +,"_integrity": "sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw==" +,"_from": "@actions/core@1.6.0" +} \ No newline at end of file diff --git a/node_modules/@actions/exec/LICENSE.md b/node_modules/@actions/exec/LICENSE.md new file mode 100644 index 00000000..dbae2edb --- /dev/null +++ b/node_modules/@actions/exec/LICENSE.md @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@actions/exec/README.md b/node_modules/@actions/exec/README.md new file mode 100644 index 00000000..53a6bf52 --- /dev/null +++ b/node_modules/@actions/exec/README.md @@ -0,0 +1,57 @@ +# `@actions/exec` + +## Usage + +#### Basic + +You can use this package to execute tools in a cross platform way: + +```js +const exec = require('@actions/exec'); + +await exec.exec('node index.js'); +``` + +#### Args + +You can also pass in arg arrays: + +```js +const exec = require('@actions/exec'); + +await exec.exec('node', ['index.js', 'foo=bar']); +``` + +#### Output/options + +Capture output or specify [other options](https://github.com/actions/toolkit/blob/d9347d4ab99fd507c0b9104b2cf79fb44fcc827d/packages/exec/src/interfaces.ts#L5): + +```js +const exec = require('@actions/exec'); + +let myOutput = ''; +let myError = ''; + +const options = {}; +options.listeners = { + stdout: (data: Buffer) => { + myOutput += data.toString(); + }, + stderr: (data: Buffer) => { + myError += data.toString(); + } +}; +options.cwd = './lib'; + +await exec.exec('node', ['index.js', 'foo=bar'], options); +``` + +#### Exec tools not in the PATH + +You can specify the full path for tools not in the PATH: + +```js +const exec = require('@actions/exec'); + +await exec.exec('"/path/to/my-tool"', ['arg1']); +``` diff --git a/node_modules/@actions/exec/package.json b/node_modules/@actions/exec/package.json new file mode 100644 index 00000000..d80a1609 --- /dev/null +++ b/node_modules/@actions/exec/package.json @@ -0,0 +1,45 @@ +{ + "name": "@actions/exec", + "version": "1.1.0", + "description": "Actions exec lib", + "keywords": [ + "github", + "actions", + "exec" + ], + "homepage": "https://github.com/actions/toolkit/tree/main/packages/exec", + "license": "MIT", + "main": "lib/exec.js", + "types": "lib/exec.d.ts", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "files": [ + "lib", + "!.DS_Store" + ], + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/actions/toolkit.git", + "directory": "packages/exec" + }, + "scripts": { + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", + "test": "echo \"Error: run tests from root\" && exit 1", + "tsc": "tsc" + }, + "bugs": { + "url": "https://github.com/actions/toolkit/issues" + }, + "dependencies": { + "@actions/io": "^1.0.1" + } + +,"_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.1.0.tgz" +,"_integrity": "sha512-LImpN9AY0J1R1mEYJjVJfSZWU4zYOlEcwSTgPve1rFQqK5AwrEs6uWW5Rv70gbDIQIAUwI86z6B+9mPK4w9Sbg==" +,"_from": "@actions/exec@1.1.0" +} \ No newline at end of file diff --git a/node_modules/@actions/http-client/LICENSE b/node_modules/@actions/http-client/LICENSE new file mode 100644 index 00000000..5823a51c --- /dev/null +++ b/node_modules/@actions/http-client/LICENSE @@ -0,0 +1,21 @@ +Actions Http Client for Node.js + +Copyright (c) GitHub, Inc. + +All rights reserved. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@actions/http-client/README.md b/node_modules/@actions/http-client/README.md new file mode 100644 index 00000000..be61eb35 --- /dev/null +++ b/node_modules/@actions/http-client/README.md @@ -0,0 +1,79 @@ + +

+ +

+ +# Actions Http-Client + +[![Http Status](https://github.com/actions/http-client/workflows/http-tests/badge.svg)](https://github.com/actions/http-client/actions) + +A lightweight HTTP client optimized for use with actions, TypeScript with generics and async await. + +## Features + + - HTTP client with TypeScript generics and async/await/Promises + - Typings included so no need to acquire separately (great for intellisense and no versioning drift) + - [Proxy support](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/about-self-hosted-runners#using-a-proxy-server-with-self-hosted-runners) just works with actions and the runner + - Targets ES2019 (runner runs actions with node 12+). Only supported on node 12+. + - Basic, Bearer and PAT Support out of the box. Extensible handlers for others. + - Redirects supported + +Features and releases [here](./RELEASES.md) + +## Install + +``` +npm install @actions/http-client --save +``` + +## Samples + +See the [HTTP](./__tests__) tests for detailed examples. + +## Errors + +### HTTP + +The HTTP client does not throw unless truly exceptional. + +* A request that successfully executes resulting in a 404, 500 etc... will return a response object with a status code and a body. +* Redirects (3xx) will be followed by default. + +See [HTTP tests](./__tests__) for detailed examples. + +## Debugging + +To enable detailed console logging of all HTTP requests and responses, set the NODE_DEBUG environment varible: + +``` +export NODE_DEBUG=http +``` + +## Node support + +The http-client is built using the latest LTS version of Node 12. It may work on previous node LTS versions but it's tested and officially supported on Node12+. + +## Support and Versioning + +We follow semver and will hold compatibility between major versions and increment the minor version with new features and capabilities (while holding compat). + +## Contributing + +We welcome PRs. Please create an issue and if applicable, a design before proceeding with code. + +once: + +```bash +$ npm install +``` + +To build: + +```bash +$ npm run build +``` + +To run all tests: +```bash +$ npm test +``` diff --git a/node_modules/@actions/http-client/RELEASES.md b/node_modules/@actions/http-client/RELEASES.md new file mode 100644 index 00000000..935178a8 --- /dev/null +++ b/node_modules/@actions/http-client/RELEASES.md @@ -0,0 +1,26 @@ +## Releases + +## 1.0.10 + +Contains a bug fix where proxy is defined without a user and password. see [PR here](https://github.com/actions/http-client/pull/42) + +## 1.0.9 +Throw HttpClientError instead of a generic Error from the \Json() helper methods when the server responds with a non-successful status code. + +## 1.0.8 +Fixed security issue where a redirect (e.g. 302) to another domain would pass headers. The fix was to strip the authorization header if the hostname was different. More [details in PR #27](https://github.com/actions/http-client/pull/27) + +## 1.0.7 +Update NPM dependencies and add 429 to the list of HttpCodes + +## 1.0.6 +Automatically sends Content-Type and Accept application/json headers for \Json() helper methods if not set in the client or parameters. + +## 1.0.5 +Adds \Json() helper methods for json over http scenarios. + +## 1.0.4 +Started to add \Json() helper methods. Do not use this release for that. Use >= 1.0.5 since there was an issue with types. + +## 1.0.1 to 1.0.3 +Adds proxy support. diff --git a/node_modules/@actions/http-client/actions.png b/node_modules/@actions/http-client/actions.png new file mode 100644 index 00000000..1857ef37 Binary files /dev/null and b/node_modules/@actions/http-client/actions.png differ diff --git a/node_modules/@actions/http-client/auth.d.ts b/node_modules/@actions/http-client/auth.d.ts new file mode 100644 index 00000000..1094189c --- /dev/null +++ b/node_modules/@actions/http-client/auth.d.ts @@ -0,0 +1,23 @@ +import ifm = require('./interfaces'); +export declare class BasicCredentialHandler implements ifm.IRequestHandler { + username: string; + password: string; + constructor(username: string, password: string); + prepareRequest(options: any): void; + canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; + handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; +} +export declare class BearerCredentialHandler implements ifm.IRequestHandler { + token: string; + constructor(token: string); + prepareRequest(options: any): void; + canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; + handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; +} +export declare class PersonalAccessTokenCredentialHandler implements ifm.IRequestHandler { + token: string; + constructor(token: string); + prepareRequest(options: any): void; + canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; + handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; +} diff --git a/node_modules/@actions/http-client/auth.js b/node_modules/@actions/http-client/auth.js new file mode 100644 index 00000000..67a58aa7 --- /dev/null +++ b/node_modules/@actions/http-client/auth.js @@ -0,0 +1,58 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class BasicCredentialHandler { + constructor(username, password) { + this.username = username; + this.password = password; + } + prepareRequest(options) { + options.headers['Authorization'] = + 'Basic ' + + Buffer.from(this.username + ':' + this.password).toString('base64'); + } + // This handler cannot handle 401 + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } +} +exports.BasicCredentialHandler = BasicCredentialHandler; +class BearerCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + options.headers['Authorization'] = 'Bearer ' + this.token; + } + // This handler cannot handle 401 + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } +} +exports.BearerCredentialHandler = BearerCredentialHandler; +class PersonalAccessTokenCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + options.headers['Authorization'] = + 'Basic ' + Buffer.from('PAT:' + this.token).toString('base64'); + } + // This handler cannot handle 401 + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } +} +exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; diff --git a/node_modules/@actions/http-client/index.d.ts b/node_modules/@actions/http-client/index.d.ts new file mode 100644 index 00000000..9583dc72 --- /dev/null +++ b/node_modules/@actions/http-client/index.d.ts @@ -0,0 +1,124 @@ +/// +import http = require('http'); +import ifm = require('./interfaces'); +export declare enum HttpCodes { + OK = 200, + MultipleChoices = 300, + MovedPermanently = 301, + ResourceMoved = 302, + SeeOther = 303, + NotModified = 304, + UseProxy = 305, + SwitchProxy = 306, + TemporaryRedirect = 307, + PermanentRedirect = 308, + BadRequest = 400, + Unauthorized = 401, + PaymentRequired = 402, + Forbidden = 403, + NotFound = 404, + MethodNotAllowed = 405, + NotAcceptable = 406, + ProxyAuthenticationRequired = 407, + RequestTimeout = 408, + Conflict = 409, + Gone = 410, + TooManyRequests = 429, + InternalServerError = 500, + NotImplemented = 501, + BadGateway = 502, + ServiceUnavailable = 503, + GatewayTimeout = 504 +} +export declare enum Headers { + Accept = "accept", + ContentType = "content-type" +} +export declare enum MediaTypes { + ApplicationJson = "application/json" +} +/** + * Returns the proxy URL, depending upon the supplied url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ +export declare function getProxyUrl(serverUrl: string): string; +export declare class HttpClientError extends Error { + constructor(message: string, statusCode: number); + statusCode: number; + result?: any; +} +export declare class HttpClientResponse implements ifm.IHttpClientResponse { + constructor(message: http.IncomingMessage); + message: http.IncomingMessage; + readBody(): Promise; +} +export declare function isHttps(requestUrl: string): boolean; +export declare class HttpClient { + userAgent: string | undefined; + handlers: ifm.IRequestHandler[]; + requestOptions: ifm.IRequestOptions; + private _ignoreSslError; + private _socketTimeout; + private _allowRedirects; + private _allowRedirectDowngrade; + private _maxRedirects; + private _allowRetries; + private _maxRetries; + private _agent; + private _proxyAgent; + private _keepAlive; + private _disposed; + constructor(userAgent?: string, handlers?: ifm.IRequestHandler[], requestOptions?: ifm.IRequestOptions); + options(requestUrl: string, additionalHeaders?: ifm.IHeaders): Promise; + get(requestUrl: string, additionalHeaders?: ifm.IHeaders): Promise; + del(requestUrl: string, additionalHeaders?: ifm.IHeaders): Promise; + post(requestUrl: string, data: string, additionalHeaders?: ifm.IHeaders): Promise; + patch(requestUrl: string, data: string, additionalHeaders?: ifm.IHeaders): Promise; + put(requestUrl: string, data: string, additionalHeaders?: ifm.IHeaders): Promise; + head(requestUrl: string, additionalHeaders?: ifm.IHeaders): Promise; + sendStream(verb: string, requestUrl: string, stream: NodeJS.ReadableStream, additionalHeaders?: ifm.IHeaders): Promise; + /** + * Gets a typed object from an endpoint + * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise + */ + getJson(requestUrl: string, additionalHeaders?: ifm.IHeaders): Promise>; + postJson(requestUrl: string, obj: any, additionalHeaders?: ifm.IHeaders): Promise>; + putJson(requestUrl: string, obj: any, additionalHeaders?: ifm.IHeaders): Promise>; + patchJson(requestUrl: string, obj: any, additionalHeaders?: ifm.IHeaders): Promise>; + /** + * Makes a raw http request. + * All other methods such as get, post, patch, and request ultimately call this. + * Prefer get, del, post and patch + */ + request(verb: string, requestUrl: string, data: string | NodeJS.ReadableStream, headers: ifm.IHeaders): Promise; + /** + * Needs to be called if keepAlive is set to true in request options. + */ + dispose(): void; + /** + * Raw request. + * @param info + * @param data + */ + requestRaw(info: ifm.IRequestInfo, data: string | NodeJS.ReadableStream): Promise; + /** + * Raw request with callback. + * @param info + * @param data + * @param onResult + */ + requestRawWithCallback(info: ifm.IRequestInfo, data: string | NodeJS.ReadableStream, onResult: (err: any, res: ifm.IHttpClientResponse) => void): void; + /** + * Gets an http agent. This function is useful when you need an http agent that handles + * routing through a proxy server - depending upon the url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ + getAgent(serverUrl: string): http.Agent; + private _prepareRequest; + private _mergeHeaders; + private _getExistingOrDefaultHeader; + private _getAgent; + private _performExponentialBackoff; + private static dateTimeDeserializer; + private _processResponse; +} diff --git a/node_modules/@actions/http-client/index.js b/node_modules/@actions/http-client/index.js new file mode 100644 index 00000000..43b2b103 --- /dev/null +++ b/node_modules/@actions/http-client/index.js @@ -0,0 +1,537 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const http = require("http"); +const https = require("https"); +const pm = require("./proxy"); +let tunnel; +var HttpCodes; +(function (HttpCodes) { + HttpCodes[HttpCodes["OK"] = 200] = "OK"; + HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices"; + HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently"; + HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved"; + HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther"; + HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified"; + HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy"; + HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy"; + HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect"; + HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect"; + HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest"; + HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized"; + HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired"; + HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden"; + HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound"; + HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed"; + HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable"; + HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; + HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout"; + HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict"; + HttpCodes[HttpCodes["Gone"] = 410] = "Gone"; + HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests"; + HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError"; + HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented"; + HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway"; + HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; + HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; +})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {})); +var Headers; +(function (Headers) { + Headers["Accept"] = "accept"; + Headers["ContentType"] = "content-type"; +})(Headers = exports.Headers || (exports.Headers = {})); +var MediaTypes; +(function (MediaTypes) { + MediaTypes["ApplicationJson"] = "application/json"; +})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); +/** + * Returns the proxy URL, depending upon the supplied url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ +function getProxyUrl(serverUrl) { + let proxyUrl = pm.getProxyUrl(new URL(serverUrl)); + return proxyUrl ? proxyUrl.href : ''; +} +exports.getProxyUrl = getProxyUrl; +const HttpRedirectCodes = [ + HttpCodes.MovedPermanently, + HttpCodes.ResourceMoved, + HttpCodes.SeeOther, + HttpCodes.TemporaryRedirect, + HttpCodes.PermanentRedirect +]; +const HttpResponseRetryCodes = [ + HttpCodes.BadGateway, + HttpCodes.ServiceUnavailable, + HttpCodes.GatewayTimeout +]; +const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD']; +const ExponentialBackoffCeiling = 10; +const ExponentialBackoffTimeSlice = 5; +class HttpClientError extends Error { + constructor(message, statusCode) { + super(message); + this.name = 'HttpClientError'; + this.statusCode = statusCode; + Object.setPrototypeOf(this, HttpClientError.prototype); + } +} +exports.HttpClientError = HttpClientError; +class HttpClientResponse { + constructor(message) { + this.message = message; + } + readBody() { + return new Promise(async (resolve, reject) => { + let output = Buffer.alloc(0); + this.message.on('data', (chunk) => { + output = Buffer.concat([output, chunk]); + }); + this.message.on('end', () => { + resolve(output.toString()); + }); + }); + } +} +exports.HttpClientResponse = HttpClientResponse; +function isHttps(requestUrl) { + let parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === 'https:'; +} +exports.isHttps = isHttps; +class HttpClient { + constructor(userAgent, handlers, requestOptions) { + 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 = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; + if (requestOptions) { + if (requestOptions.ignoreSslError != null) { + this._ignoreSslError = requestOptions.ignoreSslError; + } + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; + } + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; + } + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); + } + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; + } + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; + } + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; + } + } + } + options(requestUrl, additionalHeaders) { + return this.request('OPTIONS', requestUrl, null, additionalHeaders || {}); + } + get(requestUrl, additionalHeaders) { + return this.request('GET', requestUrl, null, additionalHeaders || {}); + } + del(requestUrl, additionalHeaders) { + return this.request('DELETE', requestUrl, null, additionalHeaders || {}); + } + post(requestUrl, data, additionalHeaders) { + return this.request('POST', requestUrl, data, additionalHeaders || {}); + } + patch(requestUrl, data, additionalHeaders) { + return this.request('PATCH', requestUrl, data, additionalHeaders || {}); + } + put(requestUrl, data, additionalHeaders) { + return this.request('PUT', requestUrl, data, additionalHeaders || {}); + } + head(requestUrl, additionalHeaders) { + return this.request('HEAD', requestUrl, null, additionalHeaders || {}); + } + sendStream(verb, requestUrl, stream, additionalHeaders) { + return this.request(verb, requestUrl, stream, additionalHeaders); + } + /** + * Gets a typed object from an endpoint + * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise + */ + async getJson(requestUrl, additionalHeaders = {}) { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + let res = await this.get(requestUrl, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + async postJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res = await this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + async putJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res = await this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + async patchJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res = await this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + /** + * Makes a raw http request. + * All other methods such as get, post, patch, and request ultimately call this. + * Prefer get, del, post and patch + */ + async request(verb, requestUrl, data, headers) { + if (this._disposed) { + throw new Error('Client has already been disposed.'); + } + let parsedUrl = new URL(requestUrl); + let info = this._prepareRequest(verb, parsedUrl, headers); + // Only perform retries on reads since writes may not be idempotent. + let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1 + ? this._maxRetries + 1 + : 1; + let numTries = 0; + let response; + while (numTries < maxTries) { + response = await this.requestRaw(info, data); + // Check if it's an authentication challenge + if (response && + response.message && + response.message.statusCode === HttpCodes.Unauthorized) { + let authenticationHandler; + for (let i = 0; i < this.handlers.length; i++) { + if (this.handlers[i].canHandleAuthentication(response)) { + authenticationHandler = this.handlers[i]; + break; + } + } + if (authenticationHandler) { + return authenticationHandler.handleAuthentication(this, info, data); + } + else { + // We have received an unauthorized response but have no handlers to handle it. + // Let the response return to the caller. + return response; + } + } + let redirectsRemaining = this._maxRedirects; + while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 && + this._allowRedirects && + redirectsRemaining > 0) { + const redirectUrl = response.message.headers['location']; + if (!redirectUrl) { + // if there's no location to redirect to, we won't + break; + } + let parsedRedirectUrl = new URL(redirectUrl); + if (parsedUrl.protocol == 'https:' && + parsedUrl.protocol != parsedRedirectUrl.protocol && + !this._allowRedirectDowngrade) { + throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.'); + } + // we need to finish reading the response before reassigning response + // which will leak the open socket. + await response.readBody(); + // strip authorization header if redirected to a different hostname + if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { + for (let header in headers) { + // header names are case insensitive + if (header.toLowerCase() === 'authorization') { + delete headers[header]; + } + } + } + // let's make the request with the new redirectUrl + info = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = await this.requestRaw(info, data); + redirectsRemaining--; + } + if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) { + // If not a retry code, return immediately instead of retrying + return response; + } + numTries += 1; + if (numTries < maxTries) { + await response.readBody(); + await this._performExponentialBackoff(numTries); + } + } + return response; + } + /** + * Needs to be called if keepAlive is set to true in request options. + */ + dispose() { + if (this._agent) { + this._agent.destroy(); + } + this._disposed = true; + } + /** + * Raw request. + * @param info + * @param data + */ + requestRaw(info, data) { + return new Promise((resolve, reject) => { + let callbackForResult = function (err, res) { + if (err) { + reject(err); + } + resolve(res); + }; + this.requestRawWithCallback(info, data, callbackForResult); + }); + } + /** + * Raw request with callback. + * @param info + * @param data + * @param onResult + */ + requestRawWithCallback(info, data, onResult) { + let socket; + if (typeof data === 'string') { + info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8'); + } + let callbackCalled = false; + let handleResult = (err, res) => { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res); + } + }; + let req = info.httpModule.request(info.options, (msg) => { + let res = new HttpClientResponse(msg); + handleResult(null, res); + }); + req.on('socket', sock => { + socket = sock; + }); + // If we ever get disconnected, we want the socket to timeout eventually + req.setTimeout(this._socketTimeout || 3 * 60000, () => { + if (socket) { + socket.end(); + } + handleResult(new Error('Request timeout: ' + info.options.path), null); + }); + req.on('error', function (err) { + // err has statusCode property + // res should have headers + handleResult(err, null); + }); + if (data && typeof data === 'string') { + req.write(data, 'utf8'); + } + if (data && typeof data !== 'string') { + data.on('close', function () { + req.end(); + }); + data.pipe(req); + } + else { + req.end(); + } + } + /** + * Gets an http agent. This function is useful when you need an http agent that handles + * routing through a proxy server - depending upon the url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ + getAgent(serverUrl) { + let parsedUrl = new URL(serverUrl); + return this._getAgent(parsedUrl); + } + _prepareRequest(method, requestUrl, headers) { + const info = {}; + info.parsedUrl = requestUrl; + const usingSsl = info.parsedUrl.protocol === 'https:'; + info.httpModule = usingSsl ? https : http; + const defaultPort = usingSsl ? 443 : 80; + info.options = {}; + info.options.host = info.parsedUrl.hostname; + info.options.port = info.parsedUrl.port + ? parseInt(info.parsedUrl.port) + : defaultPort; + info.options.path = + (info.parsedUrl.pathname || '') + (info.parsedUrl.search || ''); + info.options.method = method; + info.options.headers = this._mergeHeaders(headers); + if (this.userAgent != null) { + info.options.headers['user-agent'] = this.userAgent; + } + info.options.agent = this._getAgent(info.parsedUrl); + // gives handlers an opportunity to participate + if (this.handlers) { + this.handlers.forEach(handler => { + handler.prepareRequest(info.options); + }); + } + return info; + } + _mergeHeaders(headers) { + const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers)); + } + return lowercaseKeys(headers || {}); + } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; + } + return additionalHeaders[header] || clientHeader || _default; + } + _getAgent(parsedUrl) { + let agent; + let proxyUrl = pm.getProxyUrl(parsedUrl); + let useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; + } + if (this._keepAlive && !useProxy) { + agent = this._agent; + } + // if agent is already assigned use that agent. + if (!!agent) { + return agent; + } + const usingSsl = parsedUrl.protocol === 'https:'; + let maxSockets = 100; + if (!!this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets; + } + if (useProxy) { + // If using proxy, need tunnel + if (!tunnel) { + tunnel = require('tunnel'); + } + const agentOptions = { + maxSockets: maxSockets, + keepAlive: this._keepAlive, + proxy: { + ...((proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + }), + host: proxyUrl.hostname, + port: proxyUrl.port + } + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === 'https:'; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; + } + else { + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; + } + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; + } + // if reusing agent across request and tunneling agent isn't assigned create a new agent + if (this._keepAlive && !agent) { + const options = { keepAlive: this._keepAlive, maxSockets: maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http.Agent(options); + this._agent = agent; + } + // if not using private agent and tunnel agent isn't setup then use global agent + if (!agent) { + agent = usingSsl ? https.globalAgent : http.globalAgent; + } + if (usingSsl && this._ignoreSslError) { + // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process + // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options + // we have to cast it to any and change it directly + agent.options = Object.assign(agent.options || {}, { + rejectUnauthorized: false + }); + } + return agent; + } + _performExponentialBackoff(retryNumber) { + retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise(resolve => setTimeout(() => resolve(), ms)); + } + static dateTimeDeserializer(key, value) { + if (typeof value === 'string') { + let a = new Date(value); + if (!isNaN(a.valueOf())) { + return a; + } + } + return value; + } + async _processResponse(res, options) { + return new Promise(async (resolve, reject) => { + const statusCode = res.message.statusCode; + const response = { + statusCode: statusCode, + result: null, + headers: {} + }; + // not found leads to null obj returned + if (statusCode == HttpCodes.NotFound) { + resolve(response); + } + let obj; + let contents; + // get the result from the body + try { + contents = await res.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, HttpClient.dateTimeDeserializer); + } + else { + obj = JSON.parse(contents); + } + response.result = obj; + } + response.headers = res.message.headers; + } + catch (err) { + // Invalid resource (contents not json); leaving result obj null + } + // note that 3xx redirects are handled by the http layer. + if (statusCode > 299) { + let msg; + // if exception/error in body, attempt to get better error + if (obj && obj.message) { + msg = obj.message; + } + else if (contents && contents.length > 0) { + // it may be the case that the exception is in the body message as string + msg = contents; + } + else { + msg = 'Failed request: (' + statusCode + ')'; + } + let err = new HttpClientError(msg, statusCode); + err.result = response.result; + reject(err); + } + else { + resolve(response); + } + }); + } +} +exports.HttpClient = HttpClient; diff --git a/node_modules/@actions/http-client/interfaces.d.ts b/node_modules/@actions/http-client/interfaces.d.ts new file mode 100644 index 00000000..78bd85b3 --- /dev/null +++ b/node_modules/@actions/http-client/interfaces.d.ts @@ -0,0 +1,49 @@ +/// +import http = require('http'); +export interface IHeaders { + [key: string]: any; +} +export interface IHttpClient { + options(requestUrl: string, additionalHeaders?: IHeaders): Promise; + get(requestUrl: string, additionalHeaders?: IHeaders): Promise; + del(requestUrl: string, additionalHeaders?: IHeaders): Promise; + post(requestUrl: string, data: string, additionalHeaders?: IHeaders): Promise; + patch(requestUrl: string, data: string, additionalHeaders?: IHeaders): Promise; + put(requestUrl: string, data: string, additionalHeaders?: IHeaders): Promise; + sendStream(verb: string, requestUrl: string, stream: NodeJS.ReadableStream, additionalHeaders?: IHeaders): Promise; + request(verb: string, requestUrl: string, data: string | NodeJS.ReadableStream, headers: IHeaders): Promise; + requestRaw(info: IRequestInfo, data: string | NodeJS.ReadableStream): Promise; + requestRawWithCallback(info: IRequestInfo, data: string | NodeJS.ReadableStream, onResult: (err: any, res: IHttpClientResponse) => void): void; +} +export interface IRequestHandler { + prepareRequest(options: http.RequestOptions): void; + canHandleAuthentication(response: IHttpClientResponse): boolean; + handleAuthentication(httpClient: IHttpClient, requestInfo: IRequestInfo, objs: any): Promise; +} +export interface IHttpClientResponse { + message: http.IncomingMessage; + readBody(): Promise; +} +export interface IRequestInfo { + options: http.RequestOptions; + parsedUrl: URL; + httpModule: any; +} +export interface IRequestOptions { + headers?: IHeaders; + socketTimeout?: number; + ignoreSslError?: boolean; + allowRedirects?: boolean; + allowRedirectDowngrade?: boolean; + maxRedirects?: number; + maxSockets?: number; + keepAlive?: boolean; + deserializeDates?: boolean; + allowRetries?: boolean; + maxRetries?: number; +} +export interface ITypedResponse { + statusCode: number; + result: T | null; + headers: Object; +} diff --git a/node_modules/@actions/http-client/interfaces.js b/node_modules/@actions/http-client/interfaces.js new file mode 100644 index 00000000..c8ad2e54 --- /dev/null +++ b/node_modules/@actions/http-client/interfaces.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@actions/http-client/package.json b/node_modules/@actions/http-client/package.json new file mode 100644 index 00000000..eac9031e --- /dev/null +++ b/node_modules/@actions/http-client/package.json @@ -0,0 +1,43 @@ +{ + "name": "@actions/http-client", + "version": "1.0.11", + "description": "Actions Http Client", + "main": "index.js", + "scripts": { + "build": "rm -Rf ./_out && tsc && cp package*.json ./_out && cp *.md ./_out && cp LICENSE ./_out && cp actions.png ./_out", + "test": "jest", + "format": "prettier --write *.ts && prettier --write **/*.ts", + "format-check": "prettier --check *.ts && prettier --check **/*.ts", + "audit-check": "npm audit --audit-level=moderate" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/actions/http-client.git" + }, + "keywords": [ + "Actions", + "Http" + ], + "author": "GitHub, Inc.", + "license": "MIT", + "bugs": { + "url": "https://github.com/actions/http-client/issues" + }, + "homepage": "https://github.com/actions/http-client#readme", + "devDependencies": { + "@types/jest": "^25.1.4", + "@types/node": "^12.12.31", + "jest": "^25.1.0", + "prettier": "^2.0.4", + "proxy": "^1.0.1", + "ts-jest": "^25.2.1", + "typescript": "^3.8.3" + }, + "dependencies": { + "tunnel": "0.0.6" + } + +,"_resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.11.tgz" +,"_integrity": "sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==" +,"_from": "@actions/http-client@1.0.11" +} \ No newline at end of file diff --git a/node_modules/@actions/http-client/proxy.d.ts b/node_modules/@actions/http-client/proxy.d.ts new file mode 100644 index 00000000..45998654 --- /dev/null +++ b/node_modules/@actions/http-client/proxy.d.ts @@ -0,0 +1,2 @@ +export declare function getProxyUrl(reqUrl: URL): URL | undefined; +export declare function checkBypass(reqUrl: URL): boolean; diff --git a/node_modules/@actions/http-client/proxy.js b/node_modules/@actions/http-client/proxy.js new file mode 100644 index 00000000..88f00ecd --- /dev/null +++ b/node_modules/@actions/http-client/proxy.js @@ -0,0 +1,57 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +function getProxyUrl(reqUrl) { + let usingSsl = reqUrl.protocol === 'https:'; + let proxyUrl; + if (checkBypass(reqUrl)) { + return proxyUrl; + } + let proxyVar; + if (usingSsl) { + proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY']; + } + else { + proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY']; + } + if (proxyVar) { + proxyUrl = new URL(proxyVar); + } + return proxyUrl; +} +exports.getProxyUrl = getProxyUrl; +function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; + } + let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; + if (!noProxy) { + return false; + } + // Determine the request port + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } + else if (reqUrl.protocol === 'http:') { + reqPort = 80; + } + else if (reqUrl.protocol === 'https:') { + reqPort = 443; + } + // Format the request hostname and hostname with port + let upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === 'number') { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + // Compare request host against noproxy + for (let upperNoProxyItem of noProxy + .split(',') + .map(x => x.trim().toUpperCase()) + .filter(x => x)) { + if (upperReqHosts.some(x => x === upperNoProxyItem)) { + return true; + } + } + return false; +} +exports.checkBypass = checkBypass; diff --git a/node_modules/@actions/io/LICENSE.md b/node_modules/@actions/io/LICENSE.md new file mode 100644 index 00000000..dbae2edb --- /dev/null +++ b/node_modules/@actions/io/LICENSE.md @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@actions/io/README.md b/node_modules/@actions/io/README.md new file mode 100644 index 00000000..9aadf2f9 --- /dev/null +++ b/node_modules/@actions/io/README.md @@ -0,0 +1,53 @@ +# `@actions/io` + +> Core functions for cli filesystem scenarios + +## Usage + +#### mkdir -p + +Recursively make a directory. Follows rules specified in [man mkdir](https://linux.die.net/man/1/mkdir) with the `-p` option specified: + +```js +const io = require('@actions/io'); + +await io.mkdirP('path/to/make'); +``` + +#### cp/mv + +Copy or move files or folders. Follows rules specified in [man cp](https://linux.die.net/man/1/cp) and [man mv](https://linux.die.net/man/1/mv): + +```js +const io = require('@actions/io'); + +// Recursive must be true for directories +const options = { recursive: true, force: false } + +await io.cp('path/to/directory', 'path/to/dest', options); +await io.mv('path/to/file', 'path/to/dest'); +``` + +#### rm -rf + +Remove a file or folder recursively. Follows rules specified in [man rm](https://linux.die.net/man/1/rm) with the `-r` and `-f` rules specified. + +```js +const io = require('@actions/io'); + +await io.rmRF('path/to/directory'); +await io.rmRF('path/to/file'); +``` + +#### which + +Get the path to a tool and resolves via paths. Follows the rules specified in [man which](https://linux.die.net/man/1/which). + +```js +const exec = require('@actions/exec'); +const io = require('@actions/io'); + +const pythonPath: string = await io.which('python', true) + +await exec.exec(`"${pythonPath}"`, ['main.py']); +``` diff --git a/node_modules/@actions/io/package.json b/node_modules/@actions/io/package.json new file mode 100644 index 00000000..f066a159 --- /dev/null +++ b/node_modules/@actions/io/package.json @@ -0,0 +1,41 @@ +{ + "name": "@actions/io", + "version": "1.1.1", + "description": "Actions io lib", + "keywords": [ + "github", + "actions", + "io" + ], + "homepage": "https://github.com/actions/toolkit/tree/main/packages/io", + "license": "MIT", + "main": "lib/io.js", + "types": "lib/io.d.ts", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "files": [ + "lib" + ], + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/actions/toolkit.git", + "directory": "packages/io" + }, + "scripts": { + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", + "test": "echo \"Error: run tests from root\" && exit 1", + "tsc": "tsc" + }, + "bugs": { + "url": "https://github.com/actions/toolkit/issues" + } + +,"_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.1.tgz" +,"_integrity": "sha512-Qi4JoKXjmE0O67wAOH6y0n26QXhMKMFo7GD/4IXNVcrtLjUlGjGuVys6pQgwF3ArfGTQu0XpqaNr0YhED2RaRA==" +,"_from": "@actions/io@1.1.1" +} \ No newline at end of file diff --git a/node_modules/@babel/code-frame/LICENSE b/node_modules/@babel/code-frame/LICENSE new file mode 100644 index 00000000..f31575ec --- /dev/null +++ b/node_modules/@babel/code-frame/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@babel/code-frame/README.md b/node_modules/@babel/code-frame/README.md new file mode 100644 index 00000000..185f93d2 --- /dev/null +++ b/node_modules/@babel/code-frame/README.md @@ -0,0 +1,19 @@ +# @babel/code-frame + +> Generate errors that contain a code frame that point to source locations. + +See our website [@babel/code-frame](https://babeljs.io/docs/en/next/babel-code-frame.html) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/code-frame +``` + +or using yarn: + +```sh +yarn add @babel/code-frame --dev +``` diff --git a/node_modules/@babel/code-frame/package.json b/node_modules/@babel/code-frame/package.json new file mode 100644 index 00000000..7ead77f2 --- /dev/null +++ b/node_modules/@babel/code-frame/package.json @@ -0,0 +1,29 @@ +{ + "name": "@babel/code-frame", + "version": "7.10.4", + "description": "Generate errors that contain a code frame that point to source locations.", + "author": "Sebastian McKenzie ", + "homepage": "https://babeljs.io/", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-code-frame" + }, + "main": "lib/index.js", + "dependencies": { + "@babel/highlight": "^7.10.4" + }, + "devDependencies": { + "chalk": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df" + +,"_resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz" +,"_integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==" +,"_from": "@babel/code-frame@7.10.4" +} \ No newline at end of file diff --git a/node_modules/@babel/helper-validator-identifier/LICENSE b/node_modules/@babel/helper-validator-identifier/LICENSE new file mode 100644 index 00000000..f31575ec --- /dev/null +++ b/node_modules/@babel/helper-validator-identifier/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@babel/helper-validator-identifier/README.md b/node_modules/@babel/helper-validator-identifier/README.md new file mode 100644 index 00000000..ab2dad17 --- /dev/null +++ b/node_modules/@babel/helper-validator-identifier/README.md @@ -0,0 +1,19 @@ +# @babel/helper-validator-identifier + +> Validate identifier/keywords name + +See our website [@babel/helper-validator-identifier](https://babeljs.io/docs/en/next/babel-helper-validator-identifier.html) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/helper-validator-identifier +``` + +or using yarn: + +```sh +yarn add @babel/helper-validator-identifier --dev +``` diff --git a/node_modules/@babel/helper-validator-identifier/package.json b/node_modules/@babel/helper-validator-identifier/package.json new file mode 100644 index 00000000..fe5092d2 --- /dev/null +++ b/node_modules/@babel/helper-validator-identifier/package.json @@ -0,0 +1,25 @@ +{ + "name": "@babel/helper-validator-identifier", + "version": "7.10.4", + "description": "Validate identifier/keywords name", + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-helper-validator-identifier" + }, + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "main": "./lib/index.js", + "exports": "./lib/index.js", + "devDependencies": { + "charcodes": "^0.2.0", + "unicode-13.0.0": "^0.8.0" + }, + "gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df" + +,"_resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz" +,"_integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==" +,"_from": "@babel/helper-validator-identifier@7.10.4" +} \ No newline at end of file diff --git a/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js b/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js new file mode 100644 index 00000000..70b37150 --- /dev/null +++ b/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js @@ -0,0 +1,75 @@ +"use strict"; + +// Always use the latest available version of Unicode! +// https://tc39.github.io/ecma262/#sec-conformance +const version = "13.0.0"; + +const start = require("unicode-" + + version + + "/Binary_Property/ID_Start/code-points.js").filter(function (ch) { + return ch > 0x7f; +}); +let last = -1; +const cont = [0x200c, 0x200d].concat( + require("unicode-" + + version + + "/Binary_Property/ID_Continue/code-points.js").filter(function (ch) { + return ch > 0x7f && search(start, ch, last + 1) == -1; + }) +); + +function search(arr, ch, starting) { + for (let i = starting; arr[i] <= ch && i < arr.length; last = i++) { + if (arr[i] === ch) return i; + } + return -1; +} + +function pad(str, width) { + while (str.length < width) str = "0" + str; + return str; +} + +function esc(code) { + const hex = code.toString(16); + if (hex.length <= 2) return "\\x" + pad(hex, 2); + else return "\\u" + pad(hex, 4); +} + +function generate(chars) { + const astral = []; + let re = ""; + for (let i = 0, at = 0x10000; i < chars.length; i++) { + const from = chars[i]; + let to = from; + while (i < chars.length - 1 && chars[i + 1] == to + 1) { + i++; + to++; + } + if (to <= 0xffff) { + if (from == to) re += esc(from); + else if (from + 1 == to) re += esc(from) + esc(to); + else re += esc(from) + "-" + esc(to); + } else { + astral.push(from - at, to - from); + at = to; + } + } + return { nonASCII: re, astral: astral }; +} + +const startData = generate(start); +const contData = generate(cont); + +console.log("/* prettier-ignore */"); +console.log('let nonASCIIidentifierStartChars = "' + startData.nonASCII + '";'); +console.log("/* prettier-ignore */"); +console.log('let nonASCIIidentifierChars = "' + contData.nonASCII + '";'); +console.log("/* prettier-ignore */"); +console.log( + "const astralIdentifierStartCodes = " + JSON.stringify(startData.astral) + ";" +); +console.log("/* prettier-ignore */"); +console.log( + "const astralIdentifierCodes = " + JSON.stringify(contData.astral) + ";" +); diff --git a/node_modules/@babel/highlight/LICENSE b/node_modules/@babel/highlight/LICENSE new file mode 100644 index 00000000..f31575ec --- /dev/null +++ b/node_modules/@babel/highlight/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@babel/highlight/README.md b/node_modules/@babel/highlight/README.md new file mode 100644 index 00000000..72dae609 --- /dev/null +++ b/node_modules/@babel/highlight/README.md @@ -0,0 +1,19 @@ +# @babel/highlight + +> Syntax highlight JavaScript strings for output in terminals. + +See our website [@babel/highlight](https://babeljs.io/docs/en/next/babel-highlight.html) for more information. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/highlight +``` + +or using yarn: + +```sh +yarn add @babel/highlight --dev +``` diff --git a/node_modules/@babel/highlight/package.json b/node_modules/@babel/highlight/package.json new file mode 100644 index 00000000..ce2041c9 --- /dev/null +++ b/node_modules/@babel/highlight/package.json @@ -0,0 +1,30 @@ +{ + "name": "@babel/highlight", + "version": "7.10.4", + "description": "Syntax highlight JavaScript strings for output in terminals.", + "author": "suchipi ", + "homepage": "https://babeljs.io/", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-highlight" + }, + "main": "lib/index.js", + "dependencies": { + "@babel/helper-validator-identifier": "^7.10.4", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "devDependencies": { + "strip-ansi": "^4.0.0" + }, + "gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df" + +,"_resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz" +,"_integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==" +,"_from": "@babel/highlight@7.10.4" +} \ No newline at end of file diff --git a/node_modules/@commitlint/cli/CHANGELOG.md b/node_modules/@commitlint/cli/CHANGELOG.md new file mode 100644 index 00000000..b837d0f4 --- /dev/null +++ b/node_modules/@commitlint/cli/CHANGELOG.md @@ -0,0 +1,852 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28) + +**Note:** Version bump only for package @commitlint/cli + + + + + +# [13.1.0](https://github.com/conventional-changelog/commitlint/compare/v13.0.0...v13.1.0) (2021-07-24) + + +### Bug Fixes + +* **cli:** remove hard coded comment char with linting `COMMIT_EDIT_MSG` ([#2618](https://github.com/conventional-changelog/commitlint/issues/2618)) ([5badf6d](https://github.com/conventional-changelog/commitlint/commit/5badf6dc08116ed3557e6c780e55764b4f07ca67)), closes [#2351](https://github.com/conventional-changelog/commitlint/issues/2351) + + + + + +# [13.0.0](https://github.com/conventional-changelog/commitlint/compare/v12.1.4...v13.0.0) (2021-05-24) + + +* chore!: remove node 10 support (#2596) ([4db4ba1](https://github.com/conventional-changelog/commitlint/commit/4db4ba1b0b312410a0f62100a93a80c246a6c410)), closes [#2596](https://github.com/conventional-changelog/commitlint/issues/2596) + + +### BREAKING CHANGES + +* minimum node version is 12 + + + + + +## [12.1.3](https://github.com/conventional-changelog/commitlint/compare/v12.1.2...v12.1.3) (2021-05-12) + + +### Bug Fixes + +* update dependency fs-extra to v10 ([#2575](https://github.com/conventional-changelog/commitlint/issues/2575)) ([d47d2b5](https://github.com/conventional-changelog/commitlint/commit/d47d2b595b980adadd4fb8ff198c1914caeff18f)) +* update dependency yargs to v17 ([#2574](https://github.com/conventional-changelog/commitlint/issues/2574)) ([81c38dd](https://github.com/conventional-changelog/commitlint/commit/81c38ddf15f239b525f673b26b2ee6606f2ee8f6)) + + + + + +## [12.1.2](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.2) (2021-04-29) + +**Note:** Version bump only for package @commitlint/cli + + + + + +## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02) + +**Note:** Version bump only for package @commitlint/cli + + + + + +# [12.1.0](https://github.com/conventional-changelog/commitlint/compare/v12.0.1...v12.1.0) (2021-03-06) + +**Note:** Version bump only for package @commitlint/cli + + + + + +## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23) + +**Note:** Version bump only for package @commitlint/cli + + + + + +# [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18) + + +### Bug Fixes + +* update dependency execa to v5 ([#2341](https://github.com/conventional-changelog/commitlint/issues/2341)) ([f349df9](https://github.com/conventional-changelog/commitlint/commit/f349df90f08096a9bcad46b5e55b411aac327a24)) +* update dependency yargs to v16 ([204f36d](https://github.com/conventional-changelog/commitlint/commit/204f36d0a522afaf3a88739b401aea15ffa0b891)) + + +### Features + +* **cli:** implement print-config cli flag ([#2391](https://github.com/conventional-changelog/commitlint/issues/2391)) ([8626883](https://github.com/conventional-changelog/commitlint/commit/86268833946dea9dcf1c15459456cd4427d17835)) +* **load:** allow specifying helpUrl via config ([#2180](https://github.com/conventional-changelog/commitlint/issues/2180)) ([d6795a3](https://github.com/conventional-changelog/commitlint/commit/d6795a3c4633ba6efd7a0fcff48339dc291cd832)) + + + + + +# [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05) + + +### Bug Fixes + +* **cli:** remove default value from edit option [#2065](https://github.com/conventional-changelog/commitlint/issues/2065) ([3d4116d](https://github.com/conventional-changelog/commitlint/commit/3d4116d044a2f5149a9c9c1d9fa35abf5e232479)) + + + + + +# [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16) + + +### Bug Fixes + +* update dependency execa to v4 ([#1936](https://github.com/conventional-changelog/commitlint/issues/1936)) ([8efb441](https://github.com/conventional-changelog/commitlint/commit/8efb44193058d286f7325327a6d33936b273ec91)) +* update dependency fs-extra to v9 ([#1018](https://github.com/conventional-changelog/commitlint/issues/1018)) ([2df49fa](https://github.com/conventional-changelog/commitlint/commit/2df49fac907993ae78199a1012e918b0e2ff5621)) +* update dependency get-stdin to v8 ([#1938](https://github.com/conventional-changelog/commitlint/issues/1938)) ([f94a5c8](https://github.com/conventional-changelog/commitlint/commit/f94a5c82861523aa1cf407ffe062f99ecbbfb4e4)) + + +* refactor!: drop support for node 8 (#1999) ([751f39f](https://github.com/conventional-changelog/commitlint/commit/751f39f284ef232574a176c3c11b1982ee544166)), closes [#1999](https://github.com/conventional-changelog/commitlint/issues/1999) + + +### BREAKING CHANGES + +* remove node 8 from circle-ci checks + +also remove node 13 because we do not support experimental versions + +* docs: update node v10 to latest LTS 10 version + +Co-authored-by: Cedric van Putten + +Co-authored-by: Cedric van Putten + + + + + +## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13) + +**Note:** Version bump only for package @commitlint/cli + + + + + +## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30) + +**Note:** Version bump only for package @commitlint/cli + + + + + +# [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21) + + +### Bug Fixes + +* update dependency chalk to v4 ([#1275](https://github.com/conventional-changelog/commitlint/issues/1275)) ([a5d8fa1](https://github.com/conventional-changelog/commitlint/commit/a5d8fa118e8221361f14f5fd2b21d7aaad008a27)) +* update dependency regenerator-runtime to v0.13.5 ([#1017](https://github.com/conventional-changelog/commitlint/issues/1017)) ([9c4fdf1](https://github.com/conventional-changelog/commitlint/commit/9c4fdf1b5f42677422532dad655af9aed9b43881)) + + + + + +## [9.0.1](https://github.com/conventional-changelog/commitlint/compare/v9.0.0...v9.0.1) (2020-05-26) + + +### Bug Fixes + +* add missing @babel/runtime dep [#1738](https://github.com/conventional-changelog/commitlint/issues/1738) ([#1754](https://github.com/conventional-changelog/commitlint/issues/1754)) ([09afcd6](https://github.com/conventional-changelog/commitlint/commit/09afcd647a2c1d00538cf1c970e3790d936111f8)) + + + + + +# [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21) + + +### Bug Fixes + +* **cli:** add missing regenerator-runtime to dependencies ([#919](https://github.com/conventional-changelog/commitlint/issues/919)) ([ee5eac9](https://github.com/conventional-changelog/commitlint/commit/ee5eac98fa97ba5ba17030c8d2705aee5c7f3a3a)) +* [#840](https://github.com/conventional-changelog/commitlint/issues/840) add caret to lodash versions ([#843](https://github.com/conventional-changelog/commitlint/issues/843)) ([ffc0bac](https://github.com/conventional-changelog/commitlint/commit/ffc0bac26993acb2ab6a8fa51065f93c92b0d644)) + + + + + +## [8.3.5](https://github.com/conventional-changelog/commitlint/compare/v8.3.4...v8.3.5) (2020-01-15) + +**Note:** Version bump only for package @commitlint/cli + + + + + +## [8.3.4](https://github.com/conventional-changelog/commitlint/compare/v8.3.3...v8.3.4) (2020-01-03) + +**Note:** Version bump only for package @commitlint/cli + + + + + +## [8.3.1](https://github.com/conventional-changelog/commitlint/compare/v8.3.0...v8.3.1) (2019-10-16) + +**Note:** Version bump only for package @commitlint/cli + + + + + +# [8.3.0](https://github.com/conventional-changelog/commitlint/compare/v8.2.0...v8.3.0) (2019-10-16) + + +### Features + +* **cli:** add helpurl flag ([#789](https://github.com/conventional-changelog/commitlint/issues/789)) ([75cef4e](https://github.com/conventional-changelog/commitlint/commit/75cef4e)) + + + + + +# [8.2.0](https://github.com/conventional-changelog/commitlint/compare/v8.1.0...v8.2.0) (2019-09-16) + + +### Bug Fixes + +* pass defaultIgnores from configuration in @commitlint/cli ([#771](https://github.com/conventional-changelog/commitlint/issues/771)) ([a259014](https://github.com/conventional-changelog/commitlint/commit/a259014)) + + + + + +# [8.1.0](https://github.com/conventional-changelog/commitlint/compare/v8.0.0...v8.1.0) (2019-07-15) + + +### Bug Fixes + +* pass ignores from configuration in @commitlint/cli ([#668](https://github.com/conventional-changelog/commitlint/issues/668)) ([da99aaa](https://github.com/conventional-changelog/commitlint/commit/da99aaa)) + + + + + +## [7.6.1](https://github.com/conventional-changelog/commitlint/compare/v7.6.0...v7.6.1) (2019-05-09) + +**Note:** Version bump only for package @commitlint/cli + + + + + +# [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06) + + +### Bug Fixes + +* avoid excessive help text [#606](https://github.com/conventional-changelog/commitlint/issues/606) ([#637](https://github.com/conventional-changelog/commitlint/issues/637)) ([8f3c3b1](https://github.com/conventional-changelog/commitlint/commit/8f3c3b1)) + + +### Features + +* adds support for plugins ([#228](https://github.com/conventional-changelog/commitlint/issues/228)) ([#588](https://github.com/conventional-changelog/commitlint/issues/588)) ([cea4564](https://github.com/conventional-changelog/commitlint/commit/cea4564)) + + + + + +## [7.5.2](https://github.com/conventional-changelog/commitlint/compare/v7.5.1...v7.5.2) (2019-02-11) + + +### Bug Fixes + +* **cli:** replace old links with new organisation links ([#578](https://github.com/conventional-changelog/commitlint/issues/578)) ([4075903](https://github.com/conventional-changelog/commitlint/commit/4075903)) + + + + + +## [7.5.1](https://github.com/conventional-changelog/commitlint/compare/v7.5.0...v7.5.1) (2019-02-09) + +**Note:** Version bump only for package @commitlint/cli + + + + + + +# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31) + + +### Bug Fixes + +* **cli:** avoid linebreak in empty input ([#523](https://github.com/conventional-changelog/commitlint/issues/523)) ([3141882](https://github.com/conventional-changelog/commitlint/commit/3141882)) +* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a)) +* cleanup message for input with no config ([#519](https://github.com/conventional-changelog/commitlint/issues/519)) ([7d9e760](https://github.com/conventional-changelog/commitlint/commit/7d9e760)) +* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd)) +* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1)) + + + + + +# [7.4.0](https://github.com/conventional-changelog/commitlint/compare/v7.3.2...v7.4.0) (2019-01-27) + + + + +**Note:** Version bump only for package @commitlint/cli + + +## [7.3.2](https://github.com/conventional-changelog/commitlint/compare/v7.3.1...v7.3.2) (2019-01-15) + + + + +**Note:** Version bump only for package @commitlint/cli + + +## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11) + + + + +**Note:** Version bump only for package @commitlint/cli + + +# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11) + + +### Bug Fixes + +* add fallback with husky git params to deprecation handling ([#498](https://github.com/conventional-changelog/commitlint/issues/498)) ([5a34b8c](https://github.com/conventional-changelog/commitlint/commit/5a34b8c)) +* avoid truncated output on macOS ([#503](https://github.com/conventional-changelog/commitlint/issues/503)) ([3192368](https://github.com/conventional-changelog/commitlint/commit/3192368)) +* respect String.protoype.repeat API contract ([f27e7ac](https://github.com/conventional-changelog/commitlint/commit/f27e7ac)) +* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b)) +* use correct label for failing empty subjects ([#481](https://github.com/conventional-changelog/commitlint/issues/481)) ([2e7e34d](https://github.com/conventional-changelog/commitlint/commit/2e7e34d)), closes [#476](https://github.com/conventional-changelog/commitlint/issues/476) + + +### Features + +* check stage before entering prompt ([#495](https://github.com/conventional-changelog/commitlint/issues/495)) ([3b3667a](https://github.com/conventional-changelog/commitlint/commit/3b3667a)), closes [#51](https://github.com/conventional-changelog/commitlint/issues/51) [#51](https://github.com/conventional-changelog/commitlint/issues/51) +* warn on empty config ([#491](https://github.com/conventional-changelog/commitlint/issues/491)) ([b6bd36e](https://github.com/conventional-changelog/commitlint/commit/b6bd36e)), closes [#107](https://github.com/conventional-changelog/commitlint/issues/107) [#107](https://github.com/conventional-changelog/commitlint/issues/107) + + + + + +## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11) + + +### Bug Fixes + +* improve format module resolving ([#464](https://github.com/conventional-changelog/commitlint/issues/464)) ([baed8b1](https://github.com/conventional-changelog/commitlint/commit/baed8b1)) + + + + + +# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05) + + +### Features + +* **cli:** add format option for report output ([1ecf097](https://github.com/conventional-changelog/commitlint/commit/1ecf097)) + + + + + +## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04) + + + + +**Note:** Version bump only for package @commitlint/cli + + +# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29) + + + + +**Note:** Version bump only for package @commitlint/cli + + +# [6.2.0](https://github.com/conventional-changelog/commitlint/compare/v6.1.3...v6.2.0) (2018-05-01) + + +### Features + +* print commit message when the message is invalid ([86c34f1](https://github.com/conventional-changelog/commitlint/commit/86c34f1)), closes [#222](https://github.com/conventional-changelog/commitlint/issues/222) + + + + + +## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22) + + + + +**Note:** Version bump only for package @commitlint/cli + + +# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03) + + +### Features + +* add "--config" option ([#261](https://github.com/conventional-changelog/commitlint/issues/261)) ([2c03ec6](https://github.com/conventional-changelog/commitlint/commit/2c03ec6)) + + + + + +## [6.0.5](https://github.com/conventional-changelog/commitlint/compare/v6.0.4...v6.0.5) (2018-01-31) + + + + +**Note:** Version bump only for package @commitlint/cli + + +## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31) + + + + +**Note:** Version bump only for package @commitlint/cli + + +## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31) + + + + +**Note:** Version bump only for package @commitlint/cli + + +## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12) + + + + +**Note:** Version bump only for package @commitlint/cli + + +## [6.0.1](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.1) (2018-01-09) + + + + +**Note:** Version bump only for package @commitlint/cli + + +# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09) + + +### Bug Fixes + +* correctly resolve parserOpts [#115](https://github.com/conventional-changelog/commitlint/issues/115) [#95](https://github.com/conventional-changelog/commitlint/issues/95) ([1353dd5](https://github.com/conventional-changelog/commitlint/commit/1353dd5)) + + + + + +## [5.2.6](https://github.com/conventional-changelog/commitlint/compare/v5.2.5...v5.2.6) (2017-12-21) + + + + +**Note:** Version bump only for package @commitlint/cli + + +## [5.2.5](https://github.com/conventional-changelog/commitlint/compare/v5.2.4...v5.2.5) (2017-12-08) + + + + +**Note:** Version bump only for package @commitlint/cli + + +## [5.2.4](https://github.com/conventional-changelog/commitlint/compare/v5.2.3...v5.2.4) (2017-12-08) + + + + +**Note:** Version bump only for package @commitlint/cli + + +## [5.2.3](https://github.com/conventional-changelog/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05) + + +### Bug Fixes + +* **cli:** add support for GIT_PARAMS on windows ([c62bd41](https://github.com/conventional-changelog/commitlint/commit/c62bd41)), closes [#103](https://github.com/conventional-changelog/commitlint/issues/103) [#175](https://github.com/conventional-changelog/commitlint/issues/175) + + + + + +# [5.2.0](https://github.com/conventional-changelog/commitlint/compare/v5.1.3...v5.2.0) (2017-11-30) + + + + +**Note:** Version bump only for package @commitlint/cli + + +## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24) + + + + +**Note:** Version bump only for package @commitlint/cli + + +# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24) + + +### Bug Fixes + +* update dependency concurrently to v3.5.1 ([#147](https://github.com/conventional-changelog/commitlint/issues/147)) ([a809d0f](https://github.com/conventional-changelog/commitlint/commit/a809d0f)) + + +### Features + +* **travis-cli:** add reusable travis command line interface ([3e6e6a8](https://github.com/conventional-changelog/commitlint/commit/3e6e6a8)) + + + + + +## [5.0.1](https://github.com/conventional-changelog/commitlint/compare/v5.0.0...v5.0.1) (2017-11-19) + + + + +**Note:** Version bump only for package @commitlint/cli + + +# [4.3.0](https://github.com/conventional-changelog/commitlint/compare/v4.2.2...v4.3.0) (2017-11-08) + + + + +**Note:** Version bump only for package @commitlint/cli + + +## [4.2.2](https://github.com/conventional-changelog/commitlint/compare/v4.2.1...v4.2.2) (2017-10-26) + + + + +**Note:** Version bump only for package @commitlint/cli + + +## [4.2.1](https://github.com/conventional-changelog/commitlint/compare/v4.2.0...v4.2.1) (2017-10-18) + + +### Bug Fixes + +* nicer error messages ([#93](https://github.com/conventional-changelog/commitlint/issues/93)) ([dcfad61](https://github.com/conventional-changelog/commitlint/commit/dcfad61)) +* **core:** consider config outside of current git repo ([f7234b6](https://github.com/conventional-changelog/commitlint/commit/f7234b6)) + + + + + +# [4.2.0](https://github.com/conventional-changelog/commitlint/compare/v4.1.1...v4.2.0) (2017-10-14) + + +### Features + +* edit flag now accepts the path to the commit file ([c881433](https://github.com/conventional-changelog/commitlint/commit/c881433)), closes [#40](https://github.com/conventional-changelog/commitlint/issues/40) + + + + + +## [4.1.1](https://github.com/conventional-changelog/commitlint/compare/v4.1.0...v4.1.1) (2017-10-09) + + + + +**Note:** Version bump only for package @commitlint/cli + + +# [4.1.0](https://github.com/conventional-changelog/commitlint/compare/v4.0.0...v4.1.0) (2017-10-05) + + + + +**Note:** Version bump only for package @commitlint/cli + + +# [4.0.0](https://github.com/conventional-changelog/commitlint/compare/v3.2.0...v4.0.0) (2017-10-04) + + +### Features + +* enable alternative config formats ([#83](https://github.com/conventional-changelog/commitlint/issues/83)) ([91968b8](https://github.com/conventional-changelog/commitlint/commit/91968b8)), closes [#73](https://github.com/conventional-changelog/commitlint/issues/73) + + +### BREAKING CHANGES + +* discontinue support of conventional-changelog-lintrc + +* test: make git setup reliable + + + + + +# 3.2.0 (2017-09-05) + + +### Features + +* add preset parser ([5cd2335](https://github.com/conventional-changelog/commitlint/commit/5cd2335)) + + + + +## 3.1.3 (2017-08-21) + + +### Bug Fixes + +* **core:** determine git root correctly in sub directories ([#64](https://github.com/conventional-changelog/commitlint/issues/64)) ([d594ec4](https://github.com/conventional-changelog/commitlint/commit/d594ec4)), closes [#62](https://github.com/conventional-changelog/commitlint/issues/62) + + + + +## 3.1.2 (2017-08-07) + + + + +## 3.1.1 (2017-08-07) + + + + +## 3.0.4 (2017-08-04) + + +### Bug Fixes + +* **core:** correct type validation message ([09c2b26](https://github.com/conventional-changelog/commitlint/commit/09c2b26)) + + + + +## 3.0.3 (2017-07-16) + + + + +## 3.0.2 (2017-07-11) + + +### Bug Fixes + +* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff)) +* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653)) + + + + + +## 3.1.3 (2017-08-21) + + +### Bug Fixes + +* **core:** determine git root correctly in sub directories ([#64](https://github.com/conventional-changelog/commitlint/issues/64)) ([d594ec4](https://github.com/conventional-changelog/commitlint/commit/d594ec4)), closes [#62](https://github.com/conventional-changelog/commitlint/issues/62) + + + + +## 3.1.2 (2017-08-07) + + + + +## 3.1.1 (2017-08-07) + + + + +## 3.0.4 (2017-08-04) + + +### Bug Fixes + +* **core:** correct type validation message ([09c2b26](https://github.com/conventional-changelog/commitlint/commit/09c2b26)) + + + + +## 3.0.3 (2017-07-16) + + + + +## 3.0.2 (2017-07-11) + + +### Bug Fixes + +* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff)) +* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653)) + + + + + +## 3.1.2 (2017-08-07) + + + + +## 3.1.1 (2017-08-07) + + + + +## 3.0.4 (2017-08-04) + + +### Bug Fixes + +* **core:** correct type validation message ([09c2b26](https://github.com/conventional-changelog/commitlint/commit/09c2b26)) + + + + +## 3.0.3 (2017-07-16) + + + + +## 3.0.2 (2017-07-11) + + +### Bug Fixes + +* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff)) +* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653)) + + + + + +## 3.0.4 (2017-08-04) + + +### Bug Fixes + +* **core:** correct type validation message ([09c2b26](https://github.com/conventional-changelog/commitlint/commit/09c2b26)) + + + + +## 3.0.3 (2017-07-16) + + + + +## 3.0.2 (2017-07-11) + + +### Bug Fixes + +* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff)) +* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653)) + + + + + +## 3.0.3 (2017-07-16) + + + + +## 3.0.2 (2017-07-11) + + +### Bug Fixes + +* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff)) +* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653)) + + + + + +## 3.0.2 (2017-07-11) + + +### Bug Fixes + +* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff)) +* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653)) + + + + + +## 3.0.1 (2017-07-11) + + +### Bug Fixes + +* **cli:** remove destructuring for node 4 support ([fe8caff](https://github.com/conventional-changelog/commitlint/commit/fe8caff)) +* ensure node4 compat ([bfeb653](https://github.com/conventional-changelog/commitlint/commit/bfeb653)) + + + + + +## 3.0.1 (2017-07-11) + + + + +# 3.0.0 (2017-07-10) + + +### Bug Fixes + +* **cli:** remove destructuring for node 4 support ([94437e8](https://github.com/conventional-changelog/commitlint/commit/94437e8)) +* ensure node4 compat ([a5e658a](https://github.com/conventional-changelog/commitlint/commit/a5e658a)) + + + + + +# 3.0.0 (2017-07-10) + + +### Bug Fixes + +* **cli:** remove destructuring for node 4 support ([94437e8](https://github.com/conventional-changelog/commitlint/commit/94437e8)) +* ensure node4 compat ([a5e658a](https://github.com/conventional-changelog/commitlint/commit/a5e658a)) diff --git a/node_modules/@commitlint/cli/README.md b/node_modules/@commitlint/cli/README.md new file mode 100644 index 00000000..75f3b0fa --- /dev/null +++ b/node_modules/@commitlint/cli/README.md @@ -0,0 +1,16 @@ +> Lint commit messages + +

+ +

+ +# @commitlint/cli + +## Getting started + +``` +npm install --save-dev @commitlint/cli @commitlint/config-angular +echo "module.exports = {extends: ['@commitlint/config-angular']};" > commitlint.config.js +``` + +Consult [docs/cli](https://conventional-changelog.github.io/commitlint/#/reference-cli) for comprehensive documentation. diff --git a/node_modules/@commitlint/cli/cli.js b/node_modules/@commitlint/cli/cli.js new file mode 100755 index 00000000..4856fd70 --- /dev/null +++ b/node_modules/@commitlint/cli/cli.js @@ -0,0 +1,2 @@ +#!/usr/bin/env node +require('./lib/cli.js'); diff --git a/node_modules/@commitlint/cli/index.js b/node_modules/@commitlint/cli/index.js new file mode 100644 index 00000000..bc563663 --- /dev/null +++ b/node_modules/@commitlint/cli/index.js @@ -0,0 +1,3 @@ +const path = require('path'); + +module.exports = path.join(__dirname, 'cli.js'); diff --git a/node_modules/@commitlint/cli/license.md b/node_modules/@commitlint/cli/license.md new file mode 100644 index 00000000..9f7de652 --- /dev/null +++ b/node_modules/@commitlint/cli/license.md @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 - present Mario Nebl + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/@commitlint/cli/package.json b/node_modules/@commitlint/cli/package.json new file mode 100644 index 00000000..de05bfb1 --- /dev/null +++ b/node_modules/@commitlint/cli/package.json @@ -0,0 +1,62 @@ +{ + "name": "@commitlint/cli", + "version": "13.2.0", + "description": "Lint your commit messages", + "files": [ + "index.js", + "cli.js", + "lib" + ], + "bin": { + "commitlint": "./cli.js" + }, + "scripts": { + "deps": "dep-check", + "pkg": "pkg-check" + }, + "engines": { + "node": ">=v12" + }, + "repository": { + "type": "git", + "url": "https://github.com/conventional-changelog/commitlint.git" + }, + "bugs": { + "url": "https://github.com/conventional-changelog/commitlint/issues" + }, + "homepage": "https://github.com/conventional-changelog/commitlint#readme", + "keywords": [ + "conventional-changelog", + "commitlint", + "cli" + ], + "author": { + "name": "Mario Nebl", + "email": "hello@herebecode.com" + }, + "license": "MIT", + "devDependencies": { + "@commitlint/test": "^13.2.0", + "@commitlint/utils": "^13.2.0", + "@types/node": "12.20.27", + "@types/yargs": "^17.0.0", + "execa": "^5.0.0", + "fs-extra": "^10.0.0" + }, + "dependencies": { + "@commitlint/format": "^13.2.0", + "@commitlint/lint": "^13.2.0", + "@commitlint/load": "^13.2.0", + "@commitlint/read": "^13.2.0", + "@commitlint/types": "^13.2.0", + "lodash": "^4.17.19", + "resolve-from": "5.0.0", + "resolve-global": "1.0.0", + "yargs": "^17.0.0" + }, + "gitHead": "65e45339c79e46d01e35ec067edf14d225a3528a" + +,"_resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-13.2.0.tgz" +,"_integrity": "sha512-RqG0cxxiwaL9OgQbA2ZEfZaVIRJmbtsZgnj5G07AjN7///s/40grSN4/kDl8YjUgvAZskPfJRoGGYNvHJ4zHWA==" +,"_from": "@commitlint/cli@13.2.0" +} \ No newline at end of file diff --git a/node_modules/@commitlint/config-conventional/CHANGELOG.md b/node_modules/@commitlint/config-conventional/CHANGELOG.md new file mode 100644 index 00000000..f600b629 --- /dev/null +++ b/node_modules/@commitlint/config-conventional/CHANGELOG.md @@ -0,0 +1,353 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +# [13.1.0](https://github.com/conventional-changelog/commitlint/compare/v13.0.0...v13.1.0) (2021-07-24) + + +### Bug Fixes + +* **cz-commitlint:** fix minor formatting issues ([99d8881](https://github.com/conventional-changelog/commitlint/commit/99d8881d0d951deded6d9e31bbb279d04101549b)) + + + + + +# [13.0.0](https://github.com/conventional-changelog/commitlint/compare/v12.1.4...v13.0.0) (2021-05-24) + + +### Features + +* add subject-exclamation-mark rule to improve error messages ([#2593](https://github.com/conventional-changelog/commitlint/issues/2593)) ([be701bd](https://github.com/conventional-changelog/commitlint/commit/be701bdb1de4e667b7a872767244285c4fa4fda4)) + + +* chore!: remove node 10 support (#2596) ([4db4ba1](https://github.com/conventional-changelog/commitlint/commit/4db4ba1b0b312410a0f62100a93a80c246a6c410)), closes [#2596](https://github.com/conventional-changelog/commitlint/issues/2596) + + +### BREAKING CHANGES + +* minimum node version is 12 + + + + + +## [12.1.3](https://github.com/conventional-changelog/commitlint/compare/v12.1.2...v12.1.3) (2021-05-12) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +## [12.1.2](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.2) (2021-04-29) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +# [12.1.0](https://github.com/conventional-changelog/commitlint/compare/v12.0.1...v12.1.0) (2021-03-06) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +# [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +# [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +# [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16) + + +### Bug Fixes + +* update dependency ([#1993](https://github.com/conventional-changelog/commitlint/issues/1993)) ([32667e8](https://github.com/conventional-changelog/commitlint/commit/32667e8aa665cf94fe669ba048ad7abaf6abac6e)) + + +* refactor!: drop support for node 8 (#1999) ([751f39f](https://github.com/conventional-changelog/commitlint/commit/751f39f284ef232574a176c3c11b1982ee544166)), closes [#1999](https://github.com/conventional-changelog/commitlint/issues/1999) + + +### BREAKING CHANGES + +* remove node 8 from circle-ci checks + +also remove node 13 because we do not support experimental versions + +* docs: update node v10 to latest LTS 10 version + +Co-authored-by: Cedric van Putten + +Co-authored-by: Cedric van Putten + + + + + +## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +# [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21) + + +### Bug Fixes + +* update dependency conventional-changelog-conventionalcommits to v4.3.0 ([#1816](https://github.com/conventional-changelog/commitlint/issues/1816)) ([f99aeda](https://github.com/conventional-changelog/commitlint/commit/f99aeda068aabdb250e2c9819da7229a695154b9)) + + + + + +## [9.0.1](https://github.com/conventional-changelog/commitlint/compare/v9.0.0...v9.0.1) (2020-05-26) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +# [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21) + + +### Bug Fixes + +* drop support for 'improvement' type ([#899](https://github.com/conventional-changelog/commitlint/issues/899)) ([b27ab08](https://github.com/conventional-changelog/commitlint/commit/b27ab08544373cfb72a4808756e2e8126ea96a97)) + + +### Features + +* **config-conventional:** footer/body-max-line ([#436](https://github.com/conventional-changelog/commitlint/issues/436)) ([8b394c9](https://github.com/conventional-changelog/commitlint/commit/8b394c94ffe37322d734bd4944add4a6cb2a4689)) +* **config-conventional:** increase header-max-length to 100 ([#860](https://github.com/conventional-changelog/commitlint/issues/860)) ([ff11998](https://github.com/conventional-changelog/commitlint/commit/ff11998e0cf6fcd4f03bc18ab27b1bdd6bf21906)), closes [#859](https://github.com/conventional-changelog/commitlint/issues/859) + + +### BREAKING CHANGES + +* 'improvement' type will now be rejected by this config. + + + + + +## [8.3.4](https://github.com/conventional-changelog/commitlint/compare/v8.3.3...v8.3.4) (2020-01-03) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +# [8.3.0](https://github.com/conventional-changelog/commitlint/compare/v8.2.0...v8.3.0) (2019-10-16) + + +### Features + +* **config-conventional:** use parser with short breaking change support ([#821](https://github.com/conventional-changelog/commitlint/issues/821)) ([4b5300a](https://github.com/conventional-changelog/commitlint/commit/4b5300a)) + + + + + +# [8.2.0](https://github.com/conventional-changelog/commitlint/compare/v8.1.0...v8.2.0) (2019-09-16) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +# [8.1.0](https://github.com/conventional-changelog/commitlint/compare/v8.0.0...v8.1.0) (2019-07-15) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + +# [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06) + +**Note:** Version bump only for package @commitlint/config-conventional + + + + + + +# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31) + + +### Bug Fixes + +* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a)) +* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd)) +* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1)) + + + + + +## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11) + + + + +**Note:** Version bump only for package @commitlint/config-conventional + + +# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11) + + + + +**Note:** Version bump only for package @commitlint/config-conventional + + +## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04) + + + + +**Note:** Version bump only for package @commitlint/config-conventional + + +# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29) + + + + +**Note:** Version bump only for package @commitlint/config-conventional + + +## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22) + + + + +**Note:** Version bump only for package @commitlint/config-conventional + + +# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03) + + + + +**Note:** Version bump only for package @commitlint/config-conventional + + +## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31) + + + + +**Note:** Version bump only for package @commitlint/config-conventional + + +## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31) + + + + +**Note:** Version bump only for package @commitlint/config-conventional + + +## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12) + + + + +**Note:** Version bump only for package @commitlint/config-conventional + + +## [5.2.3](https://github.com/conventional-changelog/commitlint/compare/v5.2.2...v5.2.3) (2017-12-05) + + + + +**Note:** Version bump only for package @commitlint/config-conventional + + +## [5.1.3](https://github.com/conventional-changelog/commitlint/compare/v5.1.2...v5.1.3) (2017-11-24) + + +### Bug Fixes + +* **config-conventional:** add missing applicable attribute to type-enum ([a8db0b1](https://github.com/conventional-changelog/commitlint/commit/a8db0b1)) + + + + + +## [5.1.1](https://github.com/conventional-changelog/commitlint/compare/v5.1.0...v5.1.1) (2017-11-24) + + +### Bug Fixes + +* set access for npm ([8aeaec2](https://github.com/conventional-changelog/commitlint/commit/8aeaec2)) + + + + + +# [5.1.0](https://github.com/conventional-changelog/commitlint/compare/v5.0.2...v5.1.0) (2017-11-24) + + +### Bug Fixes + +* **config-conventional:** remove unneeded dependency ([d0e62fd](https://github.com/conventional-changelog/commitlint/commit/d0e62fd)) + + +### Features + +* add conventional-changelog package ([8bb0a85](https://github.com/conventional-changelog/commitlint/commit/8bb0a85)) diff --git a/node_modules/@commitlint/config-conventional/README.md b/node_modules/@commitlint/config-conventional/README.md new file mode 100644 index 00000000..c0dbebeb --- /dev/null +++ b/node_modules/@commitlint/config-conventional/README.md @@ -0,0 +1,224 @@ +> Lint your conventional commits + +# @commitlint/config-conventional + +Shareable `commitlint` config enforcing [conventional commits](https://conventionalcommits.org/). +Use with [@commitlint/cli](https://npm.im/@commitlint/cli) and [@commitlint/prompt-cli](https://npm.im/@commitlint/prompt-cli). + +## Getting started + +```sh +npm install --save-dev @commitlint/config-conventional @commitlint/cli +echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js +``` + +## Rules + +### Problems + +The following rules are considered problems for `@commitlint/config-conventional` and will yield a non-zero exit code when not met. + +Consult [docs/rules](https://conventional-changelog.github.io/commitlint/#/reference-rules) for a list of available rules. + +#### type-enum + +- **condition**: `type` is found in value +- **rule**: `always` +- **level**: `error` +- **value** + + ``` + [ + 'build', + 'chore', + 'ci', + 'docs', + 'feat', + 'fix', + 'perf', + 'refactor', + 'revert', + 'style', + 'test' + ]; + ``` + +```sh +echo "foo: some message" # fails +echo "fix: some message" # passes +``` + +#### type-case + +- **description**: `type` is in case `value` +- **rule**: `always` +- **level**: `error` +- **value** + ``` + 'lowerCase' + ``` + +```sh +echo "FIX: some message" # fails +echo "fix: some message" # passes +``` + +#### type-empty + +- **condition**: `type` is empty +- **rule**: `never` +- **level**: `error` + +```sh +echo ": some message" # fails +echo "fix: some message" # passes +``` + +#### scope-case + +- **condition**: `scope` is in case `value` +- **rule**: `always` +- **level**: `error` + +``` +'lowerCase' +``` + +```sh +echo "fix(SCOPE): some message" # fails +echo "fix(scope): some message" # passes +``` + +#### subject-case + +- **condition**: `subject` is in one of the cases `['sentence-case', 'start-case', 'pascal-case', 'upper-case']` +- **rule**: `never` +- **level**: `error` + +```sh +echo "fix(SCOPE): Some message" # fails +echo "fix(SCOPE): Some Message" # fails +echo "fix(SCOPE): SomeMessage" # fails +echo "fix(SCOPE): SOMEMESSAGE" # fails +echo "fix(scope): some message" # passes +echo "fix(scope): some Message" # passes +``` + +#### subject-empty + +- **condition**: `subject` is empty +- **rule**: `never` +- **level**: `error` + +```sh +echo "fix:" # fails +echo "fix: some message" # passes +``` + +#### subject-full-stop + +- **condition**: `subject` ends with `value` +- **rule**: `never` +- **level**: `error` +- **value** + +``` +'.' +``` + +```sh +echo "fix: some message." # fails +echo "fix: some message" # passes +``` + +#### header-max-length + +- **condition**: `header` has `value` or less characters +- **rule**: `always` +- **level**: `error` +- **value** + +``` +100 +``` + +```sh +echo "fix: some message that is way too long and breaks the line max-length by several characters" # fails +echo "fix: some message" # passes +``` + +#### footer-leading-blank + +- **condition**: `footer` should have a leading blank line +- **rule**: `always` +- level: `warning` + +```sh +echo "fix: some message +BREAKING CHANGE: It will be significant" # warning + +echo "fix: some message + +BREAKING CHANGE: It will be significant" # passes +``` + +#### footer-max-line-length + +- **condition**: `footer` each line has `value` or less characters +- **rule**: `always` +- level: `error` +- **value** + +``` +100 +``` + +```sh +echo "fix: some message + +BREAKING CHANGE: footer with multiple lines +has a message that is way too long and will break the line rule 'line-max-length' by several characters" # fails + +echo "fix: some message + +BREAKING CHANGE: footer with multiple lines +but still no line is too long" # passes +``` + +#### body-leading-blank + +- **condition**: `body` should have a leading blank line +- **rule**: `always` +- level: `warning` + +```sh +echo "fix: some message +body" # warning + +echo "fix: some message + +body" # passes +``` + +#### body-max-line-length + +- **condition**: `body` each line has `value` or less characters +- **rule**: `always` +- level: `error` +- **value** + +``` +100 +``` + +```sh +echo "fix: some message + +body with multiple lines +has a message that is way too long and will break the line rule 'line-max-length' by several characters" # fails + +echo "fix: some message + +body with multiple lines +but still no line is too long" # passes +``` diff --git a/node_modules/@commitlint/config-conventional/index.js b/node_modules/@commitlint/config-conventional/index.js new file mode 100644 index 00000000..a2e917d3 --- /dev/null +++ b/node_modules/@commitlint/config-conventional/index.js @@ -0,0 +1,135 @@ +module.exports = { + parserPreset: 'conventional-changelog-conventionalcommits', + rules: { + 'body-leading-blank': [1, 'always'], + 'body-max-line-length': [2, 'always', 100], + 'footer-leading-blank': [1, 'always'], + 'footer-max-line-length': [2, 'always', 100], + 'header-max-length': [2, 'always', 100], + 'subject-case': [ + 2, + 'never', + ['sentence-case', 'start-case', 'pascal-case', 'upper-case'], + ], + 'subject-empty': [2, 'never'], + 'subject-full-stop': [2, 'never', '.'], + 'type-case': [2, 'always', 'lower-case'], + 'type-empty': [2, 'never'], + 'type-enum': [ + 2, + 'always', + [ + 'build', + 'chore', + 'ci', + 'docs', + 'feat', + 'fix', + 'perf', + 'refactor', + 'revert', + 'style', + 'test', + ], + ], + }, + prompt: { + questions: { + type: { + description: "Select the type of change that you're committing", + enum: { + feat: { + description: 'A new feature', + title: 'Features', + emoji: '✨', + }, + fix: { + description: 'A bug fix', + title: 'Bug Fixes', + emoji: '🐛', + }, + docs: { + description: 'Documentation only changes', + title: 'Documentation', + emoji: '📚', + }, + style: { + description: + 'Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)', + title: 'Styles', + emoji: '💎', + }, + refactor: { + description: + 'A code change that neither fixes a bug nor adds a feature', + title: 'Code Refactoring', + emoji: '📦', + }, + perf: { + description: 'A code change that improves performance', + title: 'Performance Improvements', + emoji: '🚀', + }, + test: { + description: 'Adding missing tests or correcting existing tests', + title: 'Tests', + emoji: '🚨', + }, + build: { + description: + 'Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)', + title: 'Builds', + emoji: '🛠', + }, + ci: { + description: + 'Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)', + title: 'Continuous Integrations', + emoji: '⚙️', + }, + chore: { + description: "Other changes that don't modify src or test files", + title: 'Chores', + emoji: '♻️', + }, + revert: { + description: 'Reverts a previous commit', + title: 'Reverts', + emoji: '🗑', + }, + }, + }, + scope: { + description: + 'What is the scope of this change (e.g. component or file name)', + }, + subject: { + description: + 'Write a short, imperative tense description of the change', + }, + body: { + description: 'Provide a longer description of the change', + }, + isBreaking: { + description: 'Are there any breaking changes?', + }, + breakingBody: { + description: + 'A BREAKING CHANGE commit requires a body. Please enter a longer description of the commit itself', + }, + breaking: { + description: 'Describe the breaking changes', + }, + isIssueAffected: { + description: 'Does this change affect any open issues?', + }, + issuesBody: { + description: + 'If issues are closed, the commit requires a body. Please enter a longer description of the commit itself', + }, + issues: { + description: 'Add issue references (e.g. "fix #123", "re #123".)', + }, + }, + }, +}; diff --git a/node_modules/@commitlint/config-conventional/license.md b/node_modules/@commitlint/config-conventional/license.md new file mode 100644 index 00000000..9f7de652 --- /dev/null +++ b/node_modules/@commitlint/config-conventional/license.md @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 - present Mario Nebl + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/@commitlint/config-conventional/package.json b/node_modules/@commitlint/config-conventional/package.json new file mode 100644 index 00000000..a837cc54 --- /dev/null +++ b/node_modules/@commitlint/config-conventional/package.json @@ -0,0 +1,46 @@ +{ + "name": "@commitlint/config-conventional", + "version": "13.2.0", + "description": "Shareable commitlint config enforcing conventional commits", + "files": [ + "index.js" + ], + "scripts": { + "deps": "dep-check", + "pkg": "pkg-check" + }, + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "https://github.com/conventional-changelog/commitlint.git" + }, + "keywords": [ + "conventional-changelog", + "commitlint", + "commitlint-config", + "angular" + ], + "author": "Mario Nebl ", + "license": "MIT", + "bugs": { + "url": "https://github.com/conventional-changelog/commitlint/issues" + }, + "homepage": "https://github.com/conventional-changelog/commitlint#readme", + "engines": { + "node": ">=v12" + }, + "devDependencies": { + "@commitlint/lint": "^13.2.0", + "@commitlint/utils": "^13.2.0" + }, + "dependencies": { + "conventional-changelog-conventionalcommits": "^4.3.1" + }, + "gitHead": "65e45339c79e46d01e35ec067edf14d225a3528a" + +,"_resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-13.2.0.tgz" +,"_integrity": "sha512-7u7DdOiF+3qSdDlbQGfpvCH8DCQdLFvnI2+VucYmmV7E92iD6t9PBj+UjIoSQCaMAzYp27Vkall78AkcXBh6Xw==" +,"_from": "@commitlint/config-conventional@13.2.0" +} \ No newline at end of file diff --git a/node_modules/@commitlint/ensure/CHANGELOG.md b/node_modules/@commitlint/ensure/CHANGELOG.md new file mode 100644 index 00000000..70c14c77 --- /dev/null +++ b/node_modules/@commitlint/ensure/CHANGELOG.md @@ -0,0 +1,312 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +# [13.1.0](https://github.com/conventional-changelog/commitlint/compare/v13.0.0...v13.1.0) (2021-07-24) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +# [13.0.0](https://github.com/conventional-changelog/commitlint/compare/v12.1.4...v13.0.0) (2021-05-24) + + +* chore!: remove node 10 support (#2596) ([4db4ba1](https://github.com/conventional-changelog/commitlint/commit/4db4ba1b0b312410a0f62100a93a80c246a6c410)), closes [#2596](https://github.com/conventional-changelog/commitlint/issues/2596) + + +### BREAKING CHANGES + +* minimum node version is 12 + + + + + +## [12.1.3](https://github.com/conventional-changelog/commitlint/compare/v12.1.2...v12.1.3) (2021-05-12) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +## [12.1.2](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.2) (2021-04-29) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +# [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +# [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +# [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16) + + +* refactor!: drop support for node 8 (#1999) ([751f39f](https://github.com/conventional-changelog/commitlint/commit/751f39f284ef232574a176c3c11b1982ee544166)), closes [#1999](https://github.com/conventional-changelog/commitlint/issues/1999) + + +### BREAKING CHANGES + +* remove node 8 from circle-ci checks + +also remove node 13 because we do not support experimental versions + +* docs: update node v10 to latest LTS 10 version + +Co-authored-by: Cedric van Putten + +Co-authored-by: Cedric van Putten + + + + + +## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +# [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +## [9.0.1](https://github.com/conventional-changelog/commitlint/compare/v9.0.0...v9.0.1) (2020-05-26) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +# [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21) + + +### Bug Fixes + +* [#840](https://github.com/conventional-changelog/commitlint/issues/840) add caret to lodash versions ([#843](https://github.com/conventional-changelog/commitlint/issues/843)) ([ffc0bac](https://github.com/conventional-changelog/commitlint/commit/ffc0bac26993acb2ab6a8fa51065f93c92b0d644)) + + + + + +## [8.3.4](https://github.com/conventional-changelog/commitlint/compare/v8.3.3...v8.3.4) (2020-01-03) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +# [8.3.0](https://github.com/conventional-changelog/commitlint/compare/v8.2.0...v8.3.0) (2019-10-16) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +# [8.2.0](https://github.com/conventional-changelog/commitlint/compare/v8.1.0...v8.2.0) (2019-09-16) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +# [8.1.0](https://github.com/conventional-changelog/commitlint/compare/v8.0.0...v8.1.0) (2019-07-15) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +# [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06) + +**Note:** Version bump only for package @commitlint/ensure + + + + + +## [7.5.2](https://github.com/conventional-changelog/commitlint/compare/v7.5.1...v7.5.2) (2019-02-11) + + +### Bug Fixes + +* failing sentence-case for subjects with slashes ([#574](https://github.com/conventional-changelog/commitlint/issues/574)) ([48a8602](https://github.com/conventional-changelog/commitlint/commit/48a8602)) + + + + + + +# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31) + + +### Bug Fixes + +* `sentence-case` allow upper-case characters in first word ([#531](https://github.com/conventional-changelog/commitlint/issues/531)) ([5a6a4a8](https://github.com/conventional-changelog/commitlint/commit/5a6a4a8)), closes [#211](https://github.com/conventional-changelog/commitlint/issues/211) +* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd)) +* slash in scope [#291](https://github.com/conventional-changelog/commitlint/issues/291) ([#529](https://github.com/conventional-changelog/commitlint/issues/529)) ([b2b63e5](https://github.com/conventional-changelog/commitlint/commit/b2b63e5)) + + + + + +## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11) + + + + +**Note:** Version bump only for package @commitlint/ensure + + +# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11) + + +### Bug Fixes + +* fall back to conventional commit-parser settings for missing keys ([#496](https://github.com/conventional-changelog/commitlint/issues/496)) ([831a141](https://github.com/conventional-changelog/commitlint/commit/831a141)), closes [#399](https://github.com/conventional-changelog/commitlint/issues/399) +* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b)) + + + + + +# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05) + + +### Bug Fixes + +* handle case rules for numerics correctly ([cadcfed](https://github.com/conventional-changelog/commitlint/commit/cadcfed)) + + + + + +## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04) + + + + +**Note:** Version bump only for package @commitlint/ensure + + +# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29) + + +### Features + +* add max line length to body/footer ([542f50e](https://github.com/conventional-changelog/commitlint/commit/542f50e)) + + + + + +## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22) + + +### Bug Fixes + +* **ensure:** ignore word delimiters for case matching [#291](https://github.com/conventional-changelog/commitlint/issues/291) ([fa69299](https://github.com/conventional-changelog/commitlint/commit/fa69299)) + + + + + +# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03) + + + + +**Note:** Version bump only for package @commitlint/ensure + + +## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31) + + + + +**Note:** Version bump only for package @commitlint/ensure + + +## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31) + + + + +**Note:** Version bump only for package @commitlint/ensure + + +## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12) + + + + +**Note:** Version bump only for package @commitlint/ensure + + +# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09) + + +### Bug Fixes + +* sanitize ensure.case [#211](https://github.com/conventional-changelog/commitlint/issues/211) ([#217](https://github.com/conventional-changelog/commitlint/issues/217)) ([03aeefc](https://github.com/conventional-changelog/commitlint/commit/03aeefc)) diff --git a/node_modules/@commitlint/ensure/license.md b/node_modules/@commitlint/ensure/license.md new file mode 100644 index 00000000..9f7de652 --- /dev/null +++ b/node_modules/@commitlint/ensure/license.md @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 - present Mario Nebl + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/@commitlint/ensure/package.json b/node_modules/@commitlint/ensure/package.json new file mode 100644 index 00000000..29865a65 --- /dev/null +++ b/node_modules/@commitlint/ensure/package.json @@ -0,0 +1,50 @@ +{ + "name": "@commitlint/ensure", + "version": "13.2.0", + "description": "Lint your commit messages", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "files": [ + "lib/" + ], + "scripts": { + "deps": "dep-check", + "pkg": "pkg-check" + }, + "engines": { + "node": ">=v12" + }, + "repository": { + "type": "git", + "url": "https://github.com/conventional-changelog/commitlint.git" + }, + "bugs": { + "url": "https://github.com/conventional-changelog/commitlint/issues" + }, + "homepage": "https://github.com/conventional-changelog/commitlint#readme", + "keywords": [ + "conventional-changelog", + "commitlint", + "library", + "core" + ], + "author": { + "name": "Mario Nebl", + "email": "hello@herebecode.com" + }, + "license": "MIT", + "devDependencies": { + "@commitlint/utils": "^13.2.0", + "@types/lodash": "^4.14.161", + "globby": "^11.0.0" + }, + "dependencies": { + "@commitlint/types": "^13.2.0", + "lodash": "^4.17.19" + }, + "gitHead": "65e45339c79e46d01e35ec067edf14d225a3528a" + +,"_resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-13.2.0.tgz" +,"_integrity": "sha512-rqhT62RehdLTRBu8OrPHnRCCd/7RmHEE4TiTlT4BLlr5ls5jlZhecOQWJ8np872uCNirrJ5NFjnjYYdbkNoW9Q==" +,"_from": "@commitlint/ensure@13.2.0" +} \ No newline at end of file diff --git a/node_modules/@commitlint/execute-rule/CHANGELOG.md b/node_modules/@commitlint/execute-rule/CHANGELOG.md new file mode 100644 index 00000000..20a9777c --- /dev/null +++ b/node_modules/@commitlint/execute-rule/CHANGELOG.md @@ -0,0 +1,251 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +# [13.0.0](https://github.com/conventional-changelog/commitlint/compare/v12.1.4...v13.0.0) (2021-05-24) + + +* chore!: remove node 10 support (#2596) ([4db4ba1](https://github.com/conventional-changelog/commitlint/commit/4db4ba1b0b312410a0f62100a93a80c246a6c410)), closes [#2596](https://github.com/conventional-changelog/commitlint/issues/2596) + + +### BREAKING CHANGES + +* minimum node version is 12 + + + + + +## [12.1.3](https://github.com/conventional-changelog/commitlint/compare/v12.1.2...v12.1.3) (2021-05-12) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +# [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +# [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +# [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16) + + +* refactor!: drop support for node 8 (#1999) ([751f39f](https://github.com/conventional-changelog/commitlint/commit/751f39f284ef232574a176c3c11b1982ee544166)), closes [#1999](https://github.com/conventional-changelog/commitlint/issues/1999) + + +### BREAKING CHANGES + +* remove node 8 from circle-ci checks + +also remove node 13 because we do not support experimental versions + +* docs: update node v10 to latest LTS 10 version + +Co-authored-by: Cedric van Putten + +Co-authored-by: Cedric van Putten + + + + + +## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +# [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +## [9.0.1](https://github.com/conventional-changelog/commitlint/compare/v9.0.0...v9.0.1) (2020-05-26) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +# [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +## [8.3.4](https://github.com/conventional-changelog/commitlint/compare/v8.3.3...v8.3.4) (2020-01-03) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +# [8.3.0](https://github.com/conventional-changelog/commitlint/compare/v8.2.0...v8.3.0) (2019-10-16) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +# [8.2.0](https://github.com/conventional-changelog/commitlint/compare/v8.1.0...v8.2.0) (2019-09-16) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +# [8.1.0](https://github.com/conventional-changelog/commitlint/compare/v8.0.0...v8.1.0) (2019-07-15) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + +# [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06) + +**Note:** Version bump only for package @commitlint/execute-rule + + + + + + +# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31) + + +### Bug Fixes + +* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd)) + + + + + +## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11) + + + + +**Note:** Version bump only for package @commitlint/execute-rule + + +# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11) + + + + +**Note:** Version bump only for package @commitlint/execute-rule + + +## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04) + + + + +**Note:** Version bump only for package @commitlint/execute-rule + + +## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22) + + + + +**Note:** Version bump only for package @commitlint/execute-rule + + +# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03) + + + + +**Note:** Version bump only for package @commitlint/execute-rule + + +## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31) + + + + +**Note:** Version bump only for package @commitlint/execute-rule + + +## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31) + + + + +**Note:** Version bump only for package @commitlint/execute-rule + + +## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12) + + + + +**Note:** Version bump only for package @commitlint/execute-rule + + +# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09) + + + + +**Note:** Version bump only for package @commitlint/execute-rule diff --git a/node_modules/@commitlint/execute-rule/license.md b/node_modules/@commitlint/execute-rule/license.md new file mode 100644 index 00000000..9f7de652 --- /dev/null +++ b/node_modules/@commitlint/execute-rule/license.md @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 - present Mario Nebl + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/@commitlint/execute-rule/package.json b/node_modules/@commitlint/execute-rule/package.json new file mode 100644 index 00000000..6f9e8800 --- /dev/null +++ b/node_modules/@commitlint/execute-rule/package.json @@ -0,0 +1,44 @@ +{ + "name": "@commitlint/execute-rule", + "version": "13.2.0", + "description": "Lint your commit messages", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "files": [ + "lib/" + ], + "scripts": { + "deps": "dep-check", + "pkg": "pkg-check" + }, + "engines": { + "node": ">=v12" + }, + "repository": { + "type": "git", + "url": "https://github.com/conventional-changelog/commitlint.git" + }, + "bugs": { + "url": "https://github.com/conventional-changelog/commitlint/issues" + }, + "homepage": "https://github.com/conventional-changelog/commitlint#readme", + "keywords": [ + "conventional-changelog", + "commitlint", + "library", + "core" + ], + "author": { + "name": "Mario Nebl", + "email": "hello@herebecode.com" + }, + "license": "MIT", + "devDependencies": { + "@commitlint/utils": "^13.2.0" + }, + "gitHead": "65e45339c79e46d01e35ec067edf14d225a3528a" + +,"_resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-13.2.0.tgz" +,"_integrity": "sha512-6nPwpN0hwTYmsH3WM4hCdN+NrMopgRIuQ0aqZa+jnwMoS/g6ljliQNYfL+m5WO306BaIu1W3yYpbW5aI8gEr0g==" +,"_from": "@commitlint/execute-rule@13.2.0" +} \ No newline at end of file diff --git a/node_modules/@commitlint/format/CHANGELOG.md b/node_modules/@commitlint/format/CHANGELOG.md new file mode 100644 index 00000000..12f65500 --- /dev/null +++ b/node_modules/@commitlint/format/CHANGELOG.md @@ -0,0 +1,281 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28) + +**Note:** Version bump only for package @commitlint/format + + + + + +# [13.1.0](https://github.com/conventional-changelog/commitlint/compare/v13.0.0...v13.1.0) (2021-07-24) + +**Note:** Version bump only for package @commitlint/format + + + + + +# [13.0.0](https://github.com/conventional-changelog/commitlint/compare/v12.1.4...v13.0.0) (2021-05-24) + + +* chore!: remove node 10 support (#2596) ([4db4ba1](https://github.com/conventional-changelog/commitlint/commit/4db4ba1b0b312410a0f62100a93a80c246a6c410)), closes [#2596](https://github.com/conventional-changelog/commitlint/issues/2596) + + +### BREAKING CHANGES + +* minimum node version is 12 + + + + + +## [12.1.3](https://github.com/conventional-changelog/commitlint/compare/v12.1.2...v12.1.3) (2021-05-12) + +**Note:** Version bump only for package @commitlint/format + + + + + +## [12.1.2](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.2) (2021-04-29) + +**Note:** Version bump only for package @commitlint/format + + + + + +## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02) + +**Note:** Version bump only for package @commitlint/format + + + + + +## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23) + + +### Bug Fixes + +* **types:** correct chalkColor type ([#2420](https://github.com/conventional-changelog/commitlint/issues/2420)) ([ef8bdad](https://github.com/conventional-changelog/commitlint/commit/ef8bdad96c9ee7c3ad67f8280818c7f49c1df1fe)) + + + + + +# [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18) + +**Note:** Version bump only for package @commitlint/format + + + + + +# [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05) + +**Note:** Version bump only for package @commitlint/format + + + + + +# [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16) + + +* refactor!: drop support for node 8 (#1999) ([751f39f](https://github.com/conventional-changelog/commitlint/commit/751f39f284ef232574a176c3c11b1982ee544166)), closes [#1999](https://github.com/conventional-changelog/commitlint/issues/1999) + + +### BREAKING CHANGES + +* remove node 8 from circle-ci checks + +also remove node 13 because we do not support experimental versions + +* docs: update node v10 to latest LTS 10 version + +Co-authored-by: Cedric van Putten + +Co-authored-by: Cedric van Putten + + + + + +## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13) + +**Note:** Version bump only for package @commitlint/format + + + + + +## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30) + +**Note:** Version bump only for package @commitlint/format + + + + + +# [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21) + + +### Bug Fixes + +* update dependency chalk to v4 ([#1275](https://github.com/conventional-changelog/commitlint/issues/1275)) ([a5d8fa1](https://github.com/conventional-changelog/commitlint/commit/a5d8fa118e8221361f14f5fd2b21d7aaad008a27)) + + + + + +## [9.0.1](https://github.com/conventional-changelog/commitlint/compare/v9.0.0...v9.0.1) (2020-05-26) + +**Note:** Version bump only for package @commitlint/format + + + + + +# [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21) + +**Note:** Version bump only for package @commitlint/format + + + + + +## [8.3.4](https://github.com/conventional-changelog/commitlint/compare/v8.3.3...v8.3.4) (2020-01-03) + +**Note:** Version bump only for package @commitlint/format + + + + + +# [8.3.0](https://github.com/conventional-changelog/commitlint/compare/v8.2.0...v8.3.0) (2019-10-16) + +**Note:** Version bump only for package @commitlint/format + + + + + +# [8.2.0](https://github.com/conventional-changelog/commitlint/compare/v8.1.0...v8.2.0) (2019-09-16) + +**Note:** Version bump only for package @commitlint/format + + + + + +# [8.1.0](https://github.com/conventional-changelog/commitlint/compare/v8.0.0...v8.1.0) (2019-07-15) + +**Note:** Version bump only for package @commitlint/format + + + + + +## [7.6.1](https://github.com/conventional-changelog/commitlint/compare/v7.6.0...v7.6.1) (2019-05-09) + + +### Bug Fixes + +* ensure format() is available as commonjs default export [#645](https://github.com/conventional-changelog/commitlint/issues/645) ([ec3da92](https://github.com/conventional-changelog/commitlint/commit/ec3da92)) + + + + + +# [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06) + + +### Bug Fixes + +* avoid excessive help text [#606](https://github.com/conventional-changelog/commitlint/issues/606) ([#637](https://github.com/conventional-changelog/commitlint/issues/637)) ([8f3c3b1](https://github.com/conventional-changelog/commitlint/commit/8f3c3b1)) + + + + + + +# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31) + + +### Bug Fixes + +* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a)) +* cleanup message for input with no config ([#519](https://github.com/conventional-changelog/commitlint/issues/519)) ([7d9e760](https://github.com/conventional-changelog/commitlint/commit/7d9e760)) +* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd)) +* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1)) + + + + + +# [7.4.0](https://github.com/conventional-changelog/commitlint/compare/v7.3.2...v7.4.0) (2019-01-27) + + +### Bug Fixes + +* correction to need help link ([#540](https://github.com/conventional-changelog/commitlint/issues/540)) ([fa6168a](https://github.com/conventional-changelog/commitlint/commit/fa6168a)) + + + + + +## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11) + + + + +**Note:** Version bump only for package @commitlint/format + + +# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11) + + +### Bug Fixes + +* **format:** add new line to result ([#518](https://github.com/conventional-changelog/commitlint/issues/518)) ([f1d443b](https://github.com/conventional-changelog/commitlint/commit/f1d443b)), closes [#504](https://github.com/conventional-changelog/commitlint/issues/504) +* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b)) + + + + + +## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11) + + + + +**Note:** Version bump only for package @commitlint/format + + +# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05) + + + + +**Note:** Version bump only for package @commitlint/format + + +## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04) + + + + +**Note:** Version bump only for package @commitlint/format + + +## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22) + + + + +**Note:** Version bump only for package @commitlint/format diff --git a/node_modules/@commitlint/format/README.md b/node_modules/@commitlint/format/README.md new file mode 100644 index 00000000..b815fb89 --- /dev/null +++ b/node_modules/@commitlint/format/README.md @@ -0,0 +1,65 @@ +> Format commitlint reports + +# @commitlint/format + +## Getting started + +```shell +npm install --save @commitlint/format +``` + +## Example + +```js +const format = require('@commitlint/format').default; + +const output = format( + { + valid: false, + errorCount: 1, + warningCount: 1, + results: [ + { + valid: false, + input: 'some: commit message', + errors: [ + { + valid: false, + level: 2, + name: 'some-error', + message: 'This will show up red as it has level 2', + }, + ], + warnings: [ + { + valid: true, + level: 0, + name: 'some-hint', + message: 'This will not show up as it has level 0', + }, + { + valid: false, + level: 1, + name: 'some-warning', + message: 'This will show up yellow as it has level 1', + }, + ], + }, + ], + }, + { + color: false, + } +); + +process.stdout.write(output); + +/* => [ + '✖ This will show up red as it has level 2 [some-error]', + ' This will not show up as it has level 0 [some-hint]', + '⚠ This will show up yellow as it has level 1 [some-warning]', + '✖ found 1 problems, 2 warnings' +] */ +``` + +Consult [docs/api](https://conventional-changelog.github.io/commitlint/#/reference-api) for comprehensive documentation. diff --git a/node_modules/@commitlint/format/license.md b/node_modules/@commitlint/format/license.md new file mode 100644 index 00000000..9f7de652 --- /dev/null +++ b/node_modules/@commitlint/format/license.md @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 - present Mario Nebl + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/@commitlint/format/node_modules/ansi-styles/index.d.ts b/node_modules/@commitlint/format/node_modules/ansi-styles/index.d.ts new file mode 100644 index 00000000..44a907e5 --- /dev/null +++ b/node_modules/@commitlint/format/node_modules/ansi-styles/index.d.ts @@ -0,0 +1,345 @@ +declare type CSSColor = + | 'aliceblue' + | 'antiquewhite' + | 'aqua' + | 'aquamarine' + | 'azure' + | 'beige' + | 'bisque' + | 'black' + | 'blanchedalmond' + | 'blue' + | 'blueviolet' + | 'brown' + | 'burlywood' + | 'cadetblue' + | 'chartreuse' + | 'chocolate' + | 'coral' + | 'cornflowerblue' + | 'cornsilk' + | 'crimson' + | 'cyan' + | 'darkblue' + | 'darkcyan' + | 'darkgoldenrod' + | 'darkgray' + | 'darkgreen' + | 'darkgrey' + | 'darkkhaki' + | 'darkmagenta' + | 'darkolivegreen' + | 'darkorange' + | 'darkorchid' + | 'darkred' + | 'darksalmon' + | 'darkseagreen' + | 'darkslateblue' + | 'darkslategray' + | 'darkslategrey' + | 'darkturquoise' + | 'darkviolet' + | 'deeppink' + | 'deepskyblue' + | 'dimgray' + | 'dimgrey' + | 'dodgerblue' + | 'firebrick' + | 'floralwhite' + | 'forestgreen' + | 'fuchsia' + | 'gainsboro' + | 'ghostwhite' + | 'gold' + | 'goldenrod' + | 'gray' + | 'green' + | 'greenyellow' + | 'grey' + | 'honeydew' + | 'hotpink' + | 'indianred' + | 'indigo' + | 'ivory' + | 'khaki' + | 'lavender' + | 'lavenderblush' + | 'lawngreen' + | 'lemonchiffon' + | 'lightblue' + | 'lightcoral' + | 'lightcyan' + | 'lightgoldenrodyellow' + | 'lightgray' + | 'lightgreen' + | 'lightgrey' + | 'lightpink' + | 'lightsalmon' + | 'lightseagreen' + | 'lightskyblue' + | 'lightslategray' + | 'lightslategrey' + | 'lightsteelblue' + | 'lightyellow' + | 'lime' + | 'limegreen' + | 'linen' + | 'magenta' + | 'maroon' + | 'mediumaquamarine' + | 'mediumblue' + | 'mediumorchid' + | 'mediumpurple' + | 'mediumseagreen' + | 'mediumslateblue' + | 'mediumspringgreen' + | 'mediumturquoise' + | 'mediumvioletred' + | 'midnightblue' + | 'mintcream' + | 'mistyrose' + | 'moccasin' + | 'navajowhite' + | 'navy' + | 'oldlace' + | 'olive' + | 'olivedrab' + | 'orange' + | 'orangered' + | 'orchid' + | 'palegoldenrod' + | 'palegreen' + | 'paleturquoise' + | 'palevioletred' + | 'papayawhip' + | 'peachpuff' + | 'peru' + | 'pink' + | 'plum' + | 'powderblue' + | 'purple' + | 'rebeccapurple' + | 'red' + | 'rosybrown' + | 'royalblue' + | 'saddlebrown' + | 'salmon' + | 'sandybrown' + | 'seagreen' + | 'seashell' + | 'sienna' + | 'silver' + | 'skyblue' + | 'slateblue' + | 'slategray' + | 'slategrey' + | 'snow' + | 'springgreen' + | 'steelblue' + | 'tan' + | 'teal' + | 'thistle' + | 'tomato' + | 'turquoise' + | 'violet' + | 'wheat' + | 'white' + | 'whitesmoke' + | 'yellow' + | 'yellowgreen'; + +declare namespace ansiStyles { + interface ColorConvert { + /** + The RGB color space. + + @param red - (`0`-`255`) + @param green - (`0`-`255`) + @param blue - (`0`-`255`) + */ + rgb(red: number, green: number, blue: number): string; + + /** + The RGB HEX color space. + + @param hex - A hexadecimal string containing RGB data. + */ + hex(hex: string): string; + + /** + @param keyword - A CSS color name. + */ + keyword(keyword: CSSColor): string; + + /** + The HSL color space. + + @param hue - (`0`-`360`) + @param saturation - (`0`-`100`) + @param lightness - (`0`-`100`) + */ + hsl(hue: number, saturation: number, lightness: number): string; + + /** + The HSV color space. + + @param hue - (`0`-`360`) + @param saturation - (`0`-`100`) + @param value - (`0`-`100`) + */ + hsv(hue: number, saturation: number, value: number): string; + + /** + The HSV color space. + + @param hue - (`0`-`360`) + @param whiteness - (`0`-`100`) + @param blackness - (`0`-`100`) + */ + hwb(hue: number, whiteness: number, blackness: number): string; + + /** + Use a [4-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4-bit) to set text color. + */ + ansi(ansi: number): string; + + /** + Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color. + */ + ansi256(ansi: number): string; + } + + interface CSPair { + /** + The ANSI terminal control sequence for starting this style. + */ + readonly open: string; + + /** + The ANSI terminal control sequence for ending this style. + */ + readonly close: string; + } + + interface ColorBase { + readonly ansi: ColorConvert; + readonly ansi256: ColorConvert; + readonly ansi16m: ColorConvert; + + /** + The ANSI terminal control sequence for ending this color. + */ + readonly close: string; + } + + interface Modifier { + /** + Resets the current color chain. + */ + readonly reset: CSPair; + + /** + Make text bold. + */ + readonly bold: CSPair; + + /** + Emitting only a small amount of light. + */ + readonly dim: CSPair; + + /** + Make text italic. (Not widely supported) + */ + readonly italic: CSPair; + + /** + Make text underline. (Not widely supported) + */ + readonly underline: CSPair; + + /** + Inverse background and foreground colors. + */ + readonly inverse: CSPair; + + /** + Prints the text, but makes it invisible. + */ + readonly hidden: CSPair; + + /** + Puts a horizontal line through the center of the text. (Not widely supported) + */ + readonly strikethrough: CSPair; + } + + interface ForegroundColor { + readonly black: CSPair; + readonly red: CSPair; + readonly green: CSPair; + readonly yellow: CSPair; + readonly blue: CSPair; + readonly cyan: CSPair; + readonly magenta: CSPair; + readonly white: CSPair; + + /** + Alias for `blackBright`. + */ + readonly gray: CSPair; + + /** + Alias for `blackBright`. + */ + readonly grey: CSPair; + + readonly blackBright: CSPair; + readonly redBright: CSPair; + readonly greenBright: CSPair; + readonly yellowBright: CSPair; + readonly blueBright: CSPair; + readonly cyanBright: CSPair; + readonly magentaBright: CSPair; + readonly whiteBright: CSPair; + } + + interface BackgroundColor { + readonly bgBlack: CSPair; + readonly bgRed: CSPair; + readonly bgGreen: CSPair; + readonly bgYellow: CSPair; + readonly bgBlue: CSPair; + readonly bgCyan: CSPair; + readonly bgMagenta: CSPair; + readonly bgWhite: CSPair; + + /** + Alias for `bgBlackBright`. + */ + readonly bgGray: CSPair; + + /** + Alias for `bgBlackBright`. + */ + readonly bgGrey: CSPair; + + readonly bgBlackBright: CSPair; + readonly bgRedBright: CSPair; + readonly bgGreenBright: CSPair; + readonly bgYellowBright: CSPair; + readonly bgBlueBright: CSPair; + readonly bgCyanBright: CSPair; + readonly bgMagentaBright: CSPair; + readonly bgWhiteBright: CSPair; + } +} + +declare const ansiStyles: { + readonly modifier: ansiStyles.Modifier; + readonly color: ansiStyles.ForegroundColor & ansiStyles.ColorBase; + readonly bgColor: ansiStyles.BackgroundColor & ansiStyles.ColorBase; + readonly codes: ReadonlyMap; +} & ansiStyles.BackgroundColor & ansiStyles.ForegroundColor & ansiStyles.Modifier; + +export = ansiStyles; diff --git a/node_modules/@commitlint/format/node_modules/ansi-styles/index.js b/node_modules/@commitlint/format/node_modules/ansi-styles/index.js new file mode 100644 index 00000000..5d82581a --- /dev/null +++ b/node_modules/@commitlint/format/node_modules/ansi-styles/index.js @@ -0,0 +1,163 @@ +'use strict'; + +const wrapAnsi16 = (fn, offset) => (...args) => { + const code = fn(...args); + return `\u001B[${code + offset}m`; +}; + +const wrapAnsi256 = (fn, offset) => (...args) => { + const code = fn(...args); + return `\u001B[${38 + offset};5;${code}m`; +}; + +const wrapAnsi16m = (fn, offset) => (...args) => { + const rgb = fn(...args); + return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`; +}; + +const ansi2ansi = n => n; +const rgb2rgb = (r, g, b) => [r, g, b]; + +const setLazyProperty = (object, property, get) => { + Object.defineProperty(object, property, { + get: () => { + const value = get(); + + Object.defineProperty(object, property, { + value, + enumerable: true, + configurable: true + }); + + return value; + }, + enumerable: true, + configurable: true + }); +}; + +/** @type {typeof import('color-convert')} */ +let colorConvert; +const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => { + if (colorConvert === undefined) { + colorConvert = require('color-convert'); + } + + const offset = isBackground ? 10 : 0; + const styles = {}; + + for (const [sourceSpace, suite] of Object.entries(colorConvert)) { + const name = sourceSpace === 'ansi16' ? 'ansi' : sourceSpace; + if (sourceSpace === targetSpace) { + styles[name] = wrap(identity, offset); + } else if (typeof suite === 'object') { + styles[name] = wrap(suite[targetSpace], offset); + } + } + + return styles; +}; + +function assembleStyles() { + const codes = new Map(); + const styles = { + modifier: { + reset: [0, 0], + // 21 isn't widely supported and 22 does the same thing + bold: [1, 22], + dim: [2, 22], + italic: [3, 23], + underline: [4, 24], + inverse: [7, 27], + hidden: [8, 28], + strikethrough: [9, 29] + }, + color: { + black: [30, 39], + red: [31, 39], + green: [32, 39], + yellow: [33, 39], + blue: [34, 39], + magenta: [35, 39], + cyan: [36, 39], + white: [37, 39], + + // Bright color + blackBright: [90, 39], + redBright: [91, 39], + greenBright: [92, 39], + yellowBright: [93, 39], + blueBright: [94, 39], + magentaBright: [95, 39], + cyanBright: [96, 39], + whiteBright: [97, 39] + }, + bgColor: { + bgBlack: [40, 49], + bgRed: [41, 49], + bgGreen: [42, 49], + bgYellow: [43, 49], + bgBlue: [44, 49], + bgMagenta: [45, 49], + bgCyan: [46, 49], + bgWhite: [47, 49], + + // Bright color + bgBlackBright: [100, 49], + bgRedBright: [101, 49], + bgGreenBright: [102, 49], + bgYellowBright: [103, 49], + bgBlueBright: [104, 49], + bgMagentaBright: [105, 49], + bgCyanBright: [106, 49], + bgWhiteBright: [107, 49] + } + }; + + // Alias bright black as gray (and grey) + styles.color.gray = styles.color.blackBright; + styles.bgColor.bgGray = styles.bgColor.bgBlackBright; + styles.color.grey = styles.color.blackBright; + styles.bgColor.bgGrey = styles.bgColor.bgBlackBright; + + for (const [groupName, group] of Object.entries(styles)) { + for (const [styleName, style] of Object.entries(group)) { + styles[styleName] = { + open: `\u001B[${style[0]}m`, + close: `\u001B[${style[1]}m` + }; + + group[styleName] = styles[styleName]; + + codes.set(style[0], style[1]); + } + + Object.defineProperty(styles, groupName, { + value: group, + enumerable: false + }); + } + + Object.defineProperty(styles, 'codes', { + value: codes, + enumerable: false + }); + + styles.color.close = '\u001B[39m'; + styles.bgColor.close = '\u001B[49m'; + + setLazyProperty(styles.color, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, false)); + setLazyProperty(styles.color, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, false)); + setLazyProperty(styles.color, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, false)); + setLazyProperty(styles.bgColor, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, true)); + setLazyProperty(styles.bgColor, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, true)); + setLazyProperty(styles.bgColor, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, true)); + + return styles; +} + +// Make the export immutable +Object.defineProperty(module, 'exports', { + enumerable: true, + get: assembleStyles +}); diff --git a/node_modules/@commitlint/format/node_modules/ansi-styles/license b/node_modules/@commitlint/format/node_modules/ansi-styles/license new file mode 100644 index 00000000..e7af2f77 --- /dev/null +++ b/node_modules/@commitlint/format/node_modules/ansi-styles/license @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@commitlint/format/node_modules/ansi-styles/package.json b/node_modules/@commitlint/format/node_modules/ansi-styles/package.json new file mode 100644 index 00000000..28f2a6da --- /dev/null +++ b/node_modules/@commitlint/format/node_modules/ansi-styles/package.json @@ -0,0 +1,60 @@ +{ + "name": "ansi-styles", + "version": "4.3.0", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "funding": "https://github.com/chalk/ansi-styles?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "color-convert": "^2.0.1" + }, + "devDependencies": { + "@types/color-convert": "^1.9.0", + "ava": "^2.3.0", + "svg-term-cli": "^2.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" +,"_integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==" +,"_from": "ansi-styles@4.3.0" +} \ No newline at end of file diff --git a/node_modules/@commitlint/format/node_modules/ansi-styles/readme.md b/node_modules/@commitlint/format/node_modules/ansi-styles/readme.md new file mode 100644 index 00000000..24883de8 --- /dev/null +++ b/node_modules/@commitlint/format/node_modules/ansi-styles/readme.md @@ -0,0 +1,152 @@ +# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) + +> [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal + +You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings. + + + +## Install + +``` +$ npm install ansi-styles +``` + +## Usage + +```js +const style = require('ansi-styles'); + +console.log(`${style.green.open}Hello world!${style.green.close}`); + + +// Color conversion between 16/256/truecolor +// NOTE: If conversion goes to 16 colors or 256 colors, the original color +// may be degraded to fit that color palette. This means terminals +// that do not support 16 million colors will best-match the +// original color. +console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close); +console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close); +console.log(style.color.ansi16m.hex('#abcdef') + 'Hello world!' + style.color.close); +``` + +## API + +Each style has an `open` and `close` property. + +## Styles + +### Modifiers + +- `reset` +- `bold` +- `dim` +- `italic` *(Not widely supported)* +- `underline` +- `inverse` +- `hidden` +- `strikethrough` *(Not widely supported)* + +### Colors + +- `black` +- `red` +- `green` +- `yellow` +- `blue` +- `magenta` +- `cyan` +- `white` +- `blackBright` (alias: `gray`, `grey`) +- `redBright` +- `greenBright` +- `yellowBright` +- `blueBright` +- `magentaBright` +- `cyanBright` +- `whiteBright` + +### Background colors + +- `bgBlack` +- `bgRed` +- `bgGreen` +- `bgYellow` +- `bgBlue` +- `bgMagenta` +- `bgCyan` +- `bgWhite` +- `bgBlackBright` (alias: `bgGray`, `bgGrey`) +- `bgRedBright` +- `bgGreenBright` +- `bgYellowBright` +- `bgBlueBright` +- `bgMagentaBright` +- `bgCyanBright` +- `bgWhiteBright` + +## Advanced usage + +By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module. + +- `style.modifier` +- `style.color` +- `style.bgColor` + +###### Example + +```js +console.log(style.color.green.open); +``` + +Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `style.codes`, which returns a `Map` with the open codes as keys and close codes as values. + +###### Example + +```js +console.log(style.codes.get(36)); +//=> 39 +``` + +## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728) + +`ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors. + +The following color spaces from `color-convert` are supported: + +- `rgb` +- `hex` +- `keyword` +- `hsl` +- `hsv` +- `hwb` +- `ansi` +- `ansi256` + +To use these, call the associated conversion function with the intended output, for example: + +```js +style.color.ansi.rgb(100, 200, 15); // RGB to 16 color ansi foreground code +style.bgColor.ansi.rgb(100, 200, 15); // RGB to 16 color ansi background code + +style.color.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code +style.bgColor.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code + +style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground code +style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code +``` + +## Related + +- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal + +## Maintainers + +- [Sindre Sorhus](https://github.com/sindresorhus) +- [Josh Junon](https://github.com/qix-) + +## For enterprise + +Available as part of the Tidelift Subscription. + +The maintainers of `ansi-styles` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-ansi-styles?utm_source=npm-ansi-styles&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/node_modules/@commitlint/format/node_modules/chalk/index.d.ts b/node_modules/@commitlint/format/node_modules/chalk/index.d.ts new file mode 100644 index 00000000..9cd88f38 --- /dev/null +++ b/node_modules/@commitlint/format/node_modules/chalk/index.d.ts @@ -0,0 +1,415 @@ +/** +Basic foreground colors. + +[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) +*/ +declare type ForegroundColor = + | 'black' + | 'red' + | 'green' + | 'yellow' + | 'blue' + | 'magenta' + | 'cyan' + | 'white' + | 'gray' + | 'grey' + | 'blackBright' + | 'redBright' + | 'greenBright' + | 'yellowBright' + | 'blueBright' + | 'magentaBright' + | 'cyanBright' + | 'whiteBright'; + +/** +Basic background colors. + +[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) +*/ +declare type BackgroundColor = + | 'bgBlack' + | 'bgRed' + | 'bgGreen' + | 'bgYellow' + | 'bgBlue' + | 'bgMagenta' + | 'bgCyan' + | 'bgWhite' + | 'bgGray' + | 'bgGrey' + | 'bgBlackBright' + | 'bgRedBright' + | 'bgGreenBright' + | 'bgYellowBright' + | 'bgBlueBright' + | 'bgMagentaBright' + | 'bgCyanBright' + | 'bgWhiteBright'; + +/** +Basic colors. + +[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) +*/ +declare type Color = ForegroundColor | BackgroundColor; + +declare type Modifiers = + | 'reset' + | 'bold' + | 'dim' + | 'italic' + | 'underline' + | 'inverse' + | 'hidden' + | 'strikethrough' + | 'visible'; + +declare namespace chalk { + /** + Levels: + - `0` - All colors disabled. + - `1` - Basic 16 colors support. + - `2` - ANSI 256 colors support. + - `3` - Truecolor 16 million colors support. + */ + type Level = 0 | 1 | 2 | 3; + + interface Options { + /** + Specify the color support for Chalk. + + By default, color support is automatically detected based on the environment. + + Levels: + - `0` - All colors disabled. + - `1` - Basic 16 colors support. + - `2` - ANSI 256 colors support. + - `3` - Truecolor 16 million colors support. + */ + level?: Level; + } + + /** + Return a new Chalk instance. + */ + type Instance = new (options?: Options) => Chalk; + + /** + Detect whether the terminal supports color. + */ + interface ColorSupport { + /** + The color level used by Chalk. + */ + level: Level; + + /** + Return whether Chalk supports basic 16 colors. + */ + hasBasic: boolean; + + /** + Return whether Chalk supports ANSI 256 colors. + */ + has256: boolean; + + /** + Return whether Chalk supports Truecolor 16 million colors. + */ + has16m: boolean; + } + + interface ChalkFunction { + /** + Use a template string. + + @remarks Template literals are unsupported for nested calls (see [issue #341](https://github.com/chalk/chalk/issues/341)) + + @example + ``` + import chalk = require('chalk'); + + log(chalk` + CPU: {red ${cpu.totalPercent}%} + RAM: {green ${ram.used / ram.total * 100}%} + DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} + `); + ``` + + @example + ``` + import chalk = require('chalk'); + + log(chalk.red.bgBlack`2 + 3 = {bold ${2 + 3}}`) + ``` + */ + (text: TemplateStringsArray, ...placeholders: unknown[]): string; + + (...text: unknown[]): string; + } + + interface Chalk extends ChalkFunction { + /** + Return a new Chalk instance. + */ + Instance: Instance; + + /** + The color support for Chalk. + + By default, color support is automatically detected based on the environment. + + Levels: + - `0` - All colors disabled. + - `1` - Basic 16 colors support. + - `2` - ANSI 256 colors support. + - `3` - Truecolor 16 million colors support. + */ + level: Level; + + /** + Use HEX value to set text color. + + @param color - Hexadecimal value representing the desired color. + + @example + ``` + import chalk = require('chalk'); + + chalk.hex('#DEADED'); + ``` + */ + hex(color: string): Chalk; + + /** + Use keyword color value to set text color. + + @param color - Keyword value representing the desired color. + + @example + ``` + import chalk = require('chalk'); + + chalk.keyword('orange'); + ``` + */ + keyword(color: string): Chalk; + + /** + Use RGB values to set text color. + */ + rgb(red: number, green: number, blue: number): Chalk; + + /** + Use HSL values to set text color. + */ + hsl(hue: number, saturation: number, lightness: number): Chalk; + + /** + Use HSV values to set text color. + */ + hsv(hue: number, saturation: number, value: number): Chalk; + + /** + Use HWB values to set text color. + */ + hwb(hue: number, whiteness: number, blackness: number): Chalk; + + /** + Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set text color. + + 30 <= code && code < 38 || 90 <= code && code < 98 + For example, 31 for red, 91 for redBright. + */ + ansi(code: number): Chalk; + + /** + Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color. + */ + ansi256(index: number): Chalk; + + /** + Use HEX value to set background color. + + @param color - Hexadecimal value representing the desired color. + + @example + ``` + import chalk = require('chalk'); + + chalk.bgHex('#DEADED'); + ``` + */ + bgHex(color: string): Chalk; + + /** + Use keyword color value to set background color. + + @param color - Keyword value representing the desired color. + + @example + ``` + import chalk = require('chalk'); + + chalk.bgKeyword('orange'); + ``` + */ + bgKeyword(color: string): Chalk; + + /** + Use RGB values to set background color. + */ + bgRgb(red: number, green: number, blue: number): Chalk; + + /** + Use HSL values to set background color. + */ + bgHsl(hue: number, saturation: number, lightness: number): Chalk; + + /** + Use HSV values to set background color. + */ + bgHsv(hue: number, saturation: number, value: number): Chalk; + + /** + Use HWB values to set background color. + */ + bgHwb(hue: number, whiteness: number, blackness: number): Chalk; + + /** + Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set background color. + + 30 <= code && code < 38 || 90 <= code && code < 98 + For example, 31 for red, 91 for redBright. + Use the foreground code, not the background code (for example, not 41, nor 101). + */ + bgAnsi(code: number): Chalk; + + /** + Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color. + */ + bgAnsi256(index: number): Chalk; + + /** + Modifier: Resets the current color chain. + */ + readonly reset: Chalk; + + /** + Modifier: Make text bold. + */ + readonly bold: Chalk; + + /** + Modifier: Emitting only a small amount of light. + */ + readonly dim: Chalk; + + /** + Modifier: Make text italic. (Not widely supported) + */ + readonly italic: Chalk; + + /** + Modifier: Make text underline. (Not widely supported) + */ + readonly underline: Chalk; + + /** + Modifier: Inverse background and foreground colors. + */ + readonly inverse: Chalk; + + /** + Modifier: Prints the text, but makes it invisible. + */ + readonly hidden: Chalk; + + /** + Modifier: Puts a horizontal line through the center of the text. (Not widely supported) + */ + readonly strikethrough: Chalk; + + /** + Modifier: Prints the text only when Chalk has a color support level > 0. + Can be useful for things that are purely cosmetic. + */ + readonly visible: Chalk; + + readonly black: Chalk; + readonly red: Chalk; + readonly green: Chalk; + readonly yellow: Chalk; + readonly blue: Chalk; + readonly magenta: Chalk; + readonly cyan: Chalk; + readonly white: Chalk; + + /* + Alias for `blackBright`. + */ + readonly gray: Chalk; + + /* + Alias for `blackBright`. + */ + readonly grey: Chalk; + + readonly blackBright: Chalk; + readonly redBright: Chalk; + readonly greenBright: Chalk; + readonly yellowBright: Chalk; + readonly blueBright: Chalk; + readonly magentaBright: Chalk; + readonly cyanBright: Chalk; + readonly whiteBright: Chalk; + + readonly bgBlack: Chalk; + readonly bgRed: Chalk; + readonly bgGreen: Chalk; + readonly bgYellow: Chalk; + readonly bgBlue: Chalk; + readonly bgMagenta: Chalk; + readonly bgCyan: Chalk; + readonly bgWhite: Chalk; + + /* + Alias for `bgBlackBright`. + */ + readonly bgGray: Chalk; + + /* + Alias for `bgBlackBright`. + */ + readonly bgGrey: Chalk; + + readonly bgBlackBright: Chalk; + readonly bgRedBright: Chalk; + readonly bgGreenBright: Chalk; + readonly bgYellowBright: Chalk; + readonly bgBlueBright: Chalk; + readonly bgMagentaBright: Chalk; + readonly bgCyanBright: Chalk; + readonly bgWhiteBright: Chalk; + } +} + +/** +Main Chalk object that allows to chain styles together. +Call the last one as a method with a string argument. +Order doesn't matter, and later styles take precedent in case of a conflict. +This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`. +*/ +declare const chalk: chalk.Chalk & chalk.ChalkFunction & { + supportsColor: chalk.ColorSupport | false; + Level: chalk.Level; + Color: Color; + ForegroundColor: ForegroundColor; + BackgroundColor: BackgroundColor; + Modifiers: Modifiers; + stderr: chalk.Chalk & {supportsColor: chalk.ColorSupport | false}; +}; + +export = chalk; diff --git a/node_modules/@commitlint/format/node_modules/chalk/license b/node_modules/@commitlint/format/node_modules/chalk/license new file mode 100644 index 00000000..e7af2f77 --- /dev/null +++ b/node_modules/@commitlint/format/node_modules/chalk/license @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@commitlint/format/node_modules/chalk/package.json b/node_modules/@commitlint/format/node_modules/chalk/package.json new file mode 100644 index 00000000..0f1422e1 --- /dev/null +++ b/node_modules/@commitlint/format/node_modules/chalk/package.json @@ -0,0 +1,72 @@ +{ + "name": "chalk", + "version": "4.1.2", + "description": "Terminal string styling done right", + "license": "MIT", + "repository": "chalk/chalk", + "funding": "https://github.com/chalk/chalk?sponsor=1", + "main": "source", + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && nyc ava && tsd", + "bench": "matcha benchmark.js" + }, + "files": [ + "source", + "index.d.ts" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "coveralls": "^3.0.7", + "execa": "^4.0.0", + "import-fresh": "^3.1.0", + "matcha": "^0.7.0", + "nyc": "^15.0.0", + "resolve-from": "^5.0.0", + "tsd": "^0.7.4", + "xo": "^0.28.2" + }, + "xo": { + "rules": { + "unicorn/prefer-string-slice": "off", + "unicorn/prefer-includes": "off", + "@typescript-eslint/member-ordering": "off", + "no-redeclare": "off", + "unicorn/string-content": "off", + "unicorn/better-regex": "off" + } + } + +,"_resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" +,"_integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==" +,"_from": "chalk@4.1.2" +} \ No newline at end of file diff --git a/node_modules/@commitlint/format/node_modules/chalk/readme.md b/node_modules/@commitlint/format/node_modules/chalk/readme.md new file mode 100644 index 00000000..a055d21c --- /dev/null +++ b/node_modules/@commitlint/format/node_modules/chalk/readme.md @@ -0,0 +1,341 @@ +

+
+
+ Chalk +
+
+
+

+ +> Terminal string styling done right + +[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![npm dependents](https://badgen.net/npm/dependents/chalk)](https://www.npmjs.com/package/chalk?activeTab=dependents) [![Downloads](https://badgen.net/npm/dt/chalk)](https://www.npmjs.com/package/chalk) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) ![TypeScript-ready](https://img.shields.io/npm/types/chalk.svg) [![run on repl.it](https://repl.it/badge/github/chalk/chalk)](https://repl.it/github/chalk/chalk) + + + +
+ +--- + + + +--- + +
+ +## Highlights + +- Expressive API +- Highly performant +- Ability to nest styles +- [256/Truecolor color support](#256-and-truecolor-color-support) +- Auto-detects color support +- Doesn't extend `String.prototype` +- Clean and focused +- Actively maintained +- [Used by ~50,000 packages](https://www.npmjs.com/browse/depended/chalk) as of January 1, 2020 + +## Install + +```console +$ npm install chalk +``` + +## Usage + +```js +const chalk = require('chalk'); + +console.log(chalk.blue('Hello world!')); +``` + +Chalk comes with an easy to use composable API where you just chain and nest the styles you want. + +```js +const chalk = require('chalk'); +const log = console.log; + +// Combine styled and normal strings +log(chalk.blue('Hello') + ' World' + chalk.red('!')); + +// Compose multiple styles using the chainable API +log(chalk.blue.bgRed.bold('Hello world!')); + +// Pass in multiple arguments +log(chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz')); + +// Nest styles +log(chalk.red('Hello', chalk.underline.bgBlue('world') + '!')); + +// Nest styles of the same type even (color, underline, background) +log(chalk.green( + 'I am a green line ' + + chalk.blue.underline.bold('with a blue substring') + + ' that becomes green again!' +)); + +// ES2015 template literal +log(` +CPU: ${chalk.red('90%')} +RAM: ${chalk.green('40%')} +DISK: ${chalk.yellow('70%')} +`); + +// ES2015 tagged template literal +log(chalk` +CPU: {red ${cpu.totalPercent}%} +RAM: {green ${ram.used / ram.total * 100}%} +DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} +`); + +// Use RGB colors in terminal emulators that support it. +log(chalk.keyword('orange')('Yay for orange colored text!')); +log(chalk.rgb(123, 45, 67).underline('Underlined reddish color')); +log(chalk.hex('#DEADED').bold('Bold gray!')); +``` + +Easily define your own themes: + +```js +const chalk = require('chalk'); + +const error = chalk.bold.red; +const warning = chalk.keyword('orange'); + +console.log(error('Error!')); +console.log(warning('Warning!')); +``` + +Take advantage of console.log [string substitution](https://nodejs.org/docs/latest/api/console.html#console_console_log_data_args): + +```js +const name = 'Sindre'; +console.log(chalk.green('Hello %s'), name); +//=> 'Hello Sindre' +``` + +## API + +### chalk.`