diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b16bde3..0ff72cc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog of gitstream-github-action +## [gitstream-github-action v2.0.3](https://github.com/linear-b/gitstream-github-action/tree/v2.0.3) + +**Release Date:** 2024-05-20 + +### Changes + +- Fix escaping in files when contains special characters + ## [gitstream-github-action v2.0.2](https://github.com/linear-b/gitstream-github-action/tree/v2.0.2) **Release Date:** 2024-05-16 @@ -8,7 +16,6 @@ - Fix escaping in `config.ignore_files` - ## [gitstream-github-action v2.0.1](https://github.com/linear-b/gitstream-github-action/tree/v2.0.1) **Release Date:** 2024-05-13 @@ -17,7 +24,6 @@ - Install external dependencies to support custom plugins - ## [gitstream-github-action v2](https://github.com/linear-b/gitstream-github-action/tree/v2) **Release Date:** 2024-05-13 diff --git a/dist/index.js b/dist/index.js index 73fb249f..08ae8af3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={87351:function(Bn,Hn,zn){"use strict";var ni=this&&this.__createBinding||(Object.create?function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Object.defineProperty(Bn,ni,{enumerable:true,get:function(){return Hn[zn]}})}:function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Bn[ni]=Hn[zn]});var Ci=this&&this.__setModuleDefault||(Object.create?function(Bn,Hn){Object.defineProperty(Bn,"default",{enumerable:true,value:Hn})}:function(Bn,Hn){Bn["default"]=Hn});var ts=this&&this.__importStar||function(Bn){if(Bn&&Bn.__esModule)return Bn;var Hn={};if(Bn!=null)for(var zn in Bn)if(zn!=="default"&&Object.hasOwnProperty.call(Bn,zn))ni(Hn,Bn,zn);Ci(Hn,Bn);return Hn};Object.defineProperty(Hn,"__esModule",{value:true});Hn.issue=Hn.issueCommand=void 0;const Ps=ts(zn(22037));const aa=zn(5278);function issueCommand(Bn,Hn,zn){const ni=new Command(Bn,Hn,zn);process.stdout.write(ni.toString()+Ps.EOL)}Hn.issueCommand=issueCommand;function issue(Bn,Hn=""){issueCommand(Bn,{},Hn)}Hn.issue=issue;const oa="::";class Command{constructor(Bn,Hn,zn){if(!Bn){Bn="missing.command"}this.command=Bn;this.properties=Hn;this.message=zn}toString(){let Bn=oa+this.command;if(this.properties&&Object.keys(this.properties).length>0){Bn+=" ";let Hn=true;for(const zn in this.properties){if(this.properties.hasOwnProperty(zn)){const ni=this.properties[zn];if(ni){if(Hn){Hn=false}else{Bn+=","}Bn+=`${zn}=${escapeProperty(ni)}`}}}}Bn+=`${oa}${escapeData(this.message)}`;return Bn}}function escapeData(Bn){return aa.toCommandValue(Bn).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(Bn){return aa.toCommandValue(Bn).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},42186:function(Bn,Hn,zn){"use strict";var ni=this&&this.__createBinding||(Object.create?function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Object.defineProperty(Bn,ni,{enumerable:true,get:function(){return Hn[zn]}})}:function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Bn[ni]=Hn[zn]});var Ci=this&&this.__setModuleDefault||(Object.create?function(Bn,Hn){Object.defineProperty(Bn,"default",{enumerable:true,value:Hn})}:function(Bn,Hn){Bn["default"]=Hn});var ts=this&&this.__importStar||function(Bn){if(Bn&&Bn.__esModule)return Bn;var Hn={};if(Bn!=null)for(var zn in Bn)if(zn!=="default"&&Object.hasOwnProperty.call(Bn,zn))ni(Hn,Bn,zn);Ci(Hn,Bn);return Hn};var Ps=this&&this.__awaiter||function(Bn,Hn,zn,ni){function adopt(Bn){return Bn instanceof zn?Bn:new zn((function(Hn){Hn(Bn)}))}return new(zn||(zn=Promise))((function(zn,Ci){function fulfilled(Bn){try{step(ni.next(Bn))}catch(Bn){Ci(Bn)}}function rejected(Bn){try{step(ni["throw"](Bn))}catch(Bn){Ci(Bn)}}function step(Bn){Bn.done?zn(Bn.value):adopt(Bn.value).then(fulfilled,rejected)}step((ni=ni.apply(Bn,Hn||[])).next())}))};Object.defineProperty(Hn,"__esModule",{value:true});Hn.getIDToken=Hn.getState=Hn.saveState=Hn.group=Hn.endGroup=Hn.startGroup=Hn.info=Hn.notice=Hn.warning=Hn.error=Hn.debug=Hn.isDebug=Hn.setFailed=Hn.setCommandEcho=Hn.setOutput=Hn.getBooleanInput=Hn.getMultilineInput=Hn.getInput=Hn.addPath=Hn.setSecret=Hn.exportVariable=Hn.ExitCode=void 0;const aa=zn(87351);const oa=zn(717);const ca=zn(5278);const _a=ts(zn(22037));const xa=ts(zn(71017));const Ga=zn(98041);var Ha;(function(Bn){Bn[Bn["Success"]=0]="Success";Bn[Bn["Failure"]=1]="Failure"})(Ha=Hn.ExitCode||(Hn.ExitCode={}));function exportVariable(Bn,Hn){const zn=ca.toCommandValue(Hn);process.env[Bn]=zn;const ni=process.env["GITHUB_ENV"]||"";if(ni){return oa.issueFileCommand("ENV",oa.prepareKeyValueMessage(Bn,Hn))}aa.issueCommand("set-env",{name:Bn},zn)}Hn.exportVariable=exportVariable;function setSecret(Bn){aa.issueCommand("add-mask",{},Bn)}Hn.setSecret=setSecret;function addPath(Bn){const Hn=process.env["GITHUB_PATH"]||"";if(Hn){oa.issueFileCommand("PATH",Bn)}else{aa.issueCommand("add-path",{},Bn)}process.env["PATH"]=`${Bn}${xa.delimiter}${process.env["PATH"]}`}Hn.addPath=addPath;function getInput(Bn,Hn){const zn=process.env[`INPUT_${Bn.replace(/ /g,"_").toUpperCase()}`]||"";if(Hn&&Hn.required&&!zn){throw new Error(`Input required and not supplied: ${Bn}`)}if(Hn&&Hn.trimWhitespace===false){return zn}return zn.trim()}Hn.getInput=getInput;function getMultilineInput(Bn,Hn){const zn=getInput(Bn,Hn).split("\n").filter((Bn=>Bn!==""));if(Hn&&Hn.trimWhitespace===false){return zn}return zn.map((Bn=>Bn.trim()))}Hn.getMultilineInput=getMultilineInput;function getBooleanInput(Bn,Hn){const zn=["true","True","TRUE"];const ni=["false","False","FALSE"];const Ci=getInput(Bn,Hn);if(zn.includes(Ci))return true;if(ni.includes(Ci))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${Bn}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}Hn.getBooleanInput=getBooleanInput;function setOutput(Bn,Hn){const zn=process.env["GITHUB_OUTPUT"]||"";if(zn){return oa.issueFileCommand("OUTPUT",oa.prepareKeyValueMessage(Bn,Hn))}process.stdout.write(_a.EOL);aa.issueCommand("set-output",{name:Bn},ca.toCommandValue(Hn))}Hn.setOutput=setOutput;function setCommandEcho(Bn){aa.issue("echo",Bn?"on":"off")}Hn.setCommandEcho=setCommandEcho;function setFailed(Bn){process.exitCode=Ha.Failure;error(Bn)}Hn.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}Hn.isDebug=isDebug;function debug(Bn){aa.issueCommand("debug",{},Bn)}Hn.debug=debug;function error(Bn,Hn={}){aa.issueCommand("error",ca.toCommandProperties(Hn),Bn instanceof Error?Bn.toString():Bn)}Hn.error=error;function warning(Bn,Hn={}){aa.issueCommand("warning",ca.toCommandProperties(Hn),Bn instanceof Error?Bn.toString():Bn)}Hn.warning=warning;function notice(Bn,Hn={}){aa.issueCommand("notice",ca.toCommandProperties(Hn),Bn instanceof Error?Bn.toString():Bn)}Hn.notice=notice;function info(Bn){process.stdout.write(Bn+_a.EOL)}Hn.info=info;function startGroup(Bn){aa.issue("group",Bn)}Hn.startGroup=startGroup;function endGroup(){aa.issue("endgroup")}Hn.endGroup=endGroup;function group(Bn,Hn){return Ps(this,void 0,void 0,(function*(){startGroup(Bn);let zn;try{zn=yield Hn()}finally{endGroup()}return zn}))}Hn.group=group;function saveState(Bn,Hn){const zn=process.env["GITHUB_STATE"]||"";if(zn){return oa.issueFileCommand("STATE",oa.prepareKeyValueMessage(Bn,Hn))}aa.issueCommand("save-state",{name:Bn},ca.toCommandValue(Hn))}Hn.saveState=saveState;function getState(Bn){return process.env[`STATE_${Bn}`]||""}Hn.getState=getState;function getIDToken(Bn){return Ps(this,void 0,void 0,(function*(){return yield Ga.OidcClient.getIDToken(Bn)}))}Hn.getIDToken=getIDToken;var so=zn(81327);Object.defineProperty(Hn,"summary",{enumerable:true,get:function(){return so.summary}});var oo=zn(81327);Object.defineProperty(Hn,"markdownSummary",{enumerable:true,get:function(){return oo.markdownSummary}});var Jo=zn(2981);Object.defineProperty(Hn,"toPosixPath",{enumerable:true,get:function(){return Jo.toPosixPath}});Object.defineProperty(Hn,"toWin32Path",{enumerable:true,get:function(){return Jo.toWin32Path}});Object.defineProperty(Hn,"toPlatformPath",{enumerable:true,get:function(){return Jo.toPlatformPath}})},717:function(Bn,Hn,zn){"use strict";var ni=this&&this.__createBinding||(Object.create?function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Object.defineProperty(Bn,ni,{enumerable:true,get:function(){return Hn[zn]}})}:function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Bn[ni]=Hn[zn]});var Ci=this&&this.__setModuleDefault||(Object.create?function(Bn,Hn){Object.defineProperty(Bn,"default",{enumerable:true,value:Hn})}:function(Bn,Hn){Bn["default"]=Hn});var ts=this&&this.__importStar||function(Bn){if(Bn&&Bn.__esModule)return Bn;var Hn={};if(Bn!=null)for(var zn in Bn)if(zn!=="default"&&Object.hasOwnProperty.call(Bn,zn))ni(Hn,Bn,zn);Ci(Hn,Bn);return Hn};Object.defineProperty(Hn,"__esModule",{value:true});Hn.prepareKeyValueMessage=Hn.issueFileCommand=void 0;const Ps=ts(zn(57147));const aa=ts(zn(22037));const oa=zn(75840);const ca=zn(5278);function issueFileCommand(Bn,Hn){const zn=process.env[`GITHUB_${Bn}`];if(!zn){throw new Error(`Unable to find environment variable for file command ${Bn}`)}if(!Ps.existsSync(zn)){throw new Error(`Missing file at path: ${zn}`)}Ps.appendFileSync(zn,`${ca.toCommandValue(Hn)}${aa.EOL}`,{encoding:"utf8"})}Hn.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(Bn,Hn){const zn=`ghadelimiter_${oa.v4()}`;const ni=ca.toCommandValue(Hn);if(Bn.includes(zn)){throw new Error(`Unexpected input: name should not contain the delimiter "${zn}"`)}if(ni.includes(zn)){throw new Error(`Unexpected input: value should not contain the delimiter "${zn}"`)}return`${Bn}<<${zn}${aa.EOL}${ni}${aa.EOL}${zn}`}Hn.prepareKeyValueMessage=prepareKeyValueMessage},98041:function(Bn,Hn,zn){"use strict";var ni=this&&this.__awaiter||function(Bn,Hn,zn,ni){function adopt(Bn){return Bn instanceof zn?Bn:new zn((function(Hn){Hn(Bn)}))}return new(zn||(zn=Promise))((function(zn,Ci){function fulfilled(Bn){try{step(ni.next(Bn))}catch(Bn){Ci(Bn)}}function rejected(Bn){try{step(ni["throw"](Bn))}catch(Bn){Ci(Bn)}}function step(Bn){Bn.done?zn(Bn.value):adopt(Bn.value).then(fulfilled,rejected)}step((ni=ni.apply(Bn,Hn||[])).next())}))};Object.defineProperty(Hn,"__esModule",{value:true});Hn.OidcClient=void 0;const Ci=zn(96255);const ts=zn(35526);const Ps=zn(42186);class OidcClient{static createHttpClient(Bn=true,Hn=10){const zn={allowRetries:Bn,maxRetries:Hn};return new Ci.HttpClient("actions/oidc-client",[new ts.BearerCredentialHandler(OidcClient.getRequestToken())],zn)}static getRequestToken(){const Bn=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!Bn){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return Bn}static getIDTokenUrl(){const Bn=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!Bn){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return Bn}static getCall(Bn){var Hn;return ni(this,void 0,void 0,(function*(){const zn=OidcClient.createHttpClient();const ni=yield zn.getJson(Bn).catch((Bn=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${Bn.statusCode}\n \n Error Message: ${Bn.message}`)}));const Ci=(Hn=ni.result)===null||Hn===void 0?void 0:Hn.value;if(!Ci){throw new Error("Response json body do not have ID Token field")}return Ci}))}static getIDToken(Bn){return ni(this,void 0,void 0,(function*(){try{let Hn=OidcClient.getIDTokenUrl();if(Bn){const zn=encodeURIComponent(Bn);Hn=`${Hn}&audience=${zn}`}Ps.debug(`ID token url is ${Hn}`);const zn=yield OidcClient.getCall(Hn);Ps.setSecret(zn);return zn}catch(Bn){throw new Error(`Error message: ${Bn.message}`)}}))}}Hn.OidcClient=OidcClient},2981:function(Bn,Hn,zn){"use strict";var ni=this&&this.__createBinding||(Object.create?function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Object.defineProperty(Bn,ni,{enumerable:true,get:function(){return Hn[zn]}})}:function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Bn[ni]=Hn[zn]});var Ci=this&&this.__setModuleDefault||(Object.create?function(Bn,Hn){Object.defineProperty(Bn,"default",{enumerable:true,value:Hn})}:function(Bn,Hn){Bn["default"]=Hn});var ts=this&&this.__importStar||function(Bn){if(Bn&&Bn.__esModule)return Bn;var Hn={};if(Bn!=null)for(var zn in Bn)if(zn!=="default"&&Object.hasOwnProperty.call(Bn,zn))ni(Hn,Bn,zn);Ci(Hn,Bn);return Hn};Object.defineProperty(Hn,"__esModule",{value:true});Hn.toPlatformPath=Hn.toWin32Path=Hn.toPosixPath=void 0;const Ps=ts(zn(71017));function toPosixPath(Bn){return Bn.replace(/[\\]/g,"/")}Hn.toPosixPath=toPosixPath;function toWin32Path(Bn){return Bn.replace(/[/]/g,"\\")}Hn.toWin32Path=toWin32Path;function toPlatformPath(Bn){return Bn.replace(/[/\\]/g,Ps.sep)}Hn.toPlatformPath=toPlatformPath},81327:function(Bn,Hn,zn){"use strict";var ni=this&&this.__awaiter||function(Bn,Hn,zn,ni){function adopt(Bn){return Bn instanceof zn?Bn:new zn((function(Hn){Hn(Bn)}))}return new(zn||(zn=Promise))((function(zn,Ci){function fulfilled(Bn){try{step(ni.next(Bn))}catch(Bn){Ci(Bn)}}function rejected(Bn){try{step(ni["throw"](Bn))}catch(Bn){Ci(Bn)}}function step(Bn){Bn.done?zn(Bn.value):adopt(Bn.value).then(fulfilled,rejected)}step((ni=ni.apply(Bn,Hn||[])).next())}))};Object.defineProperty(Hn,"__esModule",{value:true});Hn.summary=Hn.markdownSummary=Hn.SUMMARY_DOCS_URL=Hn.SUMMARY_ENV_VAR=void 0;const Ci=zn(22037);const ts=zn(57147);const{access:Ps,appendFile:aa,writeFile:oa}=ts.promises;Hn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Hn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return ni(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const Bn=process.env[Hn.SUMMARY_ENV_VAR];if(!Bn){throw new Error(`Unable to find environment variable for $${Hn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield Ps(Bn,ts.constants.R_OK|ts.constants.W_OK)}catch(Hn){throw new Error(`Unable to access summary file: '${Bn}'. Check if the file has correct read/write permissions.`)}this._filePath=Bn;return this._filePath}))}wrap(Bn,Hn,zn={}){const ni=Object.entries(zn).map((([Bn,Hn])=>` ${Bn}="${Hn}"`)).join("");if(!Hn){return`<${Bn}${ni}>`}return`<${Bn}${ni}>${Hn}`}write(Bn){return ni(this,void 0,void 0,(function*(){const Hn=!!(Bn===null||Bn===void 0?void 0:Bn.overwrite);const zn=yield this.filePath();const ni=Hn?oa:aa;yield ni(zn,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return ni(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(Bn,Hn=false){this._buffer+=Bn;return Hn?this.addEOL():this}addEOL(){return this.addRaw(Ci.EOL)}addCodeBlock(Bn,Hn){const zn=Object.assign({},Hn&&{lang:Hn});const ni=this.wrap("pre",this.wrap("code",Bn),zn);return this.addRaw(ni).addEOL()}addList(Bn,Hn=false){const zn=Hn?"ol":"ul";const ni=Bn.map((Bn=>this.wrap("li",Bn))).join("");const Ci=this.wrap(zn,ni);return this.addRaw(Ci).addEOL()}addTable(Bn){const Hn=Bn.map((Bn=>{const Hn=Bn.map((Bn=>{if(typeof Bn==="string"){return this.wrap("td",Bn)}const{header:Hn,data:zn,colspan:ni,rowspan:Ci}=Bn;const ts=Hn?"th":"td";const Ps=Object.assign(Object.assign({},ni&&{colspan:ni}),Ci&&{rowspan:Ci});return this.wrap(ts,zn,Ps)})).join("");return this.wrap("tr",Hn)})).join("");const zn=this.wrap("table",Hn);return this.addRaw(zn).addEOL()}addDetails(Bn,Hn){const zn=this.wrap("details",this.wrap("summary",Bn)+Hn);return this.addRaw(zn).addEOL()}addImage(Bn,Hn,zn){const{width:ni,height:Ci}=zn||{};const ts=Object.assign(Object.assign({},ni&&{width:ni}),Ci&&{height:Ci});const Ps=this.wrap("img",null,Object.assign({src:Bn,alt:Hn},ts));return this.addRaw(Ps).addEOL()}addHeading(Bn,Hn){const zn=`h${Hn}`;const ni=["h1","h2","h3","h4","h5","h6"].includes(zn)?zn:"h1";const Ci=this.wrap(ni,Bn);return this.addRaw(Ci).addEOL()}addSeparator(){const Bn=this.wrap("hr",null);return this.addRaw(Bn).addEOL()}addBreak(){const Bn=this.wrap("br",null);return this.addRaw(Bn).addEOL()}addQuote(Bn,Hn){const zn=Object.assign({},Hn&&{cite:Hn});const ni=this.wrap("blockquote",Bn,zn);return this.addRaw(ni).addEOL()}addLink(Bn,Hn){const zn=this.wrap("a",Bn,{href:Hn});return this.addRaw(zn).addEOL()}}const ca=new Summary;Hn.markdownSummary=ca;Hn.summary=ca},5278:(Bn,Hn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn.toCommandProperties=Hn.toCommandValue=void 0;function toCommandValue(Bn){if(Bn===null||Bn===undefined){return""}else if(typeof Bn==="string"||Bn instanceof String){return Bn}return JSON.stringify(Bn)}Hn.toCommandValue=toCommandValue;function toCommandProperties(Bn){if(!Object.keys(Bn).length){return{}}return{title:Bn.title,file:Bn.file,line:Bn.startLine,endLine:Bn.endLine,col:Bn.startColumn,endColumn:Bn.endColumn}}Hn.toCommandProperties=toCommandProperties},35526:function(Bn,Hn){"use strict";var zn=this&&this.__awaiter||function(Bn,Hn,zn,ni){function adopt(Bn){return Bn instanceof zn?Bn:new zn((function(Hn){Hn(Bn)}))}return new(zn||(zn=Promise))((function(zn,Ci){function fulfilled(Bn){try{step(ni.next(Bn))}catch(Bn){Ci(Bn)}}function rejected(Bn){try{step(ni["throw"](Bn))}catch(Bn){Ci(Bn)}}function step(Bn){Bn.done?zn(Bn.value):adopt(Bn.value).then(fulfilled,rejected)}step((ni=ni.apply(Bn,Hn||[])).next())}))};Object.defineProperty(Hn,"__esModule",{value:true});Hn.PersonalAccessTokenCredentialHandler=Hn.BearerCredentialHandler=Hn.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(Bn,Hn){this.username=Bn;this.password=Hn}prepareRequest(Bn){if(!Bn.headers){throw Error("The request has no headers")}Bn.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return zn(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}Hn.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(Bn){this.token=Bn}prepareRequest(Bn){if(!Bn.headers){throw Error("The request has no headers")}Bn.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return zn(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}Hn.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(Bn){this.token=Bn}prepareRequest(Bn){if(!Bn.headers){throw Error("The request has no headers")}Bn.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return zn(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}Hn.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},96255:function(Bn,Hn,zn){"use strict";var ni=this&&this.__createBinding||(Object.create?function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;var Ci=Object.getOwnPropertyDescriptor(Hn,zn);if(!Ci||("get"in Ci?!Hn.__esModule:Ci.writable||Ci.configurable)){Ci={enumerable:true,get:function(){return Hn[zn]}}}Object.defineProperty(Bn,ni,Ci)}:function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Bn[ni]=Hn[zn]});var Ci=this&&this.__setModuleDefault||(Object.create?function(Bn,Hn){Object.defineProperty(Bn,"default",{enumerable:true,value:Hn})}:function(Bn,Hn){Bn["default"]=Hn});var ts=this&&this.__importStar||function(Bn){if(Bn&&Bn.__esModule)return Bn;var Hn={};if(Bn!=null)for(var zn in Bn)if(zn!=="default"&&Object.prototype.hasOwnProperty.call(Bn,zn))ni(Hn,Bn,zn);Ci(Hn,Bn);return Hn};var Ps=this&&this.__awaiter||function(Bn,Hn,zn,ni){function adopt(Bn){return Bn instanceof zn?Bn:new zn((function(Hn){Hn(Bn)}))}return new(zn||(zn=Promise))((function(zn,Ci){function fulfilled(Bn){try{step(ni.next(Bn))}catch(Bn){Ci(Bn)}}function rejected(Bn){try{step(ni["throw"](Bn))}catch(Bn){Ci(Bn)}}function step(Bn){Bn.done?zn(Bn.value):adopt(Bn.value).then(fulfilled,rejected)}step((ni=ni.apply(Bn,Hn||[])).next())}))};Object.defineProperty(Hn,"__esModule",{value:true});Hn.HttpClient=Hn.isHttps=Hn.HttpClientResponse=Hn.HttpClientError=Hn.getProxyUrl=Hn.MediaTypes=Hn.Headers=Hn.HttpCodes=void 0;const aa=ts(zn(13685));const oa=ts(zn(95687));const ca=ts(zn(19835));const _a=ts(zn(74294));const xa=zn(41773);var Ga;(function(Bn){Bn[Bn["OK"]=200]="OK";Bn[Bn["MultipleChoices"]=300]="MultipleChoices";Bn[Bn["MovedPermanently"]=301]="MovedPermanently";Bn[Bn["ResourceMoved"]=302]="ResourceMoved";Bn[Bn["SeeOther"]=303]="SeeOther";Bn[Bn["NotModified"]=304]="NotModified";Bn[Bn["UseProxy"]=305]="UseProxy";Bn[Bn["SwitchProxy"]=306]="SwitchProxy";Bn[Bn["TemporaryRedirect"]=307]="TemporaryRedirect";Bn[Bn["PermanentRedirect"]=308]="PermanentRedirect";Bn[Bn["BadRequest"]=400]="BadRequest";Bn[Bn["Unauthorized"]=401]="Unauthorized";Bn[Bn["PaymentRequired"]=402]="PaymentRequired";Bn[Bn["Forbidden"]=403]="Forbidden";Bn[Bn["NotFound"]=404]="NotFound";Bn[Bn["MethodNotAllowed"]=405]="MethodNotAllowed";Bn[Bn["NotAcceptable"]=406]="NotAcceptable";Bn[Bn["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";Bn[Bn["RequestTimeout"]=408]="RequestTimeout";Bn[Bn["Conflict"]=409]="Conflict";Bn[Bn["Gone"]=410]="Gone";Bn[Bn["TooManyRequests"]=429]="TooManyRequests";Bn[Bn["InternalServerError"]=500]="InternalServerError";Bn[Bn["NotImplemented"]=501]="NotImplemented";Bn[Bn["BadGateway"]=502]="BadGateway";Bn[Bn["ServiceUnavailable"]=503]="ServiceUnavailable";Bn[Bn["GatewayTimeout"]=504]="GatewayTimeout"})(Ga||(Hn.HttpCodes=Ga={}));var Ha;(function(Bn){Bn["Accept"]="accept";Bn["ContentType"]="content-type"})(Ha||(Hn.Headers=Ha={}));var so;(function(Bn){Bn["ApplicationJson"]="application/json"})(so||(Hn.MediaTypes=so={}));function getProxyUrl(Bn){const Hn=ca.getProxyUrl(new URL(Bn));return Hn?Hn.href:""}Hn.getProxyUrl=getProxyUrl;const oo=[Ga.MovedPermanently,Ga.ResourceMoved,Ga.SeeOther,Ga.TemporaryRedirect,Ga.PermanentRedirect];const Jo=[Ga.BadGateway,Ga.ServiceUnavailable,Ga.GatewayTimeout];const tc=["OPTIONS","GET","DELETE","HEAD"];const dc=10;const Fc=5;class HttpClientError extends Error{constructor(Bn,Hn){super(Bn);this.name="HttpClientError";this.statusCode=Hn;Object.setPrototypeOf(this,HttpClientError.prototype)}}Hn.HttpClientError=HttpClientError;class HttpClientResponse{constructor(Bn){this.message=Bn}readBody(){return Ps(this,void 0,void 0,(function*(){return new Promise((Bn=>Ps(this,void 0,void 0,(function*(){let Hn=Buffer.alloc(0);this.message.on("data",(Bn=>{Hn=Buffer.concat([Hn,Bn])}));this.message.on("end",(()=>{Bn(Hn.toString())}))}))))}))}readBodyBuffer(){return Ps(this,void 0,void 0,(function*(){return new Promise((Bn=>Ps(this,void 0,void 0,(function*(){const Hn=[];this.message.on("data",(Bn=>{Hn.push(Bn)}));this.message.on("end",(()=>{Bn(Buffer.concat(Hn))}))}))))}))}}Hn.HttpClientResponse=HttpClientResponse;function isHttps(Bn){const Hn=new URL(Bn);return Hn.protocol==="https:"}Hn.isHttps=isHttps;class HttpClient{constructor(Bn,Hn,zn){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=Bn;this.handlers=Hn||[];this.requestOptions=zn;if(zn){if(zn.ignoreSslError!=null){this._ignoreSslError=zn.ignoreSslError}this._socketTimeout=zn.socketTimeout;if(zn.allowRedirects!=null){this._allowRedirects=zn.allowRedirects}if(zn.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=zn.allowRedirectDowngrade}if(zn.maxRedirects!=null){this._maxRedirects=Math.max(zn.maxRedirects,0)}if(zn.keepAlive!=null){this._keepAlive=zn.keepAlive}if(zn.allowRetries!=null){this._allowRetries=zn.allowRetries}if(zn.maxRetries!=null){this._maxRetries=zn.maxRetries}}}options(Bn,Hn){return Ps(this,void 0,void 0,(function*(){return this.request("OPTIONS",Bn,null,Hn||{})}))}get(Bn,Hn){return Ps(this,void 0,void 0,(function*(){return this.request("GET",Bn,null,Hn||{})}))}del(Bn,Hn){return Ps(this,void 0,void 0,(function*(){return this.request("DELETE",Bn,null,Hn||{})}))}post(Bn,Hn,zn){return Ps(this,void 0,void 0,(function*(){return this.request("POST",Bn,Hn,zn||{})}))}patch(Bn,Hn,zn){return Ps(this,void 0,void 0,(function*(){return this.request("PATCH",Bn,Hn,zn||{})}))}put(Bn,Hn,zn){return Ps(this,void 0,void 0,(function*(){return this.request("PUT",Bn,Hn,zn||{})}))}head(Bn,Hn){return Ps(this,void 0,void 0,(function*(){return this.request("HEAD",Bn,null,Hn||{})}))}sendStream(Bn,Hn,zn,ni){return Ps(this,void 0,void 0,(function*(){return this.request(Bn,Hn,zn,ni)}))}getJson(Bn,Hn={}){return Ps(this,void 0,void 0,(function*(){Hn[Ha.Accept]=this._getExistingOrDefaultHeader(Hn,Ha.Accept,so.ApplicationJson);const zn=yield this.get(Bn,Hn);return this._processResponse(zn,this.requestOptions)}))}postJson(Bn,Hn,zn={}){return Ps(this,void 0,void 0,(function*(){const ni=JSON.stringify(Hn,null,2);zn[Ha.Accept]=this._getExistingOrDefaultHeader(zn,Ha.Accept,so.ApplicationJson);zn[Ha.ContentType]=this._getExistingOrDefaultHeader(zn,Ha.ContentType,so.ApplicationJson);const Ci=yield this.post(Bn,ni,zn);return this._processResponse(Ci,this.requestOptions)}))}putJson(Bn,Hn,zn={}){return Ps(this,void 0,void 0,(function*(){const ni=JSON.stringify(Hn,null,2);zn[Ha.Accept]=this._getExistingOrDefaultHeader(zn,Ha.Accept,so.ApplicationJson);zn[Ha.ContentType]=this._getExistingOrDefaultHeader(zn,Ha.ContentType,so.ApplicationJson);const Ci=yield this.put(Bn,ni,zn);return this._processResponse(Ci,this.requestOptions)}))}patchJson(Bn,Hn,zn={}){return Ps(this,void 0,void 0,(function*(){const ni=JSON.stringify(Hn,null,2);zn[Ha.Accept]=this._getExistingOrDefaultHeader(zn,Ha.Accept,so.ApplicationJson);zn[Ha.ContentType]=this._getExistingOrDefaultHeader(zn,Ha.ContentType,so.ApplicationJson);const Ci=yield this.patch(Bn,ni,zn);return this._processResponse(Ci,this.requestOptions)}))}request(Bn,Hn,zn,ni){return Ps(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const Ci=new URL(Hn);let ts=this._prepareRequest(Bn,Ci,ni);const Ps=this._allowRetries&&tc.includes(Bn)?this._maxRetries+1:1;let aa=0;let oa;do{oa=yield this.requestRaw(ts,zn);if(oa&&oa.message&&oa.message.statusCode===Ga.Unauthorized){let Bn;for(const Hn of this.handlers){if(Hn.canHandleAuthentication(oa)){Bn=Hn;break}}if(Bn){return Bn.handleAuthentication(this,ts,zn)}else{return oa}}let Hn=this._maxRedirects;while(oa.message.statusCode&&oo.includes(oa.message.statusCode)&&this._allowRedirects&&Hn>0){const Ps=oa.message.headers["location"];if(!Ps){break}const aa=new URL(Ps);if(Ci.protocol==="https:"&&Ci.protocol!==aa.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield oa.readBody();if(aa.hostname!==Ci.hostname){for(const Bn in ni){if(Bn.toLowerCase()==="authorization"){delete ni[Bn]}}}ts=this._prepareRequest(Bn,aa,ni);oa=yield this.requestRaw(ts,zn);Hn--}if(!oa.message.statusCode||!Jo.includes(oa.message.statusCode)){return oa}aa+=1;if(aa{function callbackForResult(Bn,Hn){if(Bn){ni(Bn)}else if(!Hn){ni(new Error("Unknown error"))}else{zn(Hn)}}this.requestRawWithCallback(Bn,Hn,callbackForResult)}))}))}requestRawWithCallback(Bn,Hn,zn){if(typeof Hn==="string"){if(!Bn.options.headers){Bn.options.headers={}}Bn.options.headers["Content-Length"]=Buffer.byteLength(Hn,"utf8")}let ni=false;function handleResult(Bn,Hn){if(!ni){ni=true;zn(Bn,Hn)}}const Ci=Bn.httpModule.request(Bn.options,(Bn=>{const Hn=new HttpClientResponse(Bn);handleResult(undefined,Hn)}));let ts;Ci.on("socket",(Bn=>{ts=Bn}));Ci.setTimeout(this._socketTimeout||3*6e4,(()=>{if(ts){ts.end()}handleResult(new Error(`Request timeout: ${Bn.options.path}`))}));Ci.on("error",(function(Bn){handleResult(Bn)}));if(Hn&&typeof Hn==="string"){Ci.write(Hn,"utf8")}if(Hn&&typeof Hn!=="string"){Hn.on("close",(function(){Ci.end()}));Hn.pipe(Ci)}else{Ci.end()}}getAgent(Bn){const Hn=new URL(Bn);return this._getAgent(Hn)}getAgentDispatcher(Bn){const Hn=new URL(Bn);const zn=ca.getProxyUrl(Hn);const ni=zn&&zn.hostname;if(!ni){return}return this._getProxyAgentDispatcher(Hn,zn)}_prepareRequest(Bn,Hn,zn){const ni={};ni.parsedUrl=Hn;const Ci=ni.parsedUrl.protocol==="https:";ni.httpModule=Ci?oa:aa;const ts=Ci?443:80;ni.options={};ni.options.host=ni.parsedUrl.hostname;ni.options.port=ni.parsedUrl.port?parseInt(ni.parsedUrl.port):ts;ni.options.path=(ni.parsedUrl.pathname||"")+(ni.parsedUrl.search||"");ni.options.method=Bn;ni.options.headers=this._mergeHeaders(zn);if(this.userAgent!=null){ni.options.headers["user-agent"]=this.userAgent}ni.options.agent=this._getAgent(ni.parsedUrl);if(this.handlers){for(const Bn of this.handlers){Bn.prepareRequest(ni.options)}}return ni}_mergeHeaders(Bn){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(Bn||{}))}return lowercaseKeys(Bn||{})}_getExistingOrDefaultHeader(Bn,Hn,zn){let ni;if(this.requestOptions&&this.requestOptions.headers){ni=lowercaseKeys(this.requestOptions.headers)[Hn]}return Bn[Hn]||ni||zn}_getAgent(Bn){let Hn;const zn=ca.getProxyUrl(Bn);const ni=zn&&zn.hostname;if(this._keepAlive&&ni){Hn=this._proxyAgent}if(!ni){Hn=this._agent}if(Hn){return Hn}const Ci=Bn.protocol==="https:";let ts=100;if(this.requestOptions){ts=this.requestOptions.maxSockets||aa.globalAgent.maxSockets}if(zn&&zn.hostname){const Bn={maxSockets:ts,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(zn.username||zn.password)&&{proxyAuth:`${zn.username}:${zn.password}`}),{host:zn.hostname,port:zn.port})};let ni;const Ps=zn.protocol==="https:";if(Ci){ni=Ps?_a.httpsOverHttps:_a.httpsOverHttp}else{ni=Ps?_a.httpOverHttps:_a.httpOverHttp}Hn=ni(Bn);this._proxyAgent=Hn}if(!Hn){const Bn={keepAlive:this._keepAlive,maxSockets:ts};Hn=Ci?new oa.Agent(Bn):new aa.Agent(Bn);this._agent=Hn}if(Ci&&this._ignoreSslError){Hn.options=Object.assign(Hn.options||{},{rejectUnauthorized:false})}return Hn}_getProxyAgentDispatcher(Bn,Hn){let zn;if(this._keepAlive){zn=this._proxyAgentDispatcher}if(zn){return zn}const ni=Bn.protocol==="https:";zn=new xa.ProxyAgent(Object.assign({uri:Hn.href,pipelining:!this._keepAlive?0:1},(Hn.username||Hn.password)&&{token:`${Hn.username}:${Hn.password}`}));this._proxyAgentDispatcher=zn;if(ni&&this._ignoreSslError){zn.options=Object.assign(zn.options.requestTls||{},{rejectUnauthorized:false})}return zn}_performExponentialBackoff(Bn){return Ps(this,void 0,void 0,(function*(){Bn=Math.min(dc,Bn);const Hn=Fc*Math.pow(2,Bn);return new Promise((Bn=>setTimeout((()=>Bn()),Hn)))}))}_processResponse(Bn,Hn){return Ps(this,void 0,void 0,(function*(){return new Promise(((zn,ni)=>Ps(this,void 0,void 0,(function*(){const Ci=Bn.message.statusCode||0;const ts={statusCode:Ci,result:null,headers:{}};if(Ci===Ga.NotFound){zn(ts)}function dateTimeDeserializer(Bn,Hn){if(typeof Hn==="string"){const Bn=new Date(Hn);if(!isNaN(Bn.valueOf())){return Bn}}return Hn}let Ps;let aa;try{aa=yield Bn.readBody();if(aa&&aa.length>0){if(Hn&&Hn.deserializeDates){Ps=JSON.parse(aa,dateTimeDeserializer)}else{Ps=JSON.parse(aa)}ts.result=Ps}ts.headers=Bn.message.headers}catch(Bn){}if(Ci>299){let Bn;if(Ps&&Ps.message){Bn=Ps.message}else if(aa&&aa.length>0){Bn=aa}else{Bn=`Failed request: (${Ci})`}const Hn=new HttpClientError(Bn,Ci);Hn.result=ts.result;ni(Hn)}else{zn(ts)}}))))}))}}Hn.HttpClient=HttpClient;const lowercaseKeys=Bn=>Object.keys(Bn).reduce(((Hn,zn)=>(Hn[zn.toLowerCase()]=Bn[zn],Hn)),{})},19835:(Bn,Hn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn.checkBypass=Hn.getProxyUrl=void 0;function getProxyUrl(Bn){const Hn=Bn.protocol==="https:";if(checkBypass(Bn)){return undefined}const zn=(()=>{if(Hn){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(zn){try{return new URL(zn)}catch(Bn){if(!zn.startsWith("http://")&&!zn.startsWith("https://"))return new URL(`http://${zn}`)}}else{return undefined}}Hn.getProxyUrl=getProxyUrl;function checkBypass(Bn){if(!Bn.hostname){return false}const Hn=Bn.hostname;if(isLoopbackAddress(Hn)){return true}const zn=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!zn){return false}let ni;if(Bn.port){ni=Number(Bn.port)}else if(Bn.protocol==="http:"){ni=80}else if(Bn.protocol==="https:"){ni=443}const Ci=[Bn.hostname.toUpperCase()];if(typeof ni==="number"){Ci.push(`${Ci[0]}:${ni}`)}for(const Bn of zn.split(",").map((Bn=>Bn.trim().toUpperCase())).filter((Bn=>Bn))){if(Bn==="*"||Ci.some((Hn=>Hn===Bn||Hn.endsWith(`.${Bn}`)||Bn.startsWith(".")&&Hn.endsWith(`${Bn}`)))){return true}}return false}Hn.checkBypass=checkBypass;function isLoopbackAddress(Bn){const Hn=Bn.toLowerCase();return Hn==="localhost"||Hn.startsWith("127.")||Hn.startsWith("[::1]")||Hn.startsWith("[0:0:0:0:0:0:0:1]")}},98042:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});function _interopDefault(Bn){return Bn&&typeof Bn==="object"&&"default"in Bn?Bn["default"]:Bn}var ni=zn(21917);var Ci=_interopDefault(zn(72426));function _inheritsLoose(Bn,Hn){Bn.prototype=Object.create(Hn.prototype);Bn.prototype.constructor=Bn;_setPrototypeOf(Bn,Hn)}function _getPrototypeOf(Bn){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(Bn){return Bn.__proto__||Object.getPrototypeOf(Bn)};return _getPrototypeOf(Bn)}function _setPrototypeOf(Bn,Hn){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(Bn,Hn){Bn.__proto__=Hn;return Bn};return _setPrototypeOf(Bn,Hn)}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(Bn){return false}}function _construct(Bn,Hn,zn){if(_isNativeReflectConstruct()){_construct=Reflect.construct.bind()}else{_construct=function _construct(Bn,Hn,zn){var ni=[null];ni.push.apply(ni,Hn);var Ci=Function.bind.apply(Bn,ni);var ts=new Ci;if(zn)_setPrototypeOf(ts,zn.prototype);return ts}}return _construct.apply(null,arguments)}function _isNativeFunction(Bn){return Function.toString.call(Bn).indexOf("[native code]")!==-1}function _wrapNativeSuper(Bn){var Hn=typeof Map==="function"?new Map:undefined;_wrapNativeSuper=function _wrapNativeSuper(Bn){if(Bn===null||!_isNativeFunction(Bn))return Bn;if(typeof Bn!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof Hn!=="undefined"){if(Hn.has(Bn))return Hn.get(Bn);Hn.set(Bn,Wrapper)}function Wrapper(){return _construct(Bn,arguments,_getPrototypeOf(this).constructor)}Wrapper.prototype=Object.create(Bn.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Bn)};return _wrapNativeSuper(Bn)}function _unsupportedIterableToArray(Bn,Hn){if(!Bn)return;if(typeof Bn==="string")return _arrayLikeToArray(Bn,Hn);var zn=Object.prototype.toString.call(Bn).slice(8,-1);if(zn==="Object"&&Bn.constructor)zn=Bn.constructor.name;if(zn==="Map"||zn==="Set")return Array.from(Bn);if(zn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(zn))return _arrayLikeToArray(Bn,Hn)}function _arrayLikeToArray(Bn,Hn){if(Hn==null||Hn>Bn.length)Hn=Bn.length;for(var zn=0,ni=new Array(Hn);zn=Bn.length)return{done:true};return{done:false,value:Bn[ni++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ts,Ps,aa;var oa={COMMIT:"commit",PR_CREATED:"pr_created",COMMENT_ADDED:"comment_added",LABEL_ADDED:"label_added",LABEL_REMOVED:"label_removed"};var ca={SEND_SLACK_MESSAGE:"send-slack-message@v1",EXPLAIN_CODE_EXPERTS:"explain-code-experts@v1",ADD_COMMENT:"add-comment@v1",ADD_LABEL:"add-label@v1",ADD_LABELS:"add-labels@v1",ADD_REVIEWERS:"add-reviewers@v1",APPROVE:"approve@v1",MERGE:"merge@v1",SET_REQUIRED_APPROVALS:"set-required-approvals@v1",REQUIRE_REVIEWER:"require-reviewers@v1",REQUEST_CHANGES:"request-changes@v1",UPDATE_CHECK:"update-check@v1",CLOSE:"close@v1",HTTP_REQUEST:"http-request@v1",SEND_HTTP_REQUEST:"send-http-request@v1",INVOKE_GITHUB_ACTION:"invoke-github-action@v1",ADD_GITHUB_CHECK:"add-github-check@v1",RUN_GITHUB_WORKFLOW:"run-github-workflow@v1"};var _a={default:ca,gitlab:{ADD_COMMENT:"add-comment@v1",ADD_LABEL:"add-label@v1",ADD_LABELS:"add-labels@v1",ADD_REVIEWERS:"add-reviewers@v1",APPROVE:"approve@v1",MERGE:"merge@v1",CLOSE:"close@v1",EXPLAIN_CODE_EXPERTS:"explain-code-experts@v1",SEND_SLACK_MESSAGE:"send-slack-message@v1",REQUEST_CHANGES:"request-changes@v1"}};var xa=(ts={},ts[ca.SEND_SLACK_MESSAGE]=["webhook_url","message"],ts[ca.EXPLAIN_CODE_EXPERTS]=["lt","gt"],ts[ca.ADD_COMMENT]=["comment","pin_uid"],ts[ca.ADD_LABEL]=["label","color"],ts[ca.ADD_LABELS]=["labels"],ts[ca.ADD_REVIEWERS]=["reviewers","team_reviewers","unless_reviewers_set","fail_on_error","wait_for_all_checks"],ts[ca.MERGE]=["wait_for_all_checks","rebase_on_merge","squash_on_merge"],ts[ca.SET_REQUIRED_APPROVALS]=["approvals"],ts[ca.REQUEST_CHANGES]=["comment"],ts[ca.REQUIRE_REVIEWER]=["reviewers","also_assign","team_reviewers","fail_on_error"],ts[ca.HTTP_REQUEST]=["url","method","user","body","timeout","headers"],ts[ca.SEND_HTTP_REQUEST]=["url","method","user","body","timeout","headers"],ts[ca.INVOKE_GITHUB_ACTION]=["owner","repo","workflow","ref","inputs","check_name","stop_ongoing_workflow"],ts[ca.UPDATE_CHECK]=["check_name","status","conclusion"],ts[ca.ADD_GITHUB_CHECK]=["check_name","conclusion"],ts[ca.RUN_GITHUB_WORKFLOW]=["owner","repo","workflow","ref","inputs","check_name","stop_ongoing_workflow","timeout"],ts);var Ga=(Ps={},Ps[ca.SEND_SLACK_MESSAGE]={all:true,args:["webhook_url","message"]},Ps[ca.EXPLAIN_CODE_EXPERTS]={all:false,args:["lt","gt"]},Ps[ca.ADD_COMMENT]={all:true,args:["comment"]},Ps[ca.ADD_LABEL]={all:true,args:["label"]},Ps[ca.ADD_LABELS]={all:true,args:["labels"]},Ps[ca.ADD_REVIEWERS]={all:false,args:["reviewers","team_reviewers"]},Ps[ca.SET_REQUIRED_APPROVALS]={all:true,args:["approvals"]},Ps[ca.REQUEST_CHANGES]={all:true,args:["comment"]},Ps[ca.REQUIRE_REVIEWER]={all:false,args:["reviewers","team_reviewers"]},Ps[ca.HTTP_REQUEST]={all:true,args:["url"]},Ps[ca.SEND_HTTP_REQUEST]={all:true,args:["url"]},Ps[ca.INVOKE_GITHUB_ACTION]={all:false,args:["workflow"]},Ps[ca.UPDATE_CHECK]={all:true,args:["check_name","status","conclusion"]},Ps[ca.ADD_GITHUB_CHECK]={all:true,args:["check_name","conclusion"]},Ps[ca.RUN_GITHUB_WORKFLOW]={all:true,args:["workflow"]},Ps);var Ha=["branch","branch.name","branch.base","branch.diff.size","branch.diff.files_metadata","branch.num_of_commits","files","pr","pr.approvals","pr.author","pr.author_teams","pr.checks","pr.comments","pr.conversations","pr.created_at","pr.draft","pr.description","pr.labels","pr.provider","pr.reviewers","pr.status","pr.target","pr.title","pr.requested_changes","pr.reviews","pr.updated_at","pr.conflicted_files_count","pr.number","repo","repo.git_activity","repo.age","repo.author_age","repo.blame","repo.contributors","repo.name","repo.owner","repo.visibility","source","source.diff.files"];var so={every:["list"],filter:["list","regex","term"],includes:["list","regex","term"],map:["list","attr"],match:["list","regex","term","attr"],nope:[],reject:["list","regex","term"],some:["list"],allDocs:[],allImages:[],allTests:[],codeExperts:["gt","lt"],estimatedReviewTime:[],extensions:[],extractJitFindings:[],extractSonarFindings:[],explainCodeExperts:["gt","lt"],explainRankByGitBlame:["gt","lt"],isFirstCommit:[],isFormattingChange:[],mapToEnum:[],matchDiffLines:["regex","ignoreWhiteSpaces"],rankByGitActivity:["gt","lt"],rankByGitBlame:["gt","lt"],intersection:["list"],difference:["list"],capture:["regex"],countTests:[],getJiraTicketDetails:["url","username","apiToken","additionalFields"]};var oo=["abs","attr","batch","capitalize","center","default","dictsort","escape","filesizeformat","first","float","forceescape","format","groupby","indent","int","join","last","length","list","lower","map","max","min","pprint","random","reject","rejectattr","replace","reverse","round","safe","select","selectattr","slice","sort","split","string","striptags","sum","title","trim","truncate","unique","upper","urlencode","urlize","wordcount","wordwrap","xmlattr","nl2br","dump"];var Jo=[1];var tc=(aa={},aa[ca.ADD_COMMENT]={comment:{type:"string",required:true}},aa[ca.ADD_LABEL]={label:{type:"string",required:true},color:{type:"string",required:false}},aa[ca.ADD_LABELS]={labels:{type:"array",required:true}},aa[ca.ADD_REVIEWERS]={reviewers:{type:"array",required:true},team_reviewers:{type:"array",required:false},unless_reviewers_set:{type:"boolean",required:false},fail_on_error:{type:"boolean",required:false},wait_for_all_checks:{type:"boolean",required:false}},aa[ca.APPROVE]={},aa[ca.CLOSE]={},aa[ca.MERGE]={wait_for_all_checks:{type:"boolean",required:false},rebase_on_merge:{type:"boolean",required:false},squash_on_merge:{type:"boolean",required:false}},aa[ca.SET_REQUIRED_APPROVALS]={approvals:{type:"number",required:true}},aa[ca.REQUEST_CHANGES]={comment:{type:"string",required:true}},aa[ca.REQUIRE_REVIEWER]={reviewers:{type:"array",required:true},also_assign:{type:"boolean",required:false}},aa[ca.EXPLAIN_CODE_EXPERTS]={lt:{type:"number",required:false},gt:{type:"number",required:false}},aa[ca.SEND_SLACK_MESSAGE]={webhook_url:{type:"string",required:true},message:{type:"string",required:true}},aa[ca.INVOKE_GITHUB_ACTION]={owner:{type:"string",required:false},repo:{type:"string",required:false},workflow:{type:"string",required:true},ref:{type:"string",required:false},inputs:{type:"number",required:false},check_name:{type:"string",required:false},stop_ongoing_workflow:{type:"boolean",required:false}},aa[ca.ADD_GITHUB_CHECK]={check_name:{type:"string",required:true},conclusion:{type:"string",required:true}},aa[ca.RUN_GITHUB_WORKFLOW]={owner:{type:"string",required:false},repo:{type:"string",required:false},workflow:{type:"string",required:true},ref:{type:"string",required:false},inputs:{type:"string",required:false},check_name:{type:"string",required:false},stop_ongoing_workflow:{type:"boolean",required:false},timeout:{type:"number",required:false}},aa);var dc={type:"object",properties:{manifest:{type:"object",properties:{version:{type:"number",enum:Jo}},required:["version"]},config:{type:"object",properties:{ignore_files:{type:"array",items:{type:"string"}},ignore_repositories:{type:"array",items:{type:"string"}},admin:{type:"object",properties:{users:{type:"array",items:{type:"string"}}}}}},on:{type:"array",items:{type:"string",enum:Object.values(oa)}},automations:{type:"object",patternProperties:{"^[a-zA-Z0-9_@]+$":{type:"object",properties:{on:{type:"array",items:{type:"string",enum:Object.values(oa)}},if:{type:"array"},run:{type:"array",items:{type:"object",properties:{action:{type:"string",enum:Object.keys(tc)},args:{type:"object"}},required:["action"]}}},required:["if","run"]}}}},required:["manifest","automations"]};var Fc=/{{.*?}}/g;var Jc=/\{%\s*.*?\s*%\}/g;var Dp=/\/(.*?)\//g;var kp={__proto__:null,SUPPORTED_TRIGGERS:oa,SUPPORTED_ACTIONS:ca,SUPPORTED_ACTIONS_BY_PROVIDER:_a,SUPPORTED_ARGUMENTS_BY_ACTION:xa,REQUIRED_ARGUMENTS_BY_ACTIONS:Ga,VALID_CONTEXT_VARS:Ha,VALID_FILTERS:so,JINJA_FILTERS:oo,VALID_VERSIONS:Jo,VALID_ACTIONS:tc,CM_SCHEMA:dc,JINJA_EXPRESSION_REGEX:Fc,LOOP_EXPRESSION:Jc,REGEX_EXPRESSION:Dp};var Qp=function(){function ValidatorBase(){}var Bn=ValidatorBase.prototype;Bn.validate=function validate(Bn){throw new Error('Abstract method "validate" must be implemented.')};ValidatorBase.parseJinjaExpressions=function parseJinjaExpressions(Bn){var Hn=Bn.split("\n");var zn=[];Hn.forEach((function(Bn,Hn){var ni=Bn.match(Fc);if(ni){ni.forEach((function(Bn){zn.push({expression:Bn,lineNumber:Hn+1})}))}}));return zn};return ValidatorBase}();var Up=function(Bn){_inheritsLoose(ValidationError,Bn);function ValidationError(Hn){var zn;zn=Bn.call(this,Hn)||this;zn.name="ValidationError";return zn}return ValidationError}(_wrapNativeSuper(Error));var qp="UNKNOWN_CONTEXT";var Vp=function(Bn){_inheritsLoose(ContextVariableValidator,Bn);function ContextVariableValidator(){return Bn.apply(this,arguments)||this}var Hn=ContextVariableValidator.prototype;Hn.isValidCustomVariables=function isValidCustomVariables(Bn,Hn){var zn=Bn.split(".").slice(0,-1);return zn.map((function(Bn){return Bn.replace(/[()]/g,"")})).every((function(Bn){return Hn.includes(Bn+":")}))};Hn.isValidContextVariable=function isValidContextVariable(Bn){if(!Ha.includes(Bn||qp)){return false}return true};Hn.validate=function validate(Bn){var Hn=this;var zn=Bn.expressions,ni=Bn.yamlFile;var Ci=zn!=null?zn:Qp.parseJinjaExpressions(ni);Ci.forEach((function(Bn){var zn,Ci,ts;var Ps=Bn.expression,aa=Bn.lineNumber;var oa=Ps.replace(/[{}]/g,"").split("|");var ca=(zn=(Ci=oa.shift())==null?void 0:Ci.trim())!=null?zn:qp;var _a=(ts=ca==null?void 0:ca.split(" "))!=null?ts:[];_a.forEach((function(Bn){if(!Hn.isValidContextVariable(Bn)&&!Hn.isValidCustomVariables(Bn,ni)){throw new Up("Line ["+aa+"]: Invalid context variable "+Bn+" in expression "+Ps)}}))}))};return ContextVariableValidator}(Qp);var Jp=function(Bn){_inheritsLoose(FiltersValidator,Bn);function FiltersValidator(){return Bn.apply(this,arguments)||this}var Hn=FiltersValidator.prototype;Hn.validateExistingFilter=function validateExistingFilter(Bn,Hn,zn){if(oo.includes(Bn)||Ha.includes(Bn)){return}if(!Object.keys(so).includes(Bn)){throw new Up("Line "+Hn+": Invalid filter function "+Bn+" in expression "+zn)}};Hn.getFilterArgs=function getFilterArgs(Bn){return Bn.slice(Bn.indexOf("(")+1,Bn.lastIndexOf(")")).replace(Dp,"").split(",").map((function(Bn){return Bn.split("=")[0].trim()}))};Hn.validateFilterArgs=function validateFilterArgs(Bn,Hn,zn,ni){if(Bn.includes("(")){var Ci=this.getFilterArgs(Bn);var ts=so[Hn];for(var Ps=_createForOfIteratorHelperLoose(Ci),aa;!(aa=Ps()).done;){var oa=aa.value;if(!ts.includes(oa)){throw new Up("Line ["+zn+"]: Invalid argument "+oa+" for filter "+Hn+" in expression "+ni)}}}};Hn.validate=function validate(Bn){var Hn=this;var zn=Bn.expressions,ni=Bn.yamlFile;var Ci=zn!=null?zn:Qp.parseJinjaExpressions(ni);Ci.forEach((function(Bn){var zn;var ni=Bn.expression,Ci=Bn.lineNumber;var ts=(zn=ni.replace(Dp,"").replace(/[{}]/g,"").split("|").slice(1))!=null?zn:[];for(var Ps=_createForOfIteratorHelperLoose(ts),aa;!(aa=Ps()).done;){var oa=aa.value;var ca=oa.split(/\s*==\s*|\s*<\s*|\s*>\s*/)[0];var _a=ca.split("("),xa=_a[0];var Ga=xa.trim();Hn.validateExistingFilter(Ga,Ci,ni);Hn.validateFilterArgs(ca,Ga,Ci,ni)}}))};return FiltersValidator}(Qp);var Wp=function(Bn){_inheritsLoose(ActionsValidator,Bn);function ActionsValidator(){return Bn.apply(this,arguments)||this}var Hn=ActionsValidator.prototype;Hn.validateActionSupported=function validateActionSupported(Bn){if(!Object.values(ca).includes(Bn)){throw new Up("Action is not supported "+Bn)}};Hn.validateArgSupported=function validateArgSupported(Bn,Hn){var zn=Hn==null?void 0:Hn.filter((function(Hn){return!xa[Bn].includes(Hn)}));if(zn.length){throw new Up("Some args are not supported: "+zn.join(", "))}};Hn.validateRequiredArgs=function validateRequiredArgs(Bn,Hn){var zn;var ni=Ga[Bn];if(!ni){return}var Ci=(zn=ni.args)==null?void 0:zn.filter((function(Bn){return!Hn.includes(Bn)}));if(ni.all&&Ci.length||!ni.all&&!ni.args.some((function(Bn){return Hn.includes(Bn)}))){throw new Up("Some required args are missing for action "+Bn+": "+Ci.join(", "))}};Hn.validateIfStructure=function validateIfStructure(Bn){if(Bn!=="TEMPLATE"&&typeof Bn!=="boolean"){throw new Up("An entry in If section is not YAML supported")}};Hn.validate=function validate(Bn){var Hn=this,zn;var Ci=Bn.yamlFile;var ts=Ci.replace(Fc,"TEMPLATE");var Ps=ni.load(ts);Object.values(Ps.automations).flatMap((function(Bn){return Bn["if"]})).forEach((function(Bn){return Hn.validateIfStructure(Bn)}));var aa=(zn=Object.values(Ps.automations).flatMap((function(Bn){return Bn.run})))==null?void 0:zn.filter(Boolean);for(var oa=_createForOfIteratorHelperLoose(aa),ca;!(ca=oa()).done;){var _a=ca.value;var xa=_a.action,Ga=_a.args;var Ha=Object.keys(Ga!=null?Ga:{});this.validateActionSupported(xa);if(Ha.length){this.validateArgSupported(xa,Ha)}this.validateRequiredArgs(xa,Ha)}};return ActionsValidator}(Qp);var zp=new Ci;var Qf=function(Bn){_inheritsLoose(FileStructureValidator,Bn);function FileStructureValidator(){return Bn.apply(this,arguments)||this}var Hn=FileStructureValidator.prototype;Hn.validate=function validate(Bn){var Hn=Bn.yamlFile;var zn=Hn.replace(Fc,"").replace(Jc,"");var Ci=ni.loadAll(zn,undefined,{schema:ni.JSON_SCHEMA});var ts=zp.compile(dc);for(var Ps=_createForOfIteratorHelperLoose(Ci),aa;!(aa=Ps()).done;){var oa=aa.value;var ca=ts(oa);if(!ca){var _a;throw new Up("Schema is not valid: "+((_a=ts.errors)==null?void 0:_a.map((function(Bn){return Bn.message})).join(", ")))}}};return FileStructureValidator}(Qp);var Yf=function(Bn){_inheritsLoose(SavedWordsValidator,Bn);function SavedWordsValidator(){return Bn.apply(this,arguments)||this}var Hn=SavedWordsValidator.prototype;Hn.validate=function validate(Bn){var Hn=Bn.yamlFile;var zn=ni.load(Hn.replace(Fc,"").replace(/{%.*?%}[\s\S]*?{% endfor %}/g,""));var Ci=Object.keys(zn).filter((function(Bn){return!Object.keys(dc.properties).includes(Bn)})).find((function(Bn){return Ha.includes(Bn)}));if(Ci){throw new Up("Invalid custom context variable: `"+Ci+"` is a built-in context")}};return SavedWordsValidator}(Qp);var Kf=function(Bn){_inheritsLoose(TriggersValidator,Bn);function TriggersValidator(){return Bn.apply(this,arguments)||this}var Hn=TriggersValidator.prototype;Hn.validateSuppertedTriggers=function validateSuppertedTriggers(Bn){if(!Object.values(oa).includes(Bn)){throw new Up(Bn+" trigger is not supported")}};Hn.validate=function validate(Bn){var Hn=Bn.yamlFile;var zn=Hn.replace(Fc,"TEMPLATE");var Ci=ni.load(zn);var ts=Ci.automations.on||[];var Ps=Object.values(Ci.automations).flatMap((function(Bn){return Bn.on})).filter(Boolean);var aa=[].concat(ts,Ps);for(var oa=_createForOfIteratorHelperLoose(aa),ca;!(ca=oa()).done;){var _a=ca.value;this.validateSuppertedTriggers(_a)}};return TriggersValidator}(Qp);var Xf=function(Bn){_inheritsLoose(CMValidator,Bn);function CMValidator(){var Hn;Hn=Bn.call(this)||this;Hn.steps=[new Vp,new Jp,new Wp,new Qf,new Yf,new Kf];return Hn}var Hn=CMValidator.prototype;Hn.validate=function validate(Bn){var Hn=Qp.parseJinjaExpressions(Bn);for(var zn=_createForOfIteratorHelperLoose(this.steps),ni;!(ni=zn()).done;){var Ci=ni.value;Ci.validate({expressions:Hn,yamlFile:Bn})}};return CMValidator}(Qp);var Ad=function safeRulesYamlLoad(Bn){try{var Hn=ni.load(Bn.replaceAll(/{{(.*?)}}|{(.*?)}|{%.*%}((.|\n)*){% endfor %}/g,""));return Hn}catch(Bn){throw new Up("Failed to load yml file. Invalid cm.")}};var Cd=/^[a-zA-Z0-9_-]+$/;var Sd=function escapeQuotes(Bn){return Bn.replace(/['"`]/g,(function(Bn){if(Bn==='"'){return'"'}else if(Bn==="'"){return"'"}else if(Bn==="`"){return"`"}return Bn}))};var xd=function(Bn){_inheritsLoose(AutomationNamesValidator,Bn);function AutomationNamesValidator(){return Bn.apply(this,arguments)||this}var Hn=AutomationNamesValidator.prototype;Hn.validate=function validate(Bn){var Hn=Bn.yamlFile;var zn=Ad(Hn);var ni=Object.keys((zn==null?void 0:zn.automations)||{}).filter((function(Bn){return!Cd.test(Bn)}));if(ni.length){var Ci=Sd(ni.join(", "));throw new Up("Unsupported automation "+(ni.length===1?"name":"names")+": `"+Ci+"`. Please ensure that the automation name consists only of letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-).")}};return AutomationNamesValidator}(Qp);Hn.ActionsValidator=Wp;Hn.AutomationNamesValidator=xd;Hn.CMValidator=Xf;Hn.ContextVariableValidator=Vp;Hn.FileStructureValidator=Qf;Hn.FiltersValidator=Jp;Hn.SavedWordsValidator=Yf;Hn.validatorsConstants=kp},71063:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});var ni,Ci,ts,Ps,aa=zn(21917),oa=(ni=zn(72426))&&"object"==typeof ni&&"default"in ni?ni.default:ni;function a(Bn,Hn){Bn.prototype=Object.create(Hn.prototype),Bn.prototype.constructor=Bn,l(Bn,Hn)}function s(Bn){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Bn){return Bn.__proto__||Object.getPrototypeOf(Bn)})(Bn)}function l(Bn,Hn){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Bn,Hn){return Bn.__proto__=Hn,Bn})(Bn,Hn)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Bn){return!1}}function c(Bn,Hn,zn){return(c=u()?Reflect.construct.bind():function(Bn,Hn,zn){var ni=[null];ni.push.apply(ni,Hn);var Ci=new(Function.bind.apply(Bn,ni));return zn&&l(Ci,zn.prototype),Ci}).apply(null,arguments)}function p(Bn){var Hn="function"==typeof Map?new Map:void 0;return(p=function(Bn){if(null===Bn||-1===Function.toString.call(Bn).indexOf("[native code]"))return Bn;if("function"!=typeof Bn)throw new TypeError("Super expression must either be null or a function");if(void 0!==Hn){if(Hn.has(Bn))return Hn.get(Bn);Hn.set(Bn,t)}function t(){return c(Bn,arguments,s(this).constructor)}return t.prototype=Object.create(Bn.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),l(t,Bn)})(Bn)}function d(Bn,Hn){(null==Hn||Hn>Bn.length)&&(Hn=Bn.length);for(var zn=0,ni=new Array(Hn);zn=Bn.length?{done:!0}:{done:!1,value:Bn[ni++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ca={COMMIT:"commit",PR_CREATED:"pr_created",COMMENT_ADDED:"comment_added",LABEL_ADDED:"label_added",LABEL_REMOVED:"label_removed"},_a={SEND_SLACK_MESSAGE:"send-slack-message@v1",EXPLAIN_CODE_EXPERTS:"explain-code-experts@v1",ADD_COMMENT:"add-comment@v1",ADD_LABEL:"add-label@v1",ADD_LABELS:"add-labels@v1",ADD_REVIEWERS:"add-reviewers@v1",APPROVE:"approve@v1",MERGE:"merge@v1",SET_REQUIRED_APPROVALS:"set-required-approvals@v1",REQUIRE_REVIEWER:"require-reviewers@v1",REQUEST_CHANGES:"request-changes@v1",UPDATE_CHECK:"update-check@v1",CLOSE:"close@v1",HTTP_REQUEST:"http-request@v1",SEND_HTTP_REQUEST:"send-http-request@v1",INVOKE_GITHUB_ACTION:"invoke-github-action@v1",ADD_GITHUB_CHECK:"add-github-check@v1",RUN_GITHUB_WORKFLOW:"run-github-workflow@v1"},xa={default:_a,gitlab:{ADD_COMMENT:"add-comment@v1",ADD_LABEL:"add-label@v1",ADD_LABELS:"add-labels@v1",ADD_REVIEWERS:"add-reviewers@v1",APPROVE:"approve@v1",MERGE:"merge@v1",CLOSE:"close@v1",EXPLAIN_CODE_EXPERTS:"explain-code-experts@v1",SEND_SLACK_MESSAGE:"send-slack-message@v1",REQUEST_CHANGES:"request-changes@v1"}},Ga=((Ci={})[_a.SEND_SLACK_MESSAGE]=["webhook_url","message"],Ci[_a.EXPLAIN_CODE_EXPERTS]=["lt","gt"],Ci[_a.ADD_COMMENT]=["comment","pin_uid"],Ci[_a.ADD_LABEL]=["label","color"],Ci[_a.ADD_LABELS]=["labels"],Ci[_a.ADD_REVIEWERS]=["reviewers","team_reviewers","unless_reviewers_set","fail_on_error","wait_for_all_checks"],Ci[_a.MERGE]=["wait_for_all_checks","rebase_on_merge","squash_on_merge"],Ci[_a.SET_REQUIRED_APPROVALS]=["approvals"],Ci[_a.REQUEST_CHANGES]=["comment"],Ci[_a.REQUIRE_REVIEWER]=["reviewers","also_assign","team_reviewers","fail_on_error"],Ci[_a.HTTP_REQUEST]=["url","method","user","body","timeout","headers"],Ci[_a.SEND_HTTP_REQUEST]=["url","method","user","body","timeout","headers"],Ci[_a.INVOKE_GITHUB_ACTION]=["owner","repo","workflow","ref","inputs","check_name","stop_ongoing_workflow"],Ci[_a.UPDATE_CHECK]=["check_name","status","conclusion"],Ci[_a.ADD_GITHUB_CHECK]=["check_name","conclusion"],Ci[_a.RUN_GITHUB_WORKFLOW]=["owner","repo","workflow","ref","inputs","check_name","stop_ongoing_workflow","timeout"],Ci),Ha=((ts={})[_a.SEND_SLACK_MESSAGE]={all:!0,args:["webhook_url","message"]},ts[_a.EXPLAIN_CODE_EXPERTS]={all:!1,args:["lt","gt"]},ts[_a.ADD_COMMENT]={all:!0,args:["comment"]},ts[_a.ADD_LABEL]={all:!0,args:["label"]},ts[_a.ADD_LABELS]={all:!0,args:["labels"]},ts[_a.ADD_REVIEWERS]={all:!1,args:["reviewers","team_reviewers"]},ts[_a.SET_REQUIRED_APPROVALS]={all:!0,args:["approvals"]},ts[_a.REQUEST_CHANGES]={all:!0,args:["comment"]},ts[_a.REQUIRE_REVIEWER]={all:!1,args:["reviewers","team_reviewers"]},ts[_a.HTTP_REQUEST]={all:!0,args:["url"]},ts[_a.SEND_HTTP_REQUEST]={all:!0,args:["url"]},ts[_a.INVOKE_GITHUB_ACTION]={all:!1,args:["workflow"]},ts[_a.UPDATE_CHECK]={all:!0,args:["check_name","status","conclusion"]},ts[_a.ADD_GITHUB_CHECK]={all:!0,args:["check_name","conclusion"]},ts[_a.RUN_GITHUB_WORKFLOW]={all:!0,args:["workflow"]},ts),so=["branch","branch.name","branch.base","branch.diff.size","branch.diff.files_metadata","branch.num_of_commits","files","pr","pr.approvals","pr.author","pr.author_teams","pr.checks","pr.comments","pr.conversations","pr.created_at","pr.draft","pr.description","pr.labels","pr.provider","pr.reviewers","pr.status","pr.target","pr.title","pr.requested_changes","pr.reviews","pr.updated_at","pr.conflicted_files_count","pr.number","repo","repo.git_activity","repo.age","repo.author_age","repo.blame","repo.contributors","repo.name","repo.owner","repo.visibility","source","source.diff.files"],oo={every:["list"],filter:["list","regex","term"],includes:["list","regex","term"],map:["list","attr"],match:["list","regex","term","attr"],nope:[],reject:["list","regex","term"],some:["list"],allDocs:[],allImages:[],allTests:[],codeExperts:["gt","lt"],estimatedReviewTime:[],extensions:[],extractJitFindings:[],extractSonarFindings:[],explainCodeExperts:["gt","lt"],explainRankByGitBlame:["gt","lt"],isFirstCommit:[],isFormattingChange:[],mapToEnum:[],matchDiffLines:["regex","ignoreWhiteSpaces"],rankByGitActivity:["gt","lt"],rankByGitBlame:["gt","lt"],intersection:["list"],difference:["list"],capture:["regex"],countTests:[],getJiraTicketDetails:["url","username","apiToken","additionalFields"]},Jo=["abs","attr","batch","capitalize","center","default","dictsort","escape","filesizeformat","first","float","forceescape","format","groupby","indent","int","join","last","length","list","lower","map","max","min","pprint","random","reject","rejectattr","replace","reverse","round","safe","select","selectattr","slice","sort","split","string","striptags","sum","title","trim","truncate","unique","upper","urlencode","urlize","wordcount","wordwrap","xmlattr","nl2br","dump"],tc=[1],dc=((Ps={})[_a.ADD_COMMENT]={comment:{type:"string",required:!0}},Ps[_a.ADD_LABEL]={label:{type:"string",required:!0},color:{type:"string",required:!1}},Ps[_a.ADD_LABELS]={labels:{type:"array",required:!0}},Ps[_a.ADD_REVIEWERS]={reviewers:{type:"array",required:!0},team_reviewers:{type:"array",required:!1},unless_reviewers_set:{type:"boolean",required:!1},fail_on_error:{type:"boolean",required:!1},wait_for_all_checks:{type:"boolean",required:!1}},Ps[_a.APPROVE]={},Ps[_a.CLOSE]={},Ps[_a.MERGE]={wait_for_all_checks:{type:"boolean",required:!1},rebase_on_merge:{type:"boolean",required:!1},squash_on_merge:{type:"boolean",required:!1}},Ps[_a.SET_REQUIRED_APPROVALS]={approvals:{type:"number",required:!0}},Ps[_a.REQUEST_CHANGES]={comment:{type:"string",required:!0}},Ps[_a.REQUIRE_REVIEWER]={reviewers:{type:"array",required:!0},also_assign:{type:"boolean",required:!1}},Ps[_a.EXPLAIN_CODE_EXPERTS]={lt:{type:"number",required:!1},gt:{type:"number",required:!1}},Ps[_a.SEND_SLACK_MESSAGE]={webhook_url:{type:"string",required:!0},message:{type:"string",required:!0}},Ps[_a.INVOKE_GITHUB_ACTION]={owner:{type:"string",required:!1},repo:{type:"string",required:!1},workflow:{type:"string",required:!0},ref:{type:"string",required:!1},inputs:{type:"number",required:!1},check_name:{type:"string",required:!1},stop_ongoing_workflow:{type:"boolean",required:!1}},Ps[_a.ADD_GITHUB_CHECK]={check_name:{type:"string",required:!0},conclusion:{type:"string",required:!0}},Ps[_a.RUN_GITHUB_WORKFLOW]={owner:{type:"string",required:!1},repo:{type:"string",required:!1},workflow:{type:"string",required:!0},ref:{type:"string",required:!1},inputs:{type:"string",required:!1},check_name:{type:"string",required:!1},stop_ongoing_workflow:{type:"boolean",required:!1},timeout:{type:"number",required:!1}},Ps),Fc={type:"object",properties:{manifest:{type:"object",properties:{version:{type:"number",enum:tc}},required:["version"]},config:{type:"object",properties:{ignore_files:{type:"array",items:{type:"string"}},ignore_repositories:{type:"array",items:{type:"string"}},admin:{type:"object",properties:{users:{type:"array",items:{type:"string"}}}}}},on:{type:"array",items:{type:"string",enum:Object.values(ca)}},automations:{type:"object",patternProperties:{"^[a-zA-Z0-9_@]+$":{type:"object",properties:{on:{type:"array",items:{type:"string",enum:Object.values(ca)}},if:{type:"array"},run:{type:"array",items:{type:"object",properties:{action:{type:"string",enum:Object.keys(dc)},args:{type:"object"}},required:["action"]}}},required:["if","run"]}}}},required:["manifest","automations"]},Jc=/{{.*?}}/g,Dp=/\{%\s*.*?\s*%\}/g,kp=/\/(.*?)\//g,Qp={__proto__:null,SUPPORTED_TRIGGERS:ca,SUPPORTED_ACTIONS:_a,SUPPORTED_ACTIONS_BY_PROVIDER:xa,SUPPORTED_ARGUMENTS_BY_ACTION:Ga,REQUIRED_ARGUMENTS_BY_ACTIONS:Ha,VALID_CONTEXT_VARS:so,VALID_FILTERS:oo,JINJA_FILTERS:Jo,VALID_VERSIONS:tc,VALID_ACTIONS:dc,CM_SCHEMA:Fc,JINJA_EXPRESSION_REGEX:Jc,LOOP_EXPRESSION:Dp,REGEX_EXPRESSION:kp},Up=function(){function e(){}return e.prototype.validate=function(Bn){throw new Error('Abstract method "validate" must be implemented.')},e.parseJinjaExpressions=function(Bn){var Hn=Bn.split("\n"),zn=[];return Hn.forEach((function(Bn,Hn){var ni=Bn.match(Jc);ni&&ni.forEach((function(Bn){zn.push({expression:Bn,lineNumber:Hn+1})}))})),zn},e}(),qp=function(Bn){function r(Hn){var zn;return(zn=Bn.call(this,Hn)||this).name="ValidationError",zn}return a(r,Bn),r}(p(Error)),Vp=function(Bn){function r(){return Bn.apply(this,arguments)||this}a(r,Bn);var Hn=r.prototype;return Hn.isValidCustomVariables=function(Bn,Hn){return Bn.split(".").slice(0,-1).map((function(Bn){return Bn.replace(/[()]/g,"")})).every((function(Bn){return Hn.includes(Bn+":")}))},Hn.isValidContextVariable=function(Bn){return!!so.includes(Bn||"UNKNOWN_CONTEXT")},Hn.validate=function(Bn){var Hn=this,zn=Bn.expressions,ni=Bn.yamlFile;(null!=zn?zn:Up.parseJinjaExpressions(ni)).forEach((function(Bn){var zn,Ci,ts,Ps=Bn.expression,aa=Bn.lineNumber,oa=null!=(zn=null==(Ci=Ps.replace(/[{}]/g,"").split("|").shift())?void 0:Ci.trim())?zn:"UNKNOWN_CONTEXT";(null!=(ts=null==oa?void 0:oa.split(" "))?ts:[]).forEach((function(Bn){if(!Hn.isValidContextVariable(Bn)&&!Hn.isValidCustomVariables(Bn,ni))throw new qp("Line ["+aa+"]: Invalid context variable "+Bn+" in expression "+Ps)}))}))},r}(Up),Jp=function(Bn){function r(){return Bn.apply(this,arguments)||this}a(r,Bn);var Hn=r.prototype;return Hn.validateExistingFilter=function(Bn,Hn,zn){if(!Jo.includes(Bn)&&!so.includes(Bn)&&!Object.keys(oo).includes(Bn))throw new qp("Line "+Hn+": Invalid filter function "+Bn+" in expression "+zn)},Hn.getFilterArgs=function(Bn){return Bn.slice(Bn.indexOf("(")+1,Bn.lastIndexOf(")")).replace(kp,"").split(",").map((function(Bn){return Bn.split("=")[0].trim()}))},Hn.validateFilterArgs=function(Bn,Hn,zn,ni){if(Bn.includes("("))for(var Ci,ts=this.getFilterArgs(Bn),Ps=oo[Hn],aa=f(ts);!(Ci=aa()).done;){var oa=Ci.value;if(!Ps.includes(oa))throw new qp("Line ["+zn+"]: Invalid argument "+oa+" for filter "+Hn+" in expression "+ni)}},Hn.validate=function(Bn){var Hn=this,zn=Bn.expressions;(null!=zn?zn:Up.parseJinjaExpressions(Bn.yamlFile)).forEach((function(Bn){for(var zn,ni,Ci=Bn.expression,ts=Bn.lineNumber,Ps=f(null!=(zn=Ci.replace(kp,"").replace(/[{}]/g,"").split("|").slice(1))?zn:[]);!(ni=Ps()).done;){var aa=ni.value.split(/\s*==\s*|\s*<\s*|\s*>\s*/)[0],oa=aa.split("(")[0].trim();Hn.validateExistingFilter(oa,ts,Ci),Hn.validateFilterArgs(aa,oa,ts,Ci)}}))},r}(Up),Wp=function(Bn){function r(){return Bn.apply(this,arguments)||this}a(r,Bn);var Hn=r.prototype;return Hn.validateActionSupported=function(Bn){if(!Object.values(_a).includes(Bn))throw new qp("Action is not supported "+Bn)},Hn.validateArgSupported=function(Bn,Hn){var zn=null==Hn?void 0:Hn.filter((function(Hn){return!Ga[Bn].includes(Hn)}));if(zn.length)throw new qp("Some args are not supported: "+zn.join(", "))},Hn.validateRequiredArgs=function(Bn,Hn){var zn,ni=Ha[Bn];if(ni){var Ci=null==(zn=ni.args)?void 0:zn.filter((function(Bn){return!Hn.includes(Bn)}));if(ni.all&&Ci.length||!ni.all&&!ni.args.some((function(Bn){return Hn.includes(Bn)})))throw new qp("Some required args are missing for action "+Bn+": "+Ci.join(", "))}},Hn.validateIfStructure=function(Bn){if("TEMPLATE"!==Bn&&"boolean"!=typeof Bn)throw new qp("An entry in If section is not YAML supported")},Hn.validate=function(Bn){var Hn,zn=this,ni=Bn.yamlFile.replace(Jc,"TEMPLATE"),Ci=aa.load(ni);Object.values(Ci.automations).flatMap((function(Bn){return Bn.if})).forEach((function(Bn){return zn.validateIfStructure(Bn)}));for(var ts,Ps=f(null==(Hn=Object.values(Ci.automations).flatMap((function(Bn){return Bn.run})))?void 0:Hn.filter(Boolean));!(ts=Ps()).done;){var oa=ts.value,ca=oa.action,_a=oa.args,xa=Object.keys(null!=_a?_a:{});this.validateActionSupported(ca),xa.length&&this.validateArgSupported(ca,xa),this.validateRequiredArgs(ca,xa)}},r}(Up),zp=new oa,Qf=function(Bn){function r(){return Bn.apply(this,arguments)||this}return a(r,Bn),r.prototype.validate=function(Bn){for(var Hn,zn=Bn.yamlFile.replace(Jc,"").replace(Dp,""),ni=aa.loadAll(zn,void 0,{schema:aa.JSON_SCHEMA}),Ci=zp.compile(Fc),ts=f(ni);!(Hn=ts()).done;){var Ps;if(!Ci(Hn.value))throw new qp("Schema is not valid: "+(null==(Ps=Ci.errors)?void 0:Ps.map((function(Bn){return Bn.message})).join(", ")))}},r}(Up),Yf=function(Bn){function r(){return Bn.apply(this,arguments)||this}return a(r,Bn),r.prototype.validate=function(Bn){var Hn=aa.load(Bn.yamlFile.replace(Jc,"").replace(/{%.*?%}[\s\S]*?{% endfor %}/g,"")),zn=Object.keys(Hn).filter((function(Bn){return!Object.keys(Fc.properties).includes(Bn)})).find((function(Bn){return so.includes(Bn)}));if(zn)throw new qp("Invalid custom context variable: `"+zn+"` is a built-in context")},r}(Up),Kf=function(Bn){function r(){return Bn.apply(this,arguments)||this}a(r,Bn);var Hn=r.prototype;return Hn.validateSuppertedTriggers=function(Bn){if(!Object.values(ca).includes(Bn))throw new qp(Bn+" trigger is not supported")},Hn.validate=function(Bn){for(var Hn,zn=Bn.yamlFile.replace(Jc,"TEMPLATE"),ni=aa.load(zn),Ci=ni.automations.on||[],ts=Object.values(ni.automations).flatMap((function(Bn){return Bn.on})).filter(Boolean),Ps=f([].concat(Ci,ts));!(Hn=Ps()).done;)this.validateSuppertedTriggers(Hn.value)},r}(Up),Xf=function(Bn){function r(){var Hn;return(Hn=Bn.call(this)||this).steps=[new Vp,new Jp,new Wp,new Qf,new Yf,new Kf],Hn}return a(r,Bn),r.prototype.validate=function(Bn){for(var Hn,zn=Up.parseJinjaExpressions(Bn),ni=f(this.steps);!(Hn=ni()).done;)Hn.value.validate({expressions:zn,yamlFile:Bn})},r}(Up),Ad=/^[a-zA-Z0-9_-]+$/,Cd=function(Bn){function r(){return Bn.apply(this,arguments)||this}return a(r,Bn),r.prototype.validate=function(Bn){var Hn=function(Bn){try{return aa.load(Bn.replaceAll(/{{(.*?)}}|{(.*?)}|{%.*%}((.|\n)*){% endfor %}/g,""))}catch(Bn){throw new qp("Failed to load yml file. Invalid cm.")}}(Bn.yamlFile),zn=Object.keys((null==Hn?void 0:Hn.automations)||{}).filter((function(Bn){return!Ad.test(Bn)}));if(zn.length){var ni=zn.join(", ").replace(/['"`]/g,(function(Bn){return'"'===Bn?'"':"'"===Bn?"'":"`"===Bn?"`":Bn}));throw new qp("Unsupported automation "+(1===zn.length?"name":"names")+": `"+ni+"`. Please ensure that the automation name consists only of letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-).")}},r}(Up);Hn.ActionsValidator=Wp,Hn.AutomationNamesValidator=Cd,Hn.CMValidator=Xf,Hn.ContextVariableValidator=Vp,Hn.FileStructureValidator=Qf,Hn.FiltersValidator=Jp,Hn.SavedWordsValidator=Yf,Hn.validatorsConstants=Qp},37005:(Bn,Hn,zn)=>{"use strict";if(process.env.NODE_ENV==="production"){Bn.exports=zn(71063)}else{Bn.exports=zn(98042)}},75970:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});function _interopDefault(Bn){return Bn&&typeof Bn==="object"&&"default"in Bn?Bn["default"]:Bn}var ni=zn(37005);var Ci=zn(21917);var ts=zn(90250);var Ps=_interopDefault(ts);var aa=_interopDefault(zn(72187));var oa=_interopDefault(zn(2825));var ca=zn(17006);var _a=_interopDefault(zn(56908));var xa=_interopDefault(zn(56929));var Ga=zn(32081);var Ha=_interopDefault(zn(33779));var so=_interopDefault(zn(96545));var oo=_interopDefault(zn(99623));var Jo=_interopDefault(zn(98911));var tc=_interopDefault(zn(13418));var dc=zn(57147);var Fc=zn(71017);var Jc=_interopDefault(Fc);var Dp=zn(87029);var kp=zn(55375);var Qp=zn(42186);var Up=_interopDefault(zn(94833));var qp=zn(77486);function _regeneratorRuntime(){_regeneratorRuntime=function(){return Hn};var Bn,Hn={},zn=Object.prototype,ni=zn.hasOwnProperty,Ci=Object.defineProperty||function(Bn,Hn,zn){Bn[Hn]=zn.value},ts="function"==typeof Symbol?Symbol:{},Ps=ts.iterator||"@@iterator",aa=ts.asyncIterator||"@@asyncIterator",oa=ts.toStringTag||"@@toStringTag";function define(Bn,Hn,zn){return Object.defineProperty(Bn,Hn,{value:zn,enumerable:!0,configurable:!0,writable:!0}),Bn[Hn]}try{define({},"")}catch(Bn){define=function(Bn,Hn,zn){return Bn[Hn]=zn}}function wrap(Bn,Hn,zn,ni){var ts=Hn&&Hn.prototype instanceof Generator?Hn:Generator,Ps=Object.create(ts.prototype),aa=new Context(ni||[]);return Ci(Ps,"_invoke",{value:makeInvokeMethod(Bn,zn,aa)}),Ps}function tryCatch(Bn,Hn,zn){try{return{type:"normal",arg:Bn.call(Hn,zn)}}catch(Bn){return{type:"throw",arg:Bn}}}Hn.wrap=wrap;var ca="suspendedStart",_a="suspendedYield",xa="executing",Ga="completed",Ha={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var so={};define(so,Ps,(function(){return this}));var oo=Object.getPrototypeOf,Jo=oo&&oo(oo(values([])));Jo&&Jo!==zn&&ni.call(Jo,Ps)&&(so=Jo);var tc=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(so);function defineIteratorMethods(Bn){["next","throw","return"].forEach((function(Hn){define(Bn,Hn,(function(Bn){return this._invoke(Hn,Bn)}))}))}function AsyncIterator(Bn,Hn){function invoke(zn,Ci,ts,Ps){var aa=tryCatch(Bn[zn],Bn,Ci);if("throw"!==aa.type){var oa=aa.arg,ca=oa.value;return ca&&"object"==typeof ca&&ni.call(ca,"__await")?Hn.resolve(ca.__await).then((function(Bn){invoke("next",Bn,ts,Ps)}),(function(Bn){invoke("throw",Bn,ts,Ps)})):Hn.resolve(ca).then((function(Bn){oa.value=Bn,ts(oa)}),(function(Bn){return invoke("throw",Bn,ts,Ps)}))}Ps(aa.arg)}var zn;Ci(this,"_invoke",{value:function(Bn,ni){function callInvokeWithMethodAndArg(){return new Hn((function(Hn,zn){invoke(Bn,ni,Hn,zn)}))}return zn=zn?zn.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(Hn,zn,ni){var Ci=ca;return function(ts,Ps){if(Ci===xa)throw new Error("Generator is already running");if(Ci===Ga){if("throw"===ts)throw Ps;return{value:Bn,done:!0}}for(ni.method=ts,ni.arg=Ps;;){var aa=ni.delegate;if(aa){var oa=maybeInvokeDelegate(aa,ni);if(oa){if(oa===Ha)continue;return oa}}if("next"===ni.method)ni.sent=ni._sent=ni.arg;else if("throw"===ni.method){if(Ci===ca)throw Ci=Ga,ni.arg;ni.dispatchException(ni.arg)}else"return"===ni.method&&ni.abrupt("return",ni.arg);Ci=xa;var so=tryCatch(Hn,zn,ni);if("normal"===so.type){if(Ci=ni.done?Ga:_a,so.arg===Ha)continue;return{value:so.arg,done:ni.done}}"throw"===so.type&&(Ci=Ga,ni.method="throw",ni.arg=so.arg)}}}function maybeInvokeDelegate(Hn,zn){var ni=zn.method,Ci=Hn.iterator[ni];if(Ci===Bn)return zn.delegate=null,"throw"===ni&&Hn.iterator.return&&(zn.method="return",zn.arg=Bn,maybeInvokeDelegate(Hn,zn),"throw"===zn.method)||"return"!==ni&&(zn.method="throw",zn.arg=new TypeError("The iterator does not provide a '"+ni+"' method")),Ha;var ts=tryCatch(Ci,Hn.iterator,zn.arg);if("throw"===ts.type)return zn.method="throw",zn.arg=ts.arg,zn.delegate=null,Ha;var Ps=ts.arg;return Ps?Ps.done?(zn[Hn.resultName]=Ps.value,zn.next=Hn.nextLoc,"return"!==zn.method&&(zn.method="next",zn.arg=Bn),zn.delegate=null,Ha):Ps:(zn.method="throw",zn.arg=new TypeError("iterator result is not an object"),zn.delegate=null,Ha)}function pushTryEntry(Bn){var Hn={tryLoc:Bn[0]};1 in Bn&&(Hn.catchLoc=Bn[1]),2 in Bn&&(Hn.finallyLoc=Bn[2],Hn.afterLoc=Bn[3]),this.tryEntries.push(Hn)}function resetTryEntry(Bn){var Hn=Bn.completion||{};Hn.type="normal",delete Hn.arg,Bn.completion=Hn}function Context(Bn){this.tryEntries=[{tryLoc:"root"}],Bn.forEach(pushTryEntry,this),this.reset(!0)}function values(Hn){if(Hn||""===Hn){var zn=Hn[Ps];if(zn)return zn.call(Hn);if("function"==typeof Hn.next)return Hn;if(!isNaN(Hn.length)){var Ci=-1,ts=function next(){for(;++Ci=0;--Ci){var ts=this.tryEntries[Ci],Ps=ts.completion;if("root"===ts.tryLoc)return handle("end");if(ts.tryLoc<=this.prev){var aa=ni.call(ts,"catchLoc"),oa=ni.call(ts,"finallyLoc");if(aa&&oa){if(this.prev=0;--zn){var Ci=this.tryEntries[zn];if(Ci.tryLoc<=this.prev&&ni.call(Ci,"finallyLoc")&&this.prev=0;--Hn){var zn=this.tryEntries[Hn];if(zn.finallyLoc===Bn)return this.complete(zn.completion,zn.afterLoc),resetTryEntry(zn),Ha}},catch:function(Bn){for(var Hn=this.tryEntries.length-1;Hn>=0;--Hn){var zn=this.tryEntries[Hn];if(zn.tryLoc===Bn){var ni=zn.completion;if("throw"===ni.type){var Ci=ni.arg;resetTryEntry(zn)}return Ci}}throw new Error("illegal catch attempt")},delegateYield:function(Hn,zn,ni){return this.delegate={iterator:values(Hn),resultName:zn,nextLoc:ni},"next"===this.method&&(this.arg=Bn),Ha}},Hn}function asyncGeneratorStep(Bn,Hn,zn,ni,Ci,ts,Ps){try{var aa=Bn[ts](Ps);var oa=aa.value}catch(Bn){zn(Bn);return}if(aa.done){Hn(oa)}else{Promise.resolve(oa).then(ni,Ci)}}function _asyncToGenerator(Bn){return function(){var Hn=this,zn=arguments;return new Promise((function(ni,Ci){var ts=Bn.apply(Hn,zn);function _next(Bn){asyncGeneratorStep(ts,ni,Ci,_next,_throw,"next",Bn)}function _throw(Bn){asyncGeneratorStep(ts,ni,Ci,_next,_throw,"throw",Bn)}_next(undefined)}))}}function _extends(){_extends=Object.assign?Object.assign.bind():function(Bn){for(var Hn=1;Hn=0)continue;zn[Ci]=Bn[Ci]}return zn}function _assertThisInitialized(Bn){if(Bn===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return Bn}function _unsupportedIterableToArray(Bn,Hn){if(!Bn)return;if(typeof Bn==="string")return _arrayLikeToArray(Bn,Hn);var zn=Object.prototype.toString.call(Bn).slice(8,-1);if(zn==="Object"&&Bn.constructor)zn=Bn.constructor.name;if(zn==="Map"||zn==="Set")return Array.from(Bn);if(zn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(zn))return _arrayLikeToArray(Bn,Hn)}function _arrayLikeToArray(Bn,Hn){if(Hn==null||Hn>Bn.length)Hn=Bn.length;for(var zn=0,ni=new Array(Hn);zn=Bn.length)return{done:true};return{done:false,value:Bn[ni++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Vp="https://gtxblnqb99.execute-api.us-west-1.amazonaws.com/prod";var Jp={REVIEW_TIME:Vp+"/v1/pulls/review-time",EXPERT_REVIWER:Vp+"/gs/v1/data-service/expert-reviewer"};var Wp="gitstream-rules-parser";var zp={FAILED_RENDER_STRING:Wp+" - failed render string",FAILED_YAML_LOAD:Wp+" - failed yaml.load",INVALID_CM:Wp+" - invalid cm",INVALID_CM_CONTEXT_VARIABLES:Wp+" - ContextVariableValidator"};var Qf={FAILED_RENDER_STRING:80,FAILED_YAML_LOAD:81,INVALID_CM:82,INVALID_CM_CONTEXT_VARIABLES:83};var Yf="gitstream-core";var Kf=function(Bn){_inheritsLoose(PluginsError,Bn);function PluginsError(Hn,zn){var ni;ni=Bn.call(this,zn)||this;ni.reason=Hn;Object.setPrototypeOf(_assertThisInitialized(ni),PluginsError.prototype);return ni}return PluginsError}(_wrapNativeSuper(Error));var Xf=function escapeObjectStringsValues(Bn){if(!ts.isObject(Bn)||!Object.keys(Bn).length){return Bn}return Object.keys(Bn).reduce((function(Hn,zn){var ni;var Ci=Bn[zn];var Ps=ts.isString(Ci)?Ci.replace(/\n/g,"\\n"):Ci;return _extends({},Hn,(ni={},ni[zn]=Ps,ni))}),{})};var Ad=function redoArgEscaping(Bn){if(ts.isString(Bn)){return Bn.replace(/\\n/g,"\n")}return Bn};var Cd="python";var Sd=function minify(Bn){return Bn.replace(/\s+/g," ").replaceAll("'",'"').trim()};var xd=function removeEmptyLines(Bn){return Bn.replace(/^\s*[\r\n]/gm,"")};var wd=function jsFormatter(Bn,Hn){return Sd(xa.format(Bn,{semi:false,singleQuote:true,filepath:Hn}))};var Td=function pyFormatter(Bn){var Hn=Ga.spawnSync(Cd,["-c","import black; print(black.format_str("+JSON.stringify(Bn)+", mode=black.FileMode()))"]);var zn=Hn.stdout.toString();return xd(zn)};var Pd={js:wd,ts:wd,html:wd,py:Td,default:Sd};var Qh=function format(Bn,Hn){var zn;var ni=(zn=Hn.split(".").pop())!=null?zn:"";var Ci=_a(Pd,ni,Pd["default"]);return Ci(Bn)};var Zh=function convertArgsToString(Bn){return Object.keys(Bn).map((function(Hn){return Hn+"="+Bn[Hn]}))};var f_={"add-comment@v1":{comment:{name:"comment",type:"string"}},"add-label@v1":{label:{name:"label",type:"string"}},"add-labels@v1":{labels:{name:"labels",type:"list"}},"add-reviewers@v1":{wait_for_all_checks:{name:"wait_for_all_checks",type:"boolean"},reviewers:{name:"reviewers",type:"list"},team_reviewers:{name:"team_reviewers",type:"list"}},"merge@v1":{wait_for_all_checks:{name:"wait_for_all_checks",type:"boolean"},rebase_on_merge:{name:"rebase_on_merge",type:"boolean"},squash_on_merge:{name:"squash_on_merge",type:"boolean"}},"require-reviewers@v1":{reviewers:{name:"reviewers",type:"list"}},"set-required-approvals@v1":{approvals:{name:"approvals",type:"number"}},"request-changes@v1":{comment:{name:"comment",type:"number"}}};var Z_=[f_["add-reviewers@v1"].reviewers.name,f_["require-reviewers@v1"].reviewers.name,f_["add-reviewers@v1"].team_reviewers.name,f_["add-labels@v1"].labels.name];var eg=function debug(Bn,Hn){if(Hn){console.log(Bn)}};var tg;var rg=function internalIncludes(Bn,Hn){return Bn==null?void 0:Bn.includes(Hn)};var ng=function parseTermToValidString(Bn){if(typeof Bn==="string"&&Bn.startsWith("r/")){return Bn.substring(2).slice(0,-1).replace("\\/","/")}return Bn};var ig=function internalRegex(Bn,Hn,zn){if(zn===void 0){zn=false}var ni=ng(Hn);var Ci=new RegExp(ni,zn?"m":"");return Ci.test(Bn)};var sg=function internalEvery(Bn,Hn,zn){var ni=Bn==null?void 0:Bn.map((function(Bn){return Boolean(Bn)}));return ni!=null&&ni.length?ni.every((function(Bn){return Bn===Hn})):zn};var ag=function formatInputToList(Bn){if(typeof Bn==="string"){if(Bn.includes(",")){return Bn.split(",")}return[Bn]}return Bn!=null?Bn:[]};var og={GITHUB:"github",GITLAB:"gitlab",BITBUCKET:"bitbucket"};var ug=(tg={},tg[og.GITHUB]="GitHub",tg[og.GITLAB]="GitLab",tg[og.BITBUCKET]="BitBucket",tg);var cg="\n \nTo learn more about /:\\ gitStream - [Visit our Docs](https://docs.gitstream.cm/) \n \n";var lg={"01":"JAN","02":"FEB","03":"MAR","04":"APR","05":"MAY","06":"JUN","07":"JUL","08":"AUG","09":"SEP",10:"OCT",11:"NOV",12:"DEC"};var pg=function FiltersForAnalytics(){};pg.filters={};var fg=function handleAnalytics(Bn,Hn,zn){var ni;if(zn===void 0){zn=false}pg.filters=_extends({},pg.filters,(ni={},ni[Bn]={args:Hn,isCustom:zn},ni))};var dg=function capture(Bn,Hn){var zn=Hn.regex;var ni=ng(zn);var Ci=new RegExp(ni!=null?ni:"");var ts=Ci.exec(Bn);if(ts){return ts[0]}return""};var hg;var mg=function parseSome(Bn){var Hn;fg(kg.some,[]);var zn=(Hn=ag(Bn))==null?void 0:Hn.map((function(Bn){return Boolean(Bn)}));return Boolean(zn==null?void 0:zn.length)&&zn.some((function(Bn){return Bn}))};var _g=function parseEvery(Bn){fg(kg.every,[]);return sg(ag(Bn),true,false)};var gg=function termRegexOrList(Bn,Hn,zn,ni,Ci){return zn?rg(Hn?Bn[Hn]:Bn,zn):ni?ig(Hn?Bn[Hn]:Bn,ni):Ci.some((function(zn){return rg(Hn?Bn[Hn]:Bn,zn)}))};var Ag=function filterList(Bn,Hn,zn,ni,Ci,ts){return Bn.filter((function(Bn){return ts?!gg(Bn,Hn,zn,ni,Ci):gg(Bn,Hn,zn,ni,Ci)}))};var yg=function mapList(Bn,Hn,zn,ni,Ci,ts){return Bn.map((function(Bn){return ts?!gg(Bn,Hn,zn,ni,Ci):gg(Bn,Hn,zn,ni,Ci)}))};var vg=function calculateList(Bn,Hn,zn,ni){if(ni===void 0){ni=false}var Ci=Hn.attr||"";var ts=Hn.term,Ps=Hn.regex,aa=Hn.list;var oa=ag(Bn);if(!ts&&!Ps&&!aa){return[]}var ca=aa;if(aa){ca=ag(aa)}return zn==="filterList"?Ag(oa,Ci,ts,Ps,ca,ni):yg(oa,Ci,ts,Ps,ca,ni)};var Eg=function parseFilter(Bn,Hn){fg(kg.filter,[Hn]);return vg(Bn,Hn,"filterList")};var bg=function parseReject(Bn,Hn){fg(kg.reject,[Hn]);return vg(Bn,Hn,"filterList",true)};var Dg=function parseMap(Bn,Hn){var zn=Hn.attr;fg(kg.map,[{attr:zn}]);return ag(Bn).map((function(Bn){return Bn[zn]}))};var Cg=function parseIncludes(Bn,Hn){fg(kg.includes,[Hn]);var zn=Hn.term,ni=Hn.regex,Ci=Hn.list;if(!zn&&!ni&&!Ci){return false}var ts=Ci;if(Ci){ts=ag(Ci)}return zn?rg(Bn,zn):ni?ig(Bn,ni):ts.some((function(Hn){return Bn.includes(Hn)}))};var Sg=function parseMatch(Bn,Hn){fg(kg.match,[Hn]);return vg(Bn,Hn,"mapList")};var xg=function parseNope(Bn){fg(kg.match,[]);return sg(ag(Bn),false,true)};var wg=function parseIntersection(Bn,Hn){fg(kg.intersection,[Hn]);var zn=Hn.list;var ni=ag(Bn);var Ci=ag(zn);if(!Ci.length){return[]}return ts.intersection(ni,Ci)};var Tg=function parseDifference(Bn,Hn){fg(kg.difference,[Hn]);var zn=Hn.list;var ni=ag(Bn);var Ci=ag(zn);if(!Ci.length){return Bn}return ts.difference(ni,Ci)};var kg;(function(Bn){Bn["some"]="some";Bn["every"]="every";Bn["filter"]="filter";Bn["includes"]="includes";Bn["reject"]="reject";Bn["map"]="map";Bn["match"]="match";Bn["nope"]="nope";Bn["intersection"]="intersection";Bn["difference"]="difference";Bn["capture"]="capture"})(kg||(kg={}));var Ig=(hg={},hg[kg.some]=mg,hg[kg.every]=_g,hg[kg.filter]=Eg,hg[kg.reject]=bg,hg[kg.map]=Dg,hg[kg.includes]=Cg,hg[kg.match]=Sg,hg[kg.nope]=xg,hg[kg.intersection]=wg,hg[kg.difference]=Tg,hg[kg.capture]=dg,hg);var Bg={github:"",gitlab:" \n",default:""};var Fg=function calculateSumByAuthor(Bn,Hn){return Object.values(Bn).reduce((function(Bn,zn){var ni,Ci;var ts=zn[Hn];var Ps=(ts!=null?ts:0)+((ni=Bn[Hn])!=null?ni:0);return _extends({},Bn,Ps&&(Ci={},Ci[Hn]=Ps,Ci))}),{})};var Ng=function convertAndSumContributors(Bn,Hn){return Object.keys(Bn).reduce((function(zn,ni){var Ci,ts;var Ps=Bn[ni];if(zn[Hn[ni]]){Ps=Bn[ni]+zn[Hn[ni]]}var aa=(Ci=Hn[ni])!=null&&Ci.includes("@")||!Hn[ni]?ni+"\\*":Hn[ni];return _extends({},zn,(ts={},ts[aa]=Ps,ts))}),{})};var Pg=function convertContributorsAndBlame(Bn){var Hn=Object.keys(Bn.blame).reduce((function(Hn,zn){var ni;return _extends({},Hn,(ni={},ni[zn]=Ng(Bn.blame[zn],Bn.git_to_provider_user),ni))}),{});return{blame:Hn}};var Og=function sumAuthorMetrics(Bn,Hn){var zn=Object.keys(Hn).length;return Bn.reduce((function(Bn,ni){var Ci;var ts=Fg(Hn,ni);return _extends({},Bn,ts[ni]&&(Ci={},Ci[ni]=ts[ni]/zn,Ci))}),{})};var Rg=function calculateActivityPerFile(Bn,Hn){return Object.keys(Bn).reduce((function(zn,ni){var Ci;var ts=Object.values(Bn[ni]).reduce((function(Bn,zn){Hn.forEach((function(Hn){var ni=zn[Hn];if(ni){var Ci;Bn[Hn]=((Ci=Bn[Hn])!=null?Ci:0)+ni}}));return _extends({},Bn)}),{});return _extends({},zn,(Ci={},Ci[ni]=ts,Ci))}),{})};var Lg=function calculateFileSumPerAuthorActivity(Bn,Hn,zn){return Object.keys(Bn).reduce((function(ni,Ci){var ts;var Ps=Object.keys(Bn[Ci]).reduce((function(ni,ts){var Ps;var aa=[];Hn.forEach((function(Hn){if(zn[Ci][Hn]&&Bn[Ci][ts][Hn]){aa.push(Bn[Ci][ts][Hn]/zn[Ci][Hn]*100)}}));var oa=aa.reduce((function(Bn,Hn){return Bn+Hn}),0)/aa.length;return _extends({},ni,aa.length&&(Ps={},Ps[ts]=parseInt(oa==null?void 0:oa.toFixed(0)),Ps))}),{});return _extends({},ni,(ts={},ts[Ci]=Ps,ts))}),{})};var Qg=function sortObject(Bn,Hn){return Bn.sort((function(Bn,zn){var ni,Ci;return((ni=Hn[zn])!=null?ni:0)-((Ci=Hn[Bn])!=null?Ci:0)}))};var Mg=function compareThan(Bn,Hn,zn){var ni=Object.keys(Bn).filter((function(ni){return Hn!==undefined?Bn[ni]>Hn:Bn[ni]parseInt(Ps)){Ps=Bn[ts]}return _extends({},Bn,(Ci={},Ci[ts]=Ps,Ci))}),{});return _extends({},Bn,(ni={},ni[Hn]=ts,ni))}),{})};var Gg=function suggestedReviewersComment(Bn,Hn,zn,ni){var Ci=Bn?" 👋 **Suggested reviewers: "+Bn+"**\n \nThey contributed "+Hn+" of the lines on pre-existing files":" 👋 **Suggested reviewers: no user "+(ni?"but you":"")+" matched**\n \nNo "+(zn?"other ":"")+"user contributed "+Hn+" of the lines on pre-existing files";return Ci};var qg=function explainBlameTemplate(Bn,Hn,zn,ni,Ci){var ts=Bn.gt,Ps=Bn.lt;var aa=ts?"more than "+ts+"%":"less than "+Ps+"%";var oa=Object.keys(zn).length;var ca=Gg(Hn,aa,oa,Ci);ca+=oa?":\n":". \n ";ca+=Object.keys(zn).length?"
\n See details\n":"";ca+="\n";Object.keys(zn).forEach((function(Bn){if(Object.keys(zn[Bn]).length===0){return}ca+="\n`"+Bn+"` \n"+(Bg[ni]||Bg["default"]);Object.keys(zn[Bn]).forEach((function(Hn){ca+=Hn+": "+zn[Bn][Hn]+" \n"+(Bg[ni]||Bg["default"])}))}));ca+="\n
\n";var _a=Object.values(zn).map((function(Bn){return Object.keys(Bn).some((function(Bn){return Bn.includes("*")}))})).some((function(Bn){return Bn}));ca+=_a?" \nGit users that could not be automatically mapped are marked with `*`.\n"+(Bg[ni]||Bg["default"])+"To map these users, refer to the instructions [here](https://docs.gitstream.cm/cm-file#config).\n \n":"";ca+=cg;return ca};var Vg=function isGtLtArgsValid(Bn){var Hn=Bn.gt,zn=Bn.lt;return!!Hn||!!zn};var Hg=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn){var Hn,zn;return _regeneratorRuntime().wrap((function _callee$(ni){while(1)switch(ni.prev=ni.next){case 0:ni.prev=0;ni.next=3;return so.post(Jp.REVIEW_TIME,Bn,{headers:{"Content-type":"application/json"}});case 3:Hn=ni.sent;zn=Hn.data.numericValue;return ni.abrupt("return",{numericValue:zn});case 8:ni.prev=8;ni.t0=ni["catch"](0);console.warn("Failed to get ETR",ni.t0);return ni.abrupt("return",{numericValue:"N/A"});case 12:case"end":return ni.stop()}}),_callee,null,[[0,8]])})));return function getETR(Hn){return Bn.apply(this,arguments)}}();var $g=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(Bn){var Hn,zn;return _regeneratorRuntime().wrap((function _callee2$(ni){while(1)switch(ni.prev=ni.next){case 0:ni.prev=0;if(!Bn){ni.next=7;break}ni.next=4;return so.post(Jp.EXPERT_REVIWER,Bn,{headers:{"Content-type":"application/json"}});case 4:Hn=ni.sent;zn=Hn.data;return ni.abrupt("return",zn||{});case 7:return ni.abrupt("return",{});case 10:ni.prev=10;ni.t0=ni["catch"](0);return ni.abrupt("return",{});case 13:case"end":return ni.stop()}}),_callee2,null,[[0,10]])})));return function getExpertReviewer(Hn){return Bn.apply(this,arguments)}}();var Jg=function filterExpertResult(Bn,Hn,zn,ni){var Ci=Object.keys(Bn).reduce((function(Ci,ts){if(Hn!==undefined?Bn[ts][ni]>Hn/100:Bn[ts][ni]")}))||[]};var Yg=function parseExpertReviewerThreshold(Bn){var Hn=Bn.gt,zn=Bn.lt;return Hn||zn||.1};var Wg=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(Bn){var Hn;var zn,ni,Ci;return _regeneratorRuntime().wrap((function _callee3$(ts){while(1)switch(ts.prev=ts.next){case 0:ts.next=2;return $g((Hn=Bn.data_service)==null?void 0:Hn.expert_reviwer_request);case 2:zn=ts.sent;if(Object.keys(zn).length){ts.next=5;break}return ts.abrupt("return",{data:{},dataWithoutIssuer:{},isIssuerFiltered:false});case 5:ni=false;Ci=Object.keys(zn).reduce((function(Hn,Ci){var ts;if(Ci===Bn.pr_author){ni=true;return Hn}return _extends({},Hn,(ts={},ts[Ci]=zn[Ci],ts))}),{});return ts.abrupt("return",{data:zn,dataWithoutIssuer:Ci,isIssuerFiltered:ni});case 8:case"end":return ts.stop()}}),_callee3)})));return function getAndFilterExpertReviewer(Hn){return Bn.apply(this,arguments)}}();var Kg=function explainExpertReviewerComment(Bn,Hn,zn,ni,Ci,ts){var Ps="🥷 **Code experts:";Ps+=Bn.length?" "+Bn.join(", ")+"** \n \n":" no user "+(ts?"but you":"")+" matched threshold "+ni+"** \n \n";if(Hn.length){Ps+=Hn.join(", ")+" "+(Hn.length===1?"has":"have")+" most 👩‍💻 **activity** in the files. \n"+(Bg[Ci]||Bg["default"])}if(zn.length){Ps+=zn.join(", ")+" "+(zn.length===1?"has":"have")+" most 🧠 **knowledge** in the files. \n"}return Ps};var zg=function explainActivityByMonth(Bn,Hn,zn){var ni="";var Ci=[];for(var ts=0;ts<6;ts++){Ci.push(lg[oo().subtract(ts,"months").format("MM")])}Ci.forEach((function(Ci){var ts;var Ps=Bn[Hn][zn[0]][Ci];var aa=(ts=Bn[Hn][zn[1]])==null?void 0:ts[Ci];ni+="| "+Ci+" | "+(Ps?Ps.additions+" additions & "+Ps.deletions+" deletions":" ")+" |";ni+=(aa?aa.additions+" additions & "+aa.deletions+" deletions |":" ")+" \n"}));return ni};var Xg=function explainActivityTable(Bn,Hn,zn){if(!Object.keys(Hn).length){return"\n\nNo activity in the last 6 months\n\n"}if(zn.length){var ni="\n\nActivity based on git-commit: \n\n | | "+(zn[0]?zn[0]:" ")+" | "+(zn[1]?zn[1]+"| \n | --- | --- | --- | \n ":" \n | --- | --- | \n");ni+=zg(Hn,Bn,zn);return ni}return""};var Zg=function explainKnowledgeSection(Bn,Hn,zn,ni){var Ci="";var ts=Qg(zn,Hn[Bn]);ts.forEach((function(zn){Ci+=Hn[Bn][zn]?zn+": "+Hn[Bn][zn]+"% \n"+(Bg[ni]||Bg["default"]):""}));return Ci};var sA=function explainActivityAndBlameComment(Bn,Hn,zn,ni,Ci,ts){try{var Ps="
\n See details\n\n";Bn.forEach((function(Bn){Ps+="\n`"+Bn+"` \n "+Xg(Bn,Hn,ni)+" \n\nKnowledge based on git-blame: \n "+(Bg[ts]||Bg["default"])+Zg(Bn,zn,Ci,ts)}));Ps+="\n
\n";return Ps}catch(Bn){console.log("Error in creating explain code experts comment",Bn);return""}};var oA=function parseActivityByUserDataForExplain(Bn,Hn,zn){return Object.keys(Bn[Hn]).reduce((function(ni,Ci){if(Bn[Hn][Ci][zn]){var ts,Ps;var aa=lg[(ts=Ci.split("-"))==null?void 0:ts[1]];return _extends({},ni,(Ps={},Ps[aa]=Bn[Hn][Ci][zn],Ps))}return ni}),{})};var hA=function parseActivityByUserForExplain(Bn,Hn,zn){return zn.reduce((function(zn,ni){var Ci;var ts=oA(Bn,Hn,ni);return _extends({},zn,(Ci={},Ci[ni]=ts,Ci))}),{})};var ey=function getExplainActivity(Bn,Hn){return Object.keys(Bn||{}).reduce((function(zn,ni){var Ci;var ts=hA(Bn,ni,Hn);return _extends({},zn,(Ci={},Ci[ni]=ts,Ci))}),{})};var ty=function getExplainKnowledge(Bn,Hn){return Object.keys(Bn||{}).reduce((function(zn,ni){var Ci;var ts=Qg(Hn,Bn[ni]);var Ps=ts.reduce((function(Hn,zn){if(Bn[ni][zn]){var Ci;return _extends({},Hn,(Ci={},Ci[zn]=Math.round(Bn[ni][zn]*100),Ci))}return Hn}),{});return _extends({},zn,(Ci={},Ci[ni]=Ps,Ci))}),{})};var ry;(function(Bn){Bn["allDocs"]="allDocs";Bn["allImages"]="allImages";Bn["allTests"]="allTests";Bn["extensions"]="extensions";Bn["isFormattingChange"]="isFormattingChange";Bn["matchDiffLines"]="matchDiffLines";Bn["isFirstCommit"]="isFirstCommit";Bn["rankByGitBlame"]="rankByGitBlame";Bn["rankByGitActivity"]="rankByGitActivity";Bn["explainRankByGitBlame"]="explainRankByGitBlame";Bn["sonarParser"]="sonarParser";Bn["mapToEnum"]="mapToEnum";Bn["extractSonarFindings"]="extractSonarFindings";Bn["extractJitFindings"]="extractJitFindings";Bn["countTests"]="countTests"})(ry||(ry={}));var ny;(function(Bn){Bn["estimatedReviewTime"]="estimatedReviewTime";Bn["expertReviewer"]="expertReviewer";Bn["explainExpertReviewer"]="explainExpertReviewer";Bn["codeExperts"]="codeExperts";Bn["explainCodeExperts"]="explainCodeExperts"})(ny||(ny={}));var iy="/dev/null";var py=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn){var zn,ni,Ci;var ts,Ps,aa,oa,ca,_a,xa,Ga;return _regeneratorRuntime().wrap((function _callee$(Ha){while(1)switch(Ha.prev=Ha.next){case 0:fg(ny.estimatedReviewTime,[]);ts=(zn=Bn.diff)==null?void 0:zn.files_metadata.length;Ps=(ni=Bn.diff)==null?void 0:ni.files_metadata.reduce((function(Bn,Hn){Bn.additionalLines+=Hn.additions;Bn.deletedLines+=Hn.deletions;return Bn}),{additionalLines:0,deletedLines:0}),aa=Ps.additionalLines,oa=Ps.deletedLines;ca=(Ci=Bn.diff)==null?void 0:Ci.files_metadata.map((function(Bn){return{file_path:Bn.new_file!==iy?Bn.new_file:Bn.original_file,additions:Bn.additions,deletions:Bn.deletions}}));_a={prMetadata:{commits:Bn.num_of_commits,files:ts,lines:aa+oa},prFiles:ca,prAdditionalLines:aa,prDeletedLines:oa,baseBranch:Bn.base,request_source:"gitstream"};Ha.next=7;return Hg(_a);case 7:xa=Ha.sent;Ga=xa.numericValue;Hn(null,Ga);case 10:case"end":return Ha.stop()}}),_callee)})));return function estimatedReviewTime(Hn,zn){return Bn.apply(this,arguments)}}();var fy=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca;return _regeneratorRuntime().wrap((function _callee2$(_a){while(1)switch(_a.prev=_a.next){case 0:ni=Hn.gt,Ci=ni===void 0?0:ni,ts=Hn.lt,Ps=ts===void 0?0:ts;_a.prev=1;fg(ny.expertReviewer,[{gt:Ci,lt:Ps}]);_a.next=5;return Wg(Bn);case 5:aa=_a.sent;oa=aa.dataWithoutIssuer;if(!Object.keys(oa).length){zn(null,[])}ca=Jg(oa,Ci,Ps,"reviewer_score").slice(0,2);zn(null,ca);_a.next=16;break;case 12:_a.prev=12;_a.t0=_a["catch"](1);console.log("error:",_a.t0);zn(null,[]);case 16:case"end":return _a.stop()}}),_callee2,null,[[1,12]])})));return function parseExpertReviewer(Hn,zn,ni){return Bn.apply(this,arguments)}}();var Ty=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha,so,oo,Jo,tc;return _regeneratorRuntime().wrap((function _callee3$(dc){while(1)switch(dc.prev=dc.next){case 0:dc.prev=0;ts=Hn.gt,Ps=Hn.lt;dc.next=4;return Wg(Bn);case 4:aa=dc.sent;oa=aa.data;ca=aa.dataWithoutIssuer;_a=aa.isIssuerFiltered;if(!Object.keys(oa).length||!Object.keys(ca).length){zn(null,[])}xa=Jg(ca,ts,Ps,"reviewer_score").slice(0,2);Ga=Jg(oa,ts,Ps,"avg_activity_score").slice(0,2);Ha=Jg(oa,ts,Ps,"avg_blame_perc").slice(0,2);so=ey((ni=oa.explain)==null?void 0:ni.activity,Ga);oo=ty((Ci=oa.explain)==null?void 0:Ci.blame,Ha);Jo=Kg(xa,Ga,Ha,Yg(Hn),Bn.provider,_a&&!Object.keys(xa).length)+" "+sA(Array.from(new Set([].concat(Object.keys(so),Object.keys(oo)))),so,oo,Ga,Ha,Bn.provider)+" \n\n "+cg+" \n";tc="base64: "+Buffer.from(Jo).toString("base64");zn(null,tc);dc.next=23;break;case 19:dc.prev=19;dc.t0=dc["catch"](0);console.log("error:",dc.t0);zn("");case 23:case"end":return dc.stop()}}),_callee3,null,[[0,19]])})));return function parseExplainCodeExpertHandler(Hn,zn,ni){return Bn.apply(this,arguments)}}();var Gy=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(Bn,Hn,zn){var ni,Ci,ts,Ps;return _regeneratorRuntime().wrap((function _callee4$(aa){while(1)switch(aa.prev=aa.next){case 0:ni=Hn.gt,Ci=ni===void 0?0:ni,ts=Hn.lt,Ps=ts===void 0?0:ts;fg(ny.codeExperts,[{gt:Ci,lt:Ps}]);aa.next=4;return fy(Bn,{gt:Ci,lt:Ps},zn);case 4:case"end":return aa.stop()}}),_callee4)})));return function parseCodeExperts(Hn,zn,ni){return Bn.apply(this,arguments)}}();var Vy=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee5(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee5$(ni){while(1)switch(ni.prev=ni.next){case 0:fg(ny.explainExpertReviewer,[Hn]);ni.next=3;return Ty(Bn,Hn,zn);case 3:case"end":return ni.stop()}}),_callee5)})));return function parseExplainExpertReviewer(Hn,zn,ni){return Bn.apply(this,arguments)}}();var Hy=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee6(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee6$(ni){while(1)switch(ni.prev=ni.next){case 0:fg(ny.explainCodeExperts,[Hn]);ni.next=3;return Ty(Bn,Hn,zn);case 3:case"end":return ni.stop()}}),_callee6)})));return function parseExplainCodeExperts(Hn,zn,ni){return Bn.apply(this,arguments)}}();var Av={bugs:/\[(.) Reliability Rating/,security_hotspots:/\[(.) Security Hotspots/,vulnerabilities:/\[(.) Security Rating/,code_smells:/\[(.) Maintainability Rating/,duplications:/(\d+(\.\d+)?%) Duplication on New Code/,coverage:/(\d+(\.\d+)?%) Coverage on New Code/};var vv=function getDefaultSonar(){return{bugs:{count:null,rating:""},code_smells:{count:null,rating:""},vulnerabilities:{count:null,rating:""},security_hotspots:{count:null,rating:""},duplications:null,coverage:null}};var Ev=function parseSonarParser(Bn){fg(ry.sonarParser,[]);var Hn=Bn.comments.filter((function(Bn){return Bn.commenter==="sonarcloud"}));if(!Hn.length){return JSON.stringify(vv())}var zn=Object.keys(Av).reduce((function(Bn,zn){var ni;var Ci=Av[zn];var ts=Hn[0].content.match(Ci);if(zn.toString()==="duplications"||zn.toString()==="coverage"){var Ps;var aa=parseFloat(ts==null?void 0:ts[1].replace("%",""));return _extends({},Bn,(Ps={},Ps[zn]=aa||null,Ps))}if(zn.toString()==="security_hotspots"){var oa,ca;return _extends({},Bn,(ca={},ca[zn]={count:ts&&(ts==null||(oa=ts[1])==null?void 0:oa.toString())!=="0"?ts[1]:null,rating:""},ca))}return _extends({},Bn,(ni={},ni[zn]={count:ts?1:null,rating:ts?ts[1]:""},ni))}),vv());return JSON.stringify(zn)};var bv="jit-ci";var Cv=function parseJitReview(Bn){var Hn=wv();var zn=Bn.conversations;zn.forEach((function(Bn){var zn,ni,Ci,ts,Ps,aa,oa;var ca=Bn.content;var _a=ca.split("\n");var xa=(zn=_a[0])==null||(zn=zn.split("**")[2])==null?void 0:zn.trim();var Ga=(ni=_a[2])==null||(ni=ni.split("**")[2])==null?void 0:ni.trim();var Ha=(Ci=_a[4])==null||(Ci=Ci.split("**")[2])==null?void 0:Ci.trim();var so=(ts=_a[6])==null||(ts=ts.split("**")[2])==null?void 0:ts.trim();var oo=(Ps=(aa=_a[10])==null||(aa=aa.split("")[1])==null?void 0:aa.split("")[0])!=null?Ps:"";var Jo=oo.replace(//g,"").replace(/<\/b>/g,"");Hn.vulnerabilities.push({security_control:xa,type:Ga,description:Ha,severity:so,summary:Jo});Hn.metrics[so]=((oa=Hn.metrics[so])!=null?oa:0)+1}));return Hn};var Sv=function unifyReviews(Bn,Hn){return Bn.reduce((function(Bn,Hn){console.log({acc:Bn,review:Hn});return _extends({},Bn,{vulnerabilities:[].concat(Bn.vulnerabilities,Hn.vulnerabilities),metrics:Jo(Bn.metrics,Hn.metrics,(function(Bn,Hn){return(Bn||0)+(Hn||0)}))})}),_extends({},Hn))};var xv=function extractJitCommentsFromPR(Bn){return Bn.reviews.filter((function(Bn){var Hn=Bn.commenter;return Hn===bv}))};var wv=function initEmptyJitObject(){return{vulnerabilities:[],metrics:{HIGH:null,MEDIUM:null,LOW:null,INFO:null}}};var Tv=function parseJitComments(Bn){fg(ry.extractJitFindings,[]);var Hn=xv(Bn);var zn=wv();if(ts.isEmpty(Hn)){return JSON.stringify(zn)}var ni=Hn.map(Cv);return JSON.stringify(Sv(ni,zn))};var kv={extractJitFindings:Tv};var Iv=[".spec.",".test.","test_"];var Bv=["\\s*it\\(","\\s*test\\(","\\s*step\\(","\\s*def test_"];var Fv=Bv.map((function(Bn){return new RegExp(Bn)}));var Nv=function extractChangesFromDiff(Bn){var Hn=Bn.split("\n");var zn=[];var ni=[];Hn.forEach((function(Bn){if(Bn.startsWith("+")){var Hn=Bn.slice(1).trim();zn.push(Hn)}else if(Bn.startsWith("-")){var Ci=Bn.slice(1).trim();ni.push(Ci)}}));return{additions:zn,deletions:ni}};var Ov=function countTests(Bn){var Hn=Bn.diff.files.filter((function(Bn){var Hn=Bn.original_file,zn=Bn.new_file;return Iv.some((function(Bn){return Hn.includes(Bn)||zn.includes(Bn)}))}));return Hn.reduce((function(Bn,Hn){var zn=Hn.diff;var ni=Nv(zn),Ci=ni.additions,ts=ni.deletions;var Ps=Ci.filter((function(Bn){return Fv.some((function(Hn){return Hn.test(Bn)}))}));var aa=ts.filter((function(Bn){return Fv.some((function(Hn){return Hn.test(Bn)}))}));var oa=aa.length;var ca=Ps.length;return Bn+ca-(oa>ca?0:oa)}),0)};var Mv=function extractAdditionalFieldsValue(Bn){var Hn={};Object.entries(Bn).forEach((function(Bn){var zn=Bn[0],ni=Bn[1];Hn[zn]=ni}));return Hn};var OE=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha,oo,Jo,dc,Fc,Jc,Dp,kp,Qp,Up,qp,Vp,Jp,Wp,zp,Qf,Yf;return _regeneratorRuntime().wrap((function _callee$(Kf){while(1)switch(Kf.prev=Kf.next){case 0:ni=Hn.url,Ci=Hn.username,ts=Hn.apiToken,Ps=Hn.additionalFields;if(!(!ni||!Ci||!ts||!Bn)){Kf.next=4;break}zn(null,JSON.stringify({}));return Kf.abrupt("return");case 4:aa=Ci+":"+ts;oa="Basic "+Buffer.from(aa).toString("base64");ca={Authorization:oa,Accept:"application/json"};Kf.prev=7;Kf.next=10;return so.get(ni+"/rest/api/3/issue/"+Bn,{headers:ca});case 10:Jp=Kf.sent;Wp=Jp.data;zp=(_a=Wp==null?void 0:Wp.fields)!=null?_a:{};Qf=tc(zp,Ps);Yf=_extends({labels:(xa=zp.labels)!=null?xa:[],assignee:(Ga=(Ha=zp.assignee)==null?void 0:Ha.displayName)!=null?Ga:"",status:(oo=zp.name)!=null?oo:"",url:(Jo=Wp==null?void 0:Wp.self)!=null?Jo:"",priority:(dc=(Fc=zp.priority)==null?void 0:Fc.name)!=null?dc:"",creator:(Jc=(Dp=zp.creator)==null?void 0:Dp.displayName)!=null?Jc:"",issueType:(kp=(Qp=zp.issueType)==null?void 0:Qp.name)!=null?kp:"",project:(Up=(qp=zp.project)==null?void 0:qp.name)!=null?Up:"",summary:(Vp=zp.summary)!=null?Vp:""},Mv(Qf));zn(null,JSON.stringify(Yf));Kf.next=22;break;case 18:Kf.prev=18;Kf.t0=Kf["catch"](7);console.log("error while running getJiraTicketDetails filter",Kf.t0);zn(null,JSON.stringify({}));case 22:case"end":return Kf.stop()}}),_callee,null,[[7,18]])})));return function getJiraTicketDetails(Hn,zn,ni){return Bn.apply(this,arguments)}}();var iD={getJiraTicketDetails:OE};var eC,tC,rC,nC;var iC=function parseExtractSonarFindings(Bn){fg(ry.extractSonarFindings,[]);return Ev(Bn)};var sC=function parserMapToEnum(Bn,Hn){fg(ry.mapToEnum,[Bn,Hn]);var zn=Hn==null?void 0:Hn["enum"];if(zn&&Object.keys(zn).length){return zn[Bn]}};var aC=function parseFilterAllTests(Bn,Hn){var zn=new RegExp("[^a-zA-Z0-9]("+Hn.join("|")+")[^a-zA-Z0-9]");return Boolean(Bn.length)&&Bn.map((function(Bn){return zn.test(Bn||"")})).every((function(Bn){return Bn}))};var oC=function parseFilterAllFilePath(Bn,Hn){return Boolean(Bn.length)&&Bn.map((function(Bn){return Hn.some((function(Hn){return(Bn||"").includes(Hn)}))})).every((function(Bn){return Bn}))};var uC=function parseFilterAllExtensions(Bn,Hn){return Bn.length?oC(Bn.map((function(Bn){return Bn.split(".").pop()||""})),Hn):false};var cC=function getUniqueExtensions(Bn){fg(ry.extensions,[]);return Bn.map((function(Bn){return Bn.split(".").pop()})).filter((function(Bn,Hn,zn){return zn.indexOf(Bn)===Hn}))};var lC=function parseIsFormattingChange(Bn){try{fg(ry.isFormattingChange,[]);var Hn=Boolean(Bn.length)&&Bn.every((function(Bn){var Hn=Bn.new_content,zn=Bn.original_content,ni=Bn.original_file,Ci=Bn.new_file;var ts=Qh(Hn,Ci);var Ps=Qh(zn,ni);return ts===Ps}));return Hn}catch(Bn){return false}};var pC=function parseMatchDiffLines(Bn,Hn){fg(ry.matchDiffLines,[Hn]);var zn=Hn.regex,ni=Hn.ignoreWhiteSpaces;var Ci=new RegExp("^[+-]");var ts=new RegExp("^[+-]\\s*$");return!zn?[]:Bn.map((function(Bn){var Hn=Bn.diff;return Hn.split("\n").filter((function(Bn){return Ci.test(Bn)})).filter((function(Bn){return ni?!ts.test(Bn):true})).map((function(Bn){return ig(Bn,zn)}))})).flat(1)};var fC=function parseIsFirstCommit(Bn,Hn){fg(ry.isFirstCommit,[{author:Hn}]);return!_a(Bn,Hn,null)};var dC=function parseRankByGitBlame(Bn,Hn){fg(ry.rankByGitBlame,[Hn]);if(!Vg(Hn)){return[]}var zn=Hn.gt,ni=Hn.lt;var Ci=Pg(Bn),ts=Ci.blame;var Ps=Og(Object.values(Bn.git_to_provider_user),ts);var aa=jg(Ps,zn,ni);return Object.keys(aa).length?[].concat(Array.from(new Set(Object.keys(aa)))):[]};var hC=function parseRankByGitActivity(Bn,Hn){fg(ry.rankByGitActivity,[Hn]);var zn=Hn.gt,ni=Hn.lt,Ci=Hn.weeks;if(!zn&&!ni||!Ci){return[]}var ts=new Array(Ci+1).fill(0).map((function(Bn,Hn){return"week_"+Hn}));var Ps=Rg(Bn.git_activity,ts);var aa=Lg(Bn.git_activity,ts,Ps);var oa=Og(Object.keys(Bn.contributors),aa);var ca=Ng(oa,Bn.git_to_provider_user);var _a=jg(ca,zn,ni);return Object.keys(_a).length?[].concat(Array.from(new Set(Object.keys(_a)))):[]};var mC=function parseExplainRankByGitBlame(Bn,Hn){fg(ry.explainRankByGitBlame,[Hn]);if(!Vg(Hn)){return{}}var zn=dC(Bn,Hn);var ni=Ha(zn,(function(Hn){return Hn!==Bn.pr_author}));var Ci=ni.join(", ");var ts=!ni.length&&zn.length>0;var Ps=Ug(Bn);return"base64: "+Buffer.from(qg(Hn,Ci,Ps,Bn.provider,ts)).toString("base64")};var _C=(eC={},eC[ry.allDocs]=["requirements.txt"],eC);var gC=(tC={},tC[ry.allDocs]=["md","mkdown","txt","rst",".adoc"],tC[ry.allImages]=["svg","png","gif"],tC[ry.allTests]=["test","spec"],tC);var AC=_extends((rC={},rC[ry.allDocs]=function(Bn){fg(ry.allDocs,[]);return Boolean(Bn.length)&&Bn.every((function(Bn){return _C[ry.allDocs].every((function(Hn){return!(Bn.includes("/"+Hn)||Bn===Hn)}))}))&&uC(Bn,gC[ry.allDocs])},rC[ry.allImages]=function(Bn){fg(ry.allImages,[]);return uC(Bn,gC[ry.allImages])},rC[ry.allTests]=function(Bn){fg(ry.allTests,[]);return aC(Bn,gC[ry.allTests])},rC[ry.extensions]=cC,rC[ry.isFormattingChange]=lC,rC[ry.matchDiffLines]=pC,rC[ry.isFirstCommit]=fC,rC[ry.rankByGitBlame]=dC,rC[ry.rankByGitActivity]=hC,rC[ry.explainRankByGitBlame]=mC,rC[ry.sonarParser]=Ev,rC[ry.mapToEnum]=sC,rC[ry.extractSonarFindings]=iC,rC[ry.countTests]=Ov,rC[ny.estimatedReviewTime]=py,rC[ny.expertReviewer]=fy,rC[ny.explainExpertReviewer]=Vy,rC[ny.codeExperts]=Gy,rC[ny.explainCodeExperts]=Hy,rC),kv,iD);var yC=(nC={},nC[ny.estimatedReviewTime]=true,nC[ny.expertReviewer]=true,nC[ny.explainExpertReviewer]=true,nC[ny.codeExperts]=true,nC[ny.explainCodeExperts]=true,nC.getJiraTicketDetails=true,nC);var vC={SYNTAX_ERROR:"syntax error",RULE_FILE_NOT_FOUND:"Rule file not found",FAILED_TO_EXTRACT_ADMINS:"gitstream.cm file not found - failed to extract admins",SEND_RESULTS_TO_RESOLVER_FAILED:"Failed sending evaluated rules to the resolver.",SEND_RESULTS_TO_RESOLVER_SUCCEEDED:"Sending evaluated rules to the resolver succeeded",FAILED_TO_GET_CONTEXT:"Failed to get PR context.",FAILED_TO_GET_BLAME_CONTEXT:"Failed to get git blame context.",FAILED_TO_GET_ACTIVITY_CONTEXT:"Failed to get git activity context.",FAILED_PARSE_CM_FILE:"Failed while parsing CM file",MISSING_KEYWORD:"Missing `automations` keyword in *.cm",MALFORMED_EXPRESSION:"There are spaces between the currly braces { { and } }",FAILED_TO_PARSE_CM:"Failed to parse cm",FAILED_TO_GET_WATCHERS:"Failed to get watchers from rules files",GIT_COMMAND_FAILED:"Git command failed. reason:",INTERNAL_ERROR:"gitstream-rules-engine internal error",INVALID_CACHE:"Invalid cache",VALIDATOR_ERROR:"Validator error",FAILED_PARSE_RULES_PARSER_ERRORS:"Failed parse rules parser errors"};var EC={SEND_RESULTS_TO_RESOLVER_FAILED:50,FAILED_TO_GET_CONTEXT:40,FAILED_TO_GET_BLAME_CONTEXT:41,FAILED_TO_GET_ACTIVITY_CONTEXT:42,SYNTAX_ERROR:60,MISSING_KEYWORD:61,UNSUPPORTED_ACTION:62,UNSUPPORTED_ARGUMENT:63,MALFORMED_EXPRESSION:64,MISSING_REQUIRED_FIELDS:65,FAILED_TO_PARSE_CM:66,BAD_REVISION:67,INTERNAL_ERROR:68,RULE_FILE_NOT_FOUND:70,FAILED_TO_GET_WATCHERS:71,INVALID_CACHE:72,FAILED_PARSE_RULES_PARSER_ERRORS:73};var bC="filters";var DC={REPO:"repo",ORG:"org"};var CC=function withTryCatchFilter(Bn,Hn,zn){if(zn===void 0){zn=false}if(!zn){return function(){for(var zn=arguments.length,ni=new Array(zn),Ci=0;Ci0&&ni.map((function(Bn){return zn.test(Bn)})).every((function(Bn){return Bn}))};var IC=function parseExtractExtensions(Bn){return Bn.length&&Bn.map((function(Bn){return Bn.split(".").pop()})).filter((function(Bn,Hn,zn){return zn.indexOf(Bn)===Hn}))};var BC=function parseIsStringIncludes(Bn,Hn){return Hn.some((function(Hn){return Bn.includes(Hn)}))};var FC=function parseIsStringIncludesRegex(Bn,Hn){var zn=new RegExp(Hn);return zn.test(Bn)};var NC=function parseRegex(Bn,Hn){var zn=new RegExp(Hn);return Bn.length?Bn.map((function(Bn){return zn.test(Bn)})).every((function(Bn){return Bn})):false};var PC=function parseIsEveryInListRegex(Bn,Hn){var zn=new RegExp(Hn);return Bn.length?Bn.map((function(Bn){return zn.test(Bn)})).every((function(Bn){return Bn})):false};var OC=function parseIsEveryInList(Bn,Hn){return Bn.length?Bn.filter((function(Bn){return Hn.includes(Bn)})).every((function(Bn){return Bn})):false};var RC=function parseIsSomeInList(Bn,Hn){return Bn.length?Bn.filter((function(Bn){return Hn.includes(Bn)})).some((function(Bn){return Bn})):false};var LC=function parseIncludesRegex(Bn,Hn){var zn=new RegExp(Hn);return Bn.length?Bn.map((function(Bn){return zn.test(Bn)})).some((function(Bn){return Bn})):false};var QC=function parseIsSomeInListRegex(Bn,Hn){var zn=new RegExp(Hn);return Bn.length?Bn.map((function(Bn){return zn.test(Bn)})).some((function(Bn){return Bn})):false};var MC=function parseFilterRegex(Bn,Hn){var zn=new RegExp(Hn);return Bn.length?Bn.filter((function(Bn){return zn.test(Bn)})):false};var jC=function parseFilterListRegex(Bn,Hn){var zn=new RegExp(Hn);return Bn.length?Bn.filter((function(Bn){return zn.test(Bn)})):false};var UC=function parseFilterList(Bn,Hn){return Bn.length?Bn.filter((function(Bn){return Hn.includes(Bn)})):false};var GC=function minify(Bn){return Bn.replace(/\s+/g," ").replaceAll("'",'"').trim()};var qC=function allFormattingChange(Bn){try{var Hn=Bn.every((function(Bn){var Hn=Bn.new_content,zn=Bn.original_content,ni=Bn.original_file,Ci=Bn.new_file;var ts=xa.format(Hn,{semi:false,singleQuote:true,filepath:Ci});var Ps=xa.format(zn,{semi:false,singleQuote:true,filepath:ni});return GC(ts)===GC(Ps)}));return Hn}catch(Bn){return false}};var HC=function parseFilterFileDiffRegex(Bn,Hn){var zn=new RegExp(Hn,"m");return Bn.length?Bn.filter((function(Bn){var Hn=Bn.diff;return zn.test(Hn)})):false};var $C=function parseIsEveryLineInFileDiffRegex(Bn,Hn){var zn=new RegExp(Hn,"m");return Bn.length?Bn.map((function(Bn){var Hn=Bn.diff;return zn.test(Hn)})).every((function(Bn){return Bn})):false};var JC=function parseIsSomeLineInFileDiffRegex(Bn,Hn){var zn=new RegExp(Hn,"m");return Bn.length?Bn.map((function(Bn){var Hn=Bn.diff;return zn.test(Hn)})).some((function(Bn){return Bn})):false};var YC=function parseFilterAllExtensions(Bn,Hn){return Bn.length?wC(Bn.map((function(Bn){return Bn.split(".").pop()||""})),Hn):false};var WC;(function(Bn){Bn["allExtensions"]="allExtensions";Bn["includes"]="includes";Bn["allPassRegex"]="allPassRegex";Bn["allPathIncludes"]="allPathIncludes";Bn["filterRegex"]="filterRegex";Bn["includesRegex"]="includesRegex";Bn["true"]="true";Bn["allFormattingChange"]="allFormattingChange";Bn["filterList"]="filterList";Bn["filterListRegex"]="filterListRegex";Bn["isEveryInListRegex"]="isEveryInListRegex";Bn["isSomeInList"]="isSomeInList";Bn["isSomeInListRegex"]="isSomeInListRegex";Bn["isStringIncludes"]="isStringIncludes";Bn["isStringIncludesRegex"]="isStringIncludesRegex";Bn["isEveryInList"]="isEveryInList";Bn["extractExtensions"]="extractExtensions";Bn["isEveryExtension"]="isEveryExtension";Bn["isEveryExtensionRegex"]="isEveryExtensionRegex";Bn["filterFileDiffRegex"]="filterFileDiffRegex";Bn["isEveryLineInFileDiffRegex"]="isEveryLineInFileDiffRegex";Bn["isSomeLineInFileDiffRegex"]="isSomeLineInFileDiffRegex"})(WC||(WC={}));var KC=(xC={},xC[WC.filterList]=UC,xC[WC.filterListRegex]=jC,xC[WC.isEveryInListRegex]=PC,xC[WC.isSomeInList]=RC,xC[WC.isSomeInListRegex]=QC,xC[WC.isStringIncludes]=BC,xC[WC.isStringIncludesRegex]=FC,xC[WC.isEveryInList]=OC,xC[WC.extractExtensions]=IC,xC[WC.isEveryExtension]=TC,xC[WC.isEveryExtensionRegex]=kC,xC[WC["true"]]=function(){return true},xC[WC.filterFileDiffRegex]=HC,xC[WC.isEveryLineInFileDiffRegex]=$C,xC[WC.isSomeLineInFileDiffRegex]=JC,xC[WC.allExtensions]=YC,xC[WC.allPassRegex]=NC,xC[WC.allPathIncludes]=wC,xC[WC.filterRegex]=MC,xC[WC.includesRegex]=LC,xC[WC.allFormattingChange]=qC,xC);var zC;var XC;(function(Bn){Bn["created"]="created";Bn["edited"]="edited"})(XC||(XC={}));var ZC;(function(Bn){Bn["open"]="opened";Bn["reopen"]="reopen";Bn["closed"]="closed";Bn["synchronize"]="synchronize";Bn["assigned"]="assigned";Bn["converted_to_draft"]="converted_to_draft";Bn["labeled"]="labeled";Bn["unlabeled"]="unlabeled";Bn["ready_for_review"]="ready_for_review";Bn["review_request_removed"]="review_request_removed";Bn["review_requested"]="review_requested";Bn["unassigned"]="unassigned";Bn["edited"]="edited";Bn["custom_merge"]="merged"})(ZC||(ZC={}));var eS={push:"push",issues:"issues",installation:"installation",installation_repositories:"installation_repositories",pull_request:"pull_request",pull_request_review:"pull_request_review",check_run:"check_run",pull_request_review_comment:"pull_request_review_comment",issue_comment:"issue_comment",pull_request_review_thread:"pull_request_review_thread",workflow_run:"workflow_run"};var tS=(zC={},zC[eS.pull_request+"_"+ZC.open]="pr_created",zC[eS.pull_request+"_"+ZC.custom_merge]="merge",zC[eS.pull_request+"_"+ZC.synchronize]="commit",zC[eS.issue_comment+"_"+XC.created]="comment_added",zC[eS.issue_comment+"_"+XC.edited]="comment_edited",zC[eS.pull_request+"_"+ZC.labeled]="label_added",zC[eS.pull_request+"_"+ZC.unlabeled]="label_removed",zC[eS.pull_request+"_"+ZC.ready_for_review]="pr_ready_for_review",zC[eS.pull_request+"_"+ZC.closed]="pr_closed",zC[eS.pull_request+"_"+ZC.assigned]="pr_assigned",zC[eS.pull_request+"_"+ZC.reopen]="pr_reopen",zC);var rS=new Set([eS.pull_request+"_"+ZC.custom_merge]);var nS=function isANonTriggeringEvent(Bn){return rS.has(Bn)};var iS;(function(Bn){Bn["cbLeft"]="_GITSTREAM_CB_LEFT_";Bn["cbRight"]="_GITSTREAM_CB_RIGHT_";Bn["automations"]="automations";Bn["errors"]="errors";Bn["analytics"]="analytics";Bn["validatorErrors"]="validatorErrors"})(iS||(iS={}));var ew;(function(Bn){Bn["FiltersValidator"]="FiltersValidator";Bn["ActionsValidator"]="ActionsValidator";Bn["FileStructureValidator"]="FileStructureValidator";Bn["SavedWordsValidator"]="SavedWordsValidator";Bn["ContextVariableValidator"]="ContextVariableValidator"})(ew||(ew={}));var tw=function parseRegexString(Bn){if(!(Bn!=null&&Bn.startsWith("r/"))){return null}var Hn=ng(Bn);var zn=new RegExp(Hn);return zn};var rw=function isResourceExcluded(Bn,Hn,zn){var ni,Ci,ts,Ps;if(!Bn){return false}var aa=function matchPattern(Hn){var zn=tw(Hn);if(zn){return zn.test(Bn)}return Bn===Hn};var oa=zn.triggers;if(!oa){return false}var ca=(ni=(Ci=oa.include)==null?void 0:Ci[Hn])!=null?ni:[];var _a=(ts=(Ps=oa.exclude)==null?void 0:Ps[Hn])!=null?ts:[];var xa=_a==null?void 0:_a.some(aa);var Ga=ca.length>0&&!ca.some(aa);if(xa||Ga){return true}return false};var nw=function(){function RuleParser(Bn,Hn,zn,Ci,ts,aa,oa,_a){var xa=this;if(Ci===void 0){Ci=""}if(ts===void 0){ts={}}if(aa===void 0){aa=""}if(oa===void 0){oa=""}if(_a===void 0){_a=false}this.renderedRuleFile={};this.context={};this.lastParserResult={};this.errors={};this.validatorErrors={};this.webhookEvent="";this.webhookEvents={};this.externalPlugins={filters:{org:{},repo:{}}};this.validateAutomationNames=function(Bn){try{(new ni.AutomationNamesValidator).validate({yamlFile:Bn})}catch(Bn){var Hn;eg({errorName:vC.SYNTAX_ERROR,error:Bn},xa.isDebug);xa.errors=_extends({},xa.errors,(Hn={},Hn[EC.SYNTAX_ERROR]=vC.SYNTAX_ERROR,Hn))}};this.isDebug=zn;this.env=new ca.Environment(new ca.FileSystemLoader(__dirname),{autoescape:false});this.webhookEvent=Ci;this.webhookEvents=ts;this.isPlayground=_a;if(!this.isPlayground){this.externalPlugins=SC(aa,oa)}var Ga=[].concat(Object.keys(this.externalPlugins.filters.org),Object.keys(this.externalPlugins.filters.repo));var Ha=[].concat(ni.validatorsConstants.JINJA_FILTERS,Object.keys(ni.validatorsConstants.VALID_FILTERS));var so=Ps.intersection(Ga,Ha);if(so.length){throw new Kf("Overrding native filters is not allowed","Overrding native filters is not allowed, the user filter"+(so.length>1?"s":"")+" "+so.join(", ")+" conflicts")}var oo=_extends({},Ig,AC,KC);var Jo=_extends({},this.externalPlugins.filters.org,this.externalPlugins.filters.repo);Object.keys(oo).forEach((function(Bn){xa.env.addFilter(Bn,oo[Bn],yC[Bn])}));Object.keys(Jo).forEach((function(Bn){var Hn;var zn=Jo[Bn]instanceof Function?Bn.toLowerCase().includes("async"):(Hn=Jo[Bn].async)!=null?Hn:false;var ni=Jo[Bn]instanceof Function?Jo[Bn]:Jo[Bn].filter;xa.env.addFilter(Bn,CC(ni,Bn,zn),zn)}));this.context=Hn;this.ruleFileRawContent=Bn;eg({context:JSON.stringify(this.context,null,2),ruleFile:Bn},this.isDebug)}var Bn=RuleParser.prototype;Bn.render=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn){var Hn=this;var zn,ni,ts;return _regeneratorRuntime().wrap((function _callee$(Ps){while(1)switch(Ps.prev=Ps.next){case 0:if(Bn===void 0){Bn=_extends({},this.context,this.renderedRuleFile)}zn=3;ni=Bn;ts=_regeneratorRuntime().mark((function _loop(){var Bn;return _regeneratorRuntime().wrap((function _loop$(ts){while(1)switch(ts.prev=ts.next){case 0:Bn=Hn.ruleFileRawContent;ts.next=3;return new Promise((function(zn,ts){return Hn.env.renderString(Bn,ni,(function(Bn,ni){if(Bn){var Ps;eg({error:zp.FAILED_RENDER_STRING,err:Bn},Hn.isDebug);Hn.errors=_extends({},Hn.errors,(Ps={},Ps[Qf.FAILED_RENDER_STRING]=Bn.message,Ps));return ts(Bn)}try{Hn.renderedRuleFile=Ci.load(ni)}catch(Bn){var aa;eg({errorName:zp.FAILED_YAML_LOAD,error:Bn},Hn.isDebug);Hn.errors=_extends({},Hn.errors,(aa={},aa[Qf.FAILED_YAML_LOAD]=zp.FAILED_YAML_LOAD,aa))}return zn(Hn)}))}));case 3:zn-=1;ni=Xf(_extends({},Hn.context,Hn.renderedRuleFile));case 5:case"end":return ts.stop()}}),_loop)}));case 4:if(!zn){Ps.next=8;break}return Ps.delegateYield(ts(),"t0",6);case 6:Ps.next=4;break;case 8:case"end":return Ps.stop()}}),_callee,this)})));function render(Hn){return Bn.apply(this,arguments)}return render}();Bn.validateRun=function validateRun(Bn){if(!Bn){return Bn}return Bn.map((function(Bn){if(!Bn.args){return Bn}var Hn=Object.keys(Bn.args).reduce((function(Hn,zn){var ni;var Ci=Bn.args[zn];return _extends({},Hn,(ni={},ni[zn]=Ci&&Z_.includes(zn)&&typeof Ci==="string"?Ad(Ci).split(","):Ad(Bn.args[zn]),ni))}),{});return _extends({},Bn,{args:Hn})}))};Bn.calculateTriggersBasedOnMultipleWebhooks=function calculateTriggersBasedOnMultipleWebhooks(Bn,Hn,zn){var ni,Ci=this,ts;var Ps=((ni=this.renderedRuleFile.on)==null?void 0:ni.some((function(Bn){return Object.keys(Ci.webhookEvents).some((function(Hn){return tS[Hn]===Bn}))})))&&!zn;var aa;if((ts=this.renderedRuleFile[Bn][Hn])!=null&&ts.on){aa=Object.keys(this.webhookEvents).some((function(zn){return Ci.renderedRuleFile[Bn][Hn].on.includes(tS[zn])}))}return{isGlobal:Ps,automationTrigger:aa&&!zn}};Bn.shouldBeSkippedOnGlobalTrigger=function shouldBeSkippedOnGlobalTrigger(){var Bn,Hn,zn,ni;var Ci=this.renderedRuleFile.triggers;var ts=Ps.uniq([].concat(Object.keys(this.webhookEvents),[this.webhookEvent]).map((function(Bn){return tS[Bn]})));if(!Ci){return false}if(Ci.on&&!Ci.on.some((function(Bn){return ts.includes(Bn)}))){return true}return rw((Bn=(Hn=this.context)==null||(Hn=Hn.branch)==null?void 0:Hn.name)!=null?Bn:"","branch",this.renderedRuleFile)||rw((zn=(ni=this.context)==null||(ni=ni.repo)==null?void 0:ni.name)!=null?zn:"","repository",this.renderedRuleFile)};Bn.evaluateTrigger=function evaluateTrigger(Bn,Hn){var zn=this;var ni;var Ci;var ts=this.shouldBeSkippedOnGlobalTrigger();if(Object.keys(this.webhookEvents).length){var Ps=this.calculateTriggersBasedOnMultipleWebhooks(Bn,Hn,ts);ni=Ps.isGlobal;Ci=Ps.automationTrigger}else{var aa,ca;ni=((aa=this.renderedRuleFile.on)==null?void 0:aa.some((function(Bn){return tS[zn.webhookEvent]===Bn})))&&!ts;Ci=((ca=this.renderedRuleFile[Bn][Hn].on)==null?void 0:ca.includes(tS[this.webhookEvent]))&&!ts}var _a=!ts&&oa(Ci)&&oa(ni);var xa=Ci||ni||_a;return{noTriggersAtAll:_a,triggersResult:xa}};Bn.isPassed=function isPassed(Bn,Hn,zn){var ni=Object.keys(this.webhookEvents);if(!Hn&&ni.length&&ni.every(nS)){return false}return Bn&&zn};Bn.combineMetadataWithRulesResult=function combineMetadataWithRulesResult(Bn){var Hn=this;if(!this.renderedRuleFile[Bn]){return{}}return Object.keys(this.renderedRuleFile[Bn]).reduce((function(zn,ni){var Ci,ts;var Ps=Hn.renderedRuleFile[Bn][ni]["if"].map((function(Bn){return{passed:Bn}}));var aa=Ps.map((function(Bn){var Hn=Bn.passed;return Hn})).every((function(Bn){return typeof Bn==="object"?!!Object.keys(Bn||{}).length:!!Bn}));var oa=Hn.evaluateTrigger(Bn,ni),ca=oa.noTriggersAtAll,_a=oa.triggersResult;var xa=!ca;return _extends({},zn,(ts={},ts[ni]={if:Ps,run:Hn.validateRun(Hn.renderedRuleFile[Bn][ni].run),passed:Hn.isPassed(aa,xa,_a),isManagedByTriggers:xa,isTriggered:xa?_a:!((Ci=Hn.context)!=null&&(Ci=Ci.pr)!=null&&Ci.draft)},ts))}),{})};Bn.combineMetadataWithResult=function combineMetadataWithResult(){var Bn;this.lastParserResult=(Bn={},Bn[iS.errors]=_extends({},Object.keys(this.errors).length&&this.errors),Bn[iS.validatorErrors]=_extends({},Object.keys(this.validatorErrors).length&&this.validatorErrors),Bn[iS.automations]=_extends({},this.combineMetadataWithRulesResult(iS.automations)),Bn[iS.analytics]=_extends({},Object.keys(pg.filters).length&&pg.filters),Bn);return this.lastParserResult};Bn.clearParserResults=function clearParserResults(){this.renderedRuleFile={};this.ruleFileRawContent="";this.lastParserResult={}};Bn.attachAdditionalArgs=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(){var Bn,Hn,zn,Ci,ts,Ps,oa,ca;return _regeneratorRuntime().wrap((function _callee2$(_a){while(1)switch(_a.prev=_a.next){case 0:Bn=aa(this.lastParserResult);Hn=_extends({},Bn.automations);zn=0,Ci=Object.keys(Hn);case 3:if(!(zn "+ow(zn)};var lT=function GIT_CHECKOUT(Bn){return"git checkout "+ow(Bn)};var pT=function LS_FILES(Bn){return"git ls-files "+ow(Bn)};var fT=function REV_LIST_COUNT(Bn){return"git rev-list --count HEAD ^"+ow(Bn)};var _T=function SHORTLOG(Bn){return"git shortlog "+ow(Bn)+" -s -n -e"};var gT=function GIT_AUTHOR(Bn){var Hn=Bn.refBranch,zn=Bn.baseBranch,ni=Bn.format,Ci=Bn.mergeCommitSha;return Ci?"git show -m "+Ci+" --format="+ni+" | tail -1":"git log "+ow(zn)+".."+ow(Hn)+" --format="+ni+" | tail -1"};var AT=function DIFF(Bn){var Hn=Bn.baseBranch,zn=Bn.refBranch,ni=Bn.file,Ci=Bn.mergeCommitSha;return Ci?"git show -m --format= "+Ci+" -- "+ow(ni):"git diff "+ow(Hn)+"..."+ow(zn)+" -- "+ow(ni)};var yT="./code";var ET={cwd:yT};var CT=function executeGitCommand(Bn,Hn){if(Hn===void 0){Hn=Ww.DEFAULT}xw("Execute: "+Bn);try{var zn="cd "+Hn+" && "+Bn;var ni=Ga.execSync(zn,_extends({},ET,{maxBuffer:500*1024*1024,stdio:"pipe"})).toString();return ni}catch(Bn){if(((Bn==null?void 0:Bn.toString())||"").includes(Kw.BAD_REVISION)){console.error(vC.GIT_COMMAND_FAILED+" "+((Bn==null?void 0:Bn.message)||"unknown error"));Hw(vC.GIT_COMMAND_FAILED+" "+(Bn.message||"unknown error"),EC.BAD_REVISION)}throw Bn}};var wT=function getCheckoutCommit(Bn,Hn){try{var zn=CT(rT({refBranch:Bn,baseBranch:Hn}));return zn.trim()||Hn}catch(Bn){return Hn}};var kT=function getContent(Bn,Hn){try{if(Hn===gw){return""}var zn=CT(nT({branch:Bn,file:Hn}));return zn}catch(Bn){return""}};var BT=function getDiff(Bn,Hn,zn,ni){if(ni===void 0){ni=""}try{var Ci;var ts=zn==null||(Ci=zn.config)==null||(Ci=Ci.ignore_files)==null||(Ci=Ci.map((function(Bn){return JSON.stringify(":(exclude)"+Bn)})))==null?void 0:Ci.join(" ");var Ps=iT({baseBranch:Bn,refBranch:Hn,ignoreFiles:ts||"",mergeCommitSha:ni});var aa=CT(Ps);xw({diff:aa,logs:CT(sT),currBranch:CT(aT)});return{diff:aa,diffCommand:Ps}}catch(Bn){console.log("error getting diff: "+Bn);return{}}};var NT=function readRemoteFile(Bn,Hn,zn){if(zn===void 0){zn=Ww.DEFAULT}try{var ni=jw();ni?CT(uT):CT(oT);if(zn===Ww.DEFAULT){CT(cT({branch:Hn,file:Bn}))}return ni?dc.readFileSync(ET.cwd+"/"+zn+"/"+Bn,"utf8"):dc.readFileSync(yT+"/"+zn+"/"+Bn,"utf8")}catch(Hn){if(jw()){console.error("Error in reading file "+ET.cwd+"/"+zn+"/"+Bn+".",Hn)}return""}};var PT=function getCMFilesList(Bn,Hn){CT(lT(Bn));var zn=(Hn==null?void 0:Hn.toLowerCase())===vw?CT(pT("*.cm")):CT(pT(".cm/*.cm"));CT(lT("-"));return zn.split("\n").filter(Boolean)};var QT=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn){var ni,Ci,ts,Ps,aa;return _regeneratorRuntime().wrap((function _callee$(oa){while(1)switch(oa.prev=oa.next){case 0:ni={orgRulesToInclude:[],orgRulesToExclude:[]};Ci=_regeneratorRuntime().mark((function _loop(){var Ci,aa;var oa,ca,_a,xa,Ga;return _regeneratorRuntime().wrap((function _loop$(Ha){while(1)switch(Ha.prev=Ha.next){case 0:oa=Ps[ts];Ha.next=3;return Zw(zn,Bn[oa],oa);case 3:ca=Ha.sent;_a=(ca==null||(Ci=ca.config)==null?void 0:Ci.include_repositories)||[];xa=(ca==null||(aa=ca.config)==null?void 0:aa.ignore_repositories)||[];Ha.prev=6;if(_a.length){Ga=_a.some((function(Bn){if(ig(Hn,Bn)){ni.orgRulesToInclude.push(oa);return true}return false}));if(!Ga){ni.orgRulesToExclude.push(oa)}}xa.forEach((function(Bn){if(ig(Hn,Bn)){ni.orgRulesToExclude.push(oa)}}));Ha.next=15;break;case 11:Ha.prev=11;Ha.t0=Ha["catch"](6);Ha.next=15;return Hw(Ha.t0.message,EC.SYNTAX_ERROR,zn,oa);case 15:case"end":return Ha.stop()}}),_loop,null,[[6,11]])}));ts=0,Ps=Object.keys(Bn);case 3:if(!(ts0)){Ci.next=4;break}ni=zn.reduce((function(Hn,zn){var ni;return _extends({},Hn,(ni={},ni[zn]=NT(zn,Bn),ni))}),{});return Ci.abrupt("return",ni);case 4:return Ci.abrupt("return",{});case 5:case"end":return Ci.stop()}}),_callee2)})));return function getRuleFiles(Hn,zn){return Bn.apply(this,arguments)}}();var KT=function getCommitsNumberOnBranch(Bn){return Number(CT(fT(Bn)).trim())};var XT=function getContributorsStatistics(Bn){var Hn=CT(_T(Bn));return Hn.split("\n").reduce((function(Bn,Hn){var zn;var ni=Hn.trim().split("\t"),Ci=ni[0],ts=ni[1];return _extends({},Bn,ts&&(zn={},zn[ts]=parseInt(Ci),zn))}),{})};var ZT=function getAuthorName(Bn,Hn,zn){try{var ni=CT(gT({refBranch:Hn,baseBranch:Bn,format:"%an",mergeCommitSha:zn}));var Ci=CT(gT({refBranch:Hn,baseBranch:Bn,format:"%ae",mergeCommitSha:zn}));var ts=(ni==null?void 0:ni.trim())+" <"+(Ci==null?void 0:Ci.trim())+">";xw({fullAuthorName:ts,currBranch:CT(aT)});return{fullAuthorName:ts,authorName:ni,authorEmail:Ci}}catch(Bn){console.log("error getting branch author name: "+Bn);return{}}};var yB=function isCmChanged(Bn,Hn,zn,ni){CT(oT);if((zn==null?void 0:zn.toLowerCase())===vw){return Boolean(CT(AT({baseBranch:Hn,refBranch:Bn,file:"*.cm",mergeCommitSha:ni})))}return Boolean(CT(AT({baseBranch:Hn,refBranch:Bn,file:".cm/*.cm",mergeCommitSha:ni})))};var BB=function hasNonRuleFilesChanges(Bn,Hn,zn,ni){CT(oT);if((zn==null?void 0:zn.toLowerCase())===vw){return Boolean(CT(AT({baseBranch:Hn,refBranch:Bn,file:":!*.cm",mergeCommitSha:ni})))}return Boolean(CT(AT({baseBranch:Hn,refBranch:Bn,file:":!.cm/*.cm",mergeCommitSha:ni})))};var rF=function getPrConflicsCountPerFile(Bn,Hn){try{var zn=CT(eT({targetBranch:Bn,refBranch:Hn}));xw({conflicts:zn,rawCommand:eT({targetBranch:Bn,refBranch:Hn})});return(zn==null?void 0:zn.split("\n").filter(Boolean).length)||0}catch(Bn){xw("error getting pr conflicts: : "+Bn);return 0}};var eQ=function getCommitMessages(Bn,Hn,zn){return CT(zn?"git show -m "+zn+" --format=%B --no-patch":"git log "+ow(Bn)+".."+ow(Hn)+" --format=%B").split("\n").filter((function(Bn){return Bn.trim()!==""}))};var tQ=function saveResultsInCache(Bn){try{dc.writeFileSync(yT+"/cache.json",JSON.stringify(Bn))}catch(Bn){console.log("error saving cache",Bn)}};var rQ=function loadCacheResults(){try{var Bn=dc.readFileSync(yT+"/cache.json").toString();return JSON.parse(Bn)}catch(Bn){console.warn("error loading from cache",Bn);return{}}};var nQ=function buildPrFiles(Bn,Hn){var zn=Hn.reduce((function(Hn,zn){var ni,Ci,ts;if(zn===gw){return Hn}return _extends({},Hn,(ts={},ts[zn]=_extends({},{blame:((ni=Bn.ds_blame)==null?void 0:ni[zn])||""},{activity:((Ci=Bn.ds_activity)==null?void 0:Ci[zn])||""}),ts))}),{});return Object.keys(zn).reduce((function(Bn,Hn){var ni;if(!Object.keys(zn[Hn]).length){return Bn}return _extends({},Bn,(ni={},ni[Hn]=zn[Hn],ni))}),{})};var iQ=function getExpertReviewer(Bn,Hn,zn){var ni=zn.owner,Ci=zn.pullRequestNumber,ts=zn.branch,Ps=zn.triggeredBy;var aa={org:ni,repo:zn.repo,pullRequestNumber:Ci,branch:ts,triggeredBy:Ps};var oa=nQ(Bn,Hn);return{merge_dict:Bn.git_to_provider_user,pr_files:oa,context:aa}};var sQ=function generatePrUrl(Bn,Hn){var zn;var ni=Hn.owner,Ci=Hn.repo,ts=Hn.pullRequestNumber;return((zn=Bn.repo)==null?void 0:zn.provider)===yw.GITHUB?yw.GITHUB+".com/"+ni+"/"+Ci+"/pull/"+ts:yw.GITLAB+".com/"+ni+"/"+Ci+"/-/merge_requests/"+ts};var aQ="action_filter";var oQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa;return _regeneratorRuntime().wrap((function _callee$(ca){while(1)switch(ca.prev=ca.next){case 0:ca.prev=0;if(Bn.analytics_url){ca.next=3;break}return ca.abrupt("return");case 3:oa={userId:((Ci=ni.repo)==null?void 0:Ci.provider)+"-"+((ts=ni.repo)==null?void 0:ts.pr_author),event:aQ,properties:_extends({filter_name:Hn},zn,{repo:Bn.repo,author:(Ps=ni.repo)==null?void 0:Ps.pr_author,git_org_name:Bn.owner,git_provider:(aa=ni.repo)==null?void 0:aa.provider,pr_url:sQ(ni,Bn),is_org_level:Bn.hasCmRepo,trigger_id:Bn.trigger_id})};ca.next=6;return so({method:"post",url:Bn.analytics_url,data:_extends({},oa,{type:"onCMFilterUse"}),headers:{"Content-type":"application/json"}});case 6:ca.next=13;break;case 8:ca.prev=8;ca.t0=ca["catch"](0);if(!(ca.t0 instanceof Error)){ca.next=13;break}ca.next=13;return ww("warn","Unable to call segment for pr "+(Bn==null?void 0:Bn.owner)+"/"+(Bn==null?void 0:Bn.repo)+"/"+(Bn==null?void 0:Bn.pullRequestNumber),Bn,{error:ca.t0==null?void 0:ca.t0.message},true);case 13:case"end":return ca.stop()}}),_callee,null,[[0,8]])})));return function sendSegmentEvent(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}();var uQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn){var ni;return _regeneratorRuntime().wrap((function _callee$(Ci){while(1)switch(Ci.prev=Ci.next){case 0:ni=Object.keys(Bn||{}).map((function(ni){return oQ(Hn,ni,Bn[ni],zn)}));Ci.next=3;return Promise.all(ni);case 3:case"end":return Ci.stop()}}),_callee)})));return function filterAnalyticsHandler(Hn,zn,ni){return Bn.apply(this,arguments)}}();var lQ=function fromBase64String(Bn){return Buffer.from(Bn,"base64").toString("utf-8")};var pQ=function toBase64String(Bn){return Buffer.from(Bn).toString("base64")};var fQ=function decodeBase64(Bn){if(Bn.match(/^base64:*/g)){var Hn=Bn.split("base64:")[1];return lQ(Hn)}return Bn};var dQ=function convertRuleFileToStringSafe(Bn){var Hn={"pr.description":"pr.description | nl2br | dump | safe"};return Object.keys(Hn).reduce((function(Bn,zn){return Bn.replaceAll(zn,Hn[zn])}),Bn)};var hQ=function convertPRContextFromBase64(Bn){var Hn,zn,ni,Ci,ts,Ps;return _extends({},Bn,{checks:(Hn=Bn.checks)==null?void 0:Hn.map((function(Bn){return _extends({},Bn,{name:lQ(Bn.name)})})),description:lQ(Bn.description),general_comments:(zn=Bn.general_comments)==null?void 0:zn.map((function(Bn){return _extends({},Bn,{content:lQ(Bn.content)})})),line_comments:(ni=Bn.line_comments)==null?void 0:ni.map((function(Bn){return _extends({},Bn,{content:lQ(Bn.content)})})),comments:(Ci=Bn.comments)==null?void 0:Ci.map((function(Bn){return _extends({},Bn,{content:lQ(Bn.content)})})),reviews:(ts=Bn.reviews)==null?void 0:ts.map((function(Bn){var Hn;return _extends({},Bn,{content:lQ(Bn.content),conversations:(Hn=Bn.conversations)==null?void 0:Hn.map((function(Bn){return _extends({},Bn,{content:lQ(Bn.content)})}))})})),conversations:(Ps=Bn.conversations)==null?void 0:Ps.map((function(Bn){return _extends({},Bn,{content:lQ(Bn.content)})}))})};var mQ=function replaceBranchUpstream(Bn){if(Bn===void 0){Bn=""}return Bn.replace(/^upstream\//,"")};var _Q=function GIT_BLAME(Bn){var Hn=Bn.branch,zn=Bn.file;return"git blame "+ow(Hn)+" --line-porcelain -- "+ow(zn)};var gQ="| grep '^author-mail\\|^author ' | sed '$!N;s/\\n/ /'";var AQ="| sed -n '/^author /,/^author-mail /p'";var yQ=function COMMITS_DATE_BY_AUTHOR(Bn){var Hn=Bn.branch,zn=Bn.author;return"git log "+ow(Hn)+" --author="+ow(zn)+" --format='%as' | sort | uniq"};var vQ=function GIT_ACTIVITY(Bn){var Hn=Bn.branch,zn=Bn.file,ni=Bn.since;return"git log --no-merges "+ow(Hn)+" --since='"+ni+"' --pretty=tformat:'%an <%ae>,%ad' --numstat -- "+ow(zn)};var EQ=function FIRST_COMMIT(Bn){var Hn=Bn.branch;return"git rev-list --max-parents=0 "+ow(Hn)+' --format="%cs"'};var bQ=function groupByWeek(Bn){var Hn=Bn.reduce((function(Bn,Hn,zn){var ni=zn>0&&Bn.find((function(Bn){var zn=Bn.git_user,ni=Bn.week;return zn===Hn.git_user&&ni===Hn.week}));if(ni){ni.changes+=Hn.changes;ni.week=Hn.week}else{Bn.push({git_user:Hn.git_user,week:Hn.week,changes:Hn.changes})}return Bn}),[]);return Hn.reduce((function(Bn,Hn){var zn;var ni=Hn.git_user,Ci=Hn.week,ts=Hn.changes;Bn[ni]=Bn[ni]||{};Bn[ni]=_extends({},Bn[ni],(zn={},zn["week_"+Ci]=ts,zn));return _extends({},Bn)}),{})};var DQ=function calculateLinesPercentage(Bn,Hn){return Bn&&Hn?Bn>=Hn?100:Bn/Hn*100:0};var CQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa;return _regeneratorRuntime().wrap((function _callee$(ca){while(1)switch(ca.prev=ca.next){case 0:if(Bn){ca.next=6;break}ni=zn.owner,Ci=zn.repo,ts=zn.pullRequestNumber;xw("Couldn't find git dates for author: "+Hn.branch.author+", base branch: "+Hn.branch.base+", head branch: "+Hn.branch.name);ca.next=5;return ww("info",Yw.NO_DATA_FROM_GIT+" "+ni+"/"+Ci+"/"+ts,zn,{author:Hn.branch.author,baseBranch:Hn.branch.base,headBranch:Hn.branch.name},mw);case 5:return ca.abrupt("return",0);case 6:Ps=new Date;aa=new Date(Bn);oa=aa.getTime()-Ps.getTime();return ca.abrupt("return",Math.abs(Math.ceil(oa/(1e3*60*60*24))));case 10:case"end":return ca.stop()}}),_callee)})));return function formatDateToDays(Hn,zn,ni){return Bn.apply(this,arguments)}}();var SQ=function getAllAuthorsOfFile(Bn,Hn){try{var zn;var ni=_Q({file:Bn,branch:Hn})+" "+gQ;var Ci=CT(ni);var ts=(zn=[].concat(Array.from(new Set(Ci==null?void 0:Ci.replaceAll("author ","").replaceAll("author-mail ","").split("\n")))))==null?void 0:zn.filter(Boolean);return ts}catch(Hn){console.log(Jw.GETTING_ALL_AUTHORS+" "+Bn+". "+Hn);return[]}};var xQ=function getAuthorLines(Bn,Hn,zn){try{var ni;var Ci="author "+(Hn==null||(ni=Hn.substring(0,Hn.indexOf("<")-1))==null?void 0:ni.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))+"\\nauthor-mail "+(Hn==null?void 0:Hn.substring(Hn.indexOf("<"),Hn.indexOf(">")+1).replace("+","\\+"));var ts=new RegExp(Ci,"g");xw("formatted author: "+Ci+". matches: "+(Bn.match(ts)||[]).length);return(Bn.match(ts)||[]).length}catch(Bn){console.log(Jw.GETTING_AUTHOR_LINES+" "+zn+". "+Bn);return 0}};var wQ=function getGitBlameString(Bn,Hn){try{var zn=_Q({branch:Hn,file:Bn})+" "+AQ;var ni=CT(zn);return ni}catch(Hn){console.log(Jw.GETTING_GIT_BLAME+" "+Bn+". "+Hn);return"0"}};var TQ=function calculateStatisticsForBlame(Bn,Hn,zn,ni){var Ci=xQ(Bn,Hn,zn);var ts=BQ(zn,ni);xw("calculateStatisticsForBlame: "+Ci+", "+ts);return{authorLines:Ci,allLinesCount:ts}};var kQ=function readRemoteFileAndSplit(Bn,Hn){var zn;return(zn=NT(Bn,Hn))==null?void 0:zn.split(/\r\n|\r|\n/)};var IQ=function isLastRowEmpty(Bn,Hn){var zn=kQ(Bn,Hn);xw("all rows: "+zn.length+". isEmpty: "+((zn==null?void 0:zn[(zn==null?void 0:zn.length)-1])===""));return(zn==null?void 0:zn[(zn==null?void 0:zn.length)-1])===""};var BQ=function getCodeLinesCount(Bn,Hn){var zn,ni;return IQ(Bn,Hn)?((zn=kQ(Bn,Hn))==null?void 0:zn.length)-1:(ni=kQ(Bn,Hn))==null?void 0:ni.length};var FQ=function splitDsAndBlameObjects(Bn){var Hn=aa(Bn);var zn=Object.keys(Hn).reduce((function(Bn,zn){var ni;return _extends({},Bn,(ni={},ni[zn]=Hn[zn].dsBlame,ni))}),{});Object.keys(Hn).forEach((function(Bn){if(Hn[Bn].dsBlame){delete Hn[Bn].dsBlame}}));return{formattedBlame:Hn,dsBlame:zn}};var NQ=function splitDsAndActivity(Bn){var Hn=aa(Bn);var zn=Object.keys(Hn).reduce((function(Bn,zn){var ni;return _extends({},Bn,(ni={},ni[zn]=Hn[zn].dsActivity,ni))}),{});Object.keys(Hn).forEach((function(Bn){if(Hn[Bn].dsActivity){delete Hn[Bn].dsActivity}}));return{formattedActivity:Hn,dsActivity:zn}};var PQ=function commitsDateByAuthor(Bn,Hn){var zn;return(zn=CT(yQ({author:Bn,branch:Hn})))==null||(zn=zn.split("\n"))==null?void 0:zn.filter(Boolean)};var OQ=function buildTempActivity(Bn){var Hn=[];for(var zn=0;zn1&&ni.prevResults.length<=zn.length){ni={author:Hn,prevResults:zn}}}))}}catch(Bn){xw("Failed getting the right author. Error: "+Bn)}return ni};var jQ=function matchByEmail(Bn,Hn,zn){var ni,Ci;if(Bn===void 0){Bn=""}if(Hn===void 0){Hn=""}if(zn===void 0){zn=""}if(!Bn||typeof Bn!=="string"){return null}var ts=Bn.includes("@")?Bn.split("@")[0]:Bn;ts=(ni=ts)!=null&&ni.includes("+")?ts.split("+")[1]:ts;ts=ts.replace(/\./g,"");return ts.includes(zn)||ts.includes(Hn)||((Ci=Hn)==null?void 0:Ci.includes(ts))||zn===ts};var UQ=function matchByName(Bn,Hn){if(Bn===void 0){Bn=""}if(Hn===void 0){Hn=""}if(!Hn||!Bn||typeof Bn!=="string"||typeof Hn!=="string"){return false}var zn=Hn.trim().toLowerCase();var ni=Bn.trim().toLowerCase();return ni==null?void 0:ni.includes(zn)};var GQ=function formatProviderContributors(Bn){return Bn.map((function(Bn){var Hn=Bn.login,zn=Bn.name;return{login:Hn,name:zn}})).filter((function(Bn){var Hn=Bn.login,zn=Bn.name;return Hn||zn}))};var qQ=function formatGitContributors(Bn){return Object.keys(Bn).map((function(Hn){var zn=Hn.split(" ");return{email:zn.pop(),login:zn.join(""),name:zn[0],lastName:zn[1],fullName:zn.join(" "),reversedName:(zn[1]||"")+zn[0],contributor:Hn,contributions:Bn[Hn]}}))};var VQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn){var zn,ni,Ci,ts,Ps;return _regeneratorRuntime().wrap((function _callee$(aa){while(1)switch(aa.prev=aa.next){case 0:aa.prev=0;ni=(Bn==null||(zn=Bn.config)==null||(zn=zn.user_mapping)==null?void 0:zn.reduce((function(Bn,Hn){var zn,ni;var Ci=Object.keys(Hn)[0];var ts=(zn=Hn[Ci])!=null?zn:Ci;return _extends({},Bn,(ni={},ni[Ci]=ts,ni))}),{}))||{};return aa.abrupt("return",ni);case 5:aa.prev=5;aa.t0=aa["catch"](0);Ci=Hn.owner,ts=Hn.repo,Ps=Hn.pullRequestNumber;aa.next=10;return ww("info","Failed to parse user_mapping for pr "+Ci+"/"+ts+"/"+Ps,Hn,{error:aa.t0==null?void 0:aa.t0.message},true);case 10:console.log("Failed to parse user_mapping: ",aa.t0);return aa.abrupt("return",{});case 12:case"end":return aa.stop()}}),_callee,null,[[0,5]])})));return function getUserMappingFromConfig(Hn,zn){return Bn.apply(this,arguments)}}();var HQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca,_a;return _regeneratorRuntime().wrap((function _callee2$(xa){while(1)switch(xa.prev=xa.next){case 0:xa.prev=0;ni=GQ(Bn);Ci=qQ(Hn);ts={};Ps=[];Ci.forEach((function(Bn){var Hn=ni.find((function(Hn){var zn=Hn.name,ni=Hn.login;return jQ(Bn.email,ni,zn)||UQ(Bn.login,ni)}));if(Bn.contributor&&Hn){ts[Bn.contributor]=Hn.login}else{Ps.push(Bn)}}));aa=[].concat(Ps);Ps=[];aa.forEach((function(Bn){var Hn=ni.find((function(Hn){var zn=Hn.name;return UQ(Bn.fullName,zn)||UQ(Bn.reversedName,zn)}));if(Bn.contributor&&Hn){ts[Bn.contributor]=Hn.login}else{Ps.push(Bn)}}));Ps.forEach((function(Bn){if(Bn.contributor){ts[Bn.contributor]=Bn.contributor}}));return xa.abrupt("return",ts);case 13:xa.prev=13;xa.t0=xa["catch"](0);oa=zn.owner,ca=zn.repo,_a=zn.pullRequestNumber;xa.next=18;return ww("info","Failed to match contributors for pr: "+oa+"/"+ca+"/"+_a,zn,{error:xa.t0==null?void 0:xa.t0.message},true);case 18:console.error("Failed to match contributors",xa.t0);return xa.abrupt("return",{});case 20:case"end":return xa.stop()}}),_callee2,null,[[0,13]])})));return function matchContributorsFromProviderData(Hn,zn,ni){return Bn.apply(this,arguments)}}();var $Q=function mergeResults(Bn,Hn){return Object.keys(Hn).reduce((function(zn,ni){var Ci,ts;return _extends({},zn,(ts={},ts[ni]=(Ci=Bn[ni])!=null?Ci:Hn[ni],ts))}),{})};var JQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa;return _regeneratorRuntime().wrap((function _callee3$(ca){while(1)switch(ca.prev=ca.next){case 0:Ci=zn.owner,ts=zn.repo,Ps=zn.pullRequestNumber;if(!(!Bn||!Hn)){ca.next=4;break}console.error("matchContributors failed: not provided data");return ca.abrupt("return",{});case 4:ca.next=6;return HQ(Bn,Hn,zn);case 6:aa=ca.sent;ca.next=9;return VQ(ni,zn);case 9:oa=ca.sent;if(!Object.keys(oa).length){ca.next=14;break}ca.next=13;return ww("info","got contributors from config for pr: "+Ci+"/"+ts+"/"+Ps,zn,{userMappingFromConfig:oa},true);case 13:return ca.abrupt("return",$Q(oa,aa));case 14:return ca.abrupt("return",aa);case 15:case"end":return ca.stop()}}),_callee3)})));return function matchContributors(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}();var YQ=function filteredOutCMFilesFunc(Bn){var Hn=Bn.to;return Aw.every((function(Bn){return!Hn.match(Bn)}))};var WQ=function formatFilesToSourceFiles(Bn,Hn,zn){return zn.map((function(zn){var ni=zn.from,Ci=zn.to,ts=zn.chunks;return{original_file:ni===gw?"":ni,new_file:Ci,diff:ts==null?void 0:ts.reduce((function(Bn,Hn){var zn=Hn.changes,ni=Hn.content;return Bn+ni+"\n"+(zn==null?void 0:zn.map((function(Bn){var Hn=Bn.content;return Hn})).join("\n"))}),""),original_content:kT(wT(Hn,Bn),ni),new_content:kT(Hn,Ci)}}))};var KQ=function extractMetadataFromFiles(Bn){return Bn.map((function(Bn){var Hn=Bn.to,zn=Bn.from,ni=Bn.deletions,Ci=Bn.additions;return{original_file:zn===gw?"":zn,new_file:Hn,file:Hn!==gw?Hn:zn,deletions:ni,additions:Ci}}))};var zQ=function getDiffSize(Bn){return(Bn==null?void 0:Bn.reduce((function(Bn,Hn){var zn=Hn.additions,ni=Hn.deletions;return Bn+zn+ni}),0))||0};var XQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn){var zn,ni,Ci,ts,Ps,aa,oa;return _regeneratorRuntime().wrap((function _callee$(ca){while(1)switch(ca.prev=ca.next){case 0:ca.prev=0;ni=QQ(Bn.files,Bn.branch.base);Ci=FQ(ni),ts=Ci.formattedBlame,Ps=Ci.dsBlame;ca.next=5;return CQ(LQ(Bn.branch.base),Bn,Hn);case 5:aa=ca.sent;ca.next=8;return CQ((zn=PQ(Bn.branch.author,Bn.branch.base))==null?void 0:zn[0],Bn,Hn);case 8:oa=ca.sent;return ca.abrupt("return",{age:aa,author_age:oa,blame:ts,ds_blame:Ps});case 12:ca.prev=12;ca.t0=ca["catch"](0);console.error("Error extracting blame: "+ca.t0.message);ca.next=17;return Hw(vC.FAILED_TO_GET_BLAME_CONTEXT,EC.FAILED_TO_GET_BLAME_CONTEXT,Hn,"",vC.FAILED_TO_GET_BLAME_CONTEXT+": "+ca.t0.message);case 17:return ca.abrupt("return",{});case 18:case"end":return ca.stop()}}),_callee,null,[[0,12]])})));return function contributersStatContext(Hn,zn){return Bn.apply(this,arguments)}}();var ZQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(Bn){var Hn,zn,ni,Ci;return _regeneratorRuntime().wrap((function _callee2$(ts){while(1)switch(ts.prev=ts.next){case 0:ts.prev=0;Hn=Bn.files.reduce((function(Hn,zn){var ni;if(zn===gw){return Hn}var Ci=RQ(Bn.branch.base,$w,zn),ts=Ci.dsActivity,Ps=Ci.groupByWeek;return _extends({},Hn,(ni={},ni[zn]=_extends({},Ps,{dsActivity:ts}),ni))}),{});zn=NQ(Hn),ni=zn.formattedActivity,Ci=zn.dsActivity;return ts.abrupt("return",{git_activity:ni,ds_activity:Ci});case 6:ts.prev=6;ts.t0=ts["catch"](0);console.error("Error extrating activity: "+ts.t0.message);ts.next=11;return Hw(vC.FAILED_TO_GET_ACTIVITY_CONTEXT,EC.FAILED_TO_GET_ACTIVITY_CONTEXT,Bn.payload,"",vC.FAILED_TO_GET_ACTIVITY_CONTEXT+": "+ts.t0.message);case 11:return ts.abrupt("return",{});case 12:case"end":return ts.stop()}}),_callee2,null,[[0,6]])})));return function contributersActivityContext(Hn){return Bn.apply(this,arguments)}}();var Pj=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(Bn,Hn,zn,ni){var Ci;var ts,Ps,aa,oa,ca;return _regeneratorRuntime().wrap((function _callee3$(_a){while(1)switch(_a.prev=_a.next){case 0:ts=ni.owner,Ps=ni.repo,aa=ni.pullRequestNumber;oa=Up(Bn);if(Hn){oa=(ca=oa)==null?void 0:ca.filter(YQ)}if((Ci=oa)!=null&&Ci.length){_a.next=6;break}_a.next=6;return ww("warn","No files changed in rules-engine context for pr: "+ts+"/"+Ps+"/"+aa,ni,{diffCommand:zn},Hn);case 6:return _a.abrupt("return",oa);case 7:case"end":return _a.stop()}}),_callee3)})));return function filterOutFiles(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}();var eU=function getTheRightGitAuthor(Bn,Hn){try{var zn=MQ(Bn,Hn);if(zn.author){var ni,Ci;var ts=((ni=zn.author)==null?void 0:ni.split("<")[0].replace(/\s*$/,""))+"\n";var Ps="<"+(zn==null||(Ci=zn.author)==null?void 0:Ci.split("<")[1]);return{gitName:ts,gitEmail:Ps,fullName:zn.author}}return zn}catch(Bn){xw("Failed getting the right author. Error: "+Bn);return{}}};var tU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(Bn,Hn,zn,ni,Ci,ts){var Ps,aa,oa,ca,_a,xa,Ga,Ha,so,oo,Jo,tc,dc,Fc,Jc,Dp,kp,Qp,Up,qp,Vp,Jp,Wp,zp;return _regeneratorRuntime().wrap((function _callee4$(Qf){while(1)switch(Qf.prev=Qf.next){case 0:if(ts===void 0){ts=false}Ps=zn.owner,aa=zn.repo,oa=zn.pullRequestNumber,ca=zn.visibility,_a=zn.mergeCommitSha;Qf.prev=2;Qf.next=5;return Zw(zn,ni,Ci);case 5:Ha=Qf.sent;so=BT(Bn,Hn,Ha,_a),oo=so.diff,Jo=so.diffCommand;Qf.next=9;return Pj(oo,ts,Jo,zn);case 9:tc=Qf.sent;dc=KT(Bn);Fc=XT(Bn);Jc=ZT(Bn,Hn,_a),Dp=Jc.fullAuthorName,kp=Jc.authorName,Qp=Jc.authorEmail;Up={branch:{name:Hn,base:Bn,author:Dp,author_name:kp,author_email:Qp,diff:{size:zQ(tc),files_metadata:KQ(tc)},num_of_commits:dc,commits:{messages:eQ(Bn,Hn,_a)}},source:{diff:{files:WQ(Bn,Hn,tc)}},repo:{name:aa,contributors:Fc,owner:Ps,visibility:ca},files:tc.map((function(Bn){var Hn=Bn.to;return Hn})),pr:_extends({},hQ(zn.prContext),{repo:aa})};Up.pr=_extends({},Up.pr,{conflicted_files_count:rF(Up.pr.target,Up.branch.name)});Qf.next=17;return JQ(Up.pr.contributors,Up.repo.contributors,zn,Ha);case 17:qp=Qf.sent;Vp=eU(Up,qp);if(Object.keys(Vp).length){Up.branch.author=Vp.fullName;Up.branch.author_name=Vp.gitName;Up.branch.author_email=Vp.gitEmail}xw("context.branch: "+JSON.stringify(Up.branch,null,2));Qf.next=23;return XQ(Up,zn);case 23:Jp=Qf.sent;Qf.next=26;return ZQ(Up);case 26:Wp=Qf.sent;Up.repo=_extends({},Up.repo,{provider:zn.source,git_to_provider_user:qp},Jp,Wp,{pr_author:(xa=Up.pr)==null?void 0:xa.author});xw("context.repo: "+JSON.stringify(Up.repo,null,2));zp=pQ(JSON.stringify({context:{repo:Up.repo,files:Up.files,branch:Up.branch,pr:{contributors:(Ga=Up.pr)==null?void 0:Ga.contributors}}}));Qf.next=32;return ww("info","rules-engine context for pr: "+Ps+"/"+aa+"/"+oa,zn,{reducedContext:zp,diffCommand:Jo},mw);case 32:return Qf.abrupt("return",Up);case 35:Qf.prev=35;Qf.t0=Qf["catch"](2);console.error("Failed to get PR context: "+Qf.t0.message);Qf.next=40;return ww("error",vC.FAILED_TO_GET_CONTEXT,zn,{error:Qf.t0==null?void 0:Qf.t0.message,ruleFile:Ci},true);case 40:Qf.next=42;return Hw(vC.FAILED_TO_GET_CONTEXT,EC.FAILED_TO_GET_CONTEXT,zn,Ci);case 42:return Qf.abrupt("return",{});case 43:case"end":return Qf.stop()}}),_callee4,null,[[2,35]])})));return function getContext(Hn,zn,ni,Ci,ts,Ps){return Bn.apply(this,arguments)}}();var rU=/^.*#.*$/gm;var nU=/^\s*\n/gm;var sU=/-.*action( )*:.*/gi;var aU=/-.*action.*: /gi;var oU="automations:";var uU=/{[\s]+{|}[\s]+}/gi;var cU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee$(ni){while(1)switch(ni.prev=ni.next){case 0:if(Bn.includes(oU)){ni.next=3;break}ni.next=3;return Hw(vC.MISSING_KEYWORD,EC.MISSING_KEYWORD,zn,Hn);case 3:case"end":return ni.stop()}}),_callee)})));return function validateKeyword(Hn,zn,ni){return Bn.apply(this,arguments)}}();var lU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(Bn,Hn,zn){var Ci;var ts,Ps;return _regeneratorRuntime().wrap((function _callee2$(aa){while(1)switch(aa.prev=aa.next){case 0:ts=Object.values(ni.validatorsConstants.SUPPORTED_ACTIONS_BY_PROVIDER[(Ci=zn.source)!=null?Ci:""]||ni.validatorsConstants.SUPPORTED_ACTIONS_BY_PROVIDER["default"]);Ps=Bn.filter((function(Bn){return!ts.includes(Bn)}));if(!Ps.length){aa.next=5;break}aa.next=5;return Hw("The following actions are not supported: "+Ps.map((function(Bn){return"`"+Bn+"`"})).join(", ")+" [Supported actions](https://docs.gitstream.cm/automation-actions/)",EC.UNSUPPORTED_ACTION,zn,Hn);case 5:case"end":return aa.stop()}}),_callee2)})));return function validateActions(Hn,zn,ni){return Bn.apply(this,arguments)}}();var pU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee3$(ni){while(1)switch(ni.prev=ni.next){case 0:if(!Bn.match(uU)){ni.next=3;break}ni.next=3;return Hw(vC.MALFORMED_EXPRESSION,EC.MALFORMED_EXPRESSION,zn,Hn);case 3:case"end":return ni.stop()}}),_callee3)})));return function validateExpressions(Hn,zn,ni){return Bn.apply(this,arguments)}}();var dU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee5(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee5$(Ci){while(1)switch(Ci.prev=Ci.next){case 0:Bn.forEach(function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(Bn){var Ci,ts,Ps,aa,oa;return _regeneratorRuntime().wrap((function _callee4$(ca){while(1)switch(ca.prev=ca.next){case 0:Ci=Bn.action,ts=Bn.args;Ps=Object.keys(ts||{});aa=function requiredArgsExists(Bn){return Ps.includes(Bn)};if(ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci]){ca.next=5;break}return ca.abrupt("return");case 5:oa=ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].all?!ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].args.every(aa):!ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].args.some(aa);if(!oa){ca.next=9;break}ca.next=9;return Hw("Missing required args for action: `"+Ci+"`: ["+ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].args.filter((function(Bn){return!Ps.includes(Bn)})).map((function(Bn){return""+Bn})).join(", ")+"]",EC.MISSING_REQUIRED_FIELDS,zn,Hn);case 9:case"end":return ca.stop()}}),_callee4)})));return function(Hn){return Bn.apply(this,arguments)}}());case 1:case"end":return Ci.stop()}}),_callee5)})));return function validateRequiredArgs(Hn,zn,ni){return Bn.apply(this,arguments)}}();var hU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee7(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee7$(Ci){while(1)switch(Ci.prev=Ci.next){case 0:return Ci.abrupt("return",Bn.forEach(function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee6(Bn){var Ci,ts,Ps;return _regeneratorRuntime().wrap((function _callee6$(aa){while(1)switch(aa.prev=aa.next){case 0:Ci=Bn.action,ts=Bn.args;Ps=Object.keys(ts||{}).filter((function(Bn){var Hn;return!((Hn=ni.validatorsConstants.SUPPORTED_ARGUMENTS_BY_ACTION[Ci])!=null&&Hn.includes(Bn))}));if(!(Ps!=null&&Ps.length)){aa.next=5;break}aa.next=5;return Hw("These arguments are not supported for `"+Ci+"`: ["+Ps.map((function(Bn){return""+Bn})).join(", ")+"]",EC.UNSUPPORTED_ARGUMENT,zn,Hn);case 5:case"end":return aa.stop()}}),_callee6)})));return function(Hn){return Bn.apply(this,arguments)}}()));case 1:case"end":return Ci.stop()}}),_callee7)})));return function validateSupportedArgs(Hn,zn,ni){return Bn.apply(this,arguments)}}();var mU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee8(Bn,Hn,zn){var ni,Ci;return _regeneratorRuntime().wrap((function _callee8$(ts){while(1)switch(ts.prev=ts.next){case 0:ts.prev=0;ni=Xw(Bn);Ci=Object.values(ni.automations).flatMap((function(Bn){var Hn=Bn.run;return Hn}));ts.next=5;return hU(Ci,Hn,zn);case 5:ts.next=7;return dU(Ci,Hn,zn);case 7:ts.next=13;break;case 9:ts.prev=9;ts.t0=ts["catch"](0);ts.next=13;return Hw(ts.t0,EC.SYNTAX_ERROR,zn,Hn);case 13:case"end":return ts.stop()}}),_callee8,null,[[0,9]])})));return function validateArgs(Hn,zn,ni){return Bn.apply(this,arguments)}}();var _U=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee9(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee9$(Ci){while(1)switch(Ci.prev=Ci.next){case 0:Ci.prev=0;(new ni.SavedWordsValidator).validate({yamlFile:Bn});Ci.next=8;break;case 4:Ci.prev=4;Ci.t0=Ci["catch"](0);Ci.next=8;return Hw(Ci.t0,EC.SYNTAX_ERROR,zn,Hn);case 8:case"end":return Ci.stop()}}),_callee9,null,[[0,4]])})));return function validateSavedWords(Hn,zn,ni){return Bn.apply(this,arguments)}}();var gU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee10(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee10$(Ci){while(1)switch(Ci.prev=Ci.next){case 0:Ci.prev=0;(new ni.AutomationNamesValidator).validate({yamlFile:Bn});Ci.next=8;break;case 4:Ci.prev=4;Ci.t0=Ci["catch"](0);Ci.next=8;return Hw(Ci.t0,EC.SYNTAX_ERROR,zn,Hn);case 8:case"end":return Ci.stop()}}),_callee10,null,[[0,4]])})));return function validateAutomationNames(Hn,zn,ni){return Bn.apply(this,arguments)}}();var AU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee11(Bn,Hn,zn){var ni;var Ci,ts;return _regeneratorRuntime().wrap((function _callee11$(Ps){while(1)switch(Ps.prev=Ps.next){case 0:Ci=Bn.replace(rU,"").replace(nU,"");Ps.next=3;return cU(Ci,Hn,zn);case 3:Ps.next=5;return pU(Ci,Hn,zn);case 5:ts=((ni=Ci.match(sU))==null?void 0:ni.map((function(Bn){return Bn.replace(aU,"").trim()})))||[];Ps.next=8;return lU(ts,Hn,zn);case 8:Ps.next=10;return mU(Ci,Hn,zn);case 10:Ps.next=12;return _U(Bn,Hn,zn);case 12:Ps.next=14;return gU(Bn,Hn,zn);case 14:case"end":return Ps.stop()}}),_callee11)})));return function validateRuleFile(Hn,zn,ni){return Bn.apply(this,arguments)}}();var yU=["ds_blame","ds_activity"];var vU="plugins";var EU=Jc.join(".cm",vU);var bU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn){var ni,Ci,ts,Ps;return _regeneratorRuntime().wrap((function _callee$(aa){while(1)switch(aa.prev=aa.next){case 0:if(Bn){aa.next=2;break}return aa.abrupt("return");case 2:ni=Object.keys(Bn).filter((function(Hn){return Bn[Hn].passed}));Ci=ni.filter((function(Hn){return Bn[Hn].isManagedByTriggers})).length;ts=Ci>0;Ps=Object.keys(Bn).length;aa.next=8;return ww("info",ni.length+" out of "+Ps+" automations have passed for repo "+Hn,zn,{passedAutomations:ni.length,numOfManagedByTriggers:Ci,passedAutomationNames:ni,totalAutomations:Ps},ts);case 8:case"end":return aa.stop()}}),_callee)})));return function reportAutomationsUsage(Hn,zn,ni){return Bn.apply(this,arguments)}}();var DU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa,ca,_a,xa,Ga;return _regeneratorRuntime().wrap((function _callee2$(Ha){while(1)switch(Ha.prev=Ha.next){case 0:Ci=zn.repo,ts=zn.webhookEventName,Ps=zn.webhookEventNames;Ha.prev=1;Ha.next=4;return AU(Bn,ni,zn);case 4:aa=jw();oa=new nw(Bn,Hn,mw,ts,Ps,Jc.resolve(process.cwd(),ET.cwd,Ww.DEFAULT,EU),Jc.resolve(process.cwd(),ET.cwd,Ww.CM,vU),aa);Ha.next=8;return oa.parseStreams();case 8:ca=Ha.sent;Ha.next=11;return bU(ca==null?void 0:ca.automations,Ci,zn);case 11:return Ha.abrupt("return",ca);case 14:Ha.prev=14;Ha.t0=Ha["catch"](1);_a=zn.owner,xa=zn.repo,Ga=zn.pullRequestNumber;console.error("Failed to parse cm file",{ruleFile:ni,error:Ha.t0.message});Ha.next=20;return ww("error",vC.FAILED_TO_PARSE_CM+" in pr "+_a+"/"+xa+"/"+Ga,zn,{error:Ha.t0==null?void 0:Ha.t0.message,rules:Bn,ruleFile:ni});case 20:Ha.next=22;return Hw(Ha.t0,EC.SYNTAX_ERROR,zn,ni);case 22:case"end":return Ha.stop()}}),_callee2,null,[[1,14]])})));return function parseRules(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}();var CU=function removeDSObjects(Bn){var Hn=Bn.repo||{},zn=_objectWithoutPropertiesLoose(Hn,yU);return _extends({},Bn,{repo:zn})};var SU=function stringifyParserResults(Bn){try{if(!Bn){return""}var Hn=Object.values(Bn.automations||{}).filter((function(Bn){var Hn=Bn.passed;return Hn}));var zn=Hn.flatMap((function(Bn){var Hn=Bn.run;return Hn.map((function(Bn){var Hn=Bn.action,zn=Bn.args;var ni=Object.keys(zn||{}).filter(Boolean).map((function(Bn){var Hn;var ni=zn[Bn];if((Hn=ni)!=null&&Hn.toString().match(/^base64:*/g)){ni=fQ(ni)}return Bn+': "'+(ni?ni.toString().replace("\n","\\n"):"")+'"'})).join(" and ");return"- "+Hn+" "+ni}))}));return zn.join("\n")}catch(Hn){console.log("[gitstream-core] | Failed to stringify parser results",{error:Hn,results:Bn});return"Failed to stringify parser results"}};var xU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(Bn){var Hn,zn,ni,Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha;return _regeneratorRuntime().wrap((function _callee3$(so){while(1)switch(so.prev=so.next){case 0:Hn=Bn.ruleFileContent,zn=Bn.payload,ni=Bn.baseBranch,Ci=Bn.refBranch,ts=Bn.ruleFile,Ps=ts===void 0?"playground.cm":ts,aa=Bn.cloneRepoPath;oa={};so.prev=2;ET.cwd=aa;console.log("[gitstream-core] | build gitstream context for pr: "+zn.prContext.url);so.next=7;return tU(ni,Ci,zn,Hn,Ps,yB);case 7:ca=so.sent;console.log("[gitstream-core] | successfuly get context for: "+zn.prContext.url+", attach expert reviewers");_a=iQ(ca.repo,ca.files,zn);console.log("[gitstream-core] | successfuly get expert reviewers for: "+zn.prContext.url);oa=CU(ca);oa.repo=_extends({},oa.repo,{data_service:{expert_reviwer_request:_a}});oa.branch.name=mQ(oa.branch.name);console.log("[gitstream-core] | convert rule file to string safe: "+zn.prContext.url);xa=dQ(Hn);console.log("[gitstream-core] | successfult convert rule file to string safe: "+zn.prContext.url+", parse rules");so.next=19;return DU(xa,oa,zn,Ps);case 19:Ga=so.sent;console.log("[gitstream-core] | successfult parse rules for: "+zn.prContext.url+", stringify results",{results:Ga});Ha=SU(Ga);return so.abrupt("return",{results:Ha,context:oa,errors:Gw().stringifyErrors((Ga==null?void 0:Ga.errors)||{}),raw:Ga});case 25:so.prev=25;so.t0=so["catch"](2);console.error("[gitstream-core] | Failed to execute one rule file for: "+zn.prContext.url,so.t0);return so.abrupt("return",{results:so.t0.message,context:oa,errors:so.t0.message,raw:{payload:zn}});case 29:case"end":return so.stop()}}),_callee3,null,[[2,25]])})));return function executeOneRuleFile(Hn){return Bn.apply(this,arguments)}}();var wU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(Bn){var Hn,zn,ni,Ci,ts,Ps,aa,oa;return _regeneratorRuntime().wrap((function _callee4$(ca){while(1)switch(ca.prev=ca.next){case 0:Hn=Bn.ruleFileContent,zn=Bn.payload,ni=Bn.ruleFile,Ci=ni===void 0?"playground.cm":ni,ts=Bn.cachedContext;Ps=dQ(Hn);ca.next=4;return DU(Ps,ts,zn,Ci);case 4:aa=ca.sent;oa=SU(aa);return ca.abrupt("return",{results:oa,context:ts,errors:Gw().stringifyErrors((aa==null?void 0:aa.errors)||{}),raw:aa});case 7:case"end":return ca.stop()}}),_callee4)})));return function executeCached(Hn){return Bn.apply(this,arguments)}}();var TU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee5(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha,so;return _regeneratorRuntime().wrap((function _callee5$(oo){while(1)switch(oo.prev=oo.next){case 0:Ci=ni.owner,ts=ni.repo,Ps=ni.pullRequestNumber;oo.prev=1;aa=Bn==null?void 0:Bn.validatorErrors;oa=Bn==null?void 0:Bn.errors;if(!Object.keys(aa||{}).length){oo.next=14;break}ca=0,_a=Object.keys(aa);case 6:if(!(ca<_a.length)){oo.next=14;break}xa=_a[ca];xw(vC.VALIDATOR_ERROR+" - "+xa+": "+aa[xa]);oo.next=11;return ww("warn",vC.VALIDATOR_ERROR+" - "+xa+" in pr "+Ci+"/"+ts+"/"+Ps,ni,{error:""+aa[xa],ruleFile:Hn,cmContent:zn},true);case 11:ca++;oo.next=6;break;case 14:if(!Object.keys(oa||{}).length){oo.next=25;break}Ga=0,Ha=Object.keys(oa);case 16:if(!(Ga{"use strict";function e(Bn){return Bn&&"object"==typeof Bn&&"default"in Bn?Bn.default:Bn}Object.defineProperty(Hn,"__esModule",{value:!0});var ni=zn(37005),Ci=zn(21917),ts=zn(90250),Ps=e(ts),aa=e(zn(72187)),oa=e(zn(2825)),ca=zn(17006),_a=e(zn(56908)),xa=e(zn(56929)),Ga=zn(32081),Ha=e(zn(33779)),so=e(zn(96545)),oo=e(zn(99623)),Jo=e(zn(98911)),tc=e(zn(13418)),dc=zn(57147),Fc=e(zn(71017)),Jc=zn(87029),Dp=zn(55375),kp=zn(42186),Qp=e(zn(94833)),Up=zn(77486);function _(){_=function(){return Hn};var Bn,Hn={},zn=Object.prototype,ni=zn.hasOwnProperty,Ci=Object.defineProperty||function(Bn,Hn,zn){Bn[Hn]=zn.value},ts="function"==typeof Symbol?Symbol:{},Ps=ts.iterator||"@@iterator",aa=ts.asyncIterator||"@@asyncIterator",oa=ts.toStringTag||"@@toStringTag";function c(Bn,Hn,zn){return Object.defineProperty(Bn,Hn,{value:zn,enumerable:!0,configurable:!0,writable:!0}),Bn[Hn]}try{c({},"")}catch(Bn){c=function(Bn,Hn,zn){return Bn[Hn]=zn}}function l(Bn,Hn,zn,ni){var ts=Object.create((Hn&&Hn.prototype instanceof m?Hn:m).prototype),Ps=new C(ni||[]);return Ci(ts,"_invoke",{value:O(Bn,zn,Ps)}),ts}function f(Bn,Hn,zn){try{return{type:"normal",arg:Bn.call(Hn,zn)}}catch(Bn){return{type:"throw",arg:Bn}}}Hn.wrap=l;var ca="suspendedStart",_a="executing",xa="completed",Ga={};function m(){}function g(){}function b(){}var Ha={};c(Ha,Ps,(function(){return this}));var so=Object.getPrototypeOf,oo=so&&so(so(T([])));oo&&oo!==zn&&ni.call(oo,Ps)&&(Ha=oo);var Jo=b.prototype=m.prototype=Object.create(Ha);function E(Bn){["next","throw","return"].forEach((function(Hn){c(Bn,Hn,(function(Bn){return this._invoke(Hn,Bn)}))}))}function R(Bn,Hn){function t(zn,Ci,ts,Ps){var aa=f(Bn[zn],Bn,Ci);if("throw"!==aa.type){var oa=aa.arg,ca=oa.value;return ca&&"object"==typeof ca&&ni.call(ca,"__await")?Hn.resolve(ca.__await).then((function(Bn){t("next",Bn,ts,Ps)}),(function(Bn){t("throw",Bn,ts,Ps)})):Hn.resolve(ca).then((function(Bn){oa.value=Bn,ts(oa)}),(function(Bn){return t("throw",Bn,ts,Ps)}))}Ps(aa.arg)}var zn;Ci(this,"_invoke",{value:function(Bn,ni){function i(){return new Hn((function(Hn,zn){t(Bn,ni,Hn,zn)}))}return zn=zn?zn.then(i,i):i()}})}function O(Hn,zn,ni){var Ci=ca;return function(ts,Ps){if(Ci===_a)throw new Error("Generator is already running");if(Ci===xa){if("throw"===ts)throw Ps;return{value:Bn,done:!0}}for(ni.method=ts,ni.arg=Ps;;){var aa=ni.delegate;if(aa){var oa=S(aa,ni);if(oa){if(oa===Ga)continue;return oa}}if("next"===ni.method)ni.sent=ni._sent=ni.arg;else if("throw"===ni.method){if(Ci===ca)throw Ci=xa,ni.arg;ni.dispatchException(ni.arg)}else"return"===ni.method&&ni.abrupt("return",ni.arg);Ci=_a;var Ha=f(Hn,zn,ni);if("normal"===Ha.type){if(Ci=ni.done?xa:"suspendedYield",Ha.arg===Ga)continue;return{value:Ha.arg,done:ni.done}}"throw"===Ha.type&&(Ci=xa,ni.method="throw",ni.arg=Ha.arg)}}}function S(Hn,zn){var ni=zn.method,Ci=Hn.iterator[ni];if(Ci===Bn)return zn.delegate=null,"throw"===ni&&Hn.iterator.return&&(zn.method="return",zn.arg=Bn,S(Hn,zn),"throw"===zn.method)||"return"!==ni&&(zn.method="throw",zn.arg=new TypeError("The iterator does not provide a '"+ni+"' method")),Ga;var ts=f(Ci,Hn.iterator,zn.arg);if("throw"===ts.type)return zn.method="throw",zn.arg=ts.arg,zn.delegate=null,Ga;var Ps=ts.arg;return Ps?Ps.done?(zn[Hn.resultName]=Ps.value,zn.next=Hn.nextLoc,"return"!==zn.method&&(zn.method="next",zn.arg=Bn),zn.delegate=null,Ga):Ps:(zn.method="throw",zn.arg=new TypeError("iterator result is not an object"),zn.delegate=null,Ga)}function j(Bn){var Hn={tryLoc:Bn[0]};1 in Bn&&(Hn.catchLoc=Bn[1]),2 in Bn&&(Hn.finallyLoc=Bn[2],Hn.afterLoc=Bn[3]),this.tryEntries.push(Hn)}function F(Bn){var Hn=Bn.completion||{};Hn.type="normal",delete Hn.arg,Bn.completion=Hn}function C(Bn){this.tryEntries=[{tryLoc:"root"}],Bn.forEach(j,this),this.reset(!0)}function T(Hn){if(Hn||""===Hn){var zn=Hn[Ps];if(zn)return zn.call(Hn);if("function"==typeof Hn.next)return Hn;if(!isNaN(Hn.length)){var Ci=-1,ts=function t(){for(;++Ci=0;--Ci){var ts=this.tryEntries[Ci],Ps=ts.completion;if("root"===ts.tryLoc)return i("end");if(ts.tryLoc<=this.prev){var aa=ni.call(ts,"catchLoc"),oa=ni.call(ts,"finallyLoc");if(aa&&oa){if(this.prev=0;--zn){var Ci=this.tryEntries[zn];if(Ci.tryLoc<=this.prev&&ni.call(Ci,"finallyLoc")&&this.prev=0;--Hn){var zn=this.tryEntries[Hn];if(zn.finallyLoc===Bn)return this.complete(zn.completion,zn.afterLoc),F(zn),Ga}},catch:function(Bn){for(var Hn=this.tryEntries.length-1;Hn>=0;--Hn){var zn=this.tryEntries[Hn];if(zn.tryLoc===Bn){var ni=zn.completion;if("throw"===ni.type){var Ci=ni.arg;F(zn)}return Ci}}throw new Error("illegal catch attempt")},delegateYield:function(Hn,zn,ni){return this.delegate={iterator:T(Hn),resultName:zn,nextLoc:ni},"next"===this.method&&(this.arg=Bn),Ga}},Hn}function E(Bn,Hn,zn,ni,Ci,ts,Ps){try{var aa=Bn[ts](Ps),oa=aa.value}catch(Bn){return void zn(Bn)}aa.done?Hn(oa):Promise.resolve(oa).then(ni,Ci)}function R(Bn){return function(){var Hn=this,zn=arguments;return new Promise((function(ni,Ci){var ts=Bn.apply(Hn,zn);function a(Bn){E(ts,ni,Ci,a,u,"next",Bn)}function u(Bn){E(ts,ni,Ci,a,u,"throw",Bn)}a(void 0)}))}}function O(){return(O=Object.assign?Object.assign.bind():function(Bn){for(var Hn=1;HnBn.length)&&(Hn=Bn.length);for(var zn=0,ni=new Array(Hn);zn=Bn.length?{done:!0}:{done:!1,value:Bn[ni++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var qp,Vp="https://gtxblnqb99.execute-api.us-west-1.amazonaws.com/prod",Jp={REVIEW_TIME:Vp+"/v1/pulls/review-time",EXPERT_REVIWER:Vp+"/gs/v1/data-service/expert-reviewer"},Wp="gitstream-rules-parser",zp={FAILED_RENDER_STRING:Wp+" - failed render string",FAILED_YAML_LOAD:Wp+" - failed yaml.load",INVALID_CM:Wp+" - invalid cm",INVALID_CM_CONTEXT_VARIABLES:Wp+" - ContextVariableValidator"},Qf=function(Bn){var Hn,zn;function n(Hn,zn){var ni;return(ni=Bn.call(this,zn)||this).reason=Hn,Object.setPrototypeOf(function(Bn){if(void 0===Bn)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Bn}(ni),n.prototype),ni}return zn=Bn,(Hn=n).prototype=Object.create(zn.prototype),Hn.prototype.constructor=Hn,j(Hn,zn),n}(T(Error)),M=function(Bn){return ts.isObject(Bn)&&Object.keys(Bn).length?Object.keys(Bn).reduce((function(Hn,zn){var ni,Ci=Bn[zn],Ps=ts.isString(Ci)?Ci.replace(/\n/g,"\\n"):Ci;return O({},Hn,((ni={})[zn]=Ps,ni))}),{}):Bn},V=function(Bn){return ts.isString(Bn)?Bn.replace(/\\n/g,"\n"):Bn},G=function(Bn){return Bn.replace(/\s+/g," ").replaceAll("'",'"').trim()},U=function(Bn,Hn){return G(xa.format(Bn,{semi:!1,singleQuote:!0,filepath:Hn}))},Yf={js:U,ts:U,html:U,py:function(Bn){return Ga.spawnSync("python",["-c","import black; print(black.format_str("+JSON.stringify(Bn)+", mode=black.FileMode()))"]).stdout.toString().replace(/^\s*[\r\n]/gm,"")},default:G},W=function(Bn,Hn){var zn,ni=null!=(zn=Hn.split(".").pop())?zn:"";return _a(Yf,ni,Yf.default)(Bn)},Y=function(Bn){return Object.keys(Bn).map((function(Hn){return Hn+"="+Bn[Hn]}))},Kf=["reviewers","reviewers","team_reviewers","labels"],Q=function(Bn,Hn){Hn&&console.log(Bn)},z=function(Bn,Hn){return null==Bn?void 0:Bn.includes(Hn)},$=function(Bn){return"string"==typeof Bn&&Bn.startsWith("r/")?Bn.substring(2).slice(0,-1).replace("\\/","/"):Bn},K=function(Bn,Hn,zn){void 0===zn&&(zn=!1);var ni=$(Hn);return new RegExp(ni,zn?"m":"").test(Bn)},X=function(Bn,Hn,zn){var ni=null==Bn?void 0:Bn.map((function(Bn){return Boolean(Bn)}));return null!=ni&&ni.length?ni.every((function(Bn){return Bn===Hn})):zn},Z=function(Bn){return"string"==typeof Bn?Bn.includes(",")?Bn.split(","):[Bn]:null!=Bn?Bn:[]},Xf=((qp={}).github="GitHub",qp.gitlab="GitLab",qp.bitbucket="BitBucket","\n \nTo learn more about /:\\ gitStream - [Visit our Docs](https://docs.gitstream.cm/) \n \n"),Ad={"01":"JAN","02":"FEB","03":"MAR","04":"APR","05":"MAY","06":"JUN","07":"JUL","08":"AUG","09":"SEP",10:"OCT",11:"NOV",12:"DEC"},te=function(){};te.filters={};var Cd,Sd,oe=function(Bn,Hn,zn){var ni;void 0===zn&&(zn=!1),te.filters=O({},te.filters,((ni={})[Bn]={args:Hn,isCustom:zn},ni))},ae=function(Bn,Hn,zn,ni,Ci){return zn?z(Hn?Bn[Hn]:Bn,zn):ni?K(Hn?Bn[Hn]:Bn,ni):Ci.some((function(zn){return z(Hn?Bn[Hn]:Bn,zn)}))},ue=function(Bn,Hn,zn,ni){void 0===ni&&(ni=!1);var Ci=Hn.attr||"",ts=Hn.term,Ps=Hn.regex,aa=Hn.list,oa=Z(Bn);if(!ts&&!Ps&&!aa)return[];var ca=aa;return aa&&(ca=Z(aa)),"filterList"===zn?function(Bn,Hn,zn,ni,Ci,ts){return Bn.filter((function(Bn){return ts?!ae(Bn,Hn,zn,ni,Ci):ae(Bn,Hn,zn,ni,Ci)}))}(oa,Ci,ts,Ps,ca,ni):function(Bn,Hn,zn,ni,Ci,ts){return Bn.map((function(Bn){return ts?!ae(Bn,Hn,zn,ni,Ci):ae(Bn,Hn,zn,ni,Ci)}))}(oa,Ci,ts,Ps,ca,ni)};!function(Bn){Bn.some="some",Bn.every="every",Bn.filter="filter",Bn.includes="includes",Bn.reject="reject",Bn.map="map",Bn.match="match",Bn.nope="nope",Bn.intersection="intersection",Bn.difference="difference",Bn.capture="capture"}(Sd||(Sd={}));var xd,wd,Td=((Cd={})[Sd.some]=function(Bn){var Hn;oe(Sd.some,[]);var zn=null==(Hn=Z(Bn))?void 0:Hn.map((function(Bn){return Boolean(Bn)}));return Boolean(null==zn?void 0:zn.length)&&zn.some((function(Bn){return Bn}))},Cd[Sd.every]=function(Bn){return oe(Sd.every,[]),X(Z(Bn),!0,!1)},Cd[Sd.filter]=function(Bn,Hn){return oe(Sd.filter,[Hn]),ue(Bn,Hn,"filterList")},Cd[Sd.reject]=function(Bn,Hn){return oe(Sd.reject,[Hn]),ue(Bn,Hn,"filterList",!0)},Cd[Sd.map]=function(Bn,Hn){var zn=Hn.attr;return oe(Sd.map,[{attr:zn}]),Z(Bn).map((function(Bn){return Bn[zn]}))},Cd[Sd.includes]=function(Bn,Hn){oe(Sd.includes,[Hn]);var zn=Hn.term,ni=Hn.regex,Ci=Hn.list;if(!zn&&!ni&&!Ci)return!1;var ts=Ci;return Ci&&(ts=Z(Ci)),zn?z(Bn,zn):ni?K(Bn,ni):ts.some((function(Hn){return Bn.includes(Hn)}))},Cd[Sd.match]=function(Bn,Hn){return oe(Sd.match,[Hn]),ue(Bn,Hn,"mapList")},Cd[Sd.nope]=function(Bn){return oe(Sd.match,[]),X(Z(Bn),!1,!0)},Cd[Sd.intersection]=function(Bn,Hn){oe(Sd.intersection,[Hn]);var zn=Hn.list,ni=Z(Bn),Ci=Z(zn);return Ci.length?ts.intersection(ni,Ci):[]},Cd[Sd.difference]=function(Bn,Hn){oe(Sd.difference,[Hn]);var zn=Hn.list,ni=Z(Bn),Ci=Z(zn);return Ci.length?ts.difference(ni,Ci):Bn},Cd[Sd.capture]=function(Bn,Hn){var zn=$(Hn.regex),ni=new RegExp(null!=zn?zn:"").exec(Bn);return ni?ni[0]:""},Cd),Pd={github:"",gitlab:" \n",default:""},pe=function(Bn,Hn){return Object.keys(Bn).reduce((function(zn,ni){var Ci,ts,Ps=Bn[ni];return zn[Hn[ni]]&&(Ps=Bn[ni]+zn[Hn[ni]]),O({},zn,((ts={})[null!=(Ci=Hn[ni])&&Ci.includes("@")||!Hn[ni]?ni+"\\*":Hn[ni]]=Ps,ts))}),{})},de=function(Bn){return{blame:Object.keys(Bn.blame).reduce((function(Hn,zn){var ni;return O({},Hn,((ni={})[zn]=pe(Bn.blame[zn],Bn.git_to_provider_user),ni))}),{})}},ve=function(Bn,Hn){var zn=Object.keys(Hn).length;return Bn.reduce((function(Bn,ni){var Ci,ts=function(Bn,Hn){return Object.values(Bn).reduce((function(Bn,zn){var ni,Ci,ts=zn[Hn],Ps=(null!=ts?ts:0)+(null!=(ni=Bn[Hn])?ni:0);return O({},Bn,Ps&&((Ci={})[Hn]=Ps,Ci))}),{})}(Hn,ni);return O({},Bn,ts[ni]&&((Ci={})[ni]=ts[ni]/zn,Ci))}),{})},he=function(Bn,Hn){return Bn.sort((function(Bn,zn){var ni,Ci;return(null!=(ni=Hn[zn])?ni:0)-(null!=(Ci=Hn[Bn])?Ci:0)}))},me=function(Bn,Hn,zn){return Object.keys(Bn).length?function(Bn,Hn,zn){var ni=Object.keys(Bn).filter((function(ni){return void 0!==Hn?Bn[ni]>Hn:Bn[ni]Hn/100:Bn[ts][ni]")}))||[]},we=function(Bn){return Bn.gt||Bn.lt||.1},f_=function(){var Bn=R(_().mark((function e(Bn){var Hn,zn,ni,Ci;return _().wrap((function(ts){for(;;)switch(ts.prev=ts.next){case 0:return ts.next=2,Zh(null==(Hn=Bn.data_service)?void 0:Hn.expert_reviwer_request);case 2:if(zn=ts.sent,Object.keys(zn).length){ts.next=5;break}return ts.abrupt("return",{data:{},dataWithoutIssuer:{},isIssuerFiltered:!1});case 5:return ni=!1,Ci=Object.keys(zn).reduce((function(Hn,Ci){var ts;return Ci===Bn.pr_author?(ni=!0,Hn):O({},Hn,((ts={})[Ci]=zn[Ci],ts))}),{}),ts.abrupt("return",{data:zn,dataWithoutIssuer:Ci,isIssuerFiltered:ni});case 8:case"end":return ts.stop()}}),e)})));return function(Hn){return Bn.apply(this,arguments)}}(),_e=function(Bn,Hn,zn,ni,Ci,ts){var Ps="🥷 **Code experts:";return Ps+=Bn.length?" "+Bn.join(", ")+"** \n \n":" no user "+(ts?"but you":"")+" matched threshold "+ni+"** \n \n",Hn.length&&(Ps+=Hn.join(", ")+" "+(1===Hn.length?"has":"have")+" most 👩‍💻 **activity** in the files. \n"+(Pd[Ci]||Pd.default)),zn.length&&(Ps+=zn.join(", ")+" "+(1===zn.length?"has":"have")+" most 🧠 **knowledge** in the files. \n"),Ps},Ee=function(Bn,Hn,zn,ni,Ci,ts){try{var Ps="
\n See details\n\n";return Bn.forEach((function(Bn){Ps+="\n`"+Bn+"` \n "+function(Bn,Hn,zn){return Object.keys(Hn).length?zn.length?"\n\nActivity based on git-commit: \n\n | | "+(zn[0]?zn[0]:" ")+" | "+(zn[1]?zn[1]+"| \n | --- | --- | --- | \n ":" \n | --- | --- | \n")+function(Bn,Hn,zn){for(var ni="",Ci=[],ts=0;ts<6;ts++)Ci.push(Ad[oo().subtract(ts,"months").format("MM")]);return Ci.forEach((function(Ci){var ts,Ps=Bn[Hn][zn[0]][Ci],aa=null==(ts=Bn[Hn][zn[1]])?void 0:ts[Ci];ni+="| "+Ci+" | "+(Ps?Ps.additions+" additions & "+Ps.deletions+" deletions":" ")+" |",ni+=(aa?aa.additions+" additions & "+aa.deletions+" deletions |":" ")+" \n"})),ni}(Hn,Bn,zn):"":"\n\nNo activity in the last 6 months\n\n"}(Bn,Hn,ni)+" \n\nKnowledge based on git-blame: \n "+(Pd[ts]||Pd.default)+function(Bn,Hn,zn,ni){var Ci="";return he(zn,Hn[Bn]).forEach((function(zn){Ci+=Hn[Bn][zn]?zn+": "+Hn[Bn][zn]+"% \n"+(Pd[ni]||Pd.default):""})),Ci}(Bn,zn,Ci,ts)})),Ps+="\n
\n"}catch(Bn){return console.log("Error in creating explain code experts comment",Bn),""}},Re=function(Bn,Hn){return Object.keys(Bn||{}).reduce((function(zn,ni){var Ci,ts=function(Bn,Hn,zn){return zn.reduce((function(zn,ni){var Ci,ts=function(Bn,Hn,zn){return Object.keys(Bn[Hn]).reduce((function(ni,Ci){var ts,Ps;return Bn[Hn][Ci][zn]?O({},ni,((Ps={})[Ad[null==(ts=Ci.split("-"))?void 0:ts[1]]]=Bn[Hn][Ci][zn],Ps)):ni}),{})}(Bn,Hn,ni);return O({},zn,((Ci={})[ni]=ts,Ci))}),{})}(Bn,ni,Hn);return O({},zn,((Ci={})[ni]=ts,Ci))}),{})},Oe=function(Bn,Hn){return Object.keys(Bn||{}).reduce((function(zn,ni){var Ci,ts=he(Hn,Bn[ni]).reduce((function(Hn,zn){var Ci;return Bn[ni][zn]?O({},Hn,((Ci={})[zn]=Math.round(100*Bn[ni][zn]),Ci)):Hn}),{});return O({},zn,((Ci={})[ni]=ts,Ci))}),{})};!function(Bn){Bn.allDocs="allDocs",Bn.allImages="allImages",Bn.allTests="allTests",Bn.extensions="extensions",Bn.isFormattingChange="isFormattingChange",Bn.matchDiffLines="matchDiffLines",Bn.isFirstCommit="isFirstCommit",Bn.rankByGitBlame="rankByGitBlame",Bn.rankByGitActivity="rankByGitActivity",Bn.explainRankByGitBlame="explainRankByGitBlame",Bn.sonarParser="sonarParser",Bn.mapToEnum="mapToEnum",Bn.extractSonarFindings="extractSonarFindings",Bn.extractJitFindings="extractJitFindings",Bn.countTests="countTests"}(xd||(xd={})),function(Bn){Bn.estimatedReviewTime="estimatedReviewTime",Bn.expertReviewer="expertReviewer",Bn.explainExpertReviewer="explainExpertReviewer",Bn.codeExperts="codeExperts",Bn.explainCodeExperts="explainCodeExperts"}(wd||(wd={}));var Z_,eg,tg,rg,ng,ig,sg=function(){var Bn=R(_().mark((function e(Bn,Hn){var zn,ni,Ci,ts,Ps,aa,oa,ca,_a;return _().wrap((function(xa){for(;;)switch(xa.prev=xa.next){case 0:return oe(wd.estimatedReviewTime,[]),ts=null==(zn=Bn.diff)?void 0:zn.files_metadata.length,Ps=null==(ni=Bn.diff)?void 0:ni.files_metadata.reduce((function(Bn,Hn){return Bn.additionalLines+=Hn.additions,Bn.deletedLines+=Hn.deletions,Bn}),{additionalLines:0,deletedLines:0}),aa=Ps.additionalLines,oa=Ps.deletedLines,ca=null==(Ci=Bn.diff)?void 0:Ci.files_metadata.map((function(Bn){return{file_path:"/dev/null"!==Bn.new_file?Bn.new_file:Bn.original_file,additions:Bn.additions,deletions:Bn.deletions}})),_a={prMetadata:{commits:Bn.num_of_commits,files:ts,lines:aa+oa},prFiles:ca,prAdditionalLines:aa,prDeletedLines:oa,baseBranch:Bn.base,request_source:"gitstream"},xa.next=7,Qh(_a);case 7:Hn(null,xa.sent.numericValue);case 10:case"end":return xa.stop()}}),e)})));return function(Hn,zn){return Bn.apply(this,arguments)}}(),ag=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa;return _().wrap((function(ca){for(;;)switch(ca.prev=ca.next){case 0:return Ci=void 0===(ni=Hn.gt)?0:ni,Ps=void 0===(ts=Hn.lt)?0:ts,ca.prev=1,oe(wd.expertReviewer,[{gt:Ci,lt:Ps}]),ca.next=5,f_(Bn);case 5:aa=ca.sent.dataWithoutIssuer,Object.keys(aa).length||zn(null,[]),oa=xe(aa,Ci,Ps,"reviewer_score").slice(0,2),zn(null,oa),ca.next=16;break;case 12:ca.prev=12,ca.t0=ca.catch(1),console.log("error:",ca.t0),zn(null,[]);case 16:case"end":return ca.stop()}}),e,null,[[1,12]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),og=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha,so,oo,Jo,tc;return _().wrap((function(dc){for(;;)switch(dc.prev=dc.next){case 0:return dc.prev=0,ts=Hn.gt,Ps=Hn.lt,dc.next=4,f_(Bn);case 4:oa=(aa=dc.sent).data,ca=aa.dataWithoutIssuer,_a=aa.isIssuerFiltered,Object.keys(oa).length&&Object.keys(ca).length||zn(null,[]),xa=xe(ca,ts,Ps,"reviewer_score").slice(0,2),Ga=xe(oa,ts,Ps,"avg_activity_score").slice(0,2),Ha=xe(oa,ts,Ps,"avg_blame_perc").slice(0,2),so=Re(null==(ni=oa.explain)?void 0:ni.activity,Ga),oo=Oe(null==(Ci=oa.explain)?void 0:Ci.blame,Ha),Jo=_e(xa,Ga,Ha,we(Hn),Bn.provider,_a&&!Object.keys(xa).length)+" "+Ee(Array.from(new Set([].concat(Object.keys(so),Object.keys(oo)))),so,oo,Ga,Ha,Bn.provider)+" \n\n "+Xf+" \n",tc="base64: "+Buffer.from(Jo).toString("base64"),zn(null,tc),dc.next=23;break;case 19:dc.prev=19,dc.t0=dc.catch(0),console.log("error:",dc.t0),zn("");case 23:case"end":return dc.stop()}}),e,null,[[0,19]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),ug=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps;return _().wrap((function(aa){for(;;)switch(aa.prev=aa.next){case 0:return oe(wd.codeExperts,[{gt:Ci=void 0===(ni=Hn.gt)?0:ni,lt:Ps=void 0===(ts=Hn.lt)?0:ts}]),aa.next=4,ag(Bn,{gt:Ci,lt:Ps},zn);case 4:case"end":return aa.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),cg=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(ni){for(;;)switch(ni.prev=ni.next){case 0:return oe(wd.explainExpertReviewer,[Hn]),ni.next=3,og(Bn,Hn,zn);case 3:case"end":return ni.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),lg=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(ni){for(;;)switch(ni.prev=ni.next){case 0:return oe(wd.explainCodeExperts,[Hn]),ni.next=3,og(Bn,Hn,zn);case 3:case"end":return ni.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),pg={bugs:/\[(.) Reliability Rating/,security_hotspots:/\[(.) Security Hotspots/,vulnerabilities:/\[(.) Security Rating/,code_smells:/\[(.) Maintainability Rating/,duplications:/(\d+(\.\d+)?%) Duplication on New Code/,coverage:/(\d+(\.\d+)?%) Coverage on New Code/},Me=function(Bn){oe(xd.sonarParser,[]);var Hn=Bn.comments.filter((function(Bn){return"sonarcloud"===Bn.commenter}));if(!Hn.length)return JSON.stringify({bugs:{count:null,rating:""},code_smells:{count:null,rating:""},vulnerabilities:{count:null,rating:""},security_hotspots:{count:null,rating:""},duplications:null,coverage:null});var zn=Object.keys(pg).reduce((function(Bn,zn){var ni,Ci,ts,Ps=Hn[0].content.match(pg[zn]);if("duplications"===zn.toString()||"coverage"===zn.toString()){var aa,oa=parseFloat(null==Ps?void 0:Ps[1].replace("%",""));return O({},Bn,((aa={})[zn]=oa||null,aa))}return"security_hotspots"===zn.toString()?O({},Bn,((ts={})[zn]={count:Ps&&"0"!==(null==Ps||null==(Ci=Ps[1])?void 0:Ci.toString())?Ps[1]:null,rating:""},ts)):O({},Bn,((ni={})[zn]={count:Ps?1:null,rating:Ps?Ps[1]:""},ni))}),{bugs:{count:null,rating:""},code_smells:{count:null,rating:""},vulnerabilities:{count:null,rating:""},security_hotspots:{count:null,rating:""},duplications:null,coverage:null});return JSON.stringify(zn)},Ve=function(Bn){var Hn=Ge();return Bn.conversations.forEach((function(Bn){var zn,ni,Ci,ts,Ps,aa,oa,ca=Bn.content.split("\n"),_a=null==(zn=ca[0])||null==(zn=zn.split("**")[2])?void 0:zn.trim(),xa=null==(ni=ca[2])||null==(ni=ni.split("**")[2])?void 0:ni.trim(),Ga=null==(Ci=ca[4])||null==(Ci=Ci.split("**")[2])?void 0:Ci.trim(),Ha=null==(ts=ca[6])||null==(ts=ts.split("**")[2])?void 0:ts.trim(),so=(null!=(Ps=null==(aa=ca[10])||null==(aa=aa.split("")[1])?void 0:aa.split("")[0])?Ps:"").replace(//g,"").replace(/<\/b>/g,"");Hn.vulnerabilities.push({security_control:_a,type:xa,description:Ga,severity:Ha,summary:so}),Hn.metrics[Ha]=(null!=(oa=Hn.metrics[Ha])?oa:0)+1})),Hn},Ge=function(){return{vulnerabilities:[],metrics:{HIGH:null,MEDIUM:null,LOW:null,INFO:null}}},fg={extractJitFindings:function(Bn){oe(xd.extractJitFindings,[]);var Hn=function(Bn){return Bn.reviews.filter((function(Bn){return"jit-ci"===Bn.commenter}))}(Bn),zn=Ge();if(ts.isEmpty(Hn))return JSON.stringify(zn);var ni=Hn.map(Ve);return JSON.stringify(function(Bn,Hn){return Bn.reduce((function(Bn,Hn){return console.log({acc:Bn,review:Hn}),O({},Bn,{vulnerabilities:[].concat(Bn.vulnerabilities,Hn.vulnerabilities),metrics:Jo(Bn.metrics,Hn.metrics,(function(Bn,Hn){return(Bn||0)+(Hn||0)}))})}),O({},Hn))}(ni,zn))}},dg=[".spec.",".test.","test_"],hg=["\\s*it\\(","\\s*test\\(","\\s*step\\(","\\s*def test_"].map((function(Bn){return new RegExp(Bn)})),Ye=function(Bn){var Hn={};return Object.entries(Bn).forEach((function(Bn){Hn[Bn[0]]=Bn[1]})),Hn},mg={getJiraTicketDetails:function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha,oo,Jo,dc,Fc,Jc,Dp,kp,Qp,Up,qp,Vp,Jp,Wp,zp;return _().wrap((function(Qf){for(;;)switch(Qf.prev=Qf.next){case 0:if(Ci=Hn.username,ts=Hn.apiToken,Ps=Hn.additionalFields,(ni=Hn.url)&&Ci&&ts&&Bn){Qf.next=4;break}return zn(null,JSON.stringify({})),Qf.abrupt("return");case 4:return aa="Basic "+Buffer.from(Ci+":"+ts).toString("base64"),oa={Authorization:aa,Accept:"application/json"},Qf.prev=7,Qf.next=10,so.get(ni+"/rest/api/3/issue/"+Bn,{headers:oa});case 10:Jp=null!=(ca=null==(Vp=Qf.sent.data)?void 0:Vp.fields)?ca:{},Wp=tc(Jp,Ps),zp=O({labels:null!=(_a=Jp.labels)?_a:[],assignee:null!=(xa=null==(Ga=Jp.assignee)?void 0:Ga.displayName)?xa:"",status:null!=(Ha=Jp.name)?Ha:"",url:null!=(oo=null==Vp?void 0:Vp.self)?oo:"",priority:null!=(Jo=null==(dc=Jp.priority)?void 0:dc.name)?Jo:"",creator:null!=(Fc=null==(Jc=Jp.creator)?void 0:Jc.displayName)?Fc:"",issueType:null!=(Dp=null==(kp=Jp.issueType)?void 0:kp.name)?Dp:"",project:null!=(Qp=null==(Up=Jp.project)?void 0:Up.name)?Qp:"",summary:null!=(qp=Jp.summary)?qp:""},Ye(Wp)),zn(null,JSON.stringify(zp)),Qf.next=22;break;case 18:Qf.prev=18,Qf.t0=Qf.catch(7),console.log("error while running getJiraTicketDetails filter",Qf.t0),zn(null,JSON.stringify({}));case 22:case"end":return Qf.stop()}}),e,null,[[7,18]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}()},Qe=function(Bn,Hn){return!!Bn.length&&function(Bn,Hn){return Boolean(Bn.length)&&Bn.map((function(Bn){return Hn.some((function(Hn){return(Bn||"").includes(Hn)}))})).every((function(Bn){return Bn}))}(Bn.map((function(Bn){return Bn.split(".").pop()||""})),Hn)},ze=function(Bn,Hn){if(oe(xd.rankByGitBlame,[Hn]),!ge(Hn))return[];var zn=Hn.gt,ni=Hn.lt,Ci=de(Bn).blame,ts=ve(Object.values(Bn.git_to_provider_user),Ci),Ps=me(ts,zn,ni);return Object.keys(Ps).length?[].concat(Array.from(new Set(Object.keys(Ps)))):[]},_g=((Z_={})[xd.allDocs]=["requirements.txt"],Z_),gg=((eg={})[xd.allDocs]=["md","mkdown","txt","rst",".adoc"],eg[xd.allImages]=["svg","png","gif"],eg[xd.allTests]=["test","spec"],eg),Ag=O(((tg={})[xd.allDocs]=function(Bn){return oe(xd.allDocs,[]),Boolean(Bn.length)&&Bn.every((function(Bn){return _g[xd.allDocs].every((function(Hn){return!(Bn.includes("/"+Hn)||Bn===Hn)}))}))&&Qe(Bn,gg[xd.allDocs])},tg[xd.allImages]=function(Bn){return oe(xd.allImages,[]),Qe(Bn,gg[xd.allImages])},tg[xd.allTests]=function(Bn){return oe(xd.allTests,[]),function(Bn,Hn){var zn=new RegExp("[^a-zA-Z0-9]("+gg[xd.allTests].join("|")+")[^a-zA-Z0-9]");return Boolean(Bn.length)&&Bn.map((function(Bn){return zn.test(Bn||"")})).every((function(Bn){return Bn}))}(Bn)},tg[xd.extensions]=function(Bn){return oe(xd.extensions,[]),Bn.map((function(Bn){return Bn.split(".").pop()})).filter((function(Bn,Hn,zn){return zn.indexOf(Bn)===Hn}))},tg[xd.isFormattingChange]=function(Bn){try{return oe(xd.isFormattingChange,[]),Boolean(Bn.length)&&Bn.every((function(Bn){var Hn=Bn.original_content,zn=Bn.original_file;return W(Bn.new_content,Bn.new_file)===W(Hn,zn)}))}catch(Bn){return!1}},tg[xd.matchDiffLines]=function(Bn,Hn){oe(xd.matchDiffLines,[Hn]);var zn=Hn.regex,ni=Hn.ignoreWhiteSpaces,Ci=new RegExp("^[+-]"),ts=new RegExp("^[+-]\\s*$");return zn?Bn.map((function(Bn){return Bn.diff.split("\n").filter((function(Bn){return Ci.test(Bn)})).filter((function(Bn){return!ni||!ts.test(Bn)})).map((function(Bn){return K(Bn,zn)}))})).flat(1):[]},tg[xd.isFirstCommit]=function(Bn,Hn){return oe(xd.isFirstCommit,[{author:Hn}]),!_a(Bn,Hn,null)},tg[xd.rankByGitBlame]=ze,tg[xd.rankByGitActivity]=function(Bn,Hn){oe(xd.rankByGitActivity,[Hn]);var zn=Hn.gt,ni=Hn.lt,Ci=Hn.weeks;if(!zn&&!ni||!Ci)return[];var ts=new Array(Ci+1).fill(0).map((function(Bn,Hn){return"week_"+Hn})),Ps=function(Bn,Hn){return Object.keys(Bn).reduce((function(zn,ni){var Ci,ts=Object.values(Bn[ni]).reduce((function(Bn,zn){return Hn.forEach((function(Hn){var ni,Ci=zn[Hn];Ci&&(Bn[Hn]=(null!=(ni=Bn[Hn])?ni:0)+Ci)})),O({},Bn)}),{});return O({},zn,((Ci={})[ni]=ts,Ci))}),{})}(Bn.git_activity,ts),aa=function(Bn,Hn,zn){return Object.keys(Bn).reduce((function(ni,Ci){var ts,Ps=Object.keys(Bn[Ci]).reduce((function(ni,ts){var Ps,aa=[];Hn.forEach((function(Hn){zn[Ci][Hn]&&Bn[Ci][ts][Hn]&&aa.push(Bn[Ci][ts][Hn]/zn[Ci][Hn]*100)}));var oa=aa.reduce((function(Bn,Hn){return Bn+Hn}),0)/aa.length;return O({},ni,aa.length&&((Ps={})[ts]=parseInt(null==oa?void 0:oa.toFixed(0)),Ps))}),{});return O({},ni,((ts={})[Ci]=Ps,ts))}),{})}(Bn.git_activity,ts,Ps),oa=ve(Object.keys(Bn.contributors),aa),ca=pe(oa,Bn.git_to_provider_user),_a=me(ca,zn,ni);return Object.keys(_a).length?[].concat(Array.from(new Set(Object.keys(_a)))):[]},tg[xd.explainRankByGitBlame]=function(Bn,Hn){if(oe(xd.explainRankByGitBlame,[Hn]),!ge(Hn))return{};var zn=ze(Bn,Hn),ni=Ha(zn,(function(Hn){return Hn!==Bn.pr_author})),Ci=ni.join(", "),ts=!ni.length&&zn.length>0,Ps=function(Bn){var Hn=de(Bn).blame;return Object.keys(Hn).reduce((function(Bn,zn){var ni;if("/dev/null"===zn)return Bn;var Ci=he(Object.keys(Hn[zn]),Hn[zn]).reduce((function(Bn,ni){var Ci;if(!Hn[zn][ni])return Bn;var ts=ni.replace(/\"\“/g,"").replace("“",""),Ps=(Math.floor(Hn[zn][ni])?Math.floor(Hn[zn][ni]):"<1")+"%";return Bn[ts]&&parseInt(Bn[ts])>parseInt(Ps)&&(Ps=Bn[ts]),O({},Bn,((Ci={})[ts]=Ps,Ci))}),{});return O({},Bn,((ni={})[zn]=Ci,ni))}),{})}(Bn);return"base64: "+Buffer.from(function(Bn,Hn,zn,ni,Ci){var ts=Bn.gt,Ps=ts?"more than "+ts+"%":"less than "+Bn.lt+"%",aa=Object.keys(zn).length,oa=function(Bn,Hn,zn,ni){return Bn?" 👋 **Suggested reviewers: "+Bn+"**\n \nThey contributed "+Hn+" of the lines on pre-existing files":" 👋 **Suggested reviewers: no user "+(ni?"but you":"")+" matched**\n \nNo "+(zn?"other ":"")+"user contributed "+Hn+" of the lines on pre-existing files"}(Hn,Ps,aa,Ci);oa+=aa?":\n":". \n ",oa+=Object.keys(zn).length?"
\n See details\n":"",oa+="\n",Object.keys(zn).forEach((function(Bn){0!==Object.keys(zn[Bn]).length&&(oa+="\n`"+Bn+"` \n"+(Pd[ni]||Pd.default),Object.keys(zn[Bn]).forEach((function(Hn){oa+=Hn+": "+zn[Bn][Hn]+" \n"+(Pd[ni]||Pd.default)})))})),oa+="\n
\n";var ca=Object.values(zn).map((function(Bn){return Object.keys(Bn).some((function(Bn){return Bn.includes("*")}))})).some((function(Bn){return Bn}));return oa+=ca?" \nGit users that could not be automatically mapped are marked with `*`.\n"+(Pd[ni]||Pd.default)+"To map these users, refer to the instructions [here](https://docs.gitstream.cm/cm-file#config).\n \n":"",oa+=Xf}(Hn,Ci,Ps,Bn.provider,ts)).toString("base64")},tg[xd.sonarParser]=Me,tg[xd.mapToEnum]=function(Bn,Hn){oe(xd.mapToEnum,[Bn,Hn]);var zn=null==Hn?void 0:Hn.enum;if(zn&&Object.keys(zn).length)return zn[Bn]},tg[xd.extractSonarFindings]=function(Bn){return oe(xd.extractSonarFindings,[]),Me(Bn)},tg[xd.countTests]=function(Bn){return Bn.diff.files.filter((function(Bn){var Hn=Bn.original_file,zn=Bn.new_file;return dg.some((function(Bn){return Hn.includes(Bn)||zn.includes(Bn)}))})).reduce((function(Bn,Hn){var zn=function(Bn){var Hn=Bn.split("\n"),zn=[],ni=[];return Hn.forEach((function(Bn){if(Bn.startsWith("+")){var Hn=Bn.slice(1).trim();zn.push(Hn)}else if(Bn.startsWith("-")){var Ci=Bn.slice(1).trim();ni.push(Ci)}})),{additions:zn,deletions:ni}}(Hn.diff),ni=zn.deletions,Ci=zn.additions.filter((function(Bn){return hg.some((function(Hn){return Hn.test(Bn)}))})),ts=ni.filter((function(Bn){return hg.some((function(Hn){return Hn.test(Bn)}))})).length,Ps=Ci.length;return Bn+Ps-(ts>Ps?0:ts)}),0)},tg[wd.estimatedReviewTime]=sg,tg[wd.expertReviewer]=ag,tg[wd.explainExpertReviewer]=cg,tg[wd.codeExperts]=ug,tg[wd.explainCodeExperts]=lg,tg),fg,mg),yg=((rg={})[wd.estimatedReviewTime]=!0,rg[wd.expertReviewer]=!0,rg[wd.explainExpertReviewer]=!0,rg[wd.codeExperts]=!0,rg[wd.explainCodeExperts]=!0,rg.getJiraTicketDetails=!0,rg),vg={REPO:"repo",ORG:"org"},rr=function(Bn,Hn){return Bn.length&&Bn.map((function(Bn){return Hn.some((function(Hn){return(Bn||"").includes(Hn)}))})).every((function(Bn){return!0===Bn}))},tr=function(Bn){return Bn.replace(/\s+/g," ").replaceAll("'",'"').trim()};!function(Bn){Bn.allExtensions="allExtensions",Bn.includes="includes",Bn.allPassRegex="allPassRegex",Bn.allPathIncludes="allPathIncludes",Bn.filterRegex="filterRegex",Bn.includesRegex="includesRegex",Bn.true="true",Bn.allFormattingChange="allFormattingChange",Bn.filterList="filterList",Bn.filterListRegex="filterListRegex",Bn.isEveryInListRegex="isEveryInListRegex",Bn.isSomeInList="isSomeInList",Bn.isSomeInListRegex="isSomeInListRegex",Bn.isStringIncludes="isStringIncludes",Bn.isStringIncludesRegex="isStringIncludesRegex",Bn.isEveryInList="isEveryInList",Bn.extractExtensions="extractExtensions",Bn.isEveryExtension="isEveryExtension",Bn.isEveryExtensionRegex="isEveryExtensionRegex",Bn.filterFileDiffRegex="filterFileDiffRegex",Bn.isEveryLineInFileDiffRegex="isEveryLineInFileDiffRegex",Bn.isSomeLineInFileDiffRegex="isSomeLineInFileDiffRegex"}(ig||(ig={}));var Eg,bg,Dg,Cg=((ng={})[ig.filterList]=function(Bn,Hn){return!!Bn.length&&Bn.filter((function(Bn){return Hn.includes(Bn)}))},ng[ig.filterListRegex]=function(Bn,Hn){var zn=new RegExp(Hn);return!!Bn.length&&Bn.filter((function(Bn){return zn.test(Bn)}))},ng[ig.isEveryInListRegex]=function(Bn,Hn){var zn=new RegExp(Hn);return!!Bn.length&&Bn.map((function(Bn){return zn.test(Bn)})).every((function(Bn){return Bn}))},ng[ig.isSomeInList]=function(Bn,Hn){return!!Bn.length&&Bn.filter((function(Bn){return Hn.includes(Bn)})).some((function(Bn){return Bn}))},ng[ig.isSomeInListRegex]=function(Bn,Hn){var zn=new RegExp(Hn);return!!Bn.length&&Bn.map((function(Bn){return zn.test(Bn)})).some((function(Bn){return Bn}))},ng[ig.isStringIncludes]=function(Bn,Hn){return Hn.some((function(Hn){return Bn.includes(Hn)}))},ng[ig.isStringIncludesRegex]=function(Bn,Hn){return new RegExp(Hn).test(Bn)},ng[ig.isEveryInList]=function(Bn,Hn){return!!Bn.length&&Bn.filter((function(Bn){return Hn.includes(Bn)})).every((function(Bn){return Bn}))},ng[ig.extractExtensions]=function(Bn){return Bn.length&&Bn.map((function(Bn){return Bn.split(".").pop()})).filter((function(Bn,Hn,zn){return zn.indexOf(Bn)===Hn}))},ng[ig.isEveryExtension]=function(Bn,Hn){return rr(Bn.map((function(Bn){return Bn.split(".").pop()||""})).filter((function(Bn,Hn,zn){return zn.indexOf(Bn)===Hn})),Hn)},ng[ig.isEveryExtensionRegex]=function(Bn,Hn){var zn=new RegExp(Hn),ni=Bn.map((function(Bn){return Bn.split(".").pop()||""})).filter((function(Bn,Hn,zn){return zn.indexOf(Bn)===Hn}));return ni.length>0&&ni.map((function(Bn){return zn.test(Bn)})).every((function(Bn){return Bn}))},ng[ig.true]=function(){return!0},ng[ig.filterFileDiffRegex]=function(Bn,Hn){var zn=new RegExp(Hn,"m");return!!Bn.length&&Bn.filter((function(Bn){return zn.test(Bn.diff)}))},ng[ig.isEveryLineInFileDiffRegex]=function(Bn,Hn){var zn=new RegExp(Hn,"m");return!!Bn.length&&Bn.map((function(Bn){return zn.test(Bn.diff)})).every((function(Bn){return Bn}))},ng[ig.isSomeLineInFileDiffRegex]=function(Bn,Hn){var zn=new RegExp(Hn,"m");return!!Bn.length&&Bn.map((function(Bn){return zn.test(Bn.diff)})).some((function(Bn){return Bn}))},ng[ig.allExtensions]=function(Bn,Hn){return!!Bn.length&&rr(Bn.map((function(Bn){return Bn.split(".").pop()||""})),Hn)},ng[ig.allPassRegex]=function(Bn,Hn){var zn=new RegExp(Hn);return!!Bn.length&&Bn.map((function(Bn){return zn.test(Bn)})).every((function(Bn){return Bn}))},ng[ig.allPathIncludes]=rr,ng[ig.filterRegex]=function(Bn,Hn){var zn=new RegExp(Hn);return!!Bn.length&&Bn.filter((function(Bn){return zn.test(Bn)}))},ng[ig.includesRegex]=function(Bn,Hn){var zn=new RegExp(Hn);return!!Bn.length&&Bn.map((function(Bn){return zn.test(Bn)})).some((function(Bn){return Bn}))},ng[ig.allFormattingChange]=function(Bn){try{return Bn.every((function(Bn){var Hn=Bn.original_content,zn=Bn.original_file,ni=xa.format(Bn.new_content,{semi:!1,singleQuote:!0,filepath:Bn.new_file}),Ci=xa.format(Hn,{semi:!1,singleQuote:!0,filepath:zn});return tr(ni)===tr(Ci)}))}catch(Bn){return!1}},ng);!function(Bn){Bn.created="created",Bn.edited="edited"}(bg||(bg={})),function(Bn){Bn.open="opened",Bn.reopen="reopen",Bn.closed="closed",Bn.synchronize="synchronize",Bn.assigned="assigned",Bn.converted_to_draft="converted_to_draft",Bn.labeled="labeled",Bn.unlabeled="unlabeled",Bn.ready_for_review="ready_for_review",Bn.review_request_removed="review_request_removed",Bn.review_requested="review_requested",Bn.unassigned="unassigned",Bn.edited="edited",Bn.custom_merge="merged"}(Dg||(Dg={}));var Sg,xg,wg=((Eg={})["pull_request_"+Dg.open]="pr_created",Eg["pull_request_"+Dg.custom_merge]="merge",Eg["pull_request_"+Dg.synchronize]="commit",Eg["issue_comment_"+bg.created]="comment_added",Eg["issue_comment_"+bg.edited]="comment_edited",Eg["pull_request_"+Dg.labeled]="label_added",Eg["pull_request_"+Dg.unlabeled]="label_removed",Eg["pull_request_"+Dg.ready_for_review]="pr_ready_for_review",Eg["pull_request_"+Dg.closed]="pr_closed",Eg["pull_request_"+Dg.assigned]="pr_assigned",Eg["pull_request_"+Dg.reopen]="pr_reopen",Eg),Tg=new Set(["pull_request_"+Dg.custom_merge]),fr=function(Bn){return Tg.has(Bn)};!function(Bn){Bn.cbLeft="_GITSTREAM_CB_LEFT_",Bn.cbRight="_GITSTREAM_CB_RIGHT_",Bn.automations="automations",Bn.errors="errors",Bn.analytics="analytics",Bn.validatorErrors="validatorErrors"}(Sg||(Sg={})),function(Bn){Bn.FiltersValidator="FiltersValidator",Bn.ActionsValidator="ActionsValidator",Bn.FileStructureValidator="FileStructureValidator",Bn.SavedWordsValidator="SavedWordsValidator",Bn.ContextVariableValidator="ContextVariableValidator"}(xg||(xg={}));var kg,dr=function(Bn,Hn,zn){var ni,Ci,ts,Ps;if(!Bn)return!1;var u=function(Hn){var zn=function(Bn){if(null==Bn||!Bn.startsWith("r/"))return null;var Hn=$(Bn);return new RegExp(Hn)}(Hn);return zn?zn.test(Bn):Bn===Hn},aa=zn.triggers;if(!aa)return!1;var oa=null!=(ni=null==(Ci=aa.include)?void 0:Ci[Hn])?ni:[],ca=null!=(ts=null==(Ps=aa.exclude)?void 0:Ps[Hn])?ts:[],_a=null==ca?void 0:ca.some(u),xa=oa.length>0&&!oa.some(u);return!(!_a&&!xa)},Ig=function(){function e(Bn,Hn,zn,Ci,ts,aa,oa,_a){var xa=this;void 0===Ci&&(Ci=""),void 0===ts&&(ts={}),void 0===aa&&(aa=""),void 0===oa&&(oa=""),void 0===_a&&(_a=!1),this.renderedRuleFile={},this.context={},this.lastParserResult={},this.errors={},this.validatorErrors={},this.webhookEvent="",this.webhookEvents={},this.externalPlugins={filters:{org:{},repo:{}}},this.validateAutomationNames=function(Bn){try{(new ni.AutomationNamesValidator).validate({yamlFile:Bn})}catch(Bn){var Hn;Q({errorName:"syntax error",error:Bn},xa.isDebug),xa.errors=O({},xa.errors,((Hn={})[60]="syntax error",Hn))}},this.isDebug=zn,this.env=new ca.Environment(new ca.FileSystemLoader(__dirname),{autoescape:!1}),this.webhookEvent=Ci,this.webhookEvents=ts,this.isPlayground=_a,this.isPlayground||(this.externalPlugins=function(Bn,Hn){var zn={filters:{org:{},repo:{}}};return[{externalPath:Fc.join(Bn,"filters"),level:vg.REPO},{externalPath:Fc.join(Hn,"filters"),level:vg.ORG}].forEach((function(Bn){var Hn=Bn.externalPath,ni=Bn.level;Hn&&dc.existsSync(Hn)&&dc.readdirSync(Hn).forEach((function(Bn){var Ci=Fc.join(Hn,Bn);if(dc.existsSync(Ci)){Ga.execSync("npm init -y",{cwd:Ci});try{zn.filters[ni][Bn]=require(Ci)}catch(Hn){throw console.log("Failed to load filter: "+Bn+": "+Hn.message),new Error("Failed to load filter "+Bn+": "+Hn.message)}}}))})),zn}(aa,oa));var Ha=[].concat(Object.keys(this.externalPlugins.filters.org),Object.keys(this.externalPlugins.filters.repo)),so=[].concat(ni.validatorsConstants.JINJA_FILTERS,Object.keys(ni.validatorsConstants.VALID_FILTERS)),oo=Ps.intersection(Ha,so);if(oo.length)throw new Qf("Overrding native filters is not allowed","Overrding native filters is not allowed, the user filter"+(oo.length>1?"s":"")+" "+oo.join(", ")+" conflicts");var Jo=O({},Td,Ag,Cg),tc=O({},this.externalPlugins.filters.org,this.externalPlugins.filters.repo);Object.keys(Jo).forEach((function(Bn){xa.env.addFilter(Bn,Jo[Bn],yg[Bn])})),Object.keys(tc).forEach((function(Bn){var Hn,zn=tc[Bn]instanceof Function?Bn.toLowerCase().includes("async"):null!=(Hn=tc[Bn].async)&&Hn;xa.env.addFilter(Bn,function(Bn,Hn,zn){return void 0===zn&&(zn=!1),zn?R(_().mark((function t(){var zn,ni,Ci,ts=arguments;return _().wrap((function(Ps){for(;;)switch(Ps.prev=Ps.next){case 0:for(zn=ts.length,ni=new Array(zn),Ci=0;Ci "+gr(Hn)}({branch:Hn,file:Bn})),dc.readFileSync(ni?ty.cwd+"/"+zn+"/"+Bn:"./code/"+zn+"/"+Bn,"utf8")}catch(Hn){return Ur()&&console.error("Error in reading file "+ty.cwd+"/"+zn+"/"+Bn+".",Hn),""}},ct=function(Bn,Hn){it(Zr(Bn));var zn="cm"===(null==Hn?void 0:Hn.toLowerCase())?it(et("*.cm")):it(et(".cm/*.cm"));return it(Zr("-")),zn.split("\n").filter(Boolean)},ry=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps,aa;return _().wrap((function(oa){for(;;)switch(oa.prev=oa.next){case 0:ni={orgRulesToInclude:[],orgRulesToExclude:[]},Ci=_().mark((function e(){var Ci,aa,oa,ca,_a,xa;return _().wrap((function(Ga){for(;;)switch(Ga.prev=Ga.next){case 0:return oa=Ps[ts],Ga.next=3,hA(zn,Bn[oa],oa);case 3:_a=(null==(ca=Ga.sent)||null==(Ci=ca.config)?void 0:Ci.include_repositories)||[],xa=(null==ca||null==(aa=ca.config)?void 0:aa.ignore_repositories)||[],Ga.prev=6,_a.length&&(_a.some((function(Bn){return!!K(Hn,Bn)&&(ni.orgRulesToInclude.push(oa),!0)}))||ni.orgRulesToExclude.push(oa)),xa.forEach((function(Bn){K(Hn,Bn)&&ni.orgRulesToExclude.push(oa)})),Ga.next=15;break;case 11:return Ga.prev=11,Ga.t0=Ga.catch(6),Ga.next=15,sA(Ga.t0.message,60,zn,oa);case 15:case"end":return Ga.stop()}}),e,null,[[6,11]])})),ts=0,Ps=Object.keys(Bn);case 3:if(!(ts0)){Ci.next=4;break}return ni=zn.reduce((function(Hn,zn){var ni;return O({},Hn,((ni={})[zn]=st(zn,Bn),ni))}),{}),Ci.abrupt("return",ni);case 4:return Ci.abrupt("return",{});case 5:case"end":return Ci.stop()}}),e)})));return function(Hn,zn){return Bn.apply(this,arguments)}}(),dt=function(Bn){return Number(it((Hn=Bn,"git rev-list --count HEAD ^"+gr(Hn))).trim());var Hn},vt=function(Bn,Hn,zn){try{var ni=it(rt({refBranch:Hn,baseBranch:Bn,format:"%an",mergeCommitSha:zn})),Ci=it(rt({refBranch:Hn,baseBranch:Bn,format:"%ae",mergeCommitSha:zn})),ts=(null==ni?void 0:ni.trim())+" <"+(null==Ci?void 0:Ci.trim())+">";return Nr({fullAuthorName:ts,currBranch:it("git branch --show-current")}),{fullAuthorName:ts,authorName:ni,authorEmail:Ci}}catch(Bn){return console.log("error getting branch author name: "+Bn),{}}},ht=function(Bn,Hn,zn,ni){return it(ey),"cm"===(null==zn?void 0:zn.toLowerCase())?Boolean(it(tt({baseBranch:Hn,refBranch:Bn,file:"*.cm",mergeCommitSha:ni}))):Boolean(it(tt({baseBranch:Hn,refBranch:Bn,file:".cm/*.cm",mergeCommitSha:ni})))},mt=function(Bn,Hn){try{var zn=it(Kr({targetBranch:Bn,refBranch:Hn}));return Nr({conflicts:zn,rawCommand:Kr({targetBranch:Bn,refBranch:Hn})}),(null==zn?void 0:zn.split("\n").filter(Boolean).length)||0}catch(Bn){return Nr("error getting pr conflicts: : "+Bn),0}},gt=function(Bn,Hn,zn){return it(zn?"git show -m "+zn+" --format=%B --no-patch":"git log "+gr(Bn)+".."+gr(Hn)+" --format=%B").split("\n").filter((function(Bn){return""!==Bn.trim()}))},bt=function(Bn){try{dc.writeFileSync("./code/cache.json",JSON.stringify(Bn))}catch(Bn){console.log("error saving cache",Bn)}},yt=function(){try{var Bn=dc.readFileSync("./code/cache.json").toString();return JSON.parse(Bn)}catch(Bn){return console.warn("error loading from cache",Bn),{}}},xt=function(Bn,Hn,zn){var ni={org:zn.owner,repo:zn.repo,pullRequestNumber:zn.pullRequestNumber,branch:zn.branch,triggeredBy:zn.triggeredBy},Ci=function(Bn,Hn){var zn=Hn.reduce((function(Hn,zn){var ni,Ci,ts;return"/dev/null"===zn?Hn:O({},Hn,((ts={})[zn]=O({},{blame:(null==(ni=Bn.ds_blame)?void 0:ni[zn])||""},{activity:(null==(Ci=Bn.ds_activity)?void 0:Ci[zn])||""}),ts))}),{});return Object.keys(zn).reduce((function(Bn,Hn){var ni;return Object.keys(zn[Hn]).length?O({},Bn,((ni={})[Hn]=zn[Hn],ni)):Bn}),{})}(Bn,Hn);return{merge_dict:Bn.git_to_provider_user,pr_files:Ci,context:ni}},wt=function(Bn,Hn){var zn,ni=Hn.owner,Ci=Hn.repo,ts=Hn.pullRequestNumber;return"github"===(null==(zn=Bn.repo)?void 0:zn.provider)?"github.com/"+ni+"/"+Ci+"/pull/"+ts:"gitlab.com/"+ni+"/"+Ci+"/-/merge_requests/"+ts},iy=function(){var Bn=R(_().mark((function e(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa;return _().wrap((function(ca){for(;;)switch(ca.prev=ca.next){case 0:if(ca.prev=0,Bn.analytics_url){ca.next=3;break}return ca.abrupt("return");case 3:return oa={userId:(null==(Ci=ni.repo)?void 0:Ci.provider)+"-"+(null==(ts=ni.repo)?void 0:ts.pr_author),event:"action_filter",properties:O({filter_name:Hn},zn,{repo:Bn.repo,author:null==(Ps=ni.repo)?void 0:Ps.pr_author,git_org_name:Bn.owner,git_provider:null==(aa=ni.repo)?void 0:aa.provider,pr_url:wt(ni,Bn),is_org_level:Bn.hasCmRepo,trigger_id:Bn.trigger_id})},ca.next=6,so({method:"post",url:Bn.analytics_url,data:O({},oa,{type:"onCMFilterUse"}),headers:{"Content-type":"application/json"}});case 6:ca.next=13;break;case 8:if(ca.prev=8,ca.t0=ca.catch(0),!(ca.t0 instanceof Error)){ca.next=13;break}return ca.next=13,Vg("warn","Unable to call segment for pr "+(null==Bn?void 0:Bn.owner)+"/"+(null==Bn?void 0:Bn.repo)+"/"+(null==Bn?void 0:Bn.pullRequestNumber),Bn,{error:null==ca.t0?void 0:ca.t0.message},!0);case 13:case"end":return ca.stop()}}),e,null,[[0,8]])})));return function(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}(),py=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni;return _().wrap((function(Ci){for(;;)switch(Ci.prev=Ci.next){case 0:return ni=Object.keys(Bn||{}).map((function(ni){return iy(Hn,ni,Bn[ni],zn)})),Ci.next=3,Promise.all(ni);case 3:case"end":return Ci.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Et=function(Bn){return Buffer.from(Bn,"base64").toString("utf-8")},Rt=function(Bn){var Hn={"pr.description":"pr.description | nl2br | dump | safe"};return Object.keys(Hn).reduce((function(Bn,zn){return Bn.replaceAll(zn,Hn[zn])}),Bn)},Ot=function(Bn){return void 0===Bn&&(Bn=""),Bn.replace(/^upstream\//,"")},St=function(Bn){var Hn=Bn.file;return"git blame "+gr(Bn.branch)+" --line-porcelain -- "+gr(Hn)},jt=function(Bn){return Bn.reduce((function(Bn,Hn,zn){var ni=zn>0&&Bn.find((function(Bn){return Bn.git_user===Hn.git_user&&Bn.week===Hn.week}));return ni?(ni.changes+=Hn.changes,ni.week=Hn.week):Bn.push({git_user:Hn.git_user,week:Hn.week,changes:Hn.changes}),Bn}),[]).reduce((function(Bn,Hn){var zn,ni=Hn.git_user,Ci=Hn.week,ts=Hn.changes;return Bn[ni]=Bn[ni]||{},Bn[ni]=O({},Bn[ni],((zn={})["week_"+Ci]=ts,zn)),O({},Bn)}),{})},fy=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa;return _().wrap((function(ca){for(;;)switch(ca.prev=ca.next){case 0:if(Bn){ca.next=6;break}return ni=zn.owner,Ci=zn.repo,ts=zn.pullRequestNumber,Nr("Couldn't find git dates for author: "+Hn.branch.author+", base branch: "+Hn.branch.base+", head branch: "+Hn.branch.name),ca.next=5,Vg("info","No data returned from git in pr "+ni+"/"+Ci+"/"+ts,zn,{author:Hn.branch.author,baseBranch:Hn.branch.base,headBranch:Hn.branch.name},Lg);case 5:return ca.abrupt("return",0);case 6:return Ps=new Date,aa=new Date(Bn),oa=aa.getTime()-Ps.getTime(),ca.abrupt("return",Math.abs(Math.ceil(oa/864e5)));case 10:case"end":return ca.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Ct=function(Bn,Hn){var zn;return null==(zn=st(Bn,Hn))?void 0:zn.split(/\r\n|\r|\n/)},Tt=function(Bn){var Hn=aa(Bn),zn=Object.keys(Hn).reduce((function(Bn,zn){var ni;return O({},Bn,((ni={})[zn]=Hn[zn].dsBlame,ni))}),{});return Object.keys(Hn).forEach((function(Bn){Hn[Bn].dsBlame&&delete Hn[Bn].dsBlame})),{formattedBlame:Hn,dsBlame:zn}},Nt=function(Bn){var Hn=aa(Bn),zn=Object.keys(Hn).reduce((function(Bn,zn){var ni;return O({},Bn,((ni={})[zn]=Hn[zn].dsActivity,ni))}),{});return Object.keys(Hn).forEach((function(Bn){Hn[Bn].dsActivity&&delete Hn[Bn].dsActivity})),{formattedActivity:Hn,dsActivity:zn}},At=function(Bn,Hn){var zn;return null==(zn=it(function(Bn){var Hn=Bn.author;return"git log "+gr(Bn.branch)+" --author="+gr(Hn)+" --format='%as' | sort | uniq"}({author:Bn,branch:Hn})))||null==(zn=zn.split("\n"))?void 0:zn.filter(Boolean)},Bt=function(Bn,Hn,zn){var ni,Ci=it(function(Bn){var Hn=Bn.file,zn=Bn.since;return"git log --no-merges "+gr(Bn.branch)+" --since='"+zn+"' --pretty=tformat:'%an <%ae>,%ad' --numstat -- "+gr(Hn)}({branch:Bn,since:Hn,file:zn})),ts=function(Bn){for(var Hn=[],zn=0;zn")+1).replace("+","\\+")),ts=new RegExp(Ci,"g");return Nr("formatted author: "+Ci+". matches: "+(Bn.match(ts)||[]).length),(Bn.match(ts)||[]).length}catch(Bn){return console.log("Failed getting author lines of file "+zn+". "+Bn),0}}(Bn,Hn,zn),ts=function(Bn,Hn){var zn,ni;return function(Bn,Hn){var zn=Ct(Bn,Hn);return Nr("all rows: "+zn.length+". isEmpty: "+(""===(null==zn?void 0:zn[(null==zn?void 0:zn.length)-1]))),""===(null==zn?void 0:zn[(null==zn?void 0:zn.length)-1])}(Bn,Hn)?(null==(zn=Ct(Bn,Hn))?void 0:zn.length)-1:null==(ni=Ct(Bn,Hn))?void 0:ni.length}(zn,ni);return Nr("calculateStatisticsForBlame: "+Ci+", "+ts),{authorLines:Ci,allLinesCount:ts}}(ts,ni,zn,Hn);return O({},Bn,((Ci={})[ni]=(aa=oa.allLinesCount,(Ps=oa.authorLines)&&aa?Ps>=aa?100:Ps/aa*100:0),Ci.dsBlame=ts.replaceAll("\nauthor-mail"," author-mail"),Ci))}),{}),ni))}),{}))},It=function(Bn,Hn,zn){var ni,Ci;if(void 0===Bn&&(Bn=""),void 0===Hn&&(Hn=""),void 0===zn&&(zn=""),!Bn||"string"!=typeof Bn)return null;var ts=Bn.includes("@")?Bn.split("@")[0]:Bn;return(ts=(ts=null!=(ni=ts)&&ni.includes("+")?ts.split("+")[1]:ts).replace(/\./g,"")).includes(zn)||ts.includes(Hn)||(null==(Ci=Hn)?void 0:Ci.includes(ts))||zn===ts},Pt=function(Bn,Hn){if(void 0===Bn&&(Bn=""),void 0===Hn&&(Hn=""),!Hn||!Bn||"string"!=typeof Bn||"string"!=typeof Hn)return!1;var zn=Hn.trim().toLowerCase(),ni=Bn.trim().toLowerCase();return null==ni?void 0:ni.includes(zn)},Dt=function(Bn){return Bn.map((function(Bn){return{login:Bn.login,name:Bn.name}})).filter((function(Bn){return Bn.login||Bn.name}))},qt=function(Bn){return Object.keys(Bn).map((function(Hn){var zn=Hn.split(" ");return{email:zn.pop(),login:zn.join(""),name:zn[0],lastName:zn[1],fullName:zn.join(" "),reversedName:(zn[1]||"")+zn[0],contributor:Hn,contributions:Bn[Hn]}}))},Ty=function(){var Bn=R(_().mark((function e(Bn,Hn){var zn,ni,Ci,ts,Ps;return _().wrap((function(aa){for(;;)switch(aa.prev=aa.next){case 0:return aa.prev=0,ni=(null==Bn||null==(zn=Bn.config)||null==(zn=zn.user_mapping)?void 0:zn.reduce((function(Bn,Hn){var zn,ni,Ci=Object.keys(Hn)[0],ts=null!=(zn=Hn[Ci])?zn:Ci;return O({},Bn,((ni={})[Ci]=ts,ni))}),{}))||{},aa.abrupt("return",ni);case 5:return aa.prev=5,aa.t0=aa.catch(0),Ci=Hn.owner,ts=Hn.repo,Ps=Hn.pullRequestNumber,aa.next=10,Vg("info","Failed to parse user_mapping for pr "+Ci+"/"+ts+"/"+Ps,Hn,{error:null==aa.t0?void 0:aa.t0.message},!0);case 10:return console.log("Failed to parse user_mapping: ",aa.t0),aa.abrupt("return",{});case 12:case"end":return aa.stop()}}),e,null,[[0,5]])})));return function(Hn,zn){return Bn.apply(this,arguments)}}(),Gy=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca,_a;return _().wrap((function(xa){for(;;)switch(xa.prev=xa.next){case 0:return xa.prev=0,ni=Dt(Bn),Ci=qt(Hn),ts={},Ps=[],Ci.forEach((function(Bn){var Hn=ni.find((function(Hn){var zn=Hn.login;return It(Bn.email,zn,Hn.name)||Pt(Bn.login,zn)}));Bn.contributor&&Hn?ts[Bn.contributor]=Hn.login:Ps.push(Bn)})),aa=[].concat(Ps),Ps=[],aa.forEach((function(Bn){var Hn=ni.find((function(Hn){var zn=Hn.name;return Pt(Bn.fullName,zn)||Pt(Bn.reversedName,zn)}));Bn.contributor&&Hn?ts[Bn.contributor]=Hn.login:Ps.push(Bn)})),Ps.forEach((function(Bn){Bn.contributor&&(ts[Bn.contributor]=Bn.contributor)})),xa.abrupt("return",ts);case 13:return xa.prev=13,xa.t0=xa.catch(0),oa=zn.owner,ca=zn.repo,_a=zn.pullRequestNumber,xa.next=18,Vg("info","Failed to match contributors for pr: "+oa+"/"+ca+"/"+_a,zn,{error:null==xa.t0?void 0:xa.t0.message},!0);case 18:return console.error("Failed to match contributors",xa.t0),xa.abrupt("return",{});case 20:case"end":return xa.stop()}}),e,null,[[0,13]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Gt=function(Bn,Hn){return Object.keys(Hn).reduce((function(zn,ni){var Ci,ts;return O({},zn,((ts={})[ni]=null!=(Ci=Bn[ni])?Ci:Hn[ni],ts))}),{})},Vy=function(){var Bn=R(_().mark((function e(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa;return _().wrap((function(ca){for(;;)switch(ca.prev=ca.next){case 0:if(Ci=zn.owner,ts=zn.repo,Ps=zn.pullRequestNumber,Bn&&Hn){ca.next=4;break}return console.error("matchContributors failed: not provided data"),ca.abrupt("return",{});case 4:return ca.next=6,Gy(Bn,Hn,zn);case 6:return aa=ca.sent,ca.next=9,Ty(ni,zn);case 9:if(oa=ca.sent,!Object.keys(oa).length){ca.next=14;break}return ca.next=13,Vg("info","got contributors from config for pr: "+Ci+"/"+ts+"/"+Ps,zn,{userMappingFromConfig:oa},!0);case 13:return ca.abrupt("return",Gt(oa,aa));case 14:return ca.abrupt("return",aa);case 15:case"end":return ca.stop()}}),e)})));return function(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}(),Jt=function(Bn){var Hn=Bn.to;return Mg.every((function(Bn){return!Hn.match(Bn)}))},Wt=function(Bn,Hn,zn){return zn.map((function(zn){var ni=zn.from,Ci=zn.to,ts=zn.chunks;return{original_file:"/dev/null"===ni?"":ni,new_file:Ci,diff:null==ts?void 0:ts.reduce((function(Bn,Hn){var zn=Hn.changes;return Bn+Hn.content+"\n"+(null==zn?void 0:zn.map((function(Bn){return Bn.content})).join("\n"))}),""),original_content:at(ot(Hn,Bn),ni),new_content:at(Hn,Ci)}}))},Yt=function(Bn){return Bn.map((function(Bn){var Hn=Bn.to,zn=Bn.from;return{original_file:"/dev/null"===zn?"":zn,new_file:Hn,file:"/dev/null"!==Hn?Hn:zn,deletions:Bn.deletions,additions:Bn.additions}}))},Ht=function(Bn){return(null==Bn?void 0:Bn.reduce((function(Bn,Hn){return Bn+Hn.additions+Hn.deletions}),0))||0},Hy=function(){var Bn=R(_().mark((function e(Bn,Hn){var zn,ni,Ci,ts,Ps,aa;return _().wrap((function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.prev=0,ni=Lt(Bn.files,Bn.branch.base),Ci=Tt(ni),ts=Ci.formattedBlame,Ps=Ci.dsBlame,oa.next=5,fy((_a=void 0,void 0===(ca=Bn.branch.base)&&(ca="develop"),null==(_a=it("git rev-list --max-parents=0 "+gr({branch:ca}.branch)+' --format="%cs"'))||null==(_a=_a.split("\n"))?void 0:_a[1]),Bn,Hn);case 5:return aa=oa.sent,oa.next=8,fy(null==(zn=At(Bn.branch.author,Bn.branch.base))?void 0:zn[0],Bn,Hn);case 8:return oa.abrupt("return",{age:aa,author_age:oa.sent,blame:ts,ds_blame:Ps});case 12:return oa.prev=12,oa.t0=oa.catch(0),console.error("Error extracting blame: "+oa.t0.message),oa.next=17,sA("Failed to get git blame context.",41,Hn,"","Failed to get git blame context.: "+oa.t0.message);case 17:return oa.abrupt("return",{});case 18:case"end":return oa.stop()}var ca,_a}),e,null,[[0,12]])})));return function(Hn,zn){return Bn.apply(this,arguments)}}(),Av=function(){var Bn=R(_().mark((function e(Bn){var Hn,zn;return _().wrap((function(ni){for(;;)switch(ni.prev=ni.next){case 0:return ni.prev=0,Hn=Bn.files.reduce((function(Hn,zn){var ni;if("/dev/null"===zn)return Hn;var Ci=Bt(Bn.branch.base,"52 weeks ago",zn);return O({},Hn,((ni={})[zn]=O({},Ci.groupByWeek,{dsActivity:Ci.dsActivity}),ni))}),{}),zn=Nt(Hn),ni.abrupt("return",{git_activity:zn.formattedActivity,ds_activity:zn.dsActivity});case 6:return ni.prev=6,ni.t0=ni.catch(0),console.error("Error extrating activity: "+ni.t0.message),ni.next=11,sA("Failed to get git activity context.",42,Bn.payload,"","Failed to get git activity context.: "+ni.t0.message);case 11:return ni.abrupt("return",{});case 12:case"end":return ni.stop()}}),e,null,[[0,6]])})));return function(Hn){return Bn.apply(this,arguments)}}(),vv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa,ca;return _().wrap((function(_a){for(;;)switch(_a.prev=_a.next){case 0:if(ts=ni.owner,Ps=ni.repo,aa=ni.pullRequestNumber,oa=Qp(Bn),Hn&&(oa=null==(ca=oa)?void 0:ca.filter(Jt)),null!=(Ci=oa)&&Ci.length){_a.next=6;break}return _a.next=6,Vg("warn","No files changed in rules-engine context for pr: "+ts+"/"+Ps+"/"+aa,ni,{diffCommand:zn},Hn);case 6:return _a.abrupt("return",oa);case 7:case"end":return _a.stop()}}),e)})));return function(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}(),Kt=function(Bn,Hn){try{var zn,ni,Ci=function(Bn,Hn){var zn=Bn.branch.author,ni={author:zn,prevResults:[]};try{var Ci;if(!Object.keys((null==(Ci=Bn.repo)?void 0:Ci.contributors)||[]).includes(zn)){var ts=Object.keys(Hn).filter((function(zn){var ni;return Hn[zn]===(null==(ni=Bn.pr)?void 0:ni.author)}));ts.forEach((function(Hn){var zn=At(Hn,Bn.branch.base);1===zn.length&&(ni={author:Hn,prevResults:zn}),ts.length>1&&ni.prevResults.length<=zn.length&&(ni={author:Hn,prevResults:zn})}))}}catch(Bn){Nr("Failed getting the right author. Error: "+Bn)}return ni}(Bn,Hn);return Ci.author?{gitName:(null==(zn=Ci.author)?void 0:zn.split("<")[0].replace(/\s*$/,""))+"\n",gitEmail:"<"+(null==Ci||null==(ni=Ci.author)?void 0:ni.split("<")[1]),fullName:Ci.author}:Ci}catch(Bn){return Nr("Failed getting the right author. Error: "+Bn),{}}},Ev=function(){var Bn=R(_().mark((function e(Bn,Hn,zn,ni,Ci,ts){var Ps,aa,oa,ca,_a,xa,Ga,Ha,so,oo,Jo,tc,dc,Fc,Jc,Dp,kp,Qp,Up,qp;return _().wrap((function(Vp){for(;;)switch(Vp.prev=Vp.next){case 0:return void 0===ts&&(ts=!1),Ps=zn.owner,aa=zn.repo,oa=zn.pullRequestNumber,ca=zn.visibility,_a=zn.mergeCommitSha,Vp.prev=2,Vp.next=5,hA(zn,ni,Ci);case 5:return so=ut(Bn,Hn,Ha=Vp.sent,_a),oo=so.diff,Jo=so.diffCommand,Vp.next=9,vv(oo,ts,Jo,zn);case 9:return tc=Vp.sent,dc=dt(Bn),Fc=it(function(Bn){return"git shortlog "+gr(Bn)+" -s -n -e"}(Bn)).split("\n").reduce((function(Bn,Hn){var zn,ni=Hn.trim().split("\t"),Ci=ni[1];return O({},Bn,Ci&&((zn={})[Ci]=parseInt(ni[0]),zn))}),{}),Jc=vt(Bn,Hn,_a),(Dp={branch:{name:Hn,base:Bn,author:Jc.fullAuthorName,author_name:Jc.authorName,author_email:Jc.authorEmail,diff:{size:Ht(tc),files_metadata:Yt(tc)},num_of_commits:dc,commits:{messages:gt(Bn,Hn,_a)}},source:{diff:{files:Wt(Bn,Hn,tc)}},repo:{name:aa,contributors:Fc,owner:Ps,visibility:ca},files:tc.map((function(Bn){return Bn.to})),pr:O({},(Wp=zn.prContext,zp=void 0,Qf=void 0,Yf=void 0,Kf=void 0,Xf=void 0,Ad=void 0,O({},Wp,{checks:null==(zp=Wp.checks)?void 0:zp.map((function(Bn){return O({},Bn,{name:Et(Bn.name)})})),description:Et(Wp.description),general_comments:null==(Qf=Wp.general_comments)?void 0:Qf.map((function(Bn){return O({},Bn,{content:Et(Bn.content)})})),line_comments:null==(Yf=Wp.line_comments)?void 0:Yf.map((function(Bn){return O({},Bn,{content:Et(Bn.content)})})),comments:null==(Kf=Wp.comments)?void 0:Kf.map((function(Bn){return O({},Bn,{content:Et(Bn.content)})})),reviews:null==(Xf=Wp.reviews)?void 0:Xf.map((function(Bn){var Hn;return O({},Bn,{content:Et(Bn.content),conversations:null==(Hn=Bn.conversations)?void 0:Hn.map((function(Bn){return O({},Bn,{content:Et(Bn.content)})}))})})),conversations:null==(Ad=Wp.conversations)?void 0:Ad.map((function(Bn){return O({},Bn,{content:Et(Bn.content)})}))})),{repo:aa})}).pr=O({},Dp.pr,{conflicted_files_count:mt(Dp.pr.target,Dp.branch.name)}),Vp.next=17,Vy(Dp.pr.contributors,Dp.repo.contributors,zn,Ha);case 17:return Qp=Kt(Dp,kp=Vp.sent),Object.keys(Qp).length&&(Dp.branch.author=Qp.fullName,Dp.branch.author_name=Qp.gitName,Dp.branch.author_email=Qp.gitEmail),Nr("context.branch: "+JSON.stringify(Dp.branch,null,2)),Vp.next=23,Hy(Dp,zn);case 23:return Up=Vp.sent,Vp.next=26,Av(Dp);case 26:return Dp.repo=O({},Dp.repo,{provider:zn.source,git_to_provider_user:kp},Up,Vp.sent,{pr_author:null==(xa=Dp.pr)?void 0:xa.author}),Nr("context.repo: "+JSON.stringify(Dp.repo,null,2)),Jp=JSON.stringify({context:{repo:Dp.repo,files:Dp.files,branch:Dp.branch,pr:{contributors:null==(Ga=Dp.pr)?void 0:Ga.contributors}}}),qp=Buffer.from(Jp).toString("base64"),Vp.next=32,Vg("info","rules-engine context for pr: "+Ps+"/"+aa+"/"+oa,zn,{reducedContext:qp,diffCommand:Jo},Lg);case 32:return Vp.abrupt("return",Dp);case 35:return Vp.prev=35,Vp.t0=Vp.catch(2),console.error("Failed to get PR context: "+Vp.t0.message),Vp.next=40,Vg("error","Failed to get PR context.",zn,{error:null==Vp.t0?void 0:Vp.t0.message,ruleFile:Ci},!0);case 40:return Vp.next=42,sA("Failed to get PR context.",40,zn,Ci);case 42:return Vp.abrupt("return",{});case 43:case"end":return Vp.stop()}var Jp,Wp,zp,Qf,Yf,Kf,Xf,Ad}),e,null,[[2,35]])})));return function(Hn,zn,ni,Ci,ts,Ps){return Bn.apply(this,arguments)}}(),bv=/^.*#.*$/gm,Cv=/^\s*\n/gm,Sv=/-.*action( )*:.*/gi,xv=/-.*action.*: /gi,wv=/{[\s]+{|}[\s]+}/gi,Tv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(ni){for(;;)switch(ni.prev=ni.next){case 0:if(Bn.includes("automations:")){ni.next=3;break}return ni.next=3,sA("Missing `automations` keyword in *.cm",61,zn,Hn);case 3:case"end":return ni.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),kv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var Ci,ts,Ps;return _().wrap((function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(ts=Object.values(ni.validatorsConstants.SUPPORTED_ACTIONS_BY_PROVIDER[null!=(Ci=zn.source)?Ci:""]||ni.validatorsConstants.SUPPORTED_ACTIONS_BY_PROVIDER.default),!(Ps=Bn.filter((function(Bn){return!ts.includes(Bn)}))).length){aa.next=5;break}return aa.next=5,sA("The following actions are not supported: "+Ps.map((function(Bn){return"`"+Bn+"`"})).join(", ")+" [Supported actions](https://docs.gitstream.cm/automation-actions/)",62,zn,Hn);case 5:case"end":return aa.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Iv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(ni){for(;;)switch(ni.prev=ni.next){case 0:if(!Bn.match(wv)){ni.next=3;break}return ni.next=3,sA("There are spaces between the currly braces { { and } }",64,zn,Hn);case 3:case"end":return ni.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Bv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(Ci){for(;;)switch(Ci.prev=Ci.next){case 0:Bn.forEach(function(){var Bn=R(_().mark((function e(Bn){var Ci,ts,Ps;return _().wrap((function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(Ci=Bn.action,ts=Object.keys(Bn.args||{}),Ps=function(Bn){return ts.includes(Bn)},ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci]){aa.next=5;break}return aa.abrupt("return");case 5:if(!(ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].all?!ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].args.every(Ps):!ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].args.some(Ps))){aa.next=9;break}return aa.next=9,sA("Missing required args for action: `"+Ci+"`: ["+ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].args.filter((function(Bn){return!ts.includes(Bn)})).map((function(Bn){return""+Bn})).join(", ")+"]",65,zn,Hn);case 9:case"end":return aa.stop()}}),e)})));return function(Hn){return Bn.apply(this,arguments)}}());case 1:case"end":return Ci.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Fv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(Ci){for(;;)switch(Ci.prev=Ci.next){case 0:return Ci.abrupt("return",Bn.forEach(function(){var Bn=R(_().mark((function e(Bn){var Ci,ts;return _().wrap((function(Ps){for(;;)switch(Ps.prev=Ps.next){case 0:if(Ci=Bn.action,null==(ts=Object.keys(Bn.args||{}).filter((function(Bn){var Hn;return!(null!=(Hn=ni.validatorsConstants.SUPPORTED_ARGUMENTS_BY_ACTION[Ci])&&Hn.includes(Bn))})))||!ts.length){Ps.next=5;break}return Ps.next=5,sA("These arguments are not supported for `"+Ci+"`: ["+ts.map((function(Bn){return""+Bn})).join(", ")+"]",63,zn,Hn);case 5:case"end":return Ps.stop()}}),e)})));return function(Hn){return Bn.apply(this,arguments)}}()));case 1:case"end":return Ci.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Nv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci;return _().wrap((function(ts){for(;;)switch(ts.prev=ts.next){case 0:return ts.prev=0,ni=zr(Bn),Ci=Object.values(ni.automations).flatMap((function(Bn){return Bn.run})),ts.next=5,Fv(Ci,Hn,zn);case 5:return ts.next=7,Bv(Ci,Hn,zn);case 7:ts.next=13;break;case 9:return ts.prev=9,ts.t0=ts.catch(0),ts.next=13,sA(ts.t0,60,zn,Hn);case 13:case"end":return ts.stop()}}),e,null,[[0,9]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Ov=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(Ci){for(;;)switch(Ci.prev=Ci.next){case 0:Ci.prev=0,(new ni.SavedWordsValidator).validate({yamlFile:Bn}),Ci.next=8;break;case 4:return Ci.prev=4,Ci.t0=Ci.catch(0),Ci.next=8,sA(Ci.t0,60,zn,Hn);case 8:case"end":return Ci.stop()}}),e,null,[[0,4]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Mv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(Ci){for(;;)switch(Ci.prev=Ci.next){case 0:Ci.prev=0,(new ni.AutomationNamesValidator).validate({yamlFile:Bn}),Ci.next=8;break;case 4:return Ci.prev=4,Ci.t0=Ci.catch(0),Ci.next=8,sA(Ci.t0,60,zn,Hn);case 8:case"end":return Ci.stop()}}),e,null,[[0,4]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),OE=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts;return _().wrap((function(Ps){for(;;)switch(Ps.prev=Ps.next){case 0:return Ci=Bn.replace(bv,"").replace(Cv,""),Ps.next=3,Tv(Ci,Hn,zn);case 3:return Ps.next=5,Iv(Ci,Hn,zn);case 5:return ts=(null==(ni=Ci.match(Sv))?void 0:ni.map((function(Bn){return Bn.replace(xv,"").trim()})))||[],Ps.next=8,kv(ts,Hn,zn);case 8:return Ps.next=10,Nv(Ci,Hn,zn);case 10:return Ps.next=12,Ov(Bn,Hn,zn);case 12:return Ps.next=14,Mv(Bn,Hn,zn);case 14:case"end":return Ps.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),iD=["ds_blame","ds_activity"],eC=Fc.join(".cm","plugins"),tC=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps;return _().wrap((function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(Bn){aa.next=2;break}return aa.abrupt("return");case 2:return ni=Object.keys(Bn).filter((function(Hn){return Bn[Hn].passed})),Ci=ni.filter((function(Hn){return Bn[Hn].isManagedByTriggers})).length,ts=Ci>0,Ps=Object.keys(Bn).length,aa.next=8,Vg("info",ni.length+" out of "+Ps+" automations have passed for repo "+Hn,zn,{passedAutomations:ni.length,numOfManagedByTriggers:Ci,passedAutomationNames:ni,totalAutomations:Ps},ts);case 8:case"end":return aa.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),rC=function(){var Bn=R(_().mark((function e(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa,ca,_a,xa,Ga;return _().wrap((function(Ha){for(;;)switch(Ha.prev=Ha.next){case 0:return Ci=zn.repo,ts=zn.webhookEventName,Ps=zn.webhookEventNames,Ha.prev=1,Ha.next=4,OE(Bn,ni,zn);case 4:return aa=Ur(),oa=new Ig(Bn,Hn,Lg,ts,Ps,Fc.resolve(process.cwd(),ty.cwd,oA.DEFAULT,eC),Fc.resolve(process.cwd(),ty.cwd,oA.CM,"plugins"),aa),Ha.next=8,oa.parseStreams();case 8:return ca=Ha.sent,Ha.next=11,tC(null==ca?void 0:ca.automations,Ci,zn);case 11:return Ha.abrupt("return",ca);case 14:return Ha.prev=14,Ha.t0=Ha.catch(1),_a=zn.owner,xa=zn.repo,Ga=zn.pullRequestNumber,console.error("Failed to parse cm file",{ruleFile:ni,error:Ha.t0.message}),Ha.next=20,Vg("error","Failed to parse cm in pr "+_a+"/"+xa+"/"+Ga,zn,{error:null==Ha.t0?void 0:Ha.t0.message,rules:Bn,ruleFile:ni});case 20:return Ha.next=22,sA(Ha.t0,60,zn,ni);case 22:case"end":return Ha.stop()}}),e,null,[[1,14]])})));return function(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}(),bn=function(Bn){return O({},Bn,{repo:function(Bn,Hn){if(null==Bn)return{};var zn,ni,Ci={},ts=Object.keys(Bn);for(ni=0;ni=0||(Ci[zn]=Bn[zn]);return Ci}(Bn.repo||{},iD)})},yn=function(Bn){try{return Bn?Object.values(Bn.automations||{}).filter((function(Bn){return Bn.passed})).flatMap((function(Bn){return Bn.run.map((function(Bn){var Hn=Bn.args;return"- "+Bn.action+" "+Object.keys(Hn||{}).filter(Boolean).map((function(Bn){var zn,ni=Hn[Bn];return null!=(zn=ni)&&zn.toString().match(/^base64:*/g)&&(ni=function(Bn){if(Bn.match(/^base64:*/g)){var Hn=Bn.split("base64:")[1];return Et(Hn)}return Bn}(ni)),Bn+': "'+(ni?ni.toString().replace("\n","\\n"):"")+'"'})).join(" and ")}))})).join("\n"):""}catch(Hn){return console.log("[gitstream-core] | Failed to stringify parser results",{error:Hn,results:Bn}),"Failed to stringify parser results"}},nC=function(){var Bn=R(_().mark((function e(Bn){var Hn,zn,ni,Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha;return _().wrap((function(so){for(;;)switch(so.prev=so.next){case 0:return Hn=Bn.ruleFileContent,zn=Bn.payload,ni=Bn.baseBranch,Ci=Bn.refBranch,Ps=void 0===(ts=Bn.ruleFile)?"playground.cm":ts,aa=Bn.cloneRepoPath,oa={},so.prev=2,ty.cwd=aa,console.log("[gitstream-core] | build gitstream context for pr: "+zn.prContext.url),so.next=7,Ev(ni,Ci,zn,Hn,Ps,ht);case 7:return ca=so.sent,console.log("[gitstream-core] | successfuly get context for: "+zn.prContext.url+", attach expert reviewers"),_a=xt(ca.repo,ca.files,zn),console.log("[gitstream-core] | successfuly get expert reviewers for: "+zn.prContext.url),(oa=bn(ca)).repo=O({},oa.repo,{data_service:{expert_reviwer_request:_a}}),oa.branch.name=Ot(oa.branch.name),console.log("[gitstream-core] | convert rule file to string safe: "+zn.prContext.url),xa=Rt(Hn),console.log("[gitstream-core] | successfult convert rule file to string safe: "+zn.prContext.url+", parse rules"),so.next=19,rC(xa,oa,zn,Ps);case 19:return Ga=so.sent,console.log("[gitstream-core] | successfult parse rules for: "+zn.prContext.url+", stringify results",{results:Ga}),Ha=yn(Ga),so.abrupt("return",{results:Ha,context:oa,errors:Jr().stringifyErrors((null==Ga?void 0:Ga.errors)||{}),raw:Ga});case 25:return so.prev=25,so.t0=so.catch(2),console.error("[gitstream-core] | Failed to execute one rule file for: "+zn.prContext.url,so.t0),so.abrupt("return",{results:so.t0.message,context:oa,errors:so.t0.message,raw:{payload:zn}});case 29:case"end":return so.stop()}}),e,null,[[2,25]])})));return function(Hn){return Bn.apply(this,arguments)}}(),iC=function(){var Bn=R(_().mark((function e(Bn){var Hn,zn,ni,Ci,ts,Ps,aa;return _().wrap((function(oa){for(;;)switch(oa.prev=oa.next){case 0:return Hn=Bn.payload,ni=void 0===(zn=Bn.ruleFile)?"playground.cm":zn,Ci=Bn.cachedContext,ts=Rt(Bn.ruleFileContent),oa.next=4,rC(ts,Ci,Hn,ni);case 4:return aa=yn(Ps=oa.sent),oa.abrupt("return",{results:aa,context:Ci,errors:Jr().stringifyErrors((null==Ps?void 0:Ps.errors)||{}),raw:Ps});case 7:case"end":return oa.stop()}}),e)})));return function(Hn){return Bn.apply(this,arguments)}}(),sC=function(){var Bn=R(_().mark((function e(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha,so;return _().wrap((function(oo){for(;;)switch(oo.prev=oo.next){case 0:if(Ci=ni.owner,ts=ni.repo,Ps=ni.pullRequestNumber,oo.prev=1,aa=null==Bn?void 0:Bn.validatorErrors,oa=null==Bn?void 0:Bn.errors,!Object.keys(aa||{}).length){oo.next=14;break}ca=0,_a=Object.keys(aa);case 6:if(!(ca<_a.length)){oo.next=14;break}return Nr("Validator error - "+(xa=_a[ca])+": "+aa[xa]),oo.next=11,Vg("warn","Validator error - "+xa+" in pr "+Ci+"/"+ts+"/"+Ps,ni,{error:""+aa[xa],ruleFile:Hn,cmContent:zn},!0);case 11:ca++,oo.next=6;break;case 14:if(!Object.keys(oa||{}).length){oo.next=25;break}Ga=0,Ha=Object.keys(oa);case 16:if(!(Ga{"use strict";if(process.env.NODE_ENV==="production"){Bn.exports=zn(93437)}else{Bn.exports=zn(75970)}},49591:Bn=>{(function(Hn){if(true){Bn.exports=Hn()}else{var zn}})((function(){"use strict";var Bn=Object.getOwnPropertyNames;var __commonJS=(Hn,zn)=>function __require(){return zn||(0,Hn[Bn(Hn)[0]])((zn={exports:{}}).exports,zn),zn.exports};var Hn=__commonJS({"dist/_doc.js.umd.js"(Bn,Hn){var zn=Object.create;var ni=Object.defineProperty;var Ci=Object.getOwnPropertyDescriptor;var ts=Object.getOwnPropertyNames;var Ps=Object.getPrototypeOf;var aa=Object.prototype.hasOwnProperty;var __esm=(Bn,Hn)=>function __init(){return Bn&&(Hn=(0,Bn[ts(Bn)[0]])(Bn=0)),Hn};var __commonJS2=(Bn,Hn)=>function __require(){return Hn||(0,Bn[ts(Bn)[0]])((Hn={exports:{}}).exports,Hn),Hn.exports};var __export=(Bn,Hn)=>{for(var zn in Hn)ni(Bn,zn,{get:Hn[zn],enumerable:true})};var __copyProps=(Bn,Hn,zn,Ps)=>{if(Hn&&typeof Hn==="object"||typeof Hn==="function"){for(let oa of ts(Hn))if(!aa.call(Bn,oa)&&oa!==zn)ni(Bn,oa,{get:()=>Hn[oa],enumerable:!(Ps=Ci(Hn,oa))||Ps.enumerable})}return Bn};var __toESM=(Bn,Hn,Ci)=>(Ci=Bn!=null?zn(Ps(Bn)):{},__copyProps(Hn||!Bn||!Bn.__esModule?ni(Ci,"default",{value:Bn,enumerable:true}):Ci,Bn));var __toCommonJS=Bn=>__copyProps(ni({},"__esModule",{value:true}),Bn);var oa=__esm({""(){}});var ca=__commonJS2({"src/document/doc-builders.js"(Bn,Hn){"use strict";oa();function concat(Bn){if(false){}return{type:"concat",parts:Bn}}function indent(Bn){if(false){}return{type:"indent",contents:Bn}}function align(Bn,Hn){if(false){}return{type:"align",contents:Hn,n:Bn}}function group(Bn){let Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(false){}return{type:"group",id:Hn.id,contents:Bn,break:Boolean(Hn.shouldBreak),expandedStates:Hn.expandedStates}}function dedentToRoot(Bn){return align(Number.NEGATIVE_INFINITY,Bn)}function markAsRoot(Bn){return align({type:"root"},Bn)}function dedent(Bn){return align(-1,Bn)}function conditionalGroup(Bn,Hn){return group(Bn[0],Object.assign(Object.assign({},Hn),{},{expandedStates:Bn}))}function fill(Bn){if(false){}return{type:"fill",parts:Bn}}function ifBreak(Bn,Hn){let zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(false){}return{type:"if-break",breakContents:Bn,flatContents:Hn,groupId:zn.groupId}}function indentIfBreak(Bn,Hn){return{type:"indent-if-break",contents:Bn,groupId:Hn.groupId,negate:Hn.negate}}function lineSuffix(Bn){if(false){}return{type:"line-suffix",contents:Bn}}var zn={type:"line-suffix-boundary"};var ni={type:"break-parent"};var Ci={type:"trim"};var ts={type:"line",hard:true};var Ps={type:"line",hard:true,literal:true};var aa={type:"line"};var ca={type:"line",soft:true};var _a=concat([ts,ni]);var xa=concat([Ps,ni]);var Ga={type:"cursor",placeholder:Symbol("cursor")};function join(Bn,Hn){const zn=[];for(let ni=0;ni0){for(let Bn=0;Bn=0){return Bn.charAt(Hn+1)==="\n"?"crlf":"cr"}return"lf"}function convertEndOfLineToChars(Bn){switch(Bn){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function countEndOfLineChars(Bn,Hn){let zn;switch(Hn){case"\n":zn=/\n/g;break;case"\r":zn=/\r/g;break;case"\r\n":zn=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(Hn)}.`)}const ni=Bn.match(zn);return ni?ni.length:0}function normalizeEndOfLine(Bn){return Bn.replace(/\r\n?/g,"\n")}Hn.exports={guessEndOfLine:guessEndOfLine,convertEndOfLineToChars:convertEndOfLineToChars,countEndOfLineChars:countEndOfLineChars,normalizeEndOfLine:normalizeEndOfLine}}});var xa=__commonJS2({"src/utils/get-last.js"(Bn,Hn){"use strict";oa();var getLast=Bn=>Bn[Bn.length-1];Hn.exports=getLast}});function ansiRegex(){let{onlyFirst:Bn=false}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Hn=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(Hn,Bn?void 0:"g")}var Ga=__esm({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){oa()}});function stripAnsi(Bn){if(typeof Bn!=="string"){throw new TypeError(`Expected a \`string\`, got \`${typeof Bn}\``)}return Bn.replace(ansiRegex(),"")}var Ha=__esm({"node_modules/strip-ansi/index.js"(){oa();Ga()}});function isFullwidthCodePoint(Bn){if(!Number.isInteger(Bn)){return false}return Bn>=4352&&(Bn<=4447||Bn===9001||Bn===9002||11904<=Bn&&Bn<=12871&&Bn!==12351||12880<=Bn&&Bn<=19903||19968<=Bn&&Bn<=42182||43360<=Bn&&Bn<=43388||44032<=Bn&&Bn<=55203||63744<=Bn&&Bn<=64255||65040<=Bn&&Bn<=65049||65072<=Bn&&Bn<=65131||65281<=Bn&&Bn<=65376||65504<=Bn&&Bn<=65510||110592<=Bn&&Bn<=110593||127488<=Bn&&Bn<=127569||131072<=Bn&&Bn<=262141)}var so=__esm({"node_modules/is-fullwidth-code-point/index.js"(){oa()}});var oo=__commonJS2({"node_modules/emoji-regex/index.js"(Bn,Hn){"use strict";oa();Hn.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E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])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83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8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}});var Jo={};__export(Jo,{default:()=>stringWidth});function stringWidth(Bn){if(typeof Bn!=="string"||Bn.length===0){return 0}Bn=stripAnsi(Bn);if(Bn.length===0){return 0}Bn=Bn.replace((0,tc.default)()," ");let Hn=0;for(let zn=0;zn=127&&ni<=159){continue}if(ni>=768&&ni<=879){continue}if(ni>65535){zn++}Hn+=isFullwidthCodePoint(ni)?2:1}return Hn}var tc;var dc=__esm({"node_modules/string-width/index.js"(){oa();Ha();so();tc=__toESM(oo())}});var Fc=__commonJS2({"src/utils/get-string-width.js"(Bn,Hn){"use strict";oa();var zn=(dc(),__toCommonJS(Jo)).default;var ni=/[^\x20-\x7F]/;function getStringWidth(Bn){if(!Bn){return 0}if(!ni.test(Bn)){return Bn.length}return zn(Bn)}Hn.exports=getStringWidth}});var Jc=__commonJS2({"src/document/doc-utils.js"(Bn,Hn){"use strict";oa();var zn=xa();var{literalline:ni,join:Ci}=ca();var isConcat=Bn=>Array.isArray(Bn)||Bn&&Bn.type==="concat";var getDocParts=Bn=>{if(Array.isArray(Bn)){return Bn}if(Bn.type!=="concat"&&Bn.type!=="fill"){throw new Error("Expect doc type to be `concat` or `fill`.")}return Bn.parts};var ts={};function traverseDoc(Bn,Hn,zn,ni){const Ci=[Bn];while(Ci.length>0){const Bn=Ci.pop();if(Bn===ts){zn(Ci.pop());continue}if(zn){Ci.push(Bn,ts)}if(!Hn||Hn(Bn)!==false){if(isConcat(Bn)||Bn.type==="fill"){const Hn=getDocParts(Bn);for(let Bn=Hn.length,zn=Bn-1;zn>=0;--zn){Ci.push(Hn[zn])}}else if(Bn.type==="if-break"){if(Bn.flatContents){Ci.push(Bn.flatContents)}if(Bn.breakContents){Ci.push(Bn.breakContents)}}else if(Bn.type==="group"&&Bn.expandedStates){if(ni){for(let Hn=Bn.expandedStates.length,zn=Hn-1;zn>=0;--zn){Ci.push(Bn.expandedStates[zn])}}else{Ci.push(Bn.contents)}}else if(Bn.contents){Ci.push(Bn.contents)}}}}function mapDoc(Bn,Hn){const zn=new Map;return rec(Bn);function rec(Bn){if(zn.has(Bn)){return zn.get(Bn)}const Hn=process2(Bn);zn.set(Bn,Hn);return Hn}function process2(Bn){if(Array.isArray(Bn)){return Hn(Bn.map(rec))}if(Bn.type==="concat"||Bn.type==="fill"){const zn=Bn.parts.map(rec);return Hn(Object.assign(Object.assign({},Bn),{},{parts:zn}))}if(Bn.type==="if-break"){const zn=Bn.breakContents&&rec(Bn.breakContents);const ni=Bn.flatContents&&rec(Bn.flatContents);return Hn(Object.assign(Object.assign({},Bn),{},{breakContents:zn,flatContents:ni}))}if(Bn.type==="group"&&Bn.expandedStates){const zn=Bn.expandedStates.map(rec);const ni=zn[0];return Hn(Object.assign(Object.assign({},Bn),{},{contents:ni,expandedStates:zn}))}if(Bn.contents){const zn=rec(Bn.contents);return Hn(Object.assign(Object.assign({},Bn),{},{contents:zn}))}return Hn(Bn)}}function findInDoc(Bn,Hn,zn){let ni=zn;let Ci=false;function findInDocOnEnterFn(Bn){const zn=Hn(Bn);if(zn!==void 0){Ci=true;ni=zn}if(Ci){return false}}traverseDoc(Bn,findInDocOnEnterFn);return ni}function willBreakFn(Bn){if(Bn.type==="group"&&Bn.break){return true}if(Bn.type==="line"&&Bn.hard){return true}if(Bn.type==="break-parent"){return true}}function willBreak(Bn){return findInDoc(Bn,willBreakFn,false)}function breakParentGroup(Bn){if(Bn.length>0){const Hn=zn(Bn);if(!Hn.expandedStates&&!Hn.break){Hn.break="propagated"}}return null}function propagateBreaks(Bn){const Hn=new Set;const zn=[];function propagateBreaksOnEnterFn(Bn){if(Bn.type==="break-parent"){breakParentGroup(zn)}if(Bn.type==="group"){zn.push(Bn);if(Hn.has(Bn)){return false}Hn.add(Bn)}}function propagateBreaksOnExitFn(Bn){if(Bn.type==="group"){const Bn=zn.pop();if(Bn.break){breakParentGroup(zn)}}}traverseDoc(Bn,propagateBreaksOnEnterFn,propagateBreaksOnExitFn,true)}function removeLinesFn(Bn){if(Bn.type==="line"&&!Bn.hard){return Bn.soft?"":" "}if(Bn.type==="if-break"){return Bn.flatContents||""}return Bn}function removeLines(Bn){return mapDoc(Bn,removeLinesFn)}var isHardline=(Bn,Hn)=>Bn&&Bn.type==="line"&&Bn.hard&&Hn&&Hn.type==="break-parent";function stripDocTrailingHardlineFromDoc(Bn){if(!Bn){return Bn}if(isConcat(Bn)||Bn.type==="fill"){const Hn=getDocParts(Bn);while(Hn.length>1&&isHardline(...Hn.slice(-2))){Hn.length-=2}if(Hn.length>0){const Bn=stripDocTrailingHardlineFromDoc(zn(Hn));Hn[Hn.length-1]=Bn}return Array.isArray(Bn)?Hn:Object.assign(Object.assign({},Bn),{},{parts:Hn})}switch(Bn.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{const Hn=stripDocTrailingHardlineFromDoc(Bn.contents);return Object.assign(Object.assign({},Bn),{},{contents:Hn})}case"if-break":{const Hn=stripDocTrailingHardlineFromDoc(Bn.breakContents);const zn=stripDocTrailingHardlineFromDoc(Bn.flatContents);return Object.assign(Object.assign({},Bn),{},{breakContents:Hn,flatContents:zn})}}return Bn}function stripTrailingHardline(Bn){return stripDocTrailingHardlineFromDoc(cleanDoc(Bn))}function cleanDocFn(Bn){switch(Bn.type){case"fill":if(Bn.parts.every((Bn=>Bn===""))){return""}break;case"group":if(!Bn.contents&&!Bn.id&&!Bn.break&&!Bn.expandedStates){return""}if(Bn.contents.type==="group"&&Bn.contents.id===Bn.id&&Bn.contents.break===Bn.break&&Bn.contents.expandedStates===Bn.expandedStates){return Bn.contents}break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!Bn.contents){return""}break;case"if-break":if(!Bn.flatContents&&!Bn.breakContents){return""}break}if(!isConcat(Bn)){return Bn}const Hn=[];for(const ni of getDocParts(Bn)){if(!ni){continue}const[Bn,...Ci]=isConcat(ni)?getDocParts(ni):[ni];if(typeof Bn==="string"&&typeof zn(Hn)==="string"){Hn[Hn.length-1]+=Bn}else{Hn.push(Bn)}Hn.push(...Ci)}if(Hn.length===0){return""}if(Hn.length===1){return Hn[0]}return Array.isArray(Bn)?Hn:Object.assign(Object.assign({},Bn),{},{parts:Hn})}function cleanDoc(Bn){return mapDoc(Bn,(Bn=>cleanDocFn(Bn)))}function normalizeParts(Bn){const Hn=[];const ni=Bn.filter(Boolean);while(ni.length>0){const Bn=ni.shift();if(!Bn){continue}if(isConcat(Bn)){ni.unshift(...getDocParts(Bn));continue}if(Hn.length>0&&typeof zn(Hn)==="string"&&typeof Bn==="string"){Hn[Hn.length-1]+=Bn;continue}Hn.push(Bn)}return Hn}function normalizeDoc(Bn){return mapDoc(Bn,(Bn=>{if(Array.isArray(Bn)){return normalizeParts(Bn)}if(!Bn.parts){return Bn}return Object.assign(Object.assign({},Bn),{},{parts:normalizeParts(Bn.parts)})}))}function replaceEndOfLine(Bn){return mapDoc(Bn,(Bn=>typeof Bn==="string"&&Bn.includes("\n")?replaceTextEndOfLine(Bn):Bn))}function replaceTextEndOfLine(Bn){let Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ni;return Ci(Hn,Bn.split("\n")).parts}function canBreakFn(Bn){if(Bn.type==="line"){return true}}function canBreak(Bn){return findInDoc(Bn,canBreakFn,false)}Hn.exports={isConcat:isConcat,getDocParts:getDocParts,willBreak:willBreak,traverseDoc:traverseDoc,findInDoc:findInDoc,mapDoc:mapDoc,propagateBreaks:propagateBreaks,removeLines:removeLines,stripTrailingHardline:stripTrailingHardline,normalizeParts:normalizeParts,normalizeDoc:normalizeDoc,cleanDoc:cleanDoc,replaceTextEndOfLine:replaceTextEndOfLine,replaceEndOfLine:replaceEndOfLine,canBreak:canBreak}}});var Dp=__commonJS2({"src/document/doc-printer.js"(Bn,Hn){"use strict";oa();var{convertEndOfLineToChars:zn}=_a();var ni=xa();var Ci=Fc();var{fill:ts,cursor:Ps,indent:aa}=ca();var{isConcat:Ga,getDocParts:Ha}=Jc();var so;var oo=1;var Jo=2;function rootIndent(){return{value:"",length:0,queue:[]}}function makeIndent(Bn,Hn){return generateInd(Bn,{type:"indent"},Hn)}function makeAlign(Bn,Hn,zn){if(Hn===Number.NEGATIVE_INFINITY){return Bn.root||rootIndent()}if(Hn<0){return generateInd(Bn,{type:"dedent"},zn)}if(!Hn){return Bn}if(Hn.type==="root"){return Object.assign(Object.assign({},Bn),{},{root:Bn})}const ni=typeof Hn==="string"?"stringAlign":"numberAlign";return generateInd(Bn,{type:ni,n:Hn},zn)}function generateInd(Bn,Hn,zn){const ni=Hn.type==="dedent"?Bn.queue.slice(0,-1):[...Bn.queue,Hn];let Ci="";let ts=0;let Ps=0;let aa=0;for(const Bn of ni){switch(Bn.type){case"indent":flush();if(zn.useTabs){addTabs(1)}else{addSpaces(zn.tabWidth)}break;case"stringAlign":flush();Ci+=Bn.n;ts+=Bn.n.length;break;case"numberAlign":Ps+=1;aa+=Bn.n;break;default:throw new Error(`Unexpected type '${Bn.type}'`)}}flushSpaces();return Object.assign(Object.assign({},Bn),{},{value:Ci,length:ts,queue:ni});function addTabs(Bn){Ci+="\t".repeat(Bn);ts+=zn.tabWidth*Bn}function addSpaces(Bn){Ci+=" ".repeat(Bn);ts+=Bn}function flush(){if(zn.useTabs){flushTabs()}else{flushSpaces()}}function flushTabs(){if(Ps>0){addTabs(Ps)}resetLast()}function flushSpaces(){if(aa>0){addSpaces(aa)}resetLast()}function resetLast(){Ps=0;aa=0}}function trim(Bn){if(Bn.length===0){return 0}let Hn=0;while(Bn.length>0&&typeof ni(Bn)==="string"&&/^[\t ]*$/.test(ni(Bn))){Hn+=Bn.pop().length}if(Bn.length>0&&typeof ni(Bn)==="string"){const zn=ni(Bn).replace(/[\t ]*$/,"");Hn+=ni(Bn).length-zn.length;Bn[Bn.length-1]=zn}return Hn}function fits(Bn,Hn,zn,ts,Ps){let aa=Hn.length;const oa=[Bn];const ca=[];while(zn>=0){if(oa.length===0){if(aa===0){return true}oa.push(Hn[--aa]);continue}const{mode:Bn,doc:_a}=oa.pop();if(typeof _a==="string"){ca.push(_a);zn-=Ci(_a)}else if(Ga(_a)||_a.type==="fill"){const Hn=Ha(_a);for(let zn=Hn.length-1;zn>=0;zn--){oa.push({mode:Bn,doc:Hn[zn]})}}else{switch(_a.type){case"indent":case"align":case"indent-if-break":case"label":oa.push({mode:Bn,doc:_a.contents});break;case"trim":zn+=trim(ca);break;case"group":{if(Ps&&_a.break){return false}const Hn=_a.break?oo:Bn;const zn=_a.expandedStates&&Hn===oo?ni(_a.expandedStates):_a.contents;oa.push({mode:Hn,doc:zn});break}case"if-break":{const Hn=_a.groupId?so[_a.groupId]||Jo:Bn;const zn=Hn===oo?_a.breakContents:_a.flatContents;if(zn){oa.push({mode:Bn,doc:zn})}break}case"line":if(Bn===oo||_a.hard){return true}if(!_a.soft){ca.push(" ");zn--}break;case"line-suffix":ts=true;break;case"line-suffix-boundary":if(ts){return false}break}}}return false}function printDocToString(Bn,Hn){so={};const oa=Hn.printWidth;const ca=zn(Hn.endOfLine);let _a=0;const xa=[{ind:rootIndent(),mode:oo,doc:Bn}];const tc=[];let dc=false;const Fc=[];while(xa.length>0){const{ind:Bn,mode:zn,doc:Jc}=xa.pop();if(typeof Jc==="string"){const Bn=ca!=="\n"?Jc.replace(/\n/g,ca):Jc;tc.push(Bn);_a+=Ci(Bn)}else if(Ga(Jc)){const Hn=Ha(Jc);for(let ni=Hn.length-1;ni>=0;ni--){xa.push({ind:Bn,mode:zn,doc:Hn[ni]})}}else{switch(Jc.type){case"cursor":tc.push(Ps.placeholder);break;case"indent":xa.push({ind:makeIndent(Bn,Hn),mode:zn,doc:Jc.contents});break;case"align":xa.push({ind:makeAlign(Bn,Jc.n,Hn),mode:zn,doc:Jc.contents});break;case"trim":_a-=trim(tc);break;case"group":switch(zn){case Jo:if(!dc){xa.push({ind:Bn,mode:Jc.break?oo:Jo,doc:Jc.contents});break}case oo:{dc=false;const Hn={ind:Bn,mode:Jo,doc:Jc.contents};const zn=oa-_a;const Ci=Fc.length>0;if(!Jc.break&&fits(Hn,xa,zn,Ci)){xa.push(Hn)}else{if(Jc.expandedStates){const Hn=ni(Jc.expandedStates);if(Jc.break){xa.push({ind:Bn,mode:oo,doc:Hn});break}else{for(let ni=1;ni=Jc.expandedStates.length){xa.push({ind:Bn,mode:oo,doc:Hn});break}else{const Hn=Jc.expandedStates[ni];const ts={ind:Bn,mode:Jo,doc:Hn};if(fits(ts,xa,zn,Ci)){xa.push(ts);break}}}}}else{xa.push({ind:Bn,mode:oo,doc:Jc.contents})}}break}}if(Jc.id){so[Jc.id]=ni(xa).mode}break;case"fill":{const Hn=oa-_a;const{parts:ni}=Jc;if(ni.length===0){break}const[Ci,Ps]=ni;const aa={ind:Bn,mode:Jo,doc:Ci};const ca={ind:Bn,mode:oo,doc:Ci};const Ga=fits(aa,[],Hn,Fc.length>0,true);if(ni.length===1){if(Ga){xa.push(aa)}else{xa.push(ca)}break}const Ha={ind:Bn,mode:Jo,doc:Ps};const so={ind:Bn,mode:oo,doc:Ps};if(ni.length===2){if(Ga){xa.push(Ha,aa)}else{xa.push(so,ca)}break}ni.splice(0,2);const tc={ind:Bn,mode:zn,doc:ts(ni)};const dc=ni[0];const Dp={ind:Bn,mode:Jo,doc:[Ci,Ps,dc]};const kp=fits(Dp,[],Hn,Fc.length>0,true);if(kp){xa.push(tc,Ha,aa)}else if(Ga){xa.push(tc,so,aa)}else{xa.push(tc,so,ca)}break}case"if-break":case"indent-if-break":{const Hn=Jc.groupId?so[Jc.groupId]:zn;if(Hn===oo){const Hn=Jc.type==="if-break"?Jc.breakContents:Jc.negate?Jc.contents:aa(Jc.contents);if(Hn){xa.push({ind:Bn,mode:zn,doc:Hn})}}if(Hn===Jo){const Hn=Jc.type==="if-break"?Jc.flatContents:Jc.negate?aa(Jc.contents):Jc.contents;if(Hn){xa.push({ind:Bn,mode:zn,doc:Hn})}}break}case"line-suffix":Fc.push({ind:Bn,mode:zn,doc:Jc.contents});break;case"line-suffix-boundary":if(Fc.length>0){xa.push({ind:Bn,mode:zn,doc:{type:"line",hard:true}})}break;case"line":switch(zn){case Jo:if(!Jc.hard){if(!Jc.soft){tc.push(" ");_a+=1}break}else{dc=true}case oo:if(Fc.length>0){xa.push({ind:Bn,mode:zn,doc:Jc},...Fc.reverse());Fc.length=0;break}if(Jc.literal){if(Bn.root){tc.push(ca,Bn.root.value);_a=Bn.root.length}else{tc.push(ca);_a=0}}else{_a-=trim(tc);tc.push(ca+Bn.value);_a=Bn.length}break}break;case"label":xa.push({ind:Bn,mode:zn,doc:Jc.contents});break;default:}}if(xa.length===0&&Fc.length>0){xa.push(...Fc.reverse());Fc.length=0}}const Jc=tc.indexOf(Ps.placeholder);if(Jc!==-1){const Bn=tc.indexOf(Ps.placeholder,Jc+1);const Hn=tc.slice(0,Jc).join("");const zn=tc.slice(Jc+1,Bn).join("");const ni=tc.slice(Bn+1).join("");return{formatted:Hn+zn+ni,cursorNodeStart:Hn.length,cursorNodeText:zn}}return{formatted:tc.join("")}}Hn.exports={printDocToString:printDocToString}}});var kp=__commonJS2({"src/document/doc-debug.js"(Bn,Hn){"use strict";oa();var{isConcat:zn,getDocParts:ni}=Jc();function flattenDoc(Bn){if(!Bn){return""}if(zn(Bn)){const Hn=[];for(const Ci of ni(Bn)){if(zn(Ci)){Hn.push(...flattenDoc(Ci).parts)}else{const Bn=flattenDoc(Ci);if(Bn!==""){Hn.push(Bn)}}}return{type:"concat",parts:Hn}}if(Bn.type==="if-break"){return Object.assign(Object.assign({},Bn),{},{breakContents:flattenDoc(Bn.breakContents),flatContents:flattenDoc(Bn.flatContents)})}if(Bn.type==="group"){return Object.assign(Object.assign({},Bn),{},{contents:flattenDoc(Bn.contents),expandedStates:Bn.expandedStates&&Bn.expandedStates.map(flattenDoc)})}if(Bn.type==="fill"){return{type:"fill",parts:Bn.parts.map(flattenDoc)}}if(Bn.contents){return Object.assign(Object.assign({},Bn),{},{contents:flattenDoc(Bn.contents)})}return Bn}function printDocToDebug(Bn){const Hn=Object.create(null);const Ci=new Set;return printDoc(flattenDoc(Bn));function printDoc(Bn,Hn,Ci){if(typeof Bn==="string"){return JSON.stringify(Bn)}if(zn(Bn)){const Hn=ni(Bn).map(printDoc).filter(Boolean);return Hn.length===1?Hn[0]:`[${Hn.join(", ")}]`}if(Bn.type==="line"){const zn=Array.isArray(Ci)&&Ci[Hn+1]&&Ci[Hn+1].type==="break-parent";if(Bn.literal){return zn?"literalline":"literallineWithoutBreakParent"}if(Bn.hard){return zn?"hardline":"hardlineWithoutBreakParent"}if(Bn.soft){return"softline"}return"line"}if(Bn.type==="break-parent"){const Bn=Array.isArray(Ci)&&Ci[Hn-1]&&Ci[Hn-1].type==="line"&&Ci[Hn-1].hard;return Bn?void 0:"breakParent"}if(Bn.type==="trim"){return"trim"}if(Bn.type==="indent"){return"indent("+printDoc(Bn.contents)+")"}if(Bn.type==="align"){return Bn.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+printDoc(Bn.contents)+")":Bn.n<0?"dedent("+printDoc(Bn.contents)+")":Bn.n.type==="root"?"markAsRoot("+printDoc(Bn.contents)+")":"align("+JSON.stringify(Bn.n)+", "+printDoc(Bn.contents)+")"}if(Bn.type==="if-break"){return"ifBreak("+printDoc(Bn.breakContents)+(Bn.flatContents?", "+printDoc(Bn.flatContents):"")+(Bn.groupId?(!Bn.flatContents?', ""':"")+`, { groupId: ${printGroupId(Bn.groupId)} }`:"")+")"}if(Bn.type==="indent-if-break"){const Hn=[];if(Bn.negate){Hn.push("negate: true")}if(Bn.groupId){Hn.push(`groupId: ${printGroupId(Bn.groupId)}`)}const zn=Hn.length>0?`, { ${Hn.join(", ")} }`:"";return`indentIfBreak(${printDoc(Bn.contents)}${zn})`}if(Bn.type==="group"){const Hn=[];if(Bn.break&&Bn.break!=="propagated"){Hn.push("shouldBreak: true")}if(Bn.id){Hn.push(`id: ${printGroupId(Bn.id)}`)}const zn=Hn.length>0?`, { ${Hn.join(", ")} }`:"";if(Bn.expandedStates){return`conditionalGroup([${Bn.expandedStates.map((Bn=>printDoc(Bn))).join(",")}]${zn})`}return`group(${printDoc(Bn.contents)}${zn})`}if(Bn.type==="fill"){return`fill([${Bn.parts.map((Bn=>printDoc(Bn))).join(", ")}])`}if(Bn.type==="line-suffix"){return"lineSuffix("+printDoc(Bn.contents)+")"}if(Bn.type==="line-suffix-boundary"){return"lineSuffixBoundary"}if(Bn.type==="label"){return`label(${JSON.stringify(Bn.label)}, ${printDoc(Bn.contents)})`}throw new Error("Unknown doc type "+Bn.type)}function printGroupId(Bn){if(typeof Bn!=="symbol"){return JSON.stringify(String(Bn))}if(Bn in Hn){return Hn[Bn]}const zn=String(Bn).slice(7,-1)||"symbol";for(let ni=0;;ni++){const ts=zn+(ni>0?` #${ni}`:"");if(!Ci.has(ts)){Ci.add(ts);return Hn[Bn]=`Symbol.for(${JSON.stringify(ts)})`}}}}Hn.exports={printDocToDebug:printDocToDebug}}});oa();Hn.exports={builders:ca(),printer:Dp(),utils:Jc(),debug:kp()}}});return Hn()}))},56929:(Bn,Hn,zn)=>{"use strict";var ni=Object.getOwnPropertyNames;var __commonJS=(Bn,Hn)=>function __require(){return Hn||(0,Bn[ni(Bn)[0]])((Hn={exports:{}}).exports,Hn),Hn.exports};var Ci=__commonJS({"node_modules/core-js/internals/global.js"(Bn,Hn){var check=function(Bn){return Bn&&Bn.Math==Math&&Bn};Hn.exports=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof global=="object"&&global)||function(){return this}()||Function("return this")()}});var ts=__commonJS({"node_modules/core-js/internals/fails.js"(Bn,Hn){Hn.exports=function(Bn){try{return!!Bn()}catch(Bn){return true}}}});var Ps=__commonJS({"node_modules/core-js/internals/descriptors.js"(Bn,Hn){var zn=ts();Hn.exports=!zn((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}))}});var aa=__commonJS({"node_modules/core-js/internals/function-bind-native.js"(Bn,Hn){var zn=ts();Hn.exports=!zn((function(){var Bn=function(){}.bind();return typeof Bn!="function"||Bn.hasOwnProperty("prototype")}))}});var oa=__commonJS({"node_modules/core-js/internals/function-call.js"(Bn,Hn){var zn=aa();var ni=Function.prototype.call;Hn.exports=zn?ni.bind(ni):function(){return ni.apply(ni,arguments)}}});var ca=__commonJS({"node_modules/core-js/internals/object-property-is-enumerable.js"(Bn){"use strict";var Hn={}.propertyIsEnumerable;var zn=Object.getOwnPropertyDescriptor;var ni=zn&&!Hn.call({1:2},1);Bn.f=ni?function propertyIsEnumerable(Bn){var Hn=zn(this,Bn);return!!Hn&&Hn.enumerable}:Hn}});var _a=__commonJS({"node_modules/core-js/internals/create-property-descriptor.js"(Bn,Hn){Hn.exports=function(Bn,Hn){return{enumerable:!(Bn&1),configurable:!(Bn&2),writable:!(Bn&4),value:Hn}}}});var xa=__commonJS({"node_modules/core-js/internals/function-uncurry-this.js"(Bn,Hn){var zn=aa();var ni=Function.prototype;var Ci=ni.call;var ts=zn&&ni.bind.bind(Ci,Ci);Hn.exports=zn?ts:function(Bn){return function(){return Ci.apply(Bn,arguments)}}}});var Ga=__commonJS({"node_modules/core-js/internals/classof-raw.js"(Bn,Hn){var zn=xa();var ni=zn({}.toString);var Ci=zn("".slice);Hn.exports=function(Bn){return Ci(ni(Bn),8,-1)}}});var Ha=__commonJS({"node_modules/core-js/internals/indexed-object.js"(Bn,Hn){var zn=xa();var ni=ts();var Ci=Ga();var Ps=Object;var aa=zn("".split);Hn.exports=ni((function(){return!Ps("z").propertyIsEnumerable(0)}))?function(Bn){return Ci(Bn)=="String"?aa(Bn,""):Ps(Bn)}:Ps}});var so=__commonJS({"node_modules/core-js/internals/is-null-or-undefined.js"(Bn,Hn){Hn.exports=function(Bn){return Bn===null||Bn===void 0}}});var oo=__commonJS({"node_modules/core-js/internals/require-object-coercible.js"(Bn,Hn){var zn=so();var ni=TypeError;Hn.exports=function(Bn){if(zn(Bn))throw ni("Can't call method on "+Bn);return Bn}}});var Jo=__commonJS({"node_modules/core-js/internals/to-indexed-object.js"(Bn,Hn){var zn=Ha();var ni=oo();Hn.exports=function(Bn){return zn(ni(Bn))}}});var tc=__commonJS({"node_modules/core-js/internals/document-all.js"(Bn,Hn){var zn=typeof document=="object"&&document.all;var ni=typeof zn=="undefined"&&zn!==void 0;Hn.exports={all:zn,IS_HTMLDDA:ni}}});var dc=__commonJS({"node_modules/core-js/internals/is-callable.js"(Bn,Hn){var zn=tc();var ni=zn.all;Hn.exports=zn.IS_HTMLDDA?function(Bn){return typeof Bn=="function"||Bn===ni}:function(Bn){return typeof Bn=="function"}}});var Fc=__commonJS({"node_modules/core-js/internals/is-object.js"(Bn,Hn){var zn=dc();var ni=tc();var Ci=ni.all;Hn.exports=ni.IS_HTMLDDA?function(Bn){return typeof Bn=="object"?Bn!==null:zn(Bn)||Bn===Ci}:function(Bn){return typeof Bn=="object"?Bn!==null:zn(Bn)}}});var Jc=__commonJS({"node_modules/core-js/internals/get-built-in.js"(Bn,Hn){var zn=Ci();var ni=dc();var aFunction=function(Bn){return ni(Bn)?Bn:void 0};Hn.exports=function(Bn,Hn){return arguments.length<2?aFunction(zn[Bn]):zn[Bn]&&zn[Bn][Hn]}}});var Dp=__commonJS({"node_modules/core-js/internals/object-is-prototype-of.js"(Bn,Hn){var zn=xa();Hn.exports=zn({}.isPrototypeOf)}});var kp=__commonJS({"node_modules/core-js/internals/engine-user-agent.js"(Bn,Hn){var zn=Jc();Hn.exports=zn("navigator","userAgent")||""}});var Qp=__commonJS({"node_modules/core-js/internals/engine-v8-version.js"(Bn,Hn){var zn=Ci();var ni=kp();var ts=zn.process;var Ps=zn.Deno;var aa=ts&&ts.versions||Ps&&Ps.version;var oa=aa&&aa.v8;var ca;var _a;if(oa){ca=oa.split(".");_a=ca[0]>0&&ca[0]<4?1:+(ca[0]+ca[1])}if(!_a&&ni){ca=ni.match(/Edge\/(\d+)/);if(!ca||ca[1]>=74){ca=ni.match(/Chrome\/(\d+)/);if(ca)_a=+ca[1]}}Hn.exports=_a}});var Up=__commonJS({"node_modules/core-js/internals/symbol-constructor-detection.js"(Bn,Hn){var zn=Qp();var ni=ts();Hn.exports=!!Object.getOwnPropertySymbols&&!ni((function(){var Bn=Symbol();return!String(Bn)||!(Object(Bn)instanceof Symbol)||!Symbol.sham&&zn&&zn<41}))}});var qp=__commonJS({"node_modules/core-js/internals/use-symbol-as-uid.js"(Bn,Hn){var zn=Up();Hn.exports=zn&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}});var Vp=__commonJS({"node_modules/core-js/internals/is-symbol.js"(Bn,Hn){var zn=Jc();var ni=dc();var Ci=Dp();var ts=qp();var Ps=Object;Hn.exports=ts?function(Bn){return typeof Bn=="symbol"}:function(Bn){var Hn=zn("Symbol");return ni(Hn)&&Ci(Hn.prototype,Ps(Bn))}}});var Jp=__commonJS({"node_modules/core-js/internals/try-to-string.js"(Bn,Hn){var zn=String;Hn.exports=function(Bn){try{return zn(Bn)}catch(Bn){return"Object"}}}});var Wp=__commonJS({"node_modules/core-js/internals/a-callable.js"(Bn,Hn){var zn=dc();var ni=Jp();var Ci=TypeError;Hn.exports=function(Bn){if(zn(Bn))return Bn;throw Ci(ni(Bn)+" is not a function")}}});var zp=__commonJS({"node_modules/core-js/internals/get-method.js"(Bn,Hn){var zn=Wp();var ni=so();Hn.exports=function(Bn,Hn){var Ci=Bn[Hn];return ni(Ci)?void 0:zn(Ci)}}});var Qf=__commonJS({"node_modules/core-js/internals/ordinary-to-primitive.js"(Bn,Hn){var zn=oa();var ni=dc();var Ci=Fc();var ts=TypeError;Hn.exports=function(Bn,Hn){var Ps,aa;if(Hn==="string"&&ni(Ps=Bn.toString)&&!Ci(aa=zn(Ps,Bn)))return aa;if(ni(Ps=Bn.valueOf)&&!Ci(aa=zn(Ps,Bn)))return aa;if(Hn!=="string"&&ni(Ps=Bn.toString)&&!Ci(aa=zn(Ps,Bn)))return aa;throw ts("Can't convert object to primitive value")}}});var Yf=__commonJS({"node_modules/core-js/internals/is-pure.js"(Bn,Hn){Hn.exports=false}});var Kf=__commonJS({"node_modules/core-js/internals/define-global-property.js"(Bn,Hn){var zn=Ci();var ni=Object.defineProperty;Hn.exports=function(Bn,Hn){try{ni(zn,Bn,{value:Hn,configurable:true,writable:true})}catch(ni){zn[Bn]=Hn}return Hn}}});var Xf=__commonJS({"node_modules/core-js/internals/shared-store.js"(Bn,Hn){var zn=Ci();var ni=Kf();var ts="__core-js_shared__";var Ps=zn[ts]||ni(ts,{});Hn.exports=Ps}});var Ad=__commonJS({"node_modules/core-js/internals/shared.js"(Bn,Hn){var zn=Yf();var ni=Xf();(Hn.exports=function(Bn,Hn){return ni[Bn]||(ni[Bn]=Hn!==void 0?Hn:{})})("versions",[]).push({version:"3.26.1",mode:zn?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}});var Cd=__commonJS({"node_modules/core-js/internals/to-object.js"(Bn,Hn){var zn=oo();var ni=Object;Hn.exports=function(Bn){return ni(zn(Bn))}}});var Sd=__commonJS({"node_modules/core-js/internals/has-own-property.js"(Bn,Hn){var zn=xa();var ni=Cd();var Ci=zn({}.hasOwnProperty);Hn.exports=Object.hasOwn||function hasOwn(Bn,Hn){return Ci(ni(Bn),Hn)}}});var xd=__commonJS({"node_modules/core-js/internals/uid.js"(Bn,Hn){var zn=xa();var ni=0;var Ci=Math.random();var ts=zn(1..toString);Hn.exports=function(Bn){return"Symbol("+(Bn===void 0?"":Bn)+")_"+ts(++ni+Ci,36)}}});var wd=__commonJS({"node_modules/core-js/internals/well-known-symbol.js"(Bn,Hn){var zn=Ci();var ni=Ad();var ts=Sd();var Ps=xd();var aa=Up();var oa=qp();var ca=ni("wks");var _a=zn.Symbol;var xa=_a&&_a["for"];var Ga=oa?_a:_a&&_a.withoutSetter||Ps;Hn.exports=function(Bn){if(!ts(ca,Bn)||!(aa||typeof ca[Bn]=="string")){var Hn="Symbol."+Bn;if(aa&&ts(_a,Bn)){ca[Bn]=_a[Bn]}else if(oa&&xa){ca[Bn]=xa(Hn)}else{ca[Bn]=Ga(Hn)}}return ca[Bn]}}});var Td=__commonJS({"node_modules/core-js/internals/to-primitive.js"(Bn,Hn){var zn=oa();var ni=Fc();var Ci=Vp();var ts=zp();var Ps=Qf();var aa=wd();var ca=TypeError;var _a=aa("toPrimitive");Hn.exports=function(Bn,Hn){if(!ni(Bn)||Ci(Bn))return Bn;var aa=ts(Bn,_a);var oa;if(aa){if(Hn===void 0)Hn="default";oa=zn(aa,Bn,Hn);if(!ni(oa)||Ci(oa))return oa;throw ca("Can't convert object to primitive value")}if(Hn===void 0)Hn="number";return Ps(Bn,Hn)}}});var Pd=__commonJS({"node_modules/core-js/internals/to-property-key.js"(Bn,Hn){var zn=Td();var ni=Vp();Hn.exports=function(Bn){var Hn=zn(Bn,"string");return ni(Hn)?Hn:Hn+""}}});var Qh=__commonJS({"node_modules/core-js/internals/document-create-element.js"(Bn,Hn){var zn=Ci();var ni=Fc();var ts=zn.document;var Ps=ni(ts)&&ni(ts.createElement);Hn.exports=function(Bn){return Ps?ts.createElement(Bn):{}}}});var Zh=__commonJS({"node_modules/core-js/internals/ie8-dom-define.js"(Bn,Hn){var zn=Ps();var ni=ts();var Ci=Qh();Hn.exports=!zn&&!ni((function(){return Object.defineProperty(Ci("div"),"a",{get:function(){return 7}}).a!=7}))}});var f_=__commonJS({"node_modules/core-js/internals/object-get-own-property-descriptor.js"(Bn){var Hn=Ps();var zn=oa();var ni=ca();var Ci=_a();var ts=Jo();var aa=Pd();var xa=Sd();var Ga=Zh();var Ha=Object.getOwnPropertyDescriptor;Bn.f=Hn?Ha:function getOwnPropertyDescriptor(Bn,Hn){Bn=ts(Bn);Hn=aa(Hn);if(Ga)try{return Ha(Bn,Hn)}catch(Bn){}if(xa(Bn,Hn))return Ci(!zn(ni.f,Bn,Hn),Bn[Hn])}}});var Z_=__commonJS({"node_modules/core-js/internals/v8-prototype-define-bug.js"(Bn,Hn){var zn=Ps();var ni=ts();Hn.exports=zn&&ni((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:false}).prototype!=42}))}});var eg=__commonJS({"node_modules/core-js/internals/an-object.js"(Bn,Hn){var zn=Fc();var ni=String;var Ci=TypeError;Hn.exports=function(Bn){if(zn(Bn))return Bn;throw Ci(ni(Bn)+" is not an object")}}});var tg=__commonJS({"node_modules/core-js/internals/object-define-property.js"(Bn){var Hn=Ps();var zn=Zh();var ni=Z_();var Ci=eg();var ts=Pd();var aa=TypeError;var oa=Object.defineProperty;var ca=Object.getOwnPropertyDescriptor;var _a="enumerable";var xa="configurable";var Ga="writable";Bn.f=Hn?ni?function defineProperty(Bn,Hn,zn){Ci(Bn);Hn=ts(Hn);Ci(zn);if(typeof Bn==="function"&&Hn==="prototype"&&"value"in zn&&Ga in zn&&!zn[Ga]){var ni=ca(Bn,Hn);if(ni&&ni[Ga]){Bn[Hn]=zn.value;zn={configurable:xa in zn?zn[xa]:ni[xa],enumerable:_a in zn?zn[_a]:ni[_a],writable:false}}}return oa(Bn,Hn,zn)}:oa:function defineProperty(Bn,Hn,ni){Ci(Bn);Hn=ts(Hn);Ci(ni);if(zn)try{return oa(Bn,Hn,ni)}catch(Bn){}if("get"in ni||"set"in ni)throw aa("Accessors not supported");if("value"in ni)Bn[Hn]=ni.value;return Bn}}});var rg=__commonJS({"node_modules/core-js/internals/create-non-enumerable-property.js"(Bn,Hn){var zn=Ps();var ni=tg();var Ci=_a();Hn.exports=zn?function(Bn,Hn,zn){return ni.f(Bn,Hn,Ci(1,zn))}:function(Bn,Hn,zn){Bn[Hn]=zn;return Bn}}});var ng=__commonJS({"node_modules/core-js/internals/function-name.js"(Bn,Hn){var zn=Ps();var ni=Sd();var Ci=Function.prototype;var ts=zn&&Object.getOwnPropertyDescriptor;var aa=ni(Ci,"name");var oa=aa&&function something(){}.name==="something";var ca=aa&&(!zn||zn&&ts(Ci,"name").configurable);Hn.exports={EXISTS:aa,PROPER:oa,CONFIGURABLE:ca}}});var ig=__commonJS({"node_modules/core-js/internals/inspect-source.js"(Bn,Hn){var zn=xa();var ni=dc();var Ci=Xf();var ts=zn(Function.toString);if(!ni(Ci.inspectSource)){Ci.inspectSource=function(Bn){return ts(Bn)}}Hn.exports=Ci.inspectSource}});var sg=__commonJS({"node_modules/core-js/internals/weak-map-basic-detection.js"(Bn,Hn){var zn=Ci();var ni=dc();var ts=zn.WeakMap;Hn.exports=ni(ts)&&/native code/.test(String(ts))}});var ag=__commonJS({"node_modules/core-js/internals/shared-key.js"(Bn,Hn){var zn=Ad();var ni=xd();var Ci=zn("keys");Hn.exports=function(Bn){return Ci[Bn]||(Ci[Bn]=ni(Bn))}}});var og=__commonJS({"node_modules/core-js/internals/hidden-keys.js"(Bn,Hn){Hn.exports={}}});var ug=__commonJS({"node_modules/core-js/internals/internal-state.js"(Bn,Hn){var zn=sg();var ni=Ci();var ts=Fc();var Ps=rg();var aa=Sd();var oa=Xf();var ca=ag();var _a=og();var xa="Object already initialized";var Ga=ni.TypeError;var Ha=ni.WeakMap;var so;var oo;var Jo;var enforce=function(Bn){return Jo(Bn)?oo(Bn):so(Bn,{})};var getterFor=function(Bn){return function(Hn){var zn;if(!ts(Hn)||(zn=oo(Hn)).type!==Bn){throw Ga("Incompatible receiver, "+Bn+" required")}return zn}};if(zn||oa.state){tc=oa.state||(oa.state=new Ha);tc.get=tc.get;tc.has=tc.has;tc.set=tc.set;so=function(Bn,Hn){if(tc.has(Bn))throw Ga(xa);Hn.facade=Bn;tc.set(Bn,Hn);return Hn};oo=function(Bn){return tc.get(Bn)||{}};Jo=function(Bn){return tc.has(Bn)}}else{dc=ca("state");_a[dc]=true;so=function(Bn,Hn){if(aa(Bn,dc))throw Ga(xa);Hn.facade=Bn;Ps(Bn,dc,Hn);return Hn};oo=function(Bn){return aa(Bn,dc)?Bn[dc]:{}};Jo=function(Bn){return aa(Bn,dc)}}var tc;var dc;Hn.exports={set:so,get:oo,has:Jo,enforce:enforce,getterFor:getterFor}}});var cg=__commonJS({"node_modules/core-js/internals/make-built-in.js"(Bn,Hn){var zn=ts();var ni=dc();var Ci=Sd();var aa=Ps();var oa=ng().CONFIGURABLE;var ca=ig();var _a=ug();var xa=_a.enforce;var Ga=_a.get;var Ha=Object.defineProperty;var so=aa&&!zn((function(){return Ha((function(){}),"length",{value:8}).length!==8}));var oo=String(String).split("String");var Jo=Hn.exports=function(Bn,Hn,zn){if(String(Hn).slice(0,7)==="Symbol("){Hn="["+String(Hn).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"}if(zn&&zn.getter)Hn="get "+Hn;if(zn&&zn.setter)Hn="set "+Hn;if(!Ci(Bn,"name")||oa&&Bn.name!==Hn){if(aa)Ha(Bn,"name",{value:Hn,configurable:true});else Bn.name=Hn}if(so&&zn&&Ci(zn,"arity")&&Bn.length!==zn.arity){Ha(Bn,"length",{value:zn.arity})}try{if(zn&&Ci(zn,"constructor")&&zn.constructor){if(aa)Ha(Bn,"prototype",{writable:false})}else if(Bn.prototype)Bn.prototype=void 0}catch(Bn){}var ni=xa(Bn);if(!Ci(ni,"source")){ni.source=oo.join(typeof Hn=="string"?Hn:"")}return Bn};Function.prototype.toString=Jo((function toString(){return ni(this)&&Ga(this).source||ca(this)}),"toString")}});var lg=__commonJS({"node_modules/core-js/internals/define-built-in.js"(Bn,Hn){var zn=dc();var ni=tg();var Ci=cg();var ts=Kf();Hn.exports=function(Bn,Hn,Ps,aa){if(!aa)aa={};var oa=aa.enumerable;var ca=aa.name!==void 0?aa.name:Hn;if(zn(Ps))Ci(Ps,ca,aa);if(aa.global){if(oa)Bn[Hn]=Ps;else ts(Hn,Ps)}else{try{if(!aa.unsafe)delete Bn[Hn];else if(Bn[Hn])oa=true}catch(Bn){}if(oa)Bn[Hn]=Ps;else ni.f(Bn,Hn,{value:Ps,enumerable:false,configurable:!aa.nonConfigurable,writable:!aa.nonWritable})}return Bn}}});var pg=__commonJS({"node_modules/core-js/internals/math-trunc.js"(Bn,Hn){var zn=Math.ceil;var ni=Math.floor;Hn.exports=Math.trunc||function trunc(Bn){var Hn=+Bn;return(Hn>0?ni:zn)(Hn)}}});var fg=__commonJS({"node_modules/core-js/internals/to-integer-or-infinity.js"(Bn,Hn){var zn=pg();Hn.exports=function(Bn){var Hn=+Bn;return Hn!==Hn||Hn===0?0:zn(Hn)}}});var dg=__commonJS({"node_modules/core-js/internals/to-absolute-index.js"(Bn,Hn){var zn=fg();var ni=Math.max;var Ci=Math.min;Hn.exports=function(Bn,Hn){var ts=zn(Bn);return ts<0?ni(ts+Hn,0):Ci(ts,Hn)}}});var hg=__commonJS({"node_modules/core-js/internals/to-length.js"(Bn,Hn){var zn=fg();var ni=Math.min;Hn.exports=function(Bn){return Bn>0?ni(zn(Bn),9007199254740991):0}}});var mg=__commonJS({"node_modules/core-js/internals/length-of-array-like.js"(Bn,Hn){var zn=hg();Hn.exports=function(Bn){return zn(Bn.length)}}});var _g=__commonJS({"node_modules/core-js/internals/array-includes.js"(Bn,Hn){var zn=Jo();var ni=dg();var Ci=mg();var createMethod=function(Bn){return function(Hn,ts,Ps){var aa=zn(Hn);var oa=Ci(aa);var ca=ni(Ps,oa);var _a;if(Bn&&ts!=ts)while(oa>ca){_a=aa[ca++];if(_a!=_a)return true}else for(;oa>ca;ca++){if((Bn||ca in aa)&&aa[ca]===ts)return Bn||ca||0}return!Bn&&-1}};Hn.exports={includes:createMethod(true),indexOf:createMethod(false)}}});var gg=__commonJS({"node_modules/core-js/internals/object-keys-internal.js"(Bn,Hn){var zn=xa();var ni=Sd();var Ci=Jo();var ts=_g().indexOf;var Ps=og();var aa=zn([].push);Hn.exports=function(Bn,Hn){var zn=Ci(Bn);var oa=0;var ca=[];var _a;for(_a in zn)!ni(Ps,_a)&&ni(zn,_a)&&aa(ca,_a);while(Hn.length>oa)if(ni(zn,_a=Hn[oa++])){~ts(ca,_a)||aa(ca,_a)}return ca}}});var Ag=__commonJS({"node_modules/core-js/internals/enum-bug-keys.js"(Bn,Hn){Hn.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}});var yg=__commonJS({"node_modules/core-js/internals/object-get-own-property-names.js"(Bn){var Hn=gg();var zn=Ag();var ni=zn.concat("length","prototype");Bn.f=Object.getOwnPropertyNames||function getOwnPropertyNames(Bn){return Hn(Bn,ni)}}});var vg=__commonJS({"node_modules/core-js/internals/object-get-own-property-symbols.js"(Bn){Bn.f=Object.getOwnPropertySymbols}});var Eg=__commonJS({"node_modules/core-js/internals/own-keys.js"(Bn,Hn){var zn=Jc();var ni=xa();var Ci=yg();var ts=vg();var Ps=eg();var aa=ni([].concat);Hn.exports=zn("Reflect","ownKeys")||function ownKeys(Bn){var Hn=Ci.f(Ps(Bn));var zn=ts.f;return zn?aa(Hn,zn(Bn)):Hn}}});var bg=__commonJS({"node_modules/core-js/internals/copy-constructor-properties.js"(Bn,Hn){var zn=Sd();var ni=Eg();var Ci=f_();var ts=tg();Hn.exports=function(Bn,Hn,Ps){var aa=ni(Hn);var oa=ts.f;var ca=Ci.f;for(var _a=0;_ani)throw zn("Maximum allowed index exceeded");return Bn}}});var wg=__commonJS({"node_modules/core-js/internals/function-uncurry-this-clause.js"(Bn,Hn){var zn=Ga();var ni=xa();Hn.exports=function(Bn){if(zn(Bn)==="Function")return ni(Bn)}}});var Tg=__commonJS({"node_modules/core-js/internals/function-bind-context.js"(Bn,Hn){var zn=wg();var ni=Wp();var Ci=aa();var ts=zn(zn.bind);Hn.exports=function(Bn,Hn){ni(Bn);return Hn===void 0?Bn:Ci?ts(Bn,Hn):function(){return Bn.apply(Hn,arguments)}}}});var kg=__commonJS({"node_modules/core-js/internals/flatten-into-array.js"(Bn,Hn){"use strict";var zn=Sg();var ni=mg();var Ci=xg();var ts=Tg();var flattenIntoArray=function(Bn,Hn,Ps,aa,oa,ca,_a,xa){var Ga=oa;var Ha=0;var so=_a?ts(_a,xa):false;var oo,Jo;while(Ha0&&zn(oo)){Jo=ni(oo);Ga=flattenIntoArray(Bn,Hn,oo,Jo,Ga,ca-1)-1}else{Ci(Ga+1);Bn[Ga]=oo}Ga++}Ha++}return Ga};Hn.exports=flattenIntoArray}});var Ig=__commonJS({"node_modules/core-js/internals/to-string-tag-support.js"(Bn,Hn){var zn=wd();var ni=zn("toStringTag");var Ci={};Ci[ni]="z";Hn.exports=String(Ci)==="[object z]"}});var Bg=__commonJS({"node_modules/core-js/internals/classof.js"(Bn,Hn){var zn=Ig();var ni=dc();var Ci=Ga();var ts=wd();var Ps=ts("toStringTag");var aa=Object;var oa=Ci(function(){return arguments}())=="Arguments";var tryGet=function(Bn,Hn){try{return Bn[Hn]}catch(Bn){}};Hn.exports=zn?Ci:function(Bn){var Hn,zn,ts;return Bn===void 0?"Undefined":Bn===null?"Null":typeof(zn=tryGet(Hn=aa(Bn),Ps))=="string"?zn:oa?Ci(Hn):(ts=Ci(Hn))=="Object"&&ni(Hn.callee)?"Arguments":ts}}});var Fg=__commonJS({"node_modules/core-js/internals/is-constructor.js"(Bn,Hn){var zn=xa();var ni=ts();var Ci=dc();var Ps=Bg();var aa=Jc();var oa=ig();var noop=function(){};var ca=[];var _a=aa("Reflect","construct");var Ga=/^\s*(?:class|function)\b/;var Ha=zn(Ga.exec);var so=!Ga.exec(noop);var oo=function isConstructor(Bn){if(!Ci(Bn))return false;try{_a(noop,ca,Bn);return true}catch(Bn){return false}};var Jo=function isConstructor(Bn){if(!Ci(Bn))return false;switch(Ps(Bn)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return false}try{return so||!!Ha(Ga,oa(Bn))}catch(Bn){return true}};Jo.sham=true;Hn.exports=!_a||ni((function(){var Bn;return oo(oo.call)||!oo(Object)||!oo((function(){Bn=true}))||Bn}))?Jo:oo}});var Ng=__commonJS({"node_modules/core-js/internals/array-species-constructor.js"(Bn,Hn){var zn=Sg();var ni=Fg();var Ci=Fc();var ts=wd();var Ps=ts("species");var aa=Array;Hn.exports=function(Bn){var Hn;if(zn(Bn)){Hn=Bn.constructor;if(ni(Hn)&&(Hn===aa||zn(Hn.prototype)))Hn=void 0;else if(Ci(Hn)){Hn=Hn[Ps];if(Hn===null)Hn=void 0}}return Hn===void 0?aa:Hn}}});var Pg=__commonJS({"node_modules/core-js/internals/array-species-create.js"(Bn,Hn){var zn=Ng();Hn.exports=function(Bn,Hn){return new(zn(Bn))(Hn===0?0:Hn)}}});var Og=__commonJS({"node_modules/core-js/modules/es.array.flat-map.js"(){"use strict";var Bn=Cg();var Hn=kg();var zn=Wp();var ni=Cd();var Ci=mg();var ts=Pg();Bn({target:"Array",proto:true},{flatMap:function flatMap(Bn){var Ps=ni(this);var aa=Ci(Ps);var oa;zn(Bn);oa=ts(Ps,0);oa.length=Hn(oa,Ps,Ps,aa,0,1,Bn,arguments.length>1?arguments[1]:void 0);return oa}})}});var Rg=__commonJS({"node_modules/core-js/internals/iterators.js"(Bn,Hn){Hn.exports={}}});var Lg=__commonJS({"node_modules/core-js/internals/is-array-iterator-method.js"(Bn,Hn){var zn=wd();var ni=Rg();var Ci=zn("iterator");var ts=Array.prototype;Hn.exports=function(Bn){return Bn!==void 0&&(ni.Array===Bn||ts[Ci]===Bn)}}});var Qg=__commonJS({"node_modules/core-js/internals/get-iterator-method.js"(Bn,Hn){var zn=Bg();var ni=zp();var Ci=so();var ts=Rg();var Ps=wd();var aa=Ps("iterator");Hn.exports=function(Bn){if(!Ci(Bn))return ni(Bn,aa)||ni(Bn,"@@iterator")||ts[zn(Bn)]}}});var Mg=__commonJS({"node_modules/core-js/internals/get-iterator.js"(Bn,Hn){var zn=oa();var ni=Wp();var Ci=eg();var ts=Jp();var Ps=Qg();var aa=TypeError;Hn.exports=function(Bn,Hn){var oa=arguments.length<2?Ps(Bn):Hn;if(ni(oa))return Ci(zn(oa,Bn));throw aa(ts(Bn)+" is not iterable")}}});var jg=__commonJS({"node_modules/core-js/internals/iterator-close.js"(Bn,Hn){var zn=oa();var ni=eg();var Ci=zp();Hn.exports=function(Bn,Hn,ts){var Ps,aa;ni(Bn);try{Ps=Ci(Bn,"return");if(!Ps){if(Hn==="throw")throw ts;return ts}Ps=zn(Ps,Bn)}catch(Bn){aa=true;Ps=Bn}if(Hn==="throw")throw ts;if(aa)throw Ps;ni(Ps);return ts}}});var Ug=__commonJS({"node_modules/core-js/internals/iterate.js"(Bn,Hn){var zn=Tg();var ni=oa();var Ci=eg();var ts=Jp();var Ps=Lg();var aa=mg();var ca=Dp();var _a=Mg();var xa=Qg();var Ga=jg();var Ha=TypeError;var Result=function(Bn,Hn){this.stopped=Bn;this.result=Hn};var so=Result.prototype;Hn.exports=function(Bn,Hn,oa){var oo=oa&&oa.that;var Jo=!!(oa&&oa.AS_ENTRIES);var tc=!!(oa&&oa.IS_RECORD);var dc=!!(oa&&oa.IS_ITERATOR);var Fc=!!(oa&&oa.INTERRUPTED);var Jc=zn(Hn,oo);var Dp,kp,Qp,Up,qp,Vp,Jp;var stop=function(Bn){if(Dp)Ga(Dp,"normal",Bn);return new Result(true,Bn)};var callFn=function(Bn){if(Jo){Ci(Bn);return Fc?Jc(Bn[0],Bn[1],stop):Jc(Bn[0],Bn[1])}return Fc?Jc(Bn,stop):Jc(Bn)};if(tc){Dp=Bn.iterator}else if(dc){Dp=Bn}else{kp=xa(Bn);if(!kp)throw Ha(ts(Bn)+" is not iterable");if(Ps(kp)){for(Qp=0,Up=aa(Bn);Up>Qp;Qp++){qp=callFn(Bn[Qp]);if(qp&&ca(so,qp))return qp}return new Result(false)}Dp=_a(Bn,kp)}Vp=tc?Bn.next:Dp.next;while(!(Jp=ni(Vp,Dp)).done){try{qp=callFn(Jp.value)}catch(Bn){Ga(Dp,"throw",Bn)}if(typeof qp=="object"&&qp&&ca(so,qp))return qp}return new Result(false)}}});var Gg=__commonJS({"node_modules/core-js/internals/create-property.js"(Bn,Hn){"use strict";var zn=Pd();var ni=tg();var Ci=_a();Hn.exports=function(Bn,Hn,ts){var Ps=zn(Hn);if(Ps in Bn)ni.f(Bn,Ps,Ci(0,ts));else Bn[Ps]=ts}}});var qg=__commonJS({"node_modules/core-js/modules/es.object.from-entries.js"(){var Bn=Cg();var Hn=Ug();var zn=Gg();Bn({target:"Object",stat:true},{fromEntries:function fromEntries(Bn){var ni={};Hn(Bn,(function(Bn,Hn){zn(ni,Bn,Hn)}),{AS_ENTRIES:true});return ni}})}});var Vg=__commonJS({"node_modules/core-js/internals/define-built-in-accessor.js"(Bn,Hn){var zn=cg();var ni=tg();Hn.exports=function(Bn,Hn,Ci){if(Ci.get)zn(Ci.get,Hn,{getter:true});if(Ci.set)zn(Ci.set,Hn,{setter:true});return ni.f(Bn,Hn,Ci)}}});var Hg=__commonJS({"node_modules/core-js/internals/regexp-flags.js"(Bn,Hn){"use strict";var zn=eg();Hn.exports=function(){var Bn=zn(this);var Hn="";if(Bn.hasIndices)Hn+="d";if(Bn.global)Hn+="g";if(Bn.ignoreCase)Hn+="i";if(Bn.multiline)Hn+="m";if(Bn.dotAll)Hn+="s";if(Bn.unicode)Hn+="u";if(Bn.unicodeSets)Hn+="v";if(Bn.sticky)Hn+="y";return Hn}}});var $g=__commonJS({"node_modules/core-js/modules/es.regexp.flags.js"(){var Bn=Ci();var Hn=Ps();var zn=Vg();var ni=Hg();var aa=ts();var oa=Bn.RegExp;var ca=oa.prototype;var _a=Hn&&aa((function(){var Bn=true;try{oa(".","d")}catch(Hn){Bn=false}var Hn={};var zn="";var ni=Bn?"dgimsy":"gimsy";var addGetter=function(Bn,ni){Object.defineProperty(Hn,Bn,{get:function(){zn+=ni;return true}})};var Ci={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};if(Bn)Ci.hasIndices="d";for(var ts in Ci)addGetter(ts,Ci[ts]);var Ps=Object.getOwnPropertyDescriptor(ca,"flags").get.call(Hn);return Ps!==ni||zn!==ni}));if(_a)zn(ca,"flags",{configurable:true,get:ni})}});var Jg=__commonJS({"node_modules/core-js/modules/es.array.flat.js"(){"use strict";var Bn=Cg();var Hn=kg();var zn=Cd();var ni=mg();var Ci=fg();var ts=Pg();Bn({target:"Array",proto:true},{flat:function flat(){var Bn=arguments.length?arguments[0]:void 0;var Ps=zn(this);var aa=ni(Ps);var oa=ts(Ps,0);oa.length=Hn(oa,Ps,Ps,aa,0,Bn===void 0?1:Ci(Bn));return oa}})}});var Yg=["cliName","cliCategory","cliDescription"];var Wg=["_"];var Kg=["overrides"];var zg=["languageId"];function _objectWithoutProperties(Bn,Hn){if(Bn==null)return{};var zn=_objectWithoutPropertiesLoose(Bn,Hn);var ni,Ci;if(Object.getOwnPropertySymbols){var ts=Object.getOwnPropertySymbols(Bn);for(Ci=0;Ci=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Bn,ni))continue;zn[ni]=Bn[ni]}}return zn}function _objectWithoutPropertiesLoose(Bn,Hn){if(Bn==null)return{};var zn={};var ni=Object.keys(Bn);var Ci,ts;for(ts=0;ts=0)continue;zn[Ci]=Bn[Ci]}return zn}Og();qg();$g();Jg();var Xg=Object.create;var Zg=Object.defineProperty;var sA=Object.getOwnPropertyDescriptor;var oA=Object.getOwnPropertyNames;var hA=Object.getPrototypeOf;var ey=Object.prototype.hasOwnProperty;var __esm=(Bn,Hn)=>function __init(){return Bn&&(Hn=(0,Bn[oA(Bn)[0]])(Bn=0)),Hn};var __commonJS2=(Bn,Hn)=>function __require(){return Hn||(0,Bn[oA(Bn)[0]])((Hn={exports:{}}).exports,Hn),Hn.exports};var __export=(Bn,Hn)=>{for(var zn in Hn)Zg(Bn,zn,{get:Hn[zn],enumerable:true})};var __copyProps=(Bn,Hn,zn,ni)=>{if(Hn&&typeof Hn==="object"||typeof Hn==="function"){for(let Ci of oA(Hn))if(!ey.call(Bn,Ci)&&Ci!==zn)Zg(Bn,Ci,{get:()=>Hn[Ci],enumerable:!(ni=sA(Hn,Ci))||ni.enumerable})}return Bn};var __toESM=(Bn,Hn,zn)=>(zn=Bn!=null?Xg(hA(Bn)):{},__copyProps(Hn||!Bn||!Bn.__esModule?Zg(zn,"default",{value:Bn,enumerable:true}):zn,Bn));var __toCommonJS=Bn=>__copyProps(Zg({},"__esModule",{value:true}),Bn);var ty=__commonJS2({"node_modules/diff/lib/diff/base.js"(Bn){"use strict";Object.defineProperty(Bn,"__esModule",{value:true});Bn["default"]=Diff;function Diff(){}Diff.prototype={diff:function diff(Bn,Hn){var zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var ni=zn.callback;if(typeof zn==="function"){ni=zn;zn={}}this.options=zn;var Ci=this;function done(Bn){if(ni){setTimeout((function(){ni(void 0,Bn)}),0);return true}else{return Bn}}Bn=this.castInput(Bn);Hn=this.castInput(Hn);Bn=this.removeEmpty(this.tokenize(Bn));Hn=this.removeEmpty(this.tokenize(Hn));var ts=Hn.length,Ps=Bn.length;var aa=1;var oa=ts+Ps;var ca=[{newPos:-1,components:[]}];var _a=this.extractCommon(ca[0],Hn,Bn,0);if(ca[0].newPos+1>=ts&&_a+1>=Ps){return done([{value:this.join(Hn),count:Hn.length}])}function execEditLength(){for(var zn=-1*aa;zn<=aa;zn+=2){var ni=void 0;var oa=ca[zn-1],_a=ca[zn+1],xa=(_a?_a.newPos:0)-zn;if(oa){ca[zn-1]=void 0}var Ga=oa&&oa.newPos+1=ts&&xa+1>=Ps){return done(buildValues(Ci,ni.components,Hn,Bn,Ci.useLongestToken))}else{ca[zn]=ni}}aa++}if(ni){(function exec(){setTimeout((function(){if(aa>oa){return ni()}if(!execEditLength()){exec()}}),0)})()}else{while(aa<=oa){var xa=execEditLength();if(xa){return xa}}}},pushComponent:function pushComponent(Bn,Hn,zn){var ni=Bn[Bn.length-1];if(ni&&ni.added===Hn&&ni.removed===zn){Bn[Bn.length-1]={count:ni.count+1,added:Hn,removed:zn}}else{Bn.push({count:1,added:Hn,removed:zn})}},extractCommon:function extractCommon(Bn,Hn,zn,ni){var Ci=Hn.length,ts=zn.length,Ps=Bn.newPos,aa=Ps-ni,oa=0;while(Ps+1Bn.length?zn:Bn}));ca.value=Bn.join(_a)}else{ca.value=Bn.join(zn.slice(aa,aa+ca.count))}aa+=ca.count;if(!ca.added){oa+=ca.count}}else{ca.value=Bn.join(ni.slice(oa,oa+ca.count));oa+=ca.count;if(ts&&Hn[ts-1].added){var xa=Hn[ts-1];Hn[ts-1]=Hn[ts];Hn[ts]=xa}}}var Ga=Hn[Ps-1];if(Ps>1&&typeof Ga.value==="string"&&(Ga.added||Ga.removed)&&Bn.equals("",Ga.value)){Hn[Ps-2].value+=Ga.value;Hn.pop()}return Hn}function clonePath(Bn){return{newPos:Bn.newPos,components:Bn.components.slice(0)}}}});var ry=__commonJS2({"node_modules/diff/lib/diff/array.js"(Bn){"use strict";Object.defineProperty(Bn,"__esModule",{value:true});Bn.diffArrays=diffArrays;Bn.arrayDiff=void 0;var Hn=_interopRequireDefault(ty());function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}var zn=new Hn["default"];Bn.arrayDiff=zn;zn.tokenize=function(Bn){return Bn.slice()};zn.join=zn.removeEmpty=function(Bn){return Bn};function diffArrays(Bn,Hn,ni){return zn.diff(Bn,Hn,ni)}}});var ny={};__export(ny,{default:()=>escapeStringRegexp});function escapeStringRegexp(Bn){if(typeof Bn!=="string"){throw new TypeError("Expected a string")}return Bn.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var iy=__esm({"node_modules/escape-string-regexp/index.js"(){}});var py=__commonJS2({"src/utils/get-last.js"(Bn,Hn){"use strict";var getLast=Bn=>Bn[Bn.length-1];Hn.exports=getLast}});var fy=__commonJS2({"node_modules/semver/internal/debug.js"(Bn,Hn){var zn=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...Bn)=>console.error("SEMVER",...Bn):()=>{};Hn.exports=zn}});var Ty=__commonJS2({"node_modules/semver/internal/constants.js"(Bn,Hn){var zn="2.0.0";var ni=256;var Ci=Number.MAX_SAFE_INTEGER||9007199254740991;var ts=16;Hn.exports={SEMVER_SPEC_VERSION:zn,MAX_LENGTH:ni,MAX_SAFE_INTEGER:Ci,MAX_SAFE_COMPONENT_LENGTH:ts}}});var Gy=__commonJS2({"node_modules/semver/internal/re.js"(Bn,Hn){var{MAX_SAFE_COMPONENT_LENGTH:zn}=Ty();var ni=fy();Bn=Hn.exports={};var Ci=Bn.re=[];var ts=Bn.src=[];var Ps=Bn.t={};var aa=0;var createToken=(Bn,Hn,zn)=>{const oa=aa++;ni(Bn,oa,Hn);Ps[Bn]=oa;ts[oa]=Hn;Ci[oa]=new RegExp(Hn,zn?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${ts[Ps.NUMERICIDENTIFIER]})\\.(${ts[Ps.NUMERICIDENTIFIER]})\\.(${ts[Ps.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${ts[Ps.NUMERICIDENTIFIERLOOSE]})\\.(${ts[Ps.NUMERICIDENTIFIERLOOSE]})\\.(${ts[Ps.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${ts[Ps.NUMERICIDENTIFIER]}|${ts[Ps.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${ts[Ps.NUMERICIDENTIFIERLOOSE]}|${ts[Ps.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${ts[Ps.PRERELEASEIDENTIFIER]}(?:\\.${ts[Ps.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${ts[Ps.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ts[Ps.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${ts[Ps.BUILDIDENTIFIER]}(?:\\.${ts[Ps.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${ts[Ps.MAINVERSION]}${ts[Ps.PRERELEASE]}?${ts[Ps.BUILD]}?`);createToken("FULL",`^${ts[Ps.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${ts[Ps.MAINVERSIONLOOSE]}${ts[Ps.PRERELEASELOOSE]}?${ts[Ps.BUILD]}?`);createToken("LOOSE",`^${ts[Ps.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${ts[Ps.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${ts[Ps.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${ts[Ps.XRANGEIDENTIFIER]})(?:\\.(${ts[Ps.XRANGEIDENTIFIER]})(?:\\.(${ts[Ps.XRANGEIDENTIFIER]})(?:${ts[Ps.PRERELEASE]})?${ts[Ps.BUILD]}?)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${ts[Ps.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ts[Ps.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ts[Ps.XRANGEIDENTIFIERLOOSE]})(?:${ts[Ps.PRERELEASELOOSE]})?${ts[Ps.BUILD]}?)?)?`);createToken("XRANGE",`^${ts[Ps.GTLT]}\\s*${ts[Ps.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${ts[Ps.GTLT]}\\s*${ts[Ps.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])(\\d{1,"}${zn}})(?:\\.(\\d{1,${zn}}))?(?:\\.(\\d{1,${zn}}))?(?:$|[^\\d])`);createToken("COERCERTL",ts[Ps.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${ts[Ps.LONETILDE]}\\s+`,true);Bn.tildeTrimReplace="$1~";createToken("TILDE",`^${ts[Ps.LONETILDE]}${ts[Ps.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${ts[Ps.LONETILDE]}${ts[Ps.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${ts[Ps.LONECARET]}\\s+`,true);Bn.caretTrimReplace="$1^";createToken("CARET",`^${ts[Ps.LONECARET]}${ts[Ps.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${ts[Ps.LONECARET]}${ts[Ps.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${ts[Ps.GTLT]}\\s*(${ts[Ps.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${ts[Ps.GTLT]}\\s*(${ts[Ps.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${ts[Ps.GTLT]}\\s*(${ts[Ps.LOOSEPLAIN]}|${ts[Ps.XRANGEPLAIN]})`,true);Bn.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${ts[Ps.XRANGEPLAIN]})\\s+-\\s+(${ts[Ps.XRANGEPLAIN]})\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${ts[Ps.XRANGEPLAINLOOSE]})\\s+-\\s+(${ts[Ps.XRANGEPLAINLOOSE]})\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}});var Vy=__commonJS2({"node_modules/semver/internal/parse-options.js"(Bn,Hn){var zn=["includePrerelease","loose","rtl"];var parseOptions=Bn=>!Bn?{}:typeof Bn!=="object"?{loose:true}:zn.filter((Hn=>Bn[Hn])).reduce(((Bn,Hn)=>{Bn[Hn]=true;return Bn}),{});Hn.exports=parseOptions}});var Hy=__commonJS2({"node_modules/semver/internal/identifiers.js"(Bn,Hn){var zn=/^[0-9]+$/;var compareIdentifiers=(Bn,Hn)=>{const ni=zn.test(Bn);const Ci=zn.test(Hn);if(ni&&Ci){Bn=+Bn;Hn=+Hn}return Bn===Hn?0:ni&&!Ci?-1:Ci&&!ni?1:BncompareIdentifiers(Hn,Bn);Hn.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}}});var Av=__commonJS2({"node_modules/semver/classes/semver.js"(Bn,Hn){var zn=fy();var{MAX_LENGTH:ni,MAX_SAFE_INTEGER:Ci}=Ty();var{re:ts,t:Ps}=Gy();var aa=Vy();var{compareIdentifiers:oa}=Hy();var ca=class{constructor(Bn,Hn){Hn=aa(Hn);if(Bn instanceof ca){if(Bn.loose===!!Hn.loose&&Bn.includePrerelease===!!Hn.includePrerelease){return Bn}else{Bn=Bn.version}}else if(typeof Bn!=="string"){throw new TypeError(`Invalid Version: ${Bn}`)}if(Bn.length>ni){throw new TypeError(`version is longer than ${ni} characters`)}zn("SemVer",Bn,Hn);this.options=Hn;this.loose=!!Hn.loose;this.includePrerelease=!!Hn.includePrerelease;const oa=Bn.trim().match(Hn.loose?ts[Ps.LOOSE]:ts[Ps.FULL]);if(!oa){throw new TypeError(`Invalid Version: ${Bn}`)}this.raw=Bn;this.major=+oa[1];this.minor=+oa[2];this.patch=+oa[3];if(this.major>Ci||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>Ci||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>Ci||this.patch<0){throw new TypeError("Invalid patch version")}if(!oa[4]){this.prerelease=[]}else{this.prerelease=oa[4].split(".").map((Bn=>{if(/^[0-9]+$/.test(Bn)){const Hn=+Bn;if(Hn>=0&&Hn=0){if(typeof this.prerelease[Bn]==="number"){this.prerelease[Bn]++;Bn=-2}}if(Bn===-1){this.prerelease.push(0)}}if(Hn){if(oa(this.prerelease[0],Hn)===0){if(isNaN(this.prerelease[1])){this.prerelease=[Hn,0]}}else{this.prerelease=[Hn,0]}}break;default:throw new Error(`invalid increment argument: ${Bn}`)}this.format();this.raw=this.version;return this}};Hn.exports=ca}});var vv=__commonJS2({"node_modules/semver/functions/compare.js"(Bn,Hn){var zn=Av();var compare=(Bn,Hn,ni)=>new zn(Bn,ni).compare(new zn(Hn,ni));Hn.exports=compare}});var Ev=__commonJS2({"node_modules/semver/functions/lt.js"(Bn,Hn){var zn=vv();var lt=(Bn,Hn,ni)=>zn(Bn,Hn,ni)<0;Hn.exports=lt}});var bv=__commonJS2({"node_modules/semver/functions/gte.js"(Bn,Hn){var zn=vv();var gte=(Bn,Hn,ni)=>zn(Bn,Hn,ni)>=0;Hn.exports=gte}});var Cv=__commonJS2({"src/utils/arrayify.js"(Bn,Hn){"use strict";Hn.exports=(Bn,Hn)=>Object.entries(Bn).map((([Bn,zn])=>Object.assign({[Hn]:Bn},zn)))}});var Sv=__commonJS2({"node_modules/outdent/lib/index.js"(Bn,Hn){"use strict";Object.defineProperty(Bn,"__esModule",{value:true});Bn.outdent=void 0;function noop(){var Bn=[];for(var Hn=0;Hn{var __webpack_modules__={87351:function(Bn,Hn,zn){"use strict";var ni=this&&this.__createBinding||(Object.create?function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Object.defineProperty(Bn,ni,{enumerable:true,get:function(){return Hn[zn]}})}:function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Bn[ni]=Hn[zn]});var Ci=this&&this.__setModuleDefault||(Object.create?function(Bn,Hn){Object.defineProperty(Bn,"default",{enumerable:true,value:Hn})}:function(Bn,Hn){Bn["default"]=Hn});var ts=this&&this.__importStar||function(Bn){if(Bn&&Bn.__esModule)return Bn;var Hn={};if(Bn!=null)for(var zn in Bn)if(zn!=="default"&&Object.hasOwnProperty.call(Bn,zn))ni(Hn,Bn,zn);Ci(Hn,Bn);return Hn};Object.defineProperty(Hn,"__esModule",{value:true});Hn.issue=Hn.issueCommand=void 0;const Ps=ts(zn(22037));const aa=zn(5278);function issueCommand(Bn,Hn,zn){const ni=new Command(Bn,Hn,zn);process.stdout.write(ni.toString()+Ps.EOL)}Hn.issueCommand=issueCommand;function issue(Bn,Hn=""){issueCommand(Bn,{},Hn)}Hn.issue=issue;const oa="::";class Command{constructor(Bn,Hn,zn){if(!Bn){Bn="missing.command"}this.command=Bn;this.properties=Hn;this.message=zn}toString(){let Bn=oa+this.command;if(this.properties&&Object.keys(this.properties).length>0){Bn+=" ";let Hn=true;for(const zn in this.properties){if(this.properties.hasOwnProperty(zn)){const ni=this.properties[zn];if(ni){if(Hn){Hn=false}else{Bn+=","}Bn+=`${zn}=${escapeProperty(ni)}`}}}}Bn+=`${oa}${escapeData(this.message)}`;return Bn}}function escapeData(Bn){return aa.toCommandValue(Bn).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(Bn){return aa.toCommandValue(Bn).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},42186:function(Bn,Hn,zn){"use strict";var ni=this&&this.__createBinding||(Object.create?function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Object.defineProperty(Bn,ni,{enumerable:true,get:function(){return Hn[zn]}})}:function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Bn[ni]=Hn[zn]});var Ci=this&&this.__setModuleDefault||(Object.create?function(Bn,Hn){Object.defineProperty(Bn,"default",{enumerable:true,value:Hn})}:function(Bn,Hn){Bn["default"]=Hn});var ts=this&&this.__importStar||function(Bn){if(Bn&&Bn.__esModule)return Bn;var Hn={};if(Bn!=null)for(var zn in Bn)if(zn!=="default"&&Object.hasOwnProperty.call(Bn,zn))ni(Hn,Bn,zn);Ci(Hn,Bn);return Hn};var Ps=this&&this.__awaiter||function(Bn,Hn,zn,ni){function adopt(Bn){return Bn instanceof zn?Bn:new zn((function(Hn){Hn(Bn)}))}return new(zn||(zn=Promise))((function(zn,Ci){function fulfilled(Bn){try{step(ni.next(Bn))}catch(Bn){Ci(Bn)}}function rejected(Bn){try{step(ni["throw"](Bn))}catch(Bn){Ci(Bn)}}function step(Bn){Bn.done?zn(Bn.value):adopt(Bn.value).then(fulfilled,rejected)}step((ni=ni.apply(Bn,Hn||[])).next())}))};Object.defineProperty(Hn,"__esModule",{value:true});Hn.getIDToken=Hn.getState=Hn.saveState=Hn.group=Hn.endGroup=Hn.startGroup=Hn.info=Hn.notice=Hn.warning=Hn.error=Hn.debug=Hn.isDebug=Hn.setFailed=Hn.setCommandEcho=Hn.setOutput=Hn.getBooleanInput=Hn.getMultilineInput=Hn.getInput=Hn.addPath=Hn.setSecret=Hn.exportVariable=Hn.ExitCode=void 0;const aa=zn(87351);const oa=zn(717);const ca=zn(5278);const _a=ts(zn(22037));const xa=ts(zn(71017));const Ga=zn(98041);var Ha;(function(Bn){Bn[Bn["Success"]=0]="Success";Bn[Bn["Failure"]=1]="Failure"})(Ha=Hn.ExitCode||(Hn.ExitCode={}));function exportVariable(Bn,Hn){const zn=ca.toCommandValue(Hn);process.env[Bn]=zn;const ni=process.env["GITHUB_ENV"]||"";if(ni){return oa.issueFileCommand("ENV",oa.prepareKeyValueMessage(Bn,Hn))}aa.issueCommand("set-env",{name:Bn},zn)}Hn.exportVariable=exportVariable;function setSecret(Bn){aa.issueCommand("add-mask",{},Bn)}Hn.setSecret=setSecret;function addPath(Bn){const Hn=process.env["GITHUB_PATH"]||"";if(Hn){oa.issueFileCommand("PATH",Bn)}else{aa.issueCommand("add-path",{},Bn)}process.env["PATH"]=`${Bn}${xa.delimiter}${process.env["PATH"]}`}Hn.addPath=addPath;function getInput(Bn,Hn){const zn=process.env[`INPUT_${Bn.replace(/ /g,"_").toUpperCase()}`]||"";if(Hn&&Hn.required&&!zn){throw new Error(`Input required and not supplied: ${Bn}`)}if(Hn&&Hn.trimWhitespace===false){return zn}return zn.trim()}Hn.getInput=getInput;function getMultilineInput(Bn,Hn){const zn=getInput(Bn,Hn).split("\n").filter((Bn=>Bn!==""));if(Hn&&Hn.trimWhitespace===false){return zn}return zn.map((Bn=>Bn.trim()))}Hn.getMultilineInput=getMultilineInput;function getBooleanInput(Bn,Hn){const zn=["true","True","TRUE"];const ni=["false","False","FALSE"];const Ci=getInput(Bn,Hn);if(zn.includes(Ci))return true;if(ni.includes(Ci))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${Bn}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}Hn.getBooleanInput=getBooleanInput;function setOutput(Bn,Hn){const zn=process.env["GITHUB_OUTPUT"]||"";if(zn){return oa.issueFileCommand("OUTPUT",oa.prepareKeyValueMessage(Bn,Hn))}process.stdout.write(_a.EOL);aa.issueCommand("set-output",{name:Bn},ca.toCommandValue(Hn))}Hn.setOutput=setOutput;function setCommandEcho(Bn){aa.issue("echo",Bn?"on":"off")}Hn.setCommandEcho=setCommandEcho;function setFailed(Bn){process.exitCode=Ha.Failure;error(Bn)}Hn.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}Hn.isDebug=isDebug;function debug(Bn){aa.issueCommand("debug",{},Bn)}Hn.debug=debug;function error(Bn,Hn={}){aa.issueCommand("error",ca.toCommandProperties(Hn),Bn instanceof Error?Bn.toString():Bn)}Hn.error=error;function warning(Bn,Hn={}){aa.issueCommand("warning",ca.toCommandProperties(Hn),Bn instanceof Error?Bn.toString():Bn)}Hn.warning=warning;function notice(Bn,Hn={}){aa.issueCommand("notice",ca.toCommandProperties(Hn),Bn instanceof Error?Bn.toString():Bn)}Hn.notice=notice;function info(Bn){process.stdout.write(Bn+_a.EOL)}Hn.info=info;function startGroup(Bn){aa.issue("group",Bn)}Hn.startGroup=startGroup;function endGroup(){aa.issue("endgroup")}Hn.endGroup=endGroup;function group(Bn,Hn){return Ps(this,void 0,void 0,(function*(){startGroup(Bn);let zn;try{zn=yield Hn()}finally{endGroup()}return zn}))}Hn.group=group;function saveState(Bn,Hn){const zn=process.env["GITHUB_STATE"]||"";if(zn){return oa.issueFileCommand("STATE",oa.prepareKeyValueMessage(Bn,Hn))}aa.issueCommand("save-state",{name:Bn},ca.toCommandValue(Hn))}Hn.saveState=saveState;function getState(Bn){return process.env[`STATE_${Bn}`]||""}Hn.getState=getState;function getIDToken(Bn){return Ps(this,void 0,void 0,(function*(){return yield Ga.OidcClient.getIDToken(Bn)}))}Hn.getIDToken=getIDToken;var so=zn(81327);Object.defineProperty(Hn,"summary",{enumerable:true,get:function(){return so.summary}});var oo=zn(81327);Object.defineProperty(Hn,"markdownSummary",{enumerable:true,get:function(){return oo.markdownSummary}});var Jo=zn(2981);Object.defineProperty(Hn,"toPosixPath",{enumerable:true,get:function(){return Jo.toPosixPath}});Object.defineProperty(Hn,"toWin32Path",{enumerable:true,get:function(){return Jo.toWin32Path}});Object.defineProperty(Hn,"toPlatformPath",{enumerable:true,get:function(){return Jo.toPlatformPath}})},717:function(Bn,Hn,zn){"use strict";var ni=this&&this.__createBinding||(Object.create?function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Object.defineProperty(Bn,ni,{enumerable:true,get:function(){return Hn[zn]}})}:function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Bn[ni]=Hn[zn]});var Ci=this&&this.__setModuleDefault||(Object.create?function(Bn,Hn){Object.defineProperty(Bn,"default",{enumerable:true,value:Hn})}:function(Bn,Hn){Bn["default"]=Hn});var ts=this&&this.__importStar||function(Bn){if(Bn&&Bn.__esModule)return Bn;var Hn={};if(Bn!=null)for(var zn in Bn)if(zn!=="default"&&Object.hasOwnProperty.call(Bn,zn))ni(Hn,Bn,zn);Ci(Hn,Bn);return Hn};Object.defineProperty(Hn,"__esModule",{value:true});Hn.prepareKeyValueMessage=Hn.issueFileCommand=void 0;const Ps=ts(zn(57147));const aa=ts(zn(22037));const oa=zn(75840);const ca=zn(5278);function issueFileCommand(Bn,Hn){const zn=process.env[`GITHUB_${Bn}`];if(!zn){throw new Error(`Unable to find environment variable for file command ${Bn}`)}if(!Ps.existsSync(zn)){throw new Error(`Missing file at path: ${zn}`)}Ps.appendFileSync(zn,`${ca.toCommandValue(Hn)}${aa.EOL}`,{encoding:"utf8"})}Hn.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(Bn,Hn){const zn=`ghadelimiter_${oa.v4()}`;const ni=ca.toCommandValue(Hn);if(Bn.includes(zn)){throw new Error(`Unexpected input: name should not contain the delimiter "${zn}"`)}if(ni.includes(zn)){throw new Error(`Unexpected input: value should not contain the delimiter "${zn}"`)}return`${Bn}<<${zn}${aa.EOL}${ni}${aa.EOL}${zn}`}Hn.prepareKeyValueMessage=prepareKeyValueMessage},98041:function(Bn,Hn,zn){"use strict";var ni=this&&this.__awaiter||function(Bn,Hn,zn,ni){function adopt(Bn){return Bn instanceof zn?Bn:new zn((function(Hn){Hn(Bn)}))}return new(zn||(zn=Promise))((function(zn,Ci){function fulfilled(Bn){try{step(ni.next(Bn))}catch(Bn){Ci(Bn)}}function rejected(Bn){try{step(ni["throw"](Bn))}catch(Bn){Ci(Bn)}}function step(Bn){Bn.done?zn(Bn.value):adopt(Bn.value).then(fulfilled,rejected)}step((ni=ni.apply(Bn,Hn||[])).next())}))};Object.defineProperty(Hn,"__esModule",{value:true});Hn.OidcClient=void 0;const Ci=zn(96255);const ts=zn(35526);const Ps=zn(42186);class OidcClient{static createHttpClient(Bn=true,Hn=10){const zn={allowRetries:Bn,maxRetries:Hn};return new Ci.HttpClient("actions/oidc-client",[new ts.BearerCredentialHandler(OidcClient.getRequestToken())],zn)}static getRequestToken(){const Bn=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!Bn){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return Bn}static getIDTokenUrl(){const Bn=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!Bn){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return Bn}static getCall(Bn){var Hn;return ni(this,void 0,void 0,(function*(){const zn=OidcClient.createHttpClient();const ni=yield zn.getJson(Bn).catch((Bn=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${Bn.statusCode}\n \n Error Message: ${Bn.message}`)}));const Ci=(Hn=ni.result)===null||Hn===void 0?void 0:Hn.value;if(!Ci){throw new Error("Response json body do not have ID Token field")}return Ci}))}static getIDToken(Bn){return ni(this,void 0,void 0,(function*(){try{let Hn=OidcClient.getIDTokenUrl();if(Bn){const zn=encodeURIComponent(Bn);Hn=`${Hn}&audience=${zn}`}Ps.debug(`ID token url is ${Hn}`);const zn=yield OidcClient.getCall(Hn);Ps.setSecret(zn);return zn}catch(Bn){throw new Error(`Error message: ${Bn.message}`)}}))}}Hn.OidcClient=OidcClient},2981:function(Bn,Hn,zn){"use strict";var ni=this&&this.__createBinding||(Object.create?function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Object.defineProperty(Bn,ni,{enumerable:true,get:function(){return Hn[zn]}})}:function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Bn[ni]=Hn[zn]});var Ci=this&&this.__setModuleDefault||(Object.create?function(Bn,Hn){Object.defineProperty(Bn,"default",{enumerable:true,value:Hn})}:function(Bn,Hn){Bn["default"]=Hn});var ts=this&&this.__importStar||function(Bn){if(Bn&&Bn.__esModule)return Bn;var Hn={};if(Bn!=null)for(var zn in Bn)if(zn!=="default"&&Object.hasOwnProperty.call(Bn,zn))ni(Hn,Bn,zn);Ci(Hn,Bn);return Hn};Object.defineProperty(Hn,"__esModule",{value:true});Hn.toPlatformPath=Hn.toWin32Path=Hn.toPosixPath=void 0;const Ps=ts(zn(71017));function toPosixPath(Bn){return Bn.replace(/[\\]/g,"/")}Hn.toPosixPath=toPosixPath;function toWin32Path(Bn){return Bn.replace(/[/]/g,"\\")}Hn.toWin32Path=toWin32Path;function toPlatformPath(Bn){return Bn.replace(/[/\\]/g,Ps.sep)}Hn.toPlatformPath=toPlatformPath},81327:function(Bn,Hn,zn){"use strict";var ni=this&&this.__awaiter||function(Bn,Hn,zn,ni){function adopt(Bn){return Bn instanceof zn?Bn:new zn((function(Hn){Hn(Bn)}))}return new(zn||(zn=Promise))((function(zn,Ci){function fulfilled(Bn){try{step(ni.next(Bn))}catch(Bn){Ci(Bn)}}function rejected(Bn){try{step(ni["throw"](Bn))}catch(Bn){Ci(Bn)}}function step(Bn){Bn.done?zn(Bn.value):adopt(Bn.value).then(fulfilled,rejected)}step((ni=ni.apply(Bn,Hn||[])).next())}))};Object.defineProperty(Hn,"__esModule",{value:true});Hn.summary=Hn.markdownSummary=Hn.SUMMARY_DOCS_URL=Hn.SUMMARY_ENV_VAR=void 0;const Ci=zn(22037);const ts=zn(57147);const{access:Ps,appendFile:aa,writeFile:oa}=ts.promises;Hn.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";Hn.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return ni(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const Bn=process.env[Hn.SUMMARY_ENV_VAR];if(!Bn){throw new Error(`Unable to find environment variable for $${Hn.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield Ps(Bn,ts.constants.R_OK|ts.constants.W_OK)}catch(Hn){throw new Error(`Unable to access summary file: '${Bn}'. Check if the file has correct read/write permissions.`)}this._filePath=Bn;return this._filePath}))}wrap(Bn,Hn,zn={}){const ni=Object.entries(zn).map((([Bn,Hn])=>` ${Bn}="${Hn}"`)).join("");if(!Hn){return`<${Bn}${ni}>`}return`<${Bn}${ni}>${Hn}`}write(Bn){return ni(this,void 0,void 0,(function*(){const Hn=!!(Bn===null||Bn===void 0?void 0:Bn.overwrite);const zn=yield this.filePath();const ni=Hn?oa:aa;yield ni(zn,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return ni(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(Bn,Hn=false){this._buffer+=Bn;return Hn?this.addEOL():this}addEOL(){return this.addRaw(Ci.EOL)}addCodeBlock(Bn,Hn){const zn=Object.assign({},Hn&&{lang:Hn});const ni=this.wrap("pre",this.wrap("code",Bn),zn);return this.addRaw(ni).addEOL()}addList(Bn,Hn=false){const zn=Hn?"ol":"ul";const ni=Bn.map((Bn=>this.wrap("li",Bn))).join("");const Ci=this.wrap(zn,ni);return this.addRaw(Ci).addEOL()}addTable(Bn){const Hn=Bn.map((Bn=>{const Hn=Bn.map((Bn=>{if(typeof Bn==="string"){return this.wrap("td",Bn)}const{header:Hn,data:zn,colspan:ni,rowspan:Ci}=Bn;const ts=Hn?"th":"td";const Ps=Object.assign(Object.assign({},ni&&{colspan:ni}),Ci&&{rowspan:Ci});return this.wrap(ts,zn,Ps)})).join("");return this.wrap("tr",Hn)})).join("");const zn=this.wrap("table",Hn);return this.addRaw(zn).addEOL()}addDetails(Bn,Hn){const zn=this.wrap("details",this.wrap("summary",Bn)+Hn);return this.addRaw(zn).addEOL()}addImage(Bn,Hn,zn){const{width:ni,height:Ci}=zn||{};const ts=Object.assign(Object.assign({},ni&&{width:ni}),Ci&&{height:Ci});const Ps=this.wrap("img",null,Object.assign({src:Bn,alt:Hn},ts));return this.addRaw(Ps).addEOL()}addHeading(Bn,Hn){const zn=`h${Hn}`;const ni=["h1","h2","h3","h4","h5","h6"].includes(zn)?zn:"h1";const Ci=this.wrap(ni,Bn);return this.addRaw(Ci).addEOL()}addSeparator(){const Bn=this.wrap("hr",null);return this.addRaw(Bn).addEOL()}addBreak(){const Bn=this.wrap("br",null);return this.addRaw(Bn).addEOL()}addQuote(Bn,Hn){const zn=Object.assign({},Hn&&{cite:Hn});const ni=this.wrap("blockquote",Bn,zn);return this.addRaw(ni).addEOL()}addLink(Bn,Hn){const zn=this.wrap("a",Bn,{href:Hn});return this.addRaw(zn).addEOL()}}const ca=new Summary;Hn.markdownSummary=ca;Hn.summary=ca},5278:(Bn,Hn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn.toCommandProperties=Hn.toCommandValue=void 0;function toCommandValue(Bn){if(Bn===null||Bn===undefined){return""}else if(typeof Bn==="string"||Bn instanceof String){return Bn}return JSON.stringify(Bn)}Hn.toCommandValue=toCommandValue;function toCommandProperties(Bn){if(!Object.keys(Bn).length){return{}}return{title:Bn.title,file:Bn.file,line:Bn.startLine,endLine:Bn.endLine,col:Bn.startColumn,endColumn:Bn.endColumn}}Hn.toCommandProperties=toCommandProperties},35526:function(Bn,Hn){"use strict";var zn=this&&this.__awaiter||function(Bn,Hn,zn,ni){function adopt(Bn){return Bn instanceof zn?Bn:new zn((function(Hn){Hn(Bn)}))}return new(zn||(zn=Promise))((function(zn,Ci){function fulfilled(Bn){try{step(ni.next(Bn))}catch(Bn){Ci(Bn)}}function rejected(Bn){try{step(ni["throw"](Bn))}catch(Bn){Ci(Bn)}}function step(Bn){Bn.done?zn(Bn.value):adopt(Bn.value).then(fulfilled,rejected)}step((ni=ni.apply(Bn,Hn||[])).next())}))};Object.defineProperty(Hn,"__esModule",{value:true});Hn.PersonalAccessTokenCredentialHandler=Hn.BearerCredentialHandler=Hn.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(Bn,Hn){this.username=Bn;this.password=Hn}prepareRequest(Bn){if(!Bn.headers){throw Error("The request has no headers")}Bn.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return zn(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}Hn.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(Bn){this.token=Bn}prepareRequest(Bn){if(!Bn.headers){throw Error("The request has no headers")}Bn.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return zn(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}Hn.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(Bn){this.token=Bn}prepareRequest(Bn){if(!Bn.headers){throw Error("The request has no headers")}Bn.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return zn(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}Hn.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},96255:function(Bn,Hn,zn){"use strict";var ni=this&&this.__createBinding||(Object.create?function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;var Ci=Object.getOwnPropertyDescriptor(Hn,zn);if(!Ci||("get"in Ci?!Hn.__esModule:Ci.writable||Ci.configurable)){Ci={enumerable:true,get:function(){return Hn[zn]}}}Object.defineProperty(Bn,ni,Ci)}:function(Bn,Hn,zn,ni){if(ni===undefined)ni=zn;Bn[ni]=Hn[zn]});var Ci=this&&this.__setModuleDefault||(Object.create?function(Bn,Hn){Object.defineProperty(Bn,"default",{enumerable:true,value:Hn})}:function(Bn,Hn){Bn["default"]=Hn});var ts=this&&this.__importStar||function(Bn){if(Bn&&Bn.__esModule)return Bn;var Hn={};if(Bn!=null)for(var zn in Bn)if(zn!=="default"&&Object.prototype.hasOwnProperty.call(Bn,zn))ni(Hn,Bn,zn);Ci(Hn,Bn);return Hn};var Ps=this&&this.__awaiter||function(Bn,Hn,zn,ni){function adopt(Bn){return Bn instanceof zn?Bn:new zn((function(Hn){Hn(Bn)}))}return new(zn||(zn=Promise))((function(zn,Ci){function fulfilled(Bn){try{step(ni.next(Bn))}catch(Bn){Ci(Bn)}}function rejected(Bn){try{step(ni["throw"](Bn))}catch(Bn){Ci(Bn)}}function step(Bn){Bn.done?zn(Bn.value):adopt(Bn.value).then(fulfilled,rejected)}step((ni=ni.apply(Bn,Hn||[])).next())}))};Object.defineProperty(Hn,"__esModule",{value:true});Hn.HttpClient=Hn.isHttps=Hn.HttpClientResponse=Hn.HttpClientError=Hn.getProxyUrl=Hn.MediaTypes=Hn.Headers=Hn.HttpCodes=void 0;const aa=ts(zn(13685));const oa=ts(zn(95687));const ca=ts(zn(19835));const _a=ts(zn(74294));const xa=zn(41773);var Ga;(function(Bn){Bn[Bn["OK"]=200]="OK";Bn[Bn["MultipleChoices"]=300]="MultipleChoices";Bn[Bn["MovedPermanently"]=301]="MovedPermanently";Bn[Bn["ResourceMoved"]=302]="ResourceMoved";Bn[Bn["SeeOther"]=303]="SeeOther";Bn[Bn["NotModified"]=304]="NotModified";Bn[Bn["UseProxy"]=305]="UseProxy";Bn[Bn["SwitchProxy"]=306]="SwitchProxy";Bn[Bn["TemporaryRedirect"]=307]="TemporaryRedirect";Bn[Bn["PermanentRedirect"]=308]="PermanentRedirect";Bn[Bn["BadRequest"]=400]="BadRequest";Bn[Bn["Unauthorized"]=401]="Unauthorized";Bn[Bn["PaymentRequired"]=402]="PaymentRequired";Bn[Bn["Forbidden"]=403]="Forbidden";Bn[Bn["NotFound"]=404]="NotFound";Bn[Bn["MethodNotAllowed"]=405]="MethodNotAllowed";Bn[Bn["NotAcceptable"]=406]="NotAcceptable";Bn[Bn["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";Bn[Bn["RequestTimeout"]=408]="RequestTimeout";Bn[Bn["Conflict"]=409]="Conflict";Bn[Bn["Gone"]=410]="Gone";Bn[Bn["TooManyRequests"]=429]="TooManyRequests";Bn[Bn["InternalServerError"]=500]="InternalServerError";Bn[Bn["NotImplemented"]=501]="NotImplemented";Bn[Bn["BadGateway"]=502]="BadGateway";Bn[Bn["ServiceUnavailable"]=503]="ServiceUnavailable";Bn[Bn["GatewayTimeout"]=504]="GatewayTimeout"})(Ga||(Hn.HttpCodes=Ga={}));var Ha;(function(Bn){Bn["Accept"]="accept";Bn["ContentType"]="content-type"})(Ha||(Hn.Headers=Ha={}));var so;(function(Bn){Bn["ApplicationJson"]="application/json"})(so||(Hn.MediaTypes=so={}));function getProxyUrl(Bn){const Hn=ca.getProxyUrl(new URL(Bn));return Hn?Hn.href:""}Hn.getProxyUrl=getProxyUrl;const oo=[Ga.MovedPermanently,Ga.ResourceMoved,Ga.SeeOther,Ga.TemporaryRedirect,Ga.PermanentRedirect];const Jo=[Ga.BadGateway,Ga.ServiceUnavailable,Ga.GatewayTimeout];const tc=["OPTIONS","GET","DELETE","HEAD"];const dc=10;const Fc=5;class HttpClientError extends Error{constructor(Bn,Hn){super(Bn);this.name="HttpClientError";this.statusCode=Hn;Object.setPrototypeOf(this,HttpClientError.prototype)}}Hn.HttpClientError=HttpClientError;class HttpClientResponse{constructor(Bn){this.message=Bn}readBody(){return Ps(this,void 0,void 0,(function*(){return new Promise((Bn=>Ps(this,void 0,void 0,(function*(){let Hn=Buffer.alloc(0);this.message.on("data",(Bn=>{Hn=Buffer.concat([Hn,Bn])}));this.message.on("end",(()=>{Bn(Hn.toString())}))}))))}))}readBodyBuffer(){return Ps(this,void 0,void 0,(function*(){return new Promise((Bn=>Ps(this,void 0,void 0,(function*(){const Hn=[];this.message.on("data",(Bn=>{Hn.push(Bn)}));this.message.on("end",(()=>{Bn(Buffer.concat(Hn))}))}))))}))}}Hn.HttpClientResponse=HttpClientResponse;function isHttps(Bn){const Hn=new URL(Bn);return Hn.protocol==="https:"}Hn.isHttps=isHttps;class HttpClient{constructor(Bn,Hn,zn){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=Bn;this.handlers=Hn||[];this.requestOptions=zn;if(zn){if(zn.ignoreSslError!=null){this._ignoreSslError=zn.ignoreSslError}this._socketTimeout=zn.socketTimeout;if(zn.allowRedirects!=null){this._allowRedirects=zn.allowRedirects}if(zn.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=zn.allowRedirectDowngrade}if(zn.maxRedirects!=null){this._maxRedirects=Math.max(zn.maxRedirects,0)}if(zn.keepAlive!=null){this._keepAlive=zn.keepAlive}if(zn.allowRetries!=null){this._allowRetries=zn.allowRetries}if(zn.maxRetries!=null){this._maxRetries=zn.maxRetries}}}options(Bn,Hn){return Ps(this,void 0,void 0,(function*(){return this.request("OPTIONS",Bn,null,Hn||{})}))}get(Bn,Hn){return Ps(this,void 0,void 0,(function*(){return this.request("GET",Bn,null,Hn||{})}))}del(Bn,Hn){return Ps(this,void 0,void 0,(function*(){return this.request("DELETE",Bn,null,Hn||{})}))}post(Bn,Hn,zn){return Ps(this,void 0,void 0,(function*(){return this.request("POST",Bn,Hn,zn||{})}))}patch(Bn,Hn,zn){return Ps(this,void 0,void 0,(function*(){return this.request("PATCH",Bn,Hn,zn||{})}))}put(Bn,Hn,zn){return Ps(this,void 0,void 0,(function*(){return this.request("PUT",Bn,Hn,zn||{})}))}head(Bn,Hn){return Ps(this,void 0,void 0,(function*(){return this.request("HEAD",Bn,null,Hn||{})}))}sendStream(Bn,Hn,zn,ni){return Ps(this,void 0,void 0,(function*(){return this.request(Bn,Hn,zn,ni)}))}getJson(Bn,Hn={}){return Ps(this,void 0,void 0,(function*(){Hn[Ha.Accept]=this._getExistingOrDefaultHeader(Hn,Ha.Accept,so.ApplicationJson);const zn=yield this.get(Bn,Hn);return this._processResponse(zn,this.requestOptions)}))}postJson(Bn,Hn,zn={}){return Ps(this,void 0,void 0,(function*(){const ni=JSON.stringify(Hn,null,2);zn[Ha.Accept]=this._getExistingOrDefaultHeader(zn,Ha.Accept,so.ApplicationJson);zn[Ha.ContentType]=this._getExistingOrDefaultHeader(zn,Ha.ContentType,so.ApplicationJson);const Ci=yield this.post(Bn,ni,zn);return this._processResponse(Ci,this.requestOptions)}))}putJson(Bn,Hn,zn={}){return Ps(this,void 0,void 0,(function*(){const ni=JSON.stringify(Hn,null,2);zn[Ha.Accept]=this._getExistingOrDefaultHeader(zn,Ha.Accept,so.ApplicationJson);zn[Ha.ContentType]=this._getExistingOrDefaultHeader(zn,Ha.ContentType,so.ApplicationJson);const Ci=yield this.put(Bn,ni,zn);return this._processResponse(Ci,this.requestOptions)}))}patchJson(Bn,Hn,zn={}){return Ps(this,void 0,void 0,(function*(){const ni=JSON.stringify(Hn,null,2);zn[Ha.Accept]=this._getExistingOrDefaultHeader(zn,Ha.Accept,so.ApplicationJson);zn[Ha.ContentType]=this._getExistingOrDefaultHeader(zn,Ha.ContentType,so.ApplicationJson);const Ci=yield this.patch(Bn,ni,zn);return this._processResponse(Ci,this.requestOptions)}))}request(Bn,Hn,zn,ni){return Ps(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const Ci=new URL(Hn);let ts=this._prepareRequest(Bn,Ci,ni);const Ps=this._allowRetries&&tc.includes(Bn)?this._maxRetries+1:1;let aa=0;let oa;do{oa=yield this.requestRaw(ts,zn);if(oa&&oa.message&&oa.message.statusCode===Ga.Unauthorized){let Bn;for(const Hn of this.handlers){if(Hn.canHandleAuthentication(oa)){Bn=Hn;break}}if(Bn){return Bn.handleAuthentication(this,ts,zn)}else{return oa}}let Hn=this._maxRedirects;while(oa.message.statusCode&&oo.includes(oa.message.statusCode)&&this._allowRedirects&&Hn>0){const Ps=oa.message.headers["location"];if(!Ps){break}const aa=new URL(Ps);if(Ci.protocol==="https:"&&Ci.protocol!==aa.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield oa.readBody();if(aa.hostname!==Ci.hostname){for(const Bn in ni){if(Bn.toLowerCase()==="authorization"){delete ni[Bn]}}}ts=this._prepareRequest(Bn,aa,ni);oa=yield this.requestRaw(ts,zn);Hn--}if(!oa.message.statusCode||!Jo.includes(oa.message.statusCode)){return oa}aa+=1;if(aa{function callbackForResult(Bn,Hn){if(Bn){ni(Bn)}else if(!Hn){ni(new Error("Unknown error"))}else{zn(Hn)}}this.requestRawWithCallback(Bn,Hn,callbackForResult)}))}))}requestRawWithCallback(Bn,Hn,zn){if(typeof Hn==="string"){if(!Bn.options.headers){Bn.options.headers={}}Bn.options.headers["Content-Length"]=Buffer.byteLength(Hn,"utf8")}let ni=false;function handleResult(Bn,Hn){if(!ni){ni=true;zn(Bn,Hn)}}const Ci=Bn.httpModule.request(Bn.options,(Bn=>{const Hn=new HttpClientResponse(Bn);handleResult(undefined,Hn)}));let ts;Ci.on("socket",(Bn=>{ts=Bn}));Ci.setTimeout(this._socketTimeout||3*6e4,(()=>{if(ts){ts.end()}handleResult(new Error(`Request timeout: ${Bn.options.path}`))}));Ci.on("error",(function(Bn){handleResult(Bn)}));if(Hn&&typeof Hn==="string"){Ci.write(Hn,"utf8")}if(Hn&&typeof Hn!=="string"){Hn.on("close",(function(){Ci.end()}));Hn.pipe(Ci)}else{Ci.end()}}getAgent(Bn){const Hn=new URL(Bn);return this._getAgent(Hn)}getAgentDispatcher(Bn){const Hn=new URL(Bn);const zn=ca.getProxyUrl(Hn);const ni=zn&&zn.hostname;if(!ni){return}return this._getProxyAgentDispatcher(Hn,zn)}_prepareRequest(Bn,Hn,zn){const ni={};ni.parsedUrl=Hn;const Ci=ni.parsedUrl.protocol==="https:";ni.httpModule=Ci?oa:aa;const ts=Ci?443:80;ni.options={};ni.options.host=ni.parsedUrl.hostname;ni.options.port=ni.parsedUrl.port?parseInt(ni.parsedUrl.port):ts;ni.options.path=(ni.parsedUrl.pathname||"")+(ni.parsedUrl.search||"");ni.options.method=Bn;ni.options.headers=this._mergeHeaders(zn);if(this.userAgent!=null){ni.options.headers["user-agent"]=this.userAgent}ni.options.agent=this._getAgent(ni.parsedUrl);if(this.handlers){for(const Bn of this.handlers){Bn.prepareRequest(ni.options)}}return ni}_mergeHeaders(Bn){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(Bn||{}))}return lowercaseKeys(Bn||{})}_getExistingOrDefaultHeader(Bn,Hn,zn){let ni;if(this.requestOptions&&this.requestOptions.headers){ni=lowercaseKeys(this.requestOptions.headers)[Hn]}return Bn[Hn]||ni||zn}_getAgent(Bn){let Hn;const zn=ca.getProxyUrl(Bn);const ni=zn&&zn.hostname;if(this._keepAlive&&ni){Hn=this._proxyAgent}if(!ni){Hn=this._agent}if(Hn){return Hn}const Ci=Bn.protocol==="https:";let ts=100;if(this.requestOptions){ts=this.requestOptions.maxSockets||aa.globalAgent.maxSockets}if(zn&&zn.hostname){const Bn={maxSockets:ts,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(zn.username||zn.password)&&{proxyAuth:`${zn.username}:${zn.password}`}),{host:zn.hostname,port:zn.port})};let ni;const Ps=zn.protocol==="https:";if(Ci){ni=Ps?_a.httpsOverHttps:_a.httpsOverHttp}else{ni=Ps?_a.httpOverHttps:_a.httpOverHttp}Hn=ni(Bn);this._proxyAgent=Hn}if(!Hn){const Bn={keepAlive:this._keepAlive,maxSockets:ts};Hn=Ci?new oa.Agent(Bn):new aa.Agent(Bn);this._agent=Hn}if(Ci&&this._ignoreSslError){Hn.options=Object.assign(Hn.options||{},{rejectUnauthorized:false})}return Hn}_getProxyAgentDispatcher(Bn,Hn){let zn;if(this._keepAlive){zn=this._proxyAgentDispatcher}if(zn){return zn}const ni=Bn.protocol==="https:";zn=new xa.ProxyAgent(Object.assign({uri:Hn.href,pipelining:!this._keepAlive?0:1},(Hn.username||Hn.password)&&{token:`${Hn.username}:${Hn.password}`}));this._proxyAgentDispatcher=zn;if(ni&&this._ignoreSslError){zn.options=Object.assign(zn.options.requestTls||{},{rejectUnauthorized:false})}return zn}_performExponentialBackoff(Bn){return Ps(this,void 0,void 0,(function*(){Bn=Math.min(dc,Bn);const Hn=Fc*Math.pow(2,Bn);return new Promise((Bn=>setTimeout((()=>Bn()),Hn)))}))}_processResponse(Bn,Hn){return Ps(this,void 0,void 0,(function*(){return new Promise(((zn,ni)=>Ps(this,void 0,void 0,(function*(){const Ci=Bn.message.statusCode||0;const ts={statusCode:Ci,result:null,headers:{}};if(Ci===Ga.NotFound){zn(ts)}function dateTimeDeserializer(Bn,Hn){if(typeof Hn==="string"){const Bn=new Date(Hn);if(!isNaN(Bn.valueOf())){return Bn}}return Hn}let Ps;let aa;try{aa=yield Bn.readBody();if(aa&&aa.length>0){if(Hn&&Hn.deserializeDates){Ps=JSON.parse(aa,dateTimeDeserializer)}else{Ps=JSON.parse(aa)}ts.result=Ps}ts.headers=Bn.message.headers}catch(Bn){}if(Ci>299){let Bn;if(Ps&&Ps.message){Bn=Ps.message}else if(aa&&aa.length>0){Bn=aa}else{Bn=`Failed request: (${Ci})`}const Hn=new HttpClientError(Bn,Ci);Hn.result=ts.result;ni(Hn)}else{zn(ts)}}))))}))}}Hn.HttpClient=HttpClient;const lowercaseKeys=Bn=>Object.keys(Bn).reduce(((Hn,zn)=>(Hn[zn.toLowerCase()]=Bn[zn],Hn)),{})},19835:(Bn,Hn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn.checkBypass=Hn.getProxyUrl=void 0;function getProxyUrl(Bn){const Hn=Bn.protocol==="https:";if(checkBypass(Bn)){return undefined}const zn=(()=>{if(Hn){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(zn){try{return new URL(zn)}catch(Bn){if(!zn.startsWith("http://")&&!zn.startsWith("https://"))return new URL(`http://${zn}`)}}else{return undefined}}Hn.getProxyUrl=getProxyUrl;function checkBypass(Bn){if(!Bn.hostname){return false}const Hn=Bn.hostname;if(isLoopbackAddress(Hn)){return true}const zn=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!zn){return false}let ni;if(Bn.port){ni=Number(Bn.port)}else if(Bn.protocol==="http:"){ni=80}else if(Bn.protocol==="https:"){ni=443}const Ci=[Bn.hostname.toUpperCase()];if(typeof ni==="number"){Ci.push(`${Ci[0]}:${ni}`)}for(const Bn of zn.split(",").map((Bn=>Bn.trim().toUpperCase())).filter((Bn=>Bn))){if(Bn==="*"||Ci.some((Hn=>Hn===Bn||Hn.endsWith(`.${Bn}`)||Bn.startsWith(".")&&Hn.endsWith(`${Bn}`)))){return true}}return false}Hn.checkBypass=checkBypass;function isLoopbackAddress(Bn){const Hn=Bn.toLowerCase();return Hn==="localhost"||Hn.startsWith("127.")||Hn.startsWith("[::1]")||Hn.startsWith("[0:0:0:0:0:0:0:1]")}},98042:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});function _interopDefault(Bn){return Bn&&typeof Bn==="object"&&"default"in Bn?Bn["default"]:Bn}var ni=zn(21917);var Ci=_interopDefault(zn(72426));function _inheritsLoose(Bn,Hn){Bn.prototype=Object.create(Hn.prototype);Bn.prototype.constructor=Bn;_setPrototypeOf(Bn,Hn)}function _getPrototypeOf(Bn){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(Bn){return Bn.__proto__||Object.getPrototypeOf(Bn)};return _getPrototypeOf(Bn)}function _setPrototypeOf(Bn,Hn){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(Bn,Hn){Bn.__proto__=Hn;return Bn};return _setPrototypeOf(Bn,Hn)}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(Bn){return false}}function _construct(Bn,Hn,zn){if(_isNativeReflectConstruct()){_construct=Reflect.construct.bind()}else{_construct=function _construct(Bn,Hn,zn){var ni=[null];ni.push.apply(ni,Hn);var Ci=Function.bind.apply(Bn,ni);var ts=new Ci;if(zn)_setPrototypeOf(ts,zn.prototype);return ts}}return _construct.apply(null,arguments)}function _isNativeFunction(Bn){return Function.toString.call(Bn).indexOf("[native code]")!==-1}function _wrapNativeSuper(Bn){var Hn=typeof Map==="function"?new Map:undefined;_wrapNativeSuper=function _wrapNativeSuper(Bn){if(Bn===null||!_isNativeFunction(Bn))return Bn;if(typeof Bn!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof Hn!=="undefined"){if(Hn.has(Bn))return Hn.get(Bn);Hn.set(Bn,Wrapper)}function Wrapper(){return _construct(Bn,arguments,_getPrototypeOf(this).constructor)}Wrapper.prototype=Object.create(Bn.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Bn)};return _wrapNativeSuper(Bn)}function _unsupportedIterableToArray(Bn,Hn){if(!Bn)return;if(typeof Bn==="string")return _arrayLikeToArray(Bn,Hn);var zn=Object.prototype.toString.call(Bn).slice(8,-1);if(zn==="Object"&&Bn.constructor)zn=Bn.constructor.name;if(zn==="Map"||zn==="Set")return Array.from(Bn);if(zn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(zn))return _arrayLikeToArray(Bn,Hn)}function _arrayLikeToArray(Bn,Hn){if(Hn==null||Hn>Bn.length)Hn=Bn.length;for(var zn=0,ni=new Array(Hn);zn=Bn.length)return{done:true};return{done:false,value:Bn[ni++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ts,Ps,aa;var oa={COMMIT:"commit",PR_CREATED:"pr_created",COMMENT_ADDED:"comment_added",LABEL_ADDED:"label_added",LABEL_REMOVED:"label_removed"};var ca={SEND_SLACK_MESSAGE:"send-slack-message@v1",EXPLAIN_CODE_EXPERTS:"explain-code-experts@v1",ADD_COMMENT:"add-comment@v1",ADD_LABEL:"add-label@v1",ADD_LABELS:"add-labels@v1",ADD_REVIEWERS:"add-reviewers@v1",APPROVE:"approve@v1",MERGE:"merge@v1",SET_REQUIRED_APPROVALS:"set-required-approvals@v1",REQUIRE_REVIEWER:"require-reviewers@v1",REQUEST_CHANGES:"request-changes@v1",UPDATE_CHECK:"update-check@v1",CLOSE:"close@v1",HTTP_REQUEST:"http-request@v1",SEND_HTTP_REQUEST:"send-http-request@v1",INVOKE_GITHUB_ACTION:"invoke-github-action@v1",ADD_GITHUB_CHECK:"add-github-check@v1",RUN_GITHUB_WORKFLOW:"run-github-workflow@v1"};var _a={default:ca,gitlab:{ADD_COMMENT:"add-comment@v1",ADD_LABEL:"add-label@v1",ADD_LABELS:"add-labels@v1",ADD_REVIEWERS:"add-reviewers@v1",APPROVE:"approve@v1",MERGE:"merge@v1",CLOSE:"close@v1",EXPLAIN_CODE_EXPERTS:"explain-code-experts@v1",SEND_SLACK_MESSAGE:"send-slack-message@v1",REQUEST_CHANGES:"request-changes@v1"}};var xa=(ts={},ts[ca.SEND_SLACK_MESSAGE]=["webhook_url","message"],ts[ca.EXPLAIN_CODE_EXPERTS]=["lt","gt"],ts[ca.ADD_COMMENT]=["comment","pin_uid"],ts[ca.ADD_LABEL]=["label","color"],ts[ca.ADD_LABELS]=["labels"],ts[ca.ADD_REVIEWERS]=["reviewers","team_reviewers","unless_reviewers_set","fail_on_error","wait_for_all_checks"],ts[ca.MERGE]=["wait_for_all_checks","rebase_on_merge","squash_on_merge"],ts[ca.SET_REQUIRED_APPROVALS]=["approvals"],ts[ca.REQUEST_CHANGES]=["comment"],ts[ca.REQUIRE_REVIEWER]=["reviewers","also_assign","team_reviewers","fail_on_error"],ts[ca.HTTP_REQUEST]=["url","method","user","body","timeout","headers"],ts[ca.SEND_HTTP_REQUEST]=["url","method","user","body","timeout","headers"],ts[ca.INVOKE_GITHUB_ACTION]=["owner","repo","workflow","ref","inputs","check_name","stop_ongoing_workflow"],ts[ca.UPDATE_CHECK]=["check_name","status","conclusion"],ts[ca.ADD_GITHUB_CHECK]=["check_name","conclusion"],ts[ca.RUN_GITHUB_WORKFLOW]=["owner","repo","workflow","ref","inputs","check_name","stop_ongoing_workflow","timeout"],ts);var Ga=(Ps={},Ps[ca.SEND_SLACK_MESSAGE]={all:true,args:["webhook_url","message"]},Ps[ca.EXPLAIN_CODE_EXPERTS]={all:false,args:["lt","gt"]},Ps[ca.ADD_COMMENT]={all:true,args:["comment"]},Ps[ca.ADD_LABEL]={all:true,args:["label"]},Ps[ca.ADD_LABELS]={all:true,args:["labels"]},Ps[ca.ADD_REVIEWERS]={all:false,args:["reviewers","team_reviewers"]},Ps[ca.SET_REQUIRED_APPROVALS]={all:true,args:["approvals"]},Ps[ca.REQUEST_CHANGES]={all:true,args:["comment"]},Ps[ca.REQUIRE_REVIEWER]={all:false,args:["reviewers","team_reviewers"]},Ps[ca.HTTP_REQUEST]={all:true,args:["url"]},Ps[ca.SEND_HTTP_REQUEST]={all:true,args:["url"]},Ps[ca.INVOKE_GITHUB_ACTION]={all:false,args:["workflow"]},Ps[ca.UPDATE_CHECK]={all:true,args:["check_name","status","conclusion"]},Ps[ca.ADD_GITHUB_CHECK]={all:true,args:["check_name","conclusion"]},Ps[ca.RUN_GITHUB_WORKFLOW]={all:true,args:["workflow"]},Ps);var Ha=["branch","branch.name","branch.base","branch.diff.size","branch.diff.files_metadata","branch.num_of_commits","files","pr","pr.approvals","pr.author","pr.author_teams","pr.checks","pr.comments","pr.conversations","pr.created_at","pr.draft","pr.description","pr.labels","pr.provider","pr.reviewers","pr.status","pr.target","pr.title","pr.requested_changes","pr.reviews","pr.updated_at","pr.conflicted_files_count","pr.number","repo","repo.git_activity","repo.age","repo.author_age","repo.blame","repo.contributors","repo.name","repo.owner","repo.visibility","source","source.diff.files"];var so={every:["list"],filter:["list","regex","term"],includes:["list","regex","term"],map:["list","attr"],match:["list","regex","term","attr"],nope:[],reject:["list","regex","term"],some:["list"],allDocs:[],allImages:[],allTests:[],codeExperts:["gt","lt"],estimatedReviewTime:[],extensions:[],extractJitFindings:[],extractSonarFindings:[],explainCodeExperts:["gt","lt"],explainRankByGitBlame:["gt","lt"],isFirstCommit:[],isFormattingChange:[],mapToEnum:[],matchDiffLines:["regex","ignoreWhiteSpaces"],rankByGitActivity:["gt","lt"],rankByGitBlame:["gt","lt"],intersection:["list"],difference:["list"],capture:["regex"],countTests:[],getJiraTicketDetails:["url","username","apiToken","additionalFields"]};var oo=["abs","attr","batch","capitalize","center","default","dictsort","escape","filesizeformat","first","float","forceescape","format","groupby","indent","int","join","last","length","list","lower","map","max","min","pprint","random","reject","rejectattr","replace","reverse","round","safe","select","selectattr","slice","sort","split","string","striptags","sum","title","trim","truncate","unique","upper","urlencode","urlize","wordcount","wordwrap","xmlattr","nl2br","dump"];var Jo=[1];var tc=(aa={},aa[ca.ADD_COMMENT]={comment:{type:"string",required:true}},aa[ca.ADD_LABEL]={label:{type:"string",required:true},color:{type:"string",required:false}},aa[ca.ADD_LABELS]={labels:{type:"array",required:true}},aa[ca.ADD_REVIEWERS]={reviewers:{type:"array",required:true},team_reviewers:{type:"array",required:false},unless_reviewers_set:{type:"boolean",required:false},fail_on_error:{type:"boolean",required:false},wait_for_all_checks:{type:"boolean",required:false}},aa[ca.APPROVE]={},aa[ca.CLOSE]={},aa[ca.MERGE]={wait_for_all_checks:{type:"boolean",required:false},rebase_on_merge:{type:"boolean",required:false},squash_on_merge:{type:"boolean",required:false}},aa[ca.SET_REQUIRED_APPROVALS]={approvals:{type:"number",required:true}},aa[ca.REQUEST_CHANGES]={comment:{type:"string",required:true}},aa[ca.REQUIRE_REVIEWER]={reviewers:{type:"array",required:true},also_assign:{type:"boolean",required:false}},aa[ca.EXPLAIN_CODE_EXPERTS]={lt:{type:"number",required:false},gt:{type:"number",required:false}},aa[ca.SEND_SLACK_MESSAGE]={webhook_url:{type:"string",required:true},message:{type:"string",required:true}},aa[ca.INVOKE_GITHUB_ACTION]={owner:{type:"string",required:false},repo:{type:"string",required:false},workflow:{type:"string",required:true},ref:{type:"string",required:false},inputs:{type:"number",required:false},check_name:{type:"string",required:false},stop_ongoing_workflow:{type:"boolean",required:false}},aa[ca.ADD_GITHUB_CHECK]={check_name:{type:"string",required:true},conclusion:{type:"string",required:true}},aa[ca.RUN_GITHUB_WORKFLOW]={owner:{type:"string",required:false},repo:{type:"string",required:false},workflow:{type:"string",required:true},ref:{type:"string",required:false},inputs:{type:"string",required:false},check_name:{type:"string",required:false},stop_ongoing_workflow:{type:"boolean",required:false},timeout:{type:"number",required:false}},aa);var dc={type:"object",properties:{manifest:{type:"object",properties:{version:{type:"number",enum:Jo}},required:["version"]},config:{type:"object",properties:{ignore_files:{type:"array",items:{type:"string"}},ignore_repositories:{type:"array",items:{type:"string"}},admin:{type:"object",properties:{users:{type:"array",items:{type:"string"}}}}}},on:{type:"array",items:{type:"string",enum:Object.values(oa)}},automations:{type:"object",patternProperties:{"^[a-zA-Z0-9_@]+$":{type:"object",properties:{on:{type:"array",items:{type:"string",enum:Object.values(oa)}},if:{type:"array"},run:{type:"array",items:{type:"object",properties:{action:{type:"string",enum:Object.keys(tc)},args:{type:"object"}},required:["action"]}}},required:["if","run"]}}}},required:["manifest","automations"]};var Fc=/{{.*?}}/g;var Jc=/\{%\s*.*?\s*%\}/g;var Dp=/\/(.*?)\//g;var kp={__proto__:null,SUPPORTED_TRIGGERS:oa,SUPPORTED_ACTIONS:ca,SUPPORTED_ACTIONS_BY_PROVIDER:_a,SUPPORTED_ARGUMENTS_BY_ACTION:xa,REQUIRED_ARGUMENTS_BY_ACTIONS:Ga,VALID_CONTEXT_VARS:Ha,VALID_FILTERS:so,JINJA_FILTERS:oo,VALID_VERSIONS:Jo,VALID_ACTIONS:tc,CM_SCHEMA:dc,JINJA_EXPRESSION_REGEX:Fc,LOOP_EXPRESSION:Jc,REGEX_EXPRESSION:Dp};var Qp=function(){function ValidatorBase(){}var Bn=ValidatorBase.prototype;Bn.validate=function validate(Bn){throw new Error('Abstract method "validate" must be implemented.')};ValidatorBase.parseJinjaExpressions=function parseJinjaExpressions(Bn){var Hn=Bn.split("\n");var zn=[];Hn.forEach((function(Bn,Hn){var ni=Bn.match(Fc);if(ni){ni.forEach((function(Bn){zn.push({expression:Bn,lineNumber:Hn+1})}))}}));return zn};return ValidatorBase}();var Up=function(Bn){_inheritsLoose(ValidationError,Bn);function ValidationError(Hn){var zn;zn=Bn.call(this,Hn)||this;zn.name="ValidationError";return zn}return ValidationError}(_wrapNativeSuper(Error));var qp="UNKNOWN_CONTEXT";var Vp=function(Bn){_inheritsLoose(ContextVariableValidator,Bn);function ContextVariableValidator(){return Bn.apply(this,arguments)||this}var Hn=ContextVariableValidator.prototype;Hn.isValidCustomVariables=function isValidCustomVariables(Bn,Hn){var zn=Bn.split(".").slice(0,-1);return zn.map((function(Bn){return Bn.replace(/[()]/g,"")})).every((function(Bn){return Hn.includes(Bn+":")}))};Hn.isValidContextVariable=function isValidContextVariable(Bn){if(!Ha.includes(Bn||qp)){return false}return true};Hn.validate=function validate(Bn){var Hn=this;var zn=Bn.expressions,ni=Bn.yamlFile;var Ci=zn!=null?zn:Qp.parseJinjaExpressions(ni);Ci.forEach((function(Bn){var zn,Ci,ts;var Ps=Bn.expression,aa=Bn.lineNumber;var oa=Ps.replace(/[{}]/g,"").split("|");var ca=(zn=(Ci=oa.shift())==null?void 0:Ci.trim())!=null?zn:qp;var _a=(ts=ca==null?void 0:ca.split(" "))!=null?ts:[];_a.forEach((function(Bn){if(!Hn.isValidContextVariable(Bn)&&!Hn.isValidCustomVariables(Bn,ni)){throw new Up("Line ["+aa+"]: Invalid context variable "+Bn+" in expression "+Ps)}}))}))};return ContextVariableValidator}(Qp);var Jp=function(Bn){_inheritsLoose(FiltersValidator,Bn);function FiltersValidator(){return Bn.apply(this,arguments)||this}var Hn=FiltersValidator.prototype;Hn.validateExistingFilter=function validateExistingFilter(Bn,Hn,zn){if(oo.includes(Bn)||Ha.includes(Bn)){return}if(!Object.keys(so).includes(Bn)){throw new Up("Line "+Hn+": Invalid filter function "+Bn+" in expression "+zn)}};Hn.getFilterArgs=function getFilterArgs(Bn){return Bn.slice(Bn.indexOf("(")+1,Bn.lastIndexOf(")")).replace(Dp,"").split(",").map((function(Bn){return Bn.split("=")[0].trim()}))};Hn.validateFilterArgs=function validateFilterArgs(Bn,Hn,zn,ni){if(Bn.includes("(")){var Ci=this.getFilterArgs(Bn);var ts=so[Hn];for(var Ps=_createForOfIteratorHelperLoose(Ci),aa;!(aa=Ps()).done;){var oa=aa.value;if(!ts.includes(oa)){throw new Up("Line ["+zn+"]: Invalid argument "+oa+" for filter "+Hn+" in expression "+ni)}}}};Hn.validate=function validate(Bn){var Hn=this;var zn=Bn.expressions,ni=Bn.yamlFile;var Ci=zn!=null?zn:Qp.parseJinjaExpressions(ni);Ci.forEach((function(Bn){var zn;var ni=Bn.expression,Ci=Bn.lineNumber;var ts=(zn=ni.replace(Dp,"").replace(/[{}]/g,"").split("|").slice(1))!=null?zn:[];for(var Ps=_createForOfIteratorHelperLoose(ts),aa;!(aa=Ps()).done;){var oa=aa.value;var ca=oa.split(/\s*==\s*|\s*<\s*|\s*>\s*/)[0];var _a=ca.split("("),xa=_a[0];var Ga=xa.trim();Hn.validateExistingFilter(Ga,Ci,ni);Hn.validateFilterArgs(ca,Ga,Ci,ni)}}))};return FiltersValidator}(Qp);var Wp=function(Bn){_inheritsLoose(ActionsValidator,Bn);function ActionsValidator(){return Bn.apply(this,arguments)||this}var Hn=ActionsValidator.prototype;Hn.validateActionSupported=function validateActionSupported(Bn){if(!Object.values(ca).includes(Bn)){throw new Up("Action is not supported "+Bn)}};Hn.validateArgSupported=function validateArgSupported(Bn,Hn){var zn=Hn==null?void 0:Hn.filter((function(Hn){return!xa[Bn].includes(Hn)}));if(zn.length){throw new Up("Some args are not supported: "+zn.join(", "))}};Hn.validateRequiredArgs=function validateRequiredArgs(Bn,Hn){var zn;var ni=Ga[Bn];if(!ni){return}var Ci=(zn=ni.args)==null?void 0:zn.filter((function(Bn){return!Hn.includes(Bn)}));if(ni.all&&Ci.length||!ni.all&&!ni.args.some((function(Bn){return Hn.includes(Bn)}))){throw new Up("Some required args are missing for action "+Bn+": "+Ci.join(", "))}};Hn.validateIfStructure=function validateIfStructure(Bn){if(Bn!=="TEMPLATE"&&typeof Bn!=="boolean"){throw new Up("An entry in If section is not YAML supported")}};Hn.validate=function validate(Bn){var Hn=this,zn;var Ci=Bn.yamlFile;var ts=Ci.replace(Fc,"TEMPLATE");var Ps=ni.load(ts);Object.values(Ps.automations).flatMap((function(Bn){return Bn["if"]})).forEach((function(Bn){return Hn.validateIfStructure(Bn)}));var aa=(zn=Object.values(Ps.automations).flatMap((function(Bn){return Bn.run})))==null?void 0:zn.filter(Boolean);for(var oa=_createForOfIteratorHelperLoose(aa),ca;!(ca=oa()).done;){var _a=ca.value;var xa=_a.action,Ga=_a.args;var Ha=Object.keys(Ga!=null?Ga:{});this.validateActionSupported(xa);if(Ha.length){this.validateArgSupported(xa,Ha)}this.validateRequiredArgs(xa,Ha)}};return ActionsValidator}(Qp);var zp=new Ci;var Qf=function(Bn){_inheritsLoose(FileStructureValidator,Bn);function FileStructureValidator(){return Bn.apply(this,arguments)||this}var Hn=FileStructureValidator.prototype;Hn.validate=function validate(Bn){var Hn=Bn.yamlFile;var zn=Hn.replace(Fc,"").replace(Jc,"");var Ci=ni.loadAll(zn,undefined,{schema:ni.JSON_SCHEMA});var ts=zp.compile(dc);for(var Ps=_createForOfIteratorHelperLoose(Ci),aa;!(aa=Ps()).done;){var oa=aa.value;var ca=ts(oa);if(!ca){var _a;throw new Up("Schema is not valid: "+((_a=ts.errors)==null?void 0:_a.map((function(Bn){return Bn.message})).join(", ")))}}};return FileStructureValidator}(Qp);var Yf=function(Bn){_inheritsLoose(SavedWordsValidator,Bn);function SavedWordsValidator(){return Bn.apply(this,arguments)||this}var Hn=SavedWordsValidator.prototype;Hn.validate=function validate(Bn){var Hn=Bn.yamlFile;var zn=ni.load(Hn.replace(Fc,"").replace(/{%.*?%}[\s\S]*?{% endfor %}/g,""));var Ci=Object.keys(zn).filter((function(Bn){return!Object.keys(dc.properties).includes(Bn)})).find((function(Bn){return Ha.includes(Bn)}));if(Ci){throw new Up("Invalid custom context variable: `"+Ci+"` is a built-in context")}};return SavedWordsValidator}(Qp);var Kf=function(Bn){_inheritsLoose(TriggersValidator,Bn);function TriggersValidator(){return Bn.apply(this,arguments)||this}var Hn=TriggersValidator.prototype;Hn.validateSuppertedTriggers=function validateSuppertedTriggers(Bn){if(!Object.values(oa).includes(Bn)){throw new Up(Bn+" trigger is not supported")}};Hn.validate=function validate(Bn){var Hn=Bn.yamlFile;var zn=Hn.replace(Fc,"TEMPLATE");var Ci=ni.load(zn);var ts=Ci.automations.on||[];var Ps=Object.values(Ci.automations).flatMap((function(Bn){return Bn.on})).filter(Boolean);var aa=[].concat(ts,Ps);for(var oa=_createForOfIteratorHelperLoose(aa),ca;!(ca=oa()).done;){var _a=ca.value;this.validateSuppertedTriggers(_a)}};return TriggersValidator}(Qp);var Xf=function(Bn){_inheritsLoose(CMValidator,Bn);function CMValidator(){var Hn;Hn=Bn.call(this)||this;Hn.steps=[new Vp,new Jp,new Wp,new Qf,new Yf,new Kf];return Hn}var Hn=CMValidator.prototype;Hn.validate=function validate(Bn){var Hn=Qp.parseJinjaExpressions(Bn);for(var zn=_createForOfIteratorHelperLoose(this.steps),ni;!(ni=zn()).done;){var Ci=ni.value;Ci.validate({expressions:Hn,yamlFile:Bn})}};return CMValidator}(Qp);var Ad=function safeRulesYamlLoad(Bn){try{var Hn=ni.load(Bn.replaceAll(/{{(.*?)}}|{(.*?)}|{%.*%}((.|\n)*){% endfor %}/g,""));return Hn}catch(Bn){throw new Up("Failed to load yml file. Invalid cm.")}};var Cd=/^[a-zA-Z0-9_-]+$/;var Sd=function escapeQuotes(Bn){return Bn.replace(/['"`]/g,(function(Bn){if(Bn==='"'){return'"'}else if(Bn==="'"){return"'"}else if(Bn==="`"){return"`"}return Bn}))};var xd=function(Bn){_inheritsLoose(AutomationNamesValidator,Bn);function AutomationNamesValidator(){return Bn.apply(this,arguments)||this}var Hn=AutomationNamesValidator.prototype;Hn.validate=function validate(Bn){var Hn=Bn.yamlFile;var zn=Ad(Hn);var ni=Object.keys((zn==null?void 0:zn.automations)||{}).filter((function(Bn){return!Cd.test(Bn)}));if(ni.length){var Ci=Sd(ni.join(", "));throw new Up("Unsupported automation "+(ni.length===1?"name":"names")+": `"+Ci+"`. Please ensure that the automation name consists only of letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-).")}};return AutomationNamesValidator}(Qp);Hn.ActionsValidator=Wp;Hn.AutomationNamesValidator=xd;Hn.CMValidator=Xf;Hn.ContextVariableValidator=Vp;Hn.FileStructureValidator=Qf;Hn.FiltersValidator=Jp;Hn.SavedWordsValidator=Yf;Hn.validatorsConstants=kp},71063:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});var ni,Ci,ts,Ps,aa=zn(21917),oa=(ni=zn(72426))&&"object"==typeof ni&&"default"in ni?ni.default:ni;function a(Bn,Hn){Bn.prototype=Object.create(Hn.prototype),Bn.prototype.constructor=Bn,l(Bn,Hn)}function s(Bn){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Bn){return Bn.__proto__||Object.getPrototypeOf(Bn)})(Bn)}function l(Bn,Hn){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Bn,Hn){return Bn.__proto__=Hn,Bn})(Bn,Hn)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(Bn){return!1}}function c(Bn,Hn,zn){return(c=u()?Reflect.construct.bind():function(Bn,Hn,zn){var ni=[null];ni.push.apply(ni,Hn);var Ci=new(Function.bind.apply(Bn,ni));return zn&&l(Ci,zn.prototype),Ci}).apply(null,arguments)}function p(Bn){var Hn="function"==typeof Map?new Map:void 0;return(p=function(Bn){if(null===Bn||-1===Function.toString.call(Bn).indexOf("[native code]"))return Bn;if("function"!=typeof Bn)throw new TypeError("Super expression must either be null or a function");if(void 0!==Hn){if(Hn.has(Bn))return Hn.get(Bn);Hn.set(Bn,t)}function t(){return c(Bn,arguments,s(this).constructor)}return t.prototype=Object.create(Bn.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),l(t,Bn)})(Bn)}function d(Bn,Hn){(null==Hn||Hn>Bn.length)&&(Hn=Bn.length);for(var zn=0,ni=new Array(Hn);zn=Bn.length?{done:!0}:{done:!1,value:Bn[ni++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ca={COMMIT:"commit",PR_CREATED:"pr_created",COMMENT_ADDED:"comment_added",LABEL_ADDED:"label_added",LABEL_REMOVED:"label_removed"},_a={SEND_SLACK_MESSAGE:"send-slack-message@v1",EXPLAIN_CODE_EXPERTS:"explain-code-experts@v1",ADD_COMMENT:"add-comment@v1",ADD_LABEL:"add-label@v1",ADD_LABELS:"add-labels@v1",ADD_REVIEWERS:"add-reviewers@v1",APPROVE:"approve@v1",MERGE:"merge@v1",SET_REQUIRED_APPROVALS:"set-required-approvals@v1",REQUIRE_REVIEWER:"require-reviewers@v1",REQUEST_CHANGES:"request-changes@v1",UPDATE_CHECK:"update-check@v1",CLOSE:"close@v1",HTTP_REQUEST:"http-request@v1",SEND_HTTP_REQUEST:"send-http-request@v1",INVOKE_GITHUB_ACTION:"invoke-github-action@v1",ADD_GITHUB_CHECK:"add-github-check@v1",RUN_GITHUB_WORKFLOW:"run-github-workflow@v1"},xa={default:_a,gitlab:{ADD_COMMENT:"add-comment@v1",ADD_LABEL:"add-label@v1",ADD_LABELS:"add-labels@v1",ADD_REVIEWERS:"add-reviewers@v1",APPROVE:"approve@v1",MERGE:"merge@v1",CLOSE:"close@v1",EXPLAIN_CODE_EXPERTS:"explain-code-experts@v1",SEND_SLACK_MESSAGE:"send-slack-message@v1",REQUEST_CHANGES:"request-changes@v1"}},Ga=((Ci={})[_a.SEND_SLACK_MESSAGE]=["webhook_url","message"],Ci[_a.EXPLAIN_CODE_EXPERTS]=["lt","gt"],Ci[_a.ADD_COMMENT]=["comment","pin_uid"],Ci[_a.ADD_LABEL]=["label","color"],Ci[_a.ADD_LABELS]=["labels"],Ci[_a.ADD_REVIEWERS]=["reviewers","team_reviewers","unless_reviewers_set","fail_on_error","wait_for_all_checks"],Ci[_a.MERGE]=["wait_for_all_checks","rebase_on_merge","squash_on_merge"],Ci[_a.SET_REQUIRED_APPROVALS]=["approvals"],Ci[_a.REQUEST_CHANGES]=["comment"],Ci[_a.REQUIRE_REVIEWER]=["reviewers","also_assign","team_reviewers","fail_on_error"],Ci[_a.HTTP_REQUEST]=["url","method","user","body","timeout","headers"],Ci[_a.SEND_HTTP_REQUEST]=["url","method","user","body","timeout","headers"],Ci[_a.INVOKE_GITHUB_ACTION]=["owner","repo","workflow","ref","inputs","check_name","stop_ongoing_workflow"],Ci[_a.UPDATE_CHECK]=["check_name","status","conclusion"],Ci[_a.ADD_GITHUB_CHECK]=["check_name","conclusion"],Ci[_a.RUN_GITHUB_WORKFLOW]=["owner","repo","workflow","ref","inputs","check_name","stop_ongoing_workflow","timeout"],Ci),Ha=((ts={})[_a.SEND_SLACK_MESSAGE]={all:!0,args:["webhook_url","message"]},ts[_a.EXPLAIN_CODE_EXPERTS]={all:!1,args:["lt","gt"]},ts[_a.ADD_COMMENT]={all:!0,args:["comment"]},ts[_a.ADD_LABEL]={all:!0,args:["label"]},ts[_a.ADD_LABELS]={all:!0,args:["labels"]},ts[_a.ADD_REVIEWERS]={all:!1,args:["reviewers","team_reviewers"]},ts[_a.SET_REQUIRED_APPROVALS]={all:!0,args:["approvals"]},ts[_a.REQUEST_CHANGES]={all:!0,args:["comment"]},ts[_a.REQUIRE_REVIEWER]={all:!1,args:["reviewers","team_reviewers"]},ts[_a.HTTP_REQUEST]={all:!0,args:["url"]},ts[_a.SEND_HTTP_REQUEST]={all:!0,args:["url"]},ts[_a.INVOKE_GITHUB_ACTION]={all:!1,args:["workflow"]},ts[_a.UPDATE_CHECK]={all:!0,args:["check_name","status","conclusion"]},ts[_a.ADD_GITHUB_CHECK]={all:!0,args:["check_name","conclusion"]},ts[_a.RUN_GITHUB_WORKFLOW]={all:!0,args:["workflow"]},ts),so=["branch","branch.name","branch.base","branch.diff.size","branch.diff.files_metadata","branch.num_of_commits","files","pr","pr.approvals","pr.author","pr.author_teams","pr.checks","pr.comments","pr.conversations","pr.created_at","pr.draft","pr.description","pr.labels","pr.provider","pr.reviewers","pr.status","pr.target","pr.title","pr.requested_changes","pr.reviews","pr.updated_at","pr.conflicted_files_count","pr.number","repo","repo.git_activity","repo.age","repo.author_age","repo.blame","repo.contributors","repo.name","repo.owner","repo.visibility","source","source.diff.files"],oo={every:["list"],filter:["list","regex","term"],includes:["list","regex","term"],map:["list","attr"],match:["list","regex","term","attr"],nope:[],reject:["list","regex","term"],some:["list"],allDocs:[],allImages:[],allTests:[],codeExperts:["gt","lt"],estimatedReviewTime:[],extensions:[],extractJitFindings:[],extractSonarFindings:[],explainCodeExperts:["gt","lt"],explainRankByGitBlame:["gt","lt"],isFirstCommit:[],isFormattingChange:[],mapToEnum:[],matchDiffLines:["regex","ignoreWhiteSpaces"],rankByGitActivity:["gt","lt"],rankByGitBlame:["gt","lt"],intersection:["list"],difference:["list"],capture:["regex"],countTests:[],getJiraTicketDetails:["url","username","apiToken","additionalFields"]},Jo=["abs","attr","batch","capitalize","center","default","dictsort","escape","filesizeformat","first","float","forceescape","format","groupby","indent","int","join","last","length","list","lower","map","max","min","pprint","random","reject","rejectattr","replace","reverse","round","safe","select","selectattr","slice","sort","split","string","striptags","sum","title","trim","truncate","unique","upper","urlencode","urlize","wordcount","wordwrap","xmlattr","nl2br","dump"],tc=[1],dc=((Ps={})[_a.ADD_COMMENT]={comment:{type:"string",required:!0}},Ps[_a.ADD_LABEL]={label:{type:"string",required:!0},color:{type:"string",required:!1}},Ps[_a.ADD_LABELS]={labels:{type:"array",required:!0}},Ps[_a.ADD_REVIEWERS]={reviewers:{type:"array",required:!0},team_reviewers:{type:"array",required:!1},unless_reviewers_set:{type:"boolean",required:!1},fail_on_error:{type:"boolean",required:!1},wait_for_all_checks:{type:"boolean",required:!1}},Ps[_a.APPROVE]={},Ps[_a.CLOSE]={},Ps[_a.MERGE]={wait_for_all_checks:{type:"boolean",required:!1},rebase_on_merge:{type:"boolean",required:!1},squash_on_merge:{type:"boolean",required:!1}},Ps[_a.SET_REQUIRED_APPROVALS]={approvals:{type:"number",required:!0}},Ps[_a.REQUEST_CHANGES]={comment:{type:"string",required:!0}},Ps[_a.REQUIRE_REVIEWER]={reviewers:{type:"array",required:!0},also_assign:{type:"boolean",required:!1}},Ps[_a.EXPLAIN_CODE_EXPERTS]={lt:{type:"number",required:!1},gt:{type:"number",required:!1}},Ps[_a.SEND_SLACK_MESSAGE]={webhook_url:{type:"string",required:!0},message:{type:"string",required:!0}},Ps[_a.INVOKE_GITHUB_ACTION]={owner:{type:"string",required:!1},repo:{type:"string",required:!1},workflow:{type:"string",required:!0},ref:{type:"string",required:!1},inputs:{type:"number",required:!1},check_name:{type:"string",required:!1},stop_ongoing_workflow:{type:"boolean",required:!1}},Ps[_a.ADD_GITHUB_CHECK]={check_name:{type:"string",required:!0},conclusion:{type:"string",required:!0}},Ps[_a.RUN_GITHUB_WORKFLOW]={owner:{type:"string",required:!1},repo:{type:"string",required:!1},workflow:{type:"string",required:!0},ref:{type:"string",required:!1},inputs:{type:"string",required:!1},check_name:{type:"string",required:!1},stop_ongoing_workflow:{type:"boolean",required:!1},timeout:{type:"number",required:!1}},Ps),Fc={type:"object",properties:{manifest:{type:"object",properties:{version:{type:"number",enum:tc}},required:["version"]},config:{type:"object",properties:{ignore_files:{type:"array",items:{type:"string"}},ignore_repositories:{type:"array",items:{type:"string"}},admin:{type:"object",properties:{users:{type:"array",items:{type:"string"}}}}}},on:{type:"array",items:{type:"string",enum:Object.values(ca)}},automations:{type:"object",patternProperties:{"^[a-zA-Z0-9_@]+$":{type:"object",properties:{on:{type:"array",items:{type:"string",enum:Object.values(ca)}},if:{type:"array"},run:{type:"array",items:{type:"object",properties:{action:{type:"string",enum:Object.keys(dc)},args:{type:"object"}},required:["action"]}}},required:["if","run"]}}}},required:["manifest","automations"]},Jc=/{{.*?}}/g,Dp=/\{%\s*.*?\s*%\}/g,kp=/\/(.*?)\//g,Qp={__proto__:null,SUPPORTED_TRIGGERS:ca,SUPPORTED_ACTIONS:_a,SUPPORTED_ACTIONS_BY_PROVIDER:xa,SUPPORTED_ARGUMENTS_BY_ACTION:Ga,REQUIRED_ARGUMENTS_BY_ACTIONS:Ha,VALID_CONTEXT_VARS:so,VALID_FILTERS:oo,JINJA_FILTERS:Jo,VALID_VERSIONS:tc,VALID_ACTIONS:dc,CM_SCHEMA:Fc,JINJA_EXPRESSION_REGEX:Jc,LOOP_EXPRESSION:Dp,REGEX_EXPRESSION:kp},Up=function(){function e(){}return e.prototype.validate=function(Bn){throw new Error('Abstract method "validate" must be implemented.')},e.parseJinjaExpressions=function(Bn){var Hn=Bn.split("\n"),zn=[];return Hn.forEach((function(Bn,Hn){var ni=Bn.match(Jc);ni&&ni.forEach((function(Bn){zn.push({expression:Bn,lineNumber:Hn+1})}))})),zn},e}(),qp=function(Bn){function r(Hn){var zn;return(zn=Bn.call(this,Hn)||this).name="ValidationError",zn}return a(r,Bn),r}(p(Error)),Vp=function(Bn){function r(){return Bn.apply(this,arguments)||this}a(r,Bn);var Hn=r.prototype;return Hn.isValidCustomVariables=function(Bn,Hn){return Bn.split(".").slice(0,-1).map((function(Bn){return Bn.replace(/[()]/g,"")})).every((function(Bn){return Hn.includes(Bn+":")}))},Hn.isValidContextVariable=function(Bn){return!!so.includes(Bn||"UNKNOWN_CONTEXT")},Hn.validate=function(Bn){var Hn=this,zn=Bn.expressions,ni=Bn.yamlFile;(null!=zn?zn:Up.parseJinjaExpressions(ni)).forEach((function(Bn){var zn,Ci,ts,Ps=Bn.expression,aa=Bn.lineNumber,oa=null!=(zn=null==(Ci=Ps.replace(/[{}]/g,"").split("|").shift())?void 0:Ci.trim())?zn:"UNKNOWN_CONTEXT";(null!=(ts=null==oa?void 0:oa.split(" "))?ts:[]).forEach((function(Bn){if(!Hn.isValidContextVariable(Bn)&&!Hn.isValidCustomVariables(Bn,ni))throw new qp("Line ["+aa+"]: Invalid context variable "+Bn+" in expression "+Ps)}))}))},r}(Up),Jp=function(Bn){function r(){return Bn.apply(this,arguments)||this}a(r,Bn);var Hn=r.prototype;return Hn.validateExistingFilter=function(Bn,Hn,zn){if(!Jo.includes(Bn)&&!so.includes(Bn)&&!Object.keys(oo).includes(Bn))throw new qp("Line "+Hn+": Invalid filter function "+Bn+" in expression "+zn)},Hn.getFilterArgs=function(Bn){return Bn.slice(Bn.indexOf("(")+1,Bn.lastIndexOf(")")).replace(kp,"").split(",").map((function(Bn){return Bn.split("=")[0].trim()}))},Hn.validateFilterArgs=function(Bn,Hn,zn,ni){if(Bn.includes("("))for(var Ci,ts=this.getFilterArgs(Bn),Ps=oo[Hn],aa=f(ts);!(Ci=aa()).done;){var oa=Ci.value;if(!Ps.includes(oa))throw new qp("Line ["+zn+"]: Invalid argument "+oa+" for filter "+Hn+" in expression "+ni)}},Hn.validate=function(Bn){var Hn=this,zn=Bn.expressions;(null!=zn?zn:Up.parseJinjaExpressions(Bn.yamlFile)).forEach((function(Bn){for(var zn,ni,Ci=Bn.expression,ts=Bn.lineNumber,Ps=f(null!=(zn=Ci.replace(kp,"").replace(/[{}]/g,"").split("|").slice(1))?zn:[]);!(ni=Ps()).done;){var aa=ni.value.split(/\s*==\s*|\s*<\s*|\s*>\s*/)[0],oa=aa.split("(")[0].trim();Hn.validateExistingFilter(oa,ts,Ci),Hn.validateFilterArgs(aa,oa,ts,Ci)}}))},r}(Up),Wp=function(Bn){function r(){return Bn.apply(this,arguments)||this}a(r,Bn);var Hn=r.prototype;return Hn.validateActionSupported=function(Bn){if(!Object.values(_a).includes(Bn))throw new qp("Action is not supported "+Bn)},Hn.validateArgSupported=function(Bn,Hn){var zn=null==Hn?void 0:Hn.filter((function(Hn){return!Ga[Bn].includes(Hn)}));if(zn.length)throw new qp("Some args are not supported: "+zn.join(", "))},Hn.validateRequiredArgs=function(Bn,Hn){var zn,ni=Ha[Bn];if(ni){var Ci=null==(zn=ni.args)?void 0:zn.filter((function(Bn){return!Hn.includes(Bn)}));if(ni.all&&Ci.length||!ni.all&&!ni.args.some((function(Bn){return Hn.includes(Bn)})))throw new qp("Some required args are missing for action "+Bn+": "+Ci.join(", "))}},Hn.validateIfStructure=function(Bn){if("TEMPLATE"!==Bn&&"boolean"!=typeof Bn)throw new qp("An entry in If section is not YAML supported")},Hn.validate=function(Bn){var Hn,zn=this,ni=Bn.yamlFile.replace(Jc,"TEMPLATE"),Ci=aa.load(ni);Object.values(Ci.automations).flatMap((function(Bn){return Bn.if})).forEach((function(Bn){return zn.validateIfStructure(Bn)}));for(var ts,Ps=f(null==(Hn=Object.values(Ci.automations).flatMap((function(Bn){return Bn.run})))?void 0:Hn.filter(Boolean));!(ts=Ps()).done;){var oa=ts.value,ca=oa.action,_a=oa.args,xa=Object.keys(null!=_a?_a:{});this.validateActionSupported(ca),xa.length&&this.validateArgSupported(ca,xa),this.validateRequiredArgs(ca,xa)}},r}(Up),zp=new oa,Qf=function(Bn){function r(){return Bn.apply(this,arguments)||this}return a(r,Bn),r.prototype.validate=function(Bn){for(var Hn,zn=Bn.yamlFile.replace(Jc,"").replace(Dp,""),ni=aa.loadAll(zn,void 0,{schema:aa.JSON_SCHEMA}),Ci=zp.compile(Fc),ts=f(ni);!(Hn=ts()).done;){var Ps;if(!Ci(Hn.value))throw new qp("Schema is not valid: "+(null==(Ps=Ci.errors)?void 0:Ps.map((function(Bn){return Bn.message})).join(", ")))}},r}(Up),Yf=function(Bn){function r(){return Bn.apply(this,arguments)||this}return a(r,Bn),r.prototype.validate=function(Bn){var Hn=aa.load(Bn.yamlFile.replace(Jc,"").replace(/{%.*?%}[\s\S]*?{% endfor %}/g,"")),zn=Object.keys(Hn).filter((function(Bn){return!Object.keys(Fc.properties).includes(Bn)})).find((function(Bn){return so.includes(Bn)}));if(zn)throw new qp("Invalid custom context variable: `"+zn+"` is a built-in context")},r}(Up),Kf=function(Bn){function r(){return Bn.apply(this,arguments)||this}a(r,Bn);var Hn=r.prototype;return Hn.validateSuppertedTriggers=function(Bn){if(!Object.values(ca).includes(Bn))throw new qp(Bn+" trigger is not supported")},Hn.validate=function(Bn){for(var Hn,zn=Bn.yamlFile.replace(Jc,"TEMPLATE"),ni=aa.load(zn),Ci=ni.automations.on||[],ts=Object.values(ni.automations).flatMap((function(Bn){return Bn.on})).filter(Boolean),Ps=f([].concat(Ci,ts));!(Hn=Ps()).done;)this.validateSuppertedTriggers(Hn.value)},r}(Up),Xf=function(Bn){function r(){var Hn;return(Hn=Bn.call(this)||this).steps=[new Vp,new Jp,new Wp,new Qf,new Yf,new Kf],Hn}return a(r,Bn),r.prototype.validate=function(Bn){for(var Hn,zn=Up.parseJinjaExpressions(Bn),ni=f(this.steps);!(Hn=ni()).done;)Hn.value.validate({expressions:zn,yamlFile:Bn})},r}(Up),Ad=/^[a-zA-Z0-9_-]+$/,Cd=function(Bn){function r(){return Bn.apply(this,arguments)||this}return a(r,Bn),r.prototype.validate=function(Bn){var Hn=function(Bn){try{return aa.load(Bn.replaceAll(/{{(.*?)}}|{(.*?)}|{%.*%}((.|\n)*){% endfor %}/g,""))}catch(Bn){throw new qp("Failed to load yml file. Invalid cm.")}}(Bn.yamlFile),zn=Object.keys((null==Hn?void 0:Hn.automations)||{}).filter((function(Bn){return!Ad.test(Bn)}));if(zn.length){var ni=zn.join(", ").replace(/['"`]/g,(function(Bn){return'"'===Bn?'"':"'"===Bn?"'":"`"===Bn?"`":Bn}));throw new qp("Unsupported automation "+(1===zn.length?"name":"names")+": `"+ni+"`. Please ensure that the automation name consists only of letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-).")}},r}(Up);Hn.ActionsValidator=Wp,Hn.AutomationNamesValidator=Cd,Hn.CMValidator=Xf,Hn.ContextVariableValidator=Vp,Hn.FileStructureValidator=Qf,Hn.FiltersValidator=Jp,Hn.SavedWordsValidator=Yf,Hn.validatorsConstants=Qp},37005:(Bn,Hn,zn)=>{"use strict";if(process.env.NODE_ENV==="production"){Bn.exports=zn(71063)}else{Bn.exports=zn(98042)}},75970:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});function _interopDefault(Bn){return Bn&&typeof Bn==="object"&&"default"in Bn?Bn["default"]:Bn}var ni=zn(37005);var Ci=zn(21917);var ts=zn(90250);var Ps=_interopDefault(ts);var aa=_interopDefault(zn(72187));var oa=_interopDefault(zn(2825));var ca=zn(17006);var _a=_interopDefault(zn(56908));var xa=_interopDefault(zn(56929));var Ga=zn(32081);var Ha=_interopDefault(zn(33779));var so=_interopDefault(zn(96545));var oo=_interopDefault(zn(99623));var Jo=_interopDefault(zn(98911));var tc=_interopDefault(zn(13418));var dc=zn(57147);var Fc=zn(71017);var Jc=_interopDefault(Fc);var Dp=zn(87029);var kp=zn(55375);var Qp=zn(42186);var Up=_interopDefault(zn(94833));var qp=zn(77486);function _regeneratorRuntime(){_regeneratorRuntime=function(){return Hn};var Bn,Hn={},zn=Object.prototype,ni=zn.hasOwnProperty,Ci=Object.defineProperty||function(Bn,Hn,zn){Bn[Hn]=zn.value},ts="function"==typeof Symbol?Symbol:{},Ps=ts.iterator||"@@iterator",aa=ts.asyncIterator||"@@asyncIterator",oa=ts.toStringTag||"@@toStringTag";function define(Bn,Hn,zn){return Object.defineProperty(Bn,Hn,{value:zn,enumerable:!0,configurable:!0,writable:!0}),Bn[Hn]}try{define({},"")}catch(Bn){define=function(Bn,Hn,zn){return Bn[Hn]=zn}}function wrap(Bn,Hn,zn,ni){var ts=Hn&&Hn.prototype instanceof Generator?Hn:Generator,Ps=Object.create(ts.prototype),aa=new Context(ni||[]);return Ci(Ps,"_invoke",{value:makeInvokeMethod(Bn,zn,aa)}),Ps}function tryCatch(Bn,Hn,zn){try{return{type:"normal",arg:Bn.call(Hn,zn)}}catch(Bn){return{type:"throw",arg:Bn}}}Hn.wrap=wrap;var ca="suspendedStart",_a="suspendedYield",xa="executing",Ga="completed",Ha={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var so={};define(so,Ps,(function(){return this}));var oo=Object.getPrototypeOf,Jo=oo&&oo(oo(values([])));Jo&&Jo!==zn&&ni.call(Jo,Ps)&&(so=Jo);var tc=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(so);function defineIteratorMethods(Bn){["next","throw","return"].forEach((function(Hn){define(Bn,Hn,(function(Bn){return this._invoke(Hn,Bn)}))}))}function AsyncIterator(Bn,Hn){function invoke(zn,Ci,ts,Ps){var aa=tryCatch(Bn[zn],Bn,Ci);if("throw"!==aa.type){var oa=aa.arg,ca=oa.value;return ca&&"object"==typeof ca&&ni.call(ca,"__await")?Hn.resolve(ca.__await).then((function(Bn){invoke("next",Bn,ts,Ps)}),(function(Bn){invoke("throw",Bn,ts,Ps)})):Hn.resolve(ca).then((function(Bn){oa.value=Bn,ts(oa)}),(function(Bn){return invoke("throw",Bn,ts,Ps)}))}Ps(aa.arg)}var zn;Ci(this,"_invoke",{value:function(Bn,ni){function callInvokeWithMethodAndArg(){return new Hn((function(Hn,zn){invoke(Bn,ni,Hn,zn)}))}return zn=zn?zn.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(Hn,zn,ni){var Ci=ca;return function(ts,Ps){if(Ci===xa)throw new Error("Generator is already running");if(Ci===Ga){if("throw"===ts)throw Ps;return{value:Bn,done:!0}}for(ni.method=ts,ni.arg=Ps;;){var aa=ni.delegate;if(aa){var oa=maybeInvokeDelegate(aa,ni);if(oa){if(oa===Ha)continue;return oa}}if("next"===ni.method)ni.sent=ni._sent=ni.arg;else if("throw"===ni.method){if(Ci===ca)throw Ci=Ga,ni.arg;ni.dispatchException(ni.arg)}else"return"===ni.method&&ni.abrupt("return",ni.arg);Ci=xa;var so=tryCatch(Hn,zn,ni);if("normal"===so.type){if(Ci=ni.done?Ga:_a,so.arg===Ha)continue;return{value:so.arg,done:ni.done}}"throw"===so.type&&(Ci=Ga,ni.method="throw",ni.arg=so.arg)}}}function maybeInvokeDelegate(Hn,zn){var ni=zn.method,Ci=Hn.iterator[ni];if(Ci===Bn)return zn.delegate=null,"throw"===ni&&Hn.iterator.return&&(zn.method="return",zn.arg=Bn,maybeInvokeDelegate(Hn,zn),"throw"===zn.method)||"return"!==ni&&(zn.method="throw",zn.arg=new TypeError("The iterator does not provide a '"+ni+"' method")),Ha;var ts=tryCatch(Ci,Hn.iterator,zn.arg);if("throw"===ts.type)return zn.method="throw",zn.arg=ts.arg,zn.delegate=null,Ha;var Ps=ts.arg;return Ps?Ps.done?(zn[Hn.resultName]=Ps.value,zn.next=Hn.nextLoc,"return"!==zn.method&&(zn.method="next",zn.arg=Bn),zn.delegate=null,Ha):Ps:(zn.method="throw",zn.arg=new TypeError("iterator result is not an object"),zn.delegate=null,Ha)}function pushTryEntry(Bn){var Hn={tryLoc:Bn[0]};1 in Bn&&(Hn.catchLoc=Bn[1]),2 in Bn&&(Hn.finallyLoc=Bn[2],Hn.afterLoc=Bn[3]),this.tryEntries.push(Hn)}function resetTryEntry(Bn){var Hn=Bn.completion||{};Hn.type="normal",delete Hn.arg,Bn.completion=Hn}function Context(Bn){this.tryEntries=[{tryLoc:"root"}],Bn.forEach(pushTryEntry,this),this.reset(!0)}function values(Hn){if(Hn||""===Hn){var zn=Hn[Ps];if(zn)return zn.call(Hn);if("function"==typeof Hn.next)return Hn;if(!isNaN(Hn.length)){var Ci=-1,ts=function next(){for(;++Ci=0;--Ci){var ts=this.tryEntries[Ci],Ps=ts.completion;if("root"===ts.tryLoc)return handle("end");if(ts.tryLoc<=this.prev){var aa=ni.call(ts,"catchLoc"),oa=ni.call(ts,"finallyLoc");if(aa&&oa){if(this.prev=0;--zn){var Ci=this.tryEntries[zn];if(Ci.tryLoc<=this.prev&&ni.call(Ci,"finallyLoc")&&this.prev=0;--Hn){var zn=this.tryEntries[Hn];if(zn.finallyLoc===Bn)return this.complete(zn.completion,zn.afterLoc),resetTryEntry(zn),Ha}},catch:function(Bn){for(var Hn=this.tryEntries.length-1;Hn>=0;--Hn){var zn=this.tryEntries[Hn];if(zn.tryLoc===Bn){var ni=zn.completion;if("throw"===ni.type){var Ci=ni.arg;resetTryEntry(zn)}return Ci}}throw new Error("illegal catch attempt")},delegateYield:function(Hn,zn,ni){return this.delegate={iterator:values(Hn),resultName:zn,nextLoc:ni},"next"===this.method&&(this.arg=Bn),Ha}},Hn}function asyncGeneratorStep(Bn,Hn,zn,ni,Ci,ts,Ps){try{var aa=Bn[ts](Ps);var oa=aa.value}catch(Bn){zn(Bn);return}if(aa.done){Hn(oa)}else{Promise.resolve(oa).then(ni,Ci)}}function _asyncToGenerator(Bn){return function(){var Hn=this,zn=arguments;return new Promise((function(ni,Ci){var ts=Bn.apply(Hn,zn);function _next(Bn){asyncGeneratorStep(ts,ni,Ci,_next,_throw,"next",Bn)}function _throw(Bn){asyncGeneratorStep(ts,ni,Ci,_next,_throw,"throw",Bn)}_next(undefined)}))}}function _extends(){_extends=Object.assign?Object.assign.bind():function(Bn){for(var Hn=1;Hn=0)continue;zn[Ci]=Bn[Ci]}return zn}function _assertThisInitialized(Bn){if(Bn===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return Bn}function _unsupportedIterableToArray(Bn,Hn){if(!Bn)return;if(typeof Bn==="string")return _arrayLikeToArray(Bn,Hn);var zn=Object.prototype.toString.call(Bn).slice(8,-1);if(zn==="Object"&&Bn.constructor)zn=Bn.constructor.name;if(zn==="Map"||zn==="Set")return Array.from(Bn);if(zn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(zn))return _arrayLikeToArray(Bn,Hn)}function _arrayLikeToArray(Bn,Hn){if(Hn==null||Hn>Bn.length)Hn=Bn.length;for(var zn=0,ni=new Array(Hn);zn=Bn.length)return{done:true};return{done:false,value:Bn[ni++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Vp="https://gtxblnqb99.execute-api.us-west-1.amazonaws.com/prod";var Jp={REVIEW_TIME:Vp+"/v1/pulls/review-time",EXPERT_REVIWER:Vp+"/gs/v1/data-service/expert-reviewer"};var Wp="gitstream-rules-parser";var zp={FAILED_RENDER_STRING:Wp+" - failed render string",FAILED_YAML_LOAD:Wp+" - failed yaml.load",INVALID_CM:Wp+" - invalid cm",INVALID_CM_CONTEXT_VARIABLES:Wp+" - ContextVariableValidator"};var Qf={FAILED_RENDER_STRING:80,FAILED_YAML_LOAD:81,INVALID_CM:82,INVALID_CM_CONTEXT_VARIABLES:83};var Yf="gitstream-core";var Kf=function(Bn){_inheritsLoose(PluginsError,Bn);function PluginsError(Hn,zn){var ni;ni=Bn.call(this,zn)||this;ni.reason=Hn;Object.setPrototypeOf(_assertThisInitialized(ni),PluginsError.prototype);return ni}return PluginsError}(_wrapNativeSuper(Error));var Xf=function escapeObjectStringsValues(Bn){if(!ts.isObject(Bn)||!Object.keys(Bn).length){return Bn}return Object.keys(Bn).reduce((function(Hn,zn){var ni;var Ci=Bn[zn];var Ps=ts.isString(Ci)?Ci.replace(/\n/g,"\\n"):Ci;return _extends({},Hn,(ni={},ni[zn]=Ps,ni))}),{})};var Ad=function redoArgEscaping(Bn){if(ts.isString(Bn)){return Bn.replace(/\\n/g,"\n")}return Bn};var Cd="python";var Sd=function minify(Bn){return Bn.replace(/\s+/g," ").replaceAll("'",'"').trim()};var xd=function removeEmptyLines(Bn){return Bn.replace(/^\s*[\r\n]/gm,"")};var wd=function jsFormatter(Bn,Hn){return Sd(xa.format(Bn,{semi:false,singleQuote:true,filepath:Hn}))};var Td=function pyFormatter(Bn){var Hn=Ga.spawnSync(Cd,["-c","import black; print(black.format_str("+JSON.stringify(Bn)+", mode=black.FileMode()))"]);var zn=Hn.stdout.toString();return xd(zn)};var Pd={js:wd,ts:wd,html:wd,py:Td,default:Sd};var Qh=function format(Bn,Hn){var zn;var ni=(zn=Hn.split(".").pop())!=null?zn:"";var Ci=_a(Pd,ni,Pd["default"]);return Ci(Bn)};var Zh=function convertArgsToString(Bn){return Object.keys(Bn).map((function(Hn){return Hn+"="+Bn[Hn]}))};var f_={"add-comment@v1":{comment:{name:"comment",type:"string"}},"add-label@v1":{label:{name:"label",type:"string"}},"add-labels@v1":{labels:{name:"labels",type:"list"}},"add-reviewers@v1":{wait_for_all_checks:{name:"wait_for_all_checks",type:"boolean"},reviewers:{name:"reviewers",type:"list"},team_reviewers:{name:"team_reviewers",type:"list"}},"merge@v1":{wait_for_all_checks:{name:"wait_for_all_checks",type:"boolean"},rebase_on_merge:{name:"rebase_on_merge",type:"boolean"},squash_on_merge:{name:"squash_on_merge",type:"boolean"}},"require-reviewers@v1":{reviewers:{name:"reviewers",type:"list"}},"set-required-approvals@v1":{approvals:{name:"approvals",type:"number"}},"request-changes@v1":{comment:{name:"comment",type:"number"}}};var Z_=[f_["add-reviewers@v1"].reviewers.name,f_["require-reviewers@v1"].reviewers.name,f_["add-reviewers@v1"].team_reviewers.name,f_["add-labels@v1"].labels.name];var eg=function debug(Bn,Hn){if(Hn){console.log(Bn)}};var tg;var rg=function internalIncludes(Bn,Hn){return Bn==null?void 0:Bn.includes(Hn)};var ng=function parseTermToValidString(Bn){if(typeof Bn==="string"&&Bn.startsWith("r/")){return Bn.substring(2).slice(0,-1).replace("\\/","/")}return Bn};var ig=function internalRegex(Bn,Hn,zn){if(zn===void 0){zn=false}var ni=ng(Hn);var Ci=new RegExp(ni,zn?"m":"");return Ci.test(Bn)};var sg=function internalEvery(Bn,Hn,zn){var ni=Bn==null?void 0:Bn.map((function(Bn){return Boolean(Bn)}));return ni!=null&&ni.length?ni.every((function(Bn){return Bn===Hn})):zn};var ag=function formatInputToList(Bn){if(typeof Bn==="string"){if(Bn.includes(",")){return Bn.split(",")}return[Bn]}return Bn!=null?Bn:[]};var og={GITHUB:"github",GITLAB:"gitlab",BITBUCKET:"bitbucket"};var ug=(tg={},tg[og.GITHUB]="GitHub",tg[og.GITLAB]="GitLab",tg[og.BITBUCKET]="BitBucket",tg);var cg="\n \nTo learn more about /:\\ gitStream - [Visit our Docs](https://docs.gitstream.cm/) \n \n";var lg={"01":"JAN","02":"FEB","03":"MAR","04":"APR","05":"MAY","06":"JUN","07":"JUL","08":"AUG","09":"SEP",10:"OCT",11:"NOV",12:"DEC"};var pg=function FiltersForAnalytics(){};pg.filters={};var fg=function handleAnalytics(Bn,Hn,zn){var ni;if(zn===void 0){zn=false}pg.filters=_extends({},pg.filters,(ni={},ni[Bn]={args:Hn,isCustom:zn},ni))};var dg=function capture(Bn,Hn){var zn=Hn.regex;var ni=ng(zn);var Ci=new RegExp(ni!=null?ni:"");var ts=Ci.exec(Bn);if(ts){return ts[0]}return""};var hg;var mg=function parseSome(Bn){var Hn;fg(kg.some,[]);var zn=(Hn=ag(Bn))==null?void 0:Hn.map((function(Bn){return Boolean(Bn)}));return Boolean(zn==null?void 0:zn.length)&&zn.some((function(Bn){return Bn}))};var _g=function parseEvery(Bn){fg(kg.every,[]);return sg(ag(Bn),true,false)};var gg=function termRegexOrList(Bn,Hn,zn,ni,Ci){return zn?rg(Hn?Bn[Hn]:Bn,zn):ni?ig(Hn?Bn[Hn]:Bn,ni):Ci.some((function(zn){return rg(Hn?Bn[Hn]:Bn,zn)}))};var Ag=function filterList(Bn,Hn,zn,ni,Ci,ts){return Bn.filter((function(Bn){return ts?!gg(Bn,Hn,zn,ni,Ci):gg(Bn,Hn,zn,ni,Ci)}))};var yg=function mapList(Bn,Hn,zn,ni,Ci,ts){return Bn.map((function(Bn){return ts?!gg(Bn,Hn,zn,ni,Ci):gg(Bn,Hn,zn,ni,Ci)}))};var vg=function calculateList(Bn,Hn,zn,ni){if(ni===void 0){ni=false}var Ci=Hn.attr||"";var ts=Hn.term,Ps=Hn.regex,aa=Hn.list;var oa=ag(Bn);if(!ts&&!Ps&&!aa){return[]}var ca=aa;if(aa){ca=ag(aa)}return zn==="filterList"?Ag(oa,Ci,ts,Ps,ca,ni):yg(oa,Ci,ts,Ps,ca,ni)};var Eg=function parseFilter(Bn,Hn){fg(kg.filter,[Hn]);return vg(Bn,Hn,"filterList")};var bg=function parseReject(Bn,Hn){fg(kg.reject,[Hn]);return vg(Bn,Hn,"filterList",true)};var Dg=function parseMap(Bn,Hn){var zn=Hn.attr;fg(kg.map,[{attr:zn}]);return ag(Bn).map((function(Bn){return Bn[zn]}))};var Cg=function parseIncludes(Bn,Hn){fg(kg.includes,[Hn]);var zn=Hn.term,ni=Hn.regex,Ci=Hn.list;if(!zn&&!ni&&!Ci){return false}var ts=Ci;if(Ci){ts=ag(Ci)}return zn?rg(Bn,zn):ni?ig(Bn,ni):ts.some((function(Hn){return Bn.includes(Hn)}))};var Sg=function parseMatch(Bn,Hn){fg(kg.match,[Hn]);return vg(Bn,Hn,"mapList")};var xg=function parseNope(Bn){fg(kg.match,[]);return sg(ag(Bn),false,true)};var wg=function parseIntersection(Bn,Hn){fg(kg.intersection,[Hn]);var zn=Hn.list;var ni=ag(Bn);var Ci=ag(zn);if(!Ci.length){return[]}return ts.intersection(ni,Ci)};var Tg=function parseDifference(Bn,Hn){fg(kg.difference,[Hn]);var zn=Hn.list;var ni=ag(Bn);var Ci=ag(zn);if(!Ci.length){return Bn}return ts.difference(ni,Ci)};var kg;(function(Bn){Bn["some"]="some";Bn["every"]="every";Bn["filter"]="filter";Bn["includes"]="includes";Bn["reject"]="reject";Bn["map"]="map";Bn["match"]="match";Bn["nope"]="nope";Bn["intersection"]="intersection";Bn["difference"]="difference";Bn["capture"]="capture"})(kg||(kg={}));var Ig=(hg={},hg[kg.some]=mg,hg[kg.every]=_g,hg[kg.filter]=Eg,hg[kg.reject]=bg,hg[kg.map]=Dg,hg[kg.includes]=Cg,hg[kg.match]=Sg,hg[kg.nope]=xg,hg[kg.intersection]=wg,hg[kg.difference]=Tg,hg[kg.capture]=dg,hg);var Bg={github:"",gitlab:" \n",default:""};var Fg=function calculateSumByAuthor(Bn,Hn){return Object.values(Bn).reduce((function(Bn,zn){var ni,Ci;var ts=zn[Hn];var Ps=(ts!=null?ts:0)+((ni=Bn[Hn])!=null?ni:0);return _extends({},Bn,Ps&&(Ci={},Ci[Hn]=Ps,Ci))}),{})};var Ng=function convertAndSumContributors(Bn,Hn){return Object.keys(Bn).reduce((function(zn,ni){var Ci,ts;var Ps=Bn[ni];if(zn[Hn[ni]]){Ps=Bn[ni]+zn[Hn[ni]]}var aa=(Ci=Hn[ni])!=null&&Ci.includes("@")||!Hn[ni]?ni+"\\*":Hn[ni];return _extends({},zn,(ts={},ts[aa]=Ps,ts))}),{})};var Pg=function convertContributorsAndBlame(Bn){var Hn=Object.keys(Bn.blame).reduce((function(Hn,zn){var ni;return _extends({},Hn,(ni={},ni[zn]=Ng(Bn.blame[zn],Bn.git_to_provider_user),ni))}),{});return{blame:Hn}};var Og=function sumAuthorMetrics(Bn,Hn){var zn=Object.keys(Hn).length;return Bn.reduce((function(Bn,ni){var Ci;var ts=Fg(Hn,ni);return _extends({},Bn,ts[ni]&&(Ci={},Ci[ni]=ts[ni]/zn,Ci))}),{})};var Rg=function calculateActivityPerFile(Bn,Hn){return Object.keys(Bn).reduce((function(zn,ni){var Ci;var ts=Object.values(Bn[ni]).reduce((function(Bn,zn){Hn.forEach((function(Hn){var ni=zn[Hn];if(ni){var Ci;Bn[Hn]=((Ci=Bn[Hn])!=null?Ci:0)+ni}}));return _extends({},Bn)}),{});return _extends({},zn,(Ci={},Ci[ni]=ts,Ci))}),{})};var Lg=function calculateFileSumPerAuthorActivity(Bn,Hn,zn){return Object.keys(Bn).reduce((function(ni,Ci){var ts;var Ps=Object.keys(Bn[Ci]).reduce((function(ni,ts){var Ps;var aa=[];Hn.forEach((function(Hn){if(zn[Ci][Hn]&&Bn[Ci][ts][Hn]){aa.push(Bn[Ci][ts][Hn]/zn[Ci][Hn]*100)}}));var oa=aa.reduce((function(Bn,Hn){return Bn+Hn}),0)/aa.length;return _extends({},ni,aa.length&&(Ps={},Ps[ts]=parseInt(oa==null?void 0:oa.toFixed(0)),Ps))}),{});return _extends({},ni,(ts={},ts[Ci]=Ps,ts))}),{})};var Qg=function sortObject(Bn,Hn){return Bn.sort((function(Bn,zn){var ni,Ci;return((ni=Hn[zn])!=null?ni:0)-((Ci=Hn[Bn])!=null?Ci:0)}))};var Mg=function compareThan(Bn,Hn,zn){var ni=Object.keys(Bn).filter((function(ni){return Hn!==undefined?Bn[ni]>Hn:Bn[ni]parseInt(Ps)){Ps=Bn[ts]}return _extends({},Bn,(Ci={},Ci[ts]=Ps,Ci))}),{});return _extends({},Bn,(ni={},ni[Hn]=ts,ni))}),{})};var Gg=function suggestedReviewersComment(Bn,Hn,zn,ni){var Ci=Bn?" 👋 **Suggested reviewers: "+Bn+"**\n \nThey contributed "+Hn+" of the lines on pre-existing files":" 👋 **Suggested reviewers: no user "+(ni?"but you":"")+" matched**\n \nNo "+(zn?"other ":"")+"user contributed "+Hn+" of the lines on pre-existing files";return Ci};var qg=function explainBlameTemplate(Bn,Hn,zn,ni,Ci){var ts=Bn.gt,Ps=Bn.lt;var aa=ts?"more than "+ts+"%":"less than "+Ps+"%";var oa=Object.keys(zn).length;var ca=Gg(Hn,aa,oa,Ci);ca+=oa?":\n":". \n ";ca+=Object.keys(zn).length?"
\n See details\n":"";ca+="\n";Object.keys(zn).forEach((function(Bn){if(Object.keys(zn[Bn]).length===0){return}ca+="\n`"+Bn+"` \n"+(Bg[ni]||Bg["default"]);Object.keys(zn[Bn]).forEach((function(Hn){ca+=Hn+": "+zn[Bn][Hn]+" \n"+(Bg[ni]||Bg["default"])}))}));ca+="\n
\n";var _a=Object.values(zn).map((function(Bn){return Object.keys(Bn).some((function(Bn){return Bn.includes("*")}))})).some((function(Bn){return Bn}));ca+=_a?" \nGit users that could not be automatically mapped are marked with `*`.\n"+(Bg[ni]||Bg["default"])+"To map these users, refer to the instructions [here](https://docs.gitstream.cm/cm-file#config).\n \n":"";ca+=cg;return ca};var Vg=function isGtLtArgsValid(Bn){var Hn=Bn.gt,zn=Bn.lt;return!!Hn||!!zn};var Hg=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn){var Hn,zn;return _regeneratorRuntime().wrap((function _callee$(ni){while(1)switch(ni.prev=ni.next){case 0:ni.prev=0;ni.next=3;return so.post(Jp.REVIEW_TIME,Bn,{headers:{"Content-type":"application/json"}});case 3:Hn=ni.sent;zn=Hn.data.numericValue;return ni.abrupt("return",{numericValue:zn});case 8:ni.prev=8;ni.t0=ni["catch"](0);console.warn("Failed to get ETR",ni.t0);return ni.abrupt("return",{numericValue:"N/A"});case 12:case"end":return ni.stop()}}),_callee,null,[[0,8]])})));return function getETR(Hn){return Bn.apply(this,arguments)}}();var $g=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(Bn){var Hn,zn;return _regeneratorRuntime().wrap((function _callee2$(ni){while(1)switch(ni.prev=ni.next){case 0:ni.prev=0;if(!Bn){ni.next=7;break}ni.next=4;return so.post(Jp.EXPERT_REVIWER,Bn,{headers:{"Content-type":"application/json"}});case 4:Hn=ni.sent;zn=Hn.data;return ni.abrupt("return",zn||{});case 7:return ni.abrupt("return",{});case 10:ni.prev=10;ni.t0=ni["catch"](0);return ni.abrupt("return",{});case 13:case"end":return ni.stop()}}),_callee2,null,[[0,10]])})));return function getExpertReviewer(Hn){return Bn.apply(this,arguments)}}();var Jg=function filterExpertResult(Bn,Hn,zn,ni){var Ci=Object.keys(Bn).reduce((function(Ci,ts){if(Hn!==undefined?Bn[ts][ni]>Hn/100:Bn[ts][ni]")}))||[]};var Yg=function parseExpertReviewerThreshold(Bn){var Hn=Bn.gt,zn=Bn.lt;return Hn||zn||.1};var Wg=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(Bn){var Hn;var zn,ni,Ci;return _regeneratorRuntime().wrap((function _callee3$(ts){while(1)switch(ts.prev=ts.next){case 0:ts.next=2;return $g((Hn=Bn.data_service)==null?void 0:Hn.expert_reviwer_request);case 2:zn=ts.sent;if(Object.keys(zn).length){ts.next=5;break}return ts.abrupt("return",{data:{},dataWithoutIssuer:{},isIssuerFiltered:false});case 5:ni=false;Ci=Object.keys(zn).reduce((function(Hn,Ci){var ts;if(Ci===Bn.pr_author){ni=true;return Hn}return _extends({},Hn,(ts={},ts[Ci]=zn[Ci],ts))}),{});return ts.abrupt("return",{data:zn,dataWithoutIssuer:Ci,isIssuerFiltered:ni});case 8:case"end":return ts.stop()}}),_callee3)})));return function getAndFilterExpertReviewer(Hn){return Bn.apply(this,arguments)}}();var Kg=function explainExpertReviewerComment(Bn,Hn,zn,ni,Ci,ts){var Ps="🥷 **Code experts:";Ps+=Bn.length?" "+Bn.join(", ")+"** \n \n":" no user "+(ts?"but you":"")+" matched threshold "+ni+"** \n \n";if(Hn.length){Ps+=Hn.join(", ")+" "+(Hn.length===1?"has":"have")+" most 👩‍💻 **activity** in the files. \n"+(Bg[Ci]||Bg["default"])}if(zn.length){Ps+=zn.join(", ")+" "+(zn.length===1?"has":"have")+" most 🧠 **knowledge** in the files. \n"}return Ps};var zg=function explainActivityByMonth(Bn,Hn,zn){var ni="";var Ci=[];for(var ts=0;ts<6;ts++){Ci.push(lg[oo().subtract(ts,"months").format("MM")])}Ci.forEach((function(Ci){var ts;var Ps=Bn[Hn][zn[0]][Ci];var aa=(ts=Bn[Hn][zn[1]])==null?void 0:ts[Ci];ni+="| "+Ci+" | "+(Ps?Ps.additions+" additions & "+Ps.deletions+" deletions":" ")+" |";ni+=(aa?aa.additions+" additions & "+aa.deletions+" deletions |":" ")+" \n"}));return ni};var Xg=function explainActivityTable(Bn,Hn,zn){if(!Object.keys(Hn).length){return"\n\nNo activity in the last 6 months\n\n"}if(zn.length){var ni="\n\nActivity based on git-commit: \n\n | | "+(zn[0]?zn[0]:" ")+" | "+(zn[1]?zn[1]+"| \n | --- | --- | --- | \n ":" \n | --- | --- | \n");ni+=zg(Hn,Bn,zn);return ni}return""};var Zg=function explainKnowledgeSection(Bn,Hn,zn,ni){var Ci="";var ts=Qg(zn,Hn[Bn]);ts.forEach((function(zn){Ci+=Hn[Bn][zn]?zn+": "+Hn[Bn][zn]+"% \n"+(Bg[ni]||Bg["default"]):""}));return Ci};var sA=function explainActivityAndBlameComment(Bn,Hn,zn,ni,Ci,ts){try{var Ps="
\n See details\n\n";Bn.forEach((function(Bn){Ps+="\n`"+Bn+"` \n "+Xg(Bn,Hn,ni)+" \n\nKnowledge based on git-blame: \n "+(Bg[ts]||Bg["default"])+Zg(Bn,zn,Ci,ts)}));Ps+="\n
\n";return Ps}catch(Bn){console.log("Error in creating explain code experts comment",Bn);return""}};var oA=function parseActivityByUserDataForExplain(Bn,Hn,zn){return Object.keys(Bn[Hn]).reduce((function(ni,Ci){if(Bn[Hn][Ci][zn]){var ts,Ps;var aa=lg[(ts=Ci.split("-"))==null?void 0:ts[1]];return _extends({},ni,(Ps={},Ps[aa]=Bn[Hn][Ci][zn],Ps))}return ni}),{})};var hA=function parseActivityByUserForExplain(Bn,Hn,zn){return zn.reduce((function(zn,ni){var Ci;var ts=oA(Bn,Hn,ni);return _extends({},zn,(Ci={},Ci[ni]=ts,Ci))}),{})};var ey=function getExplainActivity(Bn,Hn){return Object.keys(Bn||{}).reduce((function(zn,ni){var Ci;var ts=hA(Bn,ni,Hn);return _extends({},zn,(Ci={},Ci[ni]=ts,Ci))}),{})};var ty=function getExplainKnowledge(Bn,Hn){return Object.keys(Bn||{}).reduce((function(zn,ni){var Ci;var ts=Qg(Hn,Bn[ni]);var Ps=ts.reduce((function(Hn,zn){if(Bn[ni][zn]){var Ci;return _extends({},Hn,(Ci={},Ci[zn]=Math.round(Bn[ni][zn]*100),Ci))}return Hn}),{});return _extends({},zn,(Ci={},Ci[ni]=Ps,Ci))}),{})};var ry;(function(Bn){Bn["allDocs"]="allDocs";Bn["allImages"]="allImages";Bn["allTests"]="allTests";Bn["extensions"]="extensions";Bn["isFormattingChange"]="isFormattingChange";Bn["matchDiffLines"]="matchDiffLines";Bn["isFirstCommit"]="isFirstCommit";Bn["rankByGitBlame"]="rankByGitBlame";Bn["rankByGitActivity"]="rankByGitActivity";Bn["explainRankByGitBlame"]="explainRankByGitBlame";Bn["sonarParser"]="sonarParser";Bn["mapToEnum"]="mapToEnum";Bn["extractSonarFindings"]="extractSonarFindings";Bn["extractJitFindings"]="extractJitFindings";Bn["countTests"]="countTests"})(ry||(ry={}));var ny;(function(Bn){Bn["estimatedReviewTime"]="estimatedReviewTime";Bn["expertReviewer"]="expertReviewer";Bn["explainExpertReviewer"]="explainExpertReviewer";Bn["codeExperts"]="codeExperts";Bn["explainCodeExperts"]="explainCodeExperts"})(ny||(ny={}));var iy="/dev/null";var py=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn){var zn,ni,Ci;var ts,Ps,aa,oa,ca,_a,xa,Ga;return _regeneratorRuntime().wrap((function _callee$(Ha){while(1)switch(Ha.prev=Ha.next){case 0:fg(ny.estimatedReviewTime,[]);ts=(zn=Bn.diff)==null?void 0:zn.files_metadata.length;Ps=(ni=Bn.diff)==null?void 0:ni.files_metadata.reduce((function(Bn,Hn){Bn.additionalLines+=Hn.additions;Bn.deletedLines+=Hn.deletions;return Bn}),{additionalLines:0,deletedLines:0}),aa=Ps.additionalLines,oa=Ps.deletedLines;ca=(Ci=Bn.diff)==null?void 0:Ci.files_metadata.map((function(Bn){return{file_path:Bn.new_file!==iy?Bn.new_file:Bn.original_file,additions:Bn.additions,deletions:Bn.deletions}}));_a={prMetadata:{commits:Bn.num_of_commits,files:ts,lines:aa+oa},prFiles:ca,prAdditionalLines:aa,prDeletedLines:oa,baseBranch:Bn.base,request_source:"gitstream"};Ha.next=7;return Hg(_a);case 7:xa=Ha.sent;Ga=xa.numericValue;Hn(null,Ga);case 10:case"end":return Ha.stop()}}),_callee)})));return function estimatedReviewTime(Hn,zn){return Bn.apply(this,arguments)}}();var fy=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca;return _regeneratorRuntime().wrap((function _callee2$(_a){while(1)switch(_a.prev=_a.next){case 0:ni=Hn.gt,Ci=ni===void 0?0:ni,ts=Hn.lt,Ps=ts===void 0?0:ts;_a.prev=1;fg(ny.expertReviewer,[{gt:Ci,lt:Ps}]);_a.next=5;return Wg(Bn);case 5:aa=_a.sent;oa=aa.dataWithoutIssuer;if(!Object.keys(oa).length){zn(null,[])}ca=Jg(oa,Ci,Ps,"reviewer_score").slice(0,2);zn(null,ca);_a.next=16;break;case 12:_a.prev=12;_a.t0=_a["catch"](1);console.log("error:",_a.t0);zn(null,[]);case 16:case"end":return _a.stop()}}),_callee2,null,[[1,12]])})));return function parseExpertReviewer(Hn,zn,ni){return Bn.apply(this,arguments)}}();var Ty=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha,so,oo,Jo,tc;return _regeneratorRuntime().wrap((function _callee3$(dc){while(1)switch(dc.prev=dc.next){case 0:dc.prev=0;ts=Hn.gt,Ps=Hn.lt;dc.next=4;return Wg(Bn);case 4:aa=dc.sent;oa=aa.data;ca=aa.dataWithoutIssuer;_a=aa.isIssuerFiltered;if(!Object.keys(oa).length||!Object.keys(ca).length){zn(null,[])}xa=Jg(ca,ts,Ps,"reviewer_score").slice(0,2);Ga=Jg(oa,ts,Ps,"avg_activity_score").slice(0,2);Ha=Jg(oa,ts,Ps,"avg_blame_perc").slice(0,2);so=ey((ni=oa.explain)==null?void 0:ni.activity,Ga);oo=ty((Ci=oa.explain)==null?void 0:Ci.blame,Ha);Jo=Kg(xa,Ga,Ha,Yg(Hn),Bn.provider,_a&&!Object.keys(xa).length)+" "+sA(Array.from(new Set([].concat(Object.keys(so),Object.keys(oo)))),so,oo,Ga,Ha,Bn.provider)+" \n\n "+cg+" \n";tc="base64: "+Buffer.from(Jo).toString("base64");zn(null,tc);dc.next=23;break;case 19:dc.prev=19;dc.t0=dc["catch"](0);console.log("error:",dc.t0);zn("");case 23:case"end":return dc.stop()}}),_callee3,null,[[0,19]])})));return function parseExplainCodeExpertHandler(Hn,zn,ni){return Bn.apply(this,arguments)}}();var Gy=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(Bn,Hn,zn){var ni,Ci,ts,Ps;return _regeneratorRuntime().wrap((function _callee4$(aa){while(1)switch(aa.prev=aa.next){case 0:ni=Hn.gt,Ci=ni===void 0?0:ni,ts=Hn.lt,Ps=ts===void 0?0:ts;fg(ny.codeExperts,[{gt:Ci,lt:Ps}]);aa.next=4;return fy(Bn,{gt:Ci,lt:Ps},zn);case 4:case"end":return aa.stop()}}),_callee4)})));return function parseCodeExperts(Hn,zn,ni){return Bn.apply(this,arguments)}}();var Vy=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee5(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee5$(ni){while(1)switch(ni.prev=ni.next){case 0:fg(ny.explainExpertReviewer,[Hn]);ni.next=3;return Ty(Bn,Hn,zn);case 3:case"end":return ni.stop()}}),_callee5)})));return function parseExplainExpertReviewer(Hn,zn,ni){return Bn.apply(this,arguments)}}();var Hy=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee6(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee6$(ni){while(1)switch(ni.prev=ni.next){case 0:fg(ny.explainCodeExperts,[Hn]);ni.next=3;return Ty(Bn,Hn,zn);case 3:case"end":return ni.stop()}}),_callee6)})));return function parseExplainCodeExperts(Hn,zn,ni){return Bn.apply(this,arguments)}}();var Av={bugs:/\[(.) Reliability Rating/,security_hotspots:/\[(.) Security Hotspots/,vulnerabilities:/\[(.) Security Rating/,code_smells:/\[(.) Maintainability Rating/,duplications:/(\d+(\.\d+)?%) Duplication on New Code/,coverage:/(\d+(\.\d+)?%) Coverage on New Code/};var vv=function getDefaultSonar(){return{bugs:{count:null,rating:""},code_smells:{count:null,rating:""},vulnerabilities:{count:null,rating:""},security_hotspots:{count:null,rating:""},duplications:null,coverage:null}};var Ev=function parseSonarParser(Bn){fg(ry.sonarParser,[]);var Hn=Bn.comments.filter((function(Bn){return Bn.commenter==="sonarcloud"}));if(!Hn.length){return JSON.stringify(vv())}var zn=Object.keys(Av).reduce((function(Bn,zn){var ni;var Ci=Av[zn];var ts=Hn[0].content.match(Ci);if(zn.toString()==="duplications"||zn.toString()==="coverage"){var Ps;var aa=parseFloat(ts==null?void 0:ts[1].replace("%",""));return _extends({},Bn,(Ps={},Ps[zn]=aa||null,Ps))}if(zn.toString()==="security_hotspots"){var oa,ca;return _extends({},Bn,(ca={},ca[zn]={count:ts&&(ts==null||(oa=ts[1])==null?void 0:oa.toString())!=="0"?ts[1]:null,rating:""},ca))}return _extends({},Bn,(ni={},ni[zn]={count:ts?1:null,rating:ts?ts[1]:""},ni))}),vv());return JSON.stringify(zn)};var bv="jit-ci";var Cv=function parseJitReview(Bn){var Hn=wv();var zn=Bn.conversations;zn.forEach((function(Bn){var zn,ni,Ci,ts,Ps,aa,oa;var ca=Bn.content;var _a=ca.split("\n");var xa=(zn=_a[0])==null||(zn=zn.split("**")[2])==null?void 0:zn.trim();var Ga=(ni=_a[2])==null||(ni=ni.split("**")[2])==null?void 0:ni.trim();var Ha=(Ci=_a[4])==null||(Ci=Ci.split("**")[2])==null?void 0:Ci.trim();var so=(ts=_a[6])==null||(ts=ts.split("**")[2])==null?void 0:ts.trim();var oo=(Ps=(aa=_a[10])==null||(aa=aa.split("")[1])==null?void 0:aa.split("")[0])!=null?Ps:"";var Jo=oo.replace(//g,"").replace(/<\/b>/g,"");Hn.vulnerabilities.push({security_control:xa,type:Ga,description:Ha,severity:so,summary:Jo});Hn.metrics[so]=((oa=Hn.metrics[so])!=null?oa:0)+1}));return Hn};var Sv=function unifyReviews(Bn,Hn){return Bn.reduce((function(Bn,Hn){console.log({acc:Bn,review:Hn});return _extends({},Bn,{vulnerabilities:[].concat(Bn.vulnerabilities,Hn.vulnerabilities),metrics:Jo(Bn.metrics,Hn.metrics,(function(Bn,Hn){return(Bn||0)+(Hn||0)}))})}),_extends({},Hn))};var xv=function extractJitCommentsFromPR(Bn){return Bn.reviews.filter((function(Bn){var Hn=Bn.commenter;return Hn===bv}))};var wv=function initEmptyJitObject(){return{vulnerabilities:[],metrics:{HIGH:null,MEDIUM:null,LOW:null,INFO:null}}};var Tv=function parseJitComments(Bn){fg(ry.extractJitFindings,[]);var Hn=xv(Bn);var zn=wv();if(ts.isEmpty(Hn)){return JSON.stringify(zn)}var ni=Hn.map(Cv);return JSON.stringify(Sv(ni,zn))};var kv={extractJitFindings:Tv};var Iv=[".spec.",".test.","test_"];var Bv=["\\s*it\\(","\\s*test\\(","\\s*step\\(","\\s*def test_"];var Fv=Bv.map((function(Bn){return new RegExp(Bn)}));var Nv=function extractChangesFromDiff(Bn){var Hn=Bn.split("\n");var zn=[];var ni=[];Hn.forEach((function(Bn){if(Bn.startsWith("+")){var Hn=Bn.slice(1).trim();zn.push(Hn)}else if(Bn.startsWith("-")){var Ci=Bn.slice(1).trim();ni.push(Ci)}}));return{additions:zn,deletions:ni}};var Ov=function countTests(Bn){var Hn=Bn.diff.files.filter((function(Bn){var Hn=Bn.original_file,zn=Bn.new_file;return Iv.some((function(Bn){return Hn.includes(Bn)||zn.includes(Bn)}))}));return Hn.reduce((function(Bn,Hn){var zn=Hn.diff;var ni=Nv(zn),Ci=ni.additions,ts=ni.deletions;var Ps=Ci.filter((function(Bn){return Fv.some((function(Hn){return Hn.test(Bn)}))}));var aa=ts.filter((function(Bn){return Fv.some((function(Hn){return Hn.test(Bn)}))}));var oa=aa.length;var ca=Ps.length;return Bn+ca-(oa>ca?0:oa)}),0)};var Mv=function extractAdditionalFieldsValue(Bn){var Hn={};Object.entries(Bn).forEach((function(Bn){var zn=Bn[0],ni=Bn[1];Hn[zn]=ni}));return Hn};var OE=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha,oo,Jo,dc,Fc,Jc,Dp,kp,Qp,Up,qp,Vp,Jp,Wp,zp,Qf,Yf;return _regeneratorRuntime().wrap((function _callee$(Kf){while(1)switch(Kf.prev=Kf.next){case 0:ni=Hn.url,Ci=Hn.username,ts=Hn.apiToken,Ps=Hn.additionalFields;if(!(!ni||!Ci||!ts||!Bn)){Kf.next=4;break}zn(null,JSON.stringify({}));return Kf.abrupt("return");case 4:aa=Ci+":"+ts;oa="Basic "+Buffer.from(aa).toString("base64");ca={Authorization:oa,Accept:"application/json"};Kf.prev=7;Kf.next=10;return so.get(ni+"/rest/api/3/issue/"+Bn,{headers:ca});case 10:Jp=Kf.sent;Wp=Jp.data;zp=(_a=Wp==null?void 0:Wp.fields)!=null?_a:{};Qf=tc(zp,Ps);Yf=_extends({labels:(xa=zp.labels)!=null?xa:[],assignee:(Ga=(Ha=zp.assignee)==null?void 0:Ha.displayName)!=null?Ga:"",status:(oo=zp.name)!=null?oo:"",url:(Jo=Wp==null?void 0:Wp.self)!=null?Jo:"",priority:(dc=(Fc=zp.priority)==null?void 0:Fc.name)!=null?dc:"",creator:(Jc=(Dp=zp.creator)==null?void 0:Dp.displayName)!=null?Jc:"",issueType:(kp=(Qp=zp.issueType)==null?void 0:Qp.name)!=null?kp:"",project:(Up=(qp=zp.project)==null?void 0:qp.name)!=null?Up:"",summary:(Vp=zp.summary)!=null?Vp:""},Mv(Qf));zn(null,JSON.stringify(Yf));Kf.next=22;break;case 18:Kf.prev=18;Kf.t0=Kf["catch"](7);console.log("error while running getJiraTicketDetails filter",Kf.t0);zn(null,JSON.stringify({}));case 22:case"end":return Kf.stop()}}),_callee,null,[[7,18]])})));return function getJiraTicketDetails(Hn,zn,ni){return Bn.apply(this,arguments)}}();var iD={getJiraTicketDetails:OE};var eC,tC,rC,nC;var iC=function parseExtractSonarFindings(Bn){fg(ry.extractSonarFindings,[]);return Ev(Bn)};var sC=function parserMapToEnum(Bn,Hn){fg(ry.mapToEnum,[Bn,Hn]);var zn=Hn==null?void 0:Hn["enum"];if(zn&&Object.keys(zn).length){return zn[Bn]}};var aC=function parseFilterAllTests(Bn,Hn){var zn=new RegExp("[^a-zA-Z0-9]("+Hn.join("|")+")[^a-zA-Z0-9]");return Boolean(Bn.length)&&Bn.map((function(Bn){return zn.test(Bn||"")})).every((function(Bn){return Bn}))};var oC=function parseFilterAllFilePath(Bn,Hn){return Boolean(Bn.length)&&Bn.map((function(Bn){return Hn.some((function(Hn){return(Bn||"").includes(Hn)}))})).every((function(Bn){return Bn}))};var uC=function parseFilterAllExtensions(Bn,Hn){return Bn.length?oC(Bn.map((function(Bn){return Bn.split(".").pop()||""})),Hn):false};var cC=function getUniqueExtensions(Bn){fg(ry.extensions,[]);return Bn.map((function(Bn){return Bn.split(".").pop()})).filter((function(Bn,Hn,zn){return zn.indexOf(Bn)===Hn}))};var lC=function parseIsFormattingChange(Bn){try{fg(ry.isFormattingChange,[]);var Hn=Boolean(Bn.length)&&Bn.every((function(Bn){var Hn=Bn.new_content,zn=Bn.original_content,ni=Bn.original_file,Ci=Bn.new_file;var ts=Qh(Hn,Ci);var Ps=Qh(zn,ni);return ts===Ps}));return Hn}catch(Bn){return false}};var pC=function parseMatchDiffLines(Bn,Hn){fg(ry.matchDiffLines,[Hn]);var zn=Hn.regex,ni=Hn.ignoreWhiteSpaces;var Ci=new RegExp("^[+-]");var ts=new RegExp("^[+-]\\s*$");return!zn?[]:Bn.map((function(Bn){var Hn=Bn.diff;return Hn.split("\n").filter((function(Bn){return Ci.test(Bn)})).filter((function(Bn){return ni?!ts.test(Bn):true})).map((function(Bn){return ig(Bn,zn)}))})).flat(1)};var fC=function parseIsFirstCommit(Bn,Hn){fg(ry.isFirstCommit,[{author:Hn}]);return!_a(Bn,Hn,null)};var dC=function parseRankByGitBlame(Bn,Hn){fg(ry.rankByGitBlame,[Hn]);if(!Vg(Hn)){return[]}var zn=Hn.gt,ni=Hn.lt;var Ci=Pg(Bn),ts=Ci.blame;var Ps=Og(Object.values(Bn.git_to_provider_user),ts);var aa=jg(Ps,zn,ni);return Object.keys(aa).length?[].concat(Array.from(new Set(Object.keys(aa)))):[]};var hC=function parseRankByGitActivity(Bn,Hn){fg(ry.rankByGitActivity,[Hn]);var zn=Hn.gt,ni=Hn.lt,Ci=Hn.weeks;if(!zn&&!ni||!Ci){return[]}var ts=new Array(Ci+1).fill(0).map((function(Bn,Hn){return"week_"+Hn}));var Ps=Rg(Bn.git_activity,ts);var aa=Lg(Bn.git_activity,ts,Ps);var oa=Og(Object.keys(Bn.contributors),aa);var ca=Ng(oa,Bn.git_to_provider_user);var _a=jg(ca,zn,ni);return Object.keys(_a).length?[].concat(Array.from(new Set(Object.keys(_a)))):[]};var mC=function parseExplainRankByGitBlame(Bn,Hn){fg(ry.explainRankByGitBlame,[Hn]);if(!Vg(Hn)){return{}}var zn=dC(Bn,Hn);var ni=Ha(zn,(function(Hn){return Hn!==Bn.pr_author}));var Ci=ni.join(", ");var ts=!ni.length&&zn.length>0;var Ps=Ug(Bn);return"base64: "+Buffer.from(qg(Hn,Ci,Ps,Bn.provider,ts)).toString("base64")};var _C=(eC={},eC[ry.allDocs]=["requirements.txt"],eC);var gC=(tC={},tC[ry.allDocs]=["md","mkdown","txt","rst",".adoc"],tC[ry.allImages]=["svg","png","gif"],tC[ry.allTests]=["test","spec"],tC);var AC=_extends((rC={},rC[ry.allDocs]=function(Bn){fg(ry.allDocs,[]);return Boolean(Bn.length)&&Bn.every((function(Bn){return _C[ry.allDocs].every((function(Hn){return!(Bn.includes("/"+Hn)||Bn===Hn)}))}))&&uC(Bn,gC[ry.allDocs])},rC[ry.allImages]=function(Bn){fg(ry.allImages,[]);return uC(Bn,gC[ry.allImages])},rC[ry.allTests]=function(Bn){fg(ry.allTests,[]);return aC(Bn,gC[ry.allTests])},rC[ry.extensions]=cC,rC[ry.isFormattingChange]=lC,rC[ry.matchDiffLines]=pC,rC[ry.isFirstCommit]=fC,rC[ry.rankByGitBlame]=dC,rC[ry.rankByGitActivity]=hC,rC[ry.explainRankByGitBlame]=mC,rC[ry.sonarParser]=Ev,rC[ry.mapToEnum]=sC,rC[ry.extractSonarFindings]=iC,rC[ry.countTests]=Ov,rC[ny.estimatedReviewTime]=py,rC[ny.expertReviewer]=fy,rC[ny.explainExpertReviewer]=Vy,rC[ny.codeExperts]=Gy,rC[ny.explainCodeExperts]=Hy,rC),kv,iD);var yC=(nC={},nC[ny.estimatedReviewTime]=true,nC[ny.expertReviewer]=true,nC[ny.explainExpertReviewer]=true,nC[ny.codeExperts]=true,nC[ny.explainCodeExperts]=true,nC.getJiraTicketDetails=true,nC);var vC={SYNTAX_ERROR:"syntax error",RULE_FILE_NOT_FOUND:"Rule file not found",FAILED_TO_EXTRACT_ADMINS:"gitstream.cm file not found - failed to extract admins",SEND_RESULTS_TO_RESOLVER_FAILED:"Failed sending evaluated rules to the resolver.",SEND_RESULTS_TO_RESOLVER_SUCCEEDED:"Sending evaluated rules to the resolver succeeded",FAILED_TO_GET_CONTEXT:"Failed to get PR context.",FAILED_TO_GET_BLAME_CONTEXT:"Failed to get git blame context.",FAILED_TO_GET_ACTIVITY_CONTEXT:"Failed to get git activity context.",FAILED_PARSE_CM_FILE:"Failed while parsing CM file",MISSING_KEYWORD:"Missing `automations` keyword in *.cm",MALFORMED_EXPRESSION:"There are spaces between the currly braces { { and } }",FAILED_TO_PARSE_CM:"Failed to parse cm",FAILED_TO_GET_WATCHERS:"Failed to get watchers from rules files",GIT_COMMAND_FAILED:"Git command failed. reason:",INTERNAL_ERROR:"gitstream-rules-engine internal error",INVALID_CACHE:"Invalid cache",VALIDATOR_ERROR:"Validator error",FAILED_PARSE_RULES_PARSER_ERRORS:"Failed parse rules parser errors"};var EC={SEND_RESULTS_TO_RESOLVER_FAILED:50,FAILED_TO_GET_CONTEXT:40,FAILED_TO_GET_BLAME_CONTEXT:41,FAILED_TO_GET_ACTIVITY_CONTEXT:42,SYNTAX_ERROR:60,MISSING_KEYWORD:61,UNSUPPORTED_ACTION:62,UNSUPPORTED_ARGUMENT:63,MALFORMED_EXPRESSION:64,MISSING_REQUIRED_FIELDS:65,FAILED_TO_PARSE_CM:66,BAD_REVISION:67,INTERNAL_ERROR:68,RULE_FILE_NOT_FOUND:70,FAILED_TO_GET_WATCHERS:71,INVALID_CACHE:72,FAILED_PARSE_RULES_PARSER_ERRORS:73};var bC="filters";var DC={REPO:"repo",ORG:"org"};var CC=function withTryCatchFilter(Bn,Hn,zn){if(zn===void 0){zn=false}if(!zn){return function(){for(var zn=arguments.length,ni=new Array(zn),Ci=0;Ci0&&ni.map((function(Bn){return zn.test(Bn)})).every((function(Bn){return Bn}))};var IC=function parseExtractExtensions(Bn){return Bn.length&&Bn.map((function(Bn){return Bn.split(".").pop()})).filter((function(Bn,Hn,zn){return zn.indexOf(Bn)===Hn}))};var BC=function parseIsStringIncludes(Bn,Hn){return Hn.some((function(Hn){return Bn.includes(Hn)}))};var FC=function parseIsStringIncludesRegex(Bn,Hn){var zn=new RegExp(Hn);return zn.test(Bn)};var NC=function parseRegex(Bn,Hn){var zn=new RegExp(Hn);return Bn.length?Bn.map((function(Bn){return zn.test(Bn)})).every((function(Bn){return Bn})):false};var PC=function parseIsEveryInListRegex(Bn,Hn){var zn=new RegExp(Hn);return Bn.length?Bn.map((function(Bn){return zn.test(Bn)})).every((function(Bn){return Bn})):false};var OC=function parseIsEveryInList(Bn,Hn){return Bn.length?Bn.filter((function(Bn){return Hn.includes(Bn)})).every((function(Bn){return Bn})):false};var RC=function parseIsSomeInList(Bn,Hn){return Bn.length?Bn.filter((function(Bn){return Hn.includes(Bn)})).some((function(Bn){return Bn})):false};var LC=function parseIncludesRegex(Bn,Hn){var zn=new RegExp(Hn);return Bn.length?Bn.map((function(Bn){return zn.test(Bn)})).some((function(Bn){return Bn})):false};var QC=function parseIsSomeInListRegex(Bn,Hn){var zn=new RegExp(Hn);return Bn.length?Bn.map((function(Bn){return zn.test(Bn)})).some((function(Bn){return Bn})):false};var MC=function parseFilterRegex(Bn,Hn){var zn=new RegExp(Hn);return Bn.length?Bn.filter((function(Bn){return zn.test(Bn)})):false};var jC=function parseFilterListRegex(Bn,Hn){var zn=new RegExp(Hn);return Bn.length?Bn.filter((function(Bn){return zn.test(Bn)})):false};var UC=function parseFilterList(Bn,Hn){return Bn.length?Bn.filter((function(Bn){return Hn.includes(Bn)})):false};var GC=function minify(Bn){return Bn.replace(/\s+/g," ").replaceAll("'",'"').trim()};var qC=function allFormattingChange(Bn){try{var Hn=Bn.every((function(Bn){var Hn=Bn.new_content,zn=Bn.original_content,ni=Bn.original_file,Ci=Bn.new_file;var ts=xa.format(Hn,{semi:false,singleQuote:true,filepath:Ci});var Ps=xa.format(zn,{semi:false,singleQuote:true,filepath:ni});return GC(ts)===GC(Ps)}));return Hn}catch(Bn){return false}};var HC=function parseFilterFileDiffRegex(Bn,Hn){var zn=new RegExp(Hn,"m");return Bn.length?Bn.filter((function(Bn){var Hn=Bn.diff;return zn.test(Hn)})):false};var $C=function parseIsEveryLineInFileDiffRegex(Bn,Hn){var zn=new RegExp(Hn,"m");return Bn.length?Bn.map((function(Bn){var Hn=Bn.diff;return zn.test(Hn)})).every((function(Bn){return Bn})):false};var JC=function parseIsSomeLineInFileDiffRegex(Bn,Hn){var zn=new RegExp(Hn,"m");return Bn.length?Bn.map((function(Bn){var Hn=Bn.diff;return zn.test(Hn)})).some((function(Bn){return Bn})):false};var YC=function parseFilterAllExtensions(Bn,Hn){return Bn.length?wC(Bn.map((function(Bn){return Bn.split(".").pop()||""})),Hn):false};var WC;(function(Bn){Bn["allExtensions"]="allExtensions";Bn["includes"]="includes";Bn["allPassRegex"]="allPassRegex";Bn["allPathIncludes"]="allPathIncludes";Bn["filterRegex"]="filterRegex";Bn["includesRegex"]="includesRegex";Bn["true"]="true";Bn["allFormattingChange"]="allFormattingChange";Bn["filterList"]="filterList";Bn["filterListRegex"]="filterListRegex";Bn["isEveryInListRegex"]="isEveryInListRegex";Bn["isSomeInList"]="isSomeInList";Bn["isSomeInListRegex"]="isSomeInListRegex";Bn["isStringIncludes"]="isStringIncludes";Bn["isStringIncludesRegex"]="isStringIncludesRegex";Bn["isEveryInList"]="isEveryInList";Bn["extractExtensions"]="extractExtensions";Bn["isEveryExtension"]="isEveryExtension";Bn["isEveryExtensionRegex"]="isEveryExtensionRegex";Bn["filterFileDiffRegex"]="filterFileDiffRegex";Bn["isEveryLineInFileDiffRegex"]="isEveryLineInFileDiffRegex";Bn["isSomeLineInFileDiffRegex"]="isSomeLineInFileDiffRegex"})(WC||(WC={}));var KC=(xC={},xC[WC.filterList]=UC,xC[WC.filterListRegex]=jC,xC[WC.isEveryInListRegex]=PC,xC[WC.isSomeInList]=RC,xC[WC.isSomeInListRegex]=QC,xC[WC.isStringIncludes]=BC,xC[WC.isStringIncludesRegex]=FC,xC[WC.isEveryInList]=OC,xC[WC.extractExtensions]=IC,xC[WC.isEveryExtension]=TC,xC[WC.isEveryExtensionRegex]=kC,xC[WC["true"]]=function(){return true},xC[WC.filterFileDiffRegex]=HC,xC[WC.isEveryLineInFileDiffRegex]=$C,xC[WC.isSomeLineInFileDiffRegex]=JC,xC[WC.allExtensions]=YC,xC[WC.allPassRegex]=NC,xC[WC.allPathIncludes]=wC,xC[WC.filterRegex]=MC,xC[WC.includesRegex]=LC,xC[WC.allFormattingChange]=qC,xC);var zC;var XC;(function(Bn){Bn["created"]="created";Bn["edited"]="edited"})(XC||(XC={}));var ZC;(function(Bn){Bn["open"]="opened";Bn["reopen"]="reopen";Bn["closed"]="closed";Bn["synchronize"]="synchronize";Bn["assigned"]="assigned";Bn["converted_to_draft"]="converted_to_draft";Bn["labeled"]="labeled";Bn["unlabeled"]="unlabeled";Bn["ready_for_review"]="ready_for_review";Bn["review_request_removed"]="review_request_removed";Bn["review_requested"]="review_requested";Bn["unassigned"]="unassigned";Bn["edited"]="edited";Bn["custom_merge"]="merged"})(ZC||(ZC={}));var eS={push:"push",issues:"issues",installation:"installation",installation_repositories:"installation_repositories",pull_request:"pull_request",pull_request_review:"pull_request_review",check_run:"check_run",pull_request_review_comment:"pull_request_review_comment",issue_comment:"issue_comment",pull_request_review_thread:"pull_request_review_thread",workflow_run:"workflow_run"};var tS=(zC={},zC[eS.pull_request+"_"+ZC.open]="pr_created",zC[eS.pull_request+"_"+ZC.custom_merge]="merge",zC[eS.pull_request+"_"+ZC.synchronize]="commit",zC[eS.issue_comment+"_"+XC.created]="comment_added",zC[eS.issue_comment+"_"+XC.edited]="comment_edited",zC[eS.pull_request+"_"+ZC.labeled]="label_added",zC[eS.pull_request+"_"+ZC.unlabeled]="label_removed",zC[eS.pull_request+"_"+ZC.ready_for_review]="pr_ready_for_review",zC[eS.pull_request+"_"+ZC.closed]="pr_closed",zC[eS.pull_request+"_"+ZC.assigned]="pr_assigned",zC[eS.pull_request+"_"+ZC.reopen]="pr_reopen",zC);var rS=new Set([eS.pull_request+"_"+ZC.custom_merge]);var nS=function isANonTriggeringEvent(Bn){return rS.has(Bn)};var iS;(function(Bn){Bn["cbLeft"]="_GITSTREAM_CB_LEFT_";Bn["cbRight"]="_GITSTREAM_CB_RIGHT_";Bn["automations"]="automations";Bn["errors"]="errors";Bn["analytics"]="analytics";Bn["validatorErrors"]="validatorErrors"})(iS||(iS={}));var ew;(function(Bn){Bn["FiltersValidator"]="FiltersValidator";Bn["ActionsValidator"]="ActionsValidator";Bn["FileStructureValidator"]="FileStructureValidator";Bn["SavedWordsValidator"]="SavedWordsValidator";Bn["ContextVariableValidator"]="ContextVariableValidator"})(ew||(ew={}));var tw=function parseRegexString(Bn){if(!(Bn!=null&&Bn.startsWith("r/"))){return null}var Hn=ng(Bn);var zn=new RegExp(Hn);return zn};var rw=function isResourceExcluded(Bn,Hn,zn){var ni,Ci,ts,Ps;if(!Bn){return false}var aa=function matchPattern(Hn){var zn=tw(Hn);if(zn){return zn.test(Bn)}return Bn===Hn};var oa=zn.triggers;if(!oa){return false}var ca=(ni=(Ci=oa.include)==null?void 0:Ci[Hn])!=null?ni:[];var _a=(ts=(Ps=oa.exclude)==null?void 0:Ps[Hn])!=null?ts:[];var xa=_a==null?void 0:_a.some(aa);var Ga=ca.length>0&&!ca.some(aa);if(xa||Ga){return true}return false};var nw=function(){function RuleParser(Bn,Hn,zn,Ci,ts,aa,oa,_a){var xa=this;if(Ci===void 0){Ci=""}if(ts===void 0){ts={}}if(aa===void 0){aa=""}if(oa===void 0){oa=""}if(_a===void 0){_a=false}this.renderedRuleFile={};this.context={};this.lastParserResult={};this.errors={};this.validatorErrors={};this.webhookEvent="";this.webhookEvents={};this.externalPlugins={filters:{org:{},repo:{}}};this.validateAutomationNames=function(Bn){try{(new ni.AutomationNamesValidator).validate({yamlFile:Bn})}catch(Bn){var Hn;eg({errorName:vC.SYNTAX_ERROR,error:Bn},xa.isDebug);xa.errors=_extends({},xa.errors,(Hn={},Hn[EC.SYNTAX_ERROR]=vC.SYNTAX_ERROR,Hn))}};this.isDebug=zn;this.env=new ca.Environment(new ca.FileSystemLoader(__dirname),{autoescape:false});this.webhookEvent=Ci;this.webhookEvents=ts;this.isPlayground=_a;if(!this.isPlayground){this.externalPlugins=SC(aa,oa)}var Ga=[].concat(Object.keys(this.externalPlugins.filters.org),Object.keys(this.externalPlugins.filters.repo));var Ha=[].concat(ni.validatorsConstants.JINJA_FILTERS,Object.keys(ni.validatorsConstants.VALID_FILTERS));var so=Ps.intersection(Ga,Ha);if(so.length){throw new Kf("Overrding native filters is not allowed","Overrding native filters is not allowed, the user filter"+(so.length>1?"s":"")+" "+so.join(", ")+" conflicts")}var oo=_extends({},Ig,AC,KC);var Jo=_extends({},this.externalPlugins.filters.org,this.externalPlugins.filters.repo);Object.keys(oo).forEach((function(Bn){xa.env.addFilter(Bn,oo[Bn],yC[Bn])}));Object.keys(Jo).forEach((function(Bn){var Hn;var zn=Jo[Bn]instanceof Function?Bn.toLowerCase().includes("async"):(Hn=Jo[Bn].async)!=null?Hn:false;var ni=Jo[Bn]instanceof Function?Jo[Bn]:Jo[Bn].filter;xa.env.addFilter(Bn,CC(ni,Bn,zn),zn)}));this.context=Hn;this.ruleFileRawContent=Bn;eg({context:JSON.stringify(this.context,null,2),ruleFile:Bn},this.isDebug)}var Bn=RuleParser.prototype;Bn.render=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn){var Hn=this;var zn,ni,ts;return _regeneratorRuntime().wrap((function _callee$(Ps){while(1)switch(Ps.prev=Ps.next){case 0:if(Bn===void 0){Bn=_extends({},this.context,this.renderedRuleFile)}zn=3;ni=Bn;ts=_regeneratorRuntime().mark((function _loop(){var Bn;return _regeneratorRuntime().wrap((function _loop$(ts){while(1)switch(ts.prev=ts.next){case 0:Bn=Hn.ruleFileRawContent;ts.next=3;return new Promise((function(zn,ts){return Hn.env.renderString(Bn,ni,(function(Bn,ni){if(Bn){var Ps;eg({error:zp.FAILED_RENDER_STRING,err:Bn},Hn.isDebug);Hn.errors=_extends({},Hn.errors,(Ps={},Ps[Qf.FAILED_RENDER_STRING]=Bn.message,Ps));return ts(Bn)}try{Hn.renderedRuleFile=Ci.load(ni)}catch(Bn){var aa;eg({errorName:zp.FAILED_YAML_LOAD,error:Bn},Hn.isDebug);Hn.errors=_extends({},Hn.errors,(aa={},aa[Qf.FAILED_YAML_LOAD]=zp.FAILED_YAML_LOAD,aa))}return zn(Hn)}))}));case 3:zn-=1;ni=Xf(_extends({},Hn.context,Hn.renderedRuleFile));case 5:case"end":return ts.stop()}}),_loop)}));case 4:if(!zn){Ps.next=8;break}return Ps.delegateYield(ts(),"t0",6);case 6:Ps.next=4;break;case 8:case"end":return Ps.stop()}}),_callee,this)})));function render(Hn){return Bn.apply(this,arguments)}return render}();Bn.validateRun=function validateRun(Bn){if(!Bn){return Bn}return Bn.map((function(Bn){if(!Bn.args){return Bn}var Hn=Object.keys(Bn.args).reduce((function(Hn,zn){var ni;var Ci=Bn.args[zn];return _extends({},Hn,(ni={},ni[zn]=Ci&&Z_.includes(zn)&&typeof Ci==="string"?Ad(Ci).split(","):Ad(Bn.args[zn]),ni))}),{});return _extends({},Bn,{args:Hn})}))};Bn.calculateTriggersBasedOnMultipleWebhooks=function calculateTriggersBasedOnMultipleWebhooks(Bn,Hn,zn){var ni,Ci=this,ts;var Ps=((ni=this.renderedRuleFile.on)==null?void 0:ni.some((function(Bn){return Object.keys(Ci.webhookEvents).some((function(Hn){return tS[Hn]===Bn}))})))&&!zn;var aa;if((ts=this.renderedRuleFile[Bn][Hn])!=null&&ts.on){aa=Object.keys(this.webhookEvents).some((function(zn){return Ci.renderedRuleFile[Bn][Hn].on.includes(tS[zn])}))}return{isGlobal:Ps,automationTrigger:aa&&!zn}};Bn.shouldBeSkippedOnGlobalTrigger=function shouldBeSkippedOnGlobalTrigger(){var Bn,Hn,zn,ni;var Ci=this.renderedRuleFile.triggers;var ts=Ps.uniq([].concat(Object.keys(this.webhookEvents),[this.webhookEvent]).map((function(Bn){return tS[Bn]})));if(!Ci){return false}if(Ci.on&&!Ci.on.some((function(Bn){return ts.includes(Bn)}))){return true}return rw((Bn=(Hn=this.context)==null||(Hn=Hn.branch)==null?void 0:Hn.name)!=null?Bn:"","branch",this.renderedRuleFile)||rw((zn=(ni=this.context)==null||(ni=ni.repo)==null?void 0:ni.name)!=null?zn:"","repository",this.renderedRuleFile)};Bn.evaluateTrigger=function evaluateTrigger(Bn,Hn){var zn=this;var ni;var Ci;var ts=this.shouldBeSkippedOnGlobalTrigger();if(Object.keys(this.webhookEvents).length){var Ps=this.calculateTriggersBasedOnMultipleWebhooks(Bn,Hn,ts);ni=Ps.isGlobal;Ci=Ps.automationTrigger}else{var aa,ca;ni=((aa=this.renderedRuleFile.on)==null?void 0:aa.some((function(Bn){return tS[zn.webhookEvent]===Bn})))&&!ts;Ci=((ca=this.renderedRuleFile[Bn][Hn].on)==null?void 0:ca.includes(tS[this.webhookEvent]))&&!ts}var _a=!ts&&oa(Ci)&&oa(ni);var xa=Ci||ni||_a;return{noTriggersAtAll:_a,triggersResult:xa}};Bn.isPassed=function isPassed(Bn,Hn,zn){var ni=Object.keys(this.webhookEvents);if(!Hn&&ni.length&&ni.every(nS)){return false}return Bn&&zn};Bn.combineMetadataWithRulesResult=function combineMetadataWithRulesResult(Bn){var Hn=this;if(!this.renderedRuleFile[Bn]){return{}}return Object.keys(this.renderedRuleFile[Bn]).reduce((function(zn,ni){var Ci,ts;var Ps=Hn.renderedRuleFile[Bn][ni]["if"].map((function(Bn){return{passed:Bn}}));var aa=Ps.map((function(Bn){var Hn=Bn.passed;return Hn})).every((function(Bn){return typeof Bn==="object"?!!Object.keys(Bn||{}).length:!!Bn}));var oa=Hn.evaluateTrigger(Bn,ni),ca=oa.noTriggersAtAll,_a=oa.triggersResult;var xa=!ca;return _extends({},zn,(ts={},ts[ni]={if:Ps,run:Hn.validateRun(Hn.renderedRuleFile[Bn][ni].run),passed:Hn.isPassed(aa,xa,_a),isManagedByTriggers:xa,isTriggered:xa?_a:!((Ci=Hn.context)!=null&&(Ci=Ci.pr)!=null&&Ci.draft)},ts))}),{})};Bn.combineMetadataWithResult=function combineMetadataWithResult(){var Bn;this.lastParserResult=(Bn={},Bn[iS.errors]=_extends({},Object.keys(this.errors).length&&this.errors),Bn[iS.validatorErrors]=_extends({},Object.keys(this.validatorErrors).length&&this.validatorErrors),Bn[iS.automations]=_extends({},this.combineMetadataWithRulesResult(iS.automations)),Bn[iS.analytics]=_extends({},Object.keys(pg.filters).length&&pg.filters),Bn);return this.lastParserResult};Bn.clearParserResults=function clearParserResults(){this.renderedRuleFile={};this.ruleFileRawContent="";this.lastParserResult={}};Bn.attachAdditionalArgs=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(){var Bn,Hn,zn,Ci,ts,Ps,oa,ca;return _regeneratorRuntime().wrap((function _callee2$(_a){while(1)switch(_a.prev=_a.next){case 0:Bn=aa(this.lastParserResult);Hn=_extends({},Bn.automations);zn=0,Ci=Object.keys(Hn);case 3:if(!(zn "+Ci};var pT=function GIT_CHECKOUT(Bn){var Hn=iw(Bn);return"git checkout "+Hn};var fT=function LS_FILES(Bn){var Hn=uw(Bn);return"git ls-files "+Hn};var _T=function REV_LIST_COUNT(Bn){var Hn=iw(Bn);return"git rev-list --count HEAD ^"+Hn};var gT=function SHORTLOG(Bn){var Hn=iw(Bn);return"git shortlog "+Hn+" -s -n -e"};var AT=function GIT_AUTHOR(Bn){var Hn=Bn.refBranch,zn=Bn.baseBranch,ni=Bn.format,Ci=Bn.mergeCommitSha;var ts=iw(zn);var Ps=iw(Hn);if(Ci){return"git show -m "+Ci+" --format="+ni+" | tail -1"}return"git log "+ts+".."+Ps+" --format="+ni+" | tail -1"};var yT=function DIFF(Bn){var Hn=Bn.baseBranch,zn=Bn.refBranch,ni=Bn.file,Ci=Bn.mergeCommitSha;var ts=iw(Hn);var Ps=iw(zn);var aa=uw(ni);if(Ci){return"git show -m --format= "+Ci+" -- "+aa}return"git diff "+ts+"..."+Ps+" -- "+aa};var ET="./code";var CT={cwd:ET};var wT=function executeGitCommand(Bn,Hn){if(Hn===void 0){Hn=Kw.DEFAULT}ww("Execute: "+Bn);try{var zn="cd "+Hn+" && "+Bn;var ni=Ga.execSync(zn,_extends({},CT,{maxBuffer:500*1024*1024,stdio:"pipe"})).toString();return ni}catch(Bn){if(((Bn==null?void 0:Bn.toString())||"").includes(zw.BAD_REVISION)){console.error(vC.GIT_COMMAND_FAILED+" "+((Bn==null?void 0:Bn.message)||"unknown error"));$w(vC.GIT_COMMAND_FAILED+" "+(Bn.message||"unknown error"),EC.BAD_REVISION)}throw Bn}};var kT=function getCheckoutCommit(Bn,Hn){try{var zn=wT(nT({refBranch:Bn,baseBranch:Hn}));return zn.trim()||Hn}catch(Bn){return Hn}};var BT=function getContent(Bn,Hn){try{if(Hn===Aw){return""}var zn=wT(iT({branch:Bn,file:Hn}));return zn}catch(Bn){return""}};var NT=function getDiff(Bn,Hn,zn,ni){if(ni===void 0){ni=""}try{var Ci;var ts=zn==null||(Ci=zn.config)==null||(Ci=Ci.ignore_files)==null||(Ci=Ci.map((function(Bn){return uw(Bn,":(exclude)")})))==null?void 0:Ci.join(" ");var Ps=sT({baseBranch:Bn,refBranch:Hn,ignoreFiles:ts||"",mergeCommitSha:ni});var aa=wT(Ps);ww({diff:aa,logs:wT(aT),currBranch:wT(oT)});return{diff:aa,diffCommand:Ps}}catch(Bn){console.log("error getting diff: "+Bn);return{}}};var PT=function readRemoteFile(Bn,Hn,zn){if(zn===void 0){zn=Kw.DEFAULT}try{var ni=Uw();ni?wT(cT):wT(uT);if(zn===Kw.DEFAULT){wT(lT({branch:Hn,file:Bn}))}return ni?dc.readFileSync(CT.cwd+"/"+zn+"/"+Bn,"utf8"):dc.readFileSync(ET+"/"+zn+"/"+Bn,"utf8")}catch(Hn){if(Uw()){console.error("Error in reading file "+CT.cwd+"/"+zn+"/"+Bn+".",Hn)}return""}};var QT=function getCMFilesList(Bn,Hn){wT(pT(Bn));var zn=(Hn==null?void 0:Hn.toLowerCase())===Ew?wT(fT("*.cm")):wT(fT(".cm/*.cm"));wT(pT("-"));return zn.split("\n").filter(Boolean)};var $T=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn){var ni,Ci,ts,Ps,aa;return _regeneratorRuntime().wrap((function _callee$(oa){while(1)switch(oa.prev=oa.next){case 0:ni={orgRulesToInclude:[],orgRulesToExclude:[]};Ci=_regeneratorRuntime().mark((function _loop(){var Ci,aa;var oa,ca,_a,xa,Ga;return _regeneratorRuntime().wrap((function _loop$(Ha){while(1)switch(Ha.prev=Ha.next){case 0:oa=Ps[ts];Ha.next=3;return eT(zn,Bn[oa],oa);case 3:ca=Ha.sent;_a=(ca==null||(Ci=ca.config)==null?void 0:Ci.include_repositories)||[];xa=(ca==null||(aa=ca.config)==null?void 0:aa.ignore_repositories)||[];Ha.prev=6;if(_a.length){Ga=_a.some((function(Bn){if(ig(Hn,Bn)){ni.orgRulesToInclude.push(oa);return true}return false}));if(!Ga){ni.orgRulesToExclude.push(oa)}}xa.forEach((function(Bn){if(ig(Hn,Bn)){ni.orgRulesToExclude.push(oa)}}));Ha.next=15;break;case 11:Ha.prev=11;Ha.t0=Ha["catch"](6);Ha.next=15;return $w(Ha.t0.message,EC.SYNTAX_ERROR,zn,oa);case 15:case"end":return Ha.stop()}}),_loop,null,[[6,11]])}));ts=0,Ps=Object.keys(Bn);case 3:if(!(ts0)){Ci.next=4;break}ni=zn.reduce((function(Hn,zn){var ni;return _extends({},Hn,(ni={},ni[zn]=PT(zn,Bn),ni))}),{});return Ci.abrupt("return",ni);case 4:return Ci.abrupt("return",{});case 5:case"end":return Ci.stop()}}),_callee2)})));return function getRuleFiles(Hn,zn){return Bn.apply(this,arguments)}}();var XT=function getCommitsNumberOnBranch(Bn){return Number(wT(_T(Bn)).trim())};var ZT=function getContributorsStatistics(Bn){var Hn=wT(gT(Bn));return Hn.split("\n").reduce((function(Bn,Hn){var zn;var ni=Hn.trim().split("\t"),Ci=ni[0],ts=ni[1];return _extends({},Bn,ts&&(zn={},zn[ts]=parseInt(Ci),zn))}),{})};var yB=function getAuthorName(Bn,Hn,zn){try{var ni=wT(AT({refBranch:Hn,baseBranch:Bn,format:"%an",mergeCommitSha:zn}));var Ci=wT(AT({refBranch:Hn,baseBranch:Bn,format:"%ae",mergeCommitSha:zn}));var ts=(ni==null?void 0:ni.trim())+" <"+(Ci==null?void 0:Ci.trim())+">";ww({fullAuthorName:ts,currBranch:wT(oT)});return{fullAuthorName:ts,authorName:ni,authorEmail:Ci}}catch(Bn){console.log("error getting branch author name: "+Bn);return{}}};var BB=function isCmChanged(Bn,Hn,zn,ni){wT(uT);if((zn==null?void 0:zn.toLowerCase())===Ew){return Boolean(wT(yT({baseBranch:Hn,refBranch:Bn,file:"*.cm",mergeCommitSha:ni})))}return Boolean(wT(yT({baseBranch:Hn,refBranch:Bn,file:".cm/*.cm",mergeCommitSha:ni})))};var rF=function hasNonRuleFilesChanges(Bn,Hn,zn,ni){wT(uT);if((zn==null?void 0:zn.toLowerCase())===Ew){return Boolean(wT(yT({baseBranch:Hn,refBranch:Bn,file:":!*.cm",mergeCommitSha:ni})))}return Boolean(wT(yT({baseBranch:Hn,refBranch:Bn,file:":!.cm/*.cm",mergeCommitSha:ni})))};var eQ=function getPrConflicsCountPerFile(Bn,Hn){try{var zn=wT(rT({targetBranch:Bn,refBranch:Hn}));ww({conflicts:zn,rawCommand:rT({targetBranch:Bn,refBranch:Hn})});return(zn==null?void 0:zn.split("\n").filter(Boolean).length)||0}catch(Bn){ww("error getting pr conflicts: : "+Bn);return 0}};var tQ=function getCommitMessages(Bn,Hn,zn){return wT(zn?"git show -m "+zn+" --format=%B --no-patch":"git log "+ow(Bn)+".."+ow(Hn)+" --format=%B").split("\n").filter((function(Bn){return Bn.trim()!==""}))};var rQ=function saveResultsInCache(Bn){try{dc.writeFileSync(ET+"/cache.json",JSON.stringify(Bn))}catch(Bn){console.log("error saving cache",Bn)}};var nQ=function loadCacheResults(){try{var Bn=dc.readFileSync(ET+"/cache.json").toString();return JSON.parse(Bn)}catch(Bn){console.warn("error loading from cache",Bn);return{}}};var iQ=function buildPrFiles(Bn,Hn){var zn=Hn.reduce((function(Hn,zn){var ni,Ci,ts;if(zn===Aw){return Hn}return _extends({},Hn,(ts={},ts[zn]=_extends({},{blame:((ni=Bn.ds_blame)==null?void 0:ni[zn])||""},{activity:((Ci=Bn.ds_activity)==null?void 0:Ci[zn])||""}),ts))}),{});return Object.keys(zn).reduce((function(Bn,Hn){var ni;if(!Object.keys(zn[Hn]).length){return Bn}return _extends({},Bn,(ni={},ni[Hn]=zn[Hn],ni))}),{})};var sQ=function getExpertReviewer(Bn,Hn,zn){var ni=zn.owner,Ci=zn.pullRequestNumber,ts=zn.branch,Ps=zn.triggeredBy;var aa={org:ni,repo:zn.repo,pullRequestNumber:Ci,branch:ts,triggeredBy:Ps};var oa=iQ(Bn,Hn);return{merge_dict:Bn.git_to_provider_user,pr_files:oa,context:aa}};var aQ=function generatePrUrl(Bn,Hn){var zn;var ni=Hn.owner,Ci=Hn.repo,ts=Hn.pullRequestNumber;return((zn=Bn.repo)==null?void 0:zn.provider)===vw.GITHUB?vw.GITHUB+".com/"+ni+"/"+Ci+"/pull/"+ts:vw.GITLAB+".com/"+ni+"/"+Ci+"/-/merge_requests/"+ts};var oQ="action_filter";var uQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa;return _regeneratorRuntime().wrap((function _callee$(ca){while(1)switch(ca.prev=ca.next){case 0:ca.prev=0;if(Bn.analytics_url){ca.next=3;break}return ca.abrupt("return");case 3:oa={userId:((Ci=ni.repo)==null?void 0:Ci.provider)+"-"+((ts=ni.repo)==null?void 0:ts.pr_author),event:oQ,properties:_extends({filter_name:Hn},zn,{repo:Bn.repo,author:(Ps=ni.repo)==null?void 0:Ps.pr_author,git_org_name:Bn.owner,git_provider:(aa=ni.repo)==null?void 0:aa.provider,pr_url:aQ(ni,Bn),is_org_level:Bn.hasCmRepo,trigger_id:Bn.trigger_id})};ca.next=6;return so({method:"post",url:Bn.analytics_url,data:_extends({},oa,{type:"onCMFilterUse"}),headers:{"Content-type":"application/json"}});case 6:ca.next=13;break;case 8:ca.prev=8;ca.t0=ca["catch"](0);if(!(ca.t0 instanceof Error)){ca.next=13;break}ca.next=13;return Tw("warn","Unable to call segment for pr "+(Bn==null?void 0:Bn.owner)+"/"+(Bn==null?void 0:Bn.repo)+"/"+(Bn==null?void 0:Bn.pullRequestNumber),Bn,{error:ca.t0==null?void 0:ca.t0.message},true);case 13:case"end":return ca.stop()}}),_callee,null,[[0,8]])})));return function sendSegmentEvent(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}();var lQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn){var ni;return _regeneratorRuntime().wrap((function _callee$(Ci){while(1)switch(Ci.prev=Ci.next){case 0:ni=Object.keys(Bn||{}).map((function(ni){return uQ(Hn,ni,Bn[ni],zn)}));Ci.next=3;return Promise.all(ni);case 3:case"end":return Ci.stop()}}),_callee)})));return function filterAnalyticsHandler(Hn,zn,ni){return Bn.apply(this,arguments)}}();var pQ=function fromBase64String(Bn){return Buffer.from(Bn,"base64").toString("utf-8")};var fQ=function toBase64String(Bn){return Buffer.from(Bn).toString("base64")};var dQ=function decodeBase64(Bn){if(Bn.match(/^base64:*/g)){var Hn=Bn.split("base64:")[1];return pQ(Hn)}return Bn};var hQ=function convertRuleFileToStringSafe(Bn){var Hn={"pr.description":"pr.description | nl2br | dump | safe"};return Object.keys(Hn).reduce((function(Bn,zn){return Bn.replaceAll(zn,Hn[zn])}),Bn)};var mQ=function convertPRContextFromBase64(Bn){var Hn,zn,ni,Ci,ts,Ps;return _extends({},Bn,{checks:(Hn=Bn.checks)==null?void 0:Hn.map((function(Bn){return _extends({},Bn,{name:pQ(Bn.name)})})),description:pQ(Bn.description),general_comments:(zn=Bn.general_comments)==null?void 0:zn.map((function(Bn){return _extends({},Bn,{content:pQ(Bn.content)})})),line_comments:(ni=Bn.line_comments)==null?void 0:ni.map((function(Bn){return _extends({},Bn,{content:pQ(Bn.content)})})),comments:(Ci=Bn.comments)==null?void 0:Ci.map((function(Bn){return _extends({},Bn,{content:pQ(Bn.content)})})),reviews:(ts=Bn.reviews)==null?void 0:ts.map((function(Bn){var Hn;return _extends({},Bn,{content:pQ(Bn.content),conversations:(Hn=Bn.conversations)==null?void 0:Hn.map((function(Bn){return _extends({},Bn,{content:pQ(Bn.content)})}))})})),conversations:(Ps=Bn.conversations)==null?void 0:Ps.map((function(Bn){return _extends({},Bn,{content:pQ(Bn.content)})}))})};var _Q=function replaceBranchUpstream(Bn){if(Bn===void 0){Bn=""}return Bn.replace(/^upstream\//,"")};var gQ=function GIT_BLAME(Bn){var Hn=Bn.branch,zn=Bn.file;var ni=iw(Hn);var Ci=uw(zn);return"git blame "+ni+" --line-porcelain -- "+Ci};var AQ="| grep '^author-mail\\|^author ' | sed '$!N;s/\\n/ /'";var yQ="| sed -n '/^author /,/^author-mail /p'";var vQ=function COMMITS_DATE_BY_AUTHOR(Bn){var Hn=Bn.branch,zn=Bn.author;var ni=iw(Hn);var Ci=iw(zn);return"git log "+ni+" --author="+Ci+" --format='%as' | sort | uniq"};var EQ=function GIT_ACTIVITY(Bn){var Hn=Bn.branch,zn=Bn.file,ni=Bn.since;var Ci=iw(Hn);var ts=uw(zn);return"git log --no-merges "+Ci+" --since='"+ni+"' --pretty=tformat:'%an <%ae>,%ad' --numstat -- "+ts};var bQ=function FIRST_COMMIT(Bn){var Hn=Bn.branch;var zn=iw(Hn);return"git rev-list --max-parents=0 "+zn+' --format="%cs"'};var DQ=function groupByWeek(Bn){var Hn=Bn.reduce((function(Bn,Hn,zn){var ni=zn>0&&Bn.find((function(Bn){var zn=Bn.git_user,ni=Bn.week;return zn===Hn.git_user&&ni===Hn.week}));if(ni){ni.changes+=Hn.changes;ni.week=Hn.week}else{Bn.push({git_user:Hn.git_user,week:Hn.week,changes:Hn.changes})}return Bn}),[]);return Hn.reduce((function(Bn,Hn){var zn;var ni=Hn.git_user,Ci=Hn.week,ts=Hn.changes;Bn[ni]=Bn[ni]||{};Bn[ni]=_extends({},Bn[ni],(zn={},zn["week_"+Ci]=ts,zn));return _extends({},Bn)}),{})};var CQ=function calculateLinesPercentage(Bn,Hn){return Bn&&Hn?Bn>=Hn?100:Bn/Hn*100:0};var SQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa;return _regeneratorRuntime().wrap((function _callee$(ca){while(1)switch(ca.prev=ca.next){case 0:if(Bn){ca.next=6;break}ni=zn.owner,Ci=zn.repo,ts=zn.pullRequestNumber;ww("Couldn't find git dates for author: "+Hn.branch.author+", base branch: "+Hn.branch.base+", head branch: "+Hn.branch.name);ca.next=5;return Tw("info",Ww.NO_DATA_FROM_GIT+" "+ni+"/"+Ci+"/"+ts,zn,{author:Hn.branch.author,baseBranch:Hn.branch.base,headBranch:Hn.branch.name},_w);case 5:return ca.abrupt("return",0);case 6:Ps=new Date;aa=new Date(Bn);oa=aa.getTime()-Ps.getTime();return ca.abrupt("return",Math.abs(Math.ceil(oa/(1e3*60*60*24))));case 10:case"end":return ca.stop()}}),_callee)})));return function formatDateToDays(Hn,zn,ni){return Bn.apply(this,arguments)}}();var xQ=function getAllAuthorsOfFile(Bn,Hn){try{var zn;var ni=gQ({file:Bn,branch:Hn})+" "+AQ;var Ci=wT(ni);var ts=(zn=[].concat(Array.from(new Set(Ci==null?void 0:Ci.replaceAll("author ","").replaceAll("author-mail ","").split("\n")))))==null?void 0:zn.filter(Boolean);return ts}catch(Hn){console.log(Yw.GETTING_ALL_AUTHORS+" "+Bn+". "+Hn);return[]}};var wQ=function getAuthorLines(Bn,Hn,zn){try{var ni;var Ci="author "+(Hn==null||(ni=Hn.substring(0,Hn.indexOf("<")-1))==null?void 0:ni.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))+"\\nauthor-mail "+(Hn==null?void 0:Hn.substring(Hn.indexOf("<"),Hn.indexOf(">")+1).replace("+","\\+"));var ts=new RegExp(Ci,"g");ww("formatted author: "+Ci+". matches: "+(Bn.match(ts)||[]).length);return(Bn.match(ts)||[]).length}catch(Bn){console.log(Yw.GETTING_AUTHOR_LINES+" "+zn+". "+Bn);return 0}};var TQ=function getGitBlameString(Bn,Hn){try{var zn=gQ({branch:Hn,file:Bn})+" "+yQ;var ni=wT(zn);return ni}catch(Hn){console.log(Yw.GETTING_GIT_BLAME+" "+Bn+". "+Hn);return"0"}};var kQ=function calculateStatisticsForBlame(Bn,Hn,zn,ni){var Ci=wQ(Bn,Hn,zn);var ts=FQ(zn,ni);ww("calculateStatisticsForBlame: "+Ci+", "+ts);return{authorLines:Ci,allLinesCount:ts}};var IQ=function readRemoteFileAndSplit(Bn,Hn){var zn;return(zn=PT(Bn,Hn))==null?void 0:zn.split(/\r\n|\r|\n/)};var BQ=function isLastRowEmpty(Bn,Hn){var zn=IQ(Bn,Hn);ww("all rows: "+zn.length+". isEmpty: "+((zn==null?void 0:zn[(zn==null?void 0:zn.length)-1])===""));return(zn==null?void 0:zn[(zn==null?void 0:zn.length)-1])===""};var FQ=function getCodeLinesCount(Bn,Hn){var zn,ni;return BQ(Bn,Hn)?((zn=IQ(Bn,Hn))==null?void 0:zn.length)-1:(ni=IQ(Bn,Hn))==null?void 0:ni.length};var NQ=function splitDsAndBlameObjects(Bn){var Hn=aa(Bn);var zn=Object.keys(Hn).reduce((function(Bn,zn){var ni;return _extends({},Bn,(ni={},ni[zn]=Hn[zn].dsBlame,ni))}),{});Object.keys(Hn).forEach((function(Bn){if(Hn[Bn].dsBlame){delete Hn[Bn].dsBlame}}));return{formattedBlame:Hn,dsBlame:zn}};var PQ=function splitDsAndActivity(Bn){var Hn=aa(Bn);var zn=Object.keys(Hn).reduce((function(Bn,zn){var ni;return _extends({},Bn,(ni={},ni[zn]=Hn[zn].dsActivity,ni))}),{});Object.keys(Hn).forEach((function(Bn){if(Hn[Bn].dsActivity){delete Hn[Bn].dsActivity}}));return{formattedActivity:Hn,dsActivity:zn}};var OQ=function commitsDateByAuthor(Bn,Hn){var zn;return(zn=wT(vQ({author:Bn,branch:Hn})))==null||(zn=zn.split("\n"))==null?void 0:zn.filter(Boolean)};var RQ=function buildTempActivity(Bn){var Hn=[];for(var zn=0;zn1&&ni.prevResults.length<=zn.length){ni={author:Hn,prevResults:zn}}}))}}catch(Bn){ww("Failed getting the right author. Error: "+Bn)}return ni};var UQ=function matchByEmail(Bn,Hn,zn){var ni,Ci;if(Bn===void 0){Bn=""}if(Hn===void 0){Hn=""}if(zn===void 0){zn=""}if(!Bn||typeof Bn!=="string"){return null}var ts=Bn.includes("@")?Bn.split("@")[0]:Bn;ts=(ni=ts)!=null&&ni.includes("+")?ts.split("+")[1]:ts;ts=ts.replace(/\./g,"");return ts.includes(zn)||ts.includes(Hn)||((Ci=Hn)==null?void 0:Ci.includes(ts))||zn===ts};var GQ=function matchByName(Bn,Hn){if(Bn===void 0){Bn=""}if(Hn===void 0){Hn=""}if(!Hn||!Bn||typeof Bn!=="string"||typeof Hn!=="string"){return false}var zn=Hn.trim().toLowerCase();var ni=Bn.trim().toLowerCase();return ni==null?void 0:ni.includes(zn)};var qQ=function formatProviderContributors(Bn){return Bn.map((function(Bn){var Hn=Bn.login,zn=Bn.name;return{login:Hn,name:zn}})).filter((function(Bn){var Hn=Bn.login,zn=Bn.name;return Hn||zn}))};var VQ=function formatGitContributors(Bn){return Object.keys(Bn).map((function(Hn){var zn=Hn.split(" ");return{email:zn.pop(),login:zn.join(""),name:zn[0],lastName:zn[1],fullName:zn.join(" "),reversedName:(zn[1]||"")+zn[0],contributor:Hn,contributions:Bn[Hn]}}))};var HQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn){var zn,ni,Ci,ts,Ps;return _regeneratorRuntime().wrap((function _callee$(aa){while(1)switch(aa.prev=aa.next){case 0:aa.prev=0;ni=(Bn==null||(zn=Bn.config)==null||(zn=zn.user_mapping)==null?void 0:zn.reduce((function(Bn,Hn){var zn,ni;var Ci=Object.keys(Hn)[0];var ts=(zn=Hn[Ci])!=null?zn:Ci;return _extends({},Bn,(ni={},ni[Ci]=ts,ni))}),{}))||{};return aa.abrupt("return",ni);case 5:aa.prev=5;aa.t0=aa["catch"](0);Ci=Hn.owner,ts=Hn.repo,Ps=Hn.pullRequestNumber;aa.next=10;return Tw("info","Failed to parse user_mapping for pr "+Ci+"/"+ts+"/"+Ps,Hn,{error:aa.t0==null?void 0:aa.t0.message},true);case 10:console.log("Failed to parse user_mapping: ",aa.t0);return aa.abrupt("return",{});case 12:case"end":return aa.stop()}}),_callee,null,[[0,5]])})));return function getUserMappingFromConfig(Hn,zn){return Bn.apply(this,arguments)}}();var $Q=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca,_a;return _regeneratorRuntime().wrap((function _callee2$(xa){while(1)switch(xa.prev=xa.next){case 0:xa.prev=0;ni=qQ(Bn);Ci=VQ(Hn);ts={};Ps=[];Ci.forEach((function(Bn){var Hn=ni.find((function(Hn){var zn=Hn.name,ni=Hn.login;return UQ(Bn.email,ni,zn)||GQ(Bn.login,ni)}));if(Bn.contributor&&Hn){ts[Bn.contributor]=Hn.login}else{Ps.push(Bn)}}));aa=[].concat(Ps);Ps=[];aa.forEach((function(Bn){var Hn=ni.find((function(Hn){var zn=Hn.name;return GQ(Bn.fullName,zn)||GQ(Bn.reversedName,zn)}));if(Bn.contributor&&Hn){ts[Bn.contributor]=Hn.login}else{Ps.push(Bn)}}));Ps.forEach((function(Bn){if(Bn.contributor){ts[Bn.contributor]=Bn.contributor}}));return xa.abrupt("return",ts);case 13:xa.prev=13;xa.t0=xa["catch"](0);oa=zn.owner,ca=zn.repo,_a=zn.pullRequestNumber;xa.next=18;return Tw("info","Failed to match contributors for pr: "+oa+"/"+ca+"/"+_a,zn,{error:xa.t0==null?void 0:xa.t0.message},true);case 18:console.error("Failed to match contributors",xa.t0);return xa.abrupt("return",{});case 20:case"end":return xa.stop()}}),_callee2,null,[[0,13]])})));return function matchContributorsFromProviderData(Hn,zn,ni){return Bn.apply(this,arguments)}}();var JQ=function mergeResults(Bn,Hn){return Object.keys(Hn).reduce((function(zn,ni){var Ci,ts;return _extends({},zn,(ts={},ts[ni]=(Ci=Bn[ni])!=null?Ci:Hn[ni],ts))}),{})};var YQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa;return _regeneratorRuntime().wrap((function _callee3$(ca){while(1)switch(ca.prev=ca.next){case 0:Ci=zn.owner,ts=zn.repo,Ps=zn.pullRequestNumber;if(!(!Bn||!Hn)){ca.next=4;break}console.error("matchContributors failed: not provided data");return ca.abrupt("return",{});case 4:ca.next=6;return $Q(Bn,Hn,zn);case 6:aa=ca.sent;ca.next=9;return HQ(ni,zn);case 9:oa=ca.sent;if(!Object.keys(oa).length){ca.next=14;break}ca.next=13;return Tw("info","got contributors from config for pr: "+Ci+"/"+ts+"/"+Ps,zn,{userMappingFromConfig:oa},true);case 13:return ca.abrupt("return",JQ(oa,aa));case 14:return ca.abrupt("return",aa);case 15:case"end":return ca.stop()}}),_callee3)})));return function matchContributors(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}();var WQ=function filteredOutCMFilesFunc(Bn){var Hn=Bn.to;return yw.every((function(Bn){return!Hn.match(Bn)}))};var KQ=function formatFilesToSourceFiles(Bn,Hn,zn){return zn.map((function(zn){var ni=zn.from,Ci=zn.to,ts=zn.chunks;return{original_file:ni===Aw?"":ni,new_file:Ci,diff:ts==null?void 0:ts.reduce((function(Bn,Hn){var zn=Hn.changes,ni=Hn.content;return Bn+ni+"\n"+(zn==null?void 0:zn.map((function(Bn){var Hn=Bn.content;return Hn})).join("\n"))}),""),original_content:BT(kT(Hn,Bn),ni),new_content:BT(Hn,Ci)}}))};var zQ=function extractMetadataFromFiles(Bn){return Bn.map((function(Bn){var Hn=Bn.to,zn=Bn.from,ni=Bn.deletions,Ci=Bn.additions;return{original_file:zn===Aw?"":zn,new_file:Hn,file:Hn!==Aw?Hn:zn,deletions:ni,additions:Ci}}))};var XQ=function getDiffSize(Bn){return(Bn==null?void 0:Bn.reduce((function(Bn,Hn){var zn=Hn.additions,ni=Hn.deletions;return Bn+zn+ni}),0))||0};var ZQ=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn){var zn,ni,Ci,ts,Ps,aa,oa;return _regeneratorRuntime().wrap((function _callee$(ca){while(1)switch(ca.prev=ca.next){case 0:ca.prev=0;ni=MQ(Bn.files,Bn.branch.base);Ci=NQ(ni),ts=Ci.formattedBlame,Ps=Ci.dsBlame;ca.next=5;return SQ(QQ(Bn.branch.base),Bn,Hn);case 5:aa=ca.sent;ca.next=8;return SQ((zn=OQ(Bn.branch.author,Bn.branch.base))==null?void 0:zn[0],Bn,Hn);case 8:oa=ca.sent;return ca.abrupt("return",{age:aa,author_age:oa,blame:ts,ds_blame:Ps});case 12:ca.prev=12;ca.t0=ca["catch"](0);console.error("Error extracting blame: "+ca.t0.message);ca.next=17;return $w(vC.FAILED_TO_GET_BLAME_CONTEXT,EC.FAILED_TO_GET_BLAME_CONTEXT,Hn,"",vC.FAILED_TO_GET_BLAME_CONTEXT+": "+ca.t0.message);case 17:return ca.abrupt("return",{});case 18:case"end":return ca.stop()}}),_callee,null,[[0,12]])})));return function contributersStatContext(Hn,zn){return Bn.apply(this,arguments)}}();var Pj=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(Bn){var Hn,zn,ni,Ci;return _regeneratorRuntime().wrap((function _callee2$(ts){while(1)switch(ts.prev=ts.next){case 0:ts.prev=0;Hn=Bn.files.reduce((function(Hn,zn){var ni;if(zn===Aw){return Hn}var Ci=LQ(Bn.branch.base,Jw,zn),ts=Ci.dsActivity,Ps=Ci.groupByWeek;return _extends({},Hn,(ni={},ni[zn]=_extends({},Ps,{dsActivity:ts}),ni))}),{});zn=PQ(Hn),ni=zn.formattedActivity,Ci=zn.dsActivity;return ts.abrupt("return",{git_activity:ni,ds_activity:Ci});case 6:ts.prev=6;ts.t0=ts["catch"](0);console.error("Error extrating activity: "+ts.t0.message);ts.next=11;return $w(vC.FAILED_TO_GET_ACTIVITY_CONTEXT,EC.FAILED_TO_GET_ACTIVITY_CONTEXT,Bn.payload,"",vC.FAILED_TO_GET_ACTIVITY_CONTEXT+": "+ts.t0.message);case 11:return ts.abrupt("return",{});case 12:case"end":return ts.stop()}}),_callee2,null,[[0,6]])})));return function contributersActivityContext(Hn){return Bn.apply(this,arguments)}}();var eU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(Bn,Hn,zn,ni){var Ci;var ts,Ps,aa,oa,ca;return _regeneratorRuntime().wrap((function _callee3$(_a){while(1)switch(_a.prev=_a.next){case 0:ts=ni.owner,Ps=ni.repo,aa=ni.pullRequestNumber;oa=Up(Bn);if(Hn){oa=(ca=oa)==null?void 0:ca.filter(WQ)}if((Ci=oa)!=null&&Ci.length){_a.next=6;break}_a.next=6;return Tw("warn","No files changed in rules-engine context for pr: "+ts+"/"+Ps+"/"+aa,ni,{diffCommand:zn},Hn);case 6:return _a.abrupt("return",oa);case 7:case"end":return _a.stop()}}),_callee3)})));return function filterOutFiles(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}();var tU=function getTheRightGitAuthor(Bn,Hn){try{var zn=jQ(Bn,Hn);if(zn.author){var ni,Ci;var ts=((ni=zn.author)==null?void 0:ni.split("<")[0].replace(/\s*$/,""))+"\n";var Ps="<"+(zn==null||(Ci=zn.author)==null?void 0:Ci.split("<")[1]);return{gitName:ts,gitEmail:Ps,fullName:zn.author}}return zn}catch(Bn){ww("Failed getting the right author. Error: "+Bn);return{}}};var rU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(Bn,Hn,zn,ni,Ci,ts){var Ps,aa,oa,ca,_a,xa,Ga,Ha,so,oo,Jo,tc,dc,Fc,Jc,Dp,kp,Qp,Up,qp,Vp,Jp,Wp,zp;return _regeneratorRuntime().wrap((function _callee4$(Qf){while(1)switch(Qf.prev=Qf.next){case 0:if(ts===void 0){ts=false}Ps=zn.owner,aa=zn.repo,oa=zn.pullRequestNumber,ca=zn.visibility,_a=zn.mergeCommitSha;Qf.prev=2;Qf.next=5;return eT(zn,ni,Ci);case 5:Ha=Qf.sent;so=NT(Bn,Hn,Ha,_a),oo=so.diff,Jo=so.diffCommand;Qf.next=9;return eU(oo,ts,Jo,zn);case 9:tc=Qf.sent;dc=XT(Bn);Fc=ZT(Bn);Jc=yB(Bn,Hn,_a),Dp=Jc.fullAuthorName,kp=Jc.authorName,Qp=Jc.authorEmail;Up={branch:{name:Hn,base:Bn,author:Dp,author_name:kp,author_email:Qp,diff:{size:XQ(tc),files_metadata:zQ(tc)},num_of_commits:dc,commits:{messages:tQ(Bn,Hn,_a)}},source:{diff:{files:KQ(Bn,Hn,tc)}},repo:{name:aa,contributors:Fc,owner:Ps,visibility:ca},files:tc.map((function(Bn){var Hn=Bn.to;return Hn})),pr:_extends({},mQ(zn.prContext),{repo:aa})};Up.pr=_extends({},Up.pr,{conflicted_files_count:eQ(Up.pr.target,Up.branch.name)});Qf.next=17;return YQ(Up.pr.contributors,Up.repo.contributors,zn,Ha);case 17:qp=Qf.sent;Vp=tU(Up,qp);if(Object.keys(Vp).length){Up.branch.author=Vp.fullName;Up.branch.author_name=Vp.gitName;Up.branch.author_email=Vp.gitEmail}ww("context.branch: "+JSON.stringify(Up.branch,null,2));Qf.next=23;return ZQ(Up,zn);case 23:Jp=Qf.sent;Qf.next=26;return Pj(Up);case 26:Wp=Qf.sent;Up.repo=_extends({},Up.repo,{provider:zn.source,git_to_provider_user:qp},Jp,Wp,{pr_author:(xa=Up.pr)==null?void 0:xa.author});ww("context.repo: "+JSON.stringify(Up.repo,null,2));zp=fQ(JSON.stringify({context:{repo:Up.repo,files:Up.files,branch:Up.branch,pr:{contributors:(Ga=Up.pr)==null?void 0:Ga.contributors}}}));Qf.next=32;return Tw("info","rules-engine context for pr: "+Ps+"/"+aa+"/"+oa,zn,{reducedContext:zp,diffCommand:Jo},_w);case 32:return Qf.abrupt("return",Up);case 35:Qf.prev=35;Qf.t0=Qf["catch"](2);console.error("Failed to get PR context: "+Qf.t0.message);Qf.next=40;return Tw("error",vC.FAILED_TO_GET_CONTEXT,zn,{error:Qf.t0==null?void 0:Qf.t0.message,ruleFile:Ci},true);case 40:Qf.next=42;return $w(vC.FAILED_TO_GET_CONTEXT,EC.FAILED_TO_GET_CONTEXT,zn,Ci);case 42:return Qf.abrupt("return",{});case 43:case"end":return Qf.stop()}}),_callee4,null,[[2,35]])})));return function getContext(Hn,zn,ni,Ci,ts,Ps){return Bn.apply(this,arguments)}}();var nU=/^.*#.*$/gm;var sU=/^\s*\n/gm;var aU=/-.*action( )*:.*/gi;var oU=/-.*action.*: /gi;var uU="automations:";var cU=/{[\s]+{|}[\s]+}/gi;var lU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee$(ni){while(1)switch(ni.prev=ni.next){case 0:if(Bn.includes(uU)){ni.next=3;break}ni.next=3;return $w(vC.MISSING_KEYWORD,EC.MISSING_KEYWORD,zn,Hn);case 3:case"end":return ni.stop()}}),_callee)})));return function validateKeyword(Hn,zn,ni){return Bn.apply(this,arguments)}}();var pU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(Bn,Hn,zn){var Ci;var ts,Ps;return _regeneratorRuntime().wrap((function _callee2$(aa){while(1)switch(aa.prev=aa.next){case 0:ts=Object.values(ni.validatorsConstants.SUPPORTED_ACTIONS_BY_PROVIDER[(Ci=zn.source)!=null?Ci:""]||ni.validatorsConstants.SUPPORTED_ACTIONS_BY_PROVIDER["default"]);Ps=Bn.filter((function(Bn){return!ts.includes(Bn)}));if(!Ps.length){aa.next=5;break}aa.next=5;return $w("The following actions are not supported: "+Ps.map((function(Bn){return"`"+Bn+"`"})).join(", ")+" [Supported actions](https://docs.gitstream.cm/automation-actions/)",EC.UNSUPPORTED_ACTION,zn,Hn);case 5:case"end":return aa.stop()}}),_callee2)})));return function validateActions(Hn,zn,ni){return Bn.apply(this,arguments)}}();var dU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee3$(ni){while(1)switch(ni.prev=ni.next){case 0:if(!Bn.match(cU)){ni.next=3;break}ni.next=3;return $w(vC.MALFORMED_EXPRESSION,EC.MALFORMED_EXPRESSION,zn,Hn);case 3:case"end":return ni.stop()}}),_callee3)})));return function validateExpressions(Hn,zn,ni){return Bn.apply(this,arguments)}}();var hU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee5(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee5$(Ci){while(1)switch(Ci.prev=Ci.next){case 0:Bn.forEach(function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(Bn){var Ci,ts,Ps,aa,oa;return _regeneratorRuntime().wrap((function _callee4$(ca){while(1)switch(ca.prev=ca.next){case 0:Ci=Bn.action,ts=Bn.args;Ps=Object.keys(ts||{});aa=function requiredArgsExists(Bn){return Ps.includes(Bn)};if(ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci]){ca.next=5;break}return ca.abrupt("return");case 5:oa=ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].all?!ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].args.every(aa):!ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].args.some(aa);if(!oa){ca.next=9;break}ca.next=9;return $w("Missing required args for action: `"+Ci+"`: ["+ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].args.filter((function(Bn){return!Ps.includes(Bn)})).map((function(Bn){return""+Bn})).join(", ")+"]",EC.MISSING_REQUIRED_FIELDS,zn,Hn);case 9:case"end":return ca.stop()}}),_callee4)})));return function(Hn){return Bn.apply(this,arguments)}}());case 1:case"end":return Ci.stop()}}),_callee5)})));return function validateRequiredArgs(Hn,zn,ni){return Bn.apply(this,arguments)}}();var mU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee7(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee7$(Ci){while(1)switch(Ci.prev=Ci.next){case 0:return Ci.abrupt("return",Bn.forEach(function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee6(Bn){var Ci,ts,Ps;return _regeneratorRuntime().wrap((function _callee6$(aa){while(1)switch(aa.prev=aa.next){case 0:Ci=Bn.action,ts=Bn.args;Ps=Object.keys(ts||{}).filter((function(Bn){var Hn;return!((Hn=ni.validatorsConstants.SUPPORTED_ARGUMENTS_BY_ACTION[Ci])!=null&&Hn.includes(Bn))}));if(!(Ps!=null&&Ps.length)){aa.next=5;break}aa.next=5;return $w("These arguments are not supported for `"+Ci+"`: ["+Ps.map((function(Bn){return""+Bn})).join(", ")+"]",EC.UNSUPPORTED_ARGUMENT,zn,Hn);case 5:case"end":return aa.stop()}}),_callee6)})));return function(Hn){return Bn.apply(this,arguments)}}()));case 1:case"end":return Ci.stop()}}),_callee7)})));return function validateSupportedArgs(Hn,zn,ni){return Bn.apply(this,arguments)}}();var _U=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee8(Bn,Hn,zn){var ni,Ci;return _regeneratorRuntime().wrap((function _callee8$(ts){while(1)switch(ts.prev=ts.next){case 0:ts.prev=0;ni=Zw(Bn);Ci=Object.values(ni.automations).flatMap((function(Bn){var Hn=Bn.run;return Hn}));ts.next=5;return mU(Ci,Hn,zn);case 5:ts.next=7;return hU(Ci,Hn,zn);case 7:ts.next=13;break;case 9:ts.prev=9;ts.t0=ts["catch"](0);ts.next=13;return $w(ts.t0,EC.SYNTAX_ERROR,zn,Hn);case 13:case"end":return ts.stop()}}),_callee8,null,[[0,9]])})));return function validateArgs(Hn,zn,ni){return Bn.apply(this,arguments)}}();var gU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee9(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee9$(Ci){while(1)switch(Ci.prev=Ci.next){case 0:Ci.prev=0;(new ni.SavedWordsValidator).validate({yamlFile:Bn});Ci.next=8;break;case 4:Ci.prev=4;Ci.t0=Ci["catch"](0);Ci.next=8;return $w(Ci.t0,EC.SYNTAX_ERROR,zn,Hn);case 8:case"end":return Ci.stop()}}),_callee9,null,[[0,4]])})));return function validateSavedWords(Hn,zn,ni){return Bn.apply(this,arguments)}}();var AU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee10(Bn,Hn,zn){return _regeneratorRuntime().wrap((function _callee10$(Ci){while(1)switch(Ci.prev=Ci.next){case 0:Ci.prev=0;(new ni.AutomationNamesValidator).validate({yamlFile:Bn});Ci.next=8;break;case 4:Ci.prev=4;Ci.t0=Ci["catch"](0);Ci.next=8;return $w(Ci.t0,EC.SYNTAX_ERROR,zn,Hn);case 8:case"end":return Ci.stop()}}),_callee10,null,[[0,4]])})));return function validateAutomationNames(Hn,zn,ni){return Bn.apply(this,arguments)}}();var yU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee11(Bn,Hn,zn){var ni;var Ci,ts;return _regeneratorRuntime().wrap((function _callee11$(Ps){while(1)switch(Ps.prev=Ps.next){case 0:Ci=Bn.replace(nU,"").replace(sU,"");Ps.next=3;return lU(Ci,Hn,zn);case 3:Ps.next=5;return dU(Ci,Hn,zn);case 5:ts=((ni=Ci.match(aU))==null?void 0:ni.map((function(Bn){return Bn.replace(oU,"").trim()})))||[];Ps.next=8;return pU(ts,Hn,zn);case 8:Ps.next=10;return _U(Ci,Hn,zn);case 10:Ps.next=12;return gU(Bn,Hn,zn);case 12:Ps.next=14;return AU(Bn,Hn,zn);case 14:case"end":return Ps.stop()}}),_callee11)})));return function validateRuleFile(Hn,zn,ni){return Bn.apply(this,arguments)}}();var vU=["ds_blame","ds_activity"];var EU="plugins";var bU=Jc.join(".cm",EU);var DU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(Bn,Hn,zn){var ni,Ci,ts,Ps;return _regeneratorRuntime().wrap((function _callee$(aa){while(1)switch(aa.prev=aa.next){case 0:if(Bn){aa.next=2;break}return aa.abrupt("return");case 2:ni=Object.keys(Bn).filter((function(Hn){return Bn[Hn].passed}));Ci=ni.filter((function(Hn){return Bn[Hn].isManagedByTriggers})).length;ts=Ci>0;Ps=Object.keys(Bn).length;aa.next=8;return Tw("info",ni.length+" out of "+Ps+" automations have passed for repo "+Hn,zn,{passedAutomations:ni.length,numOfManagedByTriggers:Ci,passedAutomationNames:ni,totalAutomations:Ps},ts);case 8:case"end":return aa.stop()}}),_callee)})));return function reportAutomationsUsage(Hn,zn,ni){return Bn.apply(this,arguments)}}();var CU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee2(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa,ca,_a,xa,Ga;return _regeneratorRuntime().wrap((function _callee2$(Ha){while(1)switch(Ha.prev=Ha.next){case 0:Ci=zn.repo,ts=zn.webhookEventName,Ps=zn.webhookEventNames;Ha.prev=1;Ha.next=4;return yU(Bn,ni,zn);case 4:aa=Uw();oa=new nw(Bn,Hn,_w,ts,Ps,Jc.resolve(process.cwd(),CT.cwd,Kw.DEFAULT,bU),Jc.resolve(process.cwd(),CT.cwd,Kw.CM,EU),aa);Ha.next=8;return oa.parseStreams();case 8:ca=Ha.sent;Ha.next=11;return DU(ca==null?void 0:ca.automations,Ci,zn);case 11:return Ha.abrupt("return",ca);case 14:Ha.prev=14;Ha.t0=Ha["catch"](1);_a=zn.owner,xa=zn.repo,Ga=zn.pullRequestNumber;console.error("Failed to parse cm file",{ruleFile:ni,error:Ha.t0.message});Ha.next=20;return Tw("error",vC.FAILED_TO_PARSE_CM+" in pr "+_a+"/"+xa+"/"+Ga,zn,{error:Ha.t0==null?void 0:Ha.t0.message,rules:Bn,ruleFile:ni});case 20:Ha.next=22;return $w(Ha.t0,EC.SYNTAX_ERROR,zn,ni);case 22:case"end":return Ha.stop()}}),_callee2,null,[[1,14]])})));return function parseRules(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}();var SU=function removeDSObjects(Bn){var Hn=Bn.repo||{},zn=_objectWithoutPropertiesLoose(Hn,vU);return _extends({},Bn,{repo:zn})};var xU=function stringifyParserResults(Bn){try{if(!Bn){return""}var Hn=Object.values(Bn.automations||{}).filter((function(Bn){var Hn=Bn.passed;return Hn}));var zn=Hn.flatMap((function(Bn){var Hn=Bn.run;return Hn.map((function(Bn){var Hn=Bn.action,zn=Bn.args;var ni=Object.keys(zn||{}).filter(Boolean).map((function(Bn){var Hn;var ni=zn[Bn];if((Hn=ni)!=null&&Hn.toString().match(/^base64:*/g)){ni=dQ(ni)}return Bn+': "'+(ni?ni.toString().replace("\n","\\n"):"")+'"'})).join(" and ");return"- "+Hn+" "+ni}))}));return zn.join("\n")}catch(Hn){console.log("[gitstream-core] | Failed to stringify parser results",{error:Hn,results:Bn});return"Failed to stringify parser results"}};var wU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(Bn){var Hn,zn,ni,Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha;return _regeneratorRuntime().wrap((function _callee3$(so){while(1)switch(so.prev=so.next){case 0:Hn=Bn.ruleFileContent,zn=Bn.payload,ni=Bn.baseBranch,Ci=Bn.refBranch,ts=Bn.ruleFile,Ps=ts===void 0?"playground.cm":ts,aa=Bn.cloneRepoPath;oa={};so.prev=2;CT.cwd=aa;console.log("[gitstream-core] | build gitstream context for pr: "+zn.prContext.url);so.next=7;return rU(ni,Ci,zn,Hn,Ps,BB);case 7:ca=so.sent;console.log("[gitstream-core] | successfuly get context for: "+zn.prContext.url+", attach expert reviewers");_a=sQ(ca.repo,ca.files,zn);console.log("[gitstream-core] | successfuly get expert reviewers for: "+zn.prContext.url);oa=SU(ca);oa.repo=_extends({},oa.repo,{data_service:{expert_reviwer_request:_a}});oa.branch.name=_Q(oa.branch.name);console.log("[gitstream-core] | convert rule file to string safe: "+zn.prContext.url);xa=hQ(Hn);console.log("[gitstream-core] | successfult convert rule file to string safe: "+zn.prContext.url+", parse rules");so.next=19;return CU(xa,oa,zn,Ps);case 19:Ga=so.sent;console.log("[gitstream-core] | successfult parse rules for: "+zn.prContext.url+", stringify results",{results:Ga});Ha=xU(Ga);return so.abrupt("return",{results:Ha,context:oa,errors:qw().stringifyErrors((Ga==null?void 0:Ga.errors)||{}),raw:Ga});case 25:so.prev=25;so.t0=so["catch"](2);console.error("[gitstream-core] | Failed to execute one rule file for: "+zn.prContext.url,so.t0);return so.abrupt("return",{results:so.t0.message,context:oa,errors:so.t0.message,raw:{payload:zn}});case 29:case"end":return so.stop()}}),_callee3,null,[[2,25]])})));return function executeOneRuleFile(Hn){return Bn.apply(this,arguments)}}();var TU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee4(Bn){var Hn,zn,ni,Ci,ts,Ps,aa,oa;return _regeneratorRuntime().wrap((function _callee4$(ca){while(1)switch(ca.prev=ca.next){case 0:Hn=Bn.ruleFileContent,zn=Bn.payload,ni=Bn.ruleFile,Ci=ni===void 0?"playground.cm":ni,ts=Bn.cachedContext;Ps=hQ(Hn);ca.next=4;return CU(Ps,ts,zn,Ci);case 4:aa=ca.sent;oa=xU(aa);return ca.abrupt("return",{results:oa,context:ts,errors:qw().stringifyErrors((aa==null?void 0:aa.errors)||{}),raw:aa});case 7:case"end":return ca.stop()}}),_callee4)})));return function executeCached(Hn){return Bn.apply(this,arguments)}}();var kU=function(){var Bn=_asyncToGenerator(_regeneratorRuntime().mark((function _callee5(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha,so;return _regeneratorRuntime().wrap((function _callee5$(oo){while(1)switch(oo.prev=oo.next){case 0:Ci=ni.owner,ts=ni.repo,Ps=ni.pullRequestNumber;oo.prev=1;aa=Bn==null?void 0:Bn.validatorErrors;oa=Bn==null?void 0:Bn.errors;if(!Object.keys(aa||{}).length){oo.next=14;break}ca=0,_a=Object.keys(aa);case 6:if(!(ca<_a.length)){oo.next=14;break}xa=_a[ca];ww(vC.VALIDATOR_ERROR+" - "+xa+": "+aa[xa]);oo.next=11;return Tw("warn",vC.VALIDATOR_ERROR+" - "+xa+" in pr "+Ci+"/"+ts+"/"+Ps,ni,{error:""+aa[xa],ruleFile:Hn,cmContent:zn},true);case 11:ca++;oo.next=6;break;case 14:if(!Object.keys(oa||{}).length){oo.next=25;break}Ga=0,Ha=Object.keys(oa);case 16:if(!(Ga{"use strict";function e(Bn){return Bn&&"object"==typeof Bn&&"default"in Bn?Bn.default:Bn}Object.defineProperty(Hn,"__esModule",{value:!0});var ni=zn(37005),Ci=zn(21917),ts=zn(90250),Ps=e(ts),aa=e(zn(72187)),oa=e(zn(2825)),ca=zn(17006),_a=e(zn(56908)),xa=e(zn(56929)),Ga=zn(32081),Ha=e(zn(33779)),so=e(zn(96545)),oo=e(zn(99623)),Jo=e(zn(98911)),tc=e(zn(13418)),dc=zn(57147),Fc=e(zn(71017)),Jc=zn(87029),Dp=zn(55375),kp=zn(42186),Qp=e(zn(94833)),Up=zn(77486);function _(){_=function(){return Hn};var Bn,Hn={},zn=Object.prototype,ni=zn.hasOwnProperty,Ci=Object.defineProperty||function(Bn,Hn,zn){Bn[Hn]=zn.value},ts="function"==typeof Symbol?Symbol:{},Ps=ts.iterator||"@@iterator",aa=ts.asyncIterator||"@@asyncIterator",oa=ts.toStringTag||"@@toStringTag";function c(Bn,Hn,zn){return Object.defineProperty(Bn,Hn,{value:zn,enumerable:!0,configurable:!0,writable:!0}),Bn[Hn]}try{c({},"")}catch(Bn){c=function(Bn,Hn,zn){return Bn[Hn]=zn}}function l(Bn,Hn,zn,ni){var ts=Object.create((Hn&&Hn.prototype instanceof m?Hn:m).prototype),Ps=new C(ni||[]);return Ci(ts,"_invoke",{value:O(Bn,zn,Ps)}),ts}function f(Bn,Hn,zn){try{return{type:"normal",arg:Bn.call(Hn,zn)}}catch(Bn){return{type:"throw",arg:Bn}}}Hn.wrap=l;var ca="suspendedStart",_a="executing",xa="completed",Ga={};function m(){}function g(){}function b(){}var Ha={};c(Ha,Ps,(function(){return this}));var so=Object.getPrototypeOf,oo=so&&so(so(T([])));oo&&oo!==zn&&ni.call(oo,Ps)&&(Ha=oo);var Jo=b.prototype=m.prototype=Object.create(Ha);function E(Bn){["next","throw","return"].forEach((function(Hn){c(Bn,Hn,(function(Bn){return this._invoke(Hn,Bn)}))}))}function R(Bn,Hn){function t(zn,Ci,ts,Ps){var aa=f(Bn[zn],Bn,Ci);if("throw"!==aa.type){var oa=aa.arg,ca=oa.value;return ca&&"object"==typeof ca&&ni.call(ca,"__await")?Hn.resolve(ca.__await).then((function(Bn){t("next",Bn,ts,Ps)}),(function(Bn){t("throw",Bn,ts,Ps)})):Hn.resolve(ca).then((function(Bn){oa.value=Bn,ts(oa)}),(function(Bn){return t("throw",Bn,ts,Ps)}))}Ps(aa.arg)}var zn;Ci(this,"_invoke",{value:function(Bn,ni){function i(){return new Hn((function(Hn,zn){t(Bn,ni,Hn,zn)}))}return zn=zn?zn.then(i,i):i()}})}function O(Hn,zn,ni){var Ci=ca;return function(ts,Ps){if(Ci===_a)throw new Error("Generator is already running");if(Ci===xa){if("throw"===ts)throw Ps;return{value:Bn,done:!0}}for(ni.method=ts,ni.arg=Ps;;){var aa=ni.delegate;if(aa){var oa=S(aa,ni);if(oa){if(oa===Ga)continue;return oa}}if("next"===ni.method)ni.sent=ni._sent=ni.arg;else if("throw"===ni.method){if(Ci===ca)throw Ci=xa,ni.arg;ni.dispatchException(ni.arg)}else"return"===ni.method&&ni.abrupt("return",ni.arg);Ci=_a;var Ha=f(Hn,zn,ni);if("normal"===Ha.type){if(Ci=ni.done?xa:"suspendedYield",Ha.arg===Ga)continue;return{value:Ha.arg,done:ni.done}}"throw"===Ha.type&&(Ci=xa,ni.method="throw",ni.arg=Ha.arg)}}}function S(Hn,zn){var ni=zn.method,Ci=Hn.iterator[ni];if(Ci===Bn)return zn.delegate=null,"throw"===ni&&Hn.iterator.return&&(zn.method="return",zn.arg=Bn,S(Hn,zn),"throw"===zn.method)||"return"!==ni&&(zn.method="throw",zn.arg=new TypeError("The iterator does not provide a '"+ni+"' method")),Ga;var ts=f(Ci,Hn.iterator,zn.arg);if("throw"===ts.type)return zn.method="throw",zn.arg=ts.arg,zn.delegate=null,Ga;var Ps=ts.arg;return Ps?Ps.done?(zn[Hn.resultName]=Ps.value,zn.next=Hn.nextLoc,"return"!==zn.method&&(zn.method="next",zn.arg=Bn),zn.delegate=null,Ga):Ps:(zn.method="throw",zn.arg=new TypeError("iterator result is not an object"),zn.delegate=null,Ga)}function j(Bn){var Hn={tryLoc:Bn[0]};1 in Bn&&(Hn.catchLoc=Bn[1]),2 in Bn&&(Hn.finallyLoc=Bn[2],Hn.afterLoc=Bn[3]),this.tryEntries.push(Hn)}function F(Bn){var Hn=Bn.completion||{};Hn.type="normal",delete Hn.arg,Bn.completion=Hn}function C(Bn){this.tryEntries=[{tryLoc:"root"}],Bn.forEach(j,this),this.reset(!0)}function T(Hn){if(Hn||""===Hn){var zn=Hn[Ps];if(zn)return zn.call(Hn);if("function"==typeof Hn.next)return Hn;if(!isNaN(Hn.length)){var Ci=-1,ts=function t(){for(;++Ci=0;--Ci){var ts=this.tryEntries[Ci],Ps=ts.completion;if("root"===ts.tryLoc)return i("end");if(ts.tryLoc<=this.prev){var aa=ni.call(ts,"catchLoc"),oa=ni.call(ts,"finallyLoc");if(aa&&oa){if(this.prev=0;--zn){var Ci=this.tryEntries[zn];if(Ci.tryLoc<=this.prev&&ni.call(Ci,"finallyLoc")&&this.prev=0;--Hn){var zn=this.tryEntries[Hn];if(zn.finallyLoc===Bn)return this.complete(zn.completion,zn.afterLoc),F(zn),Ga}},catch:function(Bn){for(var Hn=this.tryEntries.length-1;Hn>=0;--Hn){var zn=this.tryEntries[Hn];if(zn.tryLoc===Bn){var ni=zn.completion;if("throw"===ni.type){var Ci=ni.arg;F(zn)}return Ci}}throw new Error("illegal catch attempt")},delegateYield:function(Hn,zn,ni){return this.delegate={iterator:T(Hn),resultName:zn,nextLoc:ni},"next"===this.method&&(this.arg=Bn),Ga}},Hn}function E(Bn,Hn,zn,ni,Ci,ts,Ps){try{var aa=Bn[ts](Ps),oa=aa.value}catch(Bn){return void zn(Bn)}aa.done?Hn(oa):Promise.resolve(oa).then(ni,Ci)}function R(Bn){return function(){var Hn=this,zn=arguments;return new Promise((function(ni,Ci){var ts=Bn.apply(Hn,zn);function a(Bn){E(ts,ni,Ci,a,u,"next",Bn)}function u(Bn){E(ts,ni,Ci,a,u,"throw",Bn)}a(void 0)}))}}function O(){return(O=Object.assign?Object.assign.bind():function(Bn){for(var Hn=1;HnBn.length)&&(Hn=Bn.length);for(var zn=0,ni=new Array(Hn);zn=Bn.length?{done:!0}:{done:!1,value:Bn[ni++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var qp,Vp="https://gtxblnqb99.execute-api.us-west-1.amazonaws.com/prod",Jp={REVIEW_TIME:Vp+"/v1/pulls/review-time",EXPERT_REVIWER:Vp+"/gs/v1/data-service/expert-reviewer"},Wp="gitstream-rules-parser",zp={FAILED_RENDER_STRING:Wp+" - failed render string",FAILED_YAML_LOAD:Wp+" - failed yaml.load",INVALID_CM:Wp+" - invalid cm",INVALID_CM_CONTEXT_VARIABLES:Wp+" - ContextVariableValidator"},Qf=function(Bn){var Hn,zn;function n(Hn,zn){var ni;return(ni=Bn.call(this,zn)||this).reason=Hn,Object.setPrototypeOf(function(Bn){if(void 0===Bn)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Bn}(ni),n.prototype),ni}return zn=Bn,(Hn=n).prototype=Object.create(zn.prototype),Hn.prototype.constructor=Hn,j(Hn,zn),n}(T(Error)),M=function(Bn){return ts.isObject(Bn)&&Object.keys(Bn).length?Object.keys(Bn).reduce((function(Hn,zn){var ni,Ci=Bn[zn],Ps=ts.isString(Ci)?Ci.replace(/\n/g,"\\n"):Ci;return O({},Hn,((ni={})[zn]=Ps,ni))}),{}):Bn},V=function(Bn){return ts.isString(Bn)?Bn.replace(/\\n/g,"\n"):Bn},G=function(Bn){return Bn.replace(/\s+/g," ").replaceAll("'",'"').trim()},U=function(Bn,Hn){return G(xa.format(Bn,{semi:!1,singleQuote:!0,filepath:Hn}))},Yf={js:U,ts:U,html:U,py:function(Bn){return Ga.spawnSync("python",["-c","import black; print(black.format_str("+JSON.stringify(Bn)+", mode=black.FileMode()))"]).stdout.toString().replace(/^\s*[\r\n]/gm,"")},default:G},W=function(Bn,Hn){var zn,ni=null!=(zn=Hn.split(".").pop())?zn:"";return _a(Yf,ni,Yf.default)(Bn)},Y=function(Bn){return Object.keys(Bn).map((function(Hn){return Hn+"="+Bn[Hn]}))},Kf=["reviewers","reviewers","team_reviewers","labels"],Q=function(Bn,Hn){Hn&&console.log(Bn)},z=function(Bn,Hn){return null==Bn?void 0:Bn.includes(Hn)},$=function(Bn){return"string"==typeof Bn&&Bn.startsWith("r/")?Bn.substring(2).slice(0,-1).replace("\\/","/"):Bn},K=function(Bn,Hn,zn){void 0===zn&&(zn=!1);var ni=$(Hn);return new RegExp(ni,zn?"m":"").test(Bn)},X=function(Bn,Hn,zn){var ni=null==Bn?void 0:Bn.map((function(Bn){return Boolean(Bn)}));return null!=ni&&ni.length?ni.every((function(Bn){return Bn===Hn})):zn},Z=function(Bn){return"string"==typeof Bn?Bn.includes(",")?Bn.split(","):[Bn]:null!=Bn?Bn:[]},Xf=((qp={}).github="GitHub",qp.gitlab="GitLab",qp.bitbucket="BitBucket","\n \nTo learn more about /:\\ gitStream - [Visit our Docs](https://docs.gitstream.cm/) \n \n"),Ad={"01":"JAN","02":"FEB","03":"MAR","04":"APR","05":"MAY","06":"JUN","07":"JUL","08":"AUG","09":"SEP",10:"OCT",11:"NOV",12:"DEC"},te=function(){};te.filters={};var Cd,Sd,oe=function(Bn,Hn,zn){var ni;void 0===zn&&(zn=!1),te.filters=O({},te.filters,((ni={})[Bn]={args:Hn,isCustom:zn},ni))},ae=function(Bn,Hn,zn,ni,Ci){return zn?z(Hn?Bn[Hn]:Bn,zn):ni?K(Hn?Bn[Hn]:Bn,ni):Ci.some((function(zn){return z(Hn?Bn[Hn]:Bn,zn)}))},ue=function(Bn,Hn,zn,ni){void 0===ni&&(ni=!1);var Ci=Hn.attr||"",ts=Hn.term,Ps=Hn.regex,aa=Hn.list,oa=Z(Bn);if(!ts&&!Ps&&!aa)return[];var ca=aa;return aa&&(ca=Z(aa)),"filterList"===zn?function(Bn,Hn,zn,ni,Ci,ts){return Bn.filter((function(Bn){return ts?!ae(Bn,Hn,zn,ni,Ci):ae(Bn,Hn,zn,ni,Ci)}))}(oa,Ci,ts,Ps,ca,ni):function(Bn,Hn,zn,ni,Ci,ts){return Bn.map((function(Bn){return ts?!ae(Bn,Hn,zn,ni,Ci):ae(Bn,Hn,zn,ni,Ci)}))}(oa,Ci,ts,Ps,ca,ni)};!function(Bn){Bn.some="some",Bn.every="every",Bn.filter="filter",Bn.includes="includes",Bn.reject="reject",Bn.map="map",Bn.match="match",Bn.nope="nope",Bn.intersection="intersection",Bn.difference="difference",Bn.capture="capture"}(Sd||(Sd={}));var xd,wd,Td=((Cd={})[Sd.some]=function(Bn){var Hn;oe(Sd.some,[]);var zn=null==(Hn=Z(Bn))?void 0:Hn.map((function(Bn){return Boolean(Bn)}));return Boolean(null==zn?void 0:zn.length)&&zn.some((function(Bn){return Bn}))},Cd[Sd.every]=function(Bn){return oe(Sd.every,[]),X(Z(Bn),!0,!1)},Cd[Sd.filter]=function(Bn,Hn){return oe(Sd.filter,[Hn]),ue(Bn,Hn,"filterList")},Cd[Sd.reject]=function(Bn,Hn){return oe(Sd.reject,[Hn]),ue(Bn,Hn,"filterList",!0)},Cd[Sd.map]=function(Bn,Hn){var zn=Hn.attr;return oe(Sd.map,[{attr:zn}]),Z(Bn).map((function(Bn){return Bn[zn]}))},Cd[Sd.includes]=function(Bn,Hn){oe(Sd.includes,[Hn]);var zn=Hn.term,ni=Hn.regex,Ci=Hn.list;if(!zn&&!ni&&!Ci)return!1;var ts=Ci;return Ci&&(ts=Z(Ci)),zn?z(Bn,zn):ni?K(Bn,ni):ts.some((function(Hn){return Bn.includes(Hn)}))},Cd[Sd.match]=function(Bn,Hn){return oe(Sd.match,[Hn]),ue(Bn,Hn,"mapList")},Cd[Sd.nope]=function(Bn){return oe(Sd.match,[]),X(Z(Bn),!1,!0)},Cd[Sd.intersection]=function(Bn,Hn){oe(Sd.intersection,[Hn]);var zn=Hn.list,ni=Z(Bn),Ci=Z(zn);return Ci.length?ts.intersection(ni,Ci):[]},Cd[Sd.difference]=function(Bn,Hn){oe(Sd.difference,[Hn]);var zn=Hn.list,ni=Z(Bn),Ci=Z(zn);return Ci.length?ts.difference(ni,Ci):Bn},Cd[Sd.capture]=function(Bn,Hn){var zn=$(Hn.regex),ni=new RegExp(null!=zn?zn:"").exec(Bn);return ni?ni[0]:""},Cd),Pd={github:"",gitlab:" \n",default:""},pe=function(Bn,Hn){return Object.keys(Bn).reduce((function(zn,ni){var Ci,ts,Ps=Bn[ni];return zn[Hn[ni]]&&(Ps=Bn[ni]+zn[Hn[ni]]),O({},zn,((ts={})[null!=(Ci=Hn[ni])&&Ci.includes("@")||!Hn[ni]?ni+"\\*":Hn[ni]]=Ps,ts))}),{})},de=function(Bn){return{blame:Object.keys(Bn.blame).reduce((function(Hn,zn){var ni;return O({},Hn,((ni={})[zn]=pe(Bn.blame[zn],Bn.git_to_provider_user),ni))}),{})}},ve=function(Bn,Hn){var zn=Object.keys(Hn).length;return Bn.reduce((function(Bn,ni){var Ci,ts=function(Bn,Hn){return Object.values(Bn).reduce((function(Bn,zn){var ni,Ci,ts=zn[Hn],Ps=(null!=ts?ts:0)+(null!=(ni=Bn[Hn])?ni:0);return O({},Bn,Ps&&((Ci={})[Hn]=Ps,Ci))}),{})}(Hn,ni);return O({},Bn,ts[ni]&&((Ci={})[ni]=ts[ni]/zn,Ci))}),{})},he=function(Bn,Hn){return Bn.sort((function(Bn,zn){var ni,Ci;return(null!=(ni=Hn[zn])?ni:0)-(null!=(Ci=Hn[Bn])?Ci:0)}))},me=function(Bn,Hn,zn){return Object.keys(Bn).length?function(Bn,Hn,zn){var ni=Object.keys(Bn).filter((function(ni){return void 0!==Hn?Bn[ni]>Hn:Bn[ni]Hn/100:Bn[ts][ni]")}))||[]},we=function(Bn){return Bn.gt||Bn.lt||.1},f_=function(){var Bn=R(_().mark((function e(Bn){var Hn,zn,ni,Ci;return _().wrap((function(ts){for(;;)switch(ts.prev=ts.next){case 0:return ts.next=2,Zh(null==(Hn=Bn.data_service)?void 0:Hn.expert_reviwer_request);case 2:if(zn=ts.sent,Object.keys(zn).length){ts.next=5;break}return ts.abrupt("return",{data:{},dataWithoutIssuer:{},isIssuerFiltered:!1});case 5:return ni=!1,Ci=Object.keys(zn).reduce((function(Hn,Ci){var ts;return Ci===Bn.pr_author?(ni=!0,Hn):O({},Hn,((ts={})[Ci]=zn[Ci],ts))}),{}),ts.abrupt("return",{data:zn,dataWithoutIssuer:Ci,isIssuerFiltered:ni});case 8:case"end":return ts.stop()}}),e)})));return function(Hn){return Bn.apply(this,arguments)}}(),_e=function(Bn,Hn,zn,ni,Ci,ts){var Ps="🥷 **Code experts:";return Ps+=Bn.length?" "+Bn.join(", ")+"** \n \n":" no user "+(ts?"but you":"")+" matched threshold "+ni+"** \n \n",Hn.length&&(Ps+=Hn.join(", ")+" "+(1===Hn.length?"has":"have")+" most 👩‍💻 **activity** in the files. \n"+(Pd[Ci]||Pd.default)),zn.length&&(Ps+=zn.join(", ")+" "+(1===zn.length?"has":"have")+" most 🧠 **knowledge** in the files. \n"),Ps},Ee=function(Bn,Hn,zn,ni,Ci,ts){try{var Ps="
\n See details\n\n";return Bn.forEach((function(Bn){Ps+="\n`"+Bn+"` \n "+function(Bn,Hn,zn){return Object.keys(Hn).length?zn.length?"\n\nActivity based on git-commit: \n\n | | "+(zn[0]?zn[0]:" ")+" | "+(zn[1]?zn[1]+"| \n | --- | --- | --- | \n ":" \n | --- | --- | \n")+function(Bn,Hn,zn){for(var ni="",Ci=[],ts=0;ts<6;ts++)Ci.push(Ad[oo().subtract(ts,"months").format("MM")]);return Ci.forEach((function(Ci){var ts,Ps=Bn[Hn][zn[0]][Ci],aa=null==(ts=Bn[Hn][zn[1]])?void 0:ts[Ci];ni+="| "+Ci+" | "+(Ps?Ps.additions+" additions & "+Ps.deletions+" deletions":" ")+" |",ni+=(aa?aa.additions+" additions & "+aa.deletions+" deletions |":" ")+" \n"})),ni}(Hn,Bn,zn):"":"\n\nNo activity in the last 6 months\n\n"}(Bn,Hn,ni)+" \n\nKnowledge based on git-blame: \n "+(Pd[ts]||Pd.default)+function(Bn,Hn,zn,ni){var Ci="";return he(zn,Hn[Bn]).forEach((function(zn){Ci+=Hn[Bn][zn]?zn+": "+Hn[Bn][zn]+"% \n"+(Pd[ni]||Pd.default):""})),Ci}(Bn,zn,Ci,ts)})),Ps+="\n
\n"}catch(Bn){return console.log("Error in creating explain code experts comment",Bn),""}},Re=function(Bn,Hn){return Object.keys(Bn||{}).reduce((function(zn,ni){var Ci,ts=function(Bn,Hn,zn){return zn.reduce((function(zn,ni){var Ci,ts=function(Bn,Hn,zn){return Object.keys(Bn[Hn]).reduce((function(ni,Ci){var ts,Ps;return Bn[Hn][Ci][zn]?O({},ni,((Ps={})[Ad[null==(ts=Ci.split("-"))?void 0:ts[1]]]=Bn[Hn][Ci][zn],Ps)):ni}),{})}(Bn,Hn,ni);return O({},zn,((Ci={})[ni]=ts,Ci))}),{})}(Bn,ni,Hn);return O({},zn,((Ci={})[ni]=ts,Ci))}),{})},Oe=function(Bn,Hn){return Object.keys(Bn||{}).reduce((function(zn,ni){var Ci,ts=he(Hn,Bn[ni]).reduce((function(Hn,zn){var Ci;return Bn[ni][zn]?O({},Hn,((Ci={})[zn]=Math.round(100*Bn[ni][zn]),Ci)):Hn}),{});return O({},zn,((Ci={})[ni]=ts,Ci))}),{})};!function(Bn){Bn.allDocs="allDocs",Bn.allImages="allImages",Bn.allTests="allTests",Bn.extensions="extensions",Bn.isFormattingChange="isFormattingChange",Bn.matchDiffLines="matchDiffLines",Bn.isFirstCommit="isFirstCommit",Bn.rankByGitBlame="rankByGitBlame",Bn.rankByGitActivity="rankByGitActivity",Bn.explainRankByGitBlame="explainRankByGitBlame",Bn.sonarParser="sonarParser",Bn.mapToEnum="mapToEnum",Bn.extractSonarFindings="extractSonarFindings",Bn.extractJitFindings="extractJitFindings",Bn.countTests="countTests"}(xd||(xd={})),function(Bn){Bn.estimatedReviewTime="estimatedReviewTime",Bn.expertReviewer="expertReviewer",Bn.explainExpertReviewer="explainExpertReviewer",Bn.codeExperts="codeExperts",Bn.explainCodeExperts="explainCodeExperts"}(wd||(wd={}));var Z_,eg,tg,rg,ng,ig,sg=function(){var Bn=R(_().mark((function e(Bn,Hn){var zn,ni,Ci,ts,Ps,aa,oa,ca,_a;return _().wrap((function(xa){for(;;)switch(xa.prev=xa.next){case 0:return oe(wd.estimatedReviewTime,[]),ts=null==(zn=Bn.diff)?void 0:zn.files_metadata.length,Ps=null==(ni=Bn.diff)?void 0:ni.files_metadata.reduce((function(Bn,Hn){return Bn.additionalLines+=Hn.additions,Bn.deletedLines+=Hn.deletions,Bn}),{additionalLines:0,deletedLines:0}),aa=Ps.additionalLines,oa=Ps.deletedLines,ca=null==(Ci=Bn.diff)?void 0:Ci.files_metadata.map((function(Bn){return{file_path:"/dev/null"!==Bn.new_file?Bn.new_file:Bn.original_file,additions:Bn.additions,deletions:Bn.deletions}})),_a={prMetadata:{commits:Bn.num_of_commits,files:ts,lines:aa+oa},prFiles:ca,prAdditionalLines:aa,prDeletedLines:oa,baseBranch:Bn.base,request_source:"gitstream"},xa.next=7,Qh(_a);case 7:Hn(null,xa.sent.numericValue);case 10:case"end":return xa.stop()}}),e)})));return function(Hn,zn){return Bn.apply(this,arguments)}}(),ag=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa;return _().wrap((function(ca){for(;;)switch(ca.prev=ca.next){case 0:return Ci=void 0===(ni=Hn.gt)?0:ni,Ps=void 0===(ts=Hn.lt)?0:ts,ca.prev=1,oe(wd.expertReviewer,[{gt:Ci,lt:Ps}]),ca.next=5,f_(Bn);case 5:aa=ca.sent.dataWithoutIssuer,Object.keys(aa).length||zn(null,[]),oa=xe(aa,Ci,Ps,"reviewer_score").slice(0,2),zn(null,oa),ca.next=16;break;case 12:ca.prev=12,ca.t0=ca.catch(1),console.log("error:",ca.t0),zn(null,[]);case 16:case"end":return ca.stop()}}),e,null,[[1,12]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),og=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha,so,oo,Jo,tc;return _().wrap((function(dc){for(;;)switch(dc.prev=dc.next){case 0:return dc.prev=0,ts=Hn.gt,Ps=Hn.lt,dc.next=4,f_(Bn);case 4:oa=(aa=dc.sent).data,ca=aa.dataWithoutIssuer,_a=aa.isIssuerFiltered,Object.keys(oa).length&&Object.keys(ca).length||zn(null,[]),xa=xe(ca,ts,Ps,"reviewer_score").slice(0,2),Ga=xe(oa,ts,Ps,"avg_activity_score").slice(0,2),Ha=xe(oa,ts,Ps,"avg_blame_perc").slice(0,2),so=Re(null==(ni=oa.explain)?void 0:ni.activity,Ga),oo=Oe(null==(Ci=oa.explain)?void 0:Ci.blame,Ha),Jo=_e(xa,Ga,Ha,we(Hn),Bn.provider,_a&&!Object.keys(xa).length)+" "+Ee(Array.from(new Set([].concat(Object.keys(so),Object.keys(oo)))),so,oo,Ga,Ha,Bn.provider)+" \n\n "+Xf+" \n",tc="base64: "+Buffer.from(Jo).toString("base64"),zn(null,tc),dc.next=23;break;case 19:dc.prev=19,dc.t0=dc.catch(0),console.log("error:",dc.t0),zn("");case 23:case"end":return dc.stop()}}),e,null,[[0,19]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),ug=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps;return _().wrap((function(aa){for(;;)switch(aa.prev=aa.next){case 0:return oe(wd.codeExperts,[{gt:Ci=void 0===(ni=Hn.gt)?0:ni,lt:Ps=void 0===(ts=Hn.lt)?0:ts}]),aa.next=4,ag(Bn,{gt:Ci,lt:Ps},zn);case 4:case"end":return aa.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),cg=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(ni){for(;;)switch(ni.prev=ni.next){case 0:return oe(wd.explainExpertReviewer,[Hn]),ni.next=3,og(Bn,Hn,zn);case 3:case"end":return ni.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),lg=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(ni){for(;;)switch(ni.prev=ni.next){case 0:return oe(wd.explainCodeExperts,[Hn]),ni.next=3,og(Bn,Hn,zn);case 3:case"end":return ni.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),pg={bugs:/\[(.) Reliability Rating/,security_hotspots:/\[(.) Security Hotspots/,vulnerabilities:/\[(.) Security Rating/,code_smells:/\[(.) Maintainability Rating/,duplications:/(\d+(\.\d+)?%) Duplication on New Code/,coverage:/(\d+(\.\d+)?%) Coverage on New Code/},Me=function(Bn){oe(xd.sonarParser,[]);var Hn=Bn.comments.filter((function(Bn){return"sonarcloud"===Bn.commenter}));if(!Hn.length)return JSON.stringify({bugs:{count:null,rating:""},code_smells:{count:null,rating:""},vulnerabilities:{count:null,rating:""},security_hotspots:{count:null,rating:""},duplications:null,coverage:null});var zn=Object.keys(pg).reduce((function(Bn,zn){var ni,Ci,ts,Ps=Hn[0].content.match(pg[zn]);if("duplications"===zn.toString()||"coverage"===zn.toString()){var aa,oa=parseFloat(null==Ps?void 0:Ps[1].replace("%",""));return O({},Bn,((aa={})[zn]=oa||null,aa))}return"security_hotspots"===zn.toString()?O({},Bn,((ts={})[zn]={count:Ps&&"0"!==(null==Ps||null==(Ci=Ps[1])?void 0:Ci.toString())?Ps[1]:null,rating:""},ts)):O({},Bn,((ni={})[zn]={count:Ps?1:null,rating:Ps?Ps[1]:""},ni))}),{bugs:{count:null,rating:""},code_smells:{count:null,rating:""},vulnerabilities:{count:null,rating:""},security_hotspots:{count:null,rating:""},duplications:null,coverage:null});return JSON.stringify(zn)},Ve=function(Bn){var Hn=Ge();return Bn.conversations.forEach((function(Bn){var zn,ni,Ci,ts,Ps,aa,oa,ca=Bn.content.split("\n"),_a=null==(zn=ca[0])||null==(zn=zn.split("**")[2])?void 0:zn.trim(),xa=null==(ni=ca[2])||null==(ni=ni.split("**")[2])?void 0:ni.trim(),Ga=null==(Ci=ca[4])||null==(Ci=Ci.split("**")[2])?void 0:Ci.trim(),Ha=null==(ts=ca[6])||null==(ts=ts.split("**")[2])?void 0:ts.trim(),so=(null!=(Ps=null==(aa=ca[10])||null==(aa=aa.split("")[1])?void 0:aa.split("")[0])?Ps:"").replace(//g,"").replace(/<\/b>/g,"");Hn.vulnerabilities.push({security_control:_a,type:xa,description:Ga,severity:Ha,summary:so}),Hn.metrics[Ha]=(null!=(oa=Hn.metrics[Ha])?oa:0)+1})),Hn},Ge=function(){return{vulnerabilities:[],metrics:{HIGH:null,MEDIUM:null,LOW:null,INFO:null}}},fg={extractJitFindings:function(Bn){oe(xd.extractJitFindings,[]);var Hn=function(Bn){return Bn.reviews.filter((function(Bn){return"jit-ci"===Bn.commenter}))}(Bn),zn=Ge();if(ts.isEmpty(Hn))return JSON.stringify(zn);var ni=Hn.map(Ve);return JSON.stringify(function(Bn,Hn){return Bn.reduce((function(Bn,Hn){return console.log({acc:Bn,review:Hn}),O({},Bn,{vulnerabilities:[].concat(Bn.vulnerabilities,Hn.vulnerabilities),metrics:Jo(Bn.metrics,Hn.metrics,(function(Bn,Hn){return(Bn||0)+(Hn||0)}))})}),O({},Hn))}(ni,zn))}},dg=[".spec.",".test.","test_"],hg=["\\s*it\\(","\\s*test\\(","\\s*step\\(","\\s*def test_"].map((function(Bn){return new RegExp(Bn)})),Ye=function(Bn){var Hn={};return Object.entries(Bn).forEach((function(Bn){Hn[Bn[0]]=Bn[1]})),Hn},mg={getJiraTicketDetails:function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha,oo,Jo,dc,Fc,Jc,Dp,kp,Qp,Up,qp,Vp,Jp,Wp,zp;return _().wrap((function(Qf){for(;;)switch(Qf.prev=Qf.next){case 0:if(Ci=Hn.username,ts=Hn.apiToken,Ps=Hn.additionalFields,(ni=Hn.url)&&Ci&&ts&&Bn){Qf.next=4;break}return zn(null,JSON.stringify({})),Qf.abrupt("return");case 4:return aa="Basic "+Buffer.from(Ci+":"+ts).toString("base64"),oa={Authorization:aa,Accept:"application/json"},Qf.prev=7,Qf.next=10,so.get(ni+"/rest/api/3/issue/"+Bn,{headers:oa});case 10:Jp=null!=(ca=null==(Vp=Qf.sent.data)?void 0:Vp.fields)?ca:{},Wp=tc(Jp,Ps),zp=O({labels:null!=(_a=Jp.labels)?_a:[],assignee:null!=(xa=null==(Ga=Jp.assignee)?void 0:Ga.displayName)?xa:"",status:null!=(Ha=Jp.name)?Ha:"",url:null!=(oo=null==Vp?void 0:Vp.self)?oo:"",priority:null!=(Jo=null==(dc=Jp.priority)?void 0:dc.name)?Jo:"",creator:null!=(Fc=null==(Jc=Jp.creator)?void 0:Jc.displayName)?Fc:"",issueType:null!=(Dp=null==(kp=Jp.issueType)?void 0:kp.name)?Dp:"",project:null!=(Qp=null==(Up=Jp.project)?void 0:Up.name)?Qp:"",summary:null!=(qp=Jp.summary)?qp:""},Ye(Wp)),zn(null,JSON.stringify(zp)),Qf.next=22;break;case 18:Qf.prev=18,Qf.t0=Qf.catch(7),console.log("error while running getJiraTicketDetails filter",Qf.t0),zn(null,JSON.stringify({}));case 22:case"end":return Qf.stop()}}),e,null,[[7,18]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}()},Qe=function(Bn,Hn){return!!Bn.length&&function(Bn,Hn){return Boolean(Bn.length)&&Bn.map((function(Bn){return Hn.some((function(Hn){return(Bn||"").includes(Hn)}))})).every((function(Bn){return Bn}))}(Bn.map((function(Bn){return Bn.split(".").pop()||""})),Hn)},ze=function(Bn,Hn){if(oe(xd.rankByGitBlame,[Hn]),!ge(Hn))return[];var zn=Hn.gt,ni=Hn.lt,Ci=de(Bn).blame,ts=ve(Object.values(Bn.git_to_provider_user),Ci),Ps=me(ts,zn,ni);return Object.keys(Ps).length?[].concat(Array.from(new Set(Object.keys(Ps)))):[]},_g=((Z_={})[xd.allDocs]=["requirements.txt"],Z_),gg=((eg={})[xd.allDocs]=["md","mkdown","txt","rst",".adoc"],eg[xd.allImages]=["svg","png","gif"],eg[xd.allTests]=["test","spec"],eg),Ag=O(((tg={})[xd.allDocs]=function(Bn){return oe(xd.allDocs,[]),Boolean(Bn.length)&&Bn.every((function(Bn){return _g[xd.allDocs].every((function(Hn){return!(Bn.includes("/"+Hn)||Bn===Hn)}))}))&&Qe(Bn,gg[xd.allDocs])},tg[xd.allImages]=function(Bn){return oe(xd.allImages,[]),Qe(Bn,gg[xd.allImages])},tg[xd.allTests]=function(Bn){return oe(xd.allTests,[]),function(Bn,Hn){var zn=new RegExp("[^a-zA-Z0-9]("+gg[xd.allTests].join("|")+")[^a-zA-Z0-9]");return Boolean(Bn.length)&&Bn.map((function(Bn){return zn.test(Bn||"")})).every((function(Bn){return Bn}))}(Bn)},tg[xd.extensions]=function(Bn){return oe(xd.extensions,[]),Bn.map((function(Bn){return Bn.split(".").pop()})).filter((function(Bn,Hn,zn){return zn.indexOf(Bn)===Hn}))},tg[xd.isFormattingChange]=function(Bn){try{return oe(xd.isFormattingChange,[]),Boolean(Bn.length)&&Bn.every((function(Bn){var Hn=Bn.original_content,zn=Bn.original_file;return W(Bn.new_content,Bn.new_file)===W(Hn,zn)}))}catch(Bn){return!1}},tg[xd.matchDiffLines]=function(Bn,Hn){oe(xd.matchDiffLines,[Hn]);var zn=Hn.regex,ni=Hn.ignoreWhiteSpaces,Ci=new RegExp("^[+-]"),ts=new RegExp("^[+-]\\s*$");return zn?Bn.map((function(Bn){return Bn.diff.split("\n").filter((function(Bn){return Ci.test(Bn)})).filter((function(Bn){return!ni||!ts.test(Bn)})).map((function(Bn){return K(Bn,zn)}))})).flat(1):[]},tg[xd.isFirstCommit]=function(Bn,Hn){return oe(xd.isFirstCommit,[{author:Hn}]),!_a(Bn,Hn,null)},tg[xd.rankByGitBlame]=ze,tg[xd.rankByGitActivity]=function(Bn,Hn){oe(xd.rankByGitActivity,[Hn]);var zn=Hn.gt,ni=Hn.lt,Ci=Hn.weeks;if(!zn&&!ni||!Ci)return[];var ts=new Array(Ci+1).fill(0).map((function(Bn,Hn){return"week_"+Hn})),Ps=function(Bn,Hn){return Object.keys(Bn).reduce((function(zn,ni){var Ci,ts=Object.values(Bn[ni]).reduce((function(Bn,zn){return Hn.forEach((function(Hn){var ni,Ci=zn[Hn];Ci&&(Bn[Hn]=(null!=(ni=Bn[Hn])?ni:0)+Ci)})),O({},Bn)}),{});return O({},zn,((Ci={})[ni]=ts,Ci))}),{})}(Bn.git_activity,ts),aa=function(Bn,Hn,zn){return Object.keys(Bn).reduce((function(ni,Ci){var ts,Ps=Object.keys(Bn[Ci]).reduce((function(ni,ts){var Ps,aa=[];Hn.forEach((function(Hn){zn[Ci][Hn]&&Bn[Ci][ts][Hn]&&aa.push(Bn[Ci][ts][Hn]/zn[Ci][Hn]*100)}));var oa=aa.reduce((function(Bn,Hn){return Bn+Hn}),0)/aa.length;return O({},ni,aa.length&&((Ps={})[ts]=parseInt(null==oa?void 0:oa.toFixed(0)),Ps))}),{});return O({},ni,((ts={})[Ci]=Ps,ts))}),{})}(Bn.git_activity,ts,Ps),oa=ve(Object.keys(Bn.contributors),aa),ca=pe(oa,Bn.git_to_provider_user),_a=me(ca,zn,ni);return Object.keys(_a).length?[].concat(Array.from(new Set(Object.keys(_a)))):[]},tg[xd.explainRankByGitBlame]=function(Bn,Hn){if(oe(xd.explainRankByGitBlame,[Hn]),!ge(Hn))return{};var zn=ze(Bn,Hn),ni=Ha(zn,(function(Hn){return Hn!==Bn.pr_author})),Ci=ni.join(", "),ts=!ni.length&&zn.length>0,Ps=function(Bn){var Hn=de(Bn).blame;return Object.keys(Hn).reduce((function(Bn,zn){var ni;if("/dev/null"===zn)return Bn;var Ci=he(Object.keys(Hn[zn]),Hn[zn]).reduce((function(Bn,ni){var Ci;if(!Hn[zn][ni])return Bn;var ts=ni.replace(/\"\“/g,"").replace("“",""),Ps=(Math.floor(Hn[zn][ni])?Math.floor(Hn[zn][ni]):"<1")+"%";return Bn[ts]&&parseInt(Bn[ts])>parseInt(Ps)&&(Ps=Bn[ts]),O({},Bn,((Ci={})[ts]=Ps,Ci))}),{});return O({},Bn,((ni={})[zn]=Ci,ni))}),{})}(Bn);return"base64: "+Buffer.from(function(Bn,Hn,zn,ni,Ci){var ts=Bn.gt,Ps=ts?"more than "+ts+"%":"less than "+Bn.lt+"%",aa=Object.keys(zn).length,oa=function(Bn,Hn,zn,ni){return Bn?" 👋 **Suggested reviewers: "+Bn+"**\n \nThey contributed "+Hn+" of the lines on pre-existing files":" 👋 **Suggested reviewers: no user "+(ni?"but you":"")+" matched**\n \nNo "+(zn?"other ":"")+"user contributed "+Hn+" of the lines on pre-existing files"}(Hn,Ps,aa,Ci);oa+=aa?":\n":". \n ",oa+=Object.keys(zn).length?"
\n See details\n":"",oa+="\n",Object.keys(zn).forEach((function(Bn){0!==Object.keys(zn[Bn]).length&&(oa+="\n`"+Bn+"` \n"+(Pd[ni]||Pd.default),Object.keys(zn[Bn]).forEach((function(Hn){oa+=Hn+": "+zn[Bn][Hn]+" \n"+(Pd[ni]||Pd.default)})))})),oa+="\n
\n";var ca=Object.values(zn).map((function(Bn){return Object.keys(Bn).some((function(Bn){return Bn.includes("*")}))})).some((function(Bn){return Bn}));return oa+=ca?" \nGit users that could not be automatically mapped are marked with `*`.\n"+(Pd[ni]||Pd.default)+"To map these users, refer to the instructions [here](https://docs.gitstream.cm/cm-file#config).\n \n":"",oa+=Xf}(Hn,Ci,Ps,Bn.provider,ts)).toString("base64")},tg[xd.sonarParser]=Me,tg[xd.mapToEnum]=function(Bn,Hn){oe(xd.mapToEnum,[Bn,Hn]);var zn=null==Hn?void 0:Hn.enum;if(zn&&Object.keys(zn).length)return zn[Bn]},tg[xd.extractSonarFindings]=function(Bn){return oe(xd.extractSonarFindings,[]),Me(Bn)},tg[xd.countTests]=function(Bn){return Bn.diff.files.filter((function(Bn){var Hn=Bn.original_file,zn=Bn.new_file;return dg.some((function(Bn){return Hn.includes(Bn)||zn.includes(Bn)}))})).reduce((function(Bn,Hn){var zn=function(Bn){var Hn=Bn.split("\n"),zn=[],ni=[];return Hn.forEach((function(Bn){if(Bn.startsWith("+")){var Hn=Bn.slice(1).trim();zn.push(Hn)}else if(Bn.startsWith("-")){var Ci=Bn.slice(1).trim();ni.push(Ci)}})),{additions:zn,deletions:ni}}(Hn.diff),ni=zn.deletions,Ci=zn.additions.filter((function(Bn){return hg.some((function(Hn){return Hn.test(Bn)}))})),ts=ni.filter((function(Bn){return hg.some((function(Hn){return Hn.test(Bn)}))})).length,Ps=Ci.length;return Bn+Ps-(ts>Ps?0:ts)}),0)},tg[wd.estimatedReviewTime]=sg,tg[wd.expertReviewer]=ag,tg[wd.explainExpertReviewer]=cg,tg[wd.codeExperts]=ug,tg[wd.explainCodeExperts]=lg,tg),fg,mg),yg=((rg={})[wd.estimatedReviewTime]=!0,rg[wd.expertReviewer]=!0,rg[wd.explainExpertReviewer]=!0,rg[wd.codeExperts]=!0,rg[wd.explainCodeExperts]=!0,rg.getJiraTicketDetails=!0,rg),vg={REPO:"repo",ORG:"org"},rr=function(Bn,Hn){return Bn.length&&Bn.map((function(Bn){return Hn.some((function(Hn){return(Bn||"").includes(Hn)}))})).every((function(Bn){return!0===Bn}))},tr=function(Bn){return Bn.replace(/\s+/g," ").replaceAll("'",'"').trim()};!function(Bn){Bn.allExtensions="allExtensions",Bn.includes="includes",Bn.allPassRegex="allPassRegex",Bn.allPathIncludes="allPathIncludes",Bn.filterRegex="filterRegex",Bn.includesRegex="includesRegex",Bn.true="true",Bn.allFormattingChange="allFormattingChange",Bn.filterList="filterList",Bn.filterListRegex="filterListRegex",Bn.isEveryInListRegex="isEveryInListRegex",Bn.isSomeInList="isSomeInList",Bn.isSomeInListRegex="isSomeInListRegex",Bn.isStringIncludes="isStringIncludes",Bn.isStringIncludesRegex="isStringIncludesRegex",Bn.isEveryInList="isEveryInList",Bn.extractExtensions="extractExtensions",Bn.isEveryExtension="isEveryExtension",Bn.isEveryExtensionRegex="isEveryExtensionRegex",Bn.filterFileDiffRegex="filterFileDiffRegex",Bn.isEveryLineInFileDiffRegex="isEveryLineInFileDiffRegex",Bn.isSomeLineInFileDiffRegex="isSomeLineInFileDiffRegex"}(ig||(ig={}));var Eg,bg,Dg,Cg=((ng={})[ig.filterList]=function(Bn,Hn){return!!Bn.length&&Bn.filter((function(Bn){return Hn.includes(Bn)}))},ng[ig.filterListRegex]=function(Bn,Hn){var zn=new RegExp(Hn);return!!Bn.length&&Bn.filter((function(Bn){return zn.test(Bn)}))},ng[ig.isEveryInListRegex]=function(Bn,Hn){var zn=new RegExp(Hn);return!!Bn.length&&Bn.map((function(Bn){return zn.test(Bn)})).every((function(Bn){return Bn}))},ng[ig.isSomeInList]=function(Bn,Hn){return!!Bn.length&&Bn.filter((function(Bn){return Hn.includes(Bn)})).some((function(Bn){return Bn}))},ng[ig.isSomeInListRegex]=function(Bn,Hn){var zn=new RegExp(Hn);return!!Bn.length&&Bn.map((function(Bn){return zn.test(Bn)})).some((function(Bn){return Bn}))},ng[ig.isStringIncludes]=function(Bn,Hn){return Hn.some((function(Hn){return Bn.includes(Hn)}))},ng[ig.isStringIncludesRegex]=function(Bn,Hn){return new RegExp(Hn).test(Bn)},ng[ig.isEveryInList]=function(Bn,Hn){return!!Bn.length&&Bn.filter((function(Bn){return Hn.includes(Bn)})).every((function(Bn){return Bn}))},ng[ig.extractExtensions]=function(Bn){return Bn.length&&Bn.map((function(Bn){return Bn.split(".").pop()})).filter((function(Bn,Hn,zn){return zn.indexOf(Bn)===Hn}))},ng[ig.isEveryExtension]=function(Bn,Hn){return rr(Bn.map((function(Bn){return Bn.split(".").pop()||""})).filter((function(Bn,Hn,zn){return zn.indexOf(Bn)===Hn})),Hn)},ng[ig.isEveryExtensionRegex]=function(Bn,Hn){var zn=new RegExp(Hn),ni=Bn.map((function(Bn){return Bn.split(".").pop()||""})).filter((function(Bn,Hn,zn){return zn.indexOf(Bn)===Hn}));return ni.length>0&&ni.map((function(Bn){return zn.test(Bn)})).every((function(Bn){return Bn}))},ng[ig.true]=function(){return!0},ng[ig.filterFileDiffRegex]=function(Bn,Hn){var zn=new RegExp(Hn,"m");return!!Bn.length&&Bn.filter((function(Bn){return zn.test(Bn.diff)}))},ng[ig.isEveryLineInFileDiffRegex]=function(Bn,Hn){var zn=new RegExp(Hn,"m");return!!Bn.length&&Bn.map((function(Bn){return zn.test(Bn.diff)})).every((function(Bn){return Bn}))},ng[ig.isSomeLineInFileDiffRegex]=function(Bn,Hn){var zn=new RegExp(Hn,"m");return!!Bn.length&&Bn.map((function(Bn){return zn.test(Bn.diff)})).some((function(Bn){return Bn}))},ng[ig.allExtensions]=function(Bn,Hn){return!!Bn.length&&rr(Bn.map((function(Bn){return Bn.split(".").pop()||""})),Hn)},ng[ig.allPassRegex]=function(Bn,Hn){var zn=new RegExp(Hn);return!!Bn.length&&Bn.map((function(Bn){return zn.test(Bn)})).every((function(Bn){return Bn}))},ng[ig.allPathIncludes]=rr,ng[ig.filterRegex]=function(Bn,Hn){var zn=new RegExp(Hn);return!!Bn.length&&Bn.filter((function(Bn){return zn.test(Bn)}))},ng[ig.includesRegex]=function(Bn,Hn){var zn=new RegExp(Hn);return!!Bn.length&&Bn.map((function(Bn){return zn.test(Bn)})).some((function(Bn){return Bn}))},ng[ig.allFormattingChange]=function(Bn){try{return Bn.every((function(Bn){var Hn=Bn.original_content,zn=Bn.original_file,ni=xa.format(Bn.new_content,{semi:!1,singleQuote:!0,filepath:Bn.new_file}),Ci=xa.format(Hn,{semi:!1,singleQuote:!0,filepath:zn});return tr(ni)===tr(Ci)}))}catch(Bn){return!1}},ng);!function(Bn){Bn.created="created",Bn.edited="edited"}(bg||(bg={})),function(Bn){Bn.open="opened",Bn.reopen="reopen",Bn.closed="closed",Bn.synchronize="synchronize",Bn.assigned="assigned",Bn.converted_to_draft="converted_to_draft",Bn.labeled="labeled",Bn.unlabeled="unlabeled",Bn.ready_for_review="ready_for_review",Bn.review_request_removed="review_request_removed",Bn.review_requested="review_requested",Bn.unassigned="unassigned",Bn.edited="edited",Bn.custom_merge="merged"}(Dg||(Dg={}));var Sg,xg,wg=((Eg={})["pull_request_"+Dg.open]="pr_created",Eg["pull_request_"+Dg.custom_merge]="merge",Eg["pull_request_"+Dg.synchronize]="commit",Eg["issue_comment_"+bg.created]="comment_added",Eg["issue_comment_"+bg.edited]="comment_edited",Eg["pull_request_"+Dg.labeled]="label_added",Eg["pull_request_"+Dg.unlabeled]="label_removed",Eg["pull_request_"+Dg.ready_for_review]="pr_ready_for_review",Eg["pull_request_"+Dg.closed]="pr_closed",Eg["pull_request_"+Dg.assigned]="pr_assigned",Eg["pull_request_"+Dg.reopen]="pr_reopen",Eg),Tg=new Set(["pull_request_"+Dg.custom_merge]),fr=function(Bn){return Tg.has(Bn)};!function(Bn){Bn.cbLeft="_GITSTREAM_CB_LEFT_",Bn.cbRight="_GITSTREAM_CB_RIGHT_",Bn.automations="automations",Bn.errors="errors",Bn.analytics="analytics",Bn.validatorErrors="validatorErrors"}(Sg||(Sg={})),function(Bn){Bn.FiltersValidator="FiltersValidator",Bn.ActionsValidator="ActionsValidator",Bn.FileStructureValidator="FileStructureValidator",Bn.SavedWordsValidator="SavedWordsValidator",Bn.ContextVariableValidator="ContextVariableValidator"}(xg||(xg={}));var kg,dr=function(Bn,Hn,zn){var ni,Ci,ts,Ps;if(!Bn)return!1;var u=function(Hn){var zn=function(Bn){if(null==Bn||!Bn.startsWith("r/"))return null;var Hn=$(Bn);return new RegExp(Hn)}(Hn);return zn?zn.test(Bn):Bn===Hn},aa=zn.triggers;if(!aa)return!1;var oa=null!=(ni=null==(Ci=aa.include)?void 0:Ci[Hn])?ni:[],ca=null!=(ts=null==(Ps=aa.exclude)?void 0:Ps[Hn])?ts:[],_a=null==ca?void 0:ca.some(u),xa=oa.length>0&&!oa.some(u);return!(!_a&&!xa)},Ig=function(){function e(Bn,Hn,zn,Ci,ts,aa,oa,_a){var xa=this;void 0===Ci&&(Ci=""),void 0===ts&&(ts={}),void 0===aa&&(aa=""),void 0===oa&&(oa=""),void 0===_a&&(_a=!1),this.renderedRuleFile={},this.context={},this.lastParserResult={},this.errors={},this.validatorErrors={},this.webhookEvent="",this.webhookEvents={},this.externalPlugins={filters:{org:{},repo:{}}},this.validateAutomationNames=function(Bn){try{(new ni.AutomationNamesValidator).validate({yamlFile:Bn})}catch(Bn){var Hn;Q({errorName:"syntax error",error:Bn},xa.isDebug),xa.errors=O({},xa.errors,((Hn={})[60]="syntax error",Hn))}},this.isDebug=zn,this.env=new ca.Environment(new ca.FileSystemLoader(__dirname),{autoescape:!1}),this.webhookEvent=Ci,this.webhookEvents=ts,this.isPlayground=_a,this.isPlayground||(this.externalPlugins=function(Bn,Hn){var zn={filters:{org:{},repo:{}}};return[{externalPath:Fc.join(Bn,"filters"),level:vg.REPO},{externalPath:Fc.join(Hn,"filters"),level:vg.ORG}].forEach((function(Bn){var Hn=Bn.externalPath,ni=Bn.level;Hn&&dc.existsSync(Hn)&&dc.readdirSync(Hn).forEach((function(Bn){var Ci=Fc.join(Hn,Bn);if(dc.existsSync(Ci)){Ga.execSync("npm init -y",{cwd:Ci});try{zn.filters[ni][Bn]=require(Ci)}catch(Hn){throw console.log("Failed to load filter: "+Bn+": "+Hn.message),new Error("Failed to load filter "+Bn+": "+Hn.message)}}}))})),zn}(aa,oa));var Ha=[].concat(Object.keys(this.externalPlugins.filters.org),Object.keys(this.externalPlugins.filters.repo)),so=[].concat(ni.validatorsConstants.JINJA_FILTERS,Object.keys(ni.validatorsConstants.VALID_FILTERS)),oo=Ps.intersection(Ha,so);if(oo.length)throw new Qf("Overrding native filters is not allowed","Overrding native filters is not allowed, the user filter"+(oo.length>1?"s":"")+" "+oo.join(", ")+" conflicts");var Jo=O({},Td,Ag,Cg),tc=O({},this.externalPlugins.filters.org,this.externalPlugins.filters.repo);Object.keys(Jo).forEach((function(Bn){xa.env.addFilter(Bn,Jo[Bn],yg[Bn])})),Object.keys(tc).forEach((function(Bn){var Hn,zn=tc[Bn]instanceof Function?Bn.toLowerCase().includes("async"):null!=(Hn=tc[Bn].async)&&Hn;xa.env.addFilter(Bn,function(Bn,Hn,zn){return void 0===zn&&(zn=!1),zn?R(_().mark((function t(){var zn,ni,Ci,ts=arguments;return _().wrap((function(Ps){for(;;)switch(Ps.prev=Ps.next){case 0:for(zn=ts.length,ni=new Array(zn),Ci=0;Ci "+ni}({branch:Hn,file:Bn})),dc.readFileSync(ni?ty.cwd+"/"+zn+"/"+Bn:"./code/"+zn+"/"+Bn,"utf8")}catch(Hn){return Wr()&&console.error("Error in reading file "+ty.cwd+"/"+zn+"/"+Bn+".",Hn),""}},ft=function(Bn,Hn){at(rt(Bn));var zn="cm"===(null==Hn?void 0:Hn.toLowerCase())?at(tt("*.cm")):at(tt(".cm/*.cm"));return at(rt("-")),zn.split("\n").filter(Boolean)},ry=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps,aa;return _().wrap((function(oa){for(;;)switch(oa.prev=oa.next){case 0:ni={orgRulesToInclude:[],orgRulesToExclude:[]},Ci=_().mark((function e(){var Ci,aa,oa,ca,_a,xa;return _().wrap((function(Ga){for(;;)switch(Ga.prev=Ga.next){case 0:return oa=Ps[ts],Ga.next=3,hA(zn,Bn[oa],oa);case 3:_a=(null==(ca=Ga.sent)||null==(Ci=ca.config)?void 0:Ci.include_repositories)||[],xa=(null==ca||null==(aa=ca.config)?void 0:aa.ignore_repositories)||[],Ga.prev=6,_a.length&&(_a.some((function(Bn){return!!K(Hn,Bn)&&(ni.orgRulesToInclude.push(oa),!0)}))||ni.orgRulesToExclude.push(oa)),xa.forEach((function(Bn){K(Hn,Bn)&&ni.orgRulesToExclude.push(oa)})),Ga.next=15;break;case 11:return Ga.prev=11,Ga.t0=Ga.catch(6),Ga.next=15,sA(Ga.t0.message,60,zn,oa);case 15:case"end":return Ga.stop()}}),e,null,[[6,11]])})),ts=0,Ps=Object.keys(Bn);case 3:if(!(ts0)){Ci.next=4;break}return ni=zn.reduce((function(Hn,zn){var ni;return O({},Hn,((ni={})[zn]=lt(zn,Bn),ni))}),{}),Ci.abrupt("return",ni);case 4:return Ci.abrupt("return",{});case 5:case"end":return Ci.stop()}}),e)})));return function(Hn,zn){return Bn.apply(this,arguments)}}(),ht=function(Bn){return Number(at((Hn=Bn,"git rev-list --count HEAD ^"+hr(Hn))).trim());var Hn},mt=function(Bn,Hn,zn){try{var ni=at(nt({refBranch:Hn,baseBranch:Bn,format:"%an",mergeCommitSha:zn})),Ci=at(nt({refBranch:Hn,baseBranch:Bn,format:"%ae",mergeCommitSha:zn})),ts=(null==ni?void 0:ni.trim())+" <"+(null==Ci?void 0:Ci.trim())+">";return Br({fullAuthorName:ts,currBranch:at("git branch --show-current")}),{fullAuthorName:ts,authorName:ni,authorEmail:Ci}}catch(Bn){return console.log("error getting branch author name: "+Bn),{}}},gt=function(Bn,Hn,zn,ni){return at(ey),"cm"===(null==zn?void 0:zn.toLowerCase())?Boolean(at(it({baseBranch:Hn,refBranch:Bn,file:"*.cm",mergeCommitSha:ni}))):Boolean(at(it({baseBranch:Hn,refBranch:Bn,file:".cm/*.cm",mergeCommitSha:ni})))},bt=function(Bn,Hn){try{var zn=at(Zr({targetBranch:Bn,refBranch:Hn}));return Br({conflicts:zn,rawCommand:Zr({targetBranch:Bn,refBranch:Hn})}),(null==zn?void 0:zn.split("\n").filter(Boolean).length)||0}catch(Bn){return Br("error getting pr conflicts: : "+Bn),0}},yt=function(Bn,Hn,zn){return at(zn?"git show -m "+zn+" --format=%B --no-patch":"git log "+br(Bn)+".."+br(Hn)+" --format=%B").split("\n").filter((function(Bn){return""!==Bn.trim()}))},xt=function(Bn){try{dc.writeFileSync("./code/cache.json",JSON.stringify(Bn))}catch(Bn){console.log("error saving cache",Bn)}},wt=function(){try{var Bn=dc.readFileSync("./code/cache.json").toString();return JSON.parse(Bn)}catch(Bn){return console.warn("error loading from cache",Bn),{}}},kt=function(Bn,Hn,zn){var ni={org:zn.owner,repo:zn.repo,pullRequestNumber:zn.pullRequestNumber,branch:zn.branch,triggeredBy:zn.triggeredBy},Ci=function(Bn,Hn){var zn=Hn.reduce((function(Hn,zn){var ni,Ci,ts;return"/dev/null"===zn?Hn:O({},Hn,((ts={})[zn]=O({},{blame:(null==(ni=Bn.ds_blame)?void 0:ni[zn])||""},{activity:(null==(Ci=Bn.ds_activity)?void 0:Ci[zn])||""}),ts))}),{});return Object.keys(zn).reduce((function(Bn,Hn){var ni;return Object.keys(zn[Hn]).length?O({},Bn,((ni={})[Hn]=zn[Hn],ni)):Bn}),{})}(Bn,Hn);return{merge_dict:Bn.git_to_provider_user,pr_files:Ci,context:ni}},_t=function(Bn,Hn){var zn,ni=Hn.owner,Ci=Hn.repo,ts=Hn.pullRequestNumber;return"github"===(null==(zn=Bn.repo)?void 0:zn.provider)?"github.com/"+ni+"/"+Ci+"/pull/"+ts:"gitlab.com/"+ni+"/"+Ci+"/-/merge_requests/"+ts},iy=function(){var Bn=R(_().mark((function e(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa;return _().wrap((function(ca){for(;;)switch(ca.prev=ca.next){case 0:if(ca.prev=0,Bn.analytics_url){ca.next=3;break}return ca.abrupt("return");case 3:return oa={userId:(null==(Ci=ni.repo)?void 0:Ci.provider)+"-"+(null==(ts=ni.repo)?void 0:ts.pr_author),event:"action_filter",properties:O({filter_name:Hn},zn,{repo:Bn.repo,author:null==(Ps=ni.repo)?void 0:Ps.pr_author,git_org_name:Bn.owner,git_provider:null==(aa=ni.repo)?void 0:aa.provider,pr_url:_t(ni,Bn),is_org_level:Bn.hasCmRepo,trigger_id:Bn.trigger_id})},ca.next=6,so({method:"post",url:Bn.analytics_url,data:O({},oa,{type:"onCMFilterUse"}),headers:{"Content-type":"application/json"}});case 6:ca.next=13;break;case 8:if(ca.prev=8,ca.t0=ca.catch(0),!(ca.t0 instanceof Error)){ca.next=13;break}return ca.next=13,Vg("warn","Unable to call segment for pr "+(null==Bn?void 0:Bn.owner)+"/"+(null==Bn?void 0:Bn.repo)+"/"+(null==Bn?void 0:Bn.pullRequestNumber),Bn,{error:null==ca.t0?void 0:ca.t0.message},!0);case 13:case"end":return ca.stop()}}),e,null,[[0,8]])})));return function(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}(),py=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni;return _().wrap((function(Ci){for(;;)switch(Ci.prev=Ci.next){case 0:return ni=Object.keys(Bn||{}).map((function(ni){return iy(Hn,ni,Bn[ni],zn)})),Ci.next=3,Promise.all(ni);case 3:case"end":return Ci.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Ot=function(Bn){return Buffer.from(Bn,"base64").toString("utf-8")},St=function(Bn){var Hn={"pr.description":"pr.description | nl2br | dump | safe"};return Object.keys(Hn).reduce((function(Bn,zn){return Bn.replaceAll(zn,Hn[zn])}),Bn)},jt=function(Bn){return void 0===Bn&&(Bn=""),Bn.replace(/^upstream\//,"")},Ft=function(Bn){var Hn=Bn.file;return"git blame "+hr(Bn.branch)+" --line-porcelain -- "+yr(Hn)},Ct=function(Bn){return Bn.reduce((function(Bn,Hn,zn){var ni=zn>0&&Bn.find((function(Bn){return Bn.git_user===Hn.git_user&&Bn.week===Hn.week}));return ni?(ni.changes+=Hn.changes,ni.week=Hn.week):Bn.push({git_user:Hn.git_user,week:Hn.week,changes:Hn.changes}),Bn}),[]).reduce((function(Bn,Hn){var zn,ni=Hn.git_user,Ci=Hn.week,ts=Hn.changes;return Bn[ni]=Bn[ni]||{},Bn[ni]=O({},Bn[ni],((zn={})["week_"+Ci]=ts,zn)),O({},Bn)}),{})},fy=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa;return _().wrap((function(ca){for(;;)switch(ca.prev=ca.next){case 0:if(Bn){ca.next=6;break}return ni=zn.owner,Ci=zn.repo,ts=zn.pullRequestNumber,Br("Couldn't find git dates for author: "+Hn.branch.author+", base branch: "+Hn.branch.base+", head branch: "+Hn.branch.name),ca.next=5,Vg("info","No data returned from git in pr "+ni+"/"+Ci+"/"+ts,zn,{author:Hn.branch.author,baseBranch:Hn.branch.base,headBranch:Hn.branch.name},Lg);case 5:return ca.abrupt("return",0);case 6:return Ps=new Date,aa=new Date(Bn),oa=aa.getTime()-Ps.getTime(),ca.abrupt("return",Math.abs(Math.ceil(oa/864e5)));case 10:case"end":return ca.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Nt=function(Bn,Hn){var zn;return null==(zn=lt(Bn,Hn))?void 0:zn.split(/\r\n|\r|\n/)},At=function(Bn){var Hn=aa(Bn),zn=Object.keys(Hn).reduce((function(Bn,zn){var ni;return O({},Bn,((ni={})[zn]=Hn[zn].dsBlame,ni))}),{});return Object.keys(Hn).forEach((function(Bn){Hn[Bn].dsBlame&&delete Hn[Bn].dsBlame})),{formattedBlame:Hn,dsBlame:zn}},Bt=function(Bn){var Hn=aa(Bn),zn=Object.keys(Hn).reduce((function(Bn,zn){var ni;return O({},Bn,((ni={})[zn]=Hn[zn].dsActivity,ni))}),{});return Object.keys(Hn).forEach((function(Bn){Hn[Bn].dsActivity&&delete Hn[Bn].dsActivity})),{formattedActivity:Hn,dsActivity:zn}},Lt=function(Bn,Hn){var zn;return null==(zn=at(function(Bn){var Hn=Bn.author;return"git log "+hr(Bn.branch)+" --author="+hr(Hn)+" --format='%as' | sort | uniq"}({author:Bn,branch:Hn})))||null==(zn=zn.split("\n"))?void 0:zn.filter(Boolean)},It=function(Bn,Hn,zn){var ni,Ci=at(function(Bn){var Hn=Bn.file,zn=Bn.since;return"git log --no-merges "+hr(Bn.branch)+" --since='"+zn+"' --pretty=tformat:'%an <%ae>,%ad' --numstat -- "+yr(Hn)}({branch:Bn,since:Hn,file:zn})),ts=function(Bn){for(var Hn=[],zn=0;zn")+1).replace("+","\\+")),ts=new RegExp(Ci,"g");return Br("formatted author: "+Ci+". matches: "+(Bn.match(ts)||[]).length),(Bn.match(ts)||[]).length}catch(Bn){return console.log("Failed getting author lines of file "+zn+". "+Bn),0}}(Bn,Hn,zn),ts=function(Bn,Hn){var zn,ni;return function(Bn,Hn){var zn=Nt(Bn,Hn);return Br("all rows: "+zn.length+". isEmpty: "+(""===(null==zn?void 0:zn[(null==zn?void 0:zn.length)-1]))),""===(null==zn?void 0:zn[(null==zn?void 0:zn.length)-1])}(Bn,Hn)?(null==(zn=Nt(Bn,Hn))?void 0:zn.length)-1:null==(ni=Nt(Bn,Hn))?void 0:ni.length}(zn,ni);return Br("calculateStatisticsForBlame: "+Ci+", "+ts),{authorLines:Ci,allLinesCount:ts}}(ts,ni,zn,Hn);return O({},Bn,((Ci={})[ni]=(aa=oa.allLinesCount,(Ps=oa.authorLines)&&aa?Ps>=aa?100:Ps/aa*100:0),Ci.dsBlame=ts.replaceAll("\nauthor-mail"," author-mail"),Ci))}),{}),ni))}),{}))},Dt=function(Bn,Hn,zn){var ni,Ci;if(void 0===Bn&&(Bn=""),void 0===Hn&&(Hn=""),void 0===zn&&(zn=""),!Bn||"string"!=typeof Bn)return null;var ts=Bn.includes("@")?Bn.split("@")[0]:Bn;return(ts=(ts=null!=(ni=ts)&&ni.includes("+")?ts.split("+")[1]:ts).replace(/\./g,"")).includes(zn)||ts.includes(Hn)||(null==(Ci=Hn)?void 0:Ci.includes(ts))||zn===ts},qt=function(Bn,Hn){if(void 0===Bn&&(Bn=""),void 0===Hn&&(Hn=""),!Hn||!Bn||"string"!=typeof Bn||"string"!=typeof Hn)return!1;var zn=Hn.trim().toLowerCase(),ni=Bn.trim().toLowerCase();return null==ni?void 0:ni.includes(zn)},Mt=function(Bn){return Bn.map((function(Bn){return{login:Bn.login,name:Bn.name}})).filter((function(Bn){return Bn.login||Bn.name}))},Vt=function(Bn){return Object.keys(Bn).map((function(Hn){var zn=Hn.split(" ");return{email:zn.pop(),login:zn.join(""),name:zn[0],lastName:zn[1],fullName:zn.join(" "),reversedName:(zn[1]||"")+zn[0],contributor:Hn,contributions:Bn[Hn]}}))},Ty=function(){var Bn=R(_().mark((function e(Bn,Hn){var zn,ni,Ci,ts,Ps;return _().wrap((function(aa){for(;;)switch(aa.prev=aa.next){case 0:return aa.prev=0,ni=(null==Bn||null==(zn=Bn.config)||null==(zn=zn.user_mapping)?void 0:zn.reduce((function(Bn,Hn){var zn,ni,Ci=Object.keys(Hn)[0],ts=null!=(zn=Hn[Ci])?zn:Ci;return O({},Bn,((ni={})[Ci]=ts,ni))}),{}))||{},aa.abrupt("return",ni);case 5:return aa.prev=5,aa.t0=aa.catch(0),Ci=Hn.owner,ts=Hn.repo,Ps=Hn.pullRequestNumber,aa.next=10,Vg("info","Failed to parse user_mapping for pr "+Ci+"/"+ts+"/"+Ps,Hn,{error:null==aa.t0?void 0:aa.t0.message},!0);case 10:return console.log("Failed to parse user_mapping: ",aa.t0),aa.abrupt("return",{});case 12:case"end":return aa.stop()}}),e,null,[[0,5]])})));return function(Hn,zn){return Bn.apply(this,arguments)}}(),Gy=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps,aa,oa,ca,_a;return _().wrap((function(xa){for(;;)switch(xa.prev=xa.next){case 0:return xa.prev=0,ni=Mt(Bn),Ci=Vt(Hn),ts={},Ps=[],Ci.forEach((function(Bn){var Hn=ni.find((function(Hn){var zn=Hn.login;return Dt(Bn.email,zn,Hn.name)||qt(Bn.login,zn)}));Bn.contributor&&Hn?ts[Bn.contributor]=Hn.login:Ps.push(Bn)})),aa=[].concat(Ps),Ps=[],aa.forEach((function(Bn){var Hn=ni.find((function(Hn){var zn=Hn.name;return qt(Bn.fullName,zn)||qt(Bn.reversedName,zn)}));Bn.contributor&&Hn?ts[Bn.contributor]=Hn.login:Ps.push(Bn)})),Ps.forEach((function(Bn){Bn.contributor&&(ts[Bn.contributor]=Bn.contributor)})),xa.abrupt("return",ts);case 13:return xa.prev=13,xa.t0=xa.catch(0),oa=zn.owner,ca=zn.repo,_a=zn.pullRequestNumber,xa.next=18,Vg("info","Failed to match contributors for pr: "+oa+"/"+ca+"/"+_a,zn,{error:null==xa.t0?void 0:xa.t0.message},!0);case 18:return console.error("Failed to match contributors",xa.t0),xa.abrupt("return",{});case 20:case"end":return xa.stop()}}),e,null,[[0,13]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Jt=function(Bn,Hn){return Object.keys(Hn).reduce((function(zn,ni){var Ci,ts;return O({},zn,((ts={})[ni]=null!=(Ci=Bn[ni])?Ci:Hn[ni],ts))}),{})},Vy=function(){var Bn=R(_().mark((function e(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa;return _().wrap((function(ca){for(;;)switch(ca.prev=ca.next){case 0:if(Ci=zn.owner,ts=zn.repo,Ps=zn.pullRequestNumber,Bn&&Hn){ca.next=4;break}return console.error("matchContributors failed: not provided data"),ca.abrupt("return",{});case 4:return ca.next=6,Gy(Bn,Hn,zn);case 6:return aa=ca.sent,ca.next=9,Ty(ni,zn);case 9:if(oa=ca.sent,!Object.keys(oa).length){ca.next=14;break}return ca.next=13,Vg("info","got contributors from config for pr: "+Ci+"/"+ts+"/"+Ps,zn,{userMappingFromConfig:oa},!0);case 13:return ca.abrupt("return",Jt(oa,aa));case 14:return ca.abrupt("return",aa);case 15:case"end":return ca.stop()}}),e)})));return function(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}(),Yt=function(Bn){var Hn=Bn.to;return Mg.every((function(Bn){return!Hn.match(Bn)}))},Ht=function(Bn,Hn,zn){return zn.map((function(zn){var ni=zn.from,Ci=zn.to,ts=zn.chunks;return{original_file:"/dev/null"===ni?"":ni,new_file:Ci,diff:null==ts?void 0:ts.reduce((function(Bn,Hn){var zn=Hn.changes;return Bn+Hn.content+"\n"+(null==zn?void 0:zn.map((function(Bn){return Bn.content})).join("\n"))}),""),original_content:st(ut(Hn,Bn),ni),new_content:st(Hn,Ci)}}))},Qt=function(Bn){return Bn.map((function(Bn){var Hn=Bn.to,zn=Bn.from;return{original_file:"/dev/null"===zn?"":zn,new_file:Hn,file:"/dev/null"!==Hn?Hn:zn,deletions:Bn.deletions,additions:Bn.additions}}))},zt=function(Bn){return(null==Bn?void 0:Bn.reduce((function(Bn,Hn){return Bn+Hn.additions+Hn.deletions}),0))||0},Hy=function(){var Bn=R(_().mark((function e(Bn,Hn){var zn,ni,Ci,ts,Ps,aa;return _().wrap((function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.prev=0,ni=Pt(Bn.files,Bn.branch.base),Ci=At(ni),ts=Ci.formattedBlame,Ps=Ci.dsBlame,oa.next=5,fy((_a=void 0,void 0===(ca=Bn.branch.base)&&(ca="develop"),null==(_a=at("git rev-list --max-parents=0 "+hr({branch:ca}.branch)+' --format="%cs"'))||null==(_a=_a.split("\n"))?void 0:_a[1]),Bn,Hn);case 5:return aa=oa.sent,oa.next=8,fy(null==(zn=Lt(Bn.branch.author,Bn.branch.base))?void 0:zn[0],Bn,Hn);case 8:return oa.abrupt("return",{age:aa,author_age:oa.sent,blame:ts,ds_blame:Ps});case 12:return oa.prev=12,oa.t0=oa.catch(0),console.error("Error extracting blame: "+oa.t0.message),oa.next=17,sA("Failed to get git blame context.",41,Hn,"","Failed to get git blame context.: "+oa.t0.message);case 17:return oa.abrupt("return",{});case 18:case"end":return oa.stop()}var ca,_a}),e,null,[[0,12]])})));return function(Hn,zn){return Bn.apply(this,arguments)}}(),Av=function(){var Bn=R(_().mark((function e(Bn){var Hn,zn;return _().wrap((function(ni){for(;;)switch(ni.prev=ni.next){case 0:return ni.prev=0,Hn=Bn.files.reduce((function(Hn,zn){var ni;if("/dev/null"===zn)return Hn;var Ci=It(Bn.branch.base,"52 weeks ago",zn);return O({},Hn,((ni={})[zn]=O({},Ci.groupByWeek,{dsActivity:Ci.dsActivity}),ni))}),{}),zn=Bt(Hn),ni.abrupt("return",{git_activity:zn.formattedActivity,ds_activity:zn.dsActivity});case 6:return ni.prev=6,ni.t0=ni.catch(0),console.error("Error extrating activity: "+ni.t0.message),ni.next=11,sA("Failed to get git activity context.",42,Bn.payload,"","Failed to get git activity context.: "+ni.t0.message);case 11:return ni.abrupt("return",{});case 12:case"end":return ni.stop()}}),e,null,[[0,6]])})));return function(Hn){return Bn.apply(this,arguments)}}(),vv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa,ca;return _().wrap((function(_a){for(;;)switch(_a.prev=_a.next){case 0:if(ts=ni.owner,Ps=ni.repo,aa=ni.pullRequestNumber,oa=Qp(Bn),Hn&&(oa=null==(ca=oa)?void 0:ca.filter(Yt)),null!=(Ci=oa)&&Ci.length){_a.next=6;break}return _a.next=6,Vg("warn","No files changed in rules-engine context for pr: "+ts+"/"+Ps+"/"+aa,ni,{diffCommand:zn},Hn);case 6:return _a.abrupt("return",oa);case 7:case"end":return _a.stop()}}),e)})));return function(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}(),Zt=function(Bn,Hn){try{var zn,ni,Ci=function(Bn,Hn){var zn=Bn.branch.author,ni={author:zn,prevResults:[]};try{var Ci;if(!Object.keys((null==(Ci=Bn.repo)?void 0:Ci.contributors)||[]).includes(zn)){var ts=Object.keys(Hn).filter((function(zn){var ni;return Hn[zn]===(null==(ni=Bn.pr)?void 0:ni.author)}));ts.forEach((function(Hn){var zn=Lt(Hn,Bn.branch.base);1===zn.length&&(ni={author:Hn,prevResults:zn}),ts.length>1&&ni.prevResults.length<=zn.length&&(ni={author:Hn,prevResults:zn})}))}}catch(Bn){Br("Failed getting the right author. Error: "+Bn)}return ni}(Bn,Hn);return Ci.author?{gitName:(null==(zn=Ci.author)?void 0:zn.split("<")[0].replace(/\s*$/,""))+"\n",gitEmail:"<"+(null==Ci||null==(ni=Ci.author)?void 0:ni.split("<")[1]),fullName:Ci.author}:Ci}catch(Bn){return Br("Failed getting the right author. Error: "+Bn),{}}},Ev=function(){var Bn=R(_().mark((function e(Bn,Hn,zn,ni,Ci,ts){var Ps,aa,oa,ca,_a,xa,Ga,Ha,so,oo,Jo,tc,dc,Fc,Jc,Dp,kp,Qp,Up,qp;return _().wrap((function(Vp){for(;;)switch(Vp.prev=Vp.next){case 0:return void 0===ts&&(ts=!1),Ps=zn.owner,aa=zn.repo,oa=zn.pullRequestNumber,ca=zn.visibility,_a=zn.mergeCommitSha,Vp.prev=2,Vp.next=5,hA(zn,ni,Ci);case 5:return so=ct(Bn,Hn,Ha=Vp.sent,_a),oo=so.diff,Jo=so.diffCommand,Vp.next=9,vv(oo,ts,Jo,zn);case 9:return tc=Vp.sent,dc=ht(Bn),Fc=at(function(Bn){return"git shortlog "+hr(Bn)+" -s -n -e"}(Bn)).split("\n").reduce((function(Bn,Hn){var zn,ni=Hn.trim().split("\t"),Ci=ni[1];return O({},Bn,Ci&&((zn={})[Ci]=parseInt(ni[0]),zn))}),{}),Jc=mt(Bn,Hn,_a),(Dp={branch:{name:Hn,base:Bn,author:Jc.fullAuthorName,author_name:Jc.authorName,author_email:Jc.authorEmail,diff:{size:zt(tc),files_metadata:Qt(tc)},num_of_commits:dc,commits:{messages:yt(Bn,Hn,_a)}},source:{diff:{files:Ht(Bn,Hn,tc)}},repo:{name:aa,contributors:Fc,owner:Ps,visibility:ca},files:tc.map((function(Bn){return Bn.to})),pr:O({},(Wp=zn.prContext,zp=void 0,Qf=void 0,Yf=void 0,Kf=void 0,Xf=void 0,Ad=void 0,O({},Wp,{checks:null==(zp=Wp.checks)?void 0:zp.map((function(Bn){return O({},Bn,{name:Ot(Bn.name)})})),description:Ot(Wp.description),general_comments:null==(Qf=Wp.general_comments)?void 0:Qf.map((function(Bn){return O({},Bn,{content:Ot(Bn.content)})})),line_comments:null==(Yf=Wp.line_comments)?void 0:Yf.map((function(Bn){return O({},Bn,{content:Ot(Bn.content)})})),comments:null==(Kf=Wp.comments)?void 0:Kf.map((function(Bn){return O({},Bn,{content:Ot(Bn.content)})})),reviews:null==(Xf=Wp.reviews)?void 0:Xf.map((function(Bn){var Hn;return O({},Bn,{content:Ot(Bn.content),conversations:null==(Hn=Bn.conversations)?void 0:Hn.map((function(Bn){return O({},Bn,{content:Ot(Bn.content)})}))})})),conversations:null==(Ad=Wp.conversations)?void 0:Ad.map((function(Bn){return O({},Bn,{content:Ot(Bn.content)})}))})),{repo:aa})}).pr=O({},Dp.pr,{conflicted_files_count:bt(Dp.pr.target,Dp.branch.name)}),Vp.next=17,Vy(Dp.pr.contributors,Dp.repo.contributors,zn,Ha);case 17:return Qp=Zt(Dp,kp=Vp.sent),Object.keys(Qp).length&&(Dp.branch.author=Qp.fullName,Dp.branch.author_name=Qp.gitName,Dp.branch.author_email=Qp.gitEmail),Br("context.branch: "+JSON.stringify(Dp.branch,null,2)),Vp.next=23,Hy(Dp,zn);case 23:return Up=Vp.sent,Vp.next=26,Av(Dp);case 26:return Dp.repo=O({},Dp.repo,{provider:zn.source,git_to_provider_user:kp},Up,Vp.sent,{pr_author:null==(xa=Dp.pr)?void 0:xa.author}),Br("context.repo: "+JSON.stringify(Dp.repo,null,2)),Jp=JSON.stringify({context:{repo:Dp.repo,files:Dp.files,branch:Dp.branch,pr:{contributors:null==(Ga=Dp.pr)?void 0:Ga.contributors}}}),qp=Buffer.from(Jp).toString("base64"),Vp.next=32,Vg("info","rules-engine context for pr: "+Ps+"/"+aa+"/"+oa,zn,{reducedContext:qp,diffCommand:Jo},Lg);case 32:return Vp.abrupt("return",Dp);case 35:return Vp.prev=35,Vp.t0=Vp.catch(2),console.error("Failed to get PR context: "+Vp.t0.message),Vp.next=40,Vg("error","Failed to get PR context.",zn,{error:null==Vp.t0?void 0:Vp.t0.message,ruleFile:Ci},!0);case 40:return Vp.next=42,sA("Failed to get PR context.",40,zn,Ci);case 42:return Vp.abrupt("return",{});case 43:case"end":return Vp.stop()}var Jp,Wp,zp,Qf,Yf,Kf,Xf,Ad}),e,null,[[2,35]])})));return function(Hn,zn,ni,Ci,ts,Ps){return Bn.apply(this,arguments)}}(),bv=/^.*#.*$/gm,Cv=/^\s*\n/gm,Sv=/-.*action( )*:.*/gi,xv=/-.*action.*: /gi,wv=/{[\s]+{|}[\s]+}/gi,Tv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(ni){for(;;)switch(ni.prev=ni.next){case 0:if(Bn.includes("automations:")){ni.next=3;break}return ni.next=3,sA("Missing `automations` keyword in *.cm",61,zn,Hn);case 3:case"end":return ni.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),kv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var Ci,ts,Ps;return _().wrap((function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(ts=Object.values(ni.validatorsConstants.SUPPORTED_ACTIONS_BY_PROVIDER[null!=(Ci=zn.source)?Ci:""]||ni.validatorsConstants.SUPPORTED_ACTIONS_BY_PROVIDER.default),!(Ps=Bn.filter((function(Bn){return!ts.includes(Bn)}))).length){aa.next=5;break}return aa.next=5,sA("The following actions are not supported: "+Ps.map((function(Bn){return"`"+Bn+"`"})).join(", ")+" [Supported actions](https://docs.gitstream.cm/automation-actions/)",62,zn,Hn);case 5:case"end":return aa.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Iv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(ni){for(;;)switch(ni.prev=ni.next){case 0:if(!Bn.match(wv)){ni.next=3;break}return ni.next=3,sA("There are spaces between the currly braces { { and } }",64,zn,Hn);case 3:case"end":return ni.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Bv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(Ci){for(;;)switch(Ci.prev=Ci.next){case 0:Bn.forEach(function(){var Bn=R(_().mark((function e(Bn){var Ci,ts,Ps;return _().wrap((function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(Ci=Bn.action,ts=Object.keys(Bn.args||{}),Ps=function(Bn){return ts.includes(Bn)},ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci]){aa.next=5;break}return aa.abrupt("return");case 5:if(!(ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].all?!ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].args.every(Ps):!ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].args.some(Ps))){aa.next=9;break}return aa.next=9,sA("Missing required args for action: `"+Ci+"`: ["+ni.validatorsConstants.REQUIRED_ARGUMENTS_BY_ACTIONS[Ci].args.filter((function(Bn){return!ts.includes(Bn)})).map((function(Bn){return""+Bn})).join(", ")+"]",65,zn,Hn);case 9:case"end":return aa.stop()}}),e)})));return function(Hn){return Bn.apply(this,arguments)}}());case 1:case"end":return Ci.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Fv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(Ci){for(;;)switch(Ci.prev=Ci.next){case 0:return Ci.abrupt("return",Bn.forEach(function(){var Bn=R(_().mark((function e(Bn){var Ci,ts;return _().wrap((function(Ps){for(;;)switch(Ps.prev=Ps.next){case 0:if(Ci=Bn.action,null==(ts=Object.keys(Bn.args||{}).filter((function(Bn){var Hn;return!(null!=(Hn=ni.validatorsConstants.SUPPORTED_ARGUMENTS_BY_ACTION[Ci])&&Hn.includes(Bn))})))||!ts.length){Ps.next=5;break}return Ps.next=5,sA("These arguments are not supported for `"+Ci+"`: ["+ts.map((function(Bn){return""+Bn})).join(", ")+"]",63,zn,Hn);case 5:case"end":return Ps.stop()}}),e)})));return function(Hn){return Bn.apply(this,arguments)}}()));case 1:case"end":return Ci.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Nv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci;return _().wrap((function(ts){for(;;)switch(ts.prev=ts.next){case 0:return ts.prev=0,ni=Kr(Bn),Ci=Object.values(ni.automations).flatMap((function(Bn){return Bn.run})),ts.next=5,Fv(Ci,Hn,zn);case 5:return ts.next=7,Bv(Ci,Hn,zn);case 7:ts.next=13;break;case 9:return ts.prev=9,ts.t0=ts.catch(0),ts.next=13,sA(ts.t0,60,zn,Hn);case 13:case"end":return ts.stop()}}),e,null,[[0,9]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Ov=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(Ci){for(;;)switch(Ci.prev=Ci.next){case 0:Ci.prev=0,(new ni.SavedWordsValidator).validate({yamlFile:Bn}),Ci.next=8;break;case 4:return Ci.prev=4,Ci.t0=Ci.catch(0),Ci.next=8,sA(Ci.t0,60,zn,Hn);case 8:case"end":return Ci.stop()}}),e,null,[[0,4]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),Mv=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){return _().wrap((function(Ci){for(;;)switch(Ci.prev=Ci.next){case 0:Ci.prev=0,(new ni.AutomationNamesValidator).validate({yamlFile:Bn}),Ci.next=8;break;case 4:return Ci.prev=4,Ci.t0=Ci.catch(0),Ci.next=8,sA(Ci.t0,60,zn,Hn);case 8:case"end":return Ci.stop()}}),e,null,[[0,4]])})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),OE=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts;return _().wrap((function(Ps){for(;;)switch(Ps.prev=Ps.next){case 0:return Ci=Bn.replace(bv,"").replace(Cv,""),Ps.next=3,Tv(Ci,Hn,zn);case 3:return Ps.next=5,Iv(Ci,Hn,zn);case 5:return ts=(null==(ni=Ci.match(Sv))?void 0:ni.map((function(Bn){return Bn.replace(xv,"").trim()})))||[],Ps.next=8,kv(ts,Hn,zn);case 8:return Ps.next=10,Nv(Ci,Hn,zn);case 10:return Ps.next=12,Ov(Bn,Hn,zn);case 12:return Ps.next=14,Mv(Bn,Hn,zn);case 14:case"end":return Ps.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),iD=["ds_blame","ds_activity"],eC=Fc.join(".cm","plugins"),tC=function(){var Bn=R(_().mark((function e(Bn,Hn,zn){var ni,Ci,ts,Ps;return _().wrap((function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(Bn){aa.next=2;break}return aa.abrupt("return");case 2:return ni=Object.keys(Bn).filter((function(Hn){return Bn[Hn].passed})),Ci=ni.filter((function(Hn){return Bn[Hn].isManagedByTriggers})).length,ts=Ci>0,Ps=Object.keys(Bn).length,aa.next=8,Vg("info",ni.length+" out of "+Ps+" automations have passed for repo "+Hn,zn,{passedAutomations:ni.length,numOfManagedByTriggers:Ci,passedAutomationNames:ni,totalAutomations:Ps},ts);case 8:case"end":return aa.stop()}}),e)})));return function(Hn,zn,ni){return Bn.apply(this,arguments)}}(),rC=function(){var Bn=R(_().mark((function e(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa,ca,_a,xa,Ga;return _().wrap((function(Ha){for(;;)switch(Ha.prev=Ha.next){case 0:return Ci=zn.repo,ts=zn.webhookEventName,Ps=zn.webhookEventNames,Ha.prev=1,Ha.next=4,OE(Bn,ni,zn);case 4:return aa=Wr(),oa=new Ig(Bn,Hn,Lg,ts,Ps,Fc.resolve(process.cwd(),ty.cwd,oA.DEFAULT,eC),Fc.resolve(process.cwd(),ty.cwd,oA.CM,"plugins"),aa),Ha.next=8,oa.parseStreams();case 8:return ca=Ha.sent,Ha.next=11,tC(null==ca?void 0:ca.automations,Ci,zn);case 11:return Ha.abrupt("return",ca);case 14:return Ha.prev=14,Ha.t0=Ha.catch(1),_a=zn.owner,xa=zn.repo,Ga=zn.pullRequestNumber,console.error("Failed to parse cm file",{ruleFile:ni,error:Ha.t0.message}),Ha.next=20,Vg("error","Failed to parse cm in pr "+_a+"/"+xa+"/"+Ga,zn,{error:null==Ha.t0?void 0:Ha.t0.message,rules:Bn,ruleFile:ni});case 20:return Ha.next=22,sA(Ha.t0,60,zn,ni);case 22:case"end":return Ha.stop()}}),e,null,[[1,14]])})));return function(Hn,zn,ni,Ci){return Bn.apply(this,arguments)}}(),xn=function(Bn){return O({},Bn,{repo:function(Bn,Hn){if(null==Bn)return{};var zn,ni,Ci={},ts=Object.keys(Bn);for(ni=0;ni=0||(Ci[zn]=Bn[zn]);return Ci}(Bn.repo||{},iD)})},wn=function(Bn){try{return Bn?Object.values(Bn.automations||{}).filter((function(Bn){return Bn.passed})).flatMap((function(Bn){return Bn.run.map((function(Bn){var Hn=Bn.args;return"- "+Bn.action+" "+Object.keys(Hn||{}).filter(Boolean).map((function(Bn){var zn,ni=Hn[Bn];return null!=(zn=ni)&&zn.toString().match(/^base64:*/g)&&(ni=function(Bn){if(Bn.match(/^base64:*/g)){var Hn=Bn.split("base64:")[1];return Ot(Hn)}return Bn}(ni)),Bn+': "'+(ni?ni.toString().replace("\n","\\n"):"")+'"'})).join(" and ")}))})).join("\n"):""}catch(Hn){return console.log("[gitstream-core] | Failed to stringify parser results",{error:Hn,results:Bn}),"Failed to stringify parser results"}},nC=function(){var Bn=R(_().mark((function e(Bn){var Hn,zn,ni,Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha;return _().wrap((function(so){for(;;)switch(so.prev=so.next){case 0:return Hn=Bn.ruleFileContent,zn=Bn.payload,ni=Bn.baseBranch,Ci=Bn.refBranch,Ps=void 0===(ts=Bn.ruleFile)?"playground.cm":ts,aa=Bn.cloneRepoPath,oa={},so.prev=2,ty.cwd=aa,console.log("[gitstream-core] | build gitstream context for pr: "+zn.prContext.url),so.next=7,Ev(ni,Ci,zn,Hn,Ps,gt);case 7:return ca=so.sent,console.log("[gitstream-core] | successfuly get context for: "+zn.prContext.url+", attach expert reviewers"),_a=kt(ca.repo,ca.files,zn),console.log("[gitstream-core] | successfuly get expert reviewers for: "+zn.prContext.url),(oa=xn(ca)).repo=O({},oa.repo,{data_service:{expert_reviwer_request:_a}}),oa.branch.name=jt(oa.branch.name),console.log("[gitstream-core] | convert rule file to string safe: "+zn.prContext.url),xa=St(Hn),console.log("[gitstream-core] | successfult convert rule file to string safe: "+zn.prContext.url+", parse rules"),so.next=19,rC(xa,oa,zn,Ps);case 19:return Ga=so.sent,console.log("[gitstream-core] | successfult parse rules for: "+zn.prContext.url+", stringify results",{results:Ga}),Ha=wn(Ga),so.abrupt("return",{results:Ha,context:oa,errors:Yr().stringifyErrors((null==Ga?void 0:Ga.errors)||{}),raw:Ga});case 25:return so.prev=25,so.t0=so.catch(2),console.error("[gitstream-core] | Failed to execute one rule file for: "+zn.prContext.url,so.t0),so.abrupt("return",{results:so.t0.message,context:oa,errors:so.t0.message,raw:{payload:zn}});case 29:case"end":return so.stop()}}),e,null,[[2,25]])})));return function(Hn){return Bn.apply(this,arguments)}}(),iC=function(){var Bn=R(_().mark((function e(Bn){var Hn,zn,ni,Ci,ts,Ps,aa;return _().wrap((function(oa){for(;;)switch(oa.prev=oa.next){case 0:return Hn=Bn.payload,ni=void 0===(zn=Bn.ruleFile)?"playground.cm":zn,Ci=Bn.cachedContext,ts=St(Bn.ruleFileContent),oa.next=4,rC(ts,Ci,Hn,ni);case 4:return aa=wn(Ps=oa.sent),oa.abrupt("return",{results:aa,context:Ci,errors:Yr().stringifyErrors((null==Ps?void 0:Ps.errors)||{}),raw:Ps});case 7:case"end":return oa.stop()}}),e)})));return function(Hn){return Bn.apply(this,arguments)}}(),sC=function(){var Bn=R(_().mark((function e(Bn,Hn,zn,ni){var Ci,ts,Ps,aa,oa,ca,_a,xa,Ga,Ha,so;return _().wrap((function(oo){for(;;)switch(oo.prev=oo.next){case 0:if(Ci=ni.owner,ts=ni.repo,Ps=ni.pullRequestNumber,oo.prev=1,aa=null==Bn?void 0:Bn.validatorErrors,oa=null==Bn?void 0:Bn.errors,!Object.keys(aa||{}).length){oo.next=14;break}ca=0,_a=Object.keys(aa);case 6:if(!(ca<_a.length)){oo.next=14;break}return Br("Validator error - "+(xa=_a[ca])+": "+aa[xa]),oo.next=11,Vg("warn","Validator error - "+xa+" in pr "+Ci+"/"+ts+"/"+Ps,ni,{error:""+aa[xa],ruleFile:Hn,cmContent:zn},!0);case 11:ca++,oo.next=6;break;case 14:if(!Object.keys(oa||{}).length){oo.next=25;break}Ga=0,Ha=Object.keys(oa);case 16:if(!(Ga{"use strict";if(process.env.NODE_ENV==="production"){Bn.exports=zn(93437)}else{Bn.exports=zn(75970)}},49591:Bn=>{(function(Hn){if(true){Bn.exports=Hn()}else{var zn}})((function(){"use strict";var Bn=Object.getOwnPropertyNames;var __commonJS=(Hn,zn)=>function __require(){return zn||(0,Hn[Bn(Hn)[0]])((zn={exports:{}}).exports,zn),zn.exports};var Hn=__commonJS({"dist/_doc.js.umd.js"(Bn,Hn){var zn=Object.create;var ni=Object.defineProperty;var Ci=Object.getOwnPropertyDescriptor;var ts=Object.getOwnPropertyNames;var Ps=Object.getPrototypeOf;var aa=Object.prototype.hasOwnProperty;var __esm=(Bn,Hn)=>function __init(){return Bn&&(Hn=(0,Bn[ts(Bn)[0]])(Bn=0)),Hn};var __commonJS2=(Bn,Hn)=>function __require(){return Hn||(0,Bn[ts(Bn)[0]])((Hn={exports:{}}).exports,Hn),Hn.exports};var __export=(Bn,Hn)=>{for(var zn in Hn)ni(Bn,zn,{get:Hn[zn],enumerable:true})};var __copyProps=(Bn,Hn,zn,Ps)=>{if(Hn&&typeof Hn==="object"||typeof Hn==="function"){for(let oa of ts(Hn))if(!aa.call(Bn,oa)&&oa!==zn)ni(Bn,oa,{get:()=>Hn[oa],enumerable:!(Ps=Ci(Hn,oa))||Ps.enumerable})}return Bn};var __toESM=(Bn,Hn,Ci)=>(Ci=Bn!=null?zn(Ps(Bn)):{},__copyProps(Hn||!Bn||!Bn.__esModule?ni(Ci,"default",{value:Bn,enumerable:true}):Ci,Bn));var __toCommonJS=Bn=>__copyProps(ni({},"__esModule",{value:true}),Bn);var oa=__esm({""(){}});var ca=__commonJS2({"src/document/doc-builders.js"(Bn,Hn){"use strict";oa();function concat(Bn){if(false){}return{type:"concat",parts:Bn}}function indent(Bn){if(false){}return{type:"indent",contents:Bn}}function align(Bn,Hn){if(false){}return{type:"align",contents:Hn,n:Bn}}function group(Bn){let Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(false){}return{type:"group",id:Hn.id,contents:Bn,break:Boolean(Hn.shouldBreak),expandedStates:Hn.expandedStates}}function dedentToRoot(Bn){return align(Number.NEGATIVE_INFINITY,Bn)}function markAsRoot(Bn){return align({type:"root"},Bn)}function dedent(Bn){return align(-1,Bn)}function conditionalGroup(Bn,Hn){return group(Bn[0],Object.assign(Object.assign({},Hn),{},{expandedStates:Bn}))}function fill(Bn){if(false){}return{type:"fill",parts:Bn}}function ifBreak(Bn,Hn){let zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(false){}return{type:"if-break",breakContents:Bn,flatContents:Hn,groupId:zn.groupId}}function indentIfBreak(Bn,Hn){return{type:"indent-if-break",contents:Bn,groupId:Hn.groupId,negate:Hn.negate}}function lineSuffix(Bn){if(false){}return{type:"line-suffix",contents:Bn}}var zn={type:"line-suffix-boundary"};var ni={type:"break-parent"};var Ci={type:"trim"};var ts={type:"line",hard:true};var Ps={type:"line",hard:true,literal:true};var aa={type:"line"};var ca={type:"line",soft:true};var _a=concat([ts,ni]);var xa=concat([Ps,ni]);var Ga={type:"cursor",placeholder:Symbol("cursor")};function join(Bn,Hn){const zn=[];for(let ni=0;ni0){for(let Bn=0;Bn=0){return Bn.charAt(Hn+1)==="\n"?"crlf":"cr"}return"lf"}function convertEndOfLineToChars(Bn){switch(Bn){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function countEndOfLineChars(Bn,Hn){let zn;switch(Hn){case"\n":zn=/\n/g;break;case"\r":zn=/\r/g;break;case"\r\n":zn=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(Hn)}.`)}const ni=Bn.match(zn);return ni?ni.length:0}function normalizeEndOfLine(Bn){return Bn.replace(/\r\n?/g,"\n")}Hn.exports={guessEndOfLine:guessEndOfLine,convertEndOfLineToChars:convertEndOfLineToChars,countEndOfLineChars:countEndOfLineChars,normalizeEndOfLine:normalizeEndOfLine}}});var xa=__commonJS2({"src/utils/get-last.js"(Bn,Hn){"use strict";oa();var getLast=Bn=>Bn[Bn.length-1];Hn.exports=getLast}});function ansiRegex(){let{onlyFirst:Bn=false}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Hn=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(Hn,Bn?void 0:"g")}var Ga=__esm({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){oa()}});function stripAnsi(Bn){if(typeof Bn!=="string"){throw new TypeError(`Expected a \`string\`, got \`${typeof Bn}\``)}return Bn.replace(ansiRegex(),"")}var Ha=__esm({"node_modules/strip-ansi/index.js"(){oa();Ga()}});function isFullwidthCodePoint(Bn){if(!Number.isInteger(Bn)){return false}return Bn>=4352&&(Bn<=4447||Bn===9001||Bn===9002||11904<=Bn&&Bn<=12871&&Bn!==12351||12880<=Bn&&Bn<=19903||19968<=Bn&&Bn<=42182||43360<=Bn&&Bn<=43388||44032<=Bn&&Bn<=55203||63744<=Bn&&Bn<=64255||65040<=Bn&&Bn<=65049||65072<=Bn&&Bn<=65131||65281<=Bn&&Bn<=65376||65504<=Bn&&Bn<=65510||110592<=Bn&&Bn<=110593||127488<=Bn&&Bn<=127569||131072<=Bn&&Bn<=262141)}var so=__esm({"node_modules/is-fullwidth-code-point/index.js"(){oa()}});var oo=__commonJS2({"node_modules/emoji-regex/index.js"(Bn,Hn){"use strict";oa();Hn.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\u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7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\u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uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}});var Jo={};__export(Jo,{default:()=>stringWidth});function stringWidth(Bn){if(typeof Bn!=="string"||Bn.length===0){return 0}Bn=stripAnsi(Bn);if(Bn.length===0){return 0}Bn=Bn.replace((0,tc.default)()," ");let Hn=0;for(let zn=0;zn=127&&ni<=159){continue}if(ni>=768&&ni<=879){continue}if(ni>65535){zn++}Hn+=isFullwidthCodePoint(ni)?2:1}return Hn}var tc;var dc=__esm({"node_modules/string-width/index.js"(){oa();Ha();so();tc=__toESM(oo())}});var Fc=__commonJS2({"src/utils/get-string-width.js"(Bn,Hn){"use strict";oa();var zn=(dc(),__toCommonJS(Jo)).default;var ni=/[^\x20-\x7F]/;function getStringWidth(Bn){if(!Bn){return 0}if(!ni.test(Bn)){return Bn.length}return zn(Bn)}Hn.exports=getStringWidth}});var Jc=__commonJS2({"src/document/doc-utils.js"(Bn,Hn){"use strict";oa();var zn=xa();var{literalline:ni,join:Ci}=ca();var isConcat=Bn=>Array.isArray(Bn)||Bn&&Bn.type==="concat";var getDocParts=Bn=>{if(Array.isArray(Bn)){return Bn}if(Bn.type!=="concat"&&Bn.type!=="fill"){throw new Error("Expect doc type to be `concat` or `fill`.")}return Bn.parts};var ts={};function traverseDoc(Bn,Hn,zn,ni){const Ci=[Bn];while(Ci.length>0){const Bn=Ci.pop();if(Bn===ts){zn(Ci.pop());continue}if(zn){Ci.push(Bn,ts)}if(!Hn||Hn(Bn)!==false){if(isConcat(Bn)||Bn.type==="fill"){const Hn=getDocParts(Bn);for(let Bn=Hn.length,zn=Bn-1;zn>=0;--zn){Ci.push(Hn[zn])}}else if(Bn.type==="if-break"){if(Bn.flatContents){Ci.push(Bn.flatContents)}if(Bn.breakContents){Ci.push(Bn.breakContents)}}else if(Bn.type==="group"&&Bn.expandedStates){if(ni){for(let Hn=Bn.expandedStates.length,zn=Hn-1;zn>=0;--zn){Ci.push(Bn.expandedStates[zn])}}else{Ci.push(Bn.contents)}}else if(Bn.contents){Ci.push(Bn.contents)}}}}function mapDoc(Bn,Hn){const zn=new Map;return rec(Bn);function rec(Bn){if(zn.has(Bn)){return zn.get(Bn)}const Hn=process2(Bn);zn.set(Bn,Hn);return Hn}function process2(Bn){if(Array.isArray(Bn)){return Hn(Bn.map(rec))}if(Bn.type==="concat"||Bn.type==="fill"){const zn=Bn.parts.map(rec);return Hn(Object.assign(Object.assign({},Bn),{},{parts:zn}))}if(Bn.type==="if-break"){const zn=Bn.breakContents&&rec(Bn.breakContents);const ni=Bn.flatContents&&rec(Bn.flatContents);return Hn(Object.assign(Object.assign({},Bn),{},{breakContents:zn,flatContents:ni}))}if(Bn.type==="group"&&Bn.expandedStates){const zn=Bn.expandedStates.map(rec);const ni=zn[0];return Hn(Object.assign(Object.assign({},Bn),{},{contents:ni,expandedStates:zn}))}if(Bn.contents){const zn=rec(Bn.contents);return Hn(Object.assign(Object.assign({},Bn),{},{contents:zn}))}return Hn(Bn)}}function findInDoc(Bn,Hn,zn){let ni=zn;let Ci=false;function findInDocOnEnterFn(Bn){const zn=Hn(Bn);if(zn!==void 0){Ci=true;ni=zn}if(Ci){return false}}traverseDoc(Bn,findInDocOnEnterFn);return ni}function willBreakFn(Bn){if(Bn.type==="group"&&Bn.break){return true}if(Bn.type==="line"&&Bn.hard){return true}if(Bn.type==="break-parent"){return true}}function willBreak(Bn){return findInDoc(Bn,willBreakFn,false)}function breakParentGroup(Bn){if(Bn.length>0){const Hn=zn(Bn);if(!Hn.expandedStates&&!Hn.break){Hn.break="propagated"}}return null}function propagateBreaks(Bn){const Hn=new Set;const zn=[];function propagateBreaksOnEnterFn(Bn){if(Bn.type==="break-parent"){breakParentGroup(zn)}if(Bn.type==="group"){zn.push(Bn);if(Hn.has(Bn)){return false}Hn.add(Bn)}}function propagateBreaksOnExitFn(Bn){if(Bn.type==="group"){const Bn=zn.pop();if(Bn.break){breakParentGroup(zn)}}}traverseDoc(Bn,propagateBreaksOnEnterFn,propagateBreaksOnExitFn,true)}function removeLinesFn(Bn){if(Bn.type==="line"&&!Bn.hard){return Bn.soft?"":" "}if(Bn.type==="if-break"){return Bn.flatContents||""}return Bn}function removeLines(Bn){return mapDoc(Bn,removeLinesFn)}var isHardline=(Bn,Hn)=>Bn&&Bn.type==="line"&&Bn.hard&&Hn&&Hn.type==="break-parent";function stripDocTrailingHardlineFromDoc(Bn){if(!Bn){return Bn}if(isConcat(Bn)||Bn.type==="fill"){const Hn=getDocParts(Bn);while(Hn.length>1&&isHardline(...Hn.slice(-2))){Hn.length-=2}if(Hn.length>0){const Bn=stripDocTrailingHardlineFromDoc(zn(Hn));Hn[Hn.length-1]=Bn}return Array.isArray(Bn)?Hn:Object.assign(Object.assign({},Bn),{},{parts:Hn})}switch(Bn.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{const Hn=stripDocTrailingHardlineFromDoc(Bn.contents);return Object.assign(Object.assign({},Bn),{},{contents:Hn})}case"if-break":{const Hn=stripDocTrailingHardlineFromDoc(Bn.breakContents);const zn=stripDocTrailingHardlineFromDoc(Bn.flatContents);return Object.assign(Object.assign({},Bn),{},{breakContents:Hn,flatContents:zn})}}return Bn}function stripTrailingHardline(Bn){return stripDocTrailingHardlineFromDoc(cleanDoc(Bn))}function cleanDocFn(Bn){switch(Bn.type){case"fill":if(Bn.parts.every((Bn=>Bn===""))){return""}break;case"group":if(!Bn.contents&&!Bn.id&&!Bn.break&&!Bn.expandedStates){return""}if(Bn.contents.type==="group"&&Bn.contents.id===Bn.id&&Bn.contents.break===Bn.break&&Bn.contents.expandedStates===Bn.expandedStates){return Bn.contents}break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!Bn.contents){return""}break;case"if-break":if(!Bn.flatContents&&!Bn.breakContents){return""}break}if(!isConcat(Bn)){return Bn}const Hn=[];for(const ni of getDocParts(Bn)){if(!ni){continue}const[Bn,...Ci]=isConcat(ni)?getDocParts(ni):[ni];if(typeof Bn==="string"&&typeof zn(Hn)==="string"){Hn[Hn.length-1]+=Bn}else{Hn.push(Bn)}Hn.push(...Ci)}if(Hn.length===0){return""}if(Hn.length===1){return Hn[0]}return Array.isArray(Bn)?Hn:Object.assign(Object.assign({},Bn),{},{parts:Hn})}function cleanDoc(Bn){return mapDoc(Bn,(Bn=>cleanDocFn(Bn)))}function normalizeParts(Bn){const Hn=[];const ni=Bn.filter(Boolean);while(ni.length>0){const Bn=ni.shift();if(!Bn){continue}if(isConcat(Bn)){ni.unshift(...getDocParts(Bn));continue}if(Hn.length>0&&typeof zn(Hn)==="string"&&typeof Bn==="string"){Hn[Hn.length-1]+=Bn;continue}Hn.push(Bn)}return Hn}function normalizeDoc(Bn){return mapDoc(Bn,(Bn=>{if(Array.isArray(Bn)){return normalizeParts(Bn)}if(!Bn.parts){return Bn}return Object.assign(Object.assign({},Bn),{},{parts:normalizeParts(Bn.parts)})}))}function replaceEndOfLine(Bn){return mapDoc(Bn,(Bn=>typeof Bn==="string"&&Bn.includes("\n")?replaceTextEndOfLine(Bn):Bn))}function replaceTextEndOfLine(Bn){let Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ni;return Ci(Hn,Bn.split("\n")).parts}function canBreakFn(Bn){if(Bn.type==="line"){return true}}function canBreak(Bn){return findInDoc(Bn,canBreakFn,false)}Hn.exports={isConcat:isConcat,getDocParts:getDocParts,willBreak:willBreak,traverseDoc:traverseDoc,findInDoc:findInDoc,mapDoc:mapDoc,propagateBreaks:propagateBreaks,removeLines:removeLines,stripTrailingHardline:stripTrailingHardline,normalizeParts:normalizeParts,normalizeDoc:normalizeDoc,cleanDoc:cleanDoc,replaceTextEndOfLine:replaceTextEndOfLine,replaceEndOfLine:replaceEndOfLine,canBreak:canBreak}}});var Dp=__commonJS2({"src/document/doc-printer.js"(Bn,Hn){"use strict";oa();var{convertEndOfLineToChars:zn}=_a();var ni=xa();var Ci=Fc();var{fill:ts,cursor:Ps,indent:aa}=ca();var{isConcat:Ga,getDocParts:Ha}=Jc();var so;var oo=1;var Jo=2;function rootIndent(){return{value:"",length:0,queue:[]}}function makeIndent(Bn,Hn){return generateInd(Bn,{type:"indent"},Hn)}function makeAlign(Bn,Hn,zn){if(Hn===Number.NEGATIVE_INFINITY){return Bn.root||rootIndent()}if(Hn<0){return generateInd(Bn,{type:"dedent"},zn)}if(!Hn){return Bn}if(Hn.type==="root"){return Object.assign(Object.assign({},Bn),{},{root:Bn})}const ni=typeof Hn==="string"?"stringAlign":"numberAlign";return generateInd(Bn,{type:ni,n:Hn},zn)}function generateInd(Bn,Hn,zn){const ni=Hn.type==="dedent"?Bn.queue.slice(0,-1):[...Bn.queue,Hn];let Ci="";let ts=0;let Ps=0;let aa=0;for(const Bn of ni){switch(Bn.type){case"indent":flush();if(zn.useTabs){addTabs(1)}else{addSpaces(zn.tabWidth)}break;case"stringAlign":flush();Ci+=Bn.n;ts+=Bn.n.length;break;case"numberAlign":Ps+=1;aa+=Bn.n;break;default:throw new Error(`Unexpected type '${Bn.type}'`)}}flushSpaces();return Object.assign(Object.assign({},Bn),{},{value:Ci,length:ts,queue:ni});function addTabs(Bn){Ci+="\t".repeat(Bn);ts+=zn.tabWidth*Bn}function addSpaces(Bn){Ci+=" ".repeat(Bn);ts+=Bn}function flush(){if(zn.useTabs){flushTabs()}else{flushSpaces()}}function flushTabs(){if(Ps>0){addTabs(Ps)}resetLast()}function flushSpaces(){if(aa>0){addSpaces(aa)}resetLast()}function resetLast(){Ps=0;aa=0}}function trim(Bn){if(Bn.length===0){return 0}let Hn=0;while(Bn.length>0&&typeof ni(Bn)==="string"&&/^[\t ]*$/.test(ni(Bn))){Hn+=Bn.pop().length}if(Bn.length>0&&typeof ni(Bn)==="string"){const zn=ni(Bn).replace(/[\t ]*$/,"");Hn+=ni(Bn).length-zn.length;Bn[Bn.length-1]=zn}return Hn}function fits(Bn,Hn,zn,ts,Ps){let aa=Hn.length;const oa=[Bn];const ca=[];while(zn>=0){if(oa.length===0){if(aa===0){return true}oa.push(Hn[--aa]);continue}const{mode:Bn,doc:_a}=oa.pop();if(typeof _a==="string"){ca.push(_a);zn-=Ci(_a)}else if(Ga(_a)||_a.type==="fill"){const Hn=Ha(_a);for(let zn=Hn.length-1;zn>=0;zn--){oa.push({mode:Bn,doc:Hn[zn]})}}else{switch(_a.type){case"indent":case"align":case"indent-if-break":case"label":oa.push({mode:Bn,doc:_a.contents});break;case"trim":zn+=trim(ca);break;case"group":{if(Ps&&_a.break){return false}const Hn=_a.break?oo:Bn;const zn=_a.expandedStates&&Hn===oo?ni(_a.expandedStates):_a.contents;oa.push({mode:Hn,doc:zn});break}case"if-break":{const Hn=_a.groupId?so[_a.groupId]||Jo:Bn;const zn=Hn===oo?_a.breakContents:_a.flatContents;if(zn){oa.push({mode:Bn,doc:zn})}break}case"line":if(Bn===oo||_a.hard){return true}if(!_a.soft){ca.push(" ");zn--}break;case"line-suffix":ts=true;break;case"line-suffix-boundary":if(ts){return false}break}}}return false}function printDocToString(Bn,Hn){so={};const oa=Hn.printWidth;const ca=zn(Hn.endOfLine);let _a=0;const xa=[{ind:rootIndent(),mode:oo,doc:Bn}];const tc=[];let dc=false;const Fc=[];while(xa.length>0){const{ind:Bn,mode:zn,doc:Jc}=xa.pop();if(typeof Jc==="string"){const Bn=ca!=="\n"?Jc.replace(/\n/g,ca):Jc;tc.push(Bn);_a+=Ci(Bn)}else if(Ga(Jc)){const Hn=Ha(Jc);for(let ni=Hn.length-1;ni>=0;ni--){xa.push({ind:Bn,mode:zn,doc:Hn[ni]})}}else{switch(Jc.type){case"cursor":tc.push(Ps.placeholder);break;case"indent":xa.push({ind:makeIndent(Bn,Hn),mode:zn,doc:Jc.contents});break;case"align":xa.push({ind:makeAlign(Bn,Jc.n,Hn),mode:zn,doc:Jc.contents});break;case"trim":_a-=trim(tc);break;case"group":switch(zn){case Jo:if(!dc){xa.push({ind:Bn,mode:Jc.break?oo:Jo,doc:Jc.contents});break}case oo:{dc=false;const Hn={ind:Bn,mode:Jo,doc:Jc.contents};const zn=oa-_a;const Ci=Fc.length>0;if(!Jc.break&&fits(Hn,xa,zn,Ci)){xa.push(Hn)}else{if(Jc.expandedStates){const Hn=ni(Jc.expandedStates);if(Jc.break){xa.push({ind:Bn,mode:oo,doc:Hn});break}else{for(let ni=1;ni=Jc.expandedStates.length){xa.push({ind:Bn,mode:oo,doc:Hn});break}else{const Hn=Jc.expandedStates[ni];const ts={ind:Bn,mode:Jo,doc:Hn};if(fits(ts,xa,zn,Ci)){xa.push(ts);break}}}}}else{xa.push({ind:Bn,mode:oo,doc:Jc.contents})}}break}}if(Jc.id){so[Jc.id]=ni(xa).mode}break;case"fill":{const Hn=oa-_a;const{parts:ni}=Jc;if(ni.length===0){break}const[Ci,Ps]=ni;const aa={ind:Bn,mode:Jo,doc:Ci};const ca={ind:Bn,mode:oo,doc:Ci};const Ga=fits(aa,[],Hn,Fc.length>0,true);if(ni.length===1){if(Ga){xa.push(aa)}else{xa.push(ca)}break}const Ha={ind:Bn,mode:Jo,doc:Ps};const so={ind:Bn,mode:oo,doc:Ps};if(ni.length===2){if(Ga){xa.push(Ha,aa)}else{xa.push(so,ca)}break}ni.splice(0,2);const tc={ind:Bn,mode:zn,doc:ts(ni)};const dc=ni[0];const Dp={ind:Bn,mode:Jo,doc:[Ci,Ps,dc]};const kp=fits(Dp,[],Hn,Fc.length>0,true);if(kp){xa.push(tc,Ha,aa)}else if(Ga){xa.push(tc,so,aa)}else{xa.push(tc,so,ca)}break}case"if-break":case"indent-if-break":{const Hn=Jc.groupId?so[Jc.groupId]:zn;if(Hn===oo){const Hn=Jc.type==="if-break"?Jc.breakContents:Jc.negate?Jc.contents:aa(Jc.contents);if(Hn){xa.push({ind:Bn,mode:zn,doc:Hn})}}if(Hn===Jo){const Hn=Jc.type==="if-break"?Jc.flatContents:Jc.negate?aa(Jc.contents):Jc.contents;if(Hn){xa.push({ind:Bn,mode:zn,doc:Hn})}}break}case"line-suffix":Fc.push({ind:Bn,mode:zn,doc:Jc.contents});break;case"line-suffix-boundary":if(Fc.length>0){xa.push({ind:Bn,mode:zn,doc:{type:"line",hard:true}})}break;case"line":switch(zn){case Jo:if(!Jc.hard){if(!Jc.soft){tc.push(" ");_a+=1}break}else{dc=true}case oo:if(Fc.length>0){xa.push({ind:Bn,mode:zn,doc:Jc},...Fc.reverse());Fc.length=0;break}if(Jc.literal){if(Bn.root){tc.push(ca,Bn.root.value);_a=Bn.root.length}else{tc.push(ca);_a=0}}else{_a-=trim(tc);tc.push(ca+Bn.value);_a=Bn.length}break}break;case"label":xa.push({ind:Bn,mode:zn,doc:Jc.contents});break;default:}}if(xa.length===0&&Fc.length>0){xa.push(...Fc.reverse());Fc.length=0}}const Jc=tc.indexOf(Ps.placeholder);if(Jc!==-1){const Bn=tc.indexOf(Ps.placeholder,Jc+1);const Hn=tc.slice(0,Jc).join("");const zn=tc.slice(Jc+1,Bn).join("");const ni=tc.slice(Bn+1).join("");return{formatted:Hn+zn+ni,cursorNodeStart:Hn.length,cursorNodeText:zn}}return{formatted:tc.join("")}}Hn.exports={printDocToString:printDocToString}}});var kp=__commonJS2({"src/document/doc-debug.js"(Bn,Hn){"use strict";oa();var{isConcat:zn,getDocParts:ni}=Jc();function flattenDoc(Bn){if(!Bn){return""}if(zn(Bn)){const Hn=[];for(const Ci of ni(Bn)){if(zn(Ci)){Hn.push(...flattenDoc(Ci).parts)}else{const Bn=flattenDoc(Ci);if(Bn!==""){Hn.push(Bn)}}}return{type:"concat",parts:Hn}}if(Bn.type==="if-break"){return Object.assign(Object.assign({},Bn),{},{breakContents:flattenDoc(Bn.breakContents),flatContents:flattenDoc(Bn.flatContents)})}if(Bn.type==="group"){return Object.assign(Object.assign({},Bn),{},{contents:flattenDoc(Bn.contents),expandedStates:Bn.expandedStates&&Bn.expandedStates.map(flattenDoc)})}if(Bn.type==="fill"){return{type:"fill",parts:Bn.parts.map(flattenDoc)}}if(Bn.contents){return Object.assign(Object.assign({},Bn),{},{contents:flattenDoc(Bn.contents)})}return Bn}function printDocToDebug(Bn){const Hn=Object.create(null);const Ci=new Set;return printDoc(flattenDoc(Bn));function printDoc(Bn,Hn,Ci){if(typeof Bn==="string"){return JSON.stringify(Bn)}if(zn(Bn)){const Hn=ni(Bn).map(printDoc).filter(Boolean);return Hn.length===1?Hn[0]:`[${Hn.join(", ")}]`}if(Bn.type==="line"){const zn=Array.isArray(Ci)&&Ci[Hn+1]&&Ci[Hn+1].type==="break-parent";if(Bn.literal){return zn?"literalline":"literallineWithoutBreakParent"}if(Bn.hard){return zn?"hardline":"hardlineWithoutBreakParent"}if(Bn.soft){return"softline"}return"line"}if(Bn.type==="break-parent"){const Bn=Array.isArray(Ci)&&Ci[Hn-1]&&Ci[Hn-1].type==="line"&&Ci[Hn-1].hard;return Bn?void 0:"breakParent"}if(Bn.type==="trim"){return"trim"}if(Bn.type==="indent"){return"indent("+printDoc(Bn.contents)+")"}if(Bn.type==="align"){return Bn.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+printDoc(Bn.contents)+")":Bn.n<0?"dedent("+printDoc(Bn.contents)+")":Bn.n.type==="root"?"markAsRoot("+printDoc(Bn.contents)+")":"align("+JSON.stringify(Bn.n)+", "+printDoc(Bn.contents)+")"}if(Bn.type==="if-break"){return"ifBreak("+printDoc(Bn.breakContents)+(Bn.flatContents?", "+printDoc(Bn.flatContents):"")+(Bn.groupId?(!Bn.flatContents?', ""':"")+`, { groupId: ${printGroupId(Bn.groupId)} }`:"")+")"}if(Bn.type==="indent-if-break"){const Hn=[];if(Bn.negate){Hn.push("negate: true")}if(Bn.groupId){Hn.push(`groupId: ${printGroupId(Bn.groupId)}`)}const zn=Hn.length>0?`, { ${Hn.join(", ")} }`:"";return`indentIfBreak(${printDoc(Bn.contents)}${zn})`}if(Bn.type==="group"){const Hn=[];if(Bn.break&&Bn.break!=="propagated"){Hn.push("shouldBreak: true")}if(Bn.id){Hn.push(`id: ${printGroupId(Bn.id)}`)}const zn=Hn.length>0?`, { ${Hn.join(", ")} }`:"";if(Bn.expandedStates){return`conditionalGroup([${Bn.expandedStates.map((Bn=>printDoc(Bn))).join(",")}]${zn})`}return`group(${printDoc(Bn.contents)}${zn})`}if(Bn.type==="fill"){return`fill([${Bn.parts.map((Bn=>printDoc(Bn))).join(", ")}])`}if(Bn.type==="line-suffix"){return"lineSuffix("+printDoc(Bn.contents)+")"}if(Bn.type==="line-suffix-boundary"){return"lineSuffixBoundary"}if(Bn.type==="label"){return`label(${JSON.stringify(Bn.label)}, ${printDoc(Bn.contents)})`}throw new Error("Unknown doc type "+Bn.type)}function printGroupId(Bn){if(typeof Bn!=="symbol"){return JSON.stringify(String(Bn))}if(Bn in Hn){return Hn[Bn]}const zn=String(Bn).slice(7,-1)||"symbol";for(let ni=0;;ni++){const ts=zn+(ni>0?` #${ni}`:"");if(!Ci.has(ts)){Ci.add(ts);return Hn[Bn]=`Symbol.for(${JSON.stringify(ts)})`}}}}Hn.exports={printDocToDebug:printDocToDebug}}});oa();Hn.exports={builders:ca(),printer:Dp(),utils:Jc(),debug:kp()}}});return Hn()}))},56929:(Bn,Hn,zn)=>{"use strict";var ni=Object.getOwnPropertyNames;var __commonJS=(Bn,Hn)=>function __require(){return Hn||(0,Bn[ni(Bn)[0]])((Hn={exports:{}}).exports,Hn),Hn.exports};var Ci=__commonJS({"node_modules/core-js/internals/global.js"(Bn,Hn){var check=function(Bn){return Bn&&Bn.Math==Math&&Bn};Hn.exports=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof global=="object"&&global)||function(){return this}()||Function("return this")()}});var ts=__commonJS({"node_modules/core-js/internals/fails.js"(Bn,Hn){Hn.exports=function(Bn){try{return!!Bn()}catch(Bn){return true}}}});var Ps=__commonJS({"node_modules/core-js/internals/descriptors.js"(Bn,Hn){var zn=ts();Hn.exports=!zn((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}))}});var aa=__commonJS({"node_modules/core-js/internals/function-bind-native.js"(Bn,Hn){var zn=ts();Hn.exports=!zn((function(){var Bn=function(){}.bind();return typeof Bn!="function"||Bn.hasOwnProperty("prototype")}))}});var oa=__commonJS({"node_modules/core-js/internals/function-call.js"(Bn,Hn){var zn=aa();var ni=Function.prototype.call;Hn.exports=zn?ni.bind(ni):function(){return ni.apply(ni,arguments)}}});var ca=__commonJS({"node_modules/core-js/internals/object-property-is-enumerable.js"(Bn){"use strict";var Hn={}.propertyIsEnumerable;var zn=Object.getOwnPropertyDescriptor;var ni=zn&&!Hn.call({1:2},1);Bn.f=ni?function propertyIsEnumerable(Bn){var Hn=zn(this,Bn);return!!Hn&&Hn.enumerable}:Hn}});var _a=__commonJS({"node_modules/core-js/internals/create-property-descriptor.js"(Bn,Hn){Hn.exports=function(Bn,Hn){return{enumerable:!(Bn&1),configurable:!(Bn&2),writable:!(Bn&4),value:Hn}}}});var xa=__commonJS({"node_modules/core-js/internals/function-uncurry-this.js"(Bn,Hn){var zn=aa();var ni=Function.prototype;var Ci=ni.call;var ts=zn&&ni.bind.bind(Ci,Ci);Hn.exports=zn?ts:function(Bn){return function(){return Ci.apply(Bn,arguments)}}}});var Ga=__commonJS({"node_modules/core-js/internals/classof-raw.js"(Bn,Hn){var zn=xa();var ni=zn({}.toString);var Ci=zn("".slice);Hn.exports=function(Bn){return Ci(ni(Bn),8,-1)}}});var Ha=__commonJS({"node_modules/core-js/internals/indexed-object.js"(Bn,Hn){var zn=xa();var ni=ts();var Ci=Ga();var Ps=Object;var aa=zn("".split);Hn.exports=ni((function(){return!Ps("z").propertyIsEnumerable(0)}))?function(Bn){return Ci(Bn)=="String"?aa(Bn,""):Ps(Bn)}:Ps}});var so=__commonJS({"node_modules/core-js/internals/is-null-or-undefined.js"(Bn,Hn){Hn.exports=function(Bn){return Bn===null||Bn===void 0}}});var oo=__commonJS({"node_modules/core-js/internals/require-object-coercible.js"(Bn,Hn){var zn=so();var ni=TypeError;Hn.exports=function(Bn){if(zn(Bn))throw ni("Can't call method on "+Bn);return Bn}}});var Jo=__commonJS({"node_modules/core-js/internals/to-indexed-object.js"(Bn,Hn){var zn=Ha();var ni=oo();Hn.exports=function(Bn){return zn(ni(Bn))}}});var tc=__commonJS({"node_modules/core-js/internals/document-all.js"(Bn,Hn){var zn=typeof document=="object"&&document.all;var ni=typeof zn=="undefined"&&zn!==void 0;Hn.exports={all:zn,IS_HTMLDDA:ni}}});var dc=__commonJS({"node_modules/core-js/internals/is-callable.js"(Bn,Hn){var zn=tc();var ni=zn.all;Hn.exports=zn.IS_HTMLDDA?function(Bn){return typeof Bn=="function"||Bn===ni}:function(Bn){return typeof Bn=="function"}}});var Fc=__commonJS({"node_modules/core-js/internals/is-object.js"(Bn,Hn){var zn=dc();var ni=tc();var Ci=ni.all;Hn.exports=ni.IS_HTMLDDA?function(Bn){return typeof Bn=="object"?Bn!==null:zn(Bn)||Bn===Ci}:function(Bn){return typeof Bn=="object"?Bn!==null:zn(Bn)}}});var Jc=__commonJS({"node_modules/core-js/internals/get-built-in.js"(Bn,Hn){var zn=Ci();var ni=dc();var aFunction=function(Bn){return ni(Bn)?Bn:void 0};Hn.exports=function(Bn,Hn){return arguments.length<2?aFunction(zn[Bn]):zn[Bn]&&zn[Bn][Hn]}}});var Dp=__commonJS({"node_modules/core-js/internals/object-is-prototype-of.js"(Bn,Hn){var zn=xa();Hn.exports=zn({}.isPrototypeOf)}});var kp=__commonJS({"node_modules/core-js/internals/engine-user-agent.js"(Bn,Hn){var zn=Jc();Hn.exports=zn("navigator","userAgent")||""}});var Qp=__commonJS({"node_modules/core-js/internals/engine-v8-version.js"(Bn,Hn){var zn=Ci();var ni=kp();var ts=zn.process;var Ps=zn.Deno;var aa=ts&&ts.versions||Ps&&Ps.version;var oa=aa&&aa.v8;var ca;var _a;if(oa){ca=oa.split(".");_a=ca[0]>0&&ca[0]<4?1:+(ca[0]+ca[1])}if(!_a&&ni){ca=ni.match(/Edge\/(\d+)/);if(!ca||ca[1]>=74){ca=ni.match(/Chrome\/(\d+)/);if(ca)_a=+ca[1]}}Hn.exports=_a}});var Up=__commonJS({"node_modules/core-js/internals/symbol-constructor-detection.js"(Bn,Hn){var zn=Qp();var ni=ts();Hn.exports=!!Object.getOwnPropertySymbols&&!ni((function(){var Bn=Symbol();return!String(Bn)||!(Object(Bn)instanceof Symbol)||!Symbol.sham&&zn&&zn<41}))}});var qp=__commonJS({"node_modules/core-js/internals/use-symbol-as-uid.js"(Bn,Hn){var zn=Up();Hn.exports=zn&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}});var Vp=__commonJS({"node_modules/core-js/internals/is-symbol.js"(Bn,Hn){var zn=Jc();var ni=dc();var Ci=Dp();var ts=qp();var Ps=Object;Hn.exports=ts?function(Bn){return typeof Bn=="symbol"}:function(Bn){var Hn=zn("Symbol");return ni(Hn)&&Ci(Hn.prototype,Ps(Bn))}}});var Jp=__commonJS({"node_modules/core-js/internals/try-to-string.js"(Bn,Hn){var zn=String;Hn.exports=function(Bn){try{return zn(Bn)}catch(Bn){return"Object"}}}});var Wp=__commonJS({"node_modules/core-js/internals/a-callable.js"(Bn,Hn){var zn=dc();var ni=Jp();var Ci=TypeError;Hn.exports=function(Bn){if(zn(Bn))return Bn;throw Ci(ni(Bn)+" is not a function")}}});var zp=__commonJS({"node_modules/core-js/internals/get-method.js"(Bn,Hn){var zn=Wp();var ni=so();Hn.exports=function(Bn,Hn){var Ci=Bn[Hn];return ni(Ci)?void 0:zn(Ci)}}});var Qf=__commonJS({"node_modules/core-js/internals/ordinary-to-primitive.js"(Bn,Hn){var zn=oa();var ni=dc();var Ci=Fc();var ts=TypeError;Hn.exports=function(Bn,Hn){var Ps,aa;if(Hn==="string"&&ni(Ps=Bn.toString)&&!Ci(aa=zn(Ps,Bn)))return aa;if(ni(Ps=Bn.valueOf)&&!Ci(aa=zn(Ps,Bn)))return aa;if(Hn!=="string"&&ni(Ps=Bn.toString)&&!Ci(aa=zn(Ps,Bn)))return aa;throw ts("Can't convert object to primitive value")}}});var Yf=__commonJS({"node_modules/core-js/internals/is-pure.js"(Bn,Hn){Hn.exports=false}});var Kf=__commonJS({"node_modules/core-js/internals/define-global-property.js"(Bn,Hn){var zn=Ci();var ni=Object.defineProperty;Hn.exports=function(Bn,Hn){try{ni(zn,Bn,{value:Hn,configurable:true,writable:true})}catch(ni){zn[Bn]=Hn}return Hn}}});var Xf=__commonJS({"node_modules/core-js/internals/shared-store.js"(Bn,Hn){var zn=Ci();var ni=Kf();var ts="__core-js_shared__";var Ps=zn[ts]||ni(ts,{});Hn.exports=Ps}});var Ad=__commonJS({"node_modules/core-js/internals/shared.js"(Bn,Hn){var zn=Yf();var ni=Xf();(Hn.exports=function(Bn,Hn){return ni[Bn]||(ni[Bn]=Hn!==void 0?Hn:{})})("versions",[]).push({version:"3.26.1",mode:zn?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}});var Cd=__commonJS({"node_modules/core-js/internals/to-object.js"(Bn,Hn){var zn=oo();var ni=Object;Hn.exports=function(Bn){return ni(zn(Bn))}}});var Sd=__commonJS({"node_modules/core-js/internals/has-own-property.js"(Bn,Hn){var zn=xa();var ni=Cd();var Ci=zn({}.hasOwnProperty);Hn.exports=Object.hasOwn||function hasOwn(Bn,Hn){return Ci(ni(Bn),Hn)}}});var xd=__commonJS({"node_modules/core-js/internals/uid.js"(Bn,Hn){var zn=xa();var ni=0;var Ci=Math.random();var ts=zn(1..toString);Hn.exports=function(Bn){return"Symbol("+(Bn===void 0?"":Bn)+")_"+ts(++ni+Ci,36)}}});var wd=__commonJS({"node_modules/core-js/internals/well-known-symbol.js"(Bn,Hn){var zn=Ci();var ni=Ad();var ts=Sd();var Ps=xd();var aa=Up();var oa=qp();var ca=ni("wks");var _a=zn.Symbol;var xa=_a&&_a["for"];var Ga=oa?_a:_a&&_a.withoutSetter||Ps;Hn.exports=function(Bn){if(!ts(ca,Bn)||!(aa||typeof ca[Bn]=="string")){var Hn="Symbol."+Bn;if(aa&&ts(_a,Bn)){ca[Bn]=_a[Bn]}else if(oa&&xa){ca[Bn]=xa(Hn)}else{ca[Bn]=Ga(Hn)}}return ca[Bn]}}});var Td=__commonJS({"node_modules/core-js/internals/to-primitive.js"(Bn,Hn){var zn=oa();var ni=Fc();var Ci=Vp();var ts=zp();var Ps=Qf();var aa=wd();var ca=TypeError;var _a=aa("toPrimitive");Hn.exports=function(Bn,Hn){if(!ni(Bn)||Ci(Bn))return Bn;var aa=ts(Bn,_a);var oa;if(aa){if(Hn===void 0)Hn="default";oa=zn(aa,Bn,Hn);if(!ni(oa)||Ci(oa))return oa;throw ca("Can't convert object to primitive value")}if(Hn===void 0)Hn="number";return Ps(Bn,Hn)}}});var Pd=__commonJS({"node_modules/core-js/internals/to-property-key.js"(Bn,Hn){var zn=Td();var ni=Vp();Hn.exports=function(Bn){var Hn=zn(Bn,"string");return ni(Hn)?Hn:Hn+""}}});var Qh=__commonJS({"node_modules/core-js/internals/document-create-element.js"(Bn,Hn){var zn=Ci();var ni=Fc();var ts=zn.document;var Ps=ni(ts)&&ni(ts.createElement);Hn.exports=function(Bn){return Ps?ts.createElement(Bn):{}}}});var Zh=__commonJS({"node_modules/core-js/internals/ie8-dom-define.js"(Bn,Hn){var zn=Ps();var ni=ts();var Ci=Qh();Hn.exports=!zn&&!ni((function(){return Object.defineProperty(Ci("div"),"a",{get:function(){return 7}}).a!=7}))}});var f_=__commonJS({"node_modules/core-js/internals/object-get-own-property-descriptor.js"(Bn){var Hn=Ps();var zn=oa();var ni=ca();var Ci=_a();var ts=Jo();var aa=Pd();var xa=Sd();var Ga=Zh();var Ha=Object.getOwnPropertyDescriptor;Bn.f=Hn?Ha:function getOwnPropertyDescriptor(Bn,Hn){Bn=ts(Bn);Hn=aa(Hn);if(Ga)try{return Ha(Bn,Hn)}catch(Bn){}if(xa(Bn,Hn))return Ci(!zn(ni.f,Bn,Hn),Bn[Hn])}}});var Z_=__commonJS({"node_modules/core-js/internals/v8-prototype-define-bug.js"(Bn,Hn){var zn=Ps();var ni=ts();Hn.exports=zn&&ni((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:false}).prototype!=42}))}});var eg=__commonJS({"node_modules/core-js/internals/an-object.js"(Bn,Hn){var zn=Fc();var ni=String;var Ci=TypeError;Hn.exports=function(Bn){if(zn(Bn))return Bn;throw Ci(ni(Bn)+" is not an object")}}});var tg=__commonJS({"node_modules/core-js/internals/object-define-property.js"(Bn){var Hn=Ps();var zn=Zh();var ni=Z_();var Ci=eg();var ts=Pd();var aa=TypeError;var oa=Object.defineProperty;var ca=Object.getOwnPropertyDescriptor;var _a="enumerable";var xa="configurable";var Ga="writable";Bn.f=Hn?ni?function defineProperty(Bn,Hn,zn){Ci(Bn);Hn=ts(Hn);Ci(zn);if(typeof Bn==="function"&&Hn==="prototype"&&"value"in zn&&Ga in zn&&!zn[Ga]){var ni=ca(Bn,Hn);if(ni&&ni[Ga]){Bn[Hn]=zn.value;zn={configurable:xa in zn?zn[xa]:ni[xa],enumerable:_a in zn?zn[_a]:ni[_a],writable:false}}}return oa(Bn,Hn,zn)}:oa:function defineProperty(Bn,Hn,ni){Ci(Bn);Hn=ts(Hn);Ci(ni);if(zn)try{return oa(Bn,Hn,ni)}catch(Bn){}if("get"in ni||"set"in ni)throw aa("Accessors not supported");if("value"in ni)Bn[Hn]=ni.value;return Bn}}});var rg=__commonJS({"node_modules/core-js/internals/create-non-enumerable-property.js"(Bn,Hn){var zn=Ps();var ni=tg();var Ci=_a();Hn.exports=zn?function(Bn,Hn,zn){return ni.f(Bn,Hn,Ci(1,zn))}:function(Bn,Hn,zn){Bn[Hn]=zn;return Bn}}});var ng=__commonJS({"node_modules/core-js/internals/function-name.js"(Bn,Hn){var zn=Ps();var ni=Sd();var Ci=Function.prototype;var ts=zn&&Object.getOwnPropertyDescriptor;var aa=ni(Ci,"name");var oa=aa&&function something(){}.name==="something";var ca=aa&&(!zn||zn&&ts(Ci,"name").configurable);Hn.exports={EXISTS:aa,PROPER:oa,CONFIGURABLE:ca}}});var ig=__commonJS({"node_modules/core-js/internals/inspect-source.js"(Bn,Hn){var zn=xa();var ni=dc();var Ci=Xf();var ts=zn(Function.toString);if(!ni(Ci.inspectSource)){Ci.inspectSource=function(Bn){return ts(Bn)}}Hn.exports=Ci.inspectSource}});var sg=__commonJS({"node_modules/core-js/internals/weak-map-basic-detection.js"(Bn,Hn){var zn=Ci();var ni=dc();var ts=zn.WeakMap;Hn.exports=ni(ts)&&/native code/.test(String(ts))}});var ag=__commonJS({"node_modules/core-js/internals/shared-key.js"(Bn,Hn){var zn=Ad();var ni=xd();var Ci=zn("keys");Hn.exports=function(Bn){return Ci[Bn]||(Ci[Bn]=ni(Bn))}}});var og=__commonJS({"node_modules/core-js/internals/hidden-keys.js"(Bn,Hn){Hn.exports={}}});var ug=__commonJS({"node_modules/core-js/internals/internal-state.js"(Bn,Hn){var zn=sg();var ni=Ci();var ts=Fc();var Ps=rg();var aa=Sd();var oa=Xf();var ca=ag();var _a=og();var xa="Object already initialized";var Ga=ni.TypeError;var Ha=ni.WeakMap;var so;var oo;var Jo;var enforce=function(Bn){return Jo(Bn)?oo(Bn):so(Bn,{})};var getterFor=function(Bn){return function(Hn){var zn;if(!ts(Hn)||(zn=oo(Hn)).type!==Bn){throw Ga("Incompatible receiver, "+Bn+" required")}return zn}};if(zn||oa.state){tc=oa.state||(oa.state=new Ha);tc.get=tc.get;tc.has=tc.has;tc.set=tc.set;so=function(Bn,Hn){if(tc.has(Bn))throw Ga(xa);Hn.facade=Bn;tc.set(Bn,Hn);return Hn};oo=function(Bn){return tc.get(Bn)||{}};Jo=function(Bn){return tc.has(Bn)}}else{dc=ca("state");_a[dc]=true;so=function(Bn,Hn){if(aa(Bn,dc))throw Ga(xa);Hn.facade=Bn;Ps(Bn,dc,Hn);return Hn};oo=function(Bn){return aa(Bn,dc)?Bn[dc]:{}};Jo=function(Bn){return aa(Bn,dc)}}var tc;var dc;Hn.exports={set:so,get:oo,has:Jo,enforce:enforce,getterFor:getterFor}}});var cg=__commonJS({"node_modules/core-js/internals/make-built-in.js"(Bn,Hn){var zn=ts();var ni=dc();var Ci=Sd();var aa=Ps();var oa=ng().CONFIGURABLE;var ca=ig();var _a=ug();var xa=_a.enforce;var Ga=_a.get;var Ha=Object.defineProperty;var so=aa&&!zn((function(){return Ha((function(){}),"length",{value:8}).length!==8}));var oo=String(String).split("String");var Jo=Hn.exports=function(Bn,Hn,zn){if(String(Hn).slice(0,7)==="Symbol("){Hn="["+String(Hn).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"}if(zn&&zn.getter)Hn="get "+Hn;if(zn&&zn.setter)Hn="set "+Hn;if(!Ci(Bn,"name")||oa&&Bn.name!==Hn){if(aa)Ha(Bn,"name",{value:Hn,configurable:true});else Bn.name=Hn}if(so&&zn&&Ci(zn,"arity")&&Bn.length!==zn.arity){Ha(Bn,"length",{value:zn.arity})}try{if(zn&&Ci(zn,"constructor")&&zn.constructor){if(aa)Ha(Bn,"prototype",{writable:false})}else if(Bn.prototype)Bn.prototype=void 0}catch(Bn){}var ni=xa(Bn);if(!Ci(ni,"source")){ni.source=oo.join(typeof Hn=="string"?Hn:"")}return Bn};Function.prototype.toString=Jo((function toString(){return ni(this)&&Ga(this).source||ca(this)}),"toString")}});var lg=__commonJS({"node_modules/core-js/internals/define-built-in.js"(Bn,Hn){var zn=dc();var ni=tg();var Ci=cg();var ts=Kf();Hn.exports=function(Bn,Hn,Ps,aa){if(!aa)aa={};var oa=aa.enumerable;var ca=aa.name!==void 0?aa.name:Hn;if(zn(Ps))Ci(Ps,ca,aa);if(aa.global){if(oa)Bn[Hn]=Ps;else ts(Hn,Ps)}else{try{if(!aa.unsafe)delete Bn[Hn];else if(Bn[Hn])oa=true}catch(Bn){}if(oa)Bn[Hn]=Ps;else ni.f(Bn,Hn,{value:Ps,enumerable:false,configurable:!aa.nonConfigurable,writable:!aa.nonWritable})}return Bn}}});var pg=__commonJS({"node_modules/core-js/internals/math-trunc.js"(Bn,Hn){var zn=Math.ceil;var ni=Math.floor;Hn.exports=Math.trunc||function trunc(Bn){var Hn=+Bn;return(Hn>0?ni:zn)(Hn)}}});var fg=__commonJS({"node_modules/core-js/internals/to-integer-or-infinity.js"(Bn,Hn){var zn=pg();Hn.exports=function(Bn){var Hn=+Bn;return Hn!==Hn||Hn===0?0:zn(Hn)}}});var dg=__commonJS({"node_modules/core-js/internals/to-absolute-index.js"(Bn,Hn){var zn=fg();var ni=Math.max;var Ci=Math.min;Hn.exports=function(Bn,Hn){var ts=zn(Bn);return ts<0?ni(ts+Hn,0):Ci(ts,Hn)}}});var hg=__commonJS({"node_modules/core-js/internals/to-length.js"(Bn,Hn){var zn=fg();var ni=Math.min;Hn.exports=function(Bn){return Bn>0?ni(zn(Bn),9007199254740991):0}}});var mg=__commonJS({"node_modules/core-js/internals/length-of-array-like.js"(Bn,Hn){var zn=hg();Hn.exports=function(Bn){return zn(Bn.length)}}});var _g=__commonJS({"node_modules/core-js/internals/array-includes.js"(Bn,Hn){var zn=Jo();var ni=dg();var Ci=mg();var createMethod=function(Bn){return function(Hn,ts,Ps){var aa=zn(Hn);var oa=Ci(aa);var ca=ni(Ps,oa);var _a;if(Bn&&ts!=ts)while(oa>ca){_a=aa[ca++];if(_a!=_a)return true}else for(;oa>ca;ca++){if((Bn||ca in aa)&&aa[ca]===ts)return Bn||ca||0}return!Bn&&-1}};Hn.exports={includes:createMethod(true),indexOf:createMethod(false)}}});var gg=__commonJS({"node_modules/core-js/internals/object-keys-internal.js"(Bn,Hn){var zn=xa();var ni=Sd();var Ci=Jo();var ts=_g().indexOf;var Ps=og();var aa=zn([].push);Hn.exports=function(Bn,Hn){var zn=Ci(Bn);var oa=0;var ca=[];var _a;for(_a in zn)!ni(Ps,_a)&&ni(zn,_a)&&aa(ca,_a);while(Hn.length>oa)if(ni(zn,_a=Hn[oa++])){~ts(ca,_a)||aa(ca,_a)}return ca}}});var Ag=__commonJS({"node_modules/core-js/internals/enum-bug-keys.js"(Bn,Hn){Hn.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}});var yg=__commonJS({"node_modules/core-js/internals/object-get-own-property-names.js"(Bn){var Hn=gg();var zn=Ag();var ni=zn.concat("length","prototype");Bn.f=Object.getOwnPropertyNames||function getOwnPropertyNames(Bn){return Hn(Bn,ni)}}});var vg=__commonJS({"node_modules/core-js/internals/object-get-own-property-symbols.js"(Bn){Bn.f=Object.getOwnPropertySymbols}});var Eg=__commonJS({"node_modules/core-js/internals/own-keys.js"(Bn,Hn){var zn=Jc();var ni=xa();var Ci=yg();var ts=vg();var Ps=eg();var aa=ni([].concat);Hn.exports=zn("Reflect","ownKeys")||function ownKeys(Bn){var Hn=Ci.f(Ps(Bn));var zn=ts.f;return zn?aa(Hn,zn(Bn)):Hn}}});var bg=__commonJS({"node_modules/core-js/internals/copy-constructor-properties.js"(Bn,Hn){var zn=Sd();var ni=Eg();var Ci=f_();var ts=tg();Hn.exports=function(Bn,Hn,Ps){var aa=ni(Hn);var oa=ts.f;var ca=Ci.f;for(var _a=0;_ani)throw zn("Maximum allowed index exceeded");return Bn}}});var wg=__commonJS({"node_modules/core-js/internals/function-uncurry-this-clause.js"(Bn,Hn){var zn=Ga();var ni=xa();Hn.exports=function(Bn){if(zn(Bn)==="Function")return ni(Bn)}}});var Tg=__commonJS({"node_modules/core-js/internals/function-bind-context.js"(Bn,Hn){var zn=wg();var ni=Wp();var Ci=aa();var ts=zn(zn.bind);Hn.exports=function(Bn,Hn){ni(Bn);return Hn===void 0?Bn:Ci?ts(Bn,Hn):function(){return Bn.apply(Hn,arguments)}}}});var kg=__commonJS({"node_modules/core-js/internals/flatten-into-array.js"(Bn,Hn){"use strict";var zn=Sg();var ni=mg();var Ci=xg();var ts=Tg();var flattenIntoArray=function(Bn,Hn,Ps,aa,oa,ca,_a,xa){var Ga=oa;var Ha=0;var so=_a?ts(_a,xa):false;var oo,Jo;while(Ha0&&zn(oo)){Jo=ni(oo);Ga=flattenIntoArray(Bn,Hn,oo,Jo,Ga,ca-1)-1}else{Ci(Ga+1);Bn[Ga]=oo}Ga++}Ha++}return Ga};Hn.exports=flattenIntoArray}});var Ig=__commonJS({"node_modules/core-js/internals/to-string-tag-support.js"(Bn,Hn){var zn=wd();var ni=zn("toStringTag");var Ci={};Ci[ni]="z";Hn.exports=String(Ci)==="[object z]"}});var Bg=__commonJS({"node_modules/core-js/internals/classof.js"(Bn,Hn){var zn=Ig();var ni=dc();var Ci=Ga();var ts=wd();var Ps=ts("toStringTag");var aa=Object;var oa=Ci(function(){return arguments}())=="Arguments";var tryGet=function(Bn,Hn){try{return Bn[Hn]}catch(Bn){}};Hn.exports=zn?Ci:function(Bn){var Hn,zn,ts;return Bn===void 0?"Undefined":Bn===null?"Null":typeof(zn=tryGet(Hn=aa(Bn),Ps))=="string"?zn:oa?Ci(Hn):(ts=Ci(Hn))=="Object"&&ni(Hn.callee)?"Arguments":ts}}});var Fg=__commonJS({"node_modules/core-js/internals/is-constructor.js"(Bn,Hn){var zn=xa();var ni=ts();var Ci=dc();var Ps=Bg();var aa=Jc();var oa=ig();var noop=function(){};var ca=[];var _a=aa("Reflect","construct");var Ga=/^\s*(?:class|function)\b/;var Ha=zn(Ga.exec);var so=!Ga.exec(noop);var oo=function isConstructor(Bn){if(!Ci(Bn))return false;try{_a(noop,ca,Bn);return true}catch(Bn){return false}};var Jo=function isConstructor(Bn){if(!Ci(Bn))return false;switch(Ps(Bn)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return false}try{return so||!!Ha(Ga,oa(Bn))}catch(Bn){return true}};Jo.sham=true;Hn.exports=!_a||ni((function(){var Bn;return oo(oo.call)||!oo(Object)||!oo((function(){Bn=true}))||Bn}))?Jo:oo}});var Ng=__commonJS({"node_modules/core-js/internals/array-species-constructor.js"(Bn,Hn){var zn=Sg();var ni=Fg();var Ci=Fc();var ts=wd();var Ps=ts("species");var aa=Array;Hn.exports=function(Bn){var Hn;if(zn(Bn)){Hn=Bn.constructor;if(ni(Hn)&&(Hn===aa||zn(Hn.prototype)))Hn=void 0;else if(Ci(Hn)){Hn=Hn[Ps];if(Hn===null)Hn=void 0}}return Hn===void 0?aa:Hn}}});var Pg=__commonJS({"node_modules/core-js/internals/array-species-create.js"(Bn,Hn){var zn=Ng();Hn.exports=function(Bn,Hn){return new(zn(Bn))(Hn===0?0:Hn)}}});var Og=__commonJS({"node_modules/core-js/modules/es.array.flat-map.js"(){"use strict";var Bn=Cg();var Hn=kg();var zn=Wp();var ni=Cd();var Ci=mg();var ts=Pg();Bn({target:"Array",proto:true},{flatMap:function flatMap(Bn){var Ps=ni(this);var aa=Ci(Ps);var oa;zn(Bn);oa=ts(Ps,0);oa.length=Hn(oa,Ps,Ps,aa,0,1,Bn,arguments.length>1?arguments[1]:void 0);return oa}})}});var Rg=__commonJS({"node_modules/core-js/internals/iterators.js"(Bn,Hn){Hn.exports={}}});var Lg=__commonJS({"node_modules/core-js/internals/is-array-iterator-method.js"(Bn,Hn){var zn=wd();var ni=Rg();var Ci=zn("iterator");var ts=Array.prototype;Hn.exports=function(Bn){return Bn!==void 0&&(ni.Array===Bn||ts[Ci]===Bn)}}});var Qg=__commonJS({"node_modules/core-js/internals/get-iterator-method.js"(Bn,Hn){var zn=Bg();var ni=zp();var Ci=so();var ts=Rg();var Ps=wd();var aa=Ps("iterator");Hn.exports=function(Bn){if(!Ci(Bn))return ni(Bn,aa)||ni(Bn,"@@iterator")||ts[zn(Bn)]}}});var Mg=__commonJS({"node_modules/core-js/internals/get-iterator.js"(Bn,Hn){var zn=oa();var ni=Wp();var Ci=eg();var ts=Jp();var Ps=Qg();var aa=TypeError;Hn.exports=function(Bn,Hn){var oa=arguments.length<2?Ps(Bn):Hn;if(ni(oa))return Ci(zn(oa,Bn));throw aa(ts(Bn)+" is not iterable")}}});var jg=__commonJS({"node_modules/core-js/internals/iterator-close.js"(Bn,Hn){var zn=oa();var ni=eg();var Ci=zp();Hn.exports=function(Bn,Hn,ts){var Ps,aa;ni(Bn);try{Ps=Ci(Bn,"return");if(!Ps){if(Hn==="throw")throw ts;return ts}Ps=zn(Ps,Bn)}catch(Bn){aa=true;Ps=Bn}if(Hn==="throw")throw ts;if(aa)throw Ps;ni(Ps);return ts}}});var Ug=__commonJS({"node_modules/core-js/internals/iterate.js"(Bn,Hn){var zn=Tg();var ni=oa();var Ci=eg();var ts=Jp();var Ps=Lg();var aa=mg();var ca=Dp();var _a=Mg();var xa=Qg();var Ga=jg();var Ha=TypeError;var Result=function(Bn,Hn){this.stopped=Bn;this.result=Hn};var so=Result.prototype;Hn.exports=function(Bn,Hn,oa){var oo=oa&&oa.that;var Jo=!!(oa&&oa.AS_ENTRIES);var tc=!!(oa&&oa.IS_RECORD);var dc=!!(oa&&oa.IS_ITERATOR);var Fc=!!(oa&&oa.INTERRUPTED);var Jc=zn(Hn,oo);var Dp,kp,Qp,Up,qp,Vp,Jp;var stop=function(Bn){if(Dp)Ga(Dp,"normal",Bn);return new Result(true,Bn)};var callFn=function(Bn){if(Jo){Ci(Bn);return Fc?Jc(Bn[0],Bn[1],stop):Jc(Bn[0],Bn[1])}return Fc?Jc(Bn,stop):Jc(Bn)};if(tc){Dp=Bn.iterator}else if(dc){Dp=Bn}else{kp=xa(Bn);if(!kp)throw Ha(ts(Bn)+" is not iterable");if(Ps(kp)){for(Qp=0,Up=aa(Bn);Up>Qp;Qp++){qp=callFn(Bn[Qp]);if(qp&&ca(so,qp))return qp}return new Result(false)}Dp=_a(Bn,kp)}Vp=tc?Bn.next:Dp.next;while(!(Jp=ni(Vp,Dp)).done){try{qp=callFn(Jp.value)}catch(Bn){Ga(Dp,"throw",Bn)}if(typeof qp=="object"&&qp&&ca(so,qp))return qp}return new Result(false)}}});var Gg=__commonJS({"node_modules/core-js/internals/create-property.js"(Bn,Hn){"use strict";var zn=Pd();var ni=tg();var Ci=_a();Hn.exports=function(Bn,Hn,ts){var Ps=zn(Hn);if(Ps in Bn)ni.f(Bn,Ps,Ci(0,ts));else Bn[Ps]=ts}}});var qg=__commonJS({"node_modules/core-js/modules/es.object.from-entries.js"(){var Bn=Cg();var Hn=Ug();var zn=Gg();Bn({target:"Object",stat:true},{fromEntries:function fromEntries(Bn){var ni={};Hn(Bn,(function(Bn,Hn){zn(ni,Bn,Hn)}),{AS_ENTRIES:true});return ni}})}});var Vg=__commonJS({"node_modules/core-js/internals/define-built-in-accessor.js"(Bn,Hn){var zn=cg();var ni=tg();Hn.exports=function(Bn,Hn,Ci){if(Ci.get)zn(Ci.get,Hn,{getter:true});if(Ci.set)zn(Ci.set,Hn,{setter:true});return ni.f(Bn,Hn,Ci)}}});var Hg=__commonJS({"node_modules/core-js/internals/regexp-flags.js"(Bn,Hn){"use strict";var zn=eg();Hn.exports=function(){var Bn=zn(this);var Hn="";if(Bn.hasIndices)Hn+="d";if(Bn.global)Hn+="g";if(Bn.ignoreCase)Hn+="i";if(Bn.multiline)Hn+="m";if(Bn.dotAll)Hn+="s";if(Bn.unicode)Hn+="u";if(Bn.unicodeSets)Hn+="v";if(Bn.sticky)Hn+="y";return Hn}}});var $g=__commonJS({"node_modules/core-js/modules/es.regexp.flags.js"(){var Bn=Ci();var Hn=Ps();var zn=Vg();var ni=Hg();var aa=ts();var oa=Bn.RegExp;var ca=oa.prototype;var _a=Hn&&aa((function(){var Bn=true;try{oa(".","d")}catch(Hn){Bn=false}var Hn={};var zn="";var ni=Bn?"dgimsy":"gimsy";var addGetter=function(Bn,ni){Object.defineProperty(Hn,Bn,{get:function(){zn+=ni;return true}})};var Ci={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};if(Bn)Ci.hasIndices="d";for(var ts in Ci)addGetter(ts,Ci[ts]);var Ps=Object.getOwnPropertyDescriptor(ca,"flags").get.call(Hn);return Ps!==ni||zn!==ni}));if(_a)zn(ca,"flags",{configurable:true,get:ni})}});var Jg=__commonJS({"node_modules/core-js/modules/es.array.flat.js"(){"use strict";var Bn=Cg();var Hn=kg();var zn=Cd();var ni=mg();var Ci=fg();var ts=Pg();Bn({target:"Array",proto:true},{flat:function flat(){var Bn=arguments.length?arguments[0]:void 0;var Ps=zn(this);var aa=ni(Ps);var oa=ts(Ps,0);oa.length=Hn(oa,Ps,Ps,aa,0,Bn===void 0?1:Ci(Bn));return oa}})}});var Yg=["cliName","cliCategory","cliDescription"];var Wg=["_"];var Kg=["overrides"];var zg=["languageId"];function _objectWithoutProperties(Bn,Hn){if(Bn==null)return{};var zn=_objectWithoutPropertiesLoose(Bn,Hn);var ni,Ci;if(Object.getOwnPropertySymbols){var ts=Object.getOwnPropertySymbols(Bn);for(Ci=0;Ci=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Bn,ni))continue;zn[ni]=Bn[ni]}}return zn}function _objectWithoutPropertiesLoose(Bn,Hn){if(Bn==null)return{};var zn={};var ni=Object.keys(Bn);var Ci,ts;for(ts=0;ts=0)continue;zn[Ci]=Bn[Ci]}return zn}Og();qg();$g();Jg();var Xg=Object.create;var Zg=Object.defineProperty;var sA=Object.getOwnPropertyDescriptor;var oA=Object.getOwnPropertyNames;var hA=Object.getPrototypeOf;var ey=Object.prototype.hasOwnProperty;var __esm=(Bn,Hn)=>function __init(){return Bn&&(Hn=(0,Bn[oA(Bn)[0]])(Bn=0)),Hn};var __commonJS2=(Bn,Hn)=>function __require(){return Hn||(0,Bn[oA(Bn)[0]])((Hn={exports:{}}).exports,Hn),Hn.exports};var __export=(Bn,Hn)=>{for(var zn in Hn)Zg(Bn,zn,{get:Hn[zn],enumerable:true})};var __copyProps=(Bn,Hn,zn,ni)=>{if(Hn&&typeof Hn==="object"||typeof Hn==="function"){for(let Ci of oA(Hn))if(!ey.call(Bn,Ci)&&Ci!==zn)Zg(Bn,Ci,{get:()=>Hn[Ci],enumerable:!(ni=sA(Hn,Ci))||ni.enumerable})}return Bn};var __toESM=(Bn,Hn,zn)=>(zn=Bn!=null?Xg(hA(Bn)):{},__copyProps(Hn||!Bn||!Bn.__esModule?Zg(zn,"default",{value:Bn,enumerable:true}):zn,Bn));var __toCommonJS=Bn=>__copyProps(Zg({},"__esModule",{value:true}),Bn);var ty=__commonJS2({"node_modules/diff/lib/diff/base.js"(Bn){"use strict";Object.defineProperty(Bn,"__esModule",{value:true});Bn["default"]=Diff;function Diff(){}Diff.prototype={diff:function diff(Bn,Hn){var zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var ni=zn.callback;if(typeof zn==="function"){ni=zn;zn={}}this.options=zn;var Ci=this;function done(Bn){if(ni){setTimeout((function(){ni(void 0,Bn)}),0);return true}else{return Bn}}Bn=this.castInput(Bn);Hn=this.castInput(Hn);Bn=this.removeEmpty(this.tokenize(Bn));Hn=this.removeEmpty(this.tokenize(Hn));var ts=Hn.length,Ps=Bn.length;var aa=1;var oa=ts+Ps;var ca=[{newPos:-1,components:[]}];var _a=this.extractCommon(ca[0],Hn,Bn,0);if(ca[0].newPos+1>=ts&&_a+1>=Ps){return done([{value:this.join(Hn),count:Hn.length}])}function execEditLength(){for(var zn=-1*aa;zn<=aa;zn+=2){var ni=void 0;var oa=ca[zn-1],_a=ca[zn+1],xa=(_a?_a.newPos:0)-zn;if(oa){ca[zn-1]=void 0}var Ga=oa&&oa.newPos+1=ts&&xa+1>=Ps){return done(buildValues(Ci,ni.components,Hn,Bn,Ci.useLongestToken))}else{ca[zn]=ni}}aa++}if(ni){(function exec(){setTimeout((function(){if(aa>oa){return ni()}if(!execEditLength()){exec()}}),0)})()}else{while(aa<=oa){var xa=execEditLength();if(xa){return xa}}}},pushComponent:function pushComponent(Bn,Hn,zn){var ni=Bn[Bn.length-1];if(ni&&ni.added===Hn&&ni.removed===zn){Bn[Bn.length-1]={count:ni.count+1,added:Hn,removed:zn}}else{Bn.push({count:1,added:Hn,removed:zn})}},extractCommon:function extractCommon(Bn,Hn,zn,ni){var Ci=Hn.length,ts=zn.length,Ps=Bn.newPos,aa=Ps-ni,oa=0;while(Ps+1Bn.length?zn:Bn}));ca.value=Bn.join(_a)}else{ca.value=Bn.join(zn.slice(aa,aa+ca.count))}aa+=ca.count;if(!ca.added){oa+=ca.count}}else{ca.value=Bn.join(ni.slice(oa,oa+ca.count));oa+=ca.count;if(ts&&Hn[ts-1].added){var xa=Hn[ts-1];Hn[ts-1]=Hn[ts];Hn[ts]=xa}}}var Ga=Hn[Ps-1];if(Ps>1&&typeof Ga.value==="string"&&(Ga.added||Ga.removed)&&Bn.equals("",Ga.value)){Hn[Ps-2].value+=Ga.value;Hn.pop()}return Hn}function clonePath(Bn){return{newPos:Bn.newPos,components:Bn.components.slice(0)}}}});var ry=__commonJS2({"node_modules/diff/lib/diff/array.js"(Bn){"use strict";Object.defineProperty(Bn,"__esModule",{value:true});Bn.diffArrays=diffArrays;Bn.arrayDiff=void 0;var Hn=_interopRequireDefault(ty());function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}var zn=new Hn["default"];Bn.arrayDiff=zn;zn.tokenize=function(Bn){return Bn.slice()};zn.join=zn.removeEmpty=function(Bn){return Bn};function diffArrays(Bn,Hn,ni){return zn.diff(Bn,Hn,ni)}}});var ny={};__export(ny,{default:()=>escapeStringRegexp});function escapeStringRegexp(Bn){if(typeof Bn!=="string"){throw new TypeError("Expected a string")}return Bn.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var iy=__esm({"node_modules/escape-string-regexp/index.js"(){}});var py=__commonJS2({"src/utils/get-last.js"(Bn,Hn){"use strict";var getLast=Bn=>Bn[Bn.length-1];Hn.exports=getLast}});var fy=__commonJS2({"node_modules/semver/internal/debug.js"(Bn,Hn){var zn=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...Bn)=>console.error("SEMVER",...Bn):()=>{};Hn.exports=zn}});var Ty=__commonJS2({"node_modules/semver/internal/constants.js"(Bn,Hn){var zn="2.0.0";var ni=256;var Ci=Number.MAX_SAFE_INTEGER||9007199254740991;var ts=16;Hn.exports={SEMVER_SPEC_VERSION:zn,MAX_LENGTH:ni,MAX_SAFE_INTEGER:Ci,MAX_SAFE_COMPONENT_LENGTH:ts}}});var Gy=__commonJS2({"node_modules/semver/internal/re.js"(Bn,Hn){var{MAX_SAFE_COMPONENT_LENGTH:zn}=Ty();var ni=fy();Bn=Hn.exports={};var Ci=Bn.re=[];var ts=Bn.src=[];var Ps=Bn.t={};var aa=0;var createToken=(Bn,Hn,zn)=>{const oa=aa++;ni(Bn,oa,Hn);Ps[Bn]=oa;ts[oa]=Hn;Ci[oa]=new RegExp(Hn,zn?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${ts[Ps.NUMERICIDENTIFIER]})\\.(${ts[Ps.NUMERICIDENTIFIER]})\\.(${ts[Ps.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${ts[Ps.NUMERICIDENTIFIERLOOSE]})\\.(${ts[Ps.NUMERICIDENTIFIERLOOSE]})\\.(${ts[Ps.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${ts[Ps.NUMERICIDENTIFIER]}|${ts[Ps.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${ts[Ps.NUMERICIDENTIFIERLOOSE]}|${ts[Ps.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${ts[Ps.PRERELEASEIDENTIFIER]}(?:\\.${ts[Ps.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${ts[Ps.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ts[Ps.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${ts[Ps.BUILDIDENTIFIER]}(?:\\.${ts[Ps.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${ts[Ps.MAINVERSION]}${ts[Ps.PRERELEASE]}?${ts[Ps.BUILD]}?`);createToken("FULL",`^${ts[Ps.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${ts[Ps.MAINVERSIONLOOSE]}${ts[Ps.PRERELEASELOOSE]}?${ts[Ps.BUILD]}?`);createToken("LOOSE",`^${ts[Ps.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${ts[Ps.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${ts[Ps.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${ts[Ps.XRANGEIDENTIFIER]})(?:\\.(${ts[Ps.XRANGEIDENTIFIER]})(?:\\.(${ts[Ps.XRANGEIDENTIFIER]})(?:${ts[Ps.PRERELEASE]})?${ts[Ps.BUILD]}?)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${ts[Ps.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ts[Ps.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ts[Ps.XRANGEIDENTIFIERLOOSE]})(?:${ts[Ps.PRERELEASELOOSE]})?${ts[Ps.BUILD]}?)?)?`);createToken("XRANGE",`^${ts[Ps.GTLT]}\\s*${ts[Ps.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${ts[Ps.GTLT]}\\s*${ts[Ps.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])(\\d{1,"}${zn}})(?:\\.(\\d{1,${zn}}))?(?:\\.(\\d{1,${zn}}))?(?:$|[^\\d])`);createToken("COERCERTL",ts[Ps.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${ts[Ps.LONETILDE]}\\s+`,true);Bn.tildeTrimReplace="$1~";createToken("TILDE",`^${ts[Ps.LONETILDE]}${ts[Ps.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${ts[Ps.LONETILDE]}${ts[Ps.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${ts[Ps.LONECARET]}\\s+`,true);Bn.caretTrimReplace="$1^";createToken("CARET",`^${ts[Ps.LONECARET]}${ts[Ps.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${ts[Ps.LONECARET]}${ts[Ps.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${ts[Ps.GTLT]}\\s*(${ts[Ps.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${ts[Ps.GTLT]}\\s*(${ts[Ps.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${ts[Ps.GTLT]}\\s*(${ts[Ps.LOOSEPLAIN]}|${ts[Ps.XRANGEPLAIN]})`,true);Bn.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${ts[Ps.XRANGEPLAIN]})\\s+-\\s+(${ts[Ps.XRANGEPLAIN]})\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${ts[Ps.XRANGEPLAINLOOSE]})\\s+-\\s+(${ts[Ps.XRANGEPLAINLOOSE]})\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}});var Vy=__commonJS2({"node_modules/semver/internal/parse-options.js"(Bn,Hn){var zn=["includePrerelease","loose","rtl"];var parseOptions=Bn=>!Bn?{}:typeof Bn!=="object"?{loose:true}:zn.filter((Hn=>Bn[Hn])).reduce(((Bn,Hn)=>{Bn[Hn]=true;return Bn}),{});Hn.exports=parseOptions}});var Hy=__commonJS2({"node_modules/semver/internal/identifiers.js"(Bn,Hn){var zn=/^[0-9]+$/;var compareIdentifiers=(Bn,Hn)=>{const ni=zn.test(Bn);const Ci=zn.test(Hn);if(ni&&Ci){Bn=+Bn;Hn=+Hn}return Bn===Hn?0:ni&&!Ci?-1:Ci&&!ni?1:BncompareIdentifiers(Hn,Bn);Hn.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}}});var Av=__commonJS2({"node_modules/semver/classes/semver.js"(Bn,Hn){var zn=fy();var{MAX_LENGTH:ni,MAX_SAFE_INTEGER:Ci}=Ty();var{re:ts,t:Ps}=Gy();var aa=Vy();var{compareIdentifiers:oa}=Hy();var ca=class{constructor(Bn,Hn){Hn=aa(Hn);if(Bn instanceof ca){if(Bn.loose===!!Hn.loose&&Bn.includePrerelease===!!Hn.includePrerelease){return Bn}else{Bn=Bn.version}}else if(typeof Bn!=="string"){throw new TypeError(`Invalid Version: ${Bn}`)}if(Bn.length>ni){throw new TypeError(`version is longer than ${ni} characters`)}zn("SemVer",Bn,Hn);this.options=Hn;this.loose=!!Hn.loose;this.includePrerelease=!!Hn.includePrerelease;const oa=Bn.trim().match(Hn.loose?ts[Ps.LOOSE]:ts[Ps.FULL]);if(!oa){throw new TypeError(`Invalid Version: ${Bn}`)}this.raw=Bn;this.major=+oa[1];this.minor=+oa[2];this.patch=+oa[3];if(this.major>Ci||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>Ci||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>Ci||this.patch<0){throw new TypeError("Invalid patch version")}if(!oa[4]){this.prerelease=[]}else{this.prerelease=oa[4].split(".").map((Bn=>{if(/^[0-9]+$/.test(Bn)){const Hn=+Bn;if(Hn>=0&&Hn=0){if(typeof this.prerelease[Bn]==="number"){this.prerelease[Bn]++;Bn=-2}}if(Bn===-1){this.prerelease.push(0)}}if(Hn){if(oa(this.prerelease[0],Hn)===0){if(isNaN(this.prerelease[1])){this.prerelease=[Hn,0]}}else{this.prerelease=[Hn,0]}}break;default:throw new Error(`invalid increment argument: ${Bn}`)}this.format();this.raw=this.version;return this}};Hn.exports=ca}});var vv=__commonJS2({"node_modules/semver/functions/compare.js"(Bn,Hn){var zn=Av();var compare=(Bn,Hn,ni)=>new zn(Bn,ni).compare(new zn(Hn,ni));Hn.exports=compare}});var Ev=__commonJS2({"node_modules/semver/functions/lt.js"(Bn,Hn){var zn=vv();var lt=(Bn,Hn,ni)=>zn(Bn,Hn,ni)<0;Hn.exports=lt}});var bv=__commonJS2({"node_modules/semver/functions/gte.js"(Bn,Hn){var zn=vv();var gte=(Bn,Hn,ni)=>zn(Bn,Hn,ni)>=0;Hn.exports=gte}});var Cv=__commonJS2({"src/utils/arrayify.js"(Bn,Hn){"use strict";Hn.exports=(Bn,Hn)=>Object.entries(Bn).map((([Bn,zn])=>Object.assign({[Hn]:Bn},zn)))}});var Sv=__commonJS2({"node_modules/outdent/lib/index.js"(Bn,Hn){"use strict";Object.defineProperty(Bn,"__esModule",{value:true});Bn.outdent=void 0;function noop(){var Bn=[];for(var Hn=0;Hn */;const escape=Bn=>Bn.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=Bn=>Bn.replace(/\r?\n|\r/g,"\r\n");const ni=[];const Ci=new Uint8Array([13,10]);xa=0;let ts=false;for(const[Hn,Ps]of Bn){if(typeof Ps==="string"){const Bn=Wp.encode(zn+`; name="${escape(normalizeLinefeeds(Hn))}"`+`\r\n\r\n${normalizeLinefeeds(Ps)}\r\n`);ni.push(Bn);xa+=Bn.byteLength}else{const Bn=Wp.encode(`${zn}; name="${escape(normalizeLinefeeds(Hn))}"`+(Ps.name?`; filename="${escape(Ps.name)}"`:"")+"\r\n"+`Content-Type: ${Ps.type||"application/octet-stream"}\r\n\r\n`);ni.push(Bn,Ps,Ci);if(typeof Ps.size==="number"){xa+=Bn.byteLength+Ps.size+Ci.byteLength}else{ts=true}}}const Ps=Wp.encode(`--${Hn}--`);ni.push(Ps);xa+=Ps.byteLength;if(ts){xa=null}_a=Bn;ca=async function*(){for(const Bn of ni){if(Bn.stream){yield*Bn.stream()}else{yield Bn}}};Ga="multipart/form-data; boundary="+Hn}else if(Ps(Bn)){_a=Bn;xa=Bn.size;if(Bn.type){Ga=Bn.type}}else if(typeof Bn[Symbol.asyncIterator]==="function"){if(Hn){throw new TypeError("keepalive")}if(Ci.isDisturbed(Bn)||Bn.locked){throw new TypeError("Response body object should not be disturbed or locked")}ni=Bn instanceof Vp?Bn:ts(Bn)}if(typeof _a==="string"||Ci.isBuffer(_a)){xa=Buffer.byteLength(_a)}if(ca!=null){let Hn;ni=new Vp({async start(){Hn=ca(Bn)[Symbol.asyncIterator]()},async pull(Bn){const{value:zn,done:Ci}=await Hn.next();if(Ci){queueMicrotask((()=>{Bn.close()}))}else{if(!Jc(ni)){Bn.enqueue(new Uint8Array(zn))}}return Bn.desiredSize>0},async cancel(Bn){await Hn.return()},type:undefined})}const Ha={stream:ni,source:_a,length:xa};return[Ha,Ga]}function safelyExtractBody(Bn,Hn=false){if(!Vp){Vp=zn(35356).ReadableStream}if(Bn instanceof Vp){Fc(!Ci.isDisturbed(Bn),"The body has already been consumed.");Fc(!Bn.locked,"The stream is locked.")}return extractBody(Bn,Hn)}function cloneBody(Bn){const[Hn,zn]=Bn.stream.tee();const ni=oo(zn,{transfer:[zn]});const[,Ci]=ni.tee();Bn.stream=Hn;return{stream:Ci,length:Bn.length,source:Bn.source}}async function*consumeBody(Bn){if(Bn){if(Dp(Bn)){yield Bn}else{const Hn=Bn.stream;if(Ci.isDisturbed(Hn)){throw new TypeError("The body has already been consumed.")}if(Hn.locked){throw new TypeError("The stream is locked.")}Hn[dc]=true;yield*Hn}}}function throwIfAborted(Bn){if(Bn.aborted){throw new so("The operation was aborted.","AbortError")}}function bodyMixinMethods(Bn){const Hn={blob(){return specConsumeBody(this,(Bn=>{let Hn=bodyMimeType(this);if(Hn==="failure"){Hn=""}else if(Hn){Hn=qp(Hn)}return new Jo([Bn],{type:Hn})}),Bn)},arrayBuffer(){return specConsumeBody(this,(Bn=>new Uint8Array(Bn).buffer),Bn)},text(){return specConsumeBody(this,utf8DecodeBytes,Bn)},json(){return specConsumeBody(this,parseJSONFromBytes,Bn)},async formData(){Ha.brandCheck(this,Bn);throwIfAborted(this[Ga]);const Hn=this.headers.get("Content-Type");if(/multipart\/form-data/.test(Hn)){const Bn={};for(const[Hn,zn]of this.headers)Bn[Hn.toLowerCase()]=zn;const Hn=new xa;let zn;try{zn=new ni({headers:Bn,preservePath:true})}catch(Bn){throw new so(`${Bn}`,"AbortError")}zn.on("field",((Bn,zn)=>{Hn.append(Bn,zn)}));zn.on("file",((Bn,zn,ni,Ci,ts)=>{const Ps=[];if(Ci==="base64"||Ci.toLowerCase()==="base64"){let Ci="";zn.on("data",(Bn=>{Ci+=Bn.toString().replace(/[\r\n]/gm,"");const Hn=Ci.length-Ci.length%4;Ps.push(Buffer.from(Ci.slice(0,Hn),"base64"));Ci=Ci.slice(Hn)}));zn.on("end",(()=>{Ps.push(Buffer.from(Ci,"base64"));Hn.append(Bn,new Jp(Ps,ni,{type:ts}))}))}else{zn.on("data",(Bn=>{Ps.push(Bn)}));zn.on("end",(()=>{Hn.append(Bn,new Jp(Ps,ni,{type:ts}))}))}}));const Ci=new Promise(((Bn,Hn)=>{zn.on("finish",Bn);zn.on("error",(Bn=>Hn(new TypeError(Bn))))}));if(this.body!==null)for await(const Bn of consumeBody(this[Ga].body))zn.write(Bn);zn.end();await Ci;return Hn}else if(/application\/x-www-form-urlencoded/.test(Hn)){let Bn;try{let Hn="";const zn=new TextDecoder("utf-8",{ignoreBOM:true});for await(const Bn of consumeBody(this[Ga].body)){if(!Dp(Bn)){throw new TypeError("Expected Uint8Array chunk")}Hn+=zn.decode(Bn,{stream:true})}Hn+=zn.decode();Bn=new URLSearchParams(Hn)}catch(Bn){throw Object.assign(new TypeError,{cause:Bn})}const Hn=new xa;for(const[zn,ni]of Bn){Hn.append(zn,ni)}return Hn}else{await Promise.resolve();throwIfAborted(this[Ga]);throw Ha.errors.exception({header:`${Bn.name}.formData`,message:"Could not parse content as FormData."})}}};return Hn}function mixinBody(Bn){Object.assign(Bn.prototype,bodyMixinMethods(Bn))}async function specConsumeBody(Bn,Hn,zn){Ha.brandCheck(Bn,zn);throwIfAborted(Bn[Ga]);if(bodyUnusable(Bn[Ga].body)){throw new TypeError("Body is unusable")}const ni=ca();const errorSteps=Bn=>ni.reject(Bn);const successSteps=Bn=>{try{ni.resolve(Hn(Bn))}catch(Bn){errorSteps(Bn)}};if(Bn[Ga].body==null){successSteps(new Uint8Array);return ni.promise}await _a(Bn[Ga].body,successSteps,errorSteps);return ni.promise}function bodyUnusable(Bn){return Bn!=null&&(Bn.stream.locked||Ci.isDisturbed(Bn.stream))}function utf8DecodeBytes(Bn){if(Bn.length===0){return""}if(Bn[0]===239&&Bn[1]===187&&Bn[2]===191){Bn=Bn.subarray(3)}const Hn=zp.decode(Bn);return Hn}function parseJSONFromBytes(Bn){return JSON.parse(utf8DecodeBytes(Bn))}function bodyMimeType(Bn){const{headersList:Hn}=Bn[Ga];const zn=Hn.get("content-type");if(zn===null){return"failure"}return Up(zn)}Bn.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},41037:(Bn,Hn,zn)=>{"use strict";const{MessageChannel:ni,receiveMessageOnPort:Ci}=zn(71267);const ts=["GET","HEAD","POST"];const Ps=new Set(ts);const aa=[101,204,205,304];const oa=[301,302,303,307,308];const ca=new Set(oa);const _a=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const xa=new Set(_a);const Ga=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const Ha=new Set(Ga);const so=["follow","manual","error"];const oo=["GET","HEAD","OPTIONS","TRACE"];const Jo=new Set(oo);const tc=["navigate","same-origin","no-cors","cors"];const dc=["omit","same-origin","include"];const Fc=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const Jc=["content-encoding","content-language","content-location","content-type","content-length"];const Dp=["half"];const kp=["CONNECT","TRACE","TRACK"];const Qp=new Set(kp);const Up=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const qp=new Set(Up);const Vp=globalThis.DOMException??(()=>{try{atob("~")}catch(Bn){return Object.getPrototypeOf(Bn).constructor}})();let Jp;const Wp=globalThis.structuredClone??function structuredClone(Bn,Hn=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!Jp){Jp=new ni}Jp.port1.unref();Jp.port2.unref();Jp.port1.postMessage(Bn,Hn?.transfer);return Ci(Jp.port2).message};Bn.exports={DOMException:Vp,structuredClone:Wp,subresource:Up,forbiddenMethods:kp,requestBodyHeader:Jc,referrerPolicy:Ga,requestRedirect:so,requestMode:tc,requestCredentials:dc,requestCache:Fc,redirectStatus:oa,corsSafeListedMethods:ts,nullBodyStatus:aa,safeMethods:oo,badPorts:_a,requestDuplex:Dp,subresourceSet:qp,badPortsSet:xa,redirectStatusSet:ca,corsSafeListedMethodsSet:Ps,safeMethodsSet:Jo,forbiddenMethodsSet:Qp,referrerPolicySet:Ha}},685:(Bn,Hn,zn)=>{const ni=zn(39491);const{atob:Ci}=zn(14300);const{isomorphicDecode:ts}=zn(52538);const Ps=new TextEncoder;const aa=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const oa=/(\u000A|\u000D|\u0009|\u0020)/;const ca=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(Bn){ni(Bn.protocol==="data:");let Hn=URLSerializer(Bn,true);Hn=Hn.slice(5);const zn={position:0};let Ci=collectASequenceOfCodePointsFast(",",Hn,zn);const Ps=Ci.length;Ci=removeASCIIWhitespace(Ci,true,true);if(zn.position>=Hn.length){return"failure"}zn.position++;const aa=Hn.slice(Ps+1);let oa=stringPercentDecode(aa);if(/;(\u0020){0,}base64$/i.test(Ci)){const Bn=ts(oa);oa=forgivingBase64(Bn);if(oa==="failure"){return"failure"}Ci=Ci.slice(0,-6);Ci=Ci.replace(/(\u0020)+$/,"");Ci=Ci.slice(0,-1)}if(Ci.startsWith(";")){Ci="text/plain"+Ci}let ca=parseMIMEType(Ci);if(ca==="failure"){ca=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:ca,body:oa}}function URLSerializer(Bn,Hn=false){if(!Hn){return Bn.href}const zn=Bn.href;const ni=Bn.hash.length;return ni===0?zn:zn.substring(0,zn.length-ni)}function collectASequenceOfCodePoints(Bn,Hn,zn){let ni="";while(zn.positionBn.length){return"failure"}Hn.position++;let ni=collectASequenceOfCodePointsFast(";",Bn,Hn);ni=removeHTTPWhitespace(ni,false,true);if(ni.length===0||!aa.test(ni)){return"failure"}const Ci=zn.toLowerCase();const ts=ni.toLowerCase();const Ps={type:Ci,subtype:ts,parameters:new Map,essence:`${Ci}/${ts}`};while(Hn.positionoa.test(Bn)),Bn,Hn);let zn=collectASequenceOfCodePoints((Bn=>Bn!==";"&&Bn!=="="),Bn,Hn);zn=zn.toLowerCase();if(Hn.positionBn.length){break}let ni=null;if(Bn[Hn.position]==='"'){ni=collectAnHTTPQuotedString(Bn,Hn,true);collectASequenceOfCodePointsFast(";",Bn,Hn)}else{ni=collectASequenceOfCodePointsFast(";",Bn,Hn);ni=removeHTTPWhitespace(ni,false,true);if(ni.length===0){continue}}if(zn.length!==0&&aa.test(zn)&&(ni.length===0||ca.test(ni))&&!Ps.parameters.has(zn)){Ps.parameters.set(zn,ni)}}return Ps}function forgivingBase64(Bn){Bn=Bn.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(Bn.length%4===0){Bn=Bn.replace(/=?=$/,"")}if(Bn.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(Bn)){return"failure"}const Hn=Ci(Bn);const zn=new Uint8Array(Hn.length);for(let Bn=0;BnBn!=='"'&&Bn!=="\\"),Bn,Hn);if(Hn.position>=Bn.length){break}const zn=Bn[Hn.position];Hn.position++;if(zn==="\\"){if(Hn.position>=Bn.length){ts+="\\";break}ts+=Bn[Hn.position];Hn.position++}else{ni(zn==='"');break}}if(zn){return ts}return Bn.slice(Ci,Hn.position)}function serializeAMimeType(Bn){ni(Bn!=="failure");const{parameters:Hn,essence:zn}=Bn;let Ci=zn;for(let[Bn,zn]of Hn.entries()){Ci+=";";Ci+=Bn;Ci+="=";if(!aa.test(zn)){zn=zn.replace(/(\\|")/g,"\\$1");zn='"'+zn;zn+='"'}Ci+=zn}return Ci}function isHTTPWhiteSpace(Bn){return Bn==="\r"||Bn==="\n"||Bn==="\t"||Bn===" "}function removeHTTPWhitespace(Bn,Hn=true,zn=true){let ni=0;let Ci=Bn.length-1;if(Hn){for(;ni0&&isHTTPWhiteSpace(Bn[Ci]);Ci--);}return Bn.slice(ni,Ci+1)}function isASCIIWhitespace(Bn){return Bn==="\r"||Bn==="\n"||Bn==="\t"||Bn==="\f"||Bn===" "}function removeASCIIWhitespace(Bn,Hn=true,zn=true){let ni=0;let Ci=Bn.length-1;if(Hn){for(;ni0&&isASCIIWhitespace(Bn[Ci]);Ci--);}return Bn.slice(ni,Ci+1)}Bn.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},78511:(Bn,Hn,zn)=>{"use strict";const{Blob:ni,File:Ci}=zn(14300);const{types:ts}=zn(73837);const{kState:Ps}=zn(15861);const{isBlobLike:aa}=zn(52538);const{webidl:oa}=zn(21744);const{parseMIMEType:ca,serializeAMimeType:_a}=zn(685);const{kEnumerableProperty:xa}=zn(83983);const Ga=new TextEncoder;class File extends ni{constructor(Bn,Hn,zn={}){oa.argumentLengthCheck(arguments,2,{header:"File constructor"});Bn=oa.converters["sequence"](Bn);Hn=oa.converters.USVString(Hn);zn=oa.converters.FilePropertyBag(zn);const ni=Hn;let Ci=zn.type;let ts;e:{if(Ci){Ci=ca(Ci);if(Ci==="failure"){Ci="";break e}Ci=_a(Ci).toLowerCase()}ts=zn.lastModified}super(processBlobParts(Bn,zn),{type:Ci});this[Ps]={name:ni,lastModified:ts,type:Ci}}get name(){oa.brandCheck(this,File);return this[Ps].name}get lastModified(){oa.brandCheck(this,File);return this[Ps].lastModified}get type(){oa.brandCheck(this,File);return this[Ps].type}}class FileLike{constructor(Bn,Hn,zn={}){const ni=Hn;const Ci=zn.type;const ts=zn.lastModified??Date.now();this[Ps]={blobLike:Bn,name:ni,type:Ci,lastModified:ts}}stream(...Bn){oa.brandCheck(this,FileLike);return this[Ps].blobLike.stream(...Bn)}arrayBuffer(...Bn){oa.brandCheck(this,FileLike);return this[Ps].blobLike.arrayBuffer(...Bn)}slice(...Bn){oa.brandCheck(this,FileLike);return this[Ps].blobLike.slice(...Bn)}text(...Bn){oa.brandCheck(this,FileLike);return this[Ps].blobLike.text(...Bn)}get size(){oa.brandCheck(this,FileLike);return this[Ps].blobLike.size}get type(){oa.brandCheck(this,FileLike);return this[Ps].blobLike.type}get name(){oa.brandCheck(this,FileLike);return this[Ps].name}get lastModified(){oa.brandCheck(this,FileLike);return this[Ps].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:xa,lastModified:xa});oa.converters.Blob=oa.interfaceConverter(ni);oa.converters.BlobPart=function(Bn,Hn){if(oa.util.Type(Bn)==="Object"){if(aa(Bn)){return oa.converters.Blob(Bn,{strict:false})}if(ArrayBuffer.isView(Bn)||ts.isAnyArrayBuffer(Bn)){return oa.converters.BufferSource(Bn,Hn)}}return oa.converters.USVString(Bn,Hn)};oa.converters["sequence"]=oa.sequenceConverter(oa.converters.BlobPart);oa.converters.FilePropertyBag=oa.dictionaryConverter([{key:"lastModified",converter:oa.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:oa.converters.DOMString,defaultValue:""},{key:"endings",converter:Bn=>{Bn=oa.converters.DOMString(Bn);Bn=Bn.toLowerCase();if(Bn!=="native"){Bn="transparent"}return Bn},defaultValue:"transparent"}]);function processBlobParts(Bn,Hn){const zn=[];for(const ni of Bn){if(typeof ni==="string"){let Bn=ni;if(Hn.endings==="native"){Bn=convertLineEndingsNative(Bn)}zn.push(Ga.encode(Bn))}else if(ts.isAnyArrayBuffer(ni)||ts.isTypedArray(ni)){if(!ni.buffer){zn.push(new Uint8Array(ni))}else{zn.push(new Uint8Array(ni.buffer,ni.byteOffset,ni.byteLength))}}else if(aa(ni)){zn.push(ni)}}return zn}function convertLineEndingsNative(Bn){let Hn="\n";if(process.platform==="win32"){Hn="\r\n"}return Bn.replace(/\r?\n/g,Hn)}function isFileLike(Bn){return Ci&&Bn instanceof Ci||Bn instanceof File||Bn&&(typeof Bn.stream==="function"||typeof Bn.arrayBuffer==="function")&&Bn[Symbol.toStringTag]==="File"}Bn.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},72015:(Bn,Hn,zn)=>{"use strict";const{isBlobLike:ni,toUSVString:Ci,makeIterator:ts}=zn(52538);const{kState:Ps}=zn(15861);const{File:aa,FileLike:oa,isFileLike:ca}=zn(78511);const{webidl:_a}=zn(21744);const{Blob:xa,File:Ga}=zn(14300);const Ha=Ga??aa;class FormData{constructor(Bn){if(Bn!==undefined){throw _a.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[Ps]=[]}append(Bn,Hn,zn=undefined){_a.brandCheck(this,FormData);_a.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!ni(Hn)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}Bn=_a.converters.USVString(Bn);Hn=ni(Hn)?_a.converters.Blob(Hn,{strict:false}):_a.converters.USVString(Hn);zn=arguments.length===3?_a.converters.USVString(zn):undefined;const Ci=makeEntry(Bn,Hn,zn);this[Ps].push(Ci)}delete(Bn){_a.brandCheck(this,FormData);_a.argumentLengthCheck(arguments,1,{header:"FormData.delete"});Bn=_a.converters.USVString(Bn);this[Ps]=this[Ps].filter((Hn=>Hn.name!==Bn))}get(Bn){_a.brandCheck(this,FormData);_a.argumentLengthCheck(arguments,1,{header:"FormData.get"});Bn=_a.converters.USVString(Bn);const Hn=this[Ps].findIndex((Hn=>Hn.name===Bn));if(Hn===-1){return null}return this[Ps][Hn].value}getAll(Bn){_a.brandCheck(this,FormData);_a.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});Bn=_a.converters.USVString(Bn);return this[Ps].filter((Hn=>Hn.name===Bn)).map((Bn=>Bn.value))}has(Bn){_a.brandCheck(this,FormData);_a.argumentLengthCheck(arguments,1,{header:"FormData.has"});Bn=_a.converters.USVString(Bn);return this[Ps].findIndex((Hn=>Hn.name===Bn))!==-1}set(Bn,Hn,zn=undefined){_a.brandCheck(this,FormData);_a.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!ni(Hn)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}Bn=_a.converters.USVString(Bn);Hn=ni(Hn)?_a.converters.Blob(Hn,{strict:false}):_a.converters.USVString(Hn);zn=arguments.length===3?Ci(zn):undefined;const ts=makeEntry(Bn,Hn,zn);const aa=this[Ps].findIndex((Hn=>Hn.name===Bn));if(aa!==-1){this[Ps]=[...this[Ps].slice(0,aa),ts,...this[Ps].slice(aa+1).filter((Hn=>Hn.name!==Bn))]}else{this[Ps].push(ts)}}entries(){_a.brandCheck(this,FormData);return ts((()=>this[Ps].map((Bn=>[Bn.name,Bn.value]))),"FormData","key+value")}keys(){_a.brandCheck(this,FormData);return ts((()=>this[Ps].map((Bn=>[Bn.name,Bn.value]))),"FormData","key")}values(){_a.brandCheck(this,FormData);return ts((()=>this[Ps].map((Bn=>[Bn.name,Bn.value]))),"FormData","value")}forEach(Bn,Hn=globalThis){_a.brandCheck(this,FormData);_a.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof Bn!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[zn,ni]of this){Bn.apply(Hn,[ni,zn,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(Bn,Hn,zn){Bn=Buffer.from(Bn).toString("utf8");if(typeof Hn==="string"){Hn=Buffer.from(Hn).toString("utf8")}else{if(!ca(Hn)){Hn=Hn instanceof xa?new Ha([Hn],"blob",{type:Hn.type}):new oa(Hn,"blob",{type:Hn.type})}if(zn!==undefined){const Bn={type:Hn.type,lastModified:Hn.lastModified};Hn=Ga&&Hn instanceof Ga||Hn instanceof aa?new Ha([Hn],zn,Bn):new oa(Hn,zn,Bn)}}return{name:Bn,value:Hn}}Bn.exports={FormData:FormData}},71246:Bn=>{"use strict";const Hn=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[Hn]}function setGlobalOrigin(Bn){if(Bn===undefined){Object.defineProperty(globalThis,Hn,{value:undefined,writable:true,enumerable:false,configurable:false});return}const zn=new URL(Bn);if(zn.protocol!=="http:"&&zn.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${zn.protocol}`)}Object.defineProperty(globalThis,Hn,{value:zn,writable:true,enumerable:false,configurable:false})}Bn.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},10554:(Bn,Hn,zn)=>{"use strict";const{kHeadersList:ni,kConstruct:Ci}=zn(72785);const{kGuard:ts}=zn(15861);const{kEnumerableProperty:Ps}=zn(83983);const{makeIterator:aa,isValidHeaderName:oa,isValidHeaderValue:ca}=zn(52538);const{webidl:_a}=zn(21744);const xa=zn(39491);const Ga=Symbol("headers map");const Ha=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(Bn){return Bn===10||Bn===13||Bn===9||Bn===32}function headerValueNormalize(Bn){let Hn=0;let zn=Bn.length;while(zn>Hn&&isHTTPWhiteSpaceCharCode(Bn.charCodeAt(zn-1)))--zn;while(zn>Hn&&isHTTPWhiteSpaceCharCode(Bn.charCodeAt(Hn)))++Hn;return Hn===0&&zn===Bn.length?Bn:Bn.substring(Hn,zn)}function fill(Bn,Hn){if(Array.isArray(Hn)){for(let zn=0;zn>","record"]})}}function appendHeader(Bn,Hn,zn){zn=headerValueNormalize(zn);if(!oa(Hn)){throw _a.errors.invalidArgument({prefix:"Headers.append",value:Hn,type:"header name"})}else if(!ca(zn)){throw _a.errors.invalidArgument({prefix:"Headers.append",value:zn,type:"header value"})}if(Bn[ts]==="immutable"){throw new TypeError("immutable")}else if(Bn[ts]==="request-no-cors"){}return Bn[ni].append(Hn,zn)}class HeadersList{cookies=null;constructor(Bn){if(Bn instanceof HeadersList){this[Ga]=new Map(Bn[Ga]);this[Ha]=Bn[Ha];this.cookies=Bn.cookies===null?null:[...Bn.cookies]}else{this[Ga]=new Map(Bn);this[Ha]=null}}contains(Bn){Bn=Bn.toLowerCase();return this[Ga].has(Bn)}clear(){this[Ga].clear();this[Ha]=null;this.cookies=null}append(Bn,Hn){this[Ha]=null;const zn=Bn.toLowerCase();const ni=this[Ga].get(zn);if(ni){const Bn=zn==="cookie"?"; ":", ";this[Ga].set(zn,{name:ni.name,value:`${ni.value}${Bn}${Hn}`})}else{this[Ga].set(zn,{name:Bn,value:Hn})}if(zn==="set-cookie"){this.cookies??=[];this.cookies.push(Hn)}}set(Bn,Hn){this[Ha]=null;const zn=Bn.toLowerCase();if(zn==="set-cookie"){this.cookies=[Hn]}this[Ga].set(zn,{name:Bn,value:Hn})}delete(Bn){this[Ha]=null;Bn=Bn.toLowerCase();if(Bn==="set-cookie"){this.cookies=null}this[Ga].delete(Bn)}get(Bn){const Hn=this[Ga].get(Bn.toLowerCase());return Hn===undefined?null:Hn.value}*[Symbol.iterator](){for(const[Bn,{value:Hn}]of this[Ga]){yield[Bn,Hn]}}get entries(){const Bn={};if(this[Ga].size){for(const{name:Hn,value:zn}of this[Ga].values()){Bn[Hn]=zn}}return Bn}}class Headers{constructor(Bn=undefined){if(Bn===Ci){return}this[ni]=new HeadersList;this[ts]="none";if(Bn!==undefined){Bn=_a.converters.HeadersInit(Bn);fill(this,Bn)}}append(Bn,Hn){_a.brandCheck(this,Headers);_a.argumentLengthCheck(arguments,2,{header:"Headers.append"});Bn=_a.converters.ByteString(Bn);Hn=_a.converters.ByteString(Hn);return appendHeader(this,Bn,Hn)}delete(Bn){_a.brandCheck(this,Headers);_a.argumentLengthCheck(arguments,1,{header:"Headers.delete"});Bn=_a.converters.ByteString(Bn);if(!oa(Bn)){throw _a.errors.invalidArgument({prefix:"Headers.delete",value:Bn,type:"header name"})}if(this[ts]==="immutable"){throw new TypeError("immutable")}else if(this[ts]==="request-no-cors"){}if(!this[ni].contains(Bn)){return}this[ni].delete(Bn)}get(Bn){_a.brandCheck(this,Headers);_a.argumentLengthCheck(arguments,1,{header:"Headers.get"});Bn=_a.converters.ByteString(Bn);if(!oa(Bn)){throw _a.errors.invalidArgument({prefix:"Headers.get",value:Bn,type:"header name"})}return this[ni].get(Bn)}has(Bn){_a.brandCheck(this,Headers);_a.argumentLengthCheck(arguments,1,{header:"Headers.has"});Bn=_a.converters.ByteString(Bn);if(!oa(Bn)){throw _a.errors.invalidArgument({prefix:"Headers.has",value:Bn,type:"header name"})}return this[ni].contains(Bn)}set(Bn,Hn){_a.brandCheck(this,Headers);_a.argumentLengthCheck(arguments,2,{header:"Headers.set"});Bn=_a.converters.ByteString(Bn);Hn=_a.converters.ByteString(Hn);Hn=headerValueNormalize(Hn);if(!oa(Bn)){throw _a.errors.invalidArgument({prefix:"Headers.set",value:Bn,type:"header name"})}else if(!ca(Hn)){throw _a.errors.invalidArgument({prefix:"Headers.set",value:Hn,type:"header value"})}if(this[ts]==="immutable"){throw new TypeError("immutable")}else if(this[ts]==="request-no-cors"){}this[ni].set(Bn,Hn)}getSetCookie(){_a.brandCheck(this,Headers);const Bn=this[ni].cookies;if(Bn){return[...Bn]}return[]}get[Ha](){if(this[ni][Ha]){return this[ni][Ha]}const Bn=[];const Hn=[...this[ni]].sort(((Bn,Hn)=>Bn[0]Bn),"Headers","key")}return aa((()=>[...this[Ha].values()]),"Headers","key")}values(){_a.brandCheck(this,Headers);if(this[ts]==="immutable"){const Bn=this[Ha];return aa((()=>Bn),"Headers","value")}return aa((()=>[...this[Ha].values()]),"Headers","value")}entries(){_a.brandCheck(this,Headers);if(this[ts]==="immutable"){const Bn=this[Ha];return aa((()=>Bn),"Headers","key+value")}return aa((()=>[...this[Ha].values()]),"Headers","key+value")}forEach(Bn,Hn=globalThis){_a.brandCheck(this,Headers);_a.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof Bn!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[zn,ni]of this){Bn.apply(Hn,[ni,zn,this])}}[Symbol.for("nodejs.util.inspect.custom")](){_a.brandCheck(this,Headers);return this[ni]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:Ps,delete:Ps,get:Ps,has:Ps,set:Ps,getSetCookie:Ps,keys:Ps,values:Ps,entries:Ps,forEach:Ps,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true}});_a.converters.HeadersInit=function(Bn){if(_a.util.Type(Bn)==="Object"){if(Bn[Symbol.iterator]){return _a.converters["sequence>"](Bn)}return _a.converters["record"](Bn)}throw _a.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};Bn.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},74881:(Bn,Hn,zn)=>{"use strict";const{Response:ni,makeNetworkError:Ci,makeAppropriateNetworkError:ts,filterResponse:Ps,makeResponse:aa}=zn(27823);const{Headers:oa}=zn(10554);const{Request:ca,makeRequest:_a}=zn(48359);const xa=zn(59796);const{bytesMatch:Ga,makePolicyContainer:Ha,clonePolicyContainer:so,requestBadPort:oo,TAOCheck:Jo,appendRequestOriginHeader:tc,responseLocationURL:dc,requestCurrentURL:Fc,setRequestReferrerPolicyOnRedirect:Jc,tryUpgradeRequestToAPotentiallyTrustworthyURL:Dp,createOpaqueTimingInfo:kp,appendFetchMetadata:Qp,corsCheck:Up,crossOriginResourcePolicyCheck:qp,determineRequestsReferrer:Vp,coarsenedSharedCurrentTime:Jp,createDeferredPromise:Wp,isBlobLike:zp,sameOrigin:Qf,isCancelled:Yf,isAborted:Kf,isErrorLike:Xf,fullyReadBody:Ad,readableStreamClose:Cd,isomorphicEncode:Sd,urlIsLocal:xd,urlIsHttpHttpsScheme:wd,urlHasHttpsScheme:Td}=zn(52538);const{kState:Pd,kHeaders:Qh,kGuard:Zh,kRealm:f_}=zn(15861);const Z_=zn(39491);const{safelyExtractBody:eg}=zn(41472);const{redirectStatusSet:tg,nullBodyStatus:rg,safeMethodsSet:ng,requestBodyHeader:ig,subresourceSet:sg,DOMException:ag}=zn(41037);const{kHeadersList:og}=zn(72785);const ug=zn(82361);const{Readable:cg,pipeline:lg}=zn(12781);const{addAbortListener:pg,isErrored:fg,isReadable:dg,nodeMajor:hg,nodeMinor:mg}=zn(83983);const{dataURLProcessor:_g,serializeAMimeType:gg}=zn(685);const{TransformStream:Ag}=zn(35356);const{getGlobalDispatcher:yg}=zn(21892);const{webidl:vg}=zn(21744);const{STATUS_CODES:Eg}=zn(13685);const bg=["GET","HEAD"];let Dg;let Cg=globalThis.ReadableStream;class Fetch extends ug{constructor(Bn){super();this.dispatcher=Bn;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(Bn){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(Bn);this.emit("terminated",Bn)}abort(Bn){if(this.state!=="ongoing"){return}this.state="aborted";if(!Bn){Bn=new ag("The operation was aborted.","AbortError")}this.serializedAbortReason=Bn;this.connection?.destroy(Bn);this.emit("terminated",Bn)}}function fetch(Bn,Hn={}){vg.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const zn=Wp();let Ci;try{Ci=new ca(Bn,Hn)}catch(Bn){zn.reject(Bn);return zn.promise}const ts=Ci[Pd];if(Ci.signal.aborted){abortFetch(zn,ts,null,Ci.signal.reason);return zn.promise}const Ps=ts.client.globalObject;if(Ps?.constructor?.name==="ServiceWorkerGlobalScope"){ts.serviceWorkers="none"}let aa=null;const oa=null;let _a=false;let xa=null;pg(Ci.signal,(()=>{_a=true;Z_(xa!=null);xa.abort(Ci.signal.reason);abortFetch(zn,ts,aa,Ci.signal.reason)}));const handleFetchDone=Bn=>finalizeAndReportTiming(Bn,"fetch");const processResponse=Bn=>{if(_a){return Promise.resolve()}if(Bn.aborted){abortFetch(zn,ts,aa,xa.serializedAbortReason);return Promise.resolve()}if(Bn.type==="error"){zn.reject(Object.assign(new TypeError("fetch failed"),{cause:Bn.error}));return Promise.resolve()}aa=new ni;aa[Pd]=Bn;aa[f_]=oa;aa[Qh][og]=Bn.headersList;aa[Qh][Zh]="immutable";aa[Qh][f_]=oa;zn.resolve(aa)};xa=fetching({request:ts,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:Hn.dispatcher??yg()});return zn.promise}function finalizeAndReportTiming(Bn,Hn="other"){if(Bn.type==="error"&&Bn.aborted){return}if(!Bn.urlList?.length){return}const zn=Bn.urlList[0];let ni=Bn.timingInfo;let Ci=Bn.cacheState;if(!wd(zn)){return}if(ni===null){return}if(!Bn.timingAllowPassed){ni=kp({startTime:ni.startTime});Ci=""}ni.endTime=Jp();Bn.timingInfo=ni;markResourceTiming(ni,zn,Hn,globalThis,Ci)}function markResourceTiming(Bn,Hn,zn,ni,Ci){if(hg>18||hg===18&&mg>=2){performance.markResourceTiming(Bn,Hn.href,zn,ni,Ci)}}function abortFetch(Bn,Hn,zn,ni){if(!ni){ni=new ag("The operation was aborted.","AbortError")}Bn.reject(ni);if(Hn.body!=null&&dg(Hn.body?.stream)){Hn.body.stream.cancel(ni).catch((Bn=>{if(Bn.code==="ERR_INVALID_STATE"){return}throw Bn}))}if(zn==null){return}const Ci=zn[Pd];if(Ci.body!=null&&dg(Ci.body?.stream)){Ci.body.stream.cancel(ni).catch((Bn=>{if(Bn.code==="ERR_INVALID_STATE"){return}throw Bn}))}}function fetching({request:Bn,processRequestBodyChunkLength:Hn,processRequestEndOfBody:zn,processResponse:ni,processResponseEndOfBody:Ci,processResponseConsumeBody:ts,useParallelQueue:Ps=false,dispatcher:aa}){let oa=null;let ca=false;if(Bn.client!=null){oa=Bn.client.globalObject;ca=Bn.client.crossOriginIsolatedCapability}const _a=Jp(ca);const xa=kp({startTime:_a});const Ga={controller:new Fetch(aa),request:Bn,timingInfo:xa,processRequestBodyChunkLength:Hn,processRequestEndOfBody:zn,processResponse:ni,processResponseConsumeBody:ts,processResponseEndOfBody:Ci,taskDestination:oa,crossOriginIsolatedCapability:ca};Z_(!Bn.body||Bn.body.stream);if(Bn.window==="client"){Bn.window=Bn.client?.globalObject?.constructor?.name==="Window"?Bn.client:"no-window"}if(Bn.origin==="client"){Bn.origin=Bn.client?.origin}if(Bn.policyContainer==="client"){if(Bn.client!=null){Bn.policyContainer=so(Bn.client.policyContainer)}else{Bn.policyContainer=Ha()}}if(!Bn.headersList.contains("accept")){const Hn="*/*";Bn.headersList.append("accept",Hn)}if(!Bn.headersList.contains("accept-language")){Bn.headersList.append("accept-language","*")}if(Bn.priority===null){}if(sg.has(Bn.destination)){}mainFetch(Ga).catch((Bn=>{Ga.controller.terminate(Bn)}));return Ga.controller}async function mainFetch(Bn,Hn=false){const zn=Bn.request;let ni=null;if(zn.localURLsOnly&&!xd(Fc(zn))){ni=Ci("local URLs only")}Dp(zn);if(oo(zn)==="blocked"){ni=Ci("bad port")}if(zn.referrerPolicy===""){zn.referrerPolicy=zn.policyContainer.referrerPolicy}if(zn.referrer!=="no-referrer"){zn.referrer=Vp(zn)}if(ni===null){ni=await(async()=>{const Hn=Fc(zn);if(Qf(Hn,zn.url)&&zn.responseTainting==="basic"||Hn.protocol==="data:"||(zn.mode==="navigate"||zn.mode==="websocket")){zn.responseTainting="basic";return await schemeFetch(Bn)}if(zn.mode==="same-origin"){return Ci('request mode cannot be "same-origin"')}if(zn.mode==="no-cors"){if(zn.redirect!=="follow"){return Ci('redirect mode cannot be "follow" for "no-cors" request')}zn.responseTainting="opaque";return await schemeFetch(Bn)}if(!wd(Fc(zn))){return Ci("URL scheme must be a HTTP(S) scheme")}zn.responseTainting="cors";return await httpFetch(Bn)})()}if(Hn){return ni}if(ni.status!==0&&!ni.internalResponse){if(zn.responseTainting==="cors"){}if(zn.responseTainting==="basic"){ni=Ps(ni,"basic")}else if(zn.responseTainting==="cors"){ni=Ps(ni,"cors")}else if(zn.responseTainting==="opaque"){ni=Ps(ni,"opaque")}else{Z_(false)}}let ts=ni.status===0?ni:ni.internalResponse;if(ts.urlList.length===0){ts.urlList.push(...zn.urlList)}if(!zn.timingAllowFailed){ni.timingAllowPassed=true}if(ni.type==="opaque"&&ts.status===206&&ts.rangeRequested&&!zn.headers.contains("range")){ni=ts=Ci()}if(ni.status!==0&&(zn.method==="HEAD"||zn.method==="CONNECT"||rg.includes(ts.status))){ts.body=null;Bn.controller.dump=true}if(zn.integrity){const processBodyError=Hn=>fetchFinale(Bn,Ci(Hn));if(zn.responseTainting==="opaque"||ni.body==null){processBodyError(ni.error);return}const processBody=Hn=>{if(!Ga(Hn,zn.integrity)){processBodyError("integrity mismatch");return}ni.body=eg(Hn)[0];fetchFinale(Bn,ni)};await Ad(ni.body,processBody,processBodyError)}else{fetchFinale(Bn,ni)}}function schemeFetch(Bn){if(Yf(Bn)&&Bn.request.redirectCount===0){return Promise.resolve(ts(Bn))}const{request:Hn}=Bn;const{protocol:ni}=Fc(Hn);switch(ni){case"about:":{return Promise.resolve(Ci("about scheme is not supported"))}case"blob:":{if(!Dg){Dg=zn(14300).resolveObjectURL}const Bn=Fc(Hn);if(Bn.search.length!==0){return Promise.resolve(Ci("NetworkError when attempting to fetch resource."))}const ni=Dg(Bn.toString());if(Hn.method!=="GET"||!zp(ni)){return Promise.resolve(Ci("invalid method"))}const ts=eg(ni);const Ps=ts[0];const oa=Sd(`${Ps.length}`);const ca=ts[1]??"";const _a=aa({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:oa}],["content-type",{name:"Content-Type",value:ca}]]});_a.body=Ps;return Promise.resolve(_a)}case"data:":{const Bn=Fc(Hn);const zn=_g(Bn);if(zn==="failure"){return Promise.resolve(Ci("failed to fetch the data URL"))}const ni=gg(zn.mimeType);return Promise.resolve(aa({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:ni}]],body:eg(zn.body)[0]}))}case"file:":{return Promise.resolve(Ci("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(Bn).catch((Bn=>Ci(Bn)))}default:{return Promise.resolve(Ci("unknown scheme"))}}}function finalizeResponse(Bn,Hn){Bn.request.done=true;if(Bn.processResponseDone!=null){queueMicrotask((()=>Bn.processResponseDone(Hn)))}}function fetchFinale(Bn,Hn){if(Hn.type==="error"){Hn.urlList=[Bn.request.urlList[0]];Hn.timingInfo=kp({startTime:Bn.timingInfo.startTime})}const processResponseEndOfBody=()=>{Bn.request.done=true;if(Bn.processResponseEndOfBody!=null){queueMicrotask((()=>Bn.processResponseEndOfBody(Hn)))}};if(Bn.processResponse!=null){queueMicrotask((()=>Bn.processResponse(Hn)))}if(Hn.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(Bn,Hn)=>{Hn.enqueue(Bn)};const Bn=new Ag({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});Hn.body={stream:Hn.body.stream.pipeThrough(Bn)}}if(Bn.processResponseConsumeBody!=null){const processBody=zn=>Bn.processResponseConsumeBody(Hn,zn);const processBodyError=zn=>Bn.processResponseConsumeBody(Hn,zn);if(Hn.body==null){queueMicrotask((()=>processBody(null)))}else{return Ad(Hn.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(Bn){const Hn=Bn.request;let zn=null;let ni=null;const ts=Bn.timingInfo;if(Hn.serviceWorkers==="all"){}if(zn===null){if(Hn.redirect==="follow"){Hn.serviceWorkers="none"}ni=zn=await httpNetworkOrCacheFetch(Bn);if(Hn.responseTainting==="cors"&&Up(Hn,zn)==="failure"){return Ci("cors failure")}if(Jo(Hn,zn)==="failure"){Hn.timingAllowFailed=true}}if((Hn.responseTainting==="opaque"||zn.type==="opaque")&&qp(Hn.origin,Hn.client,Hn.destination,ni)==="blocked"){return Ci("blocked")}if(tg.has(ni.status)){if(Hn.redirect!=="manual"){Bn.controller.connection.destroy()}if(Hn.redirect==="error"){zn=Ci("unexpected redirect")}else if(Hn.redirect==="manual"){zn=ni}else if(Hn.redirect==="follow"){zn=await httpRedirectFetch(Bn,zn)}else{Z_(false)}}zn.timingInfo=ts;return zn}function httpRedirectFetch(Bn,Hn){const zn=Bn.request;const ni=Hn.internalResponse?Hn.internalResponse:Hn;let ts;try{ts=dc(ni,Fc(zn).hash);if(ts==null){return Hn}}catch(Bn){return Promise.resolve(Ci(Bn))}if(!wd(ts)){return Promise.resolve(Ci("URL scheme must be a HTTP(S) scheme"))}if(zn.redirectCount===20){return Promise.resolve(Ci("redirect count exceeded"))}zn.redirectCount+=1;if(zn.mode==="cors"&&(ts.username||ts.password)&&!Qf(zn,ts)){return Promise.resolve(Ci('cross origin not allowed for request mode "cors"'))}if(zn.responseTainting==="cors"&&(ts.username||ts.password)){return Promise.resolve(Ci('URL cannot contain credentials for request mode "cors"'))}if(ni.status!==303&&zn.body!=null&&zn.body.source==null){return Promise.resolve(Ci())}if([301,302].includes(ni.status)&&zn.method==="POST"||ni.status===303&&!bg.includes(zn.method)){zn.method="GET";zn.body=null;for(const Bn of ig){zn.headersList.delete(Bn)}}if(!Qf(Fc(zn),ts)){zn.headersList.delete("authorization");zn.headersList.delete("proxy-authorization",true);zn.headersList.delete("cookie");zn.headersList.delete("host")}if(zn.body!=null){Z_(zn.body.source!=null);zn.body=eg(zn.body.source)[0]}const Ps=Bn.timingInfo;Ps.redirectEndTime=Ps.postRedirectStartTime=Jp(Bn.crossOriginIsolatedCapability);if(Ps.redirectStartTime===0){Ps.redirectStartTime=Ps.startTime}zn.urlList.push(ts);Jc(zn,ni);return mainFetch(Bn,true)}async function httpNetworkOrCacheFetch(Bn,Hn=false,zn=false){const ni=Bn.request;let Ps=null;let aa=null;let oa=null;const ca=null;const xa=false;if(ni.window==="no-window"&&ni.redirect==="error"){Ps=Bn;aa=ni}else{aa=_a(ni);Ps={...Bn};Ps.request=aa}const Ga=ni.credentials==="include"||ni.credentials==="same-origin"&&ni.responseTainting==="basic";const Ha=aa.body?aa.body.length:null;let so=null;if(aa.body==null&&["POST","PUT"].includes(aa.method)){so="0"}if(Ha!=null){so=Sd(`${Ha}`)}if(so!=null){aa.headersList.append("content-length",so)}if(Ha!=null&&aa.keepalive){}if(aa.referrer instanceof URL){aa.headersList.append("referer",Sd(aa.referrer.href))}tc(aa);Qp(aa);if(!aa.headersList.contains("user-agent")){aa.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(aa.cache==="default"&&(aa.headersList.contains("if-modified-since")||aa.headersList.contains("if-none-match")||aa.headersList.contains("if-unmodified-since")||aa.headersList.contains("if-match")||aa.headersList.contains("if-range"))){aa.cache="no-store"}if(aa.cache==="no-cache"&&!aa.preventNoCacheCacheControlHeaderModification&&!aa.headersList.contains("cache-control")){aa.headersList.append("cache-control","max-age=0")}if(aa.cache==="no-store"||aa.cache==="reload"){if(!aa.headersList.contains("pragma")){aa.headersList.append("pragma","no-cache")}if(!aa.headersList.contains("cache-control")){aa.headersList.append("cache-control","no-cache")}}if(aa.headersList.contains("range")){aa.headersList.append("accept-encoding","identity")}if(!aa.headersList.contains("accept-encoding")){if(Td(Fc(aa))){aa.headersList.append("accept-encoding","br, gzip, deflate")}else{aa.headersList.append("accept-encoding","gzip, deflate")}}aa.headersList.delete("host");if(Ga){}if(ca==null){aa.cache="no-store"}if(aa.mode!=="no-store"&&aa.mode!=="reload"){}if(oa==null){if(aa.mode==="only-if-cached"){return Ci("only if cached")}const Bn=await httpNetworkFetch(Ps,Ga,zn);if(!ng.has(aa.method)&&Bn.status>=200&&Bn.status<=399){}if(xa&&Bn.status===304){}if(oa==null){oa=Bn}}oa.urlList=[...aa.urlList];if(aa.headersList.contains("range")){oa.rangeRequested=true}oa.requestIncludesCredentials=Ga;if(oa.status===407){if(ni.window==="no-window"){return Ci()}if(Yf(Bn)){return ts(Bn)}return Ci("proxy authentication required")}if(oa.status===421&&!zn&&(ni.body==null||ni.body.source!=null)){if(Yf(Bn)){return ts(Bn)}Bn.controller.connection.destroy();oa=await httpNetworkOrCacheFetch(Bn,Hn,true)}if(Hn){}return oa}async function httpNetworkFetch(Bn,Hn=false,ni=false){Z_(!Bn.controller.connection||Bn.controller.connection.destroyed);Bn.controller.connection={abort:null,destroyed:false,destroy(Bn){if(!this.destroyed){this.destroyed=true;this.abort?.(Bn??new ag("The operation was aborted.","AbortError"))}}};const Ps=Bn.request;let ca=null;const _a=Bn.timingInfo;const Ga=null;if(Ga==null){Ps.cache="no-store"}const Ha=ni?"yes":"no";if(Ps.mode==="websocket"){}else{}let so=null;if(Ps.body==null&&Bn.processRequestEndOfBody){queueMicrotask((()=>Bn.processRequestEndOfBody()))}else if(Ps.body!=null){const processBodyChunk=async function*(Hn){if(Yf(Bn)){return}yield Hn;Bn.processRequestBodyChunkLength?.(Hn.byteLength)};const processEndOfBody=()=>{if(Yf(Bn)){return}if(Bn.processRequestEndOfBody){Bn.processRequestEndOfBody()}};const processBodyError=Hn=>{if(Yf(Bn)){return}if(Hn.name==="AbortError"){Bn.controller.abort()}else{Bn.controller.terminate(Hn)}};so=async function*(){try{for await(const Bn of Ps.body.stream){yield*processBodyChunk(Bn)}processEndOfBody()}catch(Bn){processBodyError(Bn)}}()}try{const{body:Hn,status:zn,statusText:ni,headersList:Ci,socket:ts}=await dispatch({body:so});if(ts){ca=aa({status:zn,statusText:ni,headersList:Ci,socket:ts})}else{const ts=Hn[Symbol.asyncIterator]();Bn.controller.next=()=>ts.next();ca=aa({status:zn,statusText:ni,headersList:Ci})}}catch(Hn){if(Hn.name==="AbortError"){Bn.controller.connection.destroy();return ts(Bn,Hn)}return Ci(Hn)}const pullAlgorithm=()=>{Bn.controller.resume()};const cancelAlgorithm=Hn=>{Bn.controller.abort(Hn)};if(!Cg){Cg=zn(35356).ReadableStream}const oo=new Cg({async start(Hn){Bn.controller.controller=Hn},async pull(Bn){await pullAlgorithm(Bn)},async cancel(Bn){await cancelAlgorithm(Bn)}},{highWaterMark:0,size(){return 1}});ca.body={stream:oo};Bn.controller.on("terminated",onAborted);Bn.controller.resume=async()=>{while(true){let Hn;let zn;try{const{done:zn,value:ni}=await Bn.controller.next();if(Kf(Bn)){break}Hn=zn?undefined:ni}catch(ni){if(Bn.controller.ended&&!_a.encodedBodySize){Hn=undefined}else{Hn=ni;zn=true}}if(Hn===undefined){Cd(Bn.controller.controller);finalizeResponse(Bn,ca);return}_a.decodedBodySize+=Hn?.byteLength??0;if(zn){Bn.controller.terminate(Hn);return}Bn.controller.controller.enqueue(new Uint8Array(Hn));if(fg(oo)){Bn.controller.terminate();return}if(!Bn.controller.controller.desiredSize){return}}};function onAborted(Hn){if(Kf(Bn)){ca.aborted=true;if(dg(oo)){Bn.controller.controller.error(Bn.controller.serializedAbortReason)}}else{if(dg(oo)){Bn.controller.controller.error(new TypeError("terminated",{cause:Xf(Hn)?Hn:undefined}))}}Bn.controller.connection.destroy()}return ca;async function dispatch({body:Hn}){const zn=Fc(Ps);const ni=Bn.controller.dispatcher;return new Promise(((Ci,ts)=>ni.dispatch({path:zn.pathname+zn.search,origin:zn.origin,method:Ps.method,body:Bn.controller.dispatcher.isMockActive?Ps.body&&(Ps.body.source||Ps.body.stream):Hn,headers:Ps.headersList.entries,maxRedirections:0,upgrade:Ps.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(Hn){const{connection:zn}=Bn.controller;if(zn.destroyed){Hn(new ag("The operation was aborted.","AbortError"))}else{Bn.controller.on("terminated",Hn);this.abort=zn.abort=Hn}},onHeaders(Bn,Hn,zn,ni){if(Bn<200){return}let ts=[];let aa="";const ca=new oa;if(Array.isArray(Hn)){for(let Bn=0;BnBn.trim()))}else if(zn.toLowerCase()==="location"){aa=ni}ca[og].append(zn,ni)}}else{const Bn=Object.keys(Hn);for(const zn of Bn){const Bn=Hn[zn];if(zn.toLowerCase()==="content-encoding"){ts=Bn.toLowerCase().split(",").map((Bn=>Bn.trim())).reverse()}else if(zn.toLowerCase()==="location"){aa=Bn}ca[og].append(zn,Bn)}}this.body=new cg({read:zn});const _a=[];const Ga=Ps.redirect==="follow"&&aa&&tg.has(Bn);if(Ps.method!=="HEAD"&&Ps.method!=="CONNECT"&&!rg.includes(Bn)&&!Ga){for(const Bn of ts){if(Bn==="x-gzip"||Bn==="gzip"){_a.push(xa.createGunzip({flush:xa.constants.Z_SYNC_FLUSH,finishFlush:xa.constants.Z_SYNC_FLUSH}))}else if(Bn==="deflate"){_a.push(xa.createInflate())}else if(Bn==="br"){_a.push(xa.createBrotliDecompress())}else{_a.length=0;break}}}Ci({status:Bn,statusText:ni,headersList:ca[og],body:_a.length?lg(this.body,..._a,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(Hn){if(Bn.controller.dump){return}const zn=Hn;_a.encodedBodySize+=zn.byteLength;return this.body.push(zn)},onComplete(){if(this.abort){Bn.controller.off("terminated",this.abort)}Bn.controller.ended=true;this.body.push(null)},onError(Hn){if(this.abort){Bn.controller.off("terminated",this.abort)}this.body?.destroy(Hn);Bn.controller.terminate(Hn);ts(Hn)},onUpgrade(Bn,Hn,zn){if(Bn!==101){return}const ni=new oa;for(let Bn=0;Bn{"use strict";const{extractBody:ni,mixinBody:Ci,cloneBody:ts}=zn(41472);const{Headers:Ps,fill:aa,HeadersList:oa}=zn(10554);const{FinalizationRegistry:ca}=zn(56436)();const _a=zn(83983);const{isValidHTTPToken:xa,sameOrigin:Ga,normalizeMethod:Ha,makePolicyContainer:so,normalizeMethodRecord:oo}=zn(52538);const{forbiddenMethodsSet:Jo,corsSafeListedMethodsSet:tc,referrerPolicy:dc,requestRedirect:Fc,requestMode:Jc,requestCredentials:Dp,requestCache:kp,requestDuplex:Qp}=zn(41037);const{kEnumerableProperty:Up}=_a;const{kHeaders:qp,kSignal:Vp,kState:Jp,kGuard:Wp,kRealm:zp}=zn(15861);const{webidl:Qf}=zn(21744);const{getGlobalOrigin:Yf}=zn(71246);const{URLSerializer:Kf}=zn(685);const{kHeadersList:Xf,kConstruct:Ad}=zn(72785);const Cd=zn(39491);const{getMaxListeners:Sd,setMaxListeners:xd,getEventListeners:wd,defaultMaxListeners:Td}=zn(82361);let Pd=globalThis.TransformStream;const Qh=Symbol("abortController");const Zh=new ca((({signal:Bn,abort:Hn})=>{Bn.removeEventListener("abort",Hn)}));class Request{constructor(Bn,Hn={}){if(Bn===Ad){return}Qf.argumentLengthCheck(arguments,1,{header:"Request constructor"});Bn=Qf.converters.RequestInfo(Bn);Hn=Qf.converters.RequestInit(Hn);this[zp]={settingsObject:{baseUrl:Yf(),get origin(){return this.baseUrl?.origin},policyContainer:so()}};let Ci=null;let ts=null;const ca=this[zp].settingsObject.baseUrl;let dc=null;if(typeof Bn==="string"){let Hn;try{Hn=new URL(Bn,ca)}catch(Hn){throw new TypeError("Failed to parse URL from "+Bn,{cause:Hn})}if(Hn.username||Hn.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+Bn)}Ci=makeRequest({urlList:[Hn]});ts="cors"}else{Cd(Bn instanceof Request);Ci=Bn[Jp];dc=Bn[Vp]}const Fc=this[zp].settingsObject.origin;let Jc="client";if(Ci.window?.constructor?.name==="EnvironmentSettingsObject"&&Ga(Ci.window,Fc)){Jc=Ci.window}if(Hn.window!=null){throw new TypeError(`'window' option '${Jc}' must be null`)}if("window"in Hn){Jc="no-window"}Ci=makeRequest({method:Ci.method,headersList:Ci.headersList,unsafeRequest:Ci.unsafeRequest,client:this[zp].settingsObject,window:Jc,priority:Ci.priority,origin:Ci.origin,referrer:Ci.referrer,referrerPolicy:Ci.referrerPolicy,mode:Ci.mode,credentials:Ci.credentials,cache:Ci.cache,redirect:Ci.redirect,integrity:Ci.integrity,keepalive:Ci.keepalive,reloadNavigation:Ci.reloadNavigation,historyNavigation:Ci.historyNavigation,urlList:[...Ci.urlList]});const Dp=Object.keys(Hn).length!==0;if(Dp){if(Ci.mode==="navigate"){Ci.mode="same-origin"}Ci.reloadNavigation=false;Ci.historyNavigation=false;Ci.origin="client";Ci.referrer="client";Ci.referrerPolicy="";Ci.url=Ci.urlList[Ci.urlList.length-1];Ci.urlList=[Ci.url]}if(Hn.referrer!==undefined){const Bn=Hn.referrer;if(Bn===""){Ci.referrer="no-referrer"}else{let Hn;try{Hn=new URL(Bn,ca)}catch(Hn){throw new TypeError(`Referrer "${Bn}" is not a valid URL.`,{cause:Hn})}if(Hn.protocol==="about:"&&Hn.hostname==="client"||Fc&&!Ga(Hn,this[zp].settingsObject.baseUrl)){Ci.referrer="client"}else{Ci.referrer=Hn}}}if(Hn.referrerPolicy!==undefined){Ci.referrerPolicy=Hn.referrerPolicy}let kp;if(Hn.mode!==undefined){kp=Hn.mode}else{kp=ts}if(kp==="navigate"){throw Qf.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(kp!=null){Ci.mode=kp}if(Hn.credentials!==undefined){Ci.credentials=Hn.credentials}if(Hn.cache!==undefined){Ci.cache=Hn.cache}if(Ci.cache==="only-if-cached"&&Ci.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(Hn.redirect!==undefined){Ci.redirect=Hn.redirect}if(Hn.integrity!=null){Ci.integrity=String(Hn.integrity)}if(Hn.keepalive!==undefined){Ci.keepalive=Boolean(Hn.keepalive)}if(Hn.method!==undefined){let Bn=Hn.method;if(!xa(Bn)){throw new TypeError(`'${Bn}' is not a valid HTTP method.`)}if(Jo.has(Bn.toUpperCase())){throw new TypeError(`'${Bn}' HTTP method is unsupported.`)}Bn=oo[Bn]??Ha(Bn);Ci.method=Bn}if(Hn.signal!==undefined){dc=Hn.signal}this[Jp]=Ci;const Qp=new AbortController;this[Vp]=Qp.signal;this[Vp][zp]=this[zp];if(dc!=null){if(!dc||typeof dc.aborted!=="boolean"||typeof dc.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(dc.aborted){Qp.abort(dc.reason)}else{this[Qh]=Qp;const Bn=new WeakRef(Qp);const abort=function(){const Hn=Bn.deref();if(Hn!==undefined){Hn.abort(this.reason)}};try{if(typeof Sd==="function"&&Sd(dc)===Td){xd(100,dc)}else if(wd(dc,"abort").length>=Td){xd(100,dc)}}catch{}_a.addAbortListener(dc,abort);Zh.register(Qp,{signal:dc,abort:abort})}}this[qp]=new Ps(Ad);this[qp][Xf]=Ci.headersList;this[qp][Wp]="request";this[qp][zp]=this[zp];if(kp==="no-cors"){if(!tc.has(Ci.method)){throw new TypeError(`'${Ci.method} is unsupported in no-cors mode.`)}this[qp][Wp]="request-no-cors"}if(Dp){const Bn=this[qp][Xf];const zn=Hn.headers!==undefined?Hn.headers:new oa(Bn);Bn.clear();if(zn instanceof oa){for(const[Hn,ni]of zn){Bn.append(Hn,ni)}Bn.cookies=zn.cookies}else{aa(this[qp],zn)}}const Up=Bn instanceof Request?Bn[Jp].body:null;if((Hn.body!=null||Up!=null)&&(Ci.method==="GET"||Ci.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let Kf=null;if(Hn.body!=null){const[Bn,zn]=ni(Hn.body,Ci.keepalive);Kf=Bn;if(zn&&!this[qp][Xf].contains("content-type")){this[qp].append("content-type",zn)}}const f_=Kf??Up;if(f_!=null&&f_.source==null){if(Kf!=null&&Hn.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(Ci.mode!=="same-origin"&&Ci.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}Ci.useCORSPreflightFlag=true}let Z_=f_;if(Kf==null&&Up!=null){if(_a.isDisturbed(Up.stream)||Up.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!Pd){Pd=zn(35356).TransformStream}const Bn=new Pd;Up.stream.pipeThrough(Bn);Z_={source:Up.source,length:Up.length,stream:Bn.readable}}this[Jp].body=Z_}get method(){Qf.brandCheck(this,Request);return this[Jp].method}get url(){Qf.brandCheck(this,Request);return Kf(this[Jp].url)}get headers(){Qf.brandCheck(this,Request);return this[qp]}get destination(){Qf.brandCheck(this,Request);return this[Jp].destination}get referrer(){Qf.brandCheck(this,Request);if(this[Jp].referrer==="no-referrer"){return""}if(this[Jp].referrer==="client"){return"about:client"}return this[Jp].referrer.toString()}get referrerPolicy(){Qf.brandCheck(this,Request);return this[Jp].referrerPolicy}get mode(){Qf.brandCheck(this,Request);return this[Jp].mode}get credentials(){return this[Jp].credentials}get cache(){Qf.brandCheck(this,Request);return this[Jp].cache}get redirect(){Qf.brandCheck(this,Request);return this[Jp].redirect}get integrity(){Qf.brandCheck(this,Request);return this[Jp].integrity}get keepalive(){Qf.brandCheck(this,Request);return this[Jp].keepalive}get isReloadNavigation(){Qf.brandCheck(this,Request);return this[Jp].reloadNavigation}get isHistoryNavigation(){Qf.brandCheck(this,Request);return this[Jp].historyNavigation}get signal(){Qf.brandCheck(this,Request);return this[Vp]}get body(){Qf.brandCheck(this,Request);return this[Jp].body?this[Jp].body.stream:null}get bodyUsed(){Qf.brandCheck(this,Request);return!!this[Jp].body&&_a.isDisturbed(this[Jp].body.stream)}get duplex(){Qf.brandCheck(this,Request);return"half"}clone(){Qf.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const Bn=cloneRequest(this[Jp]);const Hn=new Request(Ad);Hn[Jp]=Bn;Hn[zp]=this[zp];Hn[qp]=new Ps(Ad);Hn[qp][Xf]=Bn.headersList;Hn[qp][Wp]=this[qp][Wp];Hn[qp][zp]=this[qp][zp];const zn=new AbortController;if(this.signal.aborted){zn.abort(this.signal.reason)}else{_a.addAbortListener(this.signal,(()=>{zn.abort(this.signal.reason)}))}Hn[Vp]=zn.signal;return Hn}}Ci(Request);function makeRequest(Bn){const Hn={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...Bn,headersList:Bn.headersList?new oa(Bn.headersList):new oa};Hn.url=Hn.urlList[0];return Hn}function cloneRequest(Bn){const Hn=makeRequest({...Bn,body:null});if(Bn.body!=null){Hn.body=ts(Bn.body)}return Hn}Object.defineProperties(Request.prototype,{method:Up,url:Up,headers:Up,redirect:Up,clone:Up,signal:Up,duplex:Up,destination:Up,body:Up,bodyUsed:Up,isHistoryNavigation:Up,isReloadNavigation:Up,keepalive:Up,integrity:Up,cache:Up,credentials:Up,attribute:Up,referrerPolicy:Up,referrer:Up,mode:Up,[Symbol.toStringTag]:{value:"Request",configurable:true}});Qf.converters.Request=Qf.interfaceConverter(Request);Qf.converters.RequestInfo=function(Bn){if(typeof Bn==="string"){return Qf.converters.USVString(Bn)}if(Bn instanceof Request){return Qf.converters.Request(Bn)}return Qf.converters.USVString(Bn)};Qf.converters.AbortSignal=Qf.interfaceConverter(AbortSignal);Qf.converters.RequestInit=Qf.dictionaryConverter([{key:"method",converter:Qf.converters.ByteString},{key:"headers",converter:Qf.converters.HeadersInit},{key:"body",converter:Qf.nullableConverter(Qf.converters.BodyInit)},{key:"referrer",converter:Qf.converters.USVString},{key:"referrerPolicy",converter:Qf.converters.DOMString,allowedValues:dc},{key:"mode",converter:Qf.converters.DOMString,allowedValues:Jc},{key:"credentials",converter:Qf.converters.DOMString,allowedValues:Dp},{key:"cache",converter:Qf.converters.DOMString,allowedValues:kp},{key:"redirect",converter:Qf.converters.DOMString,allowedValues:Fc},{key:"integrity",converter:Qf.converters.DOMString},{key:"keepalive",converter:Qf.converters.boolean},{key:"signal",converter:Qf.nullableConverter((Bn=>Qf.converters.AbortSignal(Bn,{strict:false})))},{key:"window",converter:Qf.converters.any},{key:"duplex",converter:Qf.converters.DOMString,allowedValues:Qp}]);Bn.exports={Request:Request,makeRequest:makeRequest}},27823:(Bn,Hn,zn)=>{"use strict";const{Headers:ni,HeadersList:Ci,fill:ts}=zn(10554);const{extractBody:Ps,cloneBody:aa,mixinBody:oa}=zn(41472);const ca=zn(83983);const{kEnumerableProperty:_a}=ca;const{isValidReasonPhrase:xa,isCancelled:Ga,isAborted:Ha,isBlobLike:so,serializeJavascriptValueToJSONString:oo,isErrorLike:Jo,isomorphicEncode:tc}=zn(52538);const{redirectStatusSet:dc,nullBodyStatus:Fc,DOMException:Jc}=zn(41037);const{kState:Dp,kHeaders:kp,kGuard:Qp,kRealm:Up}=zn(15861);const{webidl:qp}=zn(21744);const{FormData:Vp}=zn(72015);const{getGlobalOrigin:Jp}=zn(71246);const{URLSerializer:Wp}=zn(685);const{kHeadersList:zp,kConstruct:Qf}=zn(72785);const Yf=zn(39491);const{types:Kf}=zn(73837);const Xf=globalThis.ReadableStream||zn(35356).ReadableStream;const Ad=new TextEncoder("utf-8");class Response{static error(){const Bn={settingsObject:{}};const Hn=new Response;Hn[Dp]=makeNetworkError();Hn[Up]=Bn;Hn[kp][zp]=Hn[Dp].headersList;Hn[kp][Qp]="immutable";Hn[kp][Up]=Bn;return Hn}static json(Bn,Hn={}){qp.argumentLengthCheck(arguments,1,{header:"Response.json"});if(Hn!==null){Hn=qp.converters.ResponseInit(Hn)}const zn=Ad.encode(oo(Bn));const ni=Ps(zn);const Ci={settingsObject:{}};const ts=new Response;ts[Up]=Ci;ts[kp][Qp]="response";ts[kp][Up]=Ci;initializeResponse(ts,Hn,{body:ni[0],type:"application/json"});return ts}static redirect(Bn,Hn=302){const zn={settingsObject:{}};qp.argumentLengthCheck(arguments,1,{header:"Response.redirect"});Bn=qp.converters.USVString(Bn);Hn=qp.converters["unsigned short"](Hn);let ni;try{ni=new URL(Bn,Jp())}catch(Hn){throw Object.assign(new TypeError("Failed to parse URL from "+Bn),{cause:Hn})}if(!dc.has(Hn)){throw new RangeError("Invalid status code "+Hn)}const Ci=new Response;Ci[Up]=zn;Ci[kp][Qp]="immutable";Ci[kp][Up]=zn;Ci[Dp].status=Hn;const ts=tc(Wp(ni));Ci[Dp].headersList.append("location",ts);return Ci}constructor(Bn=null,Hn={}){if(Bn!==null){Bn=qp.converters.BodyInit(Bn)}Hn=qp.converters.ResponseInit(Hn);this[Up]={settingsObject:{}};this[Dp]=makeResponse({});this[kp]=new ni(Qf);this[kp][Qp]="response";this[kp][zp]=this[Dp].headersList;this[kp][Up]=this[Up];let zn=null;if(Bn!=null){const[Hn,ni]=Ps(Bn);zn={body:Hn,type:ni}}initializeResponse(this,Hn,zn)}get type(){qp.brandCheck(this,Response);return this[Dp].type}get url(){qp.brandCheck(this,Response);const Bn=this[Dp].urlList;const Hn=Bn[Bn.length-1]??null;if(Hn===null){return""}return Wp(Hn,true)}get redirected(){qp.brandCheck(this,Response);return this[Dp].urlList.length>1}get status(){qp.brandCheck(this,Response);return this[Dp].status}get ok(){qp.brandCheck(this,Response);return this[Dp].status>=200&&this[Dp].status<=299}get statusText(){qp.brandCheck(this,Response);return this[Dp].statusText}get headers(){qp.brandCheck(this,Response);return this[kp]}get body(){qp.brandCheck(this,Response);return this[Dp].body?this[Dp].body.stream:null}get bodyUsed(){qp.brandCheck(this,Response);return!!this[Dp].body&&ca.isDisturbed(this[Dp].body.stream)}clone(){qp.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw qp.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const Bn=cloneResponse(this[Dp]);const Hn=new Response;Hn[Dp]=Bn;Hn[Up]=this[Up];Hn[kp][zp]=Bn.headersList;Hn[kp][Qp]=this[kp][Qp];Hn[kp][Up]=this[kp][Up];return Hn}}oa(Response);Object.defineProperties(Response.prototype,{type:_a,url:_a,status:_a,ok:_a,redirected:_a,statusText:_a,headers:_a,clone:_a,body:_a,bodyUsed:_a,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:_a,redirect:_a,error:_a});function cloneResponse(Bn){if(Bn.internalResponse){return filterResponse(cloneResponse(Bn.internalResponse),Bn.type)}const Hn=makeResponse({...Bn,body:null});if(Bn.body!=null){Hn.body=aa(Bn.body)}return Hn}function makeResponse(Bn){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...Bn,headersList:Bn.headersList?new Ci(Bn.headersList):new Ci,urlList:Bn.urlList?[...Bn.urlList]:[]}}function makeNetworkError(Bn){const Hn=Jo(Bn);return makeResponse({type:"error",status:0,error:Hn?Bn:new Error(Bn?String(Bn):Bn),aborted:Bn&&Bn.name==="AbortError"})}function makeFilteredResponse(Bn,Hn){Hn={internalResponse:Bn,...Hn};return new Proxy(Bn,{get(Bn,zn){return zn in Hn?Hn[zn]:Bn[zn]},set(Bn,zn,ni){Yf(!(zn in Hn));Bn[zn]=ni;return true}})}function filterResponse(Bn,Hn){if(Hn==="basic"){return makeFilteredResponse(Bn,{type:"basic",headersList:Bn.headersList})}else if(Hn==="cors"){return makeFilteredResponse(Bn,{type:"cors",headersList:Bn.headersList})}else if(Hn==="opaque"){return makeFilteredResponse(Bn,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(Hn==="opaqueredirect"){return makeFilteredResponse(Bn,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{Yf(false)}}function makeAppropriateNetworkError(Bn,Hn=null){Yf(Ga(Bn));return Ha(Bn)?makeNetworkError(Object.assign(new Jc("The operation was aborted.","AbortError"),{cause:Hn})):makeNetworkError(Object.assign(new Jc("Request was cancelled."),{cause:Hn}))}function initializeResponse(Bn,Hn,zn){if(Hn.status!==null&&(Hn.status<200||Hn.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in Hn&&Hn.statusText!=null){if(!xa(String(Hn.statusText))){throw new TypeError("Invalid statusText")}}if("status"in Hn&&Hn.status!=null){Bn[Dp].status=Hn.status}if("statusText"in Hn&&Hn.statusText!=null){Bn[Dp].statusText=Hn.statusText}if("headers"in Hn&&Hn.headers!=null){ts(Bn[kp],Hn.headers)}if(zn){if(Fc.includes(Bn.status)){throw qp.errors.exception({header:"Response constructor",message:"Invalid response status code "+Bn.status})}Bn[Dp].body=zn.body;if(zn.type!=null&&!Bn[Dp].headersList.contains("Content-Type")){Bn[Dp].headersList.append("content-type",zn.type)}}}qp.converters.ReadableStream=qp.interfaceConverter(Xf);qp.converters.FormData=qp.interfaceConverter(Vp);qp.converters.URLSearchParams=qp.interfaceConverter(URLSearchParams);qp.converters.XMLHttpRequestBodyInit=function(Bn){if(typeof Bn==="string"){return qp.converters.USVString(Bn)}if(so(Bn)){return qp.converters.Blob(Bn,{strict:false})}if(Kf.isArrayBuffer(Bn)||Kf.isTypedArray(Bn)||Kf.isDataView(Bn)){return qp.converters.BufferSource(Bn)}if(ca.isFormDataLike(Bn)){return qp.converters.FormData(Bn,{strict:false})}if(Bn instanceof URLSearchParams){return qp.converters.URLSearchParams(Bn)}return qp.converters.DOMString(Bn)};qp.converters.BodyInit=function(Bn){if(Bn instanceof Xf){return qp.converters.ReadableStream(Bn)}if(Bn?.[Symbol.asyncIterator]){return Bn}return qp.converters.XMLHttpRequestBodyInit(Bn)};qp.converters.ResponseInit=qp.dictionaryConverter([{key:"status",converter:qp.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:qp.converters.ByteString,defaultValue:""},{key:"headers",converter:qp.converters.HeadersInit}]);Bn.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},15861:Bn=>{"use strict";Bn.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},52538:(Bn,Hn,zn)=>{"use strict";const{redirectStatusSet:ni,referrerPolicySet:Ci,badPortsSet:ts}=zn(41037);const{getGlobalOrigin:Ps}=zn(71246);const{performance:aa}=zn(4074);const{isBlobLike:oa,toUSVString:ca,ReadableStreamFrom:_a}=zn(83983);const xa=zn(39491);const{isUint8Array:Ga}=zn(29830);let Ha=[];let so;try{so=zn(6113);const Bn=["sha256","sha384","sha512"];Ha=so.getHashes().filter((Hn=>Bn.includes(Hn)))}catch{}function responseURL(Bn){const Hn=Bn.urlList;const zn=Hn.length;return zn===0?null:Hn[zn-1].toString()}function responseLocationURL(Bn,Hn){if(!ni.has(Bn.status)){return null}let zn=Bn.headersList.get("location");if(zn!==null&&isValidHeaderValue(zn)){zn=new URL(zn,responseURL(Bn))}if(zn&&!zn.hash){zn.hash=Hn}return zn}function requestCurrentURL(Bn){return Bn.urlList[Bn.urlList.length-1]}function requestBadPort(Bn){const Hn=requestCurrentURL(Bn);if(urlIsHttpHttpsScheme(Hn)&&ts.has(Hn.port)){return"blocked"}return"allowed"}function isErrorLike(Bn){return Bn instanceof Error||(Bn?.constructor?.name==="Error"||Bn?.constructor?.name==="DOMException")}function isValidReasonPhrase(Bn){for(let Hn=0;Hn=32&&zn<=126||zn>=128&&zn<=255)){return false}}return true}function isTokenCharCode(Bn){switch(Bn){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return Bn>=33&&Bn<=126}}function isValidHTTPToken(Bn){if(Bn.length===0){return false}for(let Hn=0;Hn0){for(let Bn=ni.length;Bn!==0;Bn--){const Hn=ni[Bn-1].trim();if(Ci.has(Hn)){ts=Hn;break}}}if(ts!==""){Bn.referrerPolicy=ts}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(Bn){let Hn=null;Hn=Bn.mode;Bn.headersList.set("sec-fetch-mode",Hn)}function appendRequestOriginHeader(Bn){let Hn=Bn.origin;if(Bn.responseTainting==="cors"||Bn.mode==="websocket"){if(Hn){Bn.headersList.append("origin",Hn)}}else if(Bn.method!=="GET"&&Bn.method!=="HEAD"){switch(Bn.referrerPolicy){case"no-referrer":Hn=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(Bn.origin&&urlHasHttpsScheme(Bn.origin)&&!urlHasHttpsScheme(requestCurrentURL(Bn))){Hn=null}break;case"same-origin":if(!sameOrigin(Bn,requestCurrentURL(Bn))){Hn=null}break;default:}if(Hn){Bn.headersList.append("origin",Hn)}}}function coarsenedSharedCurrentTime(Bn){return aa.now()}function createOpaqueTimingInfo(Bn){return{startTime:Bn.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:Bn.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(Bn){return{referrerPolicy:Bn.referrerPolicy}}function determineRequestsReferrer(Bn){const Hn=Bn.referrerPolicy;xa(Hn);let zn=null;if(Bn.referrer==="client"){const Bn=Ps();if(!Bn||Bn.origin==="null"){return"no-referrer"}zn=new URL(Bn)}else if(Bn.referrer instanceof URL){zn=Bn.referrer}let ni=stripURLForReferrer(zn);const Ci=stripURLForReferrer(zn,true);if(ni.toString().length>4096){ni=Ci}const ts=sameOrigin(Bn,ni);const aa=isURLPotentiallyTrustworthy(ni)&&!isURLPotentiallyTrustworthy(Bn.url);switch(Hn){case"origin":return Ci!=null?Ci:stripURLForReferrer(zn,true);case"unsafe-url":return ni;case"same-origin":return ts?Ci:"no-referrer";case"origin-when-cross-origin":return ts?ni:Ci;case"strict-origin-when-cross-origin":{const Hn=requestCurrentURL(Bn);if(sameOrigin(ni,Hn)){return ni}if(isURLPotentiallyTrustworthy(ni)&&!isURLPotentiallyTrustworthy(Hn)){return"no-referrer"}return Ci}case"strict-origin":case"no-referrer-when-downgrade":default:return aa?"no-referrer":Ci}}function stripURLForReferrer(Bn,Hn){xa(Bn instanceof URL);if(Bn.protocol==="file:"||Bn.protocol==="about:"||Bn.protocol==="blank:"){return"no-referrer"}Bn.username="";Bn.password="";Bn.hash="";if(Hn){Bn.pathname="";Bn.search=""}return Bn}function isURLPotentiallyTrustworthy(Bn){if(!(Bn instanceof URL)){return false}if(Bn.href==="about:blank"||Bn.href==="about:srcdoc"){return true}if(Bn.protocol==="data:")return true;if(Bn.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(Bn.origin);function isOriginPotentiallyTrustworthy(Bn){if(Bn==null||Bn==="null")return false;const Hn=new URL(Bn);if(Hn.protocol==="https:"||Hn.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(Hn.hostname)||(Hn.hostname==="localhost"||Hn.hostname.includes("localhost."))||Hn.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(Bn,Hn){if(so===undefined){return true}const zn=parseMetadata(Hn);if(zn==="no metadata"){return true}if(zn.length===0){return true}const ni=getStrongestMetadata(zn);const Ci=filterMetadataListByAlgorithm(zn,ni);for(const Hn of Ci){const zn=Hn.algo;const ni=Hn.hash;let Ci=so.createHash(zn).update(Bn).digest("base64");if(Ci[Ci.length-1]==="="){if(Ci[Ci.length-2]==="="){Ci=Ci.slice(0,-2)}else{Ci=Ci.slice(0,-1)}}if(compareBase64Mixed(Ci,ni)){return true}}return false}const oo=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(Bn){const Hn=[];let zn=true;for(const ni of Bn.split(" ")){zn=false;const Bn=oo.exec(ni);if(Bn===null||Bn.groups===undefined||Bn.groups.algo===undefined){continue}const Ci=Bn.groups.algo.toLowerCase();if(Ha.includes(Ci)){Hn.push(Bn.groups)}}if(zn===true){return"no metadata"}return Hn}function getStrongestMetadata(Bn){let Hn=Bn[0].algo;if(Hn[3]==="5"){return Hn}for(let zn=1;zn{Bn=zn;Hn=ni}));return{promise:zn,resolve:Bn,reject:Hn}}function isAborted(Bn){return Bn.controller.state==="aborted"}function isCancelled(Bn){return Bn.controller.state==="aborted"||Bn.controller.state==="terminated"}const Jo={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(Jo,null);function normalizeMethod(Bn){return Jo[Bn.toLowerCase()]??Bn}function serializeJavascriptValueToJSONString(Bn){const Hn=JSON.stringify(Bn);if(Hn===undefined){throw new TypeError("Value is not JSON serializable")}xa(typeof Hn==="string");return Hn}const tc=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(Bn,Hn,zn){const ni={index:0,kind:zn,target:Bn};const Ci={next(){if(Object.getPrototypeOf(this)!==Ci){throw new TypeError(`'next' called on an object that does not implement interface ${Hn} Iterator.`)}const{index:Bn,kind:zn,target:ts}=ni;const Ps=ts();const aa=Ps.length;if(Bn>=aa){return{value:undefined,done:true}}const oa=Ps[Bn];ni.index=Bn+1;return iteratorResult(oa,zn)},[Symbol.toStringTag]:`${Hn} Iterator`};Object.setPrototypeOf(Ci,tc);return Object.setPrototypeOf({},Ci)}function iteratorResult(Bn,Hn){let zn;switch(Hn){case"key":{zn=Bn[0];break}case"value":{zn=Bn[1];break}case"key+value":{zn=Bn;break}}return{value:zn,done:false}}async function fullyReadBody(Bn,Hn,zn){const ni=Hn;const Ci=zn;let ts;try{ts=Bn.stream.getReader()}catch(Bn){Ci(Bn);return}try{const Bn=await readAllBytes(ts);ni(Bn)}catch(Bn){Ci(Bn)}}let dc=globalThis.ReadableStream;function isReadableStreamLike(Bn){if(!dc){dc=zn(35356).ReadableStream}return Bn instanceof dc||Bn[Symbol.toStringTag]==="ReadableStream"&&typeof Bn.tee==="function"}const Fc=65535;function isomorphicDecode(Bn){if(Bn.lengthBn+String.fromCharCode(Hn)),"")}function readableStreamClose(Bn){try{Bn.close()}catch(Bn){if(!Bn.message.includes("Controller is already closed")){throw Bn}}}function isomorphicEncode(Bn){for(let Hn=0;HnObject.prototype.hasOwnProperty.call(Bn,Hn));Bn.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:_a,toUSVString:ca,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:oa,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:Jc,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:Jo,parseMetadata:parseMetadata}},21744:(Bn,Hn,zn)=>{"use strict";const{types:ni}=zn(73837);const{hasOwn:Ci,toUSVString:ts}=zn(52538);const Ps={};Ps.converters={};Ps.util={};Ps.errors={};Ps.errors.exception=function(Bn){return new TypeError(`${Bn.header}: ${Bn.message}`)};Ps.errors.conversionFailed=function(Bn){const Hn=Bn.types.length===1?"":" one of";const zn=`${Bn.argument} could not be converted to`+`${Hn}: ${Bn.types.join(", ")}.`;return Ps.errors.exception({header:Bn.prefix,message:zn})};Ps.errors.invalidArgument=function(Bn){return Ps.errors.exception({header:Bn.prefix,message:`"${Bn.value}" is an invalid ${Bn.type}.`})};Ps.brandCheck=function(Bn,Hn,zn=undefined){if(zn?.strict!==false&&!(Bn instanceof Hn)){throw new TypeError("Illegal invocation")}else{return Bn?.[Symbol.toStringTag]===Hn.prototype[Symbol.toStringTag]}};Ps.argumentLengthCheck=function({length:Bn},Hn,zn){if(BnCi){throw Ps.errors.exception({header:"Integer conversion",message:`Value must be between ${ts}-${Ci}, got ${aa}.`})}return aa}if(!Number.isNaN(aa)&&ni.clamp===true){aa=Math.min(Math.max(aa,ts),Ci);if(Math.floor(aa)%2===0){aa=Math.floor(aa)}else{aa=Math.ceil(aa)}return aa}if(Number.isNaN(aa)||aa===0&&Object.is(0,aa)||aa===Number.POSITIVE_INFINITY||aa===Number.NEGATIVE_INFINITY){return 0}aa=Ps.util.IntegerPart(aa);aa=aa%Math.pow(2,Hn);if(zn==="signed"&&aa>=Math.pow(2,Hn)-1){return aa-Math.pow(2,Hn)}return aa};Ps.util.IntegerPart=function(Bn){const Hn=Math.floor(Math.abs(Bn));if(Bn<0){return-1*Hn}return Hn};Ps.sequenceConverter=function(Bn){return Hn=>{if(Ps.util.Type(Hn)!=="Object"){throw Ps.errors.exception({header:"Sequence",message:`Value of type ${Ps.util.Type(Hn)} is not an Object.`})}const zn=Hn?.[Symbol.iterator]?.();const ni=[];if(zn===undefined||typeof zn.next!=="function"){throw Ps.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:Hn,value:Ci}=zn.next();if(Hn){break}ni.push(Bn(Ci))}return ni}};Ps.recordConverter=function(Bn,Hn){return zn=>{if(Ps.util.Type(zn)!=="Object"){throw Ps.errors.exception({header:"Record",message:`Value of type ${Ps.util.Type(zn)} is not an Object.`})}const Ci={};if(!ni.isProxy(zn)){const ni=Object.keys(zn);for(const ts of ni){const ni=Bn(ts);const Ps=Hn(zn[ts]);Ci[ni]=Ps}return Ci}const ts=Reflect.ownKeys(zn);for(const ni of ts){const ts=Reflect.getOwnPropertyDescriptor(zn,ni);if(ts?.enumerable){const ts=Bn(ni);const Ps=Hn(zn[ni]);Ci[ts]=Ps}}return Ci}};Ps.interfaceConverter=function(Bn){return(Hn,zn={})=>{if(zn.strict!==false&&!(Hn instanceof Bn)){throw Ps.errors.exception({header:Bn.name,message:`Expected ${Hn} to be an instance of ${Bn.name}.`})}return Hn}};Ps.dictionaryConverter=function(Bn){return Hn=>{const zn=Ps.util.Type(Hn);const ni={};if(zn==="Null"||zn==="Undefined"){return ni}else if(zn!=="Object"){throw Ps.errors.exception({header:"Dictionary",message:`Expected ${Hn} to be one of: Null, Undefined, Object.`})}for(const zn of Bn){const{key:Bn,defaultValue:ts,required:aa,converter:oa}=zn;if(aa===true){if(!Ci(Hn,Bn)){throw Ps.errors.exception({header:"Dictionary",message:`Missing required key "${Bn}".`})}}let ca=Hn[Bn];const _a=Ci(zn,"defaultValue");if(_a&&ca!==null){ca=ca??ts}if(aa||_a||ca!==undefined){ca=oa(ca);if(zn.allowedValues&&!zn.allowedValues.includes(ca)){throw Ps.errors.exception({header:"Dictionary",message:`${ca} is not an accepted type. Expected one of ${zn.allowedValues.join(", ")}.`})}ni[Bn]=ca}}return ni}};Ps.nullableConverter=function(Bn){return Hn=>{if(Hn===null){return Hn}return Bn(Hn)}};Ps.converters.DOMString=function(Bn,Hn={}){if(Bn===null&&Hn.legacyNullToEmptyString){return""}if(typeof Bn==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(Bn)};Ps.converters.ByteString=function(Bn){const Hn=Ps.converters.DOMString(Bn);for(let Bn=0;Bn255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${Bn} has a value of ${Hn.charCodeAt(Bn)} which is greater than 255.`)}}return Hn};Ps.converters.USVString=ts;Ps.converters.boolean=function(Bn){const Hn=Boolean(Bn);return Hn};Ps.converters.any=function(Bn){return Bn};Ps.converters["long long"]=function(Bn){const Hn=Ps.util.ConvertToInt(Bn,64,"signed");return Hn};Ps.converters["unsigned long long"]=function(Bn){const Hn=Ps.util.ConvertToInt(Bn,64,"unsigned");return Hn};Ps.converters["unsigned long"]=function(Bn){const Hn=Ps.util.ConvertToInt(Bn,32,"unsigned");return Hn};Ps.converters["unsigned short"]=function(Bn,Hn){const zn=Ps.util.ConvertToInt(Bn,16,"unsigned",Hn);return zn};Ps.converters.ArrayBuffer=function(Bn,Hn={}){if(Ps.util.Type(Bn)!=="Object"||!ni.isAnyArrayBuffer(Bn)){throw Ps.errors.conversionFailed({prefix:`${Bn}`,argument:`${Bn}`,types:["ArrayBuffer"]})}if(Hn.allowShared===false&&ni.isSharedArrayBuffer(Bn)){throw Ps.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return Bn};Ps.converters.TypedArray=function(Bn,Hn,zn={}){if(Ps.util.Type(Bn)!=="Object"||!ni.isTypedArray(Bn)||Bn.constructor.name!==Hn.name){throw Ps.errors.conversionFailed({prefix:`${Hn.name}`,argument:`${Bn}`,types:[Hn.name]})}if(zn.allowShared===false&&ni.isSharedArrayBuffer(Bn.buffer)){throw Ps.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return Bn};Ps.converters.DataView=function(Bn,Hn={}){if(Ps.util.Type(Bn)!=="Object"||!ni.isDataView(Bn)){throw Ps.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(Hn.allowShared===false&&ni.isSharedArrayBuffer(Bn.buffer)){throw Ps.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return Bn};Ps.converters.BufferSource=function(Bn,Hn={}){if(ni.isAnyArrayBuffer(Bn)){return Ps.converters.ArrayBuffer(Bn,Hn)}if(ni.isTypedArray(Bn)){return Ps.converters.TypedArray(Bn,Bn.constructor)}if(ni.isDataView(Bn)){return Ps.converters.DataView(Bn,Hn)}throw new TypeError(`Could not convert ${Bn} to a BufferSource.`)};Ps.converters["sequence"]=Ps.sequenceConverter(Ps.converters.ByteString);Ps.converters["sequence>"]=Ps.sequenceConverter(Ps.converters["sequence"]);Ps.converters["record"]=Ps.recordConverter(Ps.converters.ByteString,Ps.converters.ByteString);Bn.exports={webidl:Ps}},84854:Bn=>{"use strict";function getEncoding(Bn){if(!Bn){return"failure"}switch(Bn.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}Bn.exports={getEncoding:getEncoding}},1446:(Bn,Hn,zn)=>{"use strict";const{staticPropertyDescriptors:ni,readOperation:Ci,fireAProgressEvent:ts}=zn(87530);const{kState:Ps,kError:aa,kResult:oa,kEvents:ca,kAborted:_a}=zn(29054);const{webidl:xa}=zn(21744);const{kEnumerableProperty:Ga}=zn(83983);class FileReader extends EventTarget{constructor(){super();this[Ps]="empty";this[oa]=null;this[aa]=null;this[ca]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(Bn){xa.brandCheck(this,FileReader);xa.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});Bn=xa.converters.Blob(Bn,{strict:false});Ci(this,Bn,"ArrayBuffer")}readAsBinaryString(Bn){xa.brandCheck(this,FileReader);xa.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});Bn=xa.converters.Blob(Bn,{strict:false});Ci(this,Bn,"BinaryString")}readAsText(Bn,Hn=undefined){xa.brandCheck(this,FileReader);xa.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});Bn=xa.converters.Blob(Bn,{strict:false});if(Hn!==undefined){Hn=xa.converters.DOMString(Hn)}Ci(this,Bn,"Text",Hn)}readAsDataURL(Bn){xa.brandCheck(this,FileReader);xa.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});Bn=xa.converters.Blob(Bn,{strict:false});Ci(this,Bn,"DataURL")}abort(){if(this[Ps]==="empty"||this[Ps]==="done"){this[oa]=null;return}if(this[Ps]==="loading"){this[Ps]="done";this[oa]=null}this[_a]=true;ts("abort",this);if(this[Ps]!=="loading"){ts("loadend",this)}}get readyState(){xa.brandCheck(this,FileReader);switch(this[Ps]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){xa.brandCheck(this,FileReader);return this[oa]}get error(){xa.brandCheck(this,FileReader);return this[aa]}get onloadend(){xa.brandCheck(this,FileReader);return this[ca].loadend}set onloadend(Bn){xa.brandCheck(this,FileReader);if(this[ca].loadend){this.removeEventListener("loadend",this[ca].loadend)}if(typeof Bn==="function"){this[ca].loadend=Bn;this.addEventListener("loadend",Bn)}else{this[ca].loadend=null}}get onerror(){xa.brandCheck(this,FileReader);return this[ca].error}set onerror(Bn){xa.brandCheck(this,FileReader);if(this[ca].error){this.removeEventListener("error",this[ca].error)}if(typeof Bn==="function"){this[ca].error=Bn;this.addEventListener("error",Bn)}else{this[ca].error=null}}get onloadstart(){xa.brandCheck(this,FileReader);return this[ca].loadstart}set onloadstart(Bn){xa.brandCheck(this,FileReader);if(this[ca].loadstart){this.removeEventListener("loadstart",this[ca].loadstart)}if(typeof Bn==="function"){this[ca].loadstart=Bn;this.addEventListener("loadstart",Bn)}else{this[ca].loadstart=null}}get onprogress(){xa.brandCheck(this,FileReader);return this[ca].progress}set onprogress(Bn){xa.brandCheck(this,FileReader);if(this[ca].progress){this.removeEventListener("progress",this[ca].progress)}if(typeof Bn==="function"){this[ca].progress=Bn;this.addEventListener("progress",Bn)}else{this[ca].progress=null}}get onload(){xa.brandCheck(this,FileReader);return this[ca].load}set onload(Bn){xa.brandCheck(this,FileReader);if(this[ca].load){this.removeEventListener("load",this[ca].load)}if(typeof Bn==="function"){this[ca].load=Bn;this.addEventListener("load",Bn)}else{this[ca].load=null}}get onabort(){xa.brandCheck(this,FileReader);return this[ca].abort}set onabort(Bn){xa.brandCheck(this,FileReader);if(this[ca].abort){this.removeEventListener("abort",this[ca].abort)}if(typeof Bn==="function"){this[ca].abort=Bn;this.addEventListener("abort",Bn)}else{this[ca].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:ni,LOADING:ni,DONE:ni,readAsArrayBuffer:Ga,readAsBinaryString:Ga,readAsText:Ga,readAsDataURL:Ga,abort:Ga,readyState:Ga,result:Ga,error:Ga,onloadstart:Ga,onprogress:Ga,onload:Ga,onabort:Ga,onerror:Ga,onloadend:Ga,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:ni,LOADING:ni,DONE:ni});Bn.exports={FileReader:FileReader}},55504:(Bn,Hn,zn)=>{"use strict";const{webidl:ni}=zn(21744);const Ci=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(Bn,Hn={}){Bn=ni.converters.DOMString(Bn);Hn=ni.converters.ProgressEventInit(Hn??{});super(Bn,Hn);this[Ci]={lengthComputable:Hn.lengthComputable,loaded:Hn.loaded,total:Hn.total}}get lengthComputable(){ni.brandCheck(this,ProgressEvent);return this[Ci].lengthComputable}get loaded(){ni.brandCheck(this,ProgressEvent);return this[Ci].loaded}get total(){ni.brandCheck(this,ProgressEvent);return this[Ci].total}}ni.converters.ProgressEventInit=ni.dictionaryConverter([{key:"lengthComputable",converter:ni.converters.boolean,defaultValue:false},{key:"loaded",converter:ni.converters["unsigned long long"],defaultValue:0},{key:"total",converter:ni.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:ni.converters.boolean,defaultValue:false},{key:"cancelable",converter:ni.converters.boolean,defaultValue:false},{key:"composed",converter:ni.converters.boolean,defaultValue:false}]);Bn.exports={ProgressEvent:ProgressEvent}},29054:Bn=>{"use strict";Bn.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},87530:(Bn,Hn,zn)=>{"use strict";const{kState:ni,kError:Ci,kResult:ts,kAborted:Ps,kLastProgressEventFired:aa}=zn(29054);const{ProgressEvent:oa}=zn(55504);const{getEncoding:ca}=zn(84854);const{DOMException:_a}=zn(41037);const{serializeAMimeType:xa,parseMIMEType:Ga}=zn(685);const{types:Ha}=zn(73837);const{StringDecoder:so}=zn(71576);const{btoa:oo}=zn(14300);const Jo={enumerable:true,writable:false,configurable:false};function readOperation(Bn,Hn,zn,oa){if(Bn[ni]==="loading"){throw new _a("Invalid state","InvalidStateError")}Bn[ni]="loading";Bn[ts]=null;Bn[Ci]=null;const ca=Hn.stream();const xa=ca.getReader();const Ga=[];let so=xa.read();let oo=true;(async()=>{while(!Bn[Ps]){try{const{done:ca,value:_a}=await so;if(oo&&!Bn[Ps]){queueMicrotask((()=>{fireAProgressEvent("loadstart",Bn)}))}oo=false;if(!ca&&Ha.isUint8Array(_a)){Ga.push(_a);if((Bn[aa]===undefined||Date.now()-Bn[aa]>=50)&&!Bn[Ps]){Bn[aa]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",Bn)}))}so=xa.read()}else if(ca){queueMicrotask((()=>{Bn[ni]="done";try{const ni=packageData(Ga,zn,Hn.type,oa);if(Bn[Ps]){return}Bn[ts]=ni;fireAProgressEvent("load",Bn)}catch(Hn){Bn[Ci]=Hn;fireAProgressEvent("error",Bn)}if(Bn[ni]!=="loading"){fireAProgressEvent("loadend",Bn)}}));break}}catch(Hn){if(Bn[Ps]){return}queueMicrotask((()=>{Bn[ni]="done";Bn[Ci]=Hn;fireAProgressEvent("error",Bn);if(Bn[ni]!=="loading"){fireAProgressEvent("loadend",Bn)}}));break}}})()}function fireAProgressEvent(Bn,Hn){const zn=new oa(Bn,{bubbles:false,cancelable:false});Hn.dispatchEvent(zn)}function packageData(Bn,Hn,zn,ni){switch(Hn){case"DataURL":{let Hn="data:";const ni=Ga(zn||"application/octet-stream");if(ni!=="failure"){Hn+=xa(ni)}Hn+=";base64,";const Ci=new so("latin1");for(const zn of Bn){Hn+=oo(Ci.write(zn))}Hn+=oo(Ci.end());return Hn}case"Text":{let Hn="failure";if(ni){Hn=ca(ni)}if(Hn==="failure"&&zn){const Bn=Ga(zn);if(Bn!=="failure"){Hn=ca(Bn.parameters.get("charset"))}}if(Hn==="failure"){Hn="UTF-8"}return decode(Bn,Hn)}case"ArrayBuffer":{const Hn=combineByteSequences(Bn);return Hn.buffer}case"BinaryString":{let Hn="";const zn=new so("latin1");for(const ni of Bn){Hn+=zn.write(ni)}Hn+=zn.end();return Hn}}}function decode(Bn,Hn){const zn=combineByteSequences(Bn);const ni=BOMSniffing(zn);let Ci=0;if(ni!==null){Hn=ni;Ci=ni==="UTF-8"?3:2}const ts=zn.slice(Ci);return new TextDecoder(Hn).decode(ts)}function BOMSniffing(Bn){const[Hn,zn,ni]=Bn;if(Hn===239&&zn===187&&ni===191){return"UTF-8"}else if(Hn===254&&zn===255){return"UTF-16BE"}else if(Hn===255&&zn===254){return"UTF-16LE"}return null}function combineByteSequences(Bn){const Hn=Bn.reduce(((Bn,Hn)=>Bn+Hn.byteLength),0);let zn=0;return Bn.reduce(((Bn,Hn)=>{Bn.set(Hn,zn);zn+=Hn.byteLength;return Bn}),new Uint8Array(Hn))}Bn.exports={staticPropertyDescriptors:Jo,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},21892:(Bn,Hn,zn)=>{"use strict";const ni=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:Ci}=zn(48045);const ts=zn(7890);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new ts)}function setGlobalDispatcher(Bn){if(!Bn||typeof Bn.dispatch!=="function"){throw new Ci("Argument agent must implement Agent")}Object.defineProperty(globalThis,ni,{value:Bn,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[ni]}Bn.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},46930:Bn=>{"use strict";Bn.exports=class DecoratorHandler{constructor(Bn){this.handler=Bn}onConnect(...Bn){return this.handler.onConnect(...Bn)}onError(...Bn){return this.handler.onError(...Bn)}onUpgrade(...Bn){return this.handler.onUpgrade(...Bn)}onHeaders(...Bn){return this.handler.onHeaders(...Bn)}onData(...Bn){return this.handler.onData(...Bn)}onComplete(...Bn){return this.handler.onComplete(...Bn)}onBodySent(...Bn){return this.handler.onBodySent(...Bn)}}},72860:(Bn,Hn,zn)=>{"use strict";const ni=zn(83983);const{kBodyUsed:Ci}=zn(72785);const ts=zn(39491);const{InvalidArgumentError:Ps}=zn(48045);const aa=zn(82361);const oa=[300,301,302,303,307,308];const ca=Symbol("body");class BodyAsyncIterable{constructor(Bn){this[ca]=Bn;this[Ci]=false}async*[Symbol.asyncIterator](){ts(!this[Ci],"disturbed");this[Ci]=true;yield*this[ca]}}class RedirectHandler{constructor(Bn,Hn,zn,oa){if(Hn!=null&&(!Number.isInteger(Hn)||Hn<0)){throw new Ps("maxRedirections must be a positive number")}ni.validateHandler(oa,zn.method,zn.upgrade);this.dispatch=Bn;this.location=null;this.abort=null;this.opts={...zn,maxRedirections:0};this.maxRedirections=Hn;this.handler=oa;this.history=[];if(ni.isStream(this.opts.body)){if(ni.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){ts(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[Ci]=false;aa.prototype.on.call(this.opts.body,"data",(function(){this[Ci]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&ni.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(Bn){this.abort=Bn;this.handler.onConnect(Bn,{history:this.history})}onUpgrade(Bn,Hn,zn){this.handler.onUpgrade(Bn,Hn,zn)}onError(Bn){this.handler.onError(Bn)}onHeaders(Bn,Hn,zn,Ci){this.location=this.history.length>=this.maxRedirections||ni.isDisturbed(this.opts.body)?null:parseLocation(Bn,Hn);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(Bn,Hn,zn,Ci)}const{origin:ts,pathname:Ps,search:aa}=ni.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const oa=aa?`${Ps}${aa}`:Ps;this.opts.headers=cleanRequestHeaders(this.opts.headers,Bn===303,this.opts.origin!==ts);this.opts.path=oa;this.opts.origin=ts;this.opts.maxRedirections=0;this.opts.query=null;if(Bn===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(Bn){if(this.location){}else{return this.handler.onData(Bn)}}onComplete(Bn){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(Bn)}}onBodySent(Bn){if(this.handler.onBodySent){this.handler.onBodySent(Bn)}}}function parseLocation(Bn,Hn){if(oa.indexOf(Bn)===-1){return null}for(let Bn=0;Bn{const ni=zn(39491);const{kRetryHandlerDefaultRetry:Ci}=zn(72785);const{RequestRetryError:ts}=zn(48045);const{isDisturbed:Ps,parseHeaders:aa,parseRangeHeader:oa}=zn(83983);function calculateRetryAfterHeader(Bn){const Hn=Date.now();const zn=new Date(Bn).getTime()-Hn;return zn}class RetryHandler{constructor(Bn,Hn){const{retryOptions:zn,...ni}=Bn;const{retry:ts,maxRetries:Ps,maxTimeout:aa,minTimeout:oa,timeoutFactor:ca,methods:_a,errorCodes:xa,retryAfter:Ga,statusCodes:Ha}=zn??{};this.dispatch=Hn.dispatch;this.handler=Hn.handler;this.opts=ni;this.abort=null;this.aborted=false;this.retryOpts={retry:ts??RetryHandler[Ci],retryAfter:Ga??true,maxTimeout:aa??30*1e3,timeout:oa??500,timeoutFactor:ca??2,maxRetries:Ps??5,methods:_a??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:Ha??[500,502,503,504,429],errorCodes:xa??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((Bn=>{this.aborted=true;if(this.abort){this.abort(Bn)}else{this.reason=Bn}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(Bn,Hn,zn){if(this.handler.onUpgrade){this.handler.onUpgrade(Bn,Hn,zn)}}onConnect(Bn){if(this.aborted){Bn(this.reason)}else{this.abort=Bn}}onBodySent(Bn){if(this.handler.onBodySent)return this.handler.onBodySent(Bn)}static[Ci](Bn,{state:Hn,opts:zn},ni){const{statusCode:Ci,code:ts,headers:Ps}=Bn;const{method:aa,retryOptions:oa}=zn;const{maxRetries:ca,timeout:_a,maxTimeout:xa,timeoutFactor:Ga,statusCodes:Ha,errorCodes:so,methods:oo}=oa;let{counter:Jo,currentTimeout:tc}=Hn;tc=tc!=null&&tc>0?tc:_a;if(ts&&ts!=="UND_ERR_REQ_RETRY"&&ts!=="UND_ERR_SOCKET"&&!so.includes(ts)){ni(Bn);return}if(Array.isArray(oo)&&!oo.includes(aa)){ni(Bn);return}if(Ci!=null&&Array.isArray(Ha)&&!Ha.includes(Ci)){ni(Bn);return}if(Jo>ca){ni(Bn);return}let dc=Ps!=null&&Ps["retry-after"];if(dc){dc=Number(dc);dc=isNaN(dc)?calculateRetryAfterHeader(dc):dc*1e3}const Fc=dc>0?Math.min(dc,xa):Math.min(tc*Ga**Jo,xa);Hn.currentTimeout=Fc;setTimeout((()=>ni(null)),Fc)}onHeaders(Bn,Hn,zn,Ci){const Ps=aa(Hn);this.retryCount+=1;if(Bn>=300){this.abort(new ts("Request failed",Bn,{headers:Ps,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(Bn!==206){return true}const Hn=oa(Ps["content-range"]);if(!Hn){this.abort(new ts("Content-Range mismatch",Bn,{headers:Ps,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==Ps.etag){this.abort(new ts("ETag mismatch",Bn,{headers:Ps,count:this.retryCount}));return false}const{start:Ci,size:aa,end:ca=aa}=Hn;ni(this.start===Ci,"content-range mismatch");ni(this.end==null||this.end===ca,"content-range mismatch");this.resume=zn;return true}if(this.end==null){if(Bn===206){const ts=oa(Ps["content-range"]);if(ts==null){return this.handler.onHeaders(Bn,Hn,zn,Ci)}const{start:aa,size:ca,end:_a=ca}=ts;ni(aa!=null&&Number.isFinite(aa)&&this.start!==aa,"content-range mismatch");ni(Number.isFinite(aa));ni(_a!=null&&Number.isFinite(_a)&&this.end!==_a,"invalid content-length");this.start=aa;this.end=_a}if(this.end==null){const Bn=Ps["content-length"];this.end=Bn!=null?Number(Bn):null}ni(Number.isFinite(this.start));ni(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=zn;this.etag=Ps.etag!=null?Ps.etag:null;return this.handler.onHeaders(Bn,Hn,zn,Ci)}const ca=new ts("Request failed",Bn,{headers:Ps,count:this.retryCount});this.abort(ca);return false}onData(Bn){this.start+=Bn.length;return this.handler.onData(Bn)}onComplete(Bn){this.retryCount=0;return this.handler.onComplete(Bn)}onError(Bn){if(this.aborted||Ps(this.opts.body)){return this.handler.onError(Bn)}this.retryOpts.retry(Bn,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(Bn){if(Bn!=null||this.aborted||Ps(this.opts.body)){return this.handler.onError(Bn)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(Bn){this.handler.onError(Bn)}}}}Bn.exports=RetryHandler},38861:(Bn,Hn,zn)=>{"use strict";const ni=zn(72860);function createRedirectInterceptor({maxRedirections:Bn}){return Hn=>function Intercept(zn,Ci){const{maxRedirections:ts=Bn}=zn;if(!ts){return Hn(zn,Ci)}const Ps=new ni(Hn,ts,zn,Ci);zn={...zn,maxRedirections:0};return Hn(zn,Ps)}}Bn.exports=createRedirectInterceptor},30953:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn.SPECIAL_HEADERS=Hn.HEADER_STATE=Hn.MINOR=Hn.MAJOR=Hn.CONNECTION_TOKEN_CHARS=Hn.HEADER_CHARS=Hn.TOKEN=Hn.STRICT_TOKEN=Hn.HEX=Hn.URL_CHAR=Hn.STRICT_URL_CHAR=Hn.USERINFO_CHARS=Hn.MARK=Hn.ALPHANUM=Hn.NUM=Hn.HEX_MAP=Hn.NUM_MAP=Hn.ALPHA=Hn.FINISH=Hn.H_METHOD_MAP=Hn.METHOD_MAP=Hn.METHODS_RTSP=Hn.METHODS_ICE=Hn.METHODS_HTTP=Hn.METHODS=Hn.LENIENT_FLAGS=Hn.FLAGS=Hn.TYPE=Hn.ERROR=void 0;const ni=zn(41891);var Ci;(function(Bn){Bn[Bn["OK"]=0]="OK";Bn[Bn["INTERNAL"]=1]="INTERNAL";Bn[Bn["STRICT"]=2]="STRICT";Bn[Bn["LF_EXPECTED"]=3]="LF_EXPECTED";Bn[Bn["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";Bn[Bn["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";Bn[Bn["INVALID_METHOD"]=6]="INVALID_METHOD";Bn[Bn["INVALID_URL"]=7]="INVALID_URL";Bn[Bn["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";Bn[Bn["INVALID_VERSION"]=9]="INVALID_VERSION";Bn[Bn["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";Bn[Bn["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";Bn[Bn["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";Bn[Bn["INVALID_STATUS"]=13]="INVALID_STATUS";Bn[Bn["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";Bn[Bn["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";Bn[Bn["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";Bn[Bn["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";Bn[Bn["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";Bn[Bn["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";Bn[Bn["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";Bn[Bn["PAUSED"]=21]="PAUSED";Bn[Bn["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";Bn[Bn["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";Bn[Bn["USER"]=24]="USER"})(Ci=Hn.ERROR||(Hn.ERROR={}));var ts;(function(Bn){Bn[Bn["BOTH"]=0]="BOTH";Bn[Bn["REQUEST"]=1]="REQUEST";Bn[Bn["RESPONSE"]=2]="RESPONSE"})(ts=Hn.TYPE||(Hn.TYPE={}));var Ps;(function(Bn){Bn[Bn["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";Bn[Bn["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";Bn[Bn["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";Bn[Bn["CHUNKED"]=8]="CHUNKED";Bn[Bn["UPGRADE"]=16]="UPGRADE";Bn[Bn["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";Bn[Bn["SKIPBODY"]=64]="SKIPBODY";Bn[Bn["TRAILING"]=128]="TRAILING";Bn[Bn["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(Ps=Hn.FLAGS||(Hn.FLAGS={}));var aa;(function(Bn){Bn[Bn["HEADERS"]=1]="HEADERS";Bn[Bn["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";Bn[Bn["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(aa=Hn.LENIENT_FLAGS||(Hn.LENIENT_FLAGS={}));var oa;(function(Bn){Bn[Bn["DELETE"]=0]="DELETE";Bn[Bn["GET"]=1]="GET";Bn[Bn["HEAD"]=2]="HEAD";Bn[Bn["POST"]=3]="POST";Bn[Bn["PUT"]=4]="PUT";Bn[Bn["CONNECT"]=5]="CONNECT";Bn[Bn["OPTIONS"]=6]="OPTIONS";Bn[Bn["TRACE"]=7]="TRACE";Bn[Bn["COPY"]=8]="COPY";Bn[Bn["LOCK"]=9]="LOCK";Bn[Bn["MKCOL"]=10]="MKCOL";Bn[Bn["MOVE"]=11]="MOVE";Bn[Bn["PROPFIND"]=12]="PROPFIND";Bn[Bn["PROPPATCH"]=13]="PROPPATCH";Bn[Bn["SEARCH"]=14]="SEARCH";Bn[Bn["UNLOCK"]=15]="UNLOCK";Bn[Bn["BIND"]=16]="BIND";Bn[Bn["REBIND"]=17]="REBIND";Bn[Bn["UNBIND"]=18]="UNBIND";Bn[Bn["ACL"]=19]="ACL";Bn[Bn["REPORT"]=20]="REPORT";Bn[Bn["MKACTIVITY"]=21]="MKACTIVITY";Bn[Bn["CHECKOUT"]=22]="CHECKOUT";Bn[Bn["MERGE"]=23]="MERGE";Bn[Bn["M-SEARCH"]=24]="M-SEARCH";Bn[Bn["NOTIFY"]=25]="NOTIFY";Bn[Bn["SUBSCRIBE"]=26]="SUBSCRIBE";Bn[Bn["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";Bn[Bn["PATCH"]=28]="PATCH";Bn[Bn["PURGE"]=29]="PURGE";Bn[Bn["MKCALENDAR"]=30]="MKCALENDAR";Bn[Bn["LINK"]=31]="LINK";Bn[Bn["UNLINK"]=32]="UNLINK";Bn[Bn["SOURCE"]=33]="SOURCE";Bn[Bn["PRI"]=34]="PRI";Bn[Bn["DESCRIBE"]=35]="DESCRIBE";Bn[Bn["ANNOUNCE"]=36]="ANNOUNCE";Bn[Bn["SETUP"]=37]="SETUP";Bn[Bn["PLAY"]=38]="PLAY";Bn[Bn["PAUSE"]=39]="PAUSE";Bn[Bn["TEARDOWN"]=40]="TEARDOWN";Bn[Bn["GET_PARAMETER"]=41]="GET_PARAMETER";Bn[Bn["SET_PARAMETER"]=42]="SET_PARAMETER";Bn[Bn["REDIRECT"]=43]="REDIRECT";Bn[Bn["RECORD"]=44]="RECORD";Bn[Bn["FLUSH"]=45]="FLUSH"})(oa=Hn.METHODS||(Hn.METHODS={}));Hn.METHODS_HTTP=[oa.DELETE,oa.GET,oa.HEAD,oa.POST,oa.PUT,oa.CONNECT,oa.OPTIONS,oa.TRACE,oa.COPY,oa.LOCK,oa.MKCOL,oa.MOVE,oa.PROPFIND,oa.PROPPATCH,oa.SEARCH,oa.UNLOCK,oa.BIND,oa.REBIND,oa.UNBIND,oa.ACL,oa.REPORT,oa.MKACTIVITY,oa.CHECKOUT,oa.MERGE,oa["M-SEARCH"],oa.NOTIFY,oa.SUBSCRIBE,oa.UNSUBSCRIBE,oa.PATCH,oa.PURGE,oa.MKCALENDAR,oa.LINK,oa.UNLINK,oa.PRI,oa.SOURCE];Hn.METHODS_ICE=[oa.SOURCE];Hn.METHODS_RTSP=[oa.OPTIONS,oa.DESCRIBE,oa.ANNOUNCE,oa.SETUP,oa.PLAY,oa.PAUSE,oa.TEARDOWN,oa.GET_PARAMETER,oa.SET_PARAMETER,oa.REDIRECT,oa.RECORD,oa.FLUSH,oa.GET,oa.POST];Hn.METHOD_MAP=ni.enumToMap(oa);Hn.H_METHOD_MAP={};Object.keys(Hn.METHOD_MAP).forEach((Bn=>{if(/^H/.test(Bn)){Hn.H_METHOD_MAP[Bn]=Hn.METHOD_MAP[Bn]}}));var ca;(function(Bn){Bn[Bn["SAFE"]=0]="SAFE";Bn[Bn["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";Bn[Bn["UNSAFE"]=2]="UNSAFE"})(ca=Hn.FINISH||(Hn.FINISH={}));Hn.ALPHA=[];for(let Bn="A".charCodeAt(0);Bn<="Z".charCodeAt(0);Bn++){Hn.ALPHA.push(String.fromCharCode(Bn));Hn.ALPHA.push(String.fromCharCode(Bn+32))}Hn.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};Hn.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};Hn.NUM=["0","1","2","3","4","5","6","7","8","9"];Hn.ALPHANUM=Hn.ALPHA.concat(Hn.NUM);Hn.MARK=["-","_",".","!","~","*","'","(",")"];Hn.USERINFO_CHARS=Hn.ALPHANUM.concat(Hn.MARK).concat(["%",";",":","&","=","+","$",","]);Hn.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(Hn.ALPHANUM);Hn.URL_CHAR=Hn.STRICT_URL_CHAR.concat(["\t","\f"]);for(let Bn=128;Bn<=255;Bn++){Hn.URL_CHAR.push(Bn)}Hn.HEX=Hn.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);Hn.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(Hn.ALPHANUM);Hn.TOKEN=Hn.STRICT_TOKEN.concat([" "]);Hn.HEADER_CHARS=["\t"];for(let Bn=32;Bn<=255;Bn++){if(Bn!==127){Hn.HEADER_CHARS.push(Bn)}}Hn.CONNECTION_TOKEN_CHARS=Hn.HEADER_CHARS.filter((Bn=>Bn!==44));Hn.MAJOR=Hn.NUM_MAP;Hn.MINOR=Hn.MAJOR;var _a;(function(Bn){Bn[Bn["GENERAL"]=0]="GENERAL";Bn[Bn["CONNECTION"]=1]="CONNECTION";Bn[Bn["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";Bn[Bn["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";Bn[Bn["UPGRADE"]=4]="UPGRADE";Bn[Bn["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";Bn[Bn["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";Bn[Bn["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";Bn[Bn["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(_a=Hn.HEADER_STATE||(Hn.HEADER_STATE={}));Hn.SPECIAL_HEADERS={connection:_a.CONNECTION,"content-length":_a.CONTENT_LENGTH,"proxy-connection":_a.CONNECTION,"transfer-encoding":_a.TRANSFER_ENCODING,upgrade:_a.UPGRADE}},61145:Bn=>{Bn.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHBfZ2V0X3R5cGUADhVsbGh0dHBfZ2V0X2h0dHBfbWFqb3IADxVsbGh0dHBfZ2V0X2h0dHBfbWlub3IAEBFsbGh0dHBfZ2V0X21ldGhvZAARFmxsaHR0cF9nZXRfc3RhdHVzX2NvZGUAEhJsbGh0dH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EhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ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c2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/pGAgAA2AhAgAEEHNgIMQQAhEAydAQsgAEEANgIcIAAgATYCFCAAQY6bgIAANgIQIABBBjYCDEEAIRAMnAELIBBBFUYNVyAAQQA2AhwgACABNgIUIABBzI6AgAA2AhAgAEEgNgIMQQAhEAybAQsgAEEANgIAIBBBAWohAUEkIRALIAAgEDoAKSAAKAIEIRAgAEEANgIEIAAgECABEKuAgIAAIhANVCABIQEMPgsgAEEANgIAC0EAIRAgAEEANgIcIAAgBDYCFCAAQfGbgIAANgIQIABBBjYCDAyXAQsgAUEVRg1QIABBADYCHCAAIAU2AhQgAEHwj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AAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAOxwEAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB4fICEjJSg/QEFERUZHSElKS0xNT1BRUlPeA1dZW1xdYGJlZmdoaWprbG1vcHFyc3R1dnd4eXp7fH1+gAGCAYUBhgGHAYkBiwGMAY0BjgGPAZABkQGUAZUBlgGXAZgBmQGaAZsBnAGdAZ4BnwGgAaEBogGjAaQBpQGmAacBqAGpAaoBqwGsAa0BrgGvA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QQgAEEANgIEAkAgACAEIAEQrYCAgAAiBA0AIAEhAQytAQsgAEHZADYCHCAAIAE2AhQgACAENgIMQQAhEAy9AQsgACgCBCEEIABBADYCBAJAIAAgBCABEK2AgIAAIgQNACABIQEMqwELIABB2gA2AhwgACABNgIUIAAgBDYCDEEAIRAMvAELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKkBCyAAQdwANgIcIAAgATYCFCAAIAQ2AgxBACEQDLsBCwJAIAEtAABBUGoiEEH/AXFBCk8NACAAIBA6ACogAUEBaiEBQc8AIRAMogELIAAoAgQhBCAAQQA2AgQCQCAAIAQgARCtgICAACIEDQAgASEBDKcBCyAAQd4ANgIcIAAgATYCFCAAIAQ2AgxBACEQDLoBCyAAQQA2AgAgF0EBaiEBAkAgAC0AKUEjTw0AIAEhAQxZCyAAQQA2AhwgACABNgIUIABB04mAgAA2AhAgAEEINgIMQQAhEAy5AQsgAEEANgIAC0EAIRAgAEEANgIcIAAgATYCFCAAQZCzgIAANgIQIABBCDYCDAy3AQsgAEEANgIAIBdBAWohAQJAIAAtAClBIUcNACABIQEMVgsgAEEANgIcIAAgATYCFCAAQZuKgIAANgIQIABBCDYCDEEAIRAMtgELIABBADYCACAXQQFqIQECQCAALQApIhBBXWpBC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0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MDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},41891:(Bn,Hn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn.enumToMap=void 0;function enumToMap(Bn){const Hn={};Object.keys(Bn).forEach((zn=>{const ni=Bn[zn];if(typeof ni==="number"){Hn[zn]=ni}}));return Hn}Hn.enumToMap=enumToMap},66771:(Bn,Hn,zn)=>{"use strict";const{kClients:ni}=zn(72785);const Ci=zn(7890);const{kAgent:ts,kMockAgentSet:Ps,kMockAgentGet:aa,kDispatches:oa,kIsMockActive:ca,kNetConnect:_a,kGetNetConnect:xa,kOptions:Ga,kFactory:Ha}=zn(24347);const so=zn(58687);const oo=zn(26193);const{matchValue:Jo,buildMockOptions:tc}=zn(79323);const{InvalidArgumentError:dc,UndiciError:Fc}=zn(48045);const Jc=zn(60412);const Dp=zn(78891);const kp=zn(86823);class FakeWeakRef{constructor(Bn){this.value=Bn}deref(){return this.value}}class MockAgent extends Jc{constructor(Bn){super(Bn);this[_a]=true;this[ca]=true;if(Bn&&Bn.agent&&typeof Bn.agent.dispatch!=="function"){throw new dc("Argument opts.agent must implement Agent")}const Hn=Bn&&Bn.agent?Bn.agent:new Ci(Bn);this[ts]=Hn;this[ni]=Hn[ni];this[Ga]=tc(Bn)}get(Bn){let Hn=this[aa](Bn);if(!Hn){Hn=this[Ha](Bn);this[Ps](Bn,Hn)}return Hn}dispatch(Bn,Hn){this.get(Bn.origin);return this[ts].dispatch(Bn,Hn)}async close(){await this[ts].close();this[ni].clear()}deactivate(){this[ca]=false}activate(){this[ca]=true}enableNetConnect(Bn){if(typeof Bn==="string"||typeof Bn==="function"||Bn instanceof RegExp){if(Array.isArray(this[_a])){this[_a].push(Bn)}else{this[_a]=[Bn]}}else if(typeof Bn==="undefined"){this[_a]=true}else{throw new dc("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[_a]=false}get isMockActive(){return this[ca]}[Ps](Bn,Hn){this[ni].set(Bn,new FakeWeakRef(Hn))}[Ha](Bn){const Hn=Object.assign({agent:this},this[Ga]);return this[Ga]&&this[Ga].connections===1?new so(Bn,Hn):new oo(Bn,Hn)}[aa](Bn){const Hn=this[ni].get(Bn);if(Hn){return Hn.deref()}if(typeof Bn!=="string"){const Hn=this[Ha]("http://localhost:9999");this[Ps](Bn,Hn);return Hn}for(const[Hn,zn]of Array.from(this[ni])){const ni=zn.deref();if(ni&&typeof Hn!=="string"&&Jo(Hn,Bn)){const Hn=this[Ha](Bn);this[Ps](Bn,Hn);Hn[oa]=ni[oa];return Hn}}}[xa](){return this[_a]}pendingInterceptors(){const Bn=this[ni];return Array.from(Bn.entries()).flatMap((([Bn,Hn])=>Hn.deref()[oa].map((Hn=>({...Hn,origin:Bn}))))).filter((({pending:Bn})=>Bn))}assertNoPendingInterceptors({pendingInterceptorsFormatter:Bn=new kp}={}){const Hn=this.pendingInterceptors();if(Hn.length===0){return}const zn=new Dp("interceptor","interceptors").pluralize(Hn.length);throw new Fc(`\n${zn.count} ${zn.noun} ${zn.is} pending:\n\n${Bn.format(Hn)}\n`.trim())}}Bn.exports=MockAgent},58687:(Bn,Hn,zn)=>{"use strict";const{promisify:ni}=zn(73837);const Ci=zn(33598);const{buildMockDispatch:ts}=zn(79323);const{kDispatches:Ps,kMockAgent:aa,kClose:oa,kOriginalClose:ca,kOrigin:_a,kOriginalDispatch:xa,kConnected:Ga}=zn(24347);const{MockInterceptor:Ha}=zn(90410);const so=zn(72785);const{InvalidArgumentError:oo}=zn(48045);class MockClient extends Ci{constructor(Bn,Hn){super(Bn,Hn);if(!Hn||!Hn.agent||typeof Hn.agent.dispatch!=="function"){throw new oo("Argument opts.agent must implement Agent")}this[aa]=Hn.agent;this[_a]=Bn;this[Ps]=[];this[Ga]=1;this[xa]=this.dispatch;this[ca]=this.close.bind(this);this.dispatch=ts.call(this);this.close=this[oa]}get[so.kConnected](){return this[Ga]}intercept(Bn){return new Ha(Bn,this[Ps])}async[oa](){await ni(this[ca])();this[Ga]=0;this[aa][so.kClients].delete(this[_a])}}Bn.exports=MockClient},50888:(Bn,Hn,zn)=>{"use strict";const{UndiciError:ni}=zn(48045);class MockNotMatchedError extends ni{constructor(Bn){super(Bn);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=Bn||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}Bn.exports={MockNotMatchedError:MockNotMatchedError}},90410:(Bn,Hn,zn)=>{"use strict";const{getResponseData:ni,buildKey:Ci,addMockDispatch:ts}=zn(79323);const{kDispatches:Ps,kDispatchKey:aa,kDefaultHeaders:oa,kDefaultTrailers:ca,kContentLength:_a,kMockDispatch:xa}=zn(24347);const{InvalidArgumentError:Ga}=zn(48045);const{buildURL:Ha}=zn(83983);class MockScope{constructor(Bn){this[xa]=Bn}delay(Bn){if(typeof Bn!=="number"||!Number.isInteger(Bn)||Bn<=0){throw new Ga("waitInMs must be a valid integer > 0")}this[xa].delay=Bn;return this}persist(){this[xa].persist=true;return this}times(Bn){if(typeof Bn!=="number"||!Number.isInteger(Bn)||Bn<=0){throw new Ga("repeatTimes must be a valid integer > 0")}this[xa].times=Bn;return this}}class MockInterceptor{constructor(Bn,Hn){if(typeof Bn!=="object"){throw new Ga("opts must be an object")}if(typeof Bn.path==="undefined"){throw new Ga("opts.path must be defined")}if(typeof Bn.method==="undefined"){Bn.method="GET"}if(typeof Bn.path==="string"){if(Bn.query){Bn.path=Ha(Bn.path,Bn.query)}else{const Hn=new URL(Bn.path,"data://");Bn.path=Hn.pathname+Hn.search}}if(typeof Bn.method==="string"){Bn.method=Bn.method.toUpperCase()}this[aa]=Ci(Bn);this[Ps]=Hn;this[oa]={};this[ca]={};this[_a]=false}createMockScopeDispatchData(Bn,Hn,zn={}){const Ci=ni(Hn);const ts=this[_a]?{"content-length":Ci.length}:{};const Ps={...this[oa],...ts,...zn.headers};const aa={...this[ca],...zn.trailers};return{statusCode:Bn,data:Hn,headers:Ps,trailers:aa}}validateReplyParameters(Bn,Hn,zn){if(typeof Bn==="undefined"){throw new Ga("statusCode must be defined")}if(typeof Hn==="undefined"){throw new Ga("data must be defined")}if(typeof zn!=="object"){throw new Ga("responseOptions must be an object")}}reply(Bn){if(typeof Bn==="function"){const wrappedDefaultsCallback=Hn=>{const zn=Bn(Hn);if(typeof zn!=="object"){throw new Ga("reply options callback must return an object")}const{statusCode:ni,data:Ci="",responseOptions:ts={}}=zn;this.validateReplyParameters(ni,Ci,ts);return{...this.createMockScopeDispatchData(ni,Ci,ts)}};const Hn=ts(this[Ps],this[aa],wrappedDefaultsCallback);return new MockScope(Hn)}const[Hn,zn="",ni={}]=[...arguments];this.validateReplyParameters(Hn,zn,ni);const Ci=this.createMockScopeDispatchData(Hn,zn,ni);const oa=ts(this[Ps],this[aa],Ci);return new MockScope(oa)}replyWithError(Bn){if(typeof Bn==="undefined"){throw new Ga("error must be defined")}const Hn=ts(this[Ps],this[aa],{error:Bn});return new MockScope(Hn)}defaultReplyHeaders(Bn){if(typeof Bn==="undefined"){throw new Ga("headers must be defined")}this[oa]=Bn;return this}defaultReplyTrailers(Bn){if(typeof Bn==="undefined"){throw new Ga("trailers must be defined")}this[ca]=Bn;return this}replyContentLength(){this[_a]=true;return this}}Bn.exports.MockInterceptor=MockInterceptor;Bn.exports.MockScope=MockScope},26193:(Bn,Hn,zn)=>{"use strict";const{promisify:ni}=zn(73837);const Ci=zn(4634);const{buildMockDispatch:ts}=zn(79323);const{kDispatches:Ps,kMockAgent:aa,kClose:oa,kOriginalClose:ca,kOrigin:_a,kOriginalDispatch:xa,kConnected:Ga}=zn(24347);const{MockInterceptor:Ha}=zn(90410);const so=zn(72785);const{InvalidArgumentError:oo}=zn(48045);class MockPool extends Ci{constructor(Bn,Hn){super(Bn,Hn);if(!Hn||!Hn.agent||typeof Hn.agent.dispatch!=="function"){throw new oo("Argument opts.agent must implement Agent")}this[aa]=Hn.agent;this[_a]=Bn;this[Ps]=[];this[Ga]=1;this[xa]=this.dispatch;this[ca]=this.close.bind(this);this.dispatch=ts.call(this);this.close=this[oa]}get[so.kConnected](){return this[Ga]}intercept(Bn){return new Ha(Bn,this[Ps])}async[oa](){await ni(this[ca])();this[Ga]=0;this[aa][so.kClients].delete(this[_a])}}Bn.exports=MockPool},24347:Bn=>{"use strict";Bn.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},79323:(Bn,Hn,zn)=>{"use strict";const{MockNotMatchedError:ni}=zn(50888);const{kDispatches:Ci,kMockAgent:ts,kOriginalDispatch:Ps,kOrigin:aa,kGetNetConnect:oa}=zn(24347);const{buildURL:ca,nop:_a}=zn(83983);const{STATUS_CODES:xa}=zn(13685);const{types:{isPromise:Ga}}=zn(73837);function matchValue(Bn,Hn){if(typeof Bn==="string"){return Bn===Hn}if(Bn instanceof RegExp){return Bn.test(Hn)}if(typeof Bn==="function"){return Bn(Hn)===true}return false}function lowerCaseEntries(Bn){return Object.fromEntries(Object.entries(Bn).map((([Bn,Hn])=>[Bn.toLocaleLowerCase(),Hn])))}function getHeaderByName(Bn,Hn){if(Array.isArray(Bn)){for(let zn=0;zn!Bn)).filter((({path:Bn})=>matchValue(safeUrl(Bn),Ci)));if(ts.length===0){throw new ni(`Mock dispatch not matched for path '${Ci}'`)}ts=ts.filter((({method:Bn})=>matchValue(Bn,Hn.method)));if(ts.length===0){throw new ni(`Mock dispatch not matched for method '${Hn.method}'`)}ts=ts.filter((({body:Bn})=>typeof Bn!=="undefined"?matchValue(Bn,Hn.body):true));if(ts.length===0){throw new ni(`Mock dispatch not matched for body '${Hn.body}'`)}ts=ts.filter((Bn=>matchHeaders(Bn,Hn.headers)));if(ts.length===0){throw new ni(`Mock dispatch not matched for headers '${typeof Hn.headers==="object"?JSON.stringify(Hn.headers):Hn.headers}'`)}return ts[0]}function addMockDispatch(Bn,Hn,zn){const ni={timesInvoked:0,times:1,persist:false,consumed:false};const Ci=typeof zn==="function"?{callback:zn}:{...zn};const ts={...ni,...Hn,pending:true,data:{error:null,...Ci}};Bn.push(ts);return ts}function deleteMockDispatch(Bn,Hn){const zn=Bn.findIndex((Bn=>{if(!Bn.consumed){return false}return matchKey(Bn,Hn)}));if(zn!==-1){Bn.splice(zn,1)}}function buildKey(Bn){const{path:Hn,method:zn,body:ni,headers:Ci,query:ts}=Bn;return{path:Hn,method:zn,body:ni,headers:Ci,query:ts}}function generateKeyValues(Bn){return Object.entries(Bn).reduce(((Bn,[Hn,zn])=>[...Bn,Buffer.from(`${Hn}`),Array.isArray(zn)?zn.map((Bn=>Buffer.from(`${Bn}`))):Buffer.from(`${zn}`)]),[])}function getStatusText(Bn){return xa[Bn]||"unknown"}async function getResponse(Bn){const Hn=[];for await(const zn of Bn){Hn.push(zn)}return Buffer.concat(Hn).toString("utf8")}function mockDispatch(Bn,Hn){const zn=buildKey(Bn);const ni=getMockDispatch(this[Ci],zn);ni.timesInvoked++;if(ni.data.callback){ni.data={...ni.data,...ni.data.callback(Bn)}}const{data:{statusCode:ts,data:Ps,headers:aa,trailers:oa,error:ca},delay:xa,persist:Ha}=ni;const{timesInvoked:so,times:oo}=ni;ni.consumed=!Ha&&so>=oo;ni.pending=so0){setTimeout((()=>{handleReply(this[Ci])}),xa)}else{handleReply(this[Ci])}function handleReply(ni,Ci=Ps){const ca=Array.isArray(Bn.headers)?buildHeadersFromArray(Bn.headers):Bn.headers;const xa=typeof Ci==="function"?Ci({...Bn,headers:ca}):Ci;if(Ga(xa)){xa.then((Bn=>handleReply(ni,Bn)));return}const Ha=getResponseData(xa);const so=generateKeyValues(aa);const oo=generateKeyValues(oa);Hn.abort=_a;Hn.onHeaders(ts,so,resume,getStatusText(ts));Hn.onData(Buffer.from(Ha));Hn.onComplete(oo);deleteMockDispatch(ni,zn)}function resume(){}return true}function buildMockDispatch(){const Bn=this[ts];const Hn=this[aa];const zn=this[Ps];return function dispatch(Ci,ts){if(Bn.isMockActive){try{mockDispatch.call(this,Ci,ts)}catch(Ps){if(Ps instanceof ni){const aa=Bn[oa]();if(aa===false){throw new ni(`${Ps.message}: subsequent request to origin ${Hn} was not allowed (net.connect disabled)`)}if(checkNetConnect(aa,Hn)){zn.call(this,Ci,ts)}else{throw new ni(`${Ps.message}: subsequent request to origin ${Hn} was not allowed (net.connect is not enabled for this origin)`)}}else{throw Ps}}}else{zn.call(this,Ci,ts)}}}function checkNetConnect(Bn,Hn){const zn=new URL(Hn);if(Bn===true){return true}else if(Array.isArray(Bn)&&Bn.some((Bn=>matchValue(Bn,zn.host)))){return true}return false}function buildMockOptions(Bn){if(Bn){const{agent:Hn,...zn}=Bn;return zn}}Bn.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},86823:(Bn,Hn,zn)=>{"use strict";const{Transform:ni}=zn(12781);const{Console:Ci}=zn(96206);Bn.exports=class PendingInterceptorsFormatter{constructor({disableColors:Bn}={}){this.transform=new ni({transform(Bn,Hn,zn){zn(null,Bn)}});this.logger=new Ci({stdout:this.transform,inspectOptions:{colors:!Bn&&!process.env.CI}})}format(Bn){const Hn=Bn.map((({method:Bn,path:Hn,data:{statusCode:zn},persist:ni,times:Ci,timesInvoked:ts,origin:Ps})=>({Method:Bn,Origin:Ps,Path:Hn,"Status code":zn,Persistent:ni?"✅":"❌",Invocations:ts,Remaining:ni?Infinity:Ci-ts})));this.logger.table(Hn);return this.transform.read().toString()}}},78891:Bn=>{"use strict";const Hn={pronoun:"it",is:"is",was:"was",this:"this"};const zn={pronoun:"they",is:"are",was:"were",this:"these"};Bn.exports=class Pluralizer{constructor(Bn,Hn){this.singular=Bn;this.plural=Hn}pluralize(Bn){const ni=Bn===1;const Ci=ni?Hn:zn;const ts=ni?this.singular:this.plural;return{...Ci,count:Bn,noun:ts}}}},68266:Bn=>{"use strict";const Hn=2048;const zn=Hn-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(Hn);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&zn)===this.bottom}push(Bn){this.list[this.top]=Bn;this.top=this.top+1&zn}shift(){const Bn=this.list[this.bottom];if(Bn===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&zn;return Bn}}Bn.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(Bn){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(Bn)}shift(){const Bn=this.tail;const Hn=Bn.shift();if(Bn.isEmpty()&&Bn.next!==null){this.tail=Bn.next}return Hn}}},73198:(Bn,Hn,zn)=>{"use strict";const ni=zn(74839);const Ci=zn(68266);const{kConnected:ts,kSize:Ps,kRunning:aa,kPending:oa,kQueued:ca,kBusy:_a,kFree:xa,kUrl:Ga,kClose:Ha,kDestroy:so,kDispatch:oo}=zn(72785);const Jo=zn(39689);const tc=Symbol("clients");const dc=Symbol("needDrain");const Fc=Symbol("queue");const Jc=Symbol("closed resolve");const Dp=Symbol("onDrain");const kp=Symbol("onConnect");const Qp=Symbol("onDisconnect");const Up=Symbol("onConnectionError");const qp=Symbol("get dispatcher");const Vp=Symbol("add client");const Jp=Symbol("remove client");const Wp=Symbol("stats");class PoolBase extends ni{constructor(){super();this[Fc]=new Ci;this[tc]=[];this[ca]=0;const Bn=this;this[Dp]=function onDrain(Hn,zn){const ni=Bn[Fc];let Ci=false;while(!Ci){const Hn=ni.shift();if(!Hn){break}Bn[ca]--;Ci=!this.dispatch(Hn.opts,Hn.handler)}this[dc]=Ci;if(!this[dc]&&Bn[dc]){Bn[dc]=false;Bn.emit("drain",Hn,[Bn,...zn])}if(Bn[Jc]&&ni.isEmpty()){Promise.all(Bn[tc].map((Bn=>Bn.close()))).then(Bn[Jc])}};this[kp]=(Hn,zn)=>{Bn.emit("connect",Hn,[Bn,...zn])};this[Qp]=(Hn,zn,ni)=>{Bn.emit("disconnect",Hn,[Bn,...zn],ni)};this[Up]=(Hn,zn,ni)=>{Bn.emit("connectionError",Hn,[Bn,...zn],ni)};this[Wp]=new Jo(this)}get[_a](){return this[dc]}get[ts](){return this[tc].filter((Bn=>Bn[ts])).length}get[xa](){return this[tc].filter((Bn=>Bn[ts]&&!Bn[dc])).length}get[oa](){let Bn=this[ca];for(const{[oa]:Hn}of this[tc]){Bn+=Hn}return Bn}get[aa](){let Bn=0;for(const{[aa]:Hn}of this[tc]){Bn+=Hn}return Bn}get[Ps](){let Bn=this[ca];for(const{[Ps]:Hn}of this[tc]){Bn+=Hn}return Bn}get stats(){return this[Wp]}async[Ha](){if(this[Fc].isEmpty()){return Promise.all(this[tc].map((Bn=>Bn.close())))}else{return new Promise((Bn=>{this[Jc]=Bn}))}}async[so](Bn){while(true){const Hn=this[Fc].shift();if(!Hn){break}Hn.handler.onError(Bn)}return Promise.all(this[tc].map((Hn=>Hn.destroy(Bn))))}[oo](Bn,Hn){const zn=this[qp]();if(!zn){this[dc]=true;this[Fc].push({opts:Bn,handler:Hn});this[ca]++}else if(!zn.dispatch(Bn,Hn)){zn[dc]=true;this[dc]=!this[qp]()}return!this[dc]}[Vp](Bn){Bn.on("drain",this[Dp]).on("connect",this[kp]).on("disconnect",this[Qp]).on("connectionError",this[Up]);this[tc].push(Bn);if(this[dc]){process.nextTick((()=>{if(this[dc]){this[Dp](Bn[Ga],[this,Bn])}}))}return this}[Jp](Bn){Bn.close((()=>{const Hn=this[tc].indexOf(Bn);if(Hn!==-1){this[tc].splice(Hn,1)}}));this[dc]=this[tc].some((Bn=>!Bn[dc]&&Bn.closed!==true&&Bn.destroyed!==true))}}Bn.exports={PoolBase:PoolBase,kClients:tc,kNeedDrain:dc,kAddClient:Vp,kRemoveClient:Jp,kGetDispatcher:qp}},39689:(Bn,Hn,zn)=>{const{kFree:ni,kConnected:Ci,kPending:ts,kQueued:Ps,kRunning:aa,kSize:oa}=zn(72785);const ca=Symbol("pool");class PoolStats{constructor(Bn){this[ca]=Bn}get connected(){return this[ca][Ci]}get free(){return this[ca][ni]}get pending(){return this[ca][ts]}get queued(){return this[ca][Ps]}get running(){return this[ca][aa]}get size(){return this[ca][oa]}}Bn.exports=PoolStats},4634:(Bn,Hn,zn)=>{"use strict";const{PoolBase:ni,kClients:Ci,kNeedDrain:ts,kAddClient:Ps,kGetDispatcher:aa}=zn(73198);const oa=zn(33598);const{InvalidArgumentError:ca}=zn(48045);const _a=zn(83983);const{kUrl:xa,kInterceptors:Ga}=zn(72785);const Ha=zn(82067);const so=Symbol("options");const oo=Symbol("connections");const Jo=Symbol("factory");function defaultFactory(Bn,Hn){return new oa(Bn,Hn)}class Pool extends ni{constructor(Bn,{connections:Hn,factory:zn=defaultFactory,connect:ni,connectTimeout:Ci,tls:ts,maxCachedSessions:Ps,socketPath:aa,autoSelectFamily:oa,autoSelectFamilyAttemptTimeout:tc,allowH2:dc,...Fc}={}){super();if(Hn!=null&&(!Number.isFinite(Hn)||Hn<0)){throw new ca("invalid connections")}if(typeof zn!=="function"){throw new ca("factory must be a function.")}if(ni!=null&&typeof ni!=="function"&&typeof ni!=="object"){throw new ca("connect must be a function or an object")}if(typeof ni!=="function"){ni=Ha({...ts,maxCachedSessions:Ps,allowH2:dc,socketPath:aa,timeout:Ci,..._a.nodeHasAutoSelectFamily&&oa?{autoSelectFamily:oa,autoSelectFamilyAttemptTimeout:tc}:undefined,...ni})}this[Ga]=Fc.interceptors&&Fc.interceptors.Pool&&Array.isArray(Fc.interceptors.Pool)?Fc.interceptors.Pool:[];this[oo]=Hn||null;this[xa]=_a.parseOrigin(Bn);this[so]={..._a.deepClone(Fc),connect:ni,allowH2:dc};this[so].interceptors=Fc.interceptors?{...Fc.interceptors}:undefined;this[Jo]=zn}[aa](){let Bn=this[Ci].find((Bn=>!Bn[ts]));if(Bn){return Bn}if(!this[oo]||this[Ci].length{"use strict";const{kProxy:ni,kClose:Ci,kDestroy:ts,kInterceptors:Ps}=zn(72785);const{URL:aa}=zn(57310);const oa=zn(7890);const ca=zn(4634);const _a=zn(74839);const{InvalidArgumentError:xa,RequestAbortedError:Ga}=zn(48045);const Ha=zn(82067);const so=Symbol("proxy agent");const oo=Symbol("proxy client");const Jo=Symbol("proxy headers");const tc=Symbol("request tls settings");const dc=Symbol("proxy tls settings");const Fc=Symbol("connect endpoint function");function defaultProtocolPort(Bn){return Bn==="https:"?443:80}function buildProxyOptions(Bn){if(typeof Bn==="string"){Bn={uri:Bn}}if(!Bn||!Bn.uri){throw new xa("Proxy opts.uri is mandatory")}return{uri:Bn.uri,protocol:Bn.protocol||"https"}}function defaultFactory(Bn,Hn){return new ca(Bn,Hn)}class ProxyAgent extends _a{constructor(Bn){super(Bn);this[ni]=buildProxyOptions(Bn);this[so]=new oa(Bn);this[Ps]=Bn.interceptors&&Bn.interceptors.ProxyAgent&&Array.isArray(Bn.interceptors.ProxyAgent)?Bn.interceptors.ProxyAgent:[];if(typeof Bn==="string"){Bn={uri:Bn}}if(!Bn||!Bn.uri){throw new xa("Proxy opts.uri is mandatory")}const{clientFactory:Hn=defaultFactory}=Bn;if(typeof Hn!=="function"){throw new xa("Proxy opts.clientFactory must be a function.")}this[tc]=Bn.requestTls;this[dc]=Bn.proxyTls;this[Jo]=Bn.headers||{};const zn=new aa(Bn.uri);const{origin:Ci,port:ts,host:ca,username:_a,password:Jc}=zn;if(Bn.auth&&Bn.token){throw new xa("opts.auth cannot be used in combination with opts.token")}else if(Bn.auth){this[Jo]["proxy-authorization"]=`Basic ${Bn.auth}`}else if(Bn.token){this[Jo]["proxy-authorization"]=Bn.token}else if(_a&&Jc){this[Jo]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(_a)}:${decodeURIComponent(Jc)}`).toString("base64")}`}const Dp=Ha({...Bn.proxyTls});this[Fc]=Ha({...Bn.requestTls});this[oo]=Hn(zn,{connect:Dp});this[so]=new oa({...Bn,connect:async(Bn,Hn)=>{let zn=Bn.host;if(!Bn.port){zn+=`:${defaultProtocolPort(Bn.protocol)}`}try{const{socket:ni,statusCode:Ps}=await this[oo].connect({origin:Ci,port:ts,path:zn,signal:Bn.signal,headers:{...this[Jo],host:ca}});if(Ps!==200){ni.on("error",(()=>{})).destroy();Hn(new Ga(`Proxy response (${Ps}) !== 200 when HTTP Tunneling`))}if(Bn.protocol!=="https:"){Hn(null,ni);return}let aa;if(this[tc]){aa=this[tc].servername}else{aa=Bn.servername}this[Fc]({...Bn,servername:aa,httpSocket:ni},Hn)}catch(Bn){Hn(Bn)}}})}dispatch(Bn,Hn){const{host:zn}=new aa(Bn.origin);const ni=buildHeaders(Bn.headers);throwIfProxyAuthIsSent(ni);return this[so].dispatch({...Bn,headers:{...ni,host:zn}},Hn)}async[Ci](){await this[so].close();await this[oo].close()}async[ts](){await this[so].destroy();await this[oo].destroy()}}function buildHeaders(Bn){if(Array.isArray(Bn)){const Hn={};for(let zn=0;znBn.toLowerCase()==="proxy-authorization"));if(Hn){throw new xa("Proxy-Authorization should be sent in ProxyAgent constructor")}}Bn.exports=ProxyAgent},29459:Bn=>{"use strict";let Hn=Date.now();let zn;const ni=[];function onTimeout(){Hn=Date.now();let Bn=ni.length;let zn=0;while(zn0&&Hn>=Ci.state){Ci.state=-1;Ci.callback(Ci.opaque)}if(Ci.state===-1){Ci.state=-2;if(zn!==Bn-1){ni[zn]=ni.pop()}else{ni.pop()}Bn-=1}else{zn+=1}}if(ni.length>0){refreshTimeout()}}function refreshTimeout(){if(zn&&zn.refresh){zn.refresh()}else{clearTimeout(zn);zn=setTimeout(onTimeout,1e3);if(zn.unref){zn.unref()}}}class Timeout{constructor(Bn,Hn,zn){this.callback=Bn;this.delay=Hn;this.opaque=zn;this.state=-2;this.refresh()}refresh(){if(this.state===-2){ni.push(this);if(!zn||ni.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}Bn.exports={setTimeout(Bn,Hn,zn){return Hn<1e3?setTimeout(Bn,Hn,zn):new Timeout(Bn,Hn,zn)},clearTimeout(Bn){if(Bn instanceof Timeout){Bn.clear()}else{clearTimeout(Bn)}}}},35354:(Bn,Hn,zn)=>{"use strict";const ni=zn(67643);const{uid:Ci,states:ts}=zn(19188);const{kReadyState:Ps,kSentClose:aa,kByteParser:oa,kReceivedClose:ca}=zn(37578);const{fireEvent:_a,failWebsocketConnection:xa}=zn(25515);const{CloseEvent:Ga}=zn(52611);const{makeRequest:Ha}=zn(48359);const{fetching:so}=zn(74881);const{Headers:oo}=zn(10554);const{getGlobalDispatcher:Jo}=zn(21892);const{kHeadersList:tc}=zn(72785);const dc={};dc.open=ni.channel("undici:websocket:open");dc.close=ni.channel("undici:websocket:close");dc.socketError=ni.channel("undici:websocket:socket_error");let Fc;try{Fc=zn(6113)}catch{}function establishWebSocketConnection(Bn,Hn,zn,ni,ts){const Ps=Bn;Ps.protocol=Bn.protocol==="ws:"?"http:":"https:";const aa=Ha({urlList:[Ps],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(ts.headers){const Bn=new oo(ts.headers)[tc];aa.headersList=Bn}const oa=Fc.randomBytes(16).toString("base64");aa.headersList.append("sec-websocket-key",oa);aa.headersList.append("sec-websocket-version","13");for(const Bn of Hn){aa.headersList.append("sec-websocket-protocol",Bn)}const ca="";const _a=so({request:aa,useParallelQueue:true,dispatcher:ts.dispatcher??Jo(),processResponse(Bn){if(Bn.type==="error"||Bn.status!==101){xa(zn,"Received network error or non-101 status code.");return}if(Hn.length!==0&&!Bn.headersList.get("Sec-WebSocket-Protocol")){xa(zn,"Server did not respond with sent protocols.");return}if(Bn.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){xa(zn,'Server did not set Upgrade header to "websocket".');return}if(Bn.headersList.get("Connection")?.toLowerCase()!=="upgrade"){xa(zn,'Server did not set Connection header to "upgrade".');return}const ts=Bn.headersList.get("Sec-WebSocket-Accept");const Ps=Fc.createHash("sha1").update(oa+Ci).digest("base64");if(ts!==Ps){xa(zn,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const _a=Bn.headersList.get("Sec-WebSocket-Extensions");if(_a!==null&&_a!==ca){xa(zn,"Received different permessage-deflate than the one set.");return}const Ga=Bn.headersList.get("Sec-WebSocket-Protocol");if(Ga!==null&&Ga!==aa.headersList.get("Sec-WebSocket-Protocol")){xa(zn,"Protocol was not set in the opening handshake.");return}Bn.socket.on("data",onSocketData);Bn.socket.on("close",onSocketClose);Bn.socket.on("error",onSocketError);if(dc.open.hasSubscribers){dc.open.publish({address:Bn.socket.address(),protocol:Ga,extensions:_a})}ni(Bn)}});return _a}function onSocketData(Bn){if(!this.ws[oa].write(Bn)){this.pause()}}function onSocketClose(){const{ws:Bn}=this;const Hn=Bn[aa]&&Bn[ca];let zn=1005;let ni="";const Ci=Bn[oa].closingInfo;if(Ci){zn=Ci.code??1005;ni=Ci.reason}else if(!Bn[aa]){zn=1006}Bn[Ps]=ts.CLOSED;_a("close",Bn,Ga,{wasClean:Hn,code:zn,reason:ni});if(dc.close.hasSubscribers){dc.close.publish({websocket:Bn,code:zn,reason:ni})}}function onSocketError(Bn){const{ws:Hn}=this;Hn[Ps]=ts.CLOSING;if(dc.socketError.hasSubscribers){dc.socketError.publish(Bn)}this.destroy()}Bn.exports={establishWebSocketConnection:establishWebSocketConnection}},19188:Bn=>{"use strict";const Hn="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const zn={enumerable:true,writable:false,configurable:false};const ni={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const Ci={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const ts=2**16-1;const Ps={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const aa=Buffer.allocUnsafe(0);Bn.exports={uid:Hn,staticPropertyDescriptors:zn,states:ni,opcodes:Ci,maxUnsigned16Bit:ts,parserStates:Ps,emptyBuffer:aa}},52611:(Bn,Hn,zn)=>{"use strict";const{webidl:ni}=zn(21744);const{kEnumerableProperty:Ci}=zn(83983);const{MessagePort:ts}=zn(71267);class MessageEvent extends Event{#s;constructor(Bn,Hn={}){ni.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});Bn=ni.converters.DOMString(Bn);Hn=ni.converters.MessageEventInit(Hn);super(Bn,Hn);this.#s=Hn}get data(){ni.brandCheck(this,MessageEvent);return this.#s.data}get origin(){ni.brandCheck(this,MessageEvent);return this.#s.origin}get lastEventId(){ni.brandCheck(this,MessageEvent);return this.#s.lastEventId}get source(){ni.brandCheck(this,MessageEvent);return this.#s.source}get ports(){ni.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#s.ports)){Object.freeze(this.#s.ports)}return this.#s.ports}initMessageEvent(Bn,Hn=false,zn=false,Ci=null,ts="",Ps="",aa=null,oa=[]){ni.brandCheck(this,MessageEvent);ni.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(Bn,{bubbles:Hn,cancelable:zn,data:Ci,origin:ts,lastEventId:Ps,source:aa,ports:oa})}}class CloseEvent extends Event{#s;constructor(Bn,Hn={}){ni.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});Bn=ni.converters.DOMString(Bn);Hn=ni.converters.CloseEventInit(Hn);super(Bn,Hn);this.#s=Hn}get wasClean(){ni.brandCheck(this,CloseEvent);return this.#s.wasClean}get code(){ni.brandCheck(this,CloseEvent);return this.#s.code}get reason(){ni.brandCheck(this,CloseEvent);return this.#s.reason}}class ErrorEvent extends Event{#s;constructor(Bn,Hn){ni.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(Bn,Hn);Bn=ni.converters.DOMString(Bn);Hn=ni.converters.ErrorEventInit(Hn??{});this.#s=Hn}get message(){ni.brandCheck(this,ErrorEvent);return this.#s.message}get filename(){ni.brandCheck(this,ErrorEvent);return this.#s.filename}get lineno(){ni.brandCheck(this,ErrorEvent);return this.#s.lineno}get colno(){ni.brandCheck(this,ErrorEvent);return this.#s.colno}get error(){ni.brandCheck(this,ErrorEvent);return this.#s.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:Ci,origin:Ci,lastEventId:Ci,source:Ci,ports:Ci,initMessageEvent:Ci});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:Ci,code:Ci,wasClean:Ci});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:Ci,filename:Ci,lineno:Ci,colno:Ci,error:Ci});ni.converters.MessagePort=ni.interfaceConverter(ts);ni.converters["sequence"]=ni.sequenceConverter(ni.converters.MessagePort);const Ps=[{key:"bubbles",converter:ni.converters.boolean,defaultValue:false},{key:"cancelable",converter:ni.converters.boolean,defaultValue:false},{key:"composed",converter:ni.converters.boolean,defaultValue:false}];ni.converters.MessageEventInit=ni.dictionaryConverter([...Ps,{key:"data",converter:ni.converters.any,defaultValue:null},{key:"origin",converter:ni.converters.USVString,defaultValue:""},{key:"lastEventId",converter:ni.converters.DOMString,defaultValue:""},{key:"source",converter:ni.nullableConverter(ni.converters.MessagePort),defaultValue:null},{key:"ports",converter:ni.converters["sequence"],get defaultValue(){return[]}}]);ni.converters.CloseEventInit=ni.dictionaryConverter([...Ps,{key:"wasClean",converter:ni.converters.boolean,defaultValue:false},{key:"code",converter:ni.converters["unsigned short"],defaultValue:0},{key:"reason",converter:ni.converters.USVString,defaultValue:""}]);ni.converters.ErrorEventInit=ni.dictionaryConverter([...Ps,{key:"message",converter:ni.converters.DOMString,defaultValue:""},{key:"filename",converter:ni.converters.USVString,defaultValue:""},{key:"lineno",converter:ni.converters["unsigned long"],defaultValue:0},{key:"colno",converter:ni.converters["unsigned long"],defaultValue:0},{key:"error",converter:ni.converters.any}]);Bn.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},25444:(Bn,Hn,zn)=>{"use strict";const{maxUnsigned16Bit:ni}=zn(19188);let Ci;try{Ci=zn(6113)}catch{}class WebsocketFrameSend{constructor(Bn){this.frameData=Bn;this.maskKey=Ci.randomBytes(4)}createFrame(Bn){const Hn=this.frameData?.byteLength??0;let zn=Hn;let Ci=6;if(Hn>ni){Ci+=8;zn=127}else if(Hn>125){Ci+=2;zn=126}const ts=Buffer.allocUnsafe(Hn+Ci);ts[0]=ts[1]=0;ts[0]|=128;ts[0]=(ts[0]&240)+Bn; /*! ws. MIT License. Einar Otto Stangvik */ts[Ci-4]=this.maskKey[0];ts[Ci-3]=this.maskKey[1];ts[Ci-2]=this.maskKey[2];ts[Ci-1]=this.maskKey[3];ts[1]=zn;if(zn===126){ts.writeUInt16BE(Hn,2)}else if(zn===127){ts[2]=ts[3]=0;ts.writeUIntBE(Hn,4,6)}ts[1]|=128;for(let Bn=0;Bn{"use strict";const{Writable:ni}=zn(12781);const Ci=zn(67643);const{parserStates:ts,opcodes:Ps,states:aa,emptyBuffer:oa}=zn(19188);const{kReadyState:ca,kSentClose:_a,kResponse:xa,kReceivedClose:Ga}=zn(37578);const{isValidStatusCode:Ha,failWebsocketConnection:so,websocketMessageReceived:oo}=zn(25515);const{WebsocketFrameSend:Jo}=zn(25444);const tc={};tc.ping=Ci.channel("undici:websocket:ping");tc.pong=Ci.channel("undici:websocket:pong");class ByteParser extends ni{#a=[];#o=0;#u=ts.INFO;#c={};#l=[];constructor(Bn){super();this.ws=Bn}_write(Bn,Hn,zn){this.#a.push(Bn);this.#o+=Bn.length;this.run(zn)}run(Bn){while(true){if(this.#u===ts.INFO){if(this.#o<2){return Bn()}const Hn=this.consume(2);this.#c.fin=(Hn[0]&128)!==0;this.#c.opcode=Hn[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==Ps.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==Ps.BINARY&&this.#c.opcode!==Ps.TEXT){so(this.ws,"Invalid frame type was fragmented.");return}const zn=Hn[1]&127;if(zn<=125){this.#c.payloadLength=zn;this.#u=ts.READ_DATA}else if(zn===126){this.#u=ts.PAYLOADLENGTH_16}else if(zn===127){this.#u=ts.PAYLOADLENGTH_64}if(this.#c.fragmented&&zn>125){so(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===Ps.PING||this.#c.opcode===Ps.PONG||this.#c.opcode===Ps.CLOSE)&&zn>125){so(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===Ps.CLOSE){if(zn===1){so(this.ws,"Received close frame with a 1-byte body.");return}const Bn=this.consume(zn);this.#c.closeInfo=this.parseCloseBody(false,Bn);if(!this.ws[_a]){const Bn=Buffer.allocUnsafe(2);Bn.writeUInt16BE(this.#c.closeInfo.code,0);const Hn=new Jo(Bn);this.ws[xa].socket.write(Hn.createFrame(Ps.CLOSE),(Bn=>{if(!Bn){this.ws[_a]=true}}))}this.ws[ca]=aa.CLOSING;this.ws[Ga]=true;this.end();return}else if(this.#c.opcode===Ps.PING){const Hn=this.consume(zn);if(!this.ws[Ga]){const Bn=new Jo(Hn);this.ws[xa].socket.write(Bn.createFrame(Ps.PONG));if(tc.ping.hasSubscribers){tc.ping.publish({payload:Hn})}}this.#u=ts.INFO;if(this.#o>0){continue}else{Bn();return}}else if(this.#c.opcode===Ps.PONG){const Hn=this.consume(zn);if(tc.pong.hasSubscribers){tc.pong.publish({payload:Hn})}if(this.#o>0){continue}else{Bn();return}}}else if(this.#u===ts.PAYLOADLENGTH_16){if(this.#o<2){return Bn()}const Hn=this.consume(2);this.#c.payloadLength=Hn.readUInt16BE(0);this.#u=ts.READ_DATA}else if(this.#u===ts.PAYLOADLENGTH_64){if(this.#o<8){return Bn()}const Hn=this.consume(8);const zn=Hn.readUInt32BE(0);if(zn>2**31-1){so(this.ws,"Received payload length > 2^31 bytes.");return}const ni=Hn.readUInt32BE(4);this.#c.payloadLength=(zn<<8)+ni;this.#u=ts.READ_DATA}else if(this.#u===ts.READ_DATA){if(this.#o=this.#c.payloadLength){const Bn=this.consume(this.#c.payloadLength);this.#l.push(Bn);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===Ps.CONTINUATION){const Bn=Buffer.concat(this.#l);oo(this.ws,this.#c.originalOpcode,Bn);this.#c={};this.#l.length=0}this.#u=ts.INFO}}if(this.#o>0){continue}else{Bn();break}}}consume(Bn){if(Bn>this.#o){return null}else if(Bn===0){return oa}if(this.#a[0].length===Bn){this.#o-=this.#a[0].length;return this.#a.shift()}const Hn=Buffer.allocUnsafe(Bn);let zn=0;while(zn!==Bn){const ni=this.#a[0];const{length:Ci}=ni;if(Ci+zn===Bn){Hn.set(this.#a.shift(),zn);break}else if(Ci+zn>Bn){Hn.set(ni.subarray(0,Bn-zn),zn);this.#a[0]=ni.subarray(Bn-zn);break}else{Hn.set(this.#a.shift(),zn);zn+=ni.length}}this.#o-=Bn;return Hn}parseCloseBody(Bn,Hn){let zn;if(Hn.length>=2){zn=Hn.readUInt16BE(0)}if(Bn){if(!Ha(zn)){return null}return{code:zn}}let ni=Hn.subarray(2);if(ni[0]===239&&ni[1]===187&&ni[2]===191){ni=ni.subarray(3)}if(zn!==undefined&&!Ha(zn)){return null}try{ni=new TextDecoder("utf-8",{fatal:true}).decode(ni)}catch{return null}return{code:zn,reason:ni}}get closingInfo(){return this.#c.closeInfo}}Bn.exports={ByteParser:ByteParser}},37578:Bn=>{"use strict";Bn.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},25515:(Bn,Hn,zn)=>{"use strict";const{kReadyState:ni,kController:Ci,kResponse:ts,kBinaryType:Ps,kWebSocketURL:aa}=zn(37578);const{states:oa,opcodes:ca}=zn(19188);const{MessageEvent:_a,ErrorEvent:xa}=zn(52611);function isEstablished(Bn){return Bn[ni]===oa.OPEN}function isClosing(Bn){return Bn[ni]===oa.CLOSING}function isClosed(Bn){return Bn[ni]===oa.CLOSED}function fireEvent(Bn,Hn,zn=Event,ni){const Ci=new zn(Bn,ni);Hn.dispatchEvent(Ci)}function websocketMessageReceived(Bn,Hn,zn){if(Bn[ni]!==oa.OPEN){return}let Ci;if(Hn===ca.TEXT){try{Ci=new TextDecoder("utf-8",{fatal:true}).decode(zn)}catch{failWebsocketConnection(Bn,"Received invalid UTF-8 in text frame.");return}}else if(Hn===ca.BINARY){if(Bn[Ps]==="blob"){Ci=new Blob([zn])}else{Ci=new Uint8Array(zn).buffer}}fireEvent("message",Bn,_a,{origin:Bn[aa].origin,data:Ci})}function isValidSubprotocol(Bn){if(Bn.length===0){return false}for(const Hn of Bn){const Bn=Hn.charCodeAt(0);if(Bn<33||Bn>126||Hn==="("||Hn===")"||Hn==="<"||Hn===">"||Hn==="@"||Hn===","||Hn===";"||Hn===":"||Hn==="\\"||Hn==='"'||Hn==="/"||Hn==="["||Hn==="]"||Hn==="?"||Hn==="="||Hn==="{"||Hn==="}"||Bn===32||Bn===9){return false}}return true}function isValidStatusCode(Bn){if(Bn>=1e3&&Bn<1015){return Bn!==1004&&Bn!==1005&&Bn!==1006}return Bn>=3e3&&Bn<=4999}function failWebsocketConnection(Bn,Hn){const{[Ci]:zn,[ts]:ni}=Bn;zn.abort();if(ni?.socket&&!ni.socket.destroyed){ni.socket.destroy()}if(Hn){fireEvent("error",Bn,xa,{error:new Error(Hn)})}}Bn.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},54284:(Bn,Hn,zn)=>{"use strict";const{webidl:ni}=zn(21744);const{DOMException:Ci}=zn(41037);const{URLSerializer:ts}=zn(685);const{getGlobalOrigin:Ps}=zn(71246);const{staticPropertyDescriptors:aa,states:oa,opcodes:ca,emptyBuffer:_a}=zn(19188);const{kWebSocketURL:xa,kReadyState:Ga,kController:Ha,kBinaryType:so,kResponse:oo,kSentClose:Jo,kByteParser:tc}=zn(37578);const{isEstablished:dc,isClosing:Fc,isValidSubprotocol:Jc,failWebsocketConnection:Dp,fireEvent:kp}=zn(25515);const{establishWebSocketConnection:Qp}=zn(35354);const{WebsocketFrameSend:Up}=zn(25444);const{ByteParser:qp}=zn(11688);const{kEnumerableProperty:Vp,isBlobLike:Jp}=zn(83983);const{getGlobalDispatcher:Wp}=zn(21892);const{types:zp}=zn(73837);let Qf=false;class WebSocket extends EventTarget{#p={open:null,error:null,close:null,message:null};#f=0;#d="";#h="";constructor(Bn,Hn=[]){super();ni.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!Qf){Qf=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const zn=ni.converters["DOMString or sequence or WebSocketInit"](Hn);Bn=ni.converters.USVString(Bn);Hn=zn.protocols;const ts=Ps();let aa;try{aa=new URL(Bn,ts)}catch(Bn){throw new Ci(Bn,"SyntaxError")}if(aa.protocol==="http:"){aa.protocol="ws:"}else if(aa.protocol==="https:"){aa.protocol="wss:"}if(aa.protocol!=="ws:"&&aa.protocol!=="wss:"){throw new Ci(`Expected a ws: or wss: protocol, got ${aa.protocol}`,"SyntaxError")}if(aa.hash||aa.href.endsWith("#")){throw new Ci("Got fragment","SyntaxError")}if(typeof Hn==="string"){Hn=[Hn]}if(Hn.length!==new Set(Hn.map((Bn=>Bn.toLowerCase()))).size){throw new Ci("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(Hn.length>0&&!Hn.every((Bn=>Jc(Bn)))){throw new Ci("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[xa]=new URL(aa.href);this[Ha]=Qp(aa,Hn,this,(Bn=>this.#m(Bn)),zn);this[Ga]=WebSocket.CONNECTING;this[so]="blob"}close(Bn=undefined,Hn=undefined){ni.brandCheck(this,WebSocket);if(Bn!==undefined){Bn=ni.converters["unsigned short"](Bn,{clamp:true})}if(Hn!==undefined){Hn=ni.converters.USVString(Hn)}if(Bn!==undefined){if(Bn!==1e3&&(Bn<3e3||Bn>4999)){throw new Ci("invalid code","InvalidAccessError")}}let zn=0;if(Hn!==undefined){zn=Buffer.byteLength(Hn);if(zn>123){throw new Ci(`Reason must be less than 123 bytes; received ${zn}`,"SyntaxError")}}if(this[Ga]===WebSocket.CLOSING||this[Ga]===WebSocket.CLOSED){}else if(!dc(this)){Dp(this,"Connection was closed before it was established.");this[Ga]=WebSocket.CLOSING}else if(!Fc(this)){const ni=new Up;if(Bn!==undefined&&Hn===undefined){ni.frameData=Buffer.allocUnsafe(2);ni.frameData.writeUInt16BE(Bn,0)}else if(Bn!==undefined&&Hn!==undefined){ni.frameData=Buffer.allocUnsafe(2+zn);ni.frameData.writeUInt16BE(Bn,0);ni.frameData.write(Hn,2,"utf-8")}else{ni.frameData=_a}const Ci=this[oo].socket;Ci.write(ni.createFrame(ca.CLOSE),(Bn=>{if(!Bn){this[Jo]=true}}));this[Ga]=oa.CLOSING}else{this[Ga]=WebSocket.CLOSING}}send(Bn){ni.brandCheck(this,WebSocket);ni.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});Bn=ni.converters.WebSocketSendData(Bn);if(this[Ga]===WebSocket.CONNECTING){throw new Ci("Sent before connected.","InvalidStateError")}if(!dc(this)||Fc(this)){return}const Hn=this[oo].socket;if(typeof Bn==="string"){const zn=Buffer.from(Bn);const ni=new Up(zn);const Ci=ni.createFrame(ca.TEXT);this.#f+=zn.byteLength;Hn.write(Ci,(()=>{this.#f-=zn.byteLength}))}else if(zp.isArrayBuffer(Bn)){const zn=Buffer.from(Bn);const ni=new Up(zn);const Ci=ni.createFrame(ca.BINARY);this.#f+=zn.byteLength;Hn.write(Ci,(()=>{this.#f-=zn.byteLength}))}else if(ArrayBuffer.isView(Bn)){const zn=Buffer.from(Bn,Bn.byteOffset,Bn.byteLength);const ni=new Up(zn);const Ci=ni.createFrame(ca.BINARY);this.#f+=zn.byteLength;Hn.write(Ci,(()=>{this.#f-=zn.byteLength}))}else if(Jp(Bn)){const zn=new Up;Bn.arrayBuffer().then((Bn=>{const ni=Buffer.from(Bn);zn.frameData=ni;const Ci=zn.createFrame(ca.BINARY);this.#f+=ni.byteLength;Hn.write(Ci,(()=>{this.#f-=ni.byteLength}))}))}}get readyState(){ni.brandCheck(this,WebSocket);return this[Ga]}get bufferedAmount(){ni.brandCheck(this,WebSocket);return this.#f}get url(){ni.brandCheck(this,WebSocket);return ts(this[xa])}get extensions(){ni.brandCheck(this,WebSocket);return this.#h}get protocol(){ni.brandCheck(this,WebSocket);return this.#d}get onopen(){ni.brandCheck(this,WebSocket);return this.#p.open}set onopen(Bn){ni.brandCheck(this,WebSocket);if(this.#p.open){this.removeEventListener("open",this.#p.open)}if(typeof Bn==="function"){this.#p.open=Bn;this.addEventListener("open",Bn)}else{this.#p.open=null}}get onerror(){ni.brandCheck(this,WebSocket);return this.#p.error}set onerror(Bn){ni.brandCheck(this,WebSocket);if(this.#p.error){this.removeEventListener("error",this.#p.error)}if(typeof Bn==="function"){this.#p.error=Bn;this.addEventListener("error",Bn)}else{this.#p.error=null}}get onclose(){ni.brandCheck(this,WebSocket);return this.#p.close}set onclose(Bn){ni.brandCheck(this,WebSocket);if(this.#p.close){this.removeEventListener("close",this.#p.close)}if(typeof Bn==="function"){this.#p.close=Bn;this.addEventListener("close",Bn)}else{this.#p.close=null}}get onmessage(){ni.brandCheck(this,WebSocket);return this.#p.message}set onmessage(Bn){ni.brandCheck(this,WebSocket);if(this.#p.message){this.removeEventListener("message",this.#p.message)}if(typeof Bn==="function"){this.#p.message=Bn;this.addEventListener("message",Bn)}else{this.#p.message=null}}get binaryType(){ni.brandCheck(this,WebSocket);return this[so]}set binaryType(Bn){ni.brandCheck(this,WebSocket);if(Bn!=="blob"&&Bn!=="arraybuffer"){this[so]="blob"}else{this[so]=Bn}}#m(Bn){this[oo]=Bn;const Hn=new qp(this);Hn.on("drain",(function onParserDrain(){this.ws[oo].socket.resume()}));Bn.socket.ws=this;this[tc]=Hn;this[Ga]=oa.OPEN;const zn=Bn.headersList.get("sec-websocket-extensions");if(zn!==null){this.#h=zn}const ni=Bn.headersList.get("sec-websocket-protocol");if(ni!==null){this.#d=ni}kp("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=oa.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=oa.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=oa.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=oa.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:aa,OPEN:aa,CLOSING:aa,CLOSED:aa,url:Vp,readyState:Vp,bufferedAmount:Vp,onopen:Vp,onerror:Vp,onclose:Vp,close:Vp,onmessage:Vp,binaryType:Vp,send:Vp,extensions:Vp,protocol:Vp,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:aa,OPEN:aa,CLOSING:aa,CLOSED:aa});ni.converters["sequence"]=ni.sequenceConverter(ni.converters.DOMString);ni.converters["DOMString or sequence"]=function(Bn){if(ni.util.Type(Bn)==="Object"&&Symbol.iterator in Bn){return ni.converters["sequence"](Bn)}return ni.converters.DOMString(Bn)};ni.converters.WebSocketInit=ni.dictionaryConverter([{key:"protocols",converter:ni.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:Bn=>Bn,get defaultValue(){return Wp()}},{key:"headers",converter:ni.nullableConverter(ni.converters.HeadersInit)}]);ni.converters["DOMString or sequence or WebSocketInit"]=function(Bn){if(ni.util.Type(Bn)==="Object"&&!(Symbol.iterator in Bn)){return ni.converters.WebSocketInit(Bn)}return{protocols:ni.converters["DOMString or sequence"](Bn)}};ni.converters.WebSocketSendData=function(Bn){if(ni.util.Type(Bn)==="Object"){if(Jp(Bn)){return ni.converters.Blob(Bn,{strict:false})}if(ArrayBuffer.isView(Bn)||zp.isAnyArrayBuffer(Bn)){return ni.converters.BufferSource(Bn)}}return ni.converters.USVString(Bn)};Bn.exports={WebSocket:WebSocket}},45030:(Bn,Hn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}Hn.getUserAgent=getUserAgent},70020:function(Bn,Hn){ /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ -(function(Bn,zn){true?zn(Hn):0})(this,(function(Bn){"use strict";function merge(){for(var Bn=arguments.length,Hn=Array(Bn),zn=0;zn1){Hn[0]=Hn[0].slice(0,-1);var ni=Hn.length-1;for(var Ci=1;Ci= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var tc=ts-Ps;var dc=Math.floor;var Fc=String.fromCharCode;function error$1(Bn){throw new RangeError(Jo[Bn])}function map(Bn,Hn){var zn=[];var ni=Bn.length;while(ni--){zn[ni]=Hn(Bn[ni])}return zn}function mapDomain(Bn,Hn){var zn=Bn.split("@");var ni="";if(zn.length>1){ni=zn[0]+"@";Bn=zn[1]}Bn=Bn.replace(oo,".");var Ci=Bn.split(".");var ts=map(Ci,Hn).join(".");return ni+ts}function ucs2decode(Bn){var Hn=[];var zn=0;var ni=Bn.length;while(zn=55296&&Ci<=56319&&zn>1;Bn+=dc(Bn/Hn);for(;Bn>tc*aa>>1;ni+=ts){Bn=dc(Bn/tc)}return dc(ni+(tc+1)*Bn/(Bn+oa))};var Up=function decode(Bn){var Hn=[];var zn=Bn.length;var ni=0;var oa=xa;var ca=_a;var Ha=Bn.lastIndexOf(Ga);if(Ha<0){Ha=0}for(var so=0;so=128){error$1("not-basic")}Hn.push(Bn.charCodeAt(so))}for(var oo=Ha>0?Ha+1:0;oo=zn){error$1("invalid-input")}var Jc=Dp(Bn.charCodeAt(oo++));if(Jc>=ts||Jc>dc((Ci-ni)/tc)){error$1("overflow")}ni+=Jc*tc;var kp=Fc<=ca?Ps:Fc>=ca+aa?aa:Fc-ca;if(Jcdc(Ci/Up)){error$1("overflow")}tc*=Up}var qp=Hn.length+1;ca=Qp(ni-Jo,qp,Jo==0);if(dc(ni/qp)>Ci-oa){error$1("overflow")}oa+=dc(ni/qp);ni%=qp;Hn.splice(ni++,0,oa)}return String.fromCodePoint.apply(String,Hn)};var qp=function encode(Bn){var Hn=[];Bn=ucs2decode(Bn);var zn=Bn.length;var ni=xa;var oa=0;var ca=_a;var Ha=true;var so=false;var oo=undefined;try{for(var Jo=Bn[Symbol.iterator](),tc;!(Ha=(tc=Jo.next()).done);Ha=true){var Jc=tc.value;if(Jc<128){Hn.push(Fc(Jc))}}}catch(Bn){so=true;oo=Bn}finally{try{if(!Ha&&Jo.return){Jo.return()}}finally{if(so){throw oo}}}var Dp=Hn.length;var Up=Dp;if(Dp){Hn.push(Ga)}while(Up=ni&&Yfdc((Ci-oa)/Kf)){error$1("overflow")}oa+=(qp-ni)*Kf;ni=qp;var Xf=true;var Ad=false;var Cd=undefined;try{for(var Sd=Bn[Symbol.iterator](),xd;!(Xf=(xd=Sd.next()).done);Xf=true){var wd=xd.value;if(wdCi){error$1("overflow")}if(wd==ni){var Td=oa;for(var Pd=ts;;Pd+=ts){var Qh=Pd<=ca?Ps:Pd>=ca+aa?aa:Pd-ca;if(Td>6|192).toString(16).toUpperCase()+"%"+(Hn&63|128).toString(16).toUpperCase();else zn="%"+(Hn>>12|224).toString(16).toUpperCase()+"%"+(Hn>>6&63|128).toString(16).toUpperCase()+"%"+(Hn&63|128).toString(16).toUpperCase();return zn}function pctDecChars(Bn){var Hn="";var zn=0;var ni=Bn.length;while(zn=194&&Ci<224){if(ni-zn>=6){var ts=parseInt(Bn.substr(zn+4,2),16);Hn+=String.fromCharCode((Ci&31)<<6|ts&63)}else{Hn+=Bn.substr(zn,6)}zn+=6}else if(Ci>=224){if(ni-zn>=9){var Ps=parseInt(Bn.substr(zn+4,2),16);var aa=parseInt(Bn.substr(zn+7,2),16);Hn+=String.fromCharCode((Ci&15)<<12|(Ps&63)<<6|aa&63)}else{Hn+=Bn.substr(zn,9)}zn+=9}else{Hn+=Bn.substr(zn,3);zn+=3}}return Hn}function _normalizeComponentEncoding(Bn,Hn){function decodeUnreserved(Bn){var zn=pctDecChars(Bn);return!zn.match(Hn.UNRESERVED)?Bn:zn}if(Bn.scheme)Bn.scheme=String(Bn.scheme).replace(Hn.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(Hn.NOT_SCHEME,"");if(Bn.userinfo!==undefined)Bn.userinfo=String(Bn.userinfo).replace(Hn.PCT_ENCODED,decodeUnreserved).replace(Hn.NOT_USERINFO,pctEncChar).replace(Hn.PCT_ENCODED,toUpperCase);if(Bn.host!==undefined)Bn.host=String(Bn.host).replace(Hn.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(Hn.NOT_HOST,pctEncChar).replace(Hn.PCT_ENCODED,toUpperCase);if(Bn.path!==undefined)Bn.path=String(Bn.path).replace(Hn.PCT_ENCODED,decodeUnreserved).replace(Bn.scheme?Hn.NOT_PATH:Hn.NOT_PATH_NOSCHEME,pctEncChar).replace(Hn.PCT_ENCODED,toUpperCase);if(Bn.query!==undefined)Bn.query=String(Bn.query).replace(Hn.PCT_ENCODED,decodeUnreserved).replace(Hn.NOT_QUERY,pctEncChar).replace(Hn.PCT_ENCODED,toUpperCase);if(Bn.fragment!==undefined)Bn.fragment=String(Bn.fragment).replace(Hn.PCT_ENCODED,decodeUnreserved).replace(Hn.NOT_FRAGMENT,pctEncChar).replace(Hn.PCT_ENCODED,toUpperCase);return Bn}function _stripLeadingZeros(Bn){return Bn.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(Bn,Hn){var zn=Bn.match(Hn.IPV4ADDRESS)||[];var Ci=ni(zn,2),ts=Ci[1];if(ts){return ts.split(".").map(_stripLeadingZeros).join(".")}else{return Bn}}function _normalizeIPv6(Bn,Hn){var zn=Bn.match(Hn.IPV6ADDRESS)||[];var Ci=ni(zn,3),ts=Ci[1],Ps=Ci[2];if(ts){var aa=ts.toLowerCase().split("::").reverse(),oa=ni(aa,2),ca=oa[0],_a=oa[1];var xa=_a?_a.split(":").map(_stripLeadingZeros):[];var Ga=ca.split(":").map(_stripLeadingZeros);var Ha=Hn.IPV4ADDRESS.test(Ga[Ga.length-1]);var so=Ha?7:8;var oo=Ga.length-so;var Jo=Array(so);for(var tc=0;tc1){var Dp=Jo.slice(0,Fc.index);var kp=Jo.slice(Fc.index+Fc.length);Jc=Dp.join(":")+"::"+kp.join(":")}else{Jc=Jo.join(":")}if(Ps){Jc+="%"+Ps}return Jc}else{return Bn}}var Qf=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var Yf="".match(/(){0}/)[1]===undefined;function parse(Bn){var ni=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var Ci={};var ts=ni.iri!==false?zn:Hn;if(ni.reference==="suffix")Bn=(ni.scheme?ni.scheme+":":"")+"//"+Bn;var Ps=Bn.match(Qf);if(Ps){if(Yf){Ci.scheme=Ps[1];Ci.userinfo=Ps[3];Ci.host=Ps[4];Ci.port=parseInt(Ps[5],10);Ci.path=Ps[6]||"";Ci.query=Ps[7];Ci.fragment=Ps[8];if(isNaN(Ci.port)){Ci.port=Ps[5]}}else{Ci.scheme=Ps[1]||undefined;Ci.userinfo=Bn.indexOf("@")!==-1?Ps[3]:undefined;Ci.host=Bn.indexOf("//")!==-1?Ps[4]:undefined;Ci.port=parseInt(Ps[5],10);Ci.path=Ps[6]||"";Ci.query=Bn.indexOf("?")!==-1?Ps[7]:undefined;Ci.fragment=Bn.indexOf("#")!==-1?Ps[8]:undefined;if(isNaN(Ci.port)){Ci.port=Bn.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ps[4]:undefined}}if(Ci.host){Ci.host=_normalizeIPv6(_normalizeIPv4(Ci.host,ts),ts)}if(Ci.scheme===undefined&&Ci.userinfo===undefined&&Ci.host===undefined&&Ci.port===undefined&&!Ci.path&&Ci.query===undefined){Ci.reference="same-document"}else if(Ci.scheme===undefined){Ci.reference="relative"}else if(Ci.fragment===undefined){Ci.reference="absolute"}else{Ci.reference="uri"}if(ni.reference&&ni.reference!=="suffix"&&ni.reference!==Ci.reference){Ci.error=Ci.error||"URI is not a "+ni.reference+" reference."}var aa=zp[(ni.scheme||Ci.scheme||"").toLowerCase()];if(!ni.unicodeSupport&&(!aa||!aa.unicodeSupport)){if(Ci.host&&(ni.domainHost||aa&&aa.domainHost)){try{Ci.host=Wp.toASCII(Ci.host.replace(ts.PCT_ENCODED,pctDecChars).toLowerCase())}catch(Bn){Ci.error=Ci.error||"Host's domain name can not be converted to ASCII via punycode: "+Bn}}_normalizeComponentEncoding(Ci,Hn)}else{_normalizeComponentEncoding(Ci,ts)}if(aa&&aa.parse){aa.parse(Ci,ni)}}else{Ci.error=Ci.error||"URI can not be parsed."}return Ci}function _recomposeAuthority(Bn,ni){var Ci=ni.iri!==false?zn:Hn;var ts=[];if(Bn.userinfo!==undefined){ts.push(Bn.userinfo);ts.push("@")}if(Bn.host!==undefined){ts.push(_normalizeIPv6(_normalizeIPv4(String(Bn.host),Ci),Ci).replace(Ci.IPV6ADDRESS,(function(Bn,Hn,zn){return"["+Hn+(zn?"%25"+zn:"")+"]"})))}if(typeof Bn.port==="number"||typeof Bn.port==="string"){ts.push(":");ts.push(String(Bn.port))}return ts.length?ts.join(""):undefined}var Kf=/^\.\.?\//;var Xf=/^\/\.(\/|$)/;var Ad=/^\/\.\.(\/|$)/;var Cd=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(Bn){var Hn=[];while(Bn.length){if(Bn.match(Kf)){Bn=Bn.replace(Kf,"")}else if(Bn.match(Xf)){Bn=Bn.replace(Xf,"/")}else if(Bn.match(Ad)){Bn=Bn.replace(Ad,"/");Hn.pop()}else if(Bn==="."||Bn===".."){Bn=""}else{var zn=Bn.match(Cd);if(zn){var ni=zn[0];Bn=Bn.slice(ni.length);Hn.push(ni)}else{throw new Error("Unexpected dot segment condition")}}}return Hn.join("")}function serialize(Bn){var ni=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var Ci=ni.iri?zn:Hn;var ts=[];var Ps=zp[(ni.scheme||Bn.scheme||"").toLowerCase()];if(Ps&&Ps.serialize)Ps.serialize(Bn,ni);if(Bn.host){if(Ci.IPV6ADDRESS.test(Bn.host)){}else if(ni.domainHost||Ps&&Ps.domainHost){try{Bn.host=!ni.iri?Wp.toASCII(Bn.host.replace(Ci.PCT_ENCODED,pctDecChars).toLowerCase()):Wp.toUnicode(Bn.host)}catch(Hn){Bn.error=Bn.error||"Host's domain name can not be converted to "+(!ni.iri?"ASCII":"Unicode")+" via punycode: "+Hn}}}_normalizeComponentEncoding(Bn,Ci);if(ni.reference!=="suffix"&&Bn.scheme){ts.push(Bn.scheme);ts.push(":")}var aa=_recomposeAuthority(Bn,ni);if(aa!==undefined){if(ni.reference!=="suffix"){ts.push("//")}ts.push(aa);if(Bn.path&&Bn.path.charAt(0)!=="/"){ts.push("/")}}if(Bn.path!==undefined){var oa=Bn.path;if(!ni.absolutePath&&(!Ps||!Ps.absolutePath)){oa=removeDotSegments(oa)}if(aa===undefined){oa=oa.replace(/^\/\//,"/%2F")}ts.push(oa)}if(Bn.query!==undefined){ts.push("?");ts.push(Bn.query)}if(Bn.fragment!==undefined){ts.push("#");ts.push(Bn.fragment)}return ts.join("")}function resolveComponents(Bn,Hn){var zn=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var ni=arguments[3];var Ci={};if(!ni){Bn=parse(serialize(Bn,zn),zn);Hn=parse(serialize(Hn,zn),zn)}zn=zn||{};if(!zn.tolerant&&Hn.scheme){Ci.scheme=Hn.scheme;Ci.userinfo=Hn.userinfo;Ci.host=Hn.host;Ci.port=Hn.port;Ci.path=removeDotSegments(Hn.path||"");Ci.query=Hn.query}else{if(Hn.userinfo!==undefined||Hn.host!==undefined||Hn.port!==undefined){Ci.userinfo=Hn.userinfo;Ci.host=Hn.host;Ci.port=Hn.port;Ci.path=removeDotSegments(Hn.path||"");Ci.query=Hn.query}else{if(!Hn.path){Ci.path=Bn.path;if(Hn.query!==undefined){Ci.query=Hn.query}else{Ci.query=Bn.query}}else{if(Hn.path.charAt(0)==="/"){Ci.path=removeDotSegments(Hn.path)}else{if((Bn.userinfo!==undefined||Bn.host!==undefined||Bn.port!==undefined)&&!Bn.path){Ci.path="/"+Hn.path}else if(!Bn.path){Ci.path=Hn.path}else{Ci.path=Bn.path.slice(0,Bn.path.lastIndexOf("/")+1)+Hn.path}Ci.path=removeDotSegments(Ci.path)}Ci.query=Hn.query}Ci.userinfo=Bn.userinfo;Ci.host=Bn.host;Ci.port=Bn.port}Ci.scheme=Bn.scheme}Ci.fragment=Hn.fragment;return Ci}function resolve(Bn,Hn,zn){var ni=assign({scheme:"null"},zn);return serialize(resolveComponents(parse(Bn,ni),parse(Hn,ni),ni,true),ni)}function normalize(Bn,Hn){if(typeof Bn==="string"){Bn=serialize(parse(Bn,Hn),Hn)}else if(typeOf(Bn)==="object"){Bn=parse(serialize(Bn,Hn),Hn)}return Bn}function equal(Bn,Hn,zn){if(typeof Bn==="string"){Bn=serialize(parse(Bn,zn),zn)}else if(typeOf(Bn)==="object"){Bn=serialize(Bn,zn)}if(typeof Hn==="string"){Hn=serialize(parse(Hn,zn),zn)}else if(typeOf(Hn)==="object"){Hn=serialize(Hn,zn)}return Bn===Hn}function escapeComponent(Bn,ni){return Bn&&Bn.toString().replace(!ni||!ni.iri?Hn.ESCAPE:zn.ESCAPE,pctEncChar)}function unescapeComponent(Bn,ni){return Bn&&Bn.toString().replace(!ni||!ni.iri?Hn.PCT_ENCODED:zn.PCT_ENCODED,pctDecChars)}var Sd={scheme:"http",domainHost:true,parse:function parse(Bn,Hn){if(!Bn.host){Bn.error=Bn.error||"HTTP URIs must have a host."}return Bn},serialize:function serialize(Bn,Hn){var zn=String(Bn.scheme).toLowerCase()==="https";if(Bn.port===(zn?443:80)||Bn.port===""){Bn.port=undefined}if(!Bn.path){Bn.path="/"}return Bn}};var xd={scheme:"https",domainHost:Sd.domainHost,parse:Sd.parse,serialize:Sd.serialize};function isSecure(Bn){return typeof Bn.secure==="boolean"?Bn.secure:String(Bn.scheme).toLowerCase()==="wss"}var wd={scheme:"ws",domainHost:true,parse:function parse(Bn,Hn){var zn=Bn;zn.secure=isSecure(zn);zn.resourceName=(zn.path||"/")+(zn.query?"?"+zn.query:"");zn.path=undefined;zn.query=undefined;return zn},serialize:function serialize(Bn,Hn){if(Bn.port===(isSecure(Bn)?443:80)||Bn.port===""){Bn.port=undefined}if(typeof Bn.secure==="boolean"){Bn.scheme=Bn.secure?"wss":"ws";Bn.secure=undefined}if(Bn.resourceName){var zn=Bn.resourceName.split("?"),Ci=ni(zn,2),ts=Ci[0],Ps=Ci[1];Bn.path=ts&&ts!=="/"?ts:undefined;Bn.query=Ps;Bn.resourceName=undefined}Bn.fragment=undefined;return Bn}};var Td={scheme:"wss",domainHost:wd.domainHost,parse:wd.parse,serialize:wd.serialize};var Pd={};var Qh=true;var Zh="[A-Za-z0-9\\-\\.\\_\\~"+(Qh?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var f_="[0-9A-Fa-f]";var Z_=subexp(subexp("%[EFef]"+f_+"%"+f_+f_+"%"+f_+f_)+"|"+subexp("%[89A-Fa-f]"+f_+"%"+f_+f_)+"|"+subexp("%"+f_+f_));var eg="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var tg="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var rg=merge(tg,'[\\"\\\\]');var ng="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var ig=new RegExp(Zh,"g");var sg=new RegExp(Z_,"g");var ag=new RegExp(merge("[^]",eg,"[\\.]",'[\\"]',rg),"g");var og=new RegExp(merge("[^]",Zh,ng),"g");var ug=og;function decodeUnreserved(Bn){var Hn=pctDecChars(Bn);return!Hn.match(ig)?Bn:Hn}var cg={scheme:"mailto",parse:function parse$$1(Bn,Hn){var zn=Bn;var ni=zn.to=zn.path?zn.path.split(","):[];zn.path=undefined;if(zn.query){var Ci=false;var ts={};var Ps=zn.query.split("&");for(var aa=0,oa=Ps.length;aa{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Object.defineProperty(Hn,"v1",{enumerable:true,get:function(){return ni.default}});Object.defineProperty(Hn,"v3",{enumerable:true,get:function(){return Ci.default}});Object.defineProperty(Hn,"v4",{enumerable:true,get:function(){return ts.default}});Object.defineProperty(Hn,"v5",{enumerable:true,get:function(){return Ps.default}});Object.defineProperty(Hn,"NIL",{enumerable:true,get:function(){return aa.default}});Object.defineProperty(Hn,"version",{enumerable:true,get:function(){return oa.default}});Object.defineProperty(Hn,"validate",{enumerable:true,get:function(){return ca.default}});Object.defineProperty(Hn,"stringify",{enumerable:true,get:function(){return _a.default}});Object.defineProperty(Hn,"parse",{enumerable:true,get:function(){return xa.default}});var ni=_interopRequireDefault(zn(78628));var Ci=_interopRequireDefault(zn(86409));var ts=_interopRequireDefault(zn(85122));var Ps=_interopRequireDefault(zn(79120));var aa=_interopRequireDefault(zn(25332));var oa=_interopRequireDefault(zn(81595));var ca=_interopRequireDefault(zn(66900));var _a=_interopRequireDefault(zn(18950));var xa=_interopRequireDefault(zn(62746));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}},4569:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(6113));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function md5(Bn){if(Array.isArray(Bn)){Bn=Buffer.from(Bn)}else if(typeof Bn==="string"){Bn=Buffer.from(Bn,"utf8")}return ni.default.createHash("md5").update(Bn).digest()}var Ci=md5;Hn["default"]=Ci},25332:(Bn,Hn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var zn="00000000-0000-0000-0000-000000000000";Hn["default"]=zn},62746:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(66900));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function parse(Bn){if(!(0,ni.default)(Bn)){throw TypeError("Invalid UUID")}let Hn;const zn=new Uint8Array(16);zn[0]=(Hn=parseInt(Bn.slice(0,8),16))>>>24;zn[1]=Hn>>>16&255;zn[2]=Hn>>>8&255;zn[3]=Hn&255;zn[4]=(Hn=parseInt(Bn.slice(9,13),16))>>>8;zn[5]=Hn&255;zn[6]=(Hn=parseInt(Bn.slice(14,18),16))>>>8;zn[7]=Hn&255;zn[8]=(Hn=parseInt(Bn.slice(19,23),16))>>>8;zn[9]=Hn&255;zn[10]=(Hn=parseInt(Bn.slice(24,36),16))/1099511627776&255;zn[11]=Hn/4294967296&255;zn[12]=Hn>>>24&255;zn[13]=Hn>>>16&255;zn[14]=Hn>>>8&255;zn[15]=Hn&255;return zn}var Ci=parse;Hn["default"]=Ci},40814:(Bn,Hn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var zn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Hn["default"]=zn},50807:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=rng;var ni=_interopRequireDefault(zn(6113));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}const Ci=new Uint8Array(256);let ts=Ci.length;function rng(){if(ts>Ci.length-16){ni.default.randomFillSync(Ci);ts=0}return Ci.slice(ts,ts+=16)}},85274:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(6113));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function sha1(Bn){if(Array.isArray(Bn)){Bn=Buffer.from(Bn)}else if(typeof Bn==="string"){Bn=Buffer.from(Bn,"utf8")}return ni.default.createHash("sha1").update(Bn).digest()}var Ci=sha1;Hn["default"]=Ci},18950:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(66900));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}const Ci=[];for(let Bn=0;Bn<256;++Bn){Ci.push((Bn+256).toString(16).substr(1))}function stringify(Bn,Hn=0){const zn=(Ci[Bn[Hn+0]]+Ci[Bn[Hn+1]]+Ci[Bn[Hn+2]]+Ci[Bn[Hn+3]]+"-"+Ci[Bn[Hn+4]]+Ci[Bn[Hn+5]]+"-"+Ci[Bn[Hn+6]]+Ci[Bn[Hn+7]]+"-"+Ci[Bn[Hn+8]]+Ci[Bn[Hn+9]]+"-"+Ci[Bn[Hn+10]]+Ci[Bn[Hn+11]]+Ci[Bn[Hn+12]]+Ci[Bn[Hn+13]]+Ci[Bn[Hn+14]]+Ci[Bn[Hn+15]]).toLowerCase();if(!(0,ni.default)(zn)){throw TypeError("Stringified UUID is invalid")}return zn}var ts=stringify;Hn["default"]=ts},78628:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(50807));var Ci=_interopRequireDefault(zn(18950));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}let ts;let Ps;let aa=0;let oa=0;function v1(Bn,Hn,zn){let ca=Hn&&zn||0;const _a=Hn||new Array(16);Bn=Bn||{};let xa=Bn.node||ts;let Ga=Bn.clockseq!==undefined?Bn.clockseq:Ps;if(xa==null||Ga==null){const Hn=Bn.random||(Bn.rng||ni.default)();if(xa==null){xa=ts=[Hn[0]|1,Hn[1],Hn[2],Hn[3],Hn[4],Hn[5]]}if(Ga==null){Ga=Ps=(Hn[6]<<8|Hn[7])&16383}}let Ha=Bn.msecs!==undefined?Bn.msecs:Date.now();let so=Bn.nsecs!==undefined?Bn.nsecs:oa+1;const oo=Ha-aa+(so-oa)/1e4;if(oo<0&&Bn.clockseq===undefined){Ga=Ga+1&16383}if((oo<0||Ha>aa)&&Bn.nsecs===undefined){so=0}if(so>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}aa=Ha;oa=so;Ps=Ga;Ha+=122192928e5;const Jo=((Ha&268435455)*1e4+so)%4294967296;_a[ca++]=Jo>>>24&255;_a[ca++]=Jo>>>16&255;_a[ca++]=Jo>>>8&255;_a[ca++]=Jo&255;const tc=Ha/4294967296*1e4&268435455;_a[ca++]=tc>>>8&255;_a[ca++]=tc&255;_a[ca++]=tc>>>24&15|16;_a[ca++]=tc>>>16&255;_a[ca++]=Ga>>>8|128;_a[ca++]=Ga&255;for(let Bn=0;Bn<6;++Bn){_a[ca+Bn]=xa[Bn]}return Hn||(0,Ci.default)(_a)}var ca=v1;Hn["default"]=ca},86409:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(65998));var Ci=_interopRequireDefault(zn(4569));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}const ts=(0,ni.default)("v3",48,Ci.default);var Ps=ts;Hn["default"]=Ps},65998:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=_default;Hn.URL=Hn.DNS=void 0;var ni=_interopRequireDefault(zn(18950));var Ci=_interopRequireDefault(zn(62746));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function stringToBytes(Bn){Bn=unescape(encodeURIComponent(Bn));const Hn=[];for(let zn=0;zn{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(50807));var Ci=_interopRequireDefault(zn(18950));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function v4(Bn,Hn,zn){Bn=Bn||{};const ts=Bn.random||(Bn.rng||ni.default)();ts[6]=ts[6]&15|64;ts[8]=ts[8]&63|128;if(Hn){zn=zn||0;for(let Bn=0;Bn<16;++Bn){Hn[zn+Bn]=ts[Bn]}return Hn}return(0,Ci.default)(ts)}var ts=v4;Hn["default"]=ts},79120:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(65998));var Ci=_interopRequireDefault(zn(85274));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}const ts=(0,ni.default)("v5",80,Ci.default);var Ps=ts;Hn["default"]=Ps},66900:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(40814));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function validate(Bn){return typeof Bn==="string"&&ni.default.test(Bn)}var Ci=validate;Hn["default"]=Ci},81595:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(66900));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function version(Bn){if(!(0,ni.default)(Bn)){throw TypeError("Invalid UUID")}return parseInt(Bn.substr(14,1),16)}var Ci=version;Hn["default"]=Ci},62940:Bn=>{Bn.exports=wrappy;function wrappy(Bn,Hn){if(Bn&&Hn)return wrappy(Bn)(Hn);if(typeof Bn!=="function")throw new TypeError("need wrapper function");Object.keys(Bn).forEach((function(Hn){wrapper[Hn]=Bn[Hn]}));return wrapper;function wrapper(){var Hn=new Array(arguments.length);for(var zn=0;zn{"use strict";Bn.exports=function(Bn){Bn.prototype[Symbol.iterator]=function*(){for(let Bn=this.head;Bn;Bn=Bn.next){yield Bn.value}}}},40665:(Bn,Hn,zn)=>{"use strict";Bn.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(Bn){var Hn=this;if(!(Hn instanceof Yallist)){Hn=new Yallist}Hn.tail=null;Hn.head=null;Hn.length=0;if(Bn&&typeof Bn.forEach==="function"){Bn.forEach((function(Bn){Hn.push(Bn)}))}else if(arguments.length>0){for(var zn=0,ni=arguments.length;zn1){zn=Hn}else if(this.head){ni=this.head.next;zn=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var Ci=0;ni!==null;Ci++){zn=Bn(zn,ni.value,Ci);ni=ni.next}return zn};Yallist.prototype.reduceReverse=function(Bn,Hn){var zn;var ni=this.tail;if(arguments.length>1){zn=Hn}else if(this.tail){ni=this.tail.prev;zn=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var Ci=this.length-1;ni!==null;Ci--){zn=Bn(zn,ni.value,Ci);ni=ni.prev}return zn};Yallist.prototype.toArray=function(){var Bn=new Array(this.length);for(var Hn=0,zn=this.head;zn!==null;Hn++){Bn[Hn]=zn.value;zn=zn.next}return Bn};Yallist.prototype.toArrayReverse=function(){var Bn=new Array(this.length);for(var Hn=0,zn=this.tail;zn!==null;Hn++){Bn[Hn]=zn.value;zn=zn.prev}return Bn};Yallist.prototype.slice=function(Bn,Hn){Hn=Hn||this.length;if(Hn<0){Hn+=this.length}Bn=Bn||0;if(Bn<0){Bn+=this.length}var zn=new Yallist;if(Hnthis.length){Hn=this.length}for(var ni=0,Ci=this.head;Ci!==null&&nithis.length){Hn=this.length}for(var ni=this.length,Ci=this.tail;Ci!==null&&ni>Hn;ni--){Ci=Ci.prev}for(;Ci!==null&&ni>Bn;ni--,Ci=Ci.prev){zn.push(Ci.value)}return zn};Yallist.prototype.splice=function(Bn,Hn,...zn){if(Bn>this.length){Bn=this.length-1}if(Bn<0){Bn=this.length+Bn}for(var ni=0,Ci=this.head;Ci!==null&&ni{const Bn="pip install black==24.4.2";try{Ps.debug(`run command: "${Bn}"`);const Hn=(0,aa.execSync)(Bn).toString();Ps.debug(Hn)}catch(Hn){if(Hn instanceof Error){Ps.warning(`Failed to install black with command ${Bn}`);Ps.warning(Hn)}}};Hn.installBlack=installBlack},561:module=>{module.exports=eval("require")("chokidar")},39491:Bn=>{"use strict";Bn.exports=require("assert")},50852:Bn=>{"use strict";Bn.exports=require("async_hooks")},14300:Bn=>{"use strict";Bn.exports=require("buffer")},32081:Bn=>{"use strict";Bn.exports=require("child_process")},96206:Bn=>{"use strict";Bn.exports=require("console")},6113:Bn=>{"use strict";Bn.exports=require("crypto")},67643:Bn=>{"use strict";Bn.exports=require("diagnostics_channel")},13639:Bn=>{"use strict";Bn.exports=require("domain")},82361:Bn=>{"use strict";Bn.exports=require("events")},57147:Bn=>{"use strict";Bn.exports=require("fs")},13685:Bn=>{"use strict";Bn.exports=require("http")},85158:Bn=>{"use strict";Bn.exports=require("http2")},95687:Bn=>{"use strict";Bn.exports=require("https")},98188:Bn=>{"use strict";Bn.exports=require("module")},41808:Bn=>{"use strict";Bn.exports=require("net")},15673:Bn=>{"use strict";Bn.exports=require("node:events")},84492:Bn=>{"use strict";Bn.exports=require("node:stream")},47261:Bn=>{"use strict";Bn.exports=require("node:util")},22037:Bn=>{"use strict";Bn.exports=require("os")},71017:Bn=>{"use strict";Bn.exports=require("path")},4074:Bn=>{"use strict";Bn.exports=require("perf_hooks")},63477:Bn=>{"use strict";Bn.exports=require("querystring")},12781:Bn=>{"use strict";Bn.exports=require("stream")},35356:Bn=>{"use strict";Bn.exports=require("stream/web")},71576:Bn=>{"use strict";Bn.exports=require("string_decoder")},24404:Bn=>{"use strict";Bn.exports=require("tls")},76224:Bn=>{"use strict";Bn.exports=require("tty")},57310:Bn=>{"use strict";Bn.exports=require("url")},73837:Bn=>{"use strict";Bn.exports=require("util")},29830:Bn=>{"use strict";Bn.exports=require("util/types")},71267:Bn=>{"use strict";Bn.exports=require("worker_threads")},59796:Bn=>{"use strict";Bn.exports=require("zlib")},92960:(Bn,Hn,zn)=>{"use strict";const ni=zn(84492).Writable;const Ci=zn(47261).inherits;const ts=zn(51142);const Ps=zn(81620);const aa=zn(92032);const oa=45;const ca=Buffer.from("-");const _a=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(Bn){if(!(this instanceof Dicer)){return new Dicer(Bn)}ni.call(this,Bn);if(!Bn||!Bn.headerFirst&&typeof Bn.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof Bn.boundary==="string"){this.setBoundary(Bn.boundary)}else{this._bparser=undefined}this._headerFirst=Bn.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:Bn.partHwm};this._pause=false;const Hn=this;this._hparser=new aa(Bn);this._hparser.on("header",(function(Bn){Hn._inHeader=false;Hn._part.emit("header",Bn)}))}Ci(Dicer,ni);Dicer.prototype.emit=function(Bn){if(Bn==="finish"&&!this._realFinish){if(!this._finished){const Bn=this;process.nextTick((function(){Bn.emit("error",new Error("Unexpected end of multipart data"));if(Bn._part&&!Bn._ignoreData){const Hn=Bn._isPreamble?"Preamble":"Part";Bn._part.emit("error",new Error(Hn+" terminated early due to unexpected end of multipart data"));Bn._part.push(null);process.nextTick((function(){Bn._realFinish=true;Bn.emit("finish");Bn._realFinish=false}));return}Bn._realFinish=true;Bn.emit("finish");Bn._realFinish=false}))}}else{ni.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(Bn,Hn,zn){if(!this._hparser&&!this._bparser){return zn()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new Ps(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const Hn=this._hparser.push(Bn);if(!this._inHeader&&Hn!==undefined&&Hn{"use strict";const ni=zn(15673).EventEmitter;const Ci=zn(47261).inherits;const ts=zn(21467);const Ps=zn(51142);const aa=Buffer.from("\r\n\r\n");const oa=/\r\n/g;const ca=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(Bn){ni.call(this);Bn=Bn||{};const Hn=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=ts(Bn,"maxHeaderPairs",2e3);this.maxHeaderSize=ts(Bn,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new Ps(aa);this.ss.on("info",(function(Bn,zn,ni,Ci){if(zn&&!Hn.maxed){if(Hn.nread+Ci-ni>=Hn.maxHeaderSize){Ci=Hn.maxHeaderSize-Hn.nread+ni;Hn.nread=Hn.maxHeaderSize;Hn.maxed=true}else{Hn.nread+=Ci-ni}Hn.buffer+=zn.toString("binary",ni,Ci)}if(Bn){Hn._finish()}}))}Ci(HeaderParser,ni);HeaderParser.prototype.push=function(Bn){const Hn=this.ss.push(Bn);if(this.finished){return Hn}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const Bn=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",Bn)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const Bn=this.buffer.split(oa);const Hn=Bn.length;let zn,ni;for(var Ci=0;Ci{"use strict";const ni=zn(47261).inherits;const Ci=zn(84492).Readable;function PartStream(Bn){Ci.call(this,Bn)}ni(PartStream,Ci);PartStream.prototype._read=function(Bn){};Bn.exports=PartStream},51142:(Bn,Hn,zn)=>{"use strict";const ni=zn(15673).EventEmitter;const Ci=zn(47261).inherits;function SBMH(Bn){if(typeof Bn==="string"){Bn=Buffer.from(Bn)}if(!Buffer.isBuffer(Bn)){throw new TypeError("The needle has to be a String or a Buffer.")}const Hn=Bn.length;if(Hn===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(Hn>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(Hn);this._lookbehind_size=0;this._needle=Bn;this._bufpos=0;this._lookbehind=Buffer.alloc(Hn);for(var zn=0;zn=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const zn=this._lookbehind_size+ts;if(zn>0){this.emit("info",false,this._lookbehind,0,zn)}this._lookbehind.copy(this._lookbehind,0,zn,this._lookbehind_size-zn);this._lookbehind_size-=zn;Bn.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=Hn;this._bufpos=Hn;return Hn}}ts+=(ts>=0)*this._bufpos;if(Bn.indexOf(zn,ts)!==-1){ts=Bn.indexOf(zn,ts);++this.matches;if(ts>0){this.emit("info",true,Bn,this._bufpos,ts)}else{this.emit("info",true)}return this._bufpos=ts+ni}else{ts=Hn-ni}while(ts0){this.emit("info",false,Bn,this._bufpos,ts{"use strict";const ni=zn(84492).Writable;const{inherits:Ci}=zn(47261);const ts=zn(92960);const Ps=zn(32183);const aa=zn(78306);const oa=zn(31854);function Busboy(Bn){if(!(this instanceof Busboy)){return new Busboy(Bn)}if(typeof Bn!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof Bn.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof Bn.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:Hn,...zn}=Bn;this.opts={autoDestroy:false,...zn};ni.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(Hn);this._finished=false}Ci(Busboy,ni);Busboy.prototype.emit=function(Bn){if(Bn==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}ni.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(Bn){const Hn=oa(Bn["content-type"]);const zn={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:Bn,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:Hn,preservePath:this.opts.preservePath};if(Ps.detect.test(Hn[0])){return new Ps(this,zn)}if(aa.detect.test(Hn[0])){return new aa(this,zn)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(Bn,Hn,zn){this._parser.write(Bn,zn)};Bn.exports=Busboy;Bn.exports["default"]=Busboy;Bn.exports.Busboy=Busboy;Bn.exports.Dicer=ts},32183:(Bn,Hn,zn)=>{"use strict";const{Readable:ni}=zn(84492);const{inherits:Ci}=zn(47261);const ts=zn(92960);const Ps=zn(31854);const aa=zn(84619);const oa=zn(48647);const ca=zn(21467);const _a=/^boundary$/i;const xa=/^form-data$/i;const Ga=/^charset$/i;const Ha=/^filename$/i;const so=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(Bn,Hn){let zn;let ni;const Ci=this;let oo;const Jo=Hn.limits;const tc=Hn.isPartAFile||((Bn,Hn,zn)=>Hn==="application/octet-stream"||zn!==undefined);const dc=Hn.parsedConType||[];const Fc=Hn.defCharset||"utf8";const Jc=Hn.preservePath;const Dp={highWaterMark:Hn.fileHwm};for(zn=0,ni=dc.length;znVp){Ci.parser.removeListener("part",onPart);Ci.parser.on("part",skipPart);Bn.hitPartsLimit=true;Bn.emit("partsLimit");return skipPart(Hn)}if(Xf){const Bn=Xf;Bn.emit("end");Bn.removeAllListeners("end")}Hn.on("header",(function(ts){let ca;let _a;let oo;let Jo;let dc;let Vp;let Jp=0;if(ts["content-type"]){oo=Ps(ts["content-type"][0]);if(oo[0]){ca=oo[0].toLowerCase();for(zn=0,ni=oo.length;znQp){const ni=Qp-Jp+Bn.length;if(ni>0){zn.push(Bn.slice(0,ni))}zn.truncated=true;zn.bytesRead=Qp;Hn.removeAllListeners("data");zn.emit("limit");return}else if(!zn.push(Bn)){Ci._pause=true}zn.bytesRead=Jp};Ad=function(){Kf=undefined;zn.push(null)}}else{if(Qf===qp){if(!Bn.hitFieldsLimit){Bn.hitFieldsLimit=true;Bn.emit("fieldsLimit")}return skipPart(Hn)}++Qf;++Yf;let zn="";let ni=false;Xf=Hn;Wp=function(Bn){if((Jp+=Bn.length)>kp){const Ci=kp-(Jp-Bn.length);zn+=Bn.toString("binary",0,Ci);ni=true;Hn.removeAllListeners("data")}else{zn+=Bn.toString("binary")}};Ad=function(){Xf=undefined;if(zn.length){zn=aa(zn,"binary",Jo)}Bn.emit("field",_a,zn,false,ni,dc,ca);--Yf;checkFinished()}}Hn._readableState.sync=false;Hn.on("data",Wp);Hn.on("end",Ad)})).on("error",(function(Bn){if(Kf){Kf.emit("error",Bn)}}))})).on("error",(function(Hn){Bn.emit("error",Hn)})).on("finish",(function(){Ad=true;checkFinished()}))}Multipart.prototype.write=function(Bn,Hn){const zn=this.parser.write(Bn);if(zn&&!this._pause){Hn()}else{this._needDrain=!zn;this._cb=Hn}};Multipart.prototype.end=function(){const Bn=this;if(Bn.parser.writable){Bn.parser.end()}else if(!Bn._boy._done){process.nextTick((function(){Bn._boy._done=true;Bn._boy.emit("finish")}))}};function skipPart(Bn){Bn.resume()}function FileStream(Bn){ni.call(this,Bn);this.bytesRead=0;this.truncated=false}Ci(FileStream,ni);FileStream.prototype._read=function(Bn){};Bn.exports=Multipart},78306:(Bn,Hn,zn)=>{"use strict";const ni=zn(27100);const Ci=zn(84619);const ts=zn(21467);const Ps=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(Bn,Hn){const zn=Hn.limits;const Ci=Hn.parsedConType;this.boy=Bn;this.fieldSizeLimit=ts(zn,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=ts(zn,"fieldNameSize",100);this.fieldsLimit=ts(zn,"fields",Infinity);let aa;for(var oa=0,ca=Ci.length;oaPs){this._key+=this.decoder.write(Bn.toString("binary",Ps,zn))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();Ps=zn+1}else if(ni!==undefined){++this._fields;let zn;const ts=this._keyTrunc;if(ni>Ps){zn=this._key+=this.decoder.write(Bn.toString("binary",Ps,ni))}else{zn=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(zn.length){this.boy.emit("field",Ci(zn,"binary",this.charset),"",ts,false)}Ps=ni+1;if(this._fields===this.fieldsLimit){return Hn()}}else if(this._hitLimit){if(ts>Ps){this._key+=this.decoder.write(Bn.toString("binary",Ps,ts))}Ps=ts;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(PsPs){this._val+=this.decoder.write(Bn.toString("binary",Ps,ni))}this.boy.emit("field",Ci(this._key,"binary",this.charset),Ci(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();Ps=ni+1;if(this._fields===this.fieldsLimit){return Hn()}}else if(this._hitLimit){if(ts>Ps){this._val+=this.decoder.write(Bn.toString("binary",Ps,ts))}Ps=ts;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(Ps0){this.boy.emit("field",Ci(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",Ci(this._key,"binary",this.charset),Ci(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};Bn.exports=UrlEncoded},27100:Bn=>{"use strict";const Hn=/\+/g;const zn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(Bn){Bn=Bn.replace(Hn," ");let ni="";let Ci=0;let ts=0;const Ps=Bn.length;for(;Cits){ni+=Bn.substring(ts,Ci);ts=Ci}this.buffer="";++ts}}if(ts{"use strict";Bn.exports=function basename(Bn){if(typeof Bn!=="string"){return""}for(var Hn=Bn.length-1;Hn>=0;--Hn){switch(Bn.charCodeAt(Hn)){case 47:case 92:Bn=Bn.slice(Hn+1);return Bn===".."||Bn==="."?"":Bn}}return Bn===".."||Bn==="."?"":Bn}},84619:function(Bn){"use strict";const Hn=new TextDecoder("utf-8");const zn=new Map([["utf-8",Hn],["utf8",Hn]]);function getDecoder(Bn){let Hn;while(true){switch(Bn){case"utf-8":case"utf8":return ni.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return ni.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return ni.utf16le;case"base64":return ni.base64;default:if(Hn===undefined){Hn=true;Bn=Bn.toLowerCase();continue}return ni.other.bind(Bn)}}}const ni={utf8:(Bn,Hn)=>{if(Bn.length===0){return""}if(typeof Bn==="string"){Bn=Buffer.from(Bn,Hn)}return Bn.utf8Slice(0,Bn.length)},latin1:(Bn,Hn)=>{if(Bn.length===0){return""}if(typeof Bn==="string"){return Bn}return Bn.latin1Slice(0,Bn.length)},utf16le:(Bn,Hn)=>{if(Bn.length===0){return""}if(typeof Bn==="string"){Bn=Buffer.from(Bn,Hn)}return Bn.ucs2Slice(0,Bn.length)},base64:(Bn,Hn)=>{if(Bn.length===0){return""}if(typeof Bn==="string"){Bn=Buffer.from(Bn,Hn)}return Bn.base64Slice(0,Bn.length)},other:(Bn,Hn)=>{if(Bn.length===0){return""}if(typeof Bn==="string"){Bn=Buffer.from(Bn,Hn)}if(zn.has(this.toString())){try{return zn.get(this).decode(Bn)}catch{}}return typeof Bn==="string"?Bn:Bn.toString()}};function decodeText(Bn,Hn,zn){if(Bn){return getDecoder(zn)(Bn,Hn)}return Bn}Bn.exports=decodeText},21467:Bn=>{"use strict";Bn.exports=function getLimit(Bn,Hn,zn){if(!Bn||Bn[Hn]===undefined||Bn[Hn]===null){return zn}if(typeof Bn[Hn]!=="number"||isNaN(Bn[Hn])){throw new TypeError("Limit "+Hn+" is not a valid number")}return Bn[Hn]}},31854:(Bn,Hn,zn)=>{"use strict";const ni=zn(84619);const Ci=/%[a-fA-F0-9][a-fA-F0-9]/g;const ts={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(Bn){return ts[Bn]}const Ps=0;const aa=1;const oa=2;const ca=3;function parseParams(Bn){const Hn=[];let zn=Ps;let ts="";let _a=false;let xa=false;let Ga=0;let Ha="";const so=Bn.length;for(var oo=0;oo{"use strict";Bn.exports=JSON.parse('{"name":"prettier","version":"2.8.8","description":"Prettier is an opinionated code formatter","bin":"./bin-prettier.js","repository":"prettier/prettier","funding":"https://github.com/prettier/prettier?sponsor=1","homepage":"https://prettier.io","author":"James Long","license":"MIT","main":"./index.js","browser":"./standalone.js","unpkg":"./standalone.js","engines":{"node":">=10.13.0"},"files":["*.js","esm/*.mjs"]}')},65829:Bn=>{"use strict";Bn.exports=JSON.parse('{"version":"1.3.145","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","files":["dist","src"],"engines":{"node":">=10"},"scripts":{"jest:clear":"jest --clearCache","start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"eslint src/**/*.ts","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why","version":"echo version && git add -A src","debug-dry-run":"npm test dry-run","postversion":"echo postversion && git push origin HEAD:$CI_DEFAULT_BRANCH && git push --tags origin HEAD:$CI_DEFAULT_BRANCH"},"publishConfig":{"registry":"https://linearb.jfrog.io/linearb/api/npm/npm-local/"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"name":"@linearb/gitstream-core","author":"Oriel Zaken","module":"dist/gs-rule-parser.esm.js","size-limit":[{"path":"dist/gs-rule-parser.cjs.production.min.js","limit":"10 KB"},{"path":"dist/gs-rule-parser.esm.js","limit":"10 KB"}],"devDependencies":{"@babel/preset-typescript":"^7.22.15","@jest/globals":"^29.7.0","@size-limit/preset-small-lib":"^7.0.8","@types/jest":"^27.5.2","@types/js-yaml":"^4.0.5","@types/jsonwebtoken":"^9.0.2","@types/lodash":"^4.14.198","@types/node":"^18.6.4","@types/nunjucks":"^3.2.1","@types/shell-quote":"^1.7.5","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","eslint":"^8.49.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.28.1","eslint-plugin-prettier":"^4.0.0","husky":"^8.0.1","jest":"^27.5.1","size-limit":"^7.0.8","ts-jest":"^27.1.5","tsdx":"^0.14.1","tslib":"^2.4.0","typescript":"^3.9.10"},"jest":{"testEnvironment":"node"},"dependencies":{"@actions/core":"^1.10.0","@amplitude/node":"^1.10.2","@linearb/gitstream-core-js":"0.1.44","@linearb/linode-common":"2.1.301","@octokit/graphql":"^7.0.2","@octokit/rest":"^20.0.1","ajv":"^8.12.0","axios":"^0.24.0","child_process":"^1.0.2","fs":"^0.0.1-security","js-yaml":"^4.1.0","jsonwebtoken":"^9.0.1","lodash":"^4.17.21","moment":"^2.29.4","nunjucks":"^3.2.3","parse-diff":"^0.11.1","prettier":"^2.7.1","shell-quote":"^1.8.1"},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"all"}}')},64775:Bn=>{"use strict";Bn.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},98:Bn=>{"use strict";Bn.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}};var __webpack_module_cache__={};function __nccwpck_require__(Bn){var Hn=__webpack_module_cache__[Bn];if(Hn!==undefined){return Hn.exports}var zn=__webpack_module_cache__[Bn]={id:Bn,loaded:false,exports:{}};var ni=true;try{__webpack_modules__[Bn].call(zn.exports,zn,zn.exports,__nccwpck_require__);ni=false}finally{if(ni)delete __webpack_module_cache__[Bn]}zn.loaded=true;return zn.exports}(()=>{__nccwpck_require__.nmd=Bn=>{Bn.paths=[];if(!Bn.children)Bn.children=[];return Bn}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{"use strict";var Bn=__webpack_exports__;Object.defineProperty(Bn,"__esModule",{value:true});const Hn=__nccwpck_require__(70399);(0,Hn.run)()})();module.exports=__webpack_exports__})(); \ No newline at end of file +(function(Bn,zn){true?zn(Hn):0})(this,(function(Bn){"use strict";function merge(){for(var Bn=arguments.length,Hn=Array(Bn),zn=0;zn1){Hn[0]=Hn[0].slice(0,-1);var ni=Hn.length-1;for(var Ci=1;Ci= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var tc=ts-Ps;var dc=Math.floor;var Fc=String.fromCharCode;function error$1(Bn){throw new RangeError(Jo[Bn])}function map(Bn,Hn){var zn=[];var ni=Bn.length;while(ni--){zn[ni]=Hn(Bn[ni])}return zn}function mapDomain(Bn,Hn){var zn=Bn.split("@");var ni="";if(zn.length>1){ni=zn[0]+"@";Bn=zn[1]}Bn=Bn.replace(oo,".");var Ci=Bn.split(".");var ts=map(Ci,Hn).join(".");return ni+ts}function ucs2decode(Bn){var Hn=[];var zn=0;var ni=Bn.length;while(zn=55296&&Ci<=56319&&zn>1;Bn+=dc(Bn/Hn);for(;Bn>tc*aa>>1;ni+=ts){Bn=dc(Bn/tc)}return dc(ni+(tc+1)*Bn/(Bn+oa))};var Up=function decode(Bn){var Hn=[];var zn=Bn.length;var ni=0;var oa=xa;var ca=_a;var Ha=Bn.lastIndexOf(Ga);if(Ha<0){Ha=0}for(var so=0;so=128){error$1("not-basic")}Hn.push(Bn.charCodeAt(so))}for(var oo=Ha>0?Ha+1:0;oo=zn){error$1("invalid-input")}var Jc=Dp(Bn.charCodeAt(oo++));if(Jc>=ts||Jc>dc((Ci-ni)/tc)){error$1("overflow")}ni+=Jc*tc;var kp=Fc<=ca?Ps:Fc>=ca+aa?aa:Fc-ca;if(Jcdc(Ci/Up)){error$1("overflow")}tc*=Up}var qp=Hn.length+1;ca=Qp(ni-Jo,qp,Jo==0);if(dc(ni/qp)>Ci-oa){error$1("overflow")}oa+=dc(ni/qp);ni%=qp;Hn.splice(ni++,0,oa)}return String.fromCodePoint.apply(String,Hn)};var qp=function encode(Bn){var Hn=[];Bn=ucs2decode(Bn);var zn=Bn.length;var ni=xa;var oa=0;var ca=_a;var Ha=true;var so=false;var oo=undefined;try{for(var Jo=Bn[Symbol.iterator](),tc;!(Ha=(tc=Jo.next()).done);Ha=true){var Jc=tc.value;if(Jc<128){Hn.push(Fc(Jc))}}}catch(Bn){so=true;oo=Bn}finally{try{if(!Ha&&Jo.return){Jo.return()}}finally{if(so){throw oo}}}var Dp=Hn.length;var Up=Dp;if(Dp){Hn.push(Ga)}while(Up=ni&&Yfdc((Ci-oa)/Kf)){error$1("overflow")}oa+=(qp-ni)*Kf;ni=qp;var Xf=true;var Ad=false;var Cd=undefined;try{for(var Sd=Bn[Symbol.iterator](),xd;!(Xf=(xd=Sd.next()).done);Xf=true){var wd=xd.value;if(wdCi){error$1("overflow")}if(wd==ni){var Td=oa;for(var Pd=ts;;Pd+=ts){var Qh=Pd<=ca?Ps:Pd>=ca+aa?aa:Pd-ca;if(Td>6|192).toString(16).toUpperCase()+"%"+(Hn&63|128).toString(16).toUpperCase();else zn="%"+(Hn>>12|224).toString(16).toUpperCase()+"%"+(Hn>>6&63|128).toString(16).toUpperCase()+"%"+(Hn&63|128).toString(16).toUpperCase();return zn}function pctDecChars(Bn){var Hn="";var zn=0;var ni=Bn.length;while(zn=194&&Ci<224){if(ni-zn>=6){var ts=parseInt(Bn.substr(zn+4,2),16);Hn+=String.fromCharCode((Ci&31)<<6|ts&63)}else{Hn+=Bn.substr(zn,6)}zn+=6}else if(Ci>=224){if(ni-zn>=9){var Ps=parseInt(Bn.substr(zn+4,2),16);var aa=parseInt(Bn.substr(zn+7,2),16);Hn+=String.fromCharCode((Ci&15)<<12|(Ps&63)<<6|aa&63)}else{Hn+=Bn.substr(zn,9)}zn+=9}else{Hn+=Bn.substr(zn,3);zn+=3}}return Hn}function _normalizeComponentEncoding(Bn,Hn){function decodeUnreserved(Bn){var zn=pctDecChars(Bn);return!zn.match(Hn.UNRESERVED)?Bn:zn}if(Bn.scheme)Bn.scheme=String(Bn.scheme).replace(Hn.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(Hn.NOT_SCHEME,"");if(Bn.userinfo!==undefined)Bn.userinfo=String(Bn.userinfo).replace(Hn.PCT_ENCODED,decodeUnreserved).replace(Hn.NOT_USERINFO,pctEncChar).replace(Hn.PCT_ENCODED,toUpperCase);if(Bn.host!==undefined)Bn.host=String(Bn.host).replace(Hn.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(Hn.NOT_HOST,pctEncChar).replace(Hn.PCT_ENCODED,toUpperCase);if(Bn.path!==undefined)Bn.path=String(Bn.path).replace(Hn.PCT_ENCODED,decodeUnreserved).replace(Bn.scheme?Hn.NOT_PATH:Hn.NOT_PATH_NOSCHEME,pctEncChar).replace(Hn.PCT_ENCODED,toUpperCase);if(Bn.query!==undefined)Bn.query=String(Bn.query).replace(Hn.PCT_ENCODED,decodeUnreserved).replace(Hn.NOT_QUERY,pctEncChar).replace(Hn.PCT_ENCODED,toUpperCase);if(Bn.fragment!==undefined)Bn.fragment=String(Bn.fragment).replace(Hn.PCT_ENCODED,decodeUnreserved).replace(Hn.NOT_FRAGMENT,pctEncChar).replace(Hn.PCT_ENCODED,toUpperCase);return Bn}function _stripLeadingZeros(Bn){return Bn.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(Bn,Hn){var zn=Bn.match(Hn.IPV4ADDRESS)||[];var Ci=ni(zn,2),ts=Ci[1];if(ts){return ts.split(".").map(_stripLeadingZeros).join(".")}else{return Bn}}function _normalizeIPv6(Bn,Hn){var zn=Bn.match(Hn.IPV6ADDRESS)||[];var Ci=ni(zn,3),ts=Ci[1],Ps=Ci[2];if(ts){var aa=ts.toLowerCase().split("::").reverse(),oa=ni(aa,2),ca=oa[0],_a=oa[1];var xa=_a?_a.split(":").map(_stripLeadingZeros):[];var Ga=ca.split(":").map(_stripLeadingZeros);var Ha=Hn.IPV4ADDRESS.test(Ga[Ga.length-1]);var so=Ha?7:8;var oo=Ga.length-so;var Jo=Array(so);for(var tc=0;tc1){var Dp=Jo.slice(0,Fc.index);var kp=Jo.slice(Fc.index+Fc.length);Jc=Dp.join(":")+"::"+kp.join(":")}else{Jc=Jo.join(":")}if(Ps){Jc+="%"+Ps}return Jc}else{return Bn}}var Qf=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var Yf="".match(/(){0}/)[1]===undefined;function parse(Bn){var ni=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var Ci={};var ts=ni.iri!==false?zn:Hn;if(ni.reference==="suffix")Bn=(ni.scheme?ni.scheme+":":"")+"//"+Bn;var Ps=Bn.match(Qf);if(Ps){if(Yf){Ci.scheme=Ps[1];Ci.userinfo=Ps[3];Ci.host=Ps[4];Ci.port=parseInt(Ps[5],10);Ci.path=Ps[6]||"";Ci.query=Ps[7];Ci.fragment=Ps[8];if(isNaN(Ci.port)){Ci.port=Ps[5]}}else{Ci.scheme=Ps[1]||undefined;Ci.userinfo=Bn.indexOf("@")!==-1?Ps[3]:undefined;Ci.host=Bn.indexOf("//")!==-1?Ps[4]:undefined;Ci.port=parseInt(Ps[5],10);Ci.path=Ps[6]||"";Ci.query=Bn.indexOf("?")!==-1?Ps[7]:undefined;Ci.fragment=Bn.indexOf("#")!==-1?Ps[8]:undefined;if(isNaN(Ci.port)){Ci.port=Bn.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ps[4]:undefined}}if(Ci.host){Ci.host=_normalizeIPv6(_normalizeIPv4(Ci.host,ts),ts)}if(Ci.scheme===undefined&&Ci.userinfo===undefined&&Ci.host===undefined&&Ci.port===undefined&&!Ci.path&&Ci.query===undefined){Ci.reference="same-document"}else if(Ci.scheme===undefined){Ci.reference="relative"}else if(Ci.fragment===undefined){Ci.reference="absolute"}else{Ci.reference="uri"}if(ni.reference&&ni.reference!=="suffix"&&ni.reference!==Ci.reference){Ci.error=Ci.error||"URI is not a "+ni.reference+" reference."}var aa=zp[(ni.scheme||Ci.scheme||"").toLowerCase()];if(!ni.unicodeSupport&&(!aa||!aa.unicodeSupport)){if(Ci.host&&(ni.domainHost||aa&&aa.domainHost)){try{Ci.host=Wp.toASCII(Ci.host.replace(ts.PCT_ENCODED,pctDecChars).toLowerCase())}catch(Bn){Ci.error=Ci.error||"Host's domain name can not be converted to ASCII via punycode: "+Bn}}_normalizeComponentEncoding(Ci,Hn)}else{_normalizeComponentEncoding(Ci,ts)}if(aa&&aa.parse){aa.parse(Ci,ni)}}else{Ci.error=Ci.error||"URI can not be parsed."}return Ci}function _recomposeAuthority(Bn,ni){var Ci=ni.iri!==false?zn:Hn;var ts=[];if(Bn.userinfo!==undefined){ts.push(Bn.userinfo);ts.push("@")}if(Bn.host!==undefined){ts.push(_normalizeIPv6(_normalizeIPv4(String(Bn.host),Ci),Ci).replace(Ci.IPV6ADDRESS,(function(Bn,Hn,zn){return"["+Hn+(zn?"%25"+zn:"")+"]"})))}if(typeof Bn.port==="number"||typeof Bn.port==="string"){ts.push(":");ts.push(String(Bn.port))}return ts.length?ts.join(""):undefined}var Kf=/^\.\.?\//;var Xf=/^\/\.(\/|$)/;var Ad=/^\/\.\.(\/|$)/;var Cd=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(Bn){var Hn=[];while(Bn.length){if(Bn.match(Kf)){Bn=Bn.replace(Kf,"")}else if(Bn.match(Xf)){Bn=Bn.replace(Xf,"/")}else if(Bn.match(Ad)){Bn=Bn.replace(Ad,"/");Hn.pop()}else if(Bn==="."||Bn===".."){Bn=""}else{var zn=Bn.match(Cd);if(zn){var ni=zn[0];Bn=Bn.slice(ni.length);Hn.push(ni)}else{throw new Error("Unexpected dot segment condition")}}}return Hn.join("")}function serialize(Bn){var ni=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var Ci=ni.iri?zn:Hn;var ts=[];var Ps=zp[(ni.scheme||Bn.scheme||"").toLowerCase()];if(Ps&&Ps.serialize)Ps.serialize(Bn,ni);if(Bn.host){if(Ci.IPV6ADDRESS.test(Bn.host)){}else if(ni.domainHost||Ps&&Ps.domainHost){try{Bn.host=!ni.iri?Wp.toASCII(Bn.host.replace(Ci.PCT_ENCODED,pctDecChars).toLowerCase()):Wp.toUnicode(Bn.host)}catch(Hn){Bn.error=Bn.error||"Host's domain name can not be converted to "+(!ni.iri?"ASCII":"Unicode")+" via punycode: "+Hn}}}_normalizeComponentEncoding(Bn,Ci);if(ni.reference!=="suffix"&&Bn.scheme){ts.push(Bn.scheme);ts.push(":")}var aa=_recomposeAuthority(Bn,ni);if(aa!==undefined){if(ni.reference!=="suffix"){ts.push("//")}ts.push(aa);if(Bn.path&&Bn.path.charAt(0)!=="/"){ts.push("/")}}if(Bn.path!==undefined){var oa=Bn.path;if(!ni.absolutePath&&(!Ps||!Ps.absolutePath)){oa=removeDotSegments(oa)}if(aa===undefined){oa=oa.replace(/^\/\//,"/%2F")}ts.push(oa)}if(Bn.query!==undefined){ts.push("?");ts.push(Bn.query)}if(Bn.fragment!==undefined){ts.push("#");ts.push(Bn.fragment)}return ts.join("")}function resolveComponents(Bn,Hn){var zn=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var ni=arguments[3];var Ci={};if(!ni){Bn=parse(serialize(Bn,zn),zn);Hn=parse(serialize(Hn,zn),zn)}zn=zn||{};if(!zn.tolerant&&Hn.scheme){Ci.scheme=Hn.scheme;Ci.userinfo=Hn.userinfo;Ci.host=Hn.host;Ci.port=Hn.port;Ci.path=removeDotSegments(Hn.path||"");Ci.query=Hn.query}else{if(Hn.userinfo!==undefined||Hn.host!==undefined||Hn.port!==undefined){Ci.userinfo=Hn.userinfo;Ci.host=Hn.host;Ci.port=Hn.port;Ci.path=removeDotSegments(Hn.path||"");Ci.query=Hn.query}else{if(!Hn.path){Ci.path=Bn.path;if(Hn.query!==undefined){Ci.query=Hn.query}else{Ci.query=Bn.query}}else{if(Hn.path.charAt(0)==="/"){Ci.path=removeDotSegments(Hn.path)}else{if((Bn.userinfo!==undefined||Bn.host!==undefined||Bn.port!==undefined)&&!Bn.path){Ci.path="/"+Hn.path}else if(!Bn.path){Ci.path=Hn.path}else{Ci.path=Bn.path.slice(0,Bn.path.lastIndexOf("/")+1)+Hn.path}Ci.path=removeDotSegments(Ci.path)}Ci.query=Hn.query}Ci.userinfo=Bn.userinfo;Ci.host=Bn.host;Ci.port=Bn.port}Ci.scheme=Bn.scheme}Ci.fragment=Hn.fragment;return Ci}function resolve(Bn,Hn,zn){var ni=assign({scheme:"null"},zn);return serialize(resolveComponents(parse(Bn,ni),parse(Hn,ni),ni,true),ni)}function normalize(Bn,Hn){if(typeof Bn==="string"){Bn=serialize(parse(Bn,Hn),Hn)}else if(typeOf(Bn)==="object"){Bn=parse(serialize(Bn,Hn),Hn)}return Bn}function equal(Bn,Hn,zn){if(typeof Bn==="string"){Bn=serialize(parse(Bn,zn),zn)}else if(typeOf(Bn)==="object"){Bn=serialize(Bn,zn)}if(typeof Hn==="string"){Hn=serialize(parse(Hn,zn),zn)}else if(typeOf(Hn)==="object"){Hn=serialize(Hn,zn)}return Bn===Hn}function escapeComponent(Bn,ni){return Bn&&Bn.toString().replace(!ni||!ni.iri?Hn.ESCAPE:zn.ESCAPE,pctEncChar)}function unescapeComponent(Bn,ni){return Bn&&Bn.toString().replace(!ni||!ni.iri?Hn.PCT_ENCODED:zn.PCT_ENCODED,pctDecChars)}var Sd={scheme:"http",domainHost:true,parse:function parse(Bn,Hn){if(!Bn.host){Bn.error=Bn.error||"HTTP URIs must have a host."}return Bn},serialize:function serialize(Bn,Hn){var zn=String(Bn.scheme).toLowerCase()==="https";if(Bn.port===(zn?443:80)||Bn.port===""){Bn.port=undefined}if(!Bn.path){Bn.path="/"}return Bn}};var xd={scheme:"https",domainHost:Sd.domainHost,parse:Sd.parse,serialize:Sd.serialize};function isSecure(Bn){return typeof Bn.secure==="boolean"?Bn.secure:String(Bn.scheme).toLowerCase()==="wss"}var wd={scheme:"ws",domainHost:true,parse:function parse(Bn,Hn){var zn=Bn;zn.secure=isSecure(zn);zn.resourceName=(zn.path||"/")+(zn.query?"?"+zn.query:"");zn.path=undefined;zn.query=undefined;return zn},serialize:function serialize(Bn,Hn){if(Bn.port===(isSecure(Bn)?443:80)||Bn.port===""){Bn.port=undefined}if(typeof Bn.secure==="boolean"){Bn.scheme=Bn.secure?"wss":"ws";Bn.secure=undefined}if(Bn.resourceName){var zn=Bn.resourceName.split("?"),Ci=ni(zn,2),ts=Ci[0],Ps=Ci[1];Bn.path=ts&&ts!=="/"?ts:undefined;Bn.query=Ps;Bn.resourceName=undefined}Bn.fragment=undefined;return Bn}};var Td={scheme:"wss",domainHost:wd.domainHost,parse:wd.parse,serialize:wd.serialize};var Pd={};var Qh=true;var Zh="[A-Za-z0-9\\-\\.\\_\\~"+(Qh?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var f_="[0-9A-Fa-f]";var Z_=subexp(subexp("%[EFef]"+f_+"%"+f_+f_+"%"+f_+f_)+"|"+subexp("%[89A-Fa-f]"+f_+"%"+f_+f_)+"|"+subexp("%"+f_+f_));var eg="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var tg="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var rg=merge(tg,'[\\"\\\\]');var ng="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var ig=new RegExp(Zh,"g");var sg=new RegExp(Z_,"g");var ag=new RegExp(merge("[^]",eg,"[\\.]",'[\\"]',rg),"g");var og=new RegExp(merge("[^]",Zh,ng),"g");var ug=og;function decodeUnreserved(Bn){var Hn=pctDecChars(Bn);return!Hn.match(ig)?Bn:Hn}var cg={scheme:"mailto",parse:function parse$$1(Bn,Hn){var zn=Bn;var ni=zn.to=zn.path?zn.path.split(","):[];zn.path=undefined;if(zn.query){var Ci=false;var ts={};var Ps=zn.query.split("&");for(var aa=0,oa=Ps.length;aa{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Object.defineProperty(Hn,"v1",{enumerable:true,get:function(){return ni.default}});Object.defineProperty(Hn,"v3",{enumerable:true,get:function(){return Ci.default}});Object.defineProperty(Hn,"v4",{enumerable:true,get:function(){return ts.default}});Object.defineProperty(Hn,"v5",{enumerable:true,get:function(){return Ps.default}});Object.defineProperty(Hn,"NIL",{enumerable:true,get:function(){return aa.default}});Object.defineProperty(Hn,"version",{enumerable:true,get:function(){return oa.default}});Object.defineProperty(Hn,"validate",{enumerable:true,get:function(){return ca.default}});Object.defineProperty(Hn,"stringify",{enumerable:true,get:function(){return _a.default}});Object.defineProperty(Hn,"parse",{enumerable:true,get:function(){return xa.default}});var ni=_interopRequireDefault(zn(78628));var Ci=_interopRequireDefault(zn(86409));var ts=_interopRequireDefault(zn(85122));var Ps=_interopRequireDefault(zn(79120));var aa=_interopRequireDefault(zn(25332));var oa=_interopRequireDefault(zn(81595));var ca=_interopRequireDefault(zn(66900));var _a=_interopRequireDefault(zn(18950));var xa=_interopRequireDefault(zn(62746));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}},4569:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(6113));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function md5(Bn){if(Array.isArray(Bn)){Bn=Buffer.from(Bn)}else if(typeof Bn==="string"){Bn=Buffer.from(Bn,"utf8")}return ni.default.createHash("md5").update(Bn).digest()}var Ci=md5;Hn["default"]=Ci},25332:(Bn,Hn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var zn="00000000-0000-0000-0000-000000000000";Hn["default"]=zn},62746:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(66900));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function parse(Bn){if(!(0,ni.default)(Bn)){throw TypeError("Invalid UUID")}let Hn;const zn=new Uint8Array(16);zn[0]=(Hn=parseInt(Bn.slice(0,8),16))>>>24;zn[1]=Hn>>>16&255;zn[2]=Hn>>>8&255;zn[3]=Hn&255;zn[4]=(Hn=parseInt(Bn.slice(9,13),16))>>>8;zn[5]=Hn&255;zn[6]=(Hn=parseInt(Bn.slice(14,18),16))>>>8;zn[7]=Hn&255;zn[8]=(Hn=parseInt(Bn.slice(19,23),16))>>>8;zn[9]=Hn&255;zn[10]=(Hn=parseInt(Bn.slice(24,36),16))/1099511627776&255;zn[11]=Hn/4294967296&255;zn[12]=Hn>>>24&255;zn[13]=Hn>>>16&255;zn[14]=Hn>>>8&255;zn[15]=Hn&255;return zn}var Ci=parse;Hn["default"]=Ci},40814:(Bn,Hn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var zn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Hn["default"]=zn},50807:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=rng;var ni=_interopRequireDefault(zn(6113));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}const Ci=new Uint8Array(256);let ts=Ci.length;function rng(){if(ts>Ci.length-16){ni.default.randomFillSync(Ci);ts=0}return Ci.slice(ts,ts+=16)}},85274:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(6113));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function sha1(Bn){if(Array.isArray(Bn)){Bn=Buffer.from(Bn)}else if(typeof Bn==="string"){Bn=Buffer.from(Bn,"utf8")}return ni.default.createHash("sha1").update(Bn).digest()}var Ci=sha1;Hn["default"]=Ci},18950:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(66900));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}const Ci=[];for(let Bn=0;Bn<256;++Bn){Ci.push((Bn+256).toString(16).substr(1))}function stringify(Bn,Hn=0){const zn=(Ci[Bn[Hn+0]]+Ci[Bn[Hn+1]]+Ci[Bn[Hn+2]]+Ci[Bn[Hn+3]]+"-"+Ci[Bn[Hn+4]]+Ci[Bn[Hn+5]]+"-"+Ci[Bn[Hn+6]]+Ci[Bn[Hn+7]]+"-"+Ci[Bn[Hn+8]]+Ci[Bn[Hn+9]]+"-"+Ci[Bn[Hn+10]]+Ci[Bn[Hn+11]]+Ci[Bn[Hn+12]]+Ci[Bn[Hn+13]]+Ci[Bn[Hn+14]]+Ci[Bn[Hn+15]]).toLowerCase();if(!(0,ni.default)(zn)){throw TypeError("Stringified UUID is invalid")}return zn}var ts=stringify;Hn["default"]=ts},78628:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(50807));var Ci=_interopRequireDefault(zn(18950));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}let ts;let Ps;let aa=0;let oa=0;function v1(Bn,Hn,zn){let ca=Hn&&zn||0;const _a=Hn||new Array(16);Bn=Bn||{};let xa=Bn.node||ts;let Ga=Bn.clockseq!==undefined?Bn.clockseq:Ps;if(xa==null||Ga==null){const Hn=Bn.random||(Bn.rng||ni.default)();if(xa==null){xa=ts=[Hn[0]|1,Hn[1],Hn[2],Hn[3],Hn[4],Hn[5]]}if(Ga==null){Ga=Ps=(Hn[6]<<8|Hn[7])&16383}}let Ha=Bn.msecs!==undefined?Bn.msecs:Date.now();let so=Bn.nsecs!==undefined?Bn.nsecs:oa+1;const oo=Ha-aa+(so-oa)/1e4;if(oo<0&&Bn.clockseq===undefined){Ga=Ga+1&16383}if((oo<0||Ha>aa)&&Bn.nsecs===undefined){so=0}if(so>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}aa=Ha;oa=so;Ps=Ga;Ha+=122192928e5;const Jo=((Ha&268435455)*1e4+so)%4294967296;_a[ca++]=Jo>>>24&255;_a[ca++]=Jo>>>16&255;_a[ca++]=Jo>>>8&255;_a[ca++]=Jo&255;const tc=Ha/4294967296*1e4&268435455;_a[ca++]=tc>>>8&255;_a[ca++]=tc&255;_a[ca++]=tc>>>24&15|16;_a[ca++]=tc>>>16&255;_a[ca++]=Ga>>>8|128;_a[ca++]=Ga&255;for(let Bn=0;Bn<6;++Bn){_a[ca+Bn]=xa[Bn]}return Hn||(0,Ci.default)(_a)}var ca=v1;Hn["default"]=ca},86409:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(65998));var Ci=_interopRequireDefault(zn(4569));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}const ts=(0,ni.default)("v3",48,Ci.default);var Ps=ts;Hn["default"]=Ps},65998:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=_default;Hn.URL=Hn.DNS=void 0;var ni=_interopRequireDefault(zn(18950));var Ci=_interopRequireDefault(zn(62746));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function stringToBytes(Bn){Bn=unescape(encodeURIComponent(Bn));const Hn=[];for(let zn=0;zn{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(50807));var Ci=_interopRequireDefault(zn(18950));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function v4(Bn,Hn,zn){Bn=Bn||{};const ts=Bn.random||(Bn.rng||ni.default)();ts[6]=ts[6]&15|64;ts[8]=ts[8]&63|128;if(Hn){zn=zn||0;for(let Bn=0;Bn<16;++Bn){Hn[zn+Bn]=ts[Bn]}return Hn}return(0,Ci.default)(ts)}var ts=v4;Hn["default"]=ts},79120:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(65998));var Ci=_interopRequireDefault(zn(85274));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}const ts=(0,ni.default)("v5",80,Ci.default);var Ps=ts;Hn["default"]=Ps},66900:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(40814));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function validate(Bn){return typeof Bn==="string"&&ni.default.test(Bn)}var Ci=validate;Hn["default"]=Ci},81595:(Bn,Hn,zn)=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:true});Hn["default"]=void 0;var ni=_interopRequireDefault(zn(66900));function _interopRequireDefault(Bn){return Bn&&Bn.__esModule?Bn:{default:Bn}}function version(Bn){if(!(0,ni.default)(Bn)){throw TypeError("Invalid UUID")}return parseInt(Bn.substr(14,1),16)}var Ci=version;Hn["default"]=Ci},62940:Bn=>{Bn.exports=wrappy;function wrappy(Bn,Hn){if(Bn&&Hn)return wrappy(Bn)(Hn);if(typeof Bn!=="function")throw new TypeError("need wrapper function");Object.keys(Bn).forEach((function(Hn){wrapper[Hn]=Bn[Hn]}));return wrapper;function wrapper(){var Hn=new Array(arguments.length);for(var zn=0;zn{"use strict";Bn.exports=function(Bn){Bn.prototype[Symbol.iterator]=function*(){for(let Bn=this.head;Bn;Bn=Bn.next){yield Bn.value}}}},40665:(Bn,Hn,zn)=>{"use strict";Bn.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(Bn){var Hn=this;if(!(Hn instanceof Yallist)){Hn=new Yallist}Hn.tail=null;Hn.head=null;Hn.length=0;if(Bn&&typeof Bn.forEach==="function"){Bn.forEach((function(Bn){Hn.push(Bn)}))}else if(arguments.length>0){for(var zn=0,ni=arguments.length;zn1){zn=Hn}else if(this.head){ni=this.head.next;zn=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var Ci=0;ni!==null;Ci++){zn=Bn(zn,ni.value,Ci);ni=ni.next}return zn};Yallist.prototype.reduceReverse=function(Bn,Hn){var zn;var ni=this.tail;if(arguments.length>1){zn=Hn}else if(this.tail){ni=this.tail.prev;zn=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var Ci=this.length-1;ni!==null;Ci--){zn=Bn(zn,ni.value,Ci);ni=ni.prev}return zn};Yallist.prototype.toArray=function(){var Bn=new Array(this.length);for(var Hn=0,zn=this.head;zn!==null;Hn++){Bn[Hn]=zn.value;zn=zn.next}return Bn};Yallist.prototype.toArrayReverse=function(){var Bn=new Array(this.length);for(var Hn=0,zn=this.tail;zn!==null;Hn++){Bn[Hn]=zn.value;zn=zn.prev}return Bn};Yallist.prototype.slice=function(Bn,Hn){Hn=Hn||this.length;if(Hn<0){Hn+=this.length}Bn=Bn||0;if(Bn<0){Bn+=this.length}var zn=new Yallist;if(Hnthis.length){Hn=this.length}for(var ni=0,Ci=this.head;Ci!==null&&nithis.length){Hn=this.length}for(var ni=this.length,Ci=this.tail;Ci!==null&&ni>Hn;ni--){Ci=Ci.prev}for(;Ci!==null&&ni>Bn;ni--,Ci=Ci.prev){zn.push(Ci.value)}return zn};Yallist.prototype.splice=function(Bn,Hn,...zn){if(Bn>this.length){Bn=this.length-1}if(Bn<0){Bn=this.length+Bn}for(var ni=0,Ci=this.head;Ci!==null&&ni{const Bn="pip install black==24.4.2";try{Ps.debug(`run command: "${Bn}"`);const Hn=(0,aa.execSync)(Bn).toString();Ps.debug(Hn)}catch(Hn){if(Hn instanceof Error){Ps.warning(`Failed to install black with command ${Bn}`);Ps.warning(Hn)}}};Hn.installBlack=installBlack},561:module=>{module.exports=eval("require")("chokidar")},39491:Bn=>{"use strict";Bn.exports=require("assert")},50852:Bn=>{"use strict";Bn.exports=require("async_hooks")},14300:Bn=>{"use strict";Bn.exports=require("buffer")},32081:Bn=>{"use strict";Bn.exports=require("child_process")},96206:Bn=>{"use strict";Bn.exports=require("console")},6113:Bn=>{"use strict";Bn.exports=require("crypto")},67643:Bn=>{"use strict";Bn.exports=require("diagnostics_channel")},13639:Bn=>{"use strict";Bn.exports=require("domain")},82361:Bn=>{"use strict";Bn.exports=require("events")},57147:Bn=>{"use strict";Bn.exports=require("fs")},13685:Bn=>{"use strict";Bn.exports=require("http")},85158:Bn=>{"use strict";Bn.exports=require("http2")},95687:Bn=>{"use strict";Bn.exports=require("https")},98188:Bn=>{"use strict";Bn.exports=require("module")},41808:Bn=>{"use strict";Bn.exports=require("net")},15673:Bn=>{"use strict";Bn.exports=require("node:events")},84492:Bn=>{"use strict";Bn.exports=require("node:stream")},47261:Bn=>{"use strict";Bn.exports=require("node:util")},22037:Bn=>{"use strict";Bn.exports=require("os")},71017:Bn=>{"use strict";Bn.exports=require("path")},4074:Bn=>{"use strict";Bn.exports=require("perf_hooks")},63477:Bn=>{"use strict";Bn.exports=require("querystring")},12781:Bn=>{"use strict";Bn.exports=require("stream")},35356:Bn=>{"use strict";Bn.exports=require("stream/web")},71576:Bn=>{"use strict";Bn.exports=require("string_decoder")},24404:Bn=>{"use strict";Bn.exports=require("tls")},76224:Bn=>{"use strict";Bn.exports=require("tty")},57310:Bn=>{"use strict";Bn.exports=require("url")},73837:Bn=>{"use strict";Bn.exports=require("util")},29830:Bn=>{"use strict";Bn.exports=require("util/types")},71267:Bn=>{"use strict";Bn.exports=require("worker_threads")},59796:Bn=>{"use strict";Bn.exports=require("zlib")},92960:(Bn,Hn,zn)=>{"use strict";const ni=zn(84492).Writable;const Ci=zn(47261).inherits;const ts=zn(51142);const Ps=zn(81620);const aa=zn(92032);const oa=45;const ca=Buffer.from("-");const _a=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(Bn){if(!(this instanceof Dicer)){return new Dicer(Bn)}ni.call(this,Bn);if(!Bn||!Bn.headerFirst&&typeof Bn.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof Bn.boundary==="string"){this.setBoundary(Bn.boundary)}else{this._bparser=undefined}this._headerFirst=Bn.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:Bn.partHwm};this._pause=false;const Hn=this;this._hparser=new aa(Bn);this._hparser.on("header",(function(Bn){Hn._inHeader=false;Hn._part.emit("header",Bn)}))}Ci(Dicer,ni);Dicer.prototype.emit=function(Bn){if(Bn==="finish"&&!this._realFinish){if(!this._finished){const Bn=this;process.nextTick((function(){Bn.emit("error",new Error("Unexpected end of multipart data"));if(Bn._part&&!Bn._ignoreData){const Hn=Bn._isPreamble?"Preamble":"Part";Bn._part.emit("error",new Error(Hn+" terminated early due to unexpected end of multipart data"));Bn._part.push(null);process.nextTick((function(){Bn._realFinish=true;Bn.emit("finish");Bn._realFinish=false}));return}Bn._realFinish=true;Bn.emit("finish");Bn._realFinish=false}))}}else{ni.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(Bn,Hn,zn){if(!this._hparser&&!this._bparser){return zn()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new Ps(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const Hn=this._hparser.push(Bn);if(!this._inHeader&&Hn!==undefined&&Hn{"use strict";const ni=zn(15673).EventEmitter;const Ci=zn(47261).inherits;const ts=zn(21467);const Ps=zn(51142);const aa=Buffer.from("\r\n\r\n");const oa=/\r\n/g;const ca=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(Bn){ni.call(this);Bn=Bn||{};const Hn=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=ts(Bn,"maxHeaderPairs",2e3);this.maxHeaderSize=ts(Bn,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new Ps(aa);this.ss.on("info",(function(Bn,zn,ni,Ci){if(zn&&!Hn.maxed){if(Hn.nread+Ci-ni>=Hn.maxHeaderSize){Ci=Hn.maxHeaderSize-Hn.nread+ni;Hn.nread=Hn.maxHeaderSize;Hn.maxed=true}else{Hn.nread+=Ci-ni}Hn.buffer+=zn.toString("binary",ni,Ci)}if(Bn){Hn._finish()}}))}Ci(HeaderParser,ni);HeaderParser.prototype.push=function(Bn){const Hn=this.ss.push(Bn);if(this.finished){return Hn}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const Bn=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",Bn)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const Bn=this.buffer.split(oa);const Hn=Bn.length;let zn,ni;for(var Ci=0;Ci{"use strict";const ni=zn(47261).inherits;const Ci=zn(84492).Readable;function PartStream(Bn){Ci.call(this,Bn)}ni(PartStream,Ci);PartStream.prototype._read=function(Bn){};Bn.exports=PartStream},51142:(Bn,Hn,zn)=>{"use strict";const ni=zn(15673).EventEmitter;const Ci=zn(47261).inherits;function SBMH(Bn){if(typeof Bn==="string"){Bn=Buffer.from(Bn)}if(!Buffer.isBuffer(Bn)){throw new TypeError("The needle has to be a String or a Buffer.")}const Hn=Bn.length;if(Hn===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(Hn>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(Hn);this._lookbehind_size=0;this._needle=Bn;this._bufpos=0;this._lookbehind=Buffer.alloc(Hn);for(var zn=0;zn=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const zn=this._lookbehind_size+ts;if(zn>0){this.emit("info",false,this._lookbehind,0,zn)}this._lookbehind.copy(this._lookbehind,0,zn,this._lookbehind_size-zn);this._lookbehind_size-=zn;Bn.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=Hn;this._bufpos=Hn;return Hn}}ts+=(ts>=0)*this._bufpos;if(Bn.indexOf(zn,ts)!==-1){ts=Bn.indexOf(zn,ts);++this.matches;if(ts>0){this.emit("info",true,Bn,this._bufpos,ts)}else{this.emit("info",true)}return this._bufpos=ts+ni}else{ts=Hn-ni}while(ts0){this.emit("info",false,Bn,this._bufpos,ts{"use strict";const ni=zn(84492).Writable;const{inherits:Ci}=zn(47261);const ts=zn(92960);const Ps=zn(32183);const aa=zn(78306);const oa=zn(31854);function Busboy(Bn){if(!(this instanceof Busboy)){return new Busboy(Bn)}if(typeof Bn!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof Bn.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof Bn.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:Hn,...zn}=Bn;this.opts={autoDestroy:false,...zn};ni.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(Hn);this._finished=false}Ci(Busboy,ni);Busboy.prototype.emit=function(Bn){if(Bn==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}ni.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(Bn){const Hn=oa(Bn["content-type"]);const zn={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:Bn,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:Hn,preservePath:this.opts.preservePath};if(Ps.detect.test(Hn[0])){return new Ps(this,zn)}if(aa.detect.test(Hn[0])){return new aa(this,zn)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(Bn,Hn,zn){this._parser.write(Bn,zn)};Bn.exports=Busboy;Bn.exports["default"]=Busboy;Bn.exports.Busboy=Busboy;Bn.exports.Dicer=ts},32183:(Bn,Hn,zn)=>{"use strict";const{Readable:ni}=zn(84492);const{inherits:Ci}=zn(47261);const ts=zn(92960);const Ps=zn(31854);const aa=zn(84619);const oa=zn(48647);const ca=zn(21467);const _a=/^boundary$/i;const xa=/^form-data$/i;const Ga=/^charset$/i;const Ha=/^filename$/i;const so=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(Bn,Hn){let zn;let ni;const Ci=this;let oo;const Jo=Hn.limits;const tc=Hn.isPartAFile||((Bn,Hn,zn)=>Hn==="application/octet-stream"||zn!==undefined);const dc=Hn.parsedConType||[];const Fc=Hn.defCharset||"utf8";const Jc=Hn.preservePath;const Dp={highWaterMark:Hn.fileHwm};for(zn=0,ni=dc.length;znVp){Ci.parser.removeListener("part",onPart);Ci.parser.on("part",skipPart);Bn.hitPartsLimit=true;Bn.emit("partsLimit");return skipPart(Hn)}if(Xf){const Bn=Xf;Bn.emit("end");Bn.removeAllListeners("end")}Hn.on("header",(function(ts){let ca;let _a;let oo;let Jo;let dc;let Vp;let Jp=0;if(ts["content-type"]){oo=Ps(ts["content-type"][0]);if(oo[0]){ca=oo[0].toLowerCase();for(zn=0,ni=oo.length;znQp){const ni=Qp-Jp+Bn.length;if(ni>0){zn.push(Bn.slice(0,ni))}zn.truncated=true;zn.bytesRead=Qp;Hn.removeAllListeners("data");zn.emit("limit");return}else if(!zn.push(Bn)){Ci._pause=true}zn.bytesRead=Jp};Ad=function(){Kf=undefined;zn.push(null)}}else{if(Qf===qp){if(!Bn.hitFieldsLimit){Bn.hitFieldsLimit=true;Bn.emit("fieldsLimit")}return skipPart(Hn)}++Qf;++Yf;let zn="";let ni=false;Xf=Hn;Wp=function(Bn){if((Jp+=Bn.length)>kp){const Ci=kp-(Jp-Bn.length);zn+=Bn.toString("binary",0,Ci);ni=true;Hn.removeAllListeners("data")}else{zn+=Bn.toString("binary")}};Ad=function(){Xf=undefined;if(zn.length){zn=aa(zn,"binary",Jo)}Bn.emit("field",_a,zn,false,ni,dc,ca);--Yf;checkFinished()}}Hn._readableState.sync=false;Hn.on("data",Wp);Hn.on("end",Ad)})).on("error",(function(Bn){if(Kf){Kf.emit("error",Bn)}}))})).on("error",(function(Hn){Bn.emit("error",Hn)})).on("finish",(function(){Ad=true;checkFinished()}))}Multipart.prototype.write=function(Bn,Hn){const zn=this.parser.write(Bn);if(zn&&!this._pause){Hn()}else{this._needDrain=!zn;this._cb=Hn}};Multipart.prototype.end=function(){const Bn=this;if(Bn.parser.writable){Bn.parser.end()}else if(!Bn._boy._done){process.nextTick((function(){Bn._boy._done=true;Bn._boy.emit("finish")}))}};function skipPart(Bn){Bn.resume()}function FileStream(Bn){ni.call(this,Bn);this.bytesRead=0;this.truncated=false}Ci(FileStream,ni);FileStream.prototype._read=function(Bn){};Bn.exports=Multipart},78306:(Bn,Hn,zn)=>{"use strict";const ni=zn(27100);const Ci=zn(84619);const ts=zn(21467);const Ps=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(Bn,Hn){const zn=Hn.limits;const Ci=Hn.parsedConType;this.boy=Bn;this.fieldSizeLimit=ts(zn,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=ts(zn,"fieldNameSize",100);this.fieldsLimit=ts(zn,"fields",Infinity);let aa;for(var oa=0,ca=Ci.length;oaPs){this._key+=this.decoder.write(Bn.toString("binary",Ps,zn))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();Ps=zn+1}else if(ni!==undefined){++this._fields;let zn;const ts=this._keyTrunc;if(ni>Ps){zn=this._key+=this.decoder.write(Bn.toString("binary",Ps,ni))}else{zn=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(zn.length){this.boy.emit("field",Ci(zn,"binary",this.charset),"",ts,false)}Ps=ni+1;if(this._fields===this.fieldsLimit){return Hn()}}else if(this._hitLimit){if(ts>Ps){this._key+=this.decoder.write(Bn.toString("binary",Ps,ts))}Ps=ts;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(PsPs){this._val+=this.decoder.write(Bn.toString("binary",Ps,ni))}this.boy.emit("field",Ci(this._key,"binary",this.charset),Ci(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();Ps=ni+1;if(this._fields===this.fieldsLimit){return Hn()}}else if(this._hitLimit){if(ts>Ps){this._val+=this.decoder.write(Bn.toString("binary",Ps,ts))}Ps=ts;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(Ps0){this.boy.emit("field",Ci(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",Ci(this._key,"binary",this.charset),Ci(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};Bn.exports=UrlEncoded},27100:Bn=>{"use strict";const Hn=/\+/g;const zn=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(Bn){Bn=Bn.replace(Hn," ");let ni="";let Ci=0;let ts=0;const Ps=Bn.length;for(;Cits){ni+=Bn.substring(ts,Ci);ts=Ci}this.buffer="";++ts}}if(ts{"use strict";Bn.exports=function basename(Bn){if(typeof Bn!=="string"){return""}for(var Hn=Bn.length-1;Hn>=0;--Hn){switch(Bn.charCodeAt(Hn)){case 47:case 92:Bn=Bn.slice(Hn+1);return Bn===".."||Bn==="."?"":Bn}}return Bn===".."||Bn==="."?"":Bn}},84619:function(Bn){"use strict";const Hn=new TextDecoder("utf-8");const zn=new Map([["utf-8",Hn],["utf8",Hn]]);function getDecoder(Bn){let Hn;while(true){switch(Bn){case"utf-8":case"utf8":return ni.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return ni.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return ni.utf16le;case"base64":return ni.base64;default:if(Hn===undefined){Hn=true;Bn=Bn.toLowerCase();continue}return ni.other.bind(Bn)}}}const ni={utf8:(Bn,Hn)=>{if(Bn.length===0){return""}if(typeof Bn==="string"){Bn=Buffer.from(Bn,Hn)}return Bn.utf8Slice(0,Bn.length)},latin1:(Bn,Hn)=>{if(Bn.length===0){return""}if(typeof Bn==="string"){return Bn}return Bn.latin1Slice(0,Bn.length)},utf16le:(Bn,Hn)=>{if(Bn.length===0){return""}if(typeof Bn==="string"){Bn=Buffer.from(Bn,Hn)}return Bn.ucs2Slice(0,Bn.length)},base64:(Bn,Hn)=>{if(Bn.length===0){return""}if(typeof Bn==="string"){Bn=Buffer.from(Bn,Hn)}return Bn.base64Slice(0,Bn.length)},other:(Bn,Hn)=>{if(Bn.length===0){return""}if(typeof Bn==="string"){Bn=Buffer.from(Bn,Hn)}if(zn.has(this.toString())){try{return zn.get(this).decode(Bn)}catch{}}return typeof Bn==="string"?Bn:Bn.toString()}};function decodeText(Bn,Hn,zn){if(Bn){return getDecoder(zn)(Bn,Hn)}return Bn}Bn.exports=decodeText},21467:Bn=>{"use strict";Bn.exports=function getLimit(Bn,Hn,zn){if(!Bn||Bn[Hn]===undefined||Bn[Hn]===null){return zn}if(typeof Bn[Hn]!=="number"||isNaN(Bn[Hn])){throw new TypeError("Limit "+Hn+" is not a valid number")}return Bn[Hn]}},31854:(Bn,Hn,zn)=>{"use strict";const ni=zn(84619);const Ci=/%[a-fA-F0-9][a-fA-F0-9]/g;const ts={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(Bn){return ts[Bn]}const Ps=0;const aa=1;const oa=2;const ca=3;function parseParams(Bn){const Hn=[];let zn=Ps;let ts="";let _a=false;let xa=false;let Ga=0;let Ha="";const so=Bn.length;for(var oo=0;oo{"use strict";Bn.exports=JSON.parse('{"name":"prettier","version":"2.8.8","description":"Prettier is an opinionated code formatter","bin":"./bin-prettier.js","repository":"prettier/prettier","funding":"https://github.com/prettier/prettier?sponsor=1","homepage":"https://prettier.io","author":"James Long","license":"MIT","main":"./index.js","browser":"./standalone.js","unpkg":"./standalone.js","engines":{"node":">=10.13.0"},"files":["*.js","esm/*.mjs"]}')},65829:Bn=>{"use strict";Bn.exports=JSON.parse('{"version":"1.3.147","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","files":["dist","src"],"engines":{"node":">=10"},"scripts":{"jest:clear":"jest --clearCache","start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"eslint src/**/*.ts","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why","version":"echo version && git add -A src","debug-dry-run":"npm test dry-run","postversion":"echo postversion && git push origin HEAD:$CI_DEFAULT_BRANCH && git push --tags origin HEAD:$CI_DEFAULT_BRANCH"},"publishConfig":{"registry":"https://linearb.jfrog.io/linearb/api/npm/npm-local/"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"name":"@linearb/gitstream-core","author":"Oriel Zaken","module":"dist/gs-rule-parser.esm.js","size-limit":[{"path":"dist/gs-rule-parser.cjs.production.min.js","limit":"10 KB"},{"path":"dist/gs-rule-parser.esm.js","limit":"10 KB"}],"devDependencies":{"@babel/preset-typescript":"^7.22.15","@jest/globals":"^29.7.0","@size-limit/preset-small-lib":"^7.0.8","@types/jest":"^27.5.2","@types/js-yaml":"^4.0.5","@types/jsonwebtoken":"^9.0.2","@types/lodash":"^4.14.198","@types/node":"^18.6.4","@types/nunjucks":"^3.2.1","@types/shell-quote":"^1.7.5","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","eslint":"^8.49.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.28.1","eslint-plugin-prettier":"^4.0.0","husky":"^8.0.1","jest":"^27.5.1","size-limit":"^7.0.8","ts-jest":"^27.1.5","tsdx":"^0.14.1","tslib":"^2.4.0","typescript":"^3.9.10"},"jest":{"testEnvironment":"node"},"dependencies":{"@actions/core":"^1.10.0","@amplitude/node":"^1.10.2","@linearb/gitstream-core-js":"0.1.44","@linearb/linode-common":"2.1.301","@octokit/graphql":"^7.0.2","@octokit/rest":"^20.0.1","ajv":"^8.12.0","axios":"^0.24.0","child_process":"^1.0.2","fs":"^0.0.1-security","js-yaml":"^4.1.0","jsonwebtoken":"^9.0.1","lodash":"^4.17.21","moment":"^2.29.4","nunjucks":"^3.2.3","parse-diff":"^0.11.1","prettier":"^2.7.1","shell-quote":"^1.8.1"},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"all"}}')},64775:Bn=>{"use strict";Bn.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},98:Bn=>{"use strict";Bn.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}};var __webpack_module_cache__={};function __nccwpck_require__(Bn){var Hn=__webpack_module_cache__[Bn];if(Hn!==undefined){return Hn.exports}var zn=__webpack_module_cache__[Bn]={id:Bn,loaded:false,exports:{}};var ni=true;try{__webpack_modules__[Bn].call(zn.exports,zn,zn.exports,__nccwpck_require__);ni=false}finally{if(ni)delete __webpack_module_cache__[Bn]}zn.loaded=true;return zn.exports}(()=>{__nccwpck_require__.nmd=Bn=>{Bn.paths=[];if(!Bn.children)Bn.children=[];return Bn}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{"use strict";var Bn=__webpack_exports__;Object.defineProperty(Bn,"__esModule",{value:true});const Hn=__nccwpck_require__(70399);(0,Hn.run)()})();module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 725b7cad..05702bae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "@actions/core": "^1.10.1", - "@linearb/gitstream-core": "1.3.145" + "@linearb/gitstream-core": "1.3.147" }, "devDependencies": { "@jest/globals": "^29.7.0", @@ -1421,9 +1421,9 @@ } }, "node_modules/@linearb/gitstream-core": { - "version": "1.3.145", - "resolved": "https://linearb.jfrog.io/linearb/api/npm/npm-local/@linearb/gitstream-core/-/@linearb/gitstream-core-1.3.145.tgz", - "integrity": "sha512-v9AbQQ1TMQyrdWIXSzW2M4cJMYh+Yarkpysmref4htIUdS6Z5xDeTv0Kcb0AIIEZrEjpL9M+JQUBtKKdrh4Riw==", + "version": "1.3.147", + "resolved": "https://linearb.jfrog.io/linearb/api/npm/npm-local/@linearb/gitstream-core/-/@linearb/gitstream-core-1.3.147.tgz", + "integrity": "sha512-aWw/OVwmbPWQ7Y9/VOT3jtul7tO+Z8E6QPKvp6lCsNjPHzH2QZcIdBayFKdaYzj8g/30KbPNXcGc4PC/0BXVpg==", "dependencies": { "@actions/core": "^1.10.0", "@amplitude/node": "^1.10.2", diff --git a/package.json b/package.json index 751cbf03..3b13d2e3 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "license": "Apache-2.0", "dependencies": { "@actions/core": "^1.10.1", - "@linearb/gitstream-core": "1.3.145" + "@linearb/gitstream-core": "1.3.147" }, "devDependencies": { "@jest/globals": "^29.7.0",