diff --git a/dist/index.js b/dist/index.js index 4686141c..4a982249 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={6979:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getGithubFilePath=i.getScannerViolationType=void 0;function getScannerViolationType(t,i,a){if(t.severityThreshold>=i.severity){return"Error"}if(!t.strictlyEnforcedRules){return"Warning"}let o={engine:a,category:i.category,rule:i.ruleName};for(let i of JSON.parse(t.strictlyEnforcedRules)){if(Object.entries(o).toString()===Object.entries(i).toString()){return"Error"}}return"Warning"}i.getScannerViolationType=getScannerViolationType;function getGithubFilePath(t,i){return["..","tree",t,i].join("/")}i.getGithubFilePath=getGithubFilePath},8763:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};var p=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:true});i.getDiffInPullRequest=void 0;const u=p(a(4833));const l=p(a(7147));const d=a(2081);const h="diffBetweenCurrentAndParentBranch.txt";function getDiffInPullRequest(t,i,a){return o(this,void 0,void 0,(function*(){console.log("Getting difference within the pull request ...",{baseRef:t,headRef:i});if(a){(0,d.execSync)(`git remote add -f destination ${a}`);(0,d.execSync)(`git remote update`)}(0,d.execSync)(`git diff destination/${t}...origin/${i} > ${h}`);const o=(0,u.default)(l.default.readFileSync(h).toString());const p=new Map;for(let t of o){if(t.to&&t.to!=="/dev/null"){const i=new Set;for(let a of t.chunks){for(let t of a.changes){if(t.type==="add"||t.type==="del"){i.add(t.ln)}}}p.set(t.to,i)}}return p}))}i.getDiffInPullRequest=getDiffInPullRequest},4822:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.performStaticCodeAnalysisOnFilesInDiff=void 0;const p=a(2186);const u=a(5438);const l=a(8763);const d=a(1471);const h=a(5418);const m=a(9774);function initialSetup(){var t,i;const a={category:(0,p.getInput)("category"),engine:(0,p.getInput)("engine"),env:(0,p.getInput)("eslint-env"),eslintconfig:(0,p.getInput)("eslintconfig"),pmdconfig:(0,p.getInput)("pmdconfig"),tsConfig:(0,p.getInput)("tsconfig")};const o={reportMode:(0,p.getInput)("report-mode")||"check-runs",customPmdRules:(0,p.getInput)("custom-pmd-rules"),severityThreshold:parseInt((0,p.getInput)("severity-threshold"))||4,strictlyEnforcedRules:(0,p.getInput)("strictly-enforced-rules"),deleteResolvedComments:(0,p.getInput)("delete-resolved-comments")==="true",target:((t=u.context===null||u.context===void 0?void 0:u.context.payload)===null||t===void 0?void 0:t.pull_request)?"":(0,p.getInput)("target")};const l={inputs:o,context:u.context};return{inputs:o,pullRequest:(i=u.context===null||u.context===void 0?void 0:u.context.payload)===null||i===void 0?void 0:i.pull_request,scannerFlags:a,reporter:o.reportMode==="comments"?new h.CommentsReporter(l):new m.AnnotationsReporter(l)}}function validateContext(t,i){console.log("Validating that this action was invoked from an acceptable context...");if(!t&&!i){(0,p.setFailed)("This action is only applicable when invoked by a pull request, or with the target property supplied.")}}function performStaticCodeAnalysisOnFilesInDiff(t){var i;return o(this,void 0,void 0,(function*(){console.log("Performing static code analysis on all of the files in the difference...");try{const i=yield(0,d.scanFiles)(t);return typeof i==="string"?[]:i}catch(t){const a=t;console.error({message:a.message,status:a.status,stack:a.stack,output:(i=a.output)===null||i===void 0?void 0:i.toString()});(0,p.setFailed)("Something went wrong when scanning the files.")}return[]}))}i.performStaticCodeAnalysisOnFilesInDiff=performStaticCodeAnalysisOnFilesInDiff;function filterFindingsToDiffScope(t,i,a,o){console.log("Filtering the findings to just the lines which are part of the pull request...");let p=false;for(let u of t){const t=u.fileName.replace(process.cwd()+"/","");const l=i.get(t)||new Set;for(let i of u.violations){if(!isInChangedLines(i,l)&&!a.target){continue}const{violationType:d}=o.translateViolationToReport(t,i,u.engine);if(d==="Error"){p=true}}}return{hasHaltingError:p}}function isInChangedLines(t,i){if(!t.endLine){return i.has(parseInt(t.line))}for(let a=parseInt(t.line);a<=parseInt(t.endLine);a++){if(i.has(a)==false){return false}}return true}function getFilesToScan(t,i){if(i){return[i]}let a=[];for(let[i,o]of t){if(o.size>0){a.push(i)}}return a}function registerCustomPmdRules(t){var i;return o(this,void 0,void 0,(function*(){for(let a of JSON.parse(t)){try{yield(0,d.registerRule)(a.path,a.language)}catch(t){const a=t;console.error({message:a.message,status:a.status,stack:a.stack,output:(i=a.output)===null||i===void 0?void 0:i.toString()});(0,p.setFailed)("Something went wrong when registering custom rule.")}}}))}function main(){var t,i,a,u;return o(this,void 0,void 0,(function*(){console.log("Beginning sfdx-scan-pull-request run...");const{pullRequest:o,scannerFlags:d,reporter:h,inputs:m}=initialSetup();validateContext(o,m.target);const g=yield(0,l.getDiffInPullRequest)((t=o===null||o===void 0?void 0:o.base)===null||t===void 0?void 0:t.ref,(i=o===null||o===void 0?void 0:o.head)===null||i===void 0?void 0:i.ref,(u=(a=o===null||o===void 0?void 0:o.base)===null||a===void 0?void 0:a.repo)===null||u===void 0?void 0:u.clone_url);const E=getFilesToScan(g,m.target);if(E.length===0){console.log("There are no files to scan - exiting now.");return}d.target=E.join(",");if(m.customPmdRules){registerCustomPmdRules(m.customPmdRules)}const v=yield performStaticCodeAnalysisOnFilesInDiff(d);filterFindingsToDiffScope(v,g,m,h);try{yield h.write()}catch(t){console.error(t);(0,p.setFailed)("An error occurred while trying to write to GitHub")}}))}main()},9774:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.AnnotationsReporter=i.RIGHT=i.ERROR=void 0;const p=a(6979);const u=a(1231);const l=a(5438);const d=a(4287);i.ERROR="Error";i.RIGHT="RIGHT";class AnnotationsReporter extends d.BaseReporter{performGithubRequest(t){const i=new u.Octokit;const a=l.context.repo.owner;const o=l.context.repo.repo;const p=`POST /repos/${a}/${o}/check-runs`;return i.request(p,t)}write(){var t;return o(this,void 0,void 0,(function*(){console.log("Creating Check Runs using GitHub REST API...");let i;if(this.hasHaltingError){i="failure"}else{i=this.issues.length===0?"success":"neutral"}const a=((t=this.context.payload)===null||t===void 0?void 0:t.pull_request)?this.context.payload.pull_request.head.sha:this.context.sha;if(this.issues){const t={name:"sfdx-scanner",head_sha:a,status:"completed",conclusion:i,output:{title:"Results from sfdx-scanner",summary:`${this.issues.length} violations found`,annotations:this.issues}};this.checkHasHaltingError();try{yield this.performGithubRequest(t)}catch(t){console.error("Error when creating check run: "+JSON.stringify(t,null,2))}}}))}translateViolationToReport(t,a,o){const u=(0,p.getScannerViolationType)(this.inputs,a,o);if(u===i.ERROR){this.hasHaltingError=true}let l=a.endLine?parseInt(a.endLine):parseInt(a.line);let d=parseInt(a.line);if(l===d){l++}this.issues.push({path:t,start_side:i.RIGHT,annotation_level:"notice",start_line:d,end_line:l,message:`${a.category} ${a.message}\n${a.url}`,title:`${a.ruleName} (sev: ${a.severity})`});return{violationType:u}}}i.AnnotationsReporter=AnnotationsReporter},5418:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.CommentsReporter=void 0;const p=a(6979);const u=a(1231);const l=a(5438);const d=a(4287);const h="\x3c!--sfdx-scanner--\x3e";class CommentsReporter extends d.BaseReporter{performGithubRequest(t,i){var a;const o=new u.Octokit;const p=l.context.repo.owner;const d=l.context.repo.repo;const h=(a=l.context.payload.pull_request)===null||a===void 0?void 0:a.number;const m=`${t} /repos/${p}/${d}/${h?`pulls/${h}`:`commits/${l.context.sha}`}/comments`;return t==="POST"?o.request(m,i):o.paginate(m)}performGithubDeleteRequest(t){return o(this,void 0,void 0,(function*(){const i=new u.Octokit;const a=l.context.repo.owner;const o=l.context.repo.repo;const p=`DELETE /repos/${a}/${o}/pulls/comments/${t.id}`;yield i.request(p)}))}write(){return o(this,void 0,void 0,(function*(){console.log("Writing comments using GitHub REST API...");const t=yield this.getExistingComments();for(let i of this.issues){const a=t.find((t=>this.matchComment(i,t)));if(!a){try{yield this.performGithubRequest("POST",i)}catch(t){console.error("Error when writing comments: "+JSON.stringify(t,null,2))}}else{console.log(`Skipping existing comment ${a.url}`)}}this.checkHasHaltingError();if(this.inputs.deleteResolvedComments){yield this.deleteResolvedComments(this.issues,t)}}))}deleteResolvedComments(t,i){return o(this,void 0,void 0,(function*(){const a=i.filter((i=>!t.find((t=>this.matchComment(i,t)))));for(let t of a){if(t.id){console.log(`Removing the comment because the issue appears to be resolved: Id: ${t.id}, File: ${t===null||t===void 0?void 0:t.path}, Body: ${t.body}`);yield this.performGithubDeleteRequest(t)}}}))}getExistingComments(){return o(this,void 0,void 0,(function*(){console.log("Getting existing comments using GitHub REST API...");let t=Array();try{t=(yield this.performGithubRequest("GET")).filter((t=>t.body.includes(h)&&t.user.type==="Bot"))}catch(t){console.error("Error when fetching existing comments: "+JSON.stringify(t,null,2))}return t}))}matchComment(t,i){const getSanitizedBody=t=>t.split("|").filter((t=>t)).slice(0,-1).toString();return t.line===i.line&&getSanitizedBody(t.body)===getSanitizedBody(i.body)&&t.path===i.path}translateViolationToReport(t,i,a){const o=parseInt(i.line);let u=i.endLine?parseInt(i.endLine):parseInt(i.line);if(u===o){u++}const l=(0,p.getScannerViolationType)(this.inputs,i,a);const d=this.context.payload.pull_request?this.context.payload.pull_request.head.sha:this.context.sha;this.issues.push({commit_id:d,path:t,start_line:o,start_side:"RIGHT",side:"RIGHT",line:u,body:this.getFormattedBody(a,l,i,t,d)});return{violationType:l}}getFormattedBody(t,i,a,o,u){const l=`${h}\n| Attribute | Value |\n| --- | --- |`;return`${l}\n| Engine | ${t}|\n| Category | ${a.category} |\n| Rule | ${a.ruleName} |\n| Severity | ${a.severity} |\n| Type | ${i} |\n| Message| [${a.message.trim()}](${a.url}) |\n| File | [${o}](${(0,p.getGithubFilePath)(u,o)}) |`}}i.CommentsReporter=CommentsReporter},4287:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BaseReporter=void 0;const o=a(2186);class BaseReporter{constructor({context:t,inputs:i}){this.hasHaltingError=false;this.issues=[];this.context=t;this.inputs=i}write(){throw new Error("Method not implemented.")}translateViolationToReport(t,i,a){throw new Error("Method not implemented.")}checkHasHaltingError(){if(this.hasHaltingError){(0,o.setFailed)("One or more errors have been identified within the structure of the code that will need to be resolved before continuing.")}}}i.BaseReporter=BaseReporter},1471:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.registerRule=i.scanFiles=void 0;const p=a(2081);const cli=(t,i=[])=>o(void 0,void 0,void 0,(function*(){let a=null;try{const o=`npx sfdx ${t} ${i.join(" ")}`;console.log(o);a=JSON.parse((0,p.execSync)(o).toString()).result}catch(t){throw t}return a}));function scanFiles(t){return o(this,void 0,void 0,(function*(){t.target=`"`+t.target+`"`;const i=Object.keys(t).map((i=>t[i]?[`--${i}`,t[i]]:[])).reduce(((t,[i,a])=>i&&a?[...t,i,a]:t),[]);return cli("scanner:run",[...i,"--json"])}))}i.scanFiles=scanFiles;function registerRule(t,i){return o(this,void 0,void 0,(function*(){return cli("scanner:rule:add",[`--path="${t}"`,`--language="${i}"`,"--json"])}))}i.registerRule=registerRule},7351:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};Object.defineProperty(i,"__esModule",{value:true});i.issue=i.issueCommand=void 0;const l=u(a(2037));const d=a(5278);function issueCommand(t,i,a){const o=new Command(t,i,a);process.stdout.write(o.toString()+l.EOL)}i.issueCommand=issueCommand;function issue(t,i=""){issueCommand(t,{},i)}i.issue=issue;const h="::";class Command{constructor(t,i,a){if(!t){t="missing.command"}this.command=t;this.properties=i;this.message=a}toString(){let t=h+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let i=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const o=this.properties[a];if(o){if(i){i=false}else{t+=","}t+=`${a}=${escapeProperty(o)}`}}}}t+=`${h}${escapeData(this.message)}`;return t}}function escapeData(t){return d.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(t){return d.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};var l=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getIDToken=i.getState=i.saveState=i.group=i.endGroup=i.startGroup=i.info=i.notice=i.warning=i.error=i.debug=i.isDebug=i.setFailed=i.setCommandEcho=i.setOutput=i.getBooleanInput=i.getMultilineInput=i.getInput=i.addPath=i.setSecret=i.exportVariable=i.ExitCode=void 0;const d=a(7351);const h=a(717);const m=a(5278);const g=u(a(2037));const E=u(a(1017));const v=a(8041);var A;(function(t){t[t["Success"]=0]="Success";t[t["Failure"]=1]="Failure"})(A=i.ExitCode||(i.ExitCode={}));function exportVariable(t,i){const a=m.toCommandValue(i);process.env[t]=a;const o=process.env["GITHUB_ENV"]||"";if(o){return h.issueFileCommand("ENV",h.prepareKeyValueMessage(t,i))}d.issueCommand("set-env",{name:t},a)}i.exportVariable=exportVariable;function setSecret(t){d.issueCommand("add-mask",{},t)}i.setSecret=setSecret;function addPath(t){const i=process.env["GITHUB_PATH"]||"";if(i){h.issueFileCommand("PATH",t)}else{d.issueCommand("add-path",{},t)}process.env["PATH"]=`${t}${E.delimiter}${process.env["PATH"]}`}i.addPath=addPath;function getInput(t,i){const a=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(i&&i.required&&!a){throw new Error(`Input required and not supplied: ${t}`)}if(i&&i.trimWhitespace===false){return a}return a.trim()}i.getInput=getInput;function getMultilineInput(t,i){const a=getInput(t,i).split("\n").filter((t=>t!==""));if(i&&i.trimWhitespace===false){return a}return a.map((t=>t.trim()))}i.getMultilineInput=getMultilineInput;function getBooleanInput(t,i){const a=["true","True","TRUE"];const o=["false","False","FALSE"];const p=getInput(t,i);if(a.includes(p))return true;if(o.includes(p))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i.getBooleanInput=getBooleanInput;function setOutput(t,i){const a=process.env["GITHUB_OUTPUT"]||"";if(a){return h.issueFileCommand("OUTPUT",h.prepareKeyValueMessage(t,i))}process.stdout.write(g.EOL);d.issueCommand("set-output",{name:t},m.toCommandValue(i))}i.setOutput=setOutput;function setCommandEcho(t){d.issue("echo",t?"on":"off")}i.setCommandEcho=setCommandEcho;function setFailed(t){process.exitCode=A.Failure;error(t)}i.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}i.isDebug=isDebug;function debug(t){d.issueCommand("debug",{},t)}i.debug=debug;function error(t,i={}){d.issueCommand("error",m.toCommandProperties(i),t instanceof Error?t.toString():t)}i.error=error;function warning(t,i={}){d.issueCommand("warning",m.toCommandProperties(i),t instanceof Error?t.toString():t)}i.warning=warning;function notice(t,i={}){d.issueCommand("notice",m.toCommandProperties(i),t instanceof Error?t.toString():t)}i.notice=notice;function info(t){process.stdout.write(t+g.EOL)}i.info=info;function startGroup(t){d.issue("group",t)}i.startGroup=startGroup;function endGroup(){d.issue("endgroup")}i.endGroup=endGroup;function group(t,i){return l(this,void 0,void 0,(function*(){startGroup(t);let a;try{a=yield i()}finally{endGroup()}return a}))}i.group=group;function saveState(t,i){const a=process.env["GITHUB_STATE"]||"";if(a){return h.issueFileCommand("STATE",h.prepareKeyValueMessage(t,i))}d.issueCommand("save-state",{name:t},m.toCommandValue(i))}i.saveState=saveState;function getState(t){return process.env[`STATE_${t}`]||""}i.getState=getState;function getIDToken(t){return l(this,void 0,void 0,(function*(){return yield v.OidcClient.getIDToken(t)}))}i.getIDToken=getIDToken;var y=a(1327);Object.defineProperty(i,"summary",{enumerable:true,get:function(){return y.summary}});var D=a(1327);Object.defineProperty(i,"markdownSummary",{enumerable:true,get:function(){return D.markdownSummary}});var b=a(2981);Object.defineProperty(i,"toPosixPath",{enumerable:true,get:function(){return b.toPosixPath}});Object.defineProperty(i,"toWin32Path",{enumerable:true,get:function(){return b.toWin32Path}});Object.defineProperty(i,"toPlatformPath",{enumerable:true,get:function(){return b.toPlatformPath}})},717:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};Object.defineProperty(i,"__esModule",{value:true});i.prepareKeyValueMessage=i.issueFileCommand=void 0;const l=u(a(7147));const d=u(a(2037));const h=a(5840);const m=a(5278);function issueFileCommand(t,i){const a=process.env[`GITHUB_${t}`];if(!a){throw new Error(`Unable to find environment variable for file command ${t}`)}if(!l.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}l.appendFileSync(a,`${m.toCommandValue(i)}${d.EOL}`,{encoding:"utf8"})}i.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(t,i){const a=`ghadelimiter_${h.v4()}`;const o=m.toCommandValue(i);if(t.includes(a)){throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`)}if(o.includes(a)){throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`)}return`${t}<<${a}${d.EOL}${o}${d.EOL}${a}`}i.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.OidcClient=void 0;const p=a(6255);const u=a(5526);const l=a(2186);class OidcClient{static createHttpClient(t=true,i=10){const a={allowRetries:t,maxRetries:i};return new p.HttpClient("actions/oidc-client",[new u.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return t}static getIDTokenUrl(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return t}static getCall(t){var i;return o(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const o=yield a.getJson(t).catch((t=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${t.statusCode}\n \n Error Message: ${t.result.message}`)}));const p=(i=o.result)===null||i===void 0?void 0:i.value;if(!p){throw new Error("Response json body do not have ID Token field")}return p}))}static getIDToken(t){return o(this,void 0,void 0,(function*(){try{let i=OidcClient.getIDTokenUrl();if(t){const a=encodeURIComponent(t);i=`${i}&audience=${a}`}l.debug(`ID token url is ${i}`);const a=yield OidcClient.getCall(i);l.setSecret(a);return a}catch(t){throw new Error(`Error message: ${t.message}`)}}))}}i.OidcClient=OidcClient},2981:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};Object.defineProperty(i,"__esModule",{value:true});i.toPlatformPath=i.toWin32Path=i.toPosixPath=void 0;const l=u(a(1017));function toPosixPath(t){return t.replace(/[\\]/g,"/")}i.toPosixPath=toPosixPath;function toWin32Path(t){return t.replace(/[/]/g,"\\")}i.toWin32Path=toWin32Path;function toPlatformPath(t){return t.replace(/[/\\]/g,l.sep)}i.toPlatformPath=toPlatformPath},1327:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.summary=i.markdownSummary=i.SUMMARY_DOCS_URL=i.SUMMARY_ENV_VAR=void 0;const p=a(2037);const u=a(7147);const{access:l,appendFile:d,writeFile:h}=u.promises;i.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";i.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 o(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const t=process.env[i.SUMMARY_ENV_VAR];if(!t){throw new Error(`Unable to find environment variable for $${i.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield l(t,u.constants.R_OK|u.constants.W_OK)}catch(i){throw new Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}this._filePath=t;return this._filePath}))}wrap(t,i,a={}){const o=Object.entries(a).map((([t,i])=>` ${t}="${i}"`)).join("");if(!i){return`<${t}${o}>`}return`<${t}${o}>${i}`}write(t){return o(this,void 0,void 0,(function*(){const i=!!(t===null||t===void 0?void 0:t.overwrite);const a=yield this.filePath();const o=i?h:d;yield o(a,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return o(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(t,i=false){this._buffer+=t;return i?this.addEOL():this}addEOL(){return this.addRaw(p.EOL)}addCodeBlock(t,i){const a=Object.assign({},i&&{lang:i});const o=this.wrap("pre",this.wrap("code",t),a);return this.addRaw(o).addEOL()}addList(t,i=false){const a=i?"ol":"ul";const o=t.map((t=>this.wrap("li",t))).join("");const p=this.wrap(a,o);return this.addRaw(p).addEOL()}addTable(t){const i=t.map((t=>{const i=t.map((t=>{if(typeof t==="string"){return this.wrap("td",t)}const{header:i,data:a,colspan:o,rowspan:p}=t;const u=i?"th":"td";const l=Object.assign(Object.assign({},o&&{colspan:o}),p&&{rowspan:p});return this.wrap(u,a,l)})).join("");return this.wrap("tr",i)})).join("");const a=this.wrap("table",i);return this.addRaw(a).addEOL()}addDetails(t,i){const a=this.wrap("details",this.wrap("summary",t)+i);return this.addRaw(a).addEOL()}addImage(t,i,a){const{width:o,height:p}=a||{};const u=Object.assign(Object.assign({},o&&{width:o}),p&&{height:p});const l=this.wrap("img",null,Object.assign({src:t,alt:i},u));return this.addRaw(l).addEOL()}addHeading(t,i){const a=`h${i}`;const o=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1";const p=this.wrap(o,t);return this.addRaw(p).addEOL()}addSeparator(){const t=this.wrap("hr",null);return this.addRaw(t).addEOL()}addBreak(){const t=this.wrap("br",null);return this.addRaw(t).addEOL()}addQuote(t,i){const a=Object.assign({},i&&{cite:i});const o=this.wrap("blockquote",t,a);return this.addRaw(o).addEOL()}addLink(t,i){const a=this.wrap("a",t,{href:i});return this.addRaw(a).addEOL()}}const m=new Summary;i.markdownSummary=m;i.summary=m},5278:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.toCommandProperties=i.toCommandValue=void 0;function toCommandValue(t){if(t===null||t===undefined){return""}else if(typeof t==="string"||t instanceof String){return t}return JSON.stringify(t)}i.toCommandValue=toCommandValue;function toCommandProperties(t){if(!Object.keys(t).length){return{}}return{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}}i.toCommandProperties=toCommandProperties},4087:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Context=void 0;const o=a(7147);const p=a(2037);class Context{constructor(){var t,i,a;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(o.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(o.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const t=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${t} does not exist${p.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(t=process.env.GITHUB_API_URL)!==null&&t!==void 0?t:`https://api.github.com`;this.serverUrl=(i=process.env.GITHUB_SERVER_URL)!==null&&i!==void 0?i:`https://github.com`;this.graphqlUrl=(a=process.env.GITHUB_GRAPHQL_URL)!==null&&a!==void 0?a:`https://api.github.com/graphql`}get issue(){const t=this.payload;return Object.assign(Object.assign({},this.repo),{number:(t.issue||t.pull_request||t).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[t,i]=process.env.GITHUB_REPOSITORY.split("/");return{owner:t,repo:i}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}i.Context=Context},5438:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokit=i.context=void 0;const l=u(a(4087));const d=a(3030);i.context=new l.Context;function getOctokit(t,i,...a){const o=d.GitHub.plugin(...a);return new o(d.getOctokitOptions(t,i))}i.getOctokit=getOctokit},7914:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};Object.defineProperty(i,"__esModule",{value:true});i.getApiBaseUrl=i.getProxyAgent=i.getAuthString=void 0;const l=u(a(6255));function getAuthString(t,i){if(!t&&!i.auth){throw new Error("Parameter token or opts.auth is required")}else if(t&&i.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof i.auth==="string"?i.auth:`token ${t}`}i.getAuthString=getAuthString;function getProxyAgent(t){const i=new l.HttpClient;return i.getAgent(t)}i.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}i.getApiBaseUrl=getApiBaseUrl},3030:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokitOptions=i.GitHub=i.defaults=i.context=void 0;const l=u(a(4087));const d=u(a(7914));const h=a(8525);const m=a(4045);const g=a(8945);i.context=new l.Context;const E=d.getApiBaseUrl();i.defaults={baseUrl:E,request:{agent:d.getProxyAgent(E)}};i.GitHub=h.Octokit.plugin(m.restEndpointMethods,g.paginateRest).defaults(i.defaults);function getOctokitOptions(t,i){const a=Object.assign({},i||{});const o=d.getAuthString(t,a);if(o){a.auth=o}return a}i.getOctokitOptions=getOctokitOptions},673:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a=/^v1\./;const o=/^ghs_/;const p=/^ghu_/;async function auth(t){const i=t.split(/\./).length===3;const u=a.test(t)||o.test(t);const l=p.test(t);const d=i?"app":u?"installation":l?"user-to-server":"oauth";return{type:"token",token:t,tokenType:d}}function withAuthorizationPrefix(t){if(t.split(/\./).length===3){return`bearer ${t}`}return`token ${t}`}async function hook(t,i,a,o){const p=i.endpoint.merge(a,o);p.headers.authorization=withAuthorizationPrefix(t);return i(p)}const u=function createTokenAuth(t){if(!t){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof t!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}t=t.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,t),{hook:hook.bind(null,t)})};i.createTokenAuth=u},8525:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(5030);var p=a(3682);var u=a(9353);var l=a(6422);var d=a(673);function _objectWithoutPropertiesLoose(t,i){if(t==null)return{};var a={};var o=Object.keys(t);var p,u;for(u=0;u=0)continue;a[p]=t[p]}return a}function _objectWithoutProperties(t,i){if(t==null)return{};var a=_objectWithoutPropertiesLoose(t,i);var o,p;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(p=0;p=0)continue;if(!Object.prototype.propertyIsEnumerable.call(t,o))continue;a[o]=t[o]}}return a}const h="3.6.0";const m=["authStrategy"];class Octokit{constructor(t={}){const i=new p.Collection;const a={baseUrl:u.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},t.request,{hook:i.bind(null,"request")}),mediaType:{previews:[],format:""}};a.headers["user-agent"]=[t.userAgent,`octokit-core.js/${h} ${o.getUserAgent()}`].filter(Boolean).join(" ");if(t.baseUrl){a.baseUrl=t.baseUrl}if(t.previews){a.mediaType.previews=t.previews}if(t.timeZone){a.headers["time-zone"]=t.timeZone}this.request=u.request.defaults(a);this.graphql=l.withCustomRequest(this.request).defaults(a);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},t.log);this.hook=i;if(!t.authStrategy){if(!t.auth){this.auth=async()=>({type:"unauthenticated"})}else{const a=d.createTokenAuth(t.auth);i.wrap("request",a.hook);this.auth=a}}else{const{authStrategy:a}=t,o=_objectWithoutProperties(t,m);const p=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},t.auth));i.wrap("request",p.hook);this.auth=p}const g=this.constructor;g.plugins.forEach((i=>{Object.assign(this,i(this,t))}))}static defaults(t){const i=class extends(this){constructor(...i){const a=i[0]||{};if(typeof t==="function"){super(t(a));return}super(Object.assign({},t,a,a.userAgent&&t.userAgent?{userAgent:`${a.userAgent} ${t.userAgent}`}:null))}};return i}static plugin(...t){var i;const a=this.plugins;const o=(i=class extends(this){},i.plugins=a.concat(t.filter((t=>!a.includes(t)))),i);return o}}Octokit.VERSION=h;Octokit.plugins=[];i.Octokit=Octokit},8713:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(3287);var p=a(5030);function lowercaseKeys(t){if(!t){return{}}return Object.keys(t).reduce(((i,a)=>{i[a.toLowerCase()]=t[a];return i}),{})}function mergeDeep(t,i){const a=Object.assign({},t);Object.keys(i).forEach((p=>{if(o.isPlainObject(i[p])){if(!(p in t))Object.assign(a,{[p]:i[p]});else a[p]=mergeDeep(t[p],i[p])}else{Object.assign(a,{[p]:i[p]})}}));return a}function removeUndefinedProperties(t){for(const i in t){if(t[i]===undefined){delete t[i]}}return t}function merge(t,i,a){if(typeof i==="string"){let[t,o]=i.split(" ");a=Object.assign(o?{method:t,url:o}:{url:t},a)}else{a=Object.assign({},i)}a.headers=lowercaseKeys(a.headers);removeUndefinedProperties(a);removeUndefinedProperties(a.headers);const o=mergeDeep(t||{},a);if(t&&t.mediaType.previews.length){o.mediaType.previews=t.mediaType.previews.filter((t=>!o.mediaType.previews.includes(t))).concat(o.mediaType.previews)}o.mediaType.previews=o.mediaType.previews.map((t=>t.replace(/-preview/,"")));return o}function addQueryParameters(t,i){const a=/\?/.test(t)?"&":"?";const o=Object.keys(i);if(o.length===0){return t}return t+a+o.map((t=>{if(t==="q"){return"q="+i.q.split("+").map(encodeURIComponent).join("+")}return`${t}=${encodeURIComponent(i[t])}`})).join("&")}const u=/\{[^}]+\}/g;function removeNonChars(t){return t.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(t){const i=t.match(u);if(!i){return[]}return i.map(removeNonChars).reduce(((t,i)=>t.concat(i)),[])}function omit(t,i){return Object.keys(t).filter((t=>!i.includes(t))).reduce(((i,a)=>{i[a]=t[a];return i}),{})}function encodeReserved(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map((function(t){if(!/%[0-9A-Fa-f]/.test(t)){t=encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]")}return t})).join("")}function encodeUnreserved(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(t,i,a){i=t==="+"||t==="#"?encodeReserved(i):encodeUnreserved(i);if(a){return encodeUnreserved(a)+"="+i}else{return i}}function isDefined(t){return t!==undefined&&t!==null}function isKeyOperator(t){return t===";"||t==="&"||t==="?"}function getValues(t,i,a,o){var p=t[a],u=[];if(isDefined(p)&&p!==""){if(typeof p==="string"||typeof p==="number"||typeof p==="boolean"){p=p.toString();if(o&&o!=="*"){p=p.substring(0,parseInt(o,10))}u.push(encodeValue(i,p,isKeyOperator(i)?a:""))}else{if(o==="*"){if(Array.isArray(p)){p.filter(isDefined).forEach((function(t){u.push(encodeValue(i,t,isKeyOperator(i)?a:""))}))}else{Object.keys(p).forEach((function(t){if(isDefined(p[t])){u.push(encodeValue(i,p[t],t))}}))}}else{const t=[];if(Array.isArray(p)){p.filter(isDefined).forEach((function(a){t.push(encodeValue(i,a))}))}else{Object.keys(p).forEach((function(a){if(isDefined(p[a])){t.push(encodeUnreserved(a));t.push(encodeValue(i,p[a].toString()))}}))}if(isKeyOperator(i)){u.push(encodeUnreserved(a)+"="+t.join(","))}else if(t.length!==0){u.push(t.join(","))}}}}else{if(i===";"){if(isDefined(p)){u.push(encodeUnreserved(a))}}else if(p===""&&(i==="&"||i==="?")){u.push(encodeUnreserved(a)+"=")}else if(p===""){u.push("")}}return u}function parseUrl(t){return{expand:expand.bind(null,t)}}function expand(t,i){var a=["+","#",".","/",";","?","&"];return t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(t,o,p){if(o){let t="";const p=[];if(a.indexOf(o.charAt(0))!==-1){t=o.charAt(0);o=o.substr(1)}o.split(/,/g).forEach((function(a){var o=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);p.push(getValues(i,t,o[1],o[2]||o[3]))}));if(t&&t!=="+"){var u=",";if(t==="?"){u="&"}else if(t!=="#"){u=t}return(p.length!==0?t:"")+p.join(u)}else{return p.join(",")}}else{return encodeReserved(p)}}))}function parse(t){let i=t.method.toUpperCase();let a=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let o=Object.assign({},t.headers);let p;let u=omit(t,["method","baseUrl","url","headers","request","mediaType"]);const l=extractUrlVariableNames(a);a=parseUrl(a).expand(u);if(!/^http/.test(a)){a=t.baseUrl+a}const d=Object.keys(t).filter((t=>l.includes(t))).concat("baseUrl");const h=omit(u,d);const m=/application\/octet-stream/i.test(o.accept);if(!m){if(t.mediaType.format){o.accept=o.accept.split(/,/).map((i=>i.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${t.mediaType.format}`))).join(",")}if(t.mediaType.previews.length){const i=o.accept.match(/[\w-]+(?=-preview)/g)||[];o.accept=i.concat(t.mediaType.previews).map((i=>{const a=t.mediaType.format?`.${t.mediaType.format}`:"+json";return`application/vnd.github.${i}-preview${a}`})).join(",")}}if(["GET","HEAD"].includes(i)){a=addQueryParameters(a,h)}else{if("data"in h){p=h.data}else{if(Object.keys(h).length){p=h}else{o["content-length"]=0}}}if(!o["content-type"]&&typeof p!=="undefined"){o["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(i)&&typeof p==="undefined"){p=""}return Object.assign({method:i,url:a,headers:o},typeof p!=="undefined"?{body:p}:null,t.request?{request:t.request}:null)}function endpointWithDefaults(t,i,a){return parse(merge(t,i,a))}function withDefaults(t,i){const a=merge(t,i);const o=endpointWithDefaults.bind(null,a);return Object.assign(o,{DEFAULTS:a,defaults:withDefaults.bind(null,a),merge:merge.bind(null,a),parse:parse})}const l="6.0.12";const d=`octokit-endpoint.js/${l} ${p.getUserAgent()}`;const h={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":d},mediaType:{format:"",previews:[]}};const m=withDefaults(null,h);i.endpoint=m},6422:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(9353);var p=a(5030);const u="4.8.0";function _buildMessageForResponseErrors(t){return`Request failed due to following response errors:\n`+t.errors.map((t=>` - ${t.message}`)).join("\n")}class GraphqlResponseError extends Error{constructor(t,i,a){super(_buildMessageForResponseErrors(a));this.request=t;this.headers=i;this.response=a;this.name="GraphqlResponseError";this.errors=a.errors;this.data=a.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const l=["method","baseUrl","url","headers","request","query","mediaType"];const d=["query","method","url"];const h=/\/api\/v3\/?$/;function graphql(t,i,a){if(a){if(typeof i==="string"&&"query"in a){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const t in a){if(!d.includes(t))continue;return Promise.reject(new Error(`[@octokit/graphql] "${t}" cannot be used as variable name`))}}const o=typeof i==="string"?Object.assign({query:i},a):i;const p=Object.keys(o).reduce(((t,i)=>{if(l.includes(i)){t[i]=o[i];return t}if(!t.variables){t.variables={}}t.variables[i]=o[i];return t}),{});const u=o.baseUrl||t.endpoint.DEFAULTS.baseUrl;if(h.test(u)){p.url=u.replace(h,"/api/graphql")}return t(p).then((t=>{if(t.data.errors){const i={};for(const a of Object.keys(t.headers)){i[a]=t.headers[a]}throw new GraphqlResponseError(p,i,t.data)}return t.data.data}))}function withDefaults(t,i){const a=t.defaults(i);const newApi=(t,i)=>graphql(a,t,i);return Object.assign(newApi,{defaults:withDefaults.bind(null,a),endpoint:o.request.endpoint})}const m=withDefaults(o.request,{headers:{"user-agent":`octokit-graphql.js/${u} ${p.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(t){return withDefaults(t,{method:"POST",url:"/graphql"})}i.GraphqlResponseError=GraphqlResponseError;i.graphql=m;i.withCustomRequest=withCustomRequest},8945:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a="2.21.3";function ownKeys(t,i){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i&&(o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),a.push.apply(a,o)}return a}function _objectSpread2(t){for(var i=1;i({async next(){if(!d)return{done:true};try{const t=await p({method:u,url:d,headers:l});const i=normalizePaginatedListResponse(t);d=((i.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:i}}catch(t){if(t.status!==409)throw t;d="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(t,i,a,o){if(typeof a==="function"){o=a;a=undefined}return gather(t,[],iterator(t,i,a)[Symbol.asyncIterator](),o)}function gather(t,i,a,o){return a.next().then((p=>{if(p.done){return i}let u=false;function done(){u=true}i=i.concat(o?o(p.value,done):p.value.data);if(u){return i}return gather(t,i,a,o)}))}const o=Object.assign(paginate,{iterator:iterator});const p=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(t){if(typeof t==="string"){return p.includes(t)}else{return false}}function paginateRest(t){return{paginate:Object.assign(paginate.bind(null,t),{iterator:iterator.bind(null,t)})}}paginateRest.VERSION=a;i.composePaginateRest=o;i.isPaginatingEndpoint=isPaginatingEndpoint;i.paginateRest=paginateRest;i.paginatingEndpoints=p},4045:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function ownKeys(t,i){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);if(i){o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))}a.push.apply(a,o)}return a}function _objectSpread2(t){for(var i=1;i{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var o=a(8932);var p=_interopDefault(a(1223));const u=p((t=>console.warn(t)));const l=p((t=>console.warn(t)));class RequestError extends Error{constructor(t,i,a){super(t);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=i;let p;if("headers"in a&&typeof a.headers!=="undefined"){p=a.headers}if("response"in a){this.response=a.response;p=a.response.headers}const d=Object.assign({},a.request);if(a.request.headers.authorization){d.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}d.url=d.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=d;Object.defineProperty(this,"code",{get(){u(new o.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return i}});Object.defineProperty(this,"headers",{get(){l(new o.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return p||{}}})}}i.RequestError=RequestError},9353:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var o=a(8713);var p=a(5030);var u=a(3287);var l=_interopDefault(a(467));var d=a(7471);const h="5.6.3";function getBufferResponse(t){return t.arrayBuffer()}function fetchWrapper(t){const i=t.request&&t.request.log?t.request.log:console;if(u.isPlainObject(t.body)||Array.isArray(t.body)){t.body=JSON.stringify(t.body)}let a={};let o;let p;const h=t.request&&t.request.fetch||l;return h(t.url,Object.assign({method:t.method,body:t.body,headers:t.headers,redirect:t.redirect},t.request)).then((async u=>{p=u.url;o=u.status;for(const t of u.headers){a[t[0]]=t[1]}if("deprecation"in a){const o=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const p=o&&o.pop();i.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${p?`. See ${p}`:""}`)}if(o===204||o===205){return}if(t.method==="HEAD"){if(o<400){return}throw new d.RequestError(u.statusText,o,{response:{url:p,status:o,headers:a,data:undefined},request:t})}if(o===304){throw new d.RequestError("Not modified",o,{response:{url:p,status:o,headers:a,data:await getResponseData(u)},request:t})}if(o>=400){const i=await getResponseData(u);const l=new d.RequestError(toErrorMessage(i),o,{response:{url:p,status:o,headers:a,data:i},request:t});throw l}return getResponseData(u)})).then((t=>({status:o,url:p,headers:a,data:t}))).catch((i=>{if(i instanceof d.RequestError)throw i;throw new d.RequestError(i.message,500,{request:t})}))}async function getResponseData(t){const i=t.headers.get("content-type");if(/application\/json/.test(i)){return t.json()}if(!i||/^text\/|charset=utf-8$/.test(i)){return t.text()}return getBufferResponse(t)}function toErrorMessage(t){if(typeof t==="string")return t;if("message"in t){if(Array.isArray(t.errors)){return`${t.message}: ${t.errors.map(JSON.stringify).join(", ")}`}return t.message}return`Unknown error: ${JSON.stringify(t)}`}function withDefaults(t,i){const a=t.defaults(i);const newApi=function(t,i){const o=a.merge(t,i);if(!o.request||!o.request.hook){return fetchWrapper(a.parse(o))}const request=(t,i)=>fetchWrapper(a.parse(a.merge(t,i)));Object.assign(request,{endpoint:a,defaults:withDefaults.bind(null,a)});return o.request.hook(request,o)};return Object.assign(newApi,{endpoint:a,defaults:withDefaults.bind(null,a)})}const m=withDefaults(o.endpoint,{headers:{"user-agent":`octokit-request.js/${h} ${p.getUserAgent()}`}});i.request=m},5526:function(t,i){"use strict";var a=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.PersonalAccessTokenCredentialHandler=i.BearerCredentialHandler=i.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(t,i){this.username=t;this.password=i}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(t){this.token=t}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(t){this.token=t}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};var l=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.HttpClient=i.isHttps=i.HttpClientResponse=i.HttpClientError=i.getProxyUrl=i.MediaTypes=i.Headers=i.HttpCodes=void 0;const d=u(a(3685));const h=u(a(5687));const m=u(a(9835));const g=u(a(4294));var E;(function(t){t[t["OK"]=200]="OK";t[t["MultipleChoices"]=300]="MultipleChoices";t[t["MovedPermanently"]=301]="MovedPermanently";t[t["ResourceMoved"]=302]="ResourceMoved";t[t["SeeOther"]=303]="SeeOther";t[t["NotModified"]=304]="NotModified";t[t["UseProxy"]=305]="UseProxy";t[t["SwitchProxy"]=306]="SwitchProxy";t[t["TemporaryRedirect"]=307]="TemporaryRedirect";t[t["PermanentRedirect"]=308]="PermanentRedirect";t[t["BadRequest"]=400]="BadRequest";t[t["Unauthorized"]=401]="Unauthorized";t[t["PaymentRequired"]=402]="PaymentRequired";t[t["Forbidden"]=403]="Forbidden";t[t["NotFound"]=404]="NotFound";t[t["MethodNotAllowed"]=405]="MethodNotAllowed";t[t["NotAcceptable"]=406]="NotAcceptable";t[t["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";t[t["RequestTimeout"]=408]="RequestTimeout";t[t["Conflict"]=409]="Conflict";t[t["Gone"]=410]="Gone";t[t["TooManyRequests"]=429]="TooManyRequests";t[t["InternalServerError"]=500]="InternalServerError";t[t["NotImplemented"]=501]="NotImplemented";t[t["BadGateway"]=502]="BadGateway";t[t["ServiceUnavailable"]=503]="ServiceUnavailable";t[t["GatewayTimeout"]=504]="GatewayTimeout"})(E=i.HttpCodes||(i.HttpCodes={}));var v;(function(t){t["Accept"]="accept";t["ContentType"]="content-type"})(v=i.Headers||(i.Headers={}));var A;(function(t){t["ApplicationJson"]="application/json"})(A=i.MediaTypes||(i.MediaTypes={}));function getProxyUrl(t){const i=m.getProxyUrl(new URL(t));return i?i.href:""}i.getProxyUrl=getProxyUrl;const y=[E.MovedPermanently,E.ResourceMoved,E.SeeOther,E.TemporaryRedirect,E.PermanentRedirect];const D=[E.BadGateway,E.ServiceUnavailable,E.GatewayTimeout];const b=["OPTIONS","GET","DELETE","HEAD"];const C=10;const w=5;class HttpClientError extends Error{constructor(t,i){super(t);this.name="HttpClientError";this.statusCode=i;Object.setPrototypeOf(this,HttpClientError.prototype)}}i.HttpClientError=HttpClientError;class HttpClientResponse{constructor(t){this.message=t}readBody(){return l(this,void 0,void 0,(function*(){return new Promise((t=>l(this,void 0,void 0,(function*(){let i=Buffer.alloc(0);this.message.on("data",(t=>{i=Buffer.concat([i,t])}));this.message.on("end",(()=>{t(i.toString())}))}))))}))}}i.HttpClientResponse=HttpClientResponse;function isHttps(t){const i=new URL(t);return i.protocol==="https:"}i.isHttps=isHttps;class HttpClient{constructor(t,i,a){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=t;this.handlers=i||[];this.requestOptions=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){this._maxRetries=a.maxRetries}}}options(t,i){return l(this,void 0,void 0,(function*(){return this.request("OPTIONS",t,null,i||{})}))}get(t,i){return l(this,void 0,void 0,(function*(){return this.request("GET",t,null,i||{})}))}del(t,i){return l(this,void 0,void 0,(function*(){return this.request("DELETE",t,null,i||{})}))}post(t,i,a){return l(this,void 0,void 0,(function*(){return this.request("POST",t,i,a||{})}))}patch(t,i,a){return l(this,void 0,void 0,(function*(){return this.request("PATCH",t,i,a||{})}))}put(t,i,a){return l(this,void 0,void 0,(function*(){return this.request("PUT",t,i,a||{})}))}head(t,i){return l(this,void 0,void 0,(function*(){return this.request("HEAD",t,null,i||{})}))}sendStream(t,i,a,o){return l(this,void 0,void 0,(function*(){return this.request(t,i,a,o)}))}getJson(t,i={}){return l(this,void 0,void 0,(function*(){i[v.Accept]=this._getExistingOrDefaultHeader(i,v.Accept,A.ApplicationJson);const a=yield this.get(t,i);return this._processResponse(a,this.requestOptions)}))}postJson(t,i,a={}){return l(this,void 0,void 0,(function*(){const o=JSON.stringify(i,null,2);a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,A.ApplicationJson);a[v.ContentType]=this._getExistingOrDefaultHeader(a,v.ContentType,A.ApplicationJson);const p=yield this.post(t,o,a);return this._processResponse(p,this.requestOptions)}))}putJson(t,i,a={}){return l(this,void 0,void 0,(function*(){const o=JSON.stringify(i,null,2);a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,A.ApplicationJson);a[v.ContentType]=this._getExistingOrDefaultHeader(a,v.ContentType,A.ApplicationJson);const p=yield this.put(t,o,a);return this._processResponse(p,this.requestOptions)}))}patchJson(t,i,a={}){return l(this,void 0,void 0,(function*(){const o=JSON.stringify(i,null,2);a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,A.ApplicationJson);a[v.ContentType]=this._getExistingOrDefaultHeader(a,v.ContentType,A.ApplicationJson);const p=yield this.patch(t,o,a);return this._processResponse(p,this.requestOptions)}))}request(t,i,a,o){return l(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const p=new URL(i);let u=this._prepareRequest(t,p,o);const l=this._allowRetries&&b.includes(t)?this._maxRetries+1:1;let d=0;let h;do{h=yield this.requestRaw(u,a);if(h&&h.message&&h.message.statusCode===E.Unauthorized){let t;for(const i of this.handlers){if(i.canHandleAuthentication(h)){t=i;break}}if(t){return t.handleAuthentication(this,u,a)}else{return h}}let i=this._maxRedirects;while(h.message.statusCode&&y.includes(h.message.statusCode)&&this._allowRedirects&&i>0){const l=h.message.headers["location"];if(!l){break}const d=new URL(l);if(p.protocol==="https:"&&p.protocol!==d.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 h.readBody();if(d.hostname!==p.hostname){for(const t in o){if(t.toLowerCase()==="authorization"){delete o[t]}}}u=this._prepareRequest(t,d,o);h=yield this.requestRaw(u,a);i--}if(!h.message.statusCode||!D.includes(h.message.statusCode)){return h}d+=1;if(d{function callbackForResult(t,i){if(t){o(t)}else if(!i){o(new Error("Unknown error"))}else{a(i)}}this.requestRawWithCallback(t,i,callbackForResult)}))}))}requestRawWithCallback(t,i,a){if(typeof i==="string"){if(!t.options.headers){t.options.headers={}}t.options.headers["Content-Length"]=Buffer.byteLength(i,"utf8")}let o=false;function handleResult(t,i){if(!o){o=true;a(t,i)}}const p=t.httpModule.request(t.options,(t=>{const i=new HttpClientResponse(t);handleResult(undefined,i)}));let u;p.on("socket",(t=>{u=t}));p.setTimeout(this._socketTimeout||3*6e4,(()=>{if(u){u.end()}handleResult(new Error(`Request timeout: ${t.options.path}`))}));p.on("error",(function(t){handleResult(t)}));if(i&&typeof i==="string"){p.write(i,"utf8")}if(i&&typeof i!=="string"){i.on("close",(function(){p.end()}));i.pipe(p)}else{p.end()}}getAgent(t){const i=new URL(t);return this._getAgent(i)}_prepareRequest(t,i,a){const o={};o.parsedUrl=i;const p=o.parsedUrl.protocol==="https:";o.httpModule=p?h:d;const u=p?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):u;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=t;o.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){for(const t of this.handlers){t.prepareRequest(o.options)}}return o}_mergeHeaders(t){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(t||{}))}return lowercaseKeys(t||{})}_getExistingOrDefaultHeader(t,i,a){let o;if(this.requestOptions&&this.requestOptions.headers){o=lowercaseKeys(this.requestOptions.headers)[i]}return t[i]||o||a}_getAgent(t){let i;const a=m.getProxyUrl(t);const o=a&&a.hostname;if(this._keepAlive&&o){i=this._proxyAgent}if(this._keepAlive&&!o){i=this._agent}if(i){return i}const p=t.protocol==="https:";let u=100;if(this.requestOptions){u=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(a&&a.hostname){const t={maxSockets:u,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let o;const l=a.protocol==="https:";if(p){o=l?g.httpsOverHttps:g.httpsOverHttp}else{o=l?g.httpOverHttps:g.httpOverHttp}i=o(t);this._proxyAgent=i}if(this._keepAlive&&!i){const t={keepAlive:this._keepAlive,maxSockets:u};i=p?new h.Agent(t):new d.Agent(t);this._agent=i}if(!i){i=p?h.globalAgent:d.globalAgent}if(p&&this._ignoreSslError){i.options=Object.assign(i.options||{},{rejectUnauthorized:false})}return i}_performExponentialBackoff(t){return l(this,void 0,void 0,(function*(){t=Math.min(C,t);const i=w*Math.pow(2,t);return new Promise((t=>setTimeout((()=>t()),i)))}))}_processResponse(t,i){return l(this,void 0,void 0,(function*(){return new Promise(((a,o)=>l(this,void 0,void 0,(function*(){const p=t.message.statusCode||0;const u={statusCode:p,result:null,headers:{}};if(p===E.NotFound){a(u)}function dateTimeDeserializer(t,i){if(typeof i==="string"){const t=new Date(i);if(!isNaN(t.valueOf())){return t}}return i}let l;let d;try{d=yield t.readBody();if(d&&d.length>0){if(i&&i.deserializeDates){l=JSON.parse(d,dateTimeDeserializer)}else{l=JSON.parse(d)}u.result=l}u.headers=t.message.headers}catch(t){}if(p>299){let t;if(l&&l.message){t=l.message}else if(d&&d.length>0){t=d}else{t=`Failed request: (${p})`}const i=new HttpClientError(t,p);i.result=u.result;o(i)}else{a(u)}}))))}))}}i.HttpClient=HttpClient;const lowercaseKeys=t=>Object.keys(t).reduce(((i,a)=>(i[a.toLowerCase()]=t[a],i)),{})},9835:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.checkBypass=i.getProxyUrl=void 0;function getProxyUrl(t){const i=t.protocol==="https:";if(checkBypass(t)){return undefined}const a=(()=>{if(i){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(a){return new URL(a)}else{return undefined}}i.getProxyUrl=getProxyUrl;function checkBypass(t){if(!t.hostname){return false}const i=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!i){return false}let a;if(t.port){a=Number(t.port)}else if(t.protocol==="http:"){a=80}else if(t.protocol==="https:"){a=443}const o=[t.hostname.toUpperCase()];if(typeof a==="number"){o.push(`${o[0]}:${a}`)}for(const t of i.split(",").map((t=>t.trim().toUpperCase())).filter((t=>t))){if(o.some((i=>i===t))){return true}}return false}i.checkBypass=checkBypass},1231:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var o=a(6762);var p=a(20);var u=a(4193);var l=a(3044);var d=_interopDefault(a(7367));const h="4.0.4";const m={authStrategy:p.createActionAuth,baseUrl:getApiBaseUrl(),userAgent:`octokit-action.js/${h}`};const g=o.Octokit.plugin(u.paginateRest,l.legacyRestEndpointMethods).defaults((function buildDefaults(t){return{...m,...t,request:{agent:new d,...t.request}}}));function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}i.Octokit=g},20:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(334);const p=function createActionAuth(){if(!process.env.GITHUB_ACTION){throw new Error("[@octokit/auth-action] `GITHUB_ACTION` environment variable is not set. @octokit/auth-action is meant to be used in GitHub Actions only.")}const t=[process.env.GITHUB_TOKEN,process.env.INPUT_GITHUB_TOKEN,process.env.INPUT_TOKEN].filter(Boolean);if(t.length===0){throw new Error("[@octokit/auth-action] `GITHUB_TOKEN` variable is not set. It must be set on either `env:` or `with:`. See https://github.com/octokit/auth-action.js#createactionauth")}if(t.length>1){throw new Error("[@octokit/auth-action] The token variable is specified more than once. Use either `with.token`, `with.GITHUB_TOKEN`, or `env.GITHUB_TOKEN`. See https://github.com/octokit/auth-action.js#createactionauth")}const i=t.pop();return o.createTokenAuth(i)};i.createActionAuth=p},334:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a=/^v1\./;const o=/^ghs_/;const p=/^ghu_/;async function auth(t){const i=t.split(/\./).length===3;const u=a.test(t)||o.test(t);const l=p.test(t);const d=i?"app":u?"installation":l?"user-to-server":"oauth";return{type:"token",token:t,tokenType:d}}function withAuthorizationPrefix(t){if(t.split(/\./).length===3){return`bearer ${t}`}return`token ${t}`}async function hook(t,i,a,o){const p=i.endpoint.merge(a,o);p.headers.authorization=withAuthorizationPrefix(t);return i(p)}const u=function createTokenAuth(t){if(!t){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof t!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}t=t.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,t),{hook:hook.bind(null,t)})};i.createTokenAuth=u},6762:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(5030);var p=a(3682);var u=a(6234);var l=a(8467);var d=a(334);const h="4.0.4";class Octokit{constructor(t={}){const i=new p.Collection;const a={baseUrl:u.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},t.request,{hook:i.bind(null,"request")}),mediaType:{previews:[],format:""}};a.headers["user-agent"]=[t.userAgent,`octokit-core.js/${h} ${o.getUserAgent()}`].filter(Boolean).join(" ");if(t.baseUrl){a.baseUrl=t.baseUrl}if(t.previews){a.mediaType.previews=t.previews}if(t.timeZone){a.headers["time-zone"]=t.timeZone}this.request=u.request.defaults(a);this.graphql=l.withCustomRequest(this.request).defaults(a);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},t.log);this.hook=i;if(!t.authStrategy){if(!t.auth){this.auth=async()=>({type:"unauthenticated"})}else{const a=d.createTokenAuth(t.auth);i.wrap("request",a.hook);this.auth=a}}else{const{authStrategy:a,...o}=t;const p=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},t.auth));i.wrap("request",p.hook);this.auth=p}const m=this.constructor;m.plugins.forEach((i=>{Object.assign(this,i(this,t))}))}static defaults(t){const i=class extends(this){constructor(...i){const a=i[0]||{};if(typeof t==="function"){super(t(a));return}super(Object.assign({},t,a,a.userAgent&&t.userAgent?{userAgent:`${a.userAgent} ${t.userAgent}`}:null))}};return i}static plugin(...t){var i;const a=this.plugins;const o=(i=class extends(this){},i.plugins=a.concat(t.filter((t=>!a.includes(t)))),i);return o}}Octokit.VERSION=h;Octokit.plugins=[];i.Octokit=Octokit},9440:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(3287);var p=a(5030);function lowercaseKeys(t){if(!t){return{}}return Object.keys(t).reduce(((i,a)=>{i[a.toLowerCase()]=t[a];return i}),{})}function mergeDeep(t,i){const a=Object.assign({},t);Object.keys(i).forEach((p=>{if(o.isPlainObject(i[p])){if(!(p in t))Object.assign(a,{[p]:i[p]});else a[p]=mergeDeep(t[p],i[p])}else{Object.assign(a,{[p]:i[p]})}}));return a}function removeUndefinedProperties(t){for(const i in t){if(t[i]===undefined){delete t[i]}}return t}function merge(t,i,a){if(typeof i==="string"){let[t,o]=i.split(" ");a=Object.assign(o?{method:t,url:o}:{url:t},a)}else{a=Object.assign({},i)}a.headers=lowercaseKeys(a.headers);removeUndefinedProperties(a);removeUndefinedProperties(a.headers);const o=mergeDeep(t||{},a);if(t&&t.mediaType.previews.length){o.mediaType.previews=t.mediaType.previews.filter((t=>!o.mediaType.previews.includes(t))).concat(o.mediaType.previews)}o.mediaType.previews=o.mediaType.previews.map((t=>t.replace(/-preview/,"")));return o}function addQueryParameters(t,i){const a=/\?/.test(t)?"&":"?";const o=Object.keys(i);if(o.length===0){return t}return t+a+o.map((t=>{if(t==="q"){return"q="+i.q.split("+").map(encodeURIComponent).join("+")}return`${t}=${encodeURIComponent(i[t])}`})).join("&")}const u=/\{[^}]+\}/g;function removeNonChars(t){return t.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(t){const i=t.match(u);if(!i){return[]}return i.map(removeNonChars).reduce(((t,i)=>t.concat(i)),[])}function omit(t,i){return Object.keys(t).filter((t=>!i.includes(t))).reduce(((i,a)=>{i[a]=t[a];return i}),{})}function encodeReserved(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map((function(t){if(!/%[0-9A-Fa-f]/.test(t)){t=encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]")}return t})).join("")}function encodeUnreserved(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(t,i,a){i=t==="+"||t==="#"?encodeReserved(i):encodeUnreserved(i);if(a){return encodeUnreserved(a)+"="+i}else{return i}}function isDefined(t){return t!==undefined&&t!==null}function isKeyOperator(t){return t===";"||t==="&"||t==="?"}function getValues(t,i,a,o){var p=t[a],u=[];if(isDefined(p)&&p!==""){if(typeof p==="string"||typeof p==="number"||typeof p==="boolean"){p=p.toString();if(o&&o!=="*"){p=p.substring(0,parseInt(o,10))}u.push(encodeValue(i,p,isKeyOperator(i)?a:""))}else{if(o==="*"){if(Array.isArray(p)){p.filter(isDefined).forEach((function(t){u.push(encodeValue(i,t,isKeyOperator(i)?a:""))}))}else{Object.keys(p).forEach((function(t){if(isDefined(p[t])){u.push(encodeValue(i,p[t],t))}}))}}else{const t=[];if(Array.isArray(p)){p.filter(isDefined).forEach((function(a){t.push(encodeValue(i,a))}))}else{Object.keys(p).forEach((function(a){if(isDefined(p[a])){t.push(encodeUnreserved(a));t.push(encodeValue(i,p[a].toString()))}}))}if(isKeyOperator(i)){u.push(encodeUnreserved(a)+"="+t.join(","))}else if(t.length!==0){u.push(t.join(","))}}}}else{if(i===";"){if(isDefined(p)){u.push(encodeUnreserved(a))}}else if(p===""&&(i==="&"||i==="?")){u.push(encodeUnreserved(a)+"=")}else if(p===""){u.push("")}}return u}function parseUrl(t){return{expand:expand.bind(null,t)}}function expand(t,i){var a=["+","#",".","/",";","?","&"];return t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(t,o,p){if(o){let t="";const p=[];if(a.indexOf(o.charAt(0))!==-1){t=o.charAt(0);o=o.substr(1)}o.split(/,/g).forEach((function(a){var o=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);p.push(getValues(i,t,o[1],o[2]||o[3]))}));if(t&&t!=="+"){var u=",";if(t==="?"){u="&"}else if(t!=="#"){u=t}return(p.length!==0?t:"")+p.join(u)}else{return p.join(",")}}else{return encodeReserved(p)}}))}function parse(t){let i=t.method.toUpperCase();let a=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let o=Object.assign({},t.headers);let p;let u=omit(t,["method","baseUrl","url","headers","request","mediaType"]);const l=extractUrlVariableNames(a);a=parseUrl(a).expand(u);if(!/^http/.test(a)){a=t.baseUrl+a}const d=Object.keys(t).filter((t=>l.includes(t))).concat("baseUrl");const h=omit(u,d);const m=/application\/octet-stream/i.test(o.accept);if(!m){if(t.mediaType.format){o.accept=o.accept.split(/,/).map((i=>i.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${t.mediaType.format}`))).join(",")}if(t.mediaType.previews.length){const i=o.accept.match(/[\w-]+(?=-preview)/g)||[];o.accept=i.concat(t.mediaType.previews).map((i=>{const a=t.mediaType.format?`.${t.mediaType.format}`:"+json";return`application/vnd.github.${i}-preview${a}`})).join(",")}}if(["GET","HEAD"].includes(i)){a=addQueryParameters(a,h)}else{if("data"in h){p=h.data}else{if(Object.keys(h).length){p=h}else{o["content-length"]=0}}}if(!o["content-type"]&&typeof p!=="undefined"){o["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(i)&&typeof p==="undefined"){p=""}return Object.assign({method:i,url:a,headers:o},typeof p!=="undefined"?{body:p}:null,t.request?{request:t.request}:null)}function endpointWithDefaults(t,i,a){return parse(merge(t,i,a))}function withDefaults(t,i){const a=merge(t,i);const o=endpointWithDefaults.bind(null,a);return Object.assign(o,{DEFAULTS:a,defaults:withDefaults.bind(null,a),merge:merge.bind(null,a),parse:parse})}const l="7.0.0";const d=`octokit-endpoint.js/${l} ${p.getUserAgent()}`;const h={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":d},mediaType:{format:"",previews:[]}};const m=withDefaults(null,h);i.endpoint=m},8467:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(6234);var p=a(5030);const u="5.0.0";function _buildMessageForResponseErrors(t){return`Request failed due to following response errors:\n`+t.errors.map((t=>` - ${t.message}`)).join("\n")}class GraphqlResponseError extends Error{constructor(t,i,a){super(_buildMessageForResponseErrors(a));this.request=t;this.headers=i;this.response=a;this.name="GraphqlResponseError";this.errors=a.errors;this.data=a.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const l=["method","baseUrl","url","headers","request","query","mediaType"];const d=["query","method","url"];const h=/\/api\/v3\/?$/;function graphql(t,i,a){if(a){if(typeof i==="string"&&"query"in a){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const t in a){if(!d.includes(t))continue;return Promise.reject(new Error(`[@octokit/graphql] "${t}" cannot be used as variable name`))}}const o=typeof i==="string"?Object.assign({query:i},a):i;const p=Object.keys(o).reduce(((t,i)=>{if(l.includes(i)){t[i]=o[i];return t}if(!t.variables){t.variables={}}t.variables[i]=o[i];return t}),{});const u=o.baseUrl||t.endpoint.DEFAULTS.baseUrl;if(h.test(u)){p.url=u.replace(h,"/api/graphql")}return t(p).then((t=>{if(t.data.errors){const i={};for(const a of Object.keys(t.headers)){i[a]=t.headers[a]}throw new GraphqlResponseError(p,i,t.data)}return t.data.data}))}function withDefaults(t,i){const a=t.defaults(i);const newApi=(t,i)=>graphql(a,t,i);return Object.assign(newApi,{defaults:withDefaults.bind(null,a),endpoint:o.request.endpoint})}const m=withDefaults(o.request,{headers:{"user-agent":`octokit-graphql.js/${u} ${p.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(t){return withDefaults(t,{method:"POST",url:"/graphql"})}i.GraphqlResponseError=GraphqlResponseError;i.graphql=m;i.withCustomRequest=withCustomRequest},4193:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a="3.1.0";function normalizePaginatedListResponse(t){if(!t.data){return{...t,data:[]}}const i="total_count"in t.data&&!("url"in t.data);if(!i)return t;const a=t.data.incomplete_results;const o=t.data.repository_selection;const p=t.data.total_count;delete t.data.incomplete_results;delete t.data.repository_selection;delete t.data.total_count;const u=Object.keys(t.data)[0];const l=t.data[u];t.data=l;if(typeof a!=="undefined"){t.data.incomplete_results=a}if(typeof o!=="undefined"){t.data.repository_selection=o}t.data.total_count=p;return t}function iterator(t,i,a){const o=typeof i==="function"?i.endpoint(a):t.request.endpoint(i,a);const p=typeof i==="function"?i:t.request;const u=o.method;const l=o.headers;let d=o.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!d)return{done:true};try{const t=await p({method:u,url:d,headers:l});const i=normalizePaginatedListResponse(t);d=((i.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:i}}catch(t){if(t.status!==409)throw t;d="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(t,i,a,o){if(typeof a==="function"){o=a;a=undefined}return gather(t,[],iterator(t,i,a)[Symbol.asyncIterator](),o)}function gather(t,i,a,o){return a.next().then((p=>{if(p.done){return i}let u=false;function done(){u=true}i=i.concat(o?o(p.value,done):p.value.data);if(u){return i}return gather(t,i,a,o)}))}const o=Object.assign(paginate,{iterator:iterator});const p=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/code-scanning/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(t){if(typeof t==="string"){return p.includes(t)}else{return false}}function paginateRest(t){return{paginate:Object.assign(paginate.bind(null,t),{iterator:iterator.bind(null,t)})}}paginateRest.VERSION=a;i.composePaginateRest=o;i.isPaginatingEndpoint=isPaginatingEndpoint;i.paginateRest=paginateRest;i.paginatingEndpoints=p},3044:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForEnterprise:["GET /enterprises/{enterprise}/actions/cache/usage"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getGithubActionsDefaultWorkflowPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setGithubActionsDefaultWorkflowPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubAdvancedSecurityBillingGhe:["GET /enterprises/{enterprise}/settings/billing/advanced-security"],getGithubAdvancedSecurityBillingOrg:["GET /orgs/{org}/settings/billing/advanced-security"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/code-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"]},emojis:{get:["GET /emojis"]},enterpriseAdmin:{addCustomLabelsToSelfHostedRunnerForEnterprise:["POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],disableSelectedOrganizationGithubActionsEnterprise:["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],enableSelectedOrganizationGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],getAllowedActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/selected-actions"],getGithubActionsPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions"],getServerStatistics:["GET /enterprise-installation/{enterprise_or_org}/server-statistics"],listLabelsForSelfHostedRunnerForEnterprise:["GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],listSelectedOrganizationsEnabledGithubActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/organizations"],removeAllCustomLabelsFromSelfHostedRunnerForEnterprise:["DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForEnterprise:["DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name}"],setAllowedActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForEnterprise:["PUT /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],setGithubActionsPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions"],setSelectedOrganizationsEnabledGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomRoles:["GET /organizations/{organization_id}/custom_roles"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableLfsForRepo:["DELETE /repos/{owner}/{repo}/lfs"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enableLfsForRepo:["PUT /repos/{owner}/{repo}/lfs"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};const o="6.2.0";function endpointsToMethods(t,i){const a={};for(const[o,p]of Object.entries(i)){for(const[i,u]of Object.entries(p)){const[p,l,d]=u;const[h,m]=p.split(/ /);const g=Object.assign({method:h,url:m},l);if(!a[o]){a[o]={}}const E=a[o];if(d){E[i]=decorate(t,o,i,g,d);continue}E[i]=t.request.defaults(g)}}return a}function decorate(t,i,a,o,p){const u=t.request.defaults(o);function withDecorations(...o){let l=u.endpoint.merge(...o);if(p.mapToData){l=Object.assign({},l,{data:l[p.mapToData],[p.mapToData]:undefined});return u(l)}if(p.renamed){const[o,u]=p.renamed;t.log.warn(`octokit.${i}.${a}() has been renamed to octokit.${o}.${u}()`)}if(p.deprecated){t.log.warn(p.deprecated)}if(p.renamedParameters){const l=u.endpoint.merge(...o);for(const[o,u]of Object.entries(p.renamedParameters)){if(o in l){t.log.warn(`"${o}" parameter is deprecated for "octokit.${i}.${a}()". Use "${u}" instead`);if(!(u in l)){l[u]=l[o]}delete l[o]}}return u(l)}return u(...o)}return Object.assign(withDecorations,u)}function restEndpointMethods(t){const i=endpointsToMethods(t,a);return{rest:i}}restEndpointMethods.VERSION=o;function legacyRestEndpointMethods(t){const i=endpointsToMethods(t,a);return{...i,rest:i}}legacyRestEndpointMethods.VERSION=o;i.legacyRestEndpointMethods=legacyRestEndpointMethods;i.restEndpointMethods=restEndpointMethods},537:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var o=a(8932);var p=_interopDefault(a(1223));const u=p((t=>console.warn(t)));const l=p((t=>console.warn(t)));class RequestError extends Error{constructor(t,i,a){super(t);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=i;let p;if("headers"in a&&typeof a.headers!=="undefined"){p=a.headers}if("response"in a){this.response=a.response;p=a.response.headers}const d=Object.assign({},a.request);if(a.request.headers.authorization){d.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}d.url=d.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=d;Object.defineProperty(this,"code",{get(){u(new o.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return i}});Object.defineProperty(this,"headers",{get(){l(new o.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return p||{}}})}}i.RequestError=RequestError},6234:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var o=a(9440);var p=a(5030);var u=a(3287);var l=_interopDefault(a(467));var d=a(537);const h="6.2.0";function getBufferResponse(t){return t.arrayBuffer()}function fetchWrapper(t){const i=t.request&&t.request.log?t.request.log:console;if(u.isPlainObject(t.body)||Array.isArray(t.body)){t.body=JSON.stringify(t.body)}let a={};let o;let p;const h=t.request&&t.request.fetch||globalThis.fetch||l;return h(t.url,Object.assign({method:t.method,body:t.body,headers:t.headers,redirect:t.redirect},t.request)).then((async u=>{p=u.url;o=u.status;for(const t of u.headers){a[t[0]]=t[1]}if("deprecation"in a){const o=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const p=o&&o.pop();i.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${p?`. See ${p}`:""}`)}if(o===204||o===205){return}if(t.method==="HEAD"){if(o<400){return}throw new d.RequestError(u.statusText,o,{response:{url:p,status:o,headers:a,data:undefined},request:t})}if(o===304){throw new d.RequestError("Not modified",o,{response:{url:p,status:o,headers:a,data:await getResponseData(u)},request:t})}if(o>=400){const i=await getResponseData(u);const l=new d.RequestError(toErrorMessage(i),o,{response:{url:p,status:o,headers:a,data:i},request:t});throw l}return getResponseData(u)})).then((t=>({status:o,url:p,headers:a,data:t}))).catch((i=>{if(i instanceof d.RequestError)throw i;else if(i.name==="AbortError")throw i;throw new d.RequestError(i.message,500,{request:t})}))}async function getResponseData(t){const i=t.headers.get("content-type");if(/application\/json/.test(i)){return t.json()}if(!i||/^text\/|charset=utf-8$/.test(i)){return t.text()}return getBufferResponse(t)}function toErrorMessage(t){if(typeof t==="string")return t;if("message"in t){if(Array.isArray(t.errors)){return`${t.message}: ${t.errors.map(JSON.stringify).join(", ")}`}return t.message}return`Unknown error: ${JSON.stringify(t)}`}function withDefaults(t,i){const a=t.defaults(i);const newApi=function(t,i){const o=a.merge(t,i);if(!o.request||!o.request.hook){return fetchWrapper(a.parse(o))}const request=(t,i)=>fetchWrapper(a.parse(a.merge(t,i)));Object.assign(request,{endpoint:a,defaults:withDefaults.bind(null,a)});return o.request.hook(request,o)};return Object.assign(newApi,{endpoint:a,defaults:withDefaults.bind(null,a)})}const m=withDefaults(o.endpoint,{headers:{"user-agent":`octokit-request.js/${h} ${p.getUserAgent()}`}});i.request=m},1040:t=>{"use strict";function noop(){}function once(t,i){const a=once.spread(t,i);const o=a.then((t=>t[0]));o.cancel=a.cancel;return o}(function(t){function spread(t,i){let a=null;const o=new Promise(((p,u)=>{function cancel(){t.removeListener(i,onEvent);t.removeListener("error",onError);o.cancel=noop}function onEvent(...t){cancel();p(t)}function onError(t){cancel();u(t)}a=cancel;t.on(i,onEvent);t.on("error",onError)}));if(!a){throw new TypeError("Could not get `cancel()` function")}o.cancel=a;return o}t.spread=spread})(once||(once={}));t.exports=once},8390:function(t,i){(function(t,a){true?a(i):0})(this,(function(t){"use strict";function simple(t,i,o,p,u){if(!o){o=a}(function c(t,a,p){var u=p||t.type,l=i[u];o[u](t,a,c);if(l){l(t,a)}})(t,p,u)}function ancestor(t,i,o,p,u){var l=[];if(!o){o=a}(function c(t,a,p){var u=p||t.type,d=i[u];var h=t!==l[l.length-1];if(h){l.push(t)}o[u](t,a,c);if(d){d(t,a||l,l)}if(h){l.pop()}})(t,p,u)}function recursive(t,i,a,o,p){var u=a?make(a,o||undefined):o;(function c(t,i,a){u[a||t.type](t,i,c)})(t,i,p)}function makeTest(t){if(typeof t==="string"){return function(i){return i===t}}else if(!t){return function(){return true}}else{return t}}var i=function Found(t,i){this.node=t;this.state=i};function full(t,i,o,p,u){if(!o){o=a}var l;(function c(t,a,p){var u=p||t.type;o[u](t,a,c);if(l!==t){i(t,a,u);l=t}})(t,p,u)}function fullAncestor(t,i,o,p){if(!o){o=a}var u=[],l;(function c(t,a,p){var d=p||t.type;var h=t!==u[u.length-1];if(h){u.push(t)}o[d](t,a,c);if(l!==t){i(t,a||u,u,d);l=t}if(h){u.pop()}})(t,p)}function findNodeAt(t,o,p,u,l,d){if(!l){l=a}u=makeTest(u);try{(function c(t,a,d){var h=d||t.type;if((o==null||t.start<=o)&&(p==null||t.end>=p)){l[h](t,a,c)}if((o==null||t.start===o)&&(p==null||t.end===p)&&u(h,t)){throw new i(t,a)}})(t,d)}catch(t){if(t instanceof i){return t}throw t}}function findNodeAround(t,o,p,u,l){p=makeTest(p);if(!u){u=a}try{(function c(t,a,l){var d=l||t.type;if(t.start>o||t.end=o&&p(d,t)){throw new i(t,a)}u[d](t,a,c)})(t,l)}catch(t){if(t instanceof i){return t}throw t}}function findNodeBefore(t,o,p,u,l){p=makeTest(p);if(!u){u=a}var d;(function c(t,a,l){if(t.start>o){return}var h=l||t.type;if(t.end<=o&&(!d||d.node.endt){return false}a+=i[o+1];if(a>=t){return true}}}function isIdentifierStart(t,i){if(t<65){return t===36}if(t<91){return true}if(t<97){return t===95}if(t<123){return true}if(t<=65535){return t>=170&&m.test(String.fromCharCode(t))}if(i===false){return false}return isInAstralSet(t,a)}function isIdentifierChar(t,o){if(t<48){return t===36}if(t<58){return true}if(t<65){return false}if(t<91){return true}if(t<97){return t===95}if(t<123){return true}if(t<=65535){return t>=170&&g.test(String.fromCharCode(t))}if(o===false){return false}return isInAstralSet(t,a)||isInAstralSet(t,i)}var E=function TokenType(t,i){if(i===void 0)i={};this.label=t;this.keyword=i.keyword;this.beforeExpr=!!i.beforeExpr;this.startsExpr=!!i.startsExpr;this.isLoop=!!i.isLoop;this.isAssign=!!i.isAssign;this.prefix=!!i.prefix;this.postfix=!!i.postfix;this.binop=i.binop||null;this.updateContext=null};function binop(t,i){return new E(t,{beforeExpr:true,binop:i})}var v={beforeExpr:true},A={startsExpr:true};var y={};function kw(t,i){if(i===void 0)i={};i.keyword=t;return y[t]=new E(t,i)}var D={num:new E("num",A),regexp:new E("regexp",A),string:new E("string",A),name:new E("name",A),privateId:new E("privateId",A),eof:new E("eof"),bracketL:new E("[",{beforeExpr:true,startsExpr:true}),bracketR:new E("]"),braceL:new E("{",{beforeExpr:true,startsExpr:true}),braceR:new E("}"),parenL:new E("(",{beforeExpr:true,startsExpr:true}),parenR:new E(")"),comma:new E(",",v),semi:new E(";",v),colon:new E(":",v),dot:new E("."),question:new E("?",v),questionDot:new E("?."),arrow:new E("=>",v),template:new E("template"),invalidTemplate:new E("invalidTemplate"),ellipsis:new E("...",v),backQuote:new E("`",A),dollarBraceL:new E("${",{beforeExpr:true,startsExpr:true}),eq:new E("=",{beforeExpr:true,isAssign:true}),assign:new E("_=",{beforeExpr:true,isAssign:true}),incDec:new E("++/--",{prefix:true,postfix:true,startsExpr:true}),prefix:new E("!/~",{beforeExpr:true,prefix:true,startsExpr:true}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new E("+/-",{beforeExpr:true,binop:9,prefix:true,startsExpr:true}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new E("**",{beforeExpr:true}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",v),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",v),_do:kw("do",{isLoop:true,beforeExpr:true}),_else:kw("else",v),_finally:kw("finally"),_for:kw("for",{isLoop:true}),_function:kw("function",A),_if:kw("if"),_return:kw("return",v),_switch:kw("switch"),_throw:kw("throw",v),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:true}),_with:kw("with"),_new:kw("new",{beforeExpr:true,startsExpr:true}),_this:kw("this",A),_super:kw("super",A),_class:kw("class",A),_extends:kw("extends",v),_export:kw("export"),_import:kw("import",A),_null:kw("null",A),_true:kw("true",A),_false:kw("false",A),_in:kw("in",{beforeExpr:true,binop:7}),_instanceof:kw("instanceof",{beforeExpr:true,binop:7}),_typeof:kw("typeof",{beforeExpr:true,prefix:true,startsExpr:true}),_void:kw("void",{beforeExpr:true,prefix:true,startsExpr:true}),_delete:kw("delete",{beforeExpr:true,prefix:true,startsExpr:true})};var b=/\r\n?|\n|\u2028|\u2029/;var C=new RegExp(b.source,"g");function isNewLine(t){return t===10||t===13||t===8232||t===8233}function nextLineBreak(t,i,a){if(a===void 0)a=t.length;for(var o=i;o>10)+55296,(t&1023)+56320)}var P=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;var O=function Position(t,i){this.line=t;this.column=i};O.prototype.offset=function offset(t){return new O(this.line,this.column+t)};var I=function SourceLocation(t,i,a){this.start=i;this.end=a;if(t.sourceFile!==null){this.source=t.sourceFile}};function getLineInfo(t,i){for(var a=1,o=0;;){var p=nextLineBreak(t,o,i);if(p<0){return new O(a,i-o)}++a;o=p}}var N={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:false,allowImportExportEverywhere:false,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:false,locations:false,onToken:null,onComment:null,ranges:false,program:null,sourceFile:null,directSourceFile:null,preserveParens:false};var R=false;function getOptions(t){var i={};for(var a in N){i[a]=t&&x(t,a)?t[a]:N[a]}if(i.ecmaVersion==="latest"){i.ecmaVersion=1e8}else if(i.ecmaVersion==null){if(!R&&typeof console==="object"&&console.warn){R=true;console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")}i.ecmaVersion=11}else if(i.ecmaVersion>=2015){i.ecmaVersion-=2009}if(i.allowReserved==null){i.allowReserved=i.ecmaVersion<5}if(t.allowHashBang==null){i.allowHashBang=i.ecmaVersion>=14}if(k(i.onToken)){var o=i.onToken;i.onToken=function(t){return o.push(t)}}if(k(i.onComment)){i.onComment=pushComment(i,i.onComment)}return i}function pushComment(t,i){return function(a,o,p,u,l,d){var h={type:a?"Block":"Line",value:o,start:p,end:u};if(t.locations){h.loc=new I(this,l,d)}if(t.ranges){h.range=[p,u]}i.push(h)}}var L=1,U=2,G=4,M=8,j=16,V=32,q=64,H=128,W=256,z=L|U|W;function functionFlags(t,i){return U|(t?G:0)|(i?M:0)}var $=0,J=1,K=2,X=3,Y=4,Z=5;var Q=function Parser(t,i,a){this.options=t=getOptions(t);this.sourceFile=t.sourceFile;this.keywords=wordsRegexp(d[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var o="";if(t.allowReserved!==true){o=u[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3];if(t.sourceType==="module"){o+=" await"}}this.reservedWords=wordsRegexp(o);var p=(o?o+" ":"")+u.strict;this.reservedWordsStrict=wordsRegexp(p);this.reservedWordsStrictBind=wordsRegexp(p+" "+u.strictBind);this.input=String(i);this.containsEsc=false;if(a){this.pos=a;this.lineStart=this.input.lastIndexOf("\n",a-1)+1;this.curLine=this.input.slice(0,this.lineStart).split(b).length}else{this.pos=this.lineStart=0;this.curLine=1}this.type=D.eof;this.value=null;this.start=this.end=this.pos;this.startLoc=this.endLoc=this.curPosition();this.lastTokEndLoc=this.lastTokStartLoc=null;this.lastTokStart=this.lastTokEnd=this.pos;this.context=this.initialContext();this.exprAllowed=true;this.inModule=t.sourceType==="module";this.strict=this.inModule||this.strictDirective(this.pos);this.potentialArrowAt=-1;this.potentialArrowInForAwait=false;this.yieldPos=this.awaitPos=this.awaitIdentPos=0;this.labels=[];this.undefinedExports=Object.create(null);if(this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"){this.skipLineComment(2)}this.scopeStack=[];this.enterScope(L);this.regexpState=null;this.privateNameStack=[]};var ee={inFunction:{configurable:true},inGenerator:{configurable:true},inAsync:{configurable:true},canAwait:{configurable:true},allowSuper:{configurable:true},allowDirectSuper:{configurable:true},treatFunctionsAsVar:{configurable:true},allowNewDotTarget:{configurable:true},inClassStaticBlock:{configurable:true}};Q.prototype.parse=function parse(){var t=this.options.program||this.startNode();this.nextToken();return this.parseTopLevel(t)};ee.inFunction.get=function(){return(this.currentVarScope().flags&U)>0};ee.inGenerator.get=function(){return(this.currentVarScope().flags&M)>0&&!this.currentVarScope().inClassFieldInit};ee.inAsync.get=function(){return(this.currentVarScope().flags&G)>0&&!this.currentVarScope().inClassFieldInit};ee.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var i=this.scopeStack[t];if(i.inClassFieldInit||i.flags&W){return false}if(i.flags&U){return(i.flags&G)>0}}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};ee.allowSuper.get=function(){var t=this.currentThisScope();var i=t.flags;var a=t.inClassFieldInit;return(i&q)>0||a||this.options.allowSuperOutsideMethod};ee.allowDirectSuper.get=function(){return(this.currentThisScope().flags&H)>0};ee.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};ee.allowNewDotTarget.get=function(){var t=this.currentThisScope();var i=t.flags;var a=t.inClassFieldInit;return(i&(U|W))>0||a};ee.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&W)>0};Q.extend=function extend(){var t=[],i=arguments.length;while(i--)t[i]=arguments[i];var a=this;for(var o=0;o=,?^&]/.test(p)||p==="!"&&this.input.charAt(o+1)==="=")}t+=i[0].length;S.lastIndex=t;t+=S.exec(this.input)[0].length;if(this.input[t]===";"){t++}}};te.eat=function(t){if(this.type===t){this.next();return true}else{return false}};te.isContextual=function(t){return this.type===D.name&&this.value===t&&!this.containsEsc};te.eatContextual=function(t){if(!this.isContextual(t)){return false}this.next();return true};te.expectContextual=function(t){if(!this.eatContextual(t)){this.unexpected()}};te.canInsertSemicolon=function(){return this.type===D.eof||this.type===D.braceR||b.test(this.input.slice(this.lastTokEnd,this.start))};te.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon){this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc)}return true}};te.semicolon=function(){if(!this.eat(D.semi)&&!this.insertSemicolon()){this.unexpected()}};te.afterTrailingComma=function(t,i){if(this.type===t){if(this.options.onTrailingComma){this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc)}if(!i){this.next()}return true}};te.expect=function(t){this.eat(t)||this.unexpected()};te.unexpected=function(t){this.raise(t!=null?t:this.start,"Unexpected token")};var ie=function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};te.checkPatternErrors=function(t,i){if(!t){return}if(t.trailingComma>-1){this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element")}var a=i?t.parenthesizedAssign:t.parenthesizedBind;if(a>-1){this.raiseRecoverable(a,i?"Assigning to rvalue":"Parenthesized pattern")}};te.checkExpressionErrors=function(t,i){if(!t){return false}var a=t.shorthandAssign;var o=t.doubleProto;if(!i){return a>=0||o>=0}if(a>=0){this.raise(a,"Shorthand property assignments are valid only in destructuring patterns")}if(o>=0){this.raiseRecoverable(o,"Redefinition of __proto__ property")}};te.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&o<56320){return true}if(t){return false}if(o===123){return true}if(isIdentifierStart(o,true)){var p=a+1;while(isIdentifierChar(o=this.input.charCodeAt(p),true)){++p}if(o===92||o>55295&&o<56320){return true}var u=this.input.slice(a,p);if(!h.test(u)){return true}}return false};se.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async")){return false}S.lastIndex=this.pos;var t=S.exec(this.input);var i=this.pos+t[0].length,a;return!b.test(this.input.slice(this.pos,i))&&this.input.slice(i,i+8)==="function"&&(i+8===this.input.length||!(isIdentifierChar(a=this.input.charCodeAt(i+8))||a>55295&&a<56320))};se.parseStatement=function(t,i,a){var o=this.type,p=this.startNode(),u;if(this.isLet(t)){o=D._var;u="let"}switch(o){case D._break:case D._continue:return this.parseBreakContinueStatement(p,o.keyword);case D._debugger:return this.parseDebuggerStatement(p);case D._do:return this.parseDoStatement(p);case D._for:return this.parseForStatement(p);case D._function:if(t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6){this.unexpected()}return this.parseFunctionStatement(p,false,!t);case D._class:if(t){this.unexpected()}return this.parseClass(p,true);case D._if:return this.parseIfStatement(p);case D._return:return this.parseReturnStatement(p);case D._switch:return this.parseSwitchStatement(p);case D._throw:return this.parseThrowStatement(p);case D._try:return this.parseTryStatement(p);case D._const:case D._var:u=u||this.value;if(t&&u!=="var"){this.unexpected()}return this.parseVarStatement(p,u);case D._while:return this.parseWhileStatement(p);case D._with:return this.parseWithStatement(p);case D.braceL:return this.parseBlock(true,p);case D.semi:return this.parseEmptyStatement(p);case D._export:case D._import:if(this.options.ecmaVersion>10&&o===D._import){S.lastIndex=this.pos;var l=S.exec(this.input);var d=this.pos+l[0].length,h=this.input.charCodeAt(d);if(h===40||h===46){return this.parseExpressionStatement(p,this.parseExpression())}}if(!this.options.allowImportExportEverywhere){if(!i){this.raise(this.start,"'import' and 'export' may only appear at the top level")}if(!this.inModule){this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}}return o===D._import?this.parseImport(p):this.parseExport(p,a);default:if(this.isAsyncFunction()){if(t){this.unexpected()}this.next();return this.parseFunctionStatement(p,true,!t)}var m=this.value,g=this.parseExpression();if(o===D.name&&g.type==="Identifier"&&this.eat(D.colon)){return this.parseLabeledStatement(p,m,g,t)}else{return this.parseExpressionStatement(p,g)}}};se.parseBreakContinueStatement=function(t,i){var a=i==="break";this.next();if(this.eat(D.semi)||this.insertSemicolon()){t.label=null}else if(this.type!==D.name){this.unexpected()}else{t.label=this.parseIdent();this.semicolon()}var o=0;for(;o=6){this.eat(D.semi)}else{this.semicolon()}return this.finishNode(t,"DoWhileStatement")};se.parseForStatement=function(t){this.next();var i=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;this.labels.push(ne);this.enterScope(0);this.expect(D.parenL);if(this.type===D.semi){if(i>-1){this.unexpected(i)}return this.parseFor(t,null)}var a=this.isLet();if(this.type===D._var||this.type===D._const||a){var o=this.startNode(),p=a?"let":this.value;this.next();this.parseVar(o,true,p);this.finishNode(o,"VariableDeclaration");if((this.type===D._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&o.declarations.length===1){if(this.options.ecmaVersion>=9){if(this.type===D._in){if(i>-1){this.unexpected(i)}}else{t.await=i>-1}}return this.parseForIn(t,o)}if(i>-1){this.unexpected(i)}return this.parseFor(t,o)}var u=this.isContextual("let"),l=false;var d=new ie;var h=this.parseExpression(i>-1?"await":true,d);if(this.type===D._in||(l=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(this.options.ecmaVersion>=9){if(this.type===D._in){if(i>-1){this.unexpected(i)}}else{t.await=i>-1}}if(u&&l){this.raise(h.start,"The left-hand side of a for-of loop may not start with 'let'.")}this.toAssignable(h,false,d);this.checkLValPattern(h);return this.parseForIn(t,h)}else{this.checkExpressionErrors(d,true)}if(i>-1){this.unexpected(i)}return this.parseFor(t,h)};se.parseFunctionStatement=function(t,i,a){this.next();return this.parseFunction(t,pe|(a?0:ue),false,i)};se.parseIfStatement=function(t){this.next();t.test=this.parseParenExpression();t.consequent=this.parseStatement("if");t.alternate=this.eat(D._else)?this.parseStatement("if"):null;return this.finishNode(t,"IfStatement")};se.parseReturnStatement=function(t){if(!this.inFunction&&!this.options.allowReturnOutsideFunction){this.raise(this.start,"'return' outside of function")}this.next();if(this.eat(D.semi)||this.insertSemicolon()){t.argument=null}else{t.argument=this.parseExpression();this.semicolon()}return this.finishNode(t,"ReturnStatement")};se.parseSwitchStatement=function(t){this.next();t.discriminant=this.parseParenExpression();t.cases=[];this.expect(D.braceL);this.labels.push(ae);this.enterScope(0);var i;for(var a=false;this.type!==D.braceR;){if(this.type===D._case||this.type===D._default){var o=this.type===D._case;if(i){this.finishNode(i,"SwitchCase")}t.cases.push(i=this.startNode());i.consequent=[];this.next();if(o){i.test=this.parseExpression()}else{if(a){this.raiseRecoverable(this.lastTokStart,"Multiple default clauses")}a=true;i.test=null}this.expect(D.colon)}else{if(!i){this.unexpected()}i.consequent.push(this.parseStatement(null))}}this.exitScope();if(i){this.finishNode(i,"SwitchCase")}this.next();this.labels.pop();return this.finishNode(t,"SwitchStatement")};se.parseThrowStatement=function(t){this.next();if(b.test(this.input.slice(this.lastTokEnd,this.start))){this.raise(this.lastTokEnd,"Illegal newline after throw")}t.argument=this.parseExpression();this.semicolon();return this.finishNode(t,"ThrowStatement")};var oe=[];se.parseTryStatement=function(t){this.next();t.block=this.parseBlock();t.handler=null;if(this.type===D._catch){var i=this.startNode();this.next();if(this.eat(D.parenL)){i.param=this.parseBindingAtom();var a=i.param.type==="Identifier";this.enterScope(a?V:0);this.checkLValPattern(i.param,a?Y:K);this.expect(D.parenR)}else{if(this.options.ecmaVersion<10){this.unexpected()}i.param=null;this.enterScope(0)}i.body=this.parseBlock(false);this.exitScope();t.handler=this.finishNode(i,"CatchClause")}t.finalizer=this.eat(D._finally)?this.parseBlock():null;if(!t.handler&&!t.finalizer){this.raise(t.start,"Missing catch or finally clause")}return this.finishNode(t,"TryStatement")};se.parseVarStatement=function(t,i){this.next();this.parseVar(t,false,i);this.semicolon();return this.finishNode(t,"VariableDeclaration")};se.parseWhileStatement=function(t){this.next();t.test=this.parseParenExpression();this.labels.push(ne);t.body=this.parseStatement("while");this.labels.pop();return this.finishNode(t,"WhileStatement")};se.parseWithStatement=function(t){if(this.strict){this.raise(this.start,"'with' in strict mode")}this.next();t.object=this.parseParenExpression();t.body=this.parseStatement("with");return this.finishNode(t,"WithStatement")};se.parseEmptyStatement=function(t){this.next();return this.finishNode(t,"EmptyStatement")};se.parseLabeledStatement=function(t,i,a,o){for(var p=0,u=this.labels;p=0;h--){var m=this.labels[h];if(m.statementStart===t.start){m.statementStart=this.start;m.kind=d}else{break}}this.labels.push({name:i,kind:d,statementStart:this.start});t.body=this.parseStatement(o?o.indexOf("label")===-1?o+"label":o:"label");this.labels.pop();t.label=a;return this.finishNode(t,"LabeledStatement")};se.parseExpressionStatement=function(t,i){t.expression=i;this.semicolon();return this.finishNode(t,"ExpressionStatement")};se.parseBlock=function(t,i,a){if(t===void 0)t=true;if(i===void 0)i=this.startNode();i.body=[];this.expect(D.braceL);if(t){this.enterScope(0)}while(this.type!==D.braceR){var o=this.parseStatement(null);i.body.push(o)}if(a){this.strict=false}this.next();if(t){this.exitScope()}return this.finishNode(i,"BlockStatement")};se.parseFor=function(t,i){t.init=i;this.expect(D.semi);t.test=this.type===D.semi?null:this.parseExpression();this.expect(D.semi);t.update=this.type===D.parenR?null:this.parseExpression();this.expect(D.parenR);t.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(t,"ForStatement")};se.parseForIn=function(t,i){var a=this.type===D._in;this.next();if(i.type==="VariableDeclaration"&&i.declarations[0].init!=null&&(!a||this.options.ecmaVersion<8||this.strict||i.kind!=="var"||i.declarations[0].id.type!=="Identifier")){this.raise(i.start,(a?"for-in":"for-of")+" loop variable declaration may not have an initializer")}t.left=i;t.right=a?this.parseExpression():this.parseMaybeAssign();this.expect(D.parenR);t.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(t,a?"ForInStatement":"ForOfStatement")};se.parseVar=function(t,i,a){t.declarations=[];t.kind=a;for(;;){var o=this.startNode();this.parseVarId(o,a);if(this.eat(D.eq)){o.init=this.parseMaybeAssign(i)}else if(a==="const"&&!(this.type===D._in||this.options.ecmaVersion>=6&&this.isContextual("of"))){this.unexpected()}else if(o.id.type!=="Identifier"&&!(i&&(this.type===D._in||this.isContextual("of")))){this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value")}else{o.init=null}t.declarations.push(this.finishNode(o,"VariableDeclarator"));if(!this.eat(D.comma)){break}}return t};se.parseVarId=function(t,i){t.id=this.parseBindingAtom();this.checkLValPattern(t.id,i==="var"?J:K,false)};var pe=1,ue=2,le=4;se.parseFunction=function(t,i,a,o,p){this.initFunction(t);if(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!o){if(this.type===D.star&&i&ue){this.unexpected()}t.generator=this.eat(D.star)}if(this.options.ecmaVersion>=8){t.async=!!o}if(i&pe){t.id=i&le&&this.type!==D.name?null:this.parseIdent();if(t.id&&!(i&ue)){this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?J:K:X)}}var u=this.yieldPos,l=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(t.async,t.generator));if(!(i&pe)){t.id=this.type===D.name?this.parseIdent():null}this.parseFunctionParams(t);this.parseFunctionBody(t,a,false,p);this.yieldPos=u;this.awaitPos=l;this.awaitIdentPos=d;return this.finishNode(t,i&pe?"FunctionDeclaration":"FunctionExpression")};se.parseFunctionParams=function(t){this.expect(D.parenL);t.params=this.parseBindingList(D.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams()};se.parseClass=function(t,i){this.next();var a=this.strict;this.strict=true;this.parseClassId(t,i);this.parseClassSuper(t);var o=this.enterClassBody();var p=this.startNode();var u=false;p.body=[];this.expect(D.braceL);while(this.type!==D.braceR){var l=this.parseClassElement(t.superClass!==null);if(l){p.body.push(l);if(l.type==="MethodDefinition"&&l.kind==="constructor"){if(u){this.raise(l.start,"Duplicate constructor in the same class")}u=true}else if(l.key&&l.key.type==="PrivateIdentifier"&&isPrivateNameConflicted(o,l)){this.raiseRecoverable(l.key.start,"Identifier '#"+l.key.name+"' has already been declared")}}}this.strict=a;this.next();t.body=this.finishNode(p,"ClassBody");this.exitClassBody();return this.finishNode(t,i?"ClassDeclaration":"ClassExpression")};se.parseClassElement=function(t){if(this.eat(D.semi)){return null}var i=this.options.ecmaVersion;var a=this.startNode();var o="";var p=false;var u=false;var l="method";var d=false;if(this.eatContextual("static")){if(i>=13&&this.eat(D.braceL)){this.parseClassStaticBlock(a);return a}if(this.isClassElementNameStart()||this.type===D.star){d=true}else{o="static"}}a.static=d;if(!o&&i>=8&&this.eatContextual("async")){if((this.isClassElementNameStart()||this.type===D.star)&&!this.canInsertSemicolon()){u=true}else{o="async"}}if(!o&&(i>=9||!u)&&this.eat(D.star)){p=true}if(!o&&!u&&!p){var h=this.value;if(this.eatContextual("get")||this.eatContextual("set")){if(this.isClassElementNameStart()){l=h}else{o=h}}}if(o){a.computed=false;a.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);a.key.name=o;this.finishNode(a.key,"Identifier")}else{this.parseClassElementName(a)}if(i<13||this.type===D.parenL||l!=="method"||p||u){var m=!a.static&&checkKeyName(a,"constructor");var g=m&&t;if(m&&l!=="method"){this.raise(a.key.start,"Constructor can't have get/set modifier")}a.kind=m?"constructor":l;this.parseClassMethod(a,p,u,g)}else{this.parseClassField(a)}return a};se.isClassElementNameStart=function(){return this.type===D.name||this.type===D.privateId||this.type===D.num||this.type===D.string||this.type===D.bracketL||this.type.keyword};se.parseClassElementName=function(t){if(this.type===D.privateId){if(this.value==="constructor"){this.raise(this.start,"Classes can't have an element named '#constructor'")}t.computed=false;t.key=this.parsePrivateIdent()}else{this.parsePropertyName(t)}};se.parseClassMethod=function(t,i,a,o){var p=t.key;if(t.kind==="constructor"){if(i){this.raise(p.start,"Constructor can't be a generator")}if(a){this.raise(p.start,"Constructor can't be an async method")}}else if(t.static&&checkKeyName(t,"prototype")){this.raise(p.start,"Classes may not have a static property named prototype")}var u=t.value=this.parseMethod(i,a,o);if(t.kind==="get"&&u.params.length!==0){this.raiseRecoverable(u.start,"getter should have no params")}if(t.kind==="set"&&u.params.length!==1){this.raiseRecoverable(u.start,"setter should have exactly one param")}if(t.kind==="set"&&u.params[0].type==="RestElement"){this.raiseRecoverable(u.params[0].start,"Setter cannot use rest params")}return this.finishNode(t,"MethodDefinition")};se.parseClassField=function(t){if(checkKeyName(t,"constructor")){this.raise(t.key.start,"Classes can't have a field named 'constructor'")}else if(t.static&&checkKeyName(t,"prototype")){this.raise(t.key.start,"Classes can't have a static field named 'prototype'")}if(this.eat(D.eq)){var i=this.currentThisScope();var a=i.inClassFieldInit;i.inClassFieldInit=true;t.value=this.parseMaybeAssign();i.inClassFieldInit=a}else{t.value=null}this.semicolon();return this.finishNode(t,"PropertyDefinition")};se.parseClassStaticBlock=function(t){t.body=[];var i=this.labels;this.labels=[];this.enterScope(W|q);while(this.type!==D.braceR){var a=this.parseStatement(null);t.body.push(a)}this.next();this.exitScope();this.labels=i;return this.finishNode(t,"StaticBlock")};se.parseClassId=function(t,i){if(this.type===D.name){t.id=this.parseIdent();if(i){this.checkLValSimple(t.id,K,false)}}else{if(i===true){this.unexpected()}t.id=null}};se.parseClassSuper=function(t){t.superClass=this.eat(D._extends)?this.parseExprSubscripts(false):null};se.enterClassBody=function(){var t={declared:Object.create(null),used:[]};this.privateNameStack.push(t);return t.declared};se.exitClassBody=function(){var t=this.privateNameStack.pop();var i=t.declared;var a=t.used;var o=this.privateNameStack.length;var p=o===0?null:this.privateNameStack[o-1];for(var u=0;u=11){if(this.eatContextual("as")){t.exported=this.parseModuleExportName();this.checkExport(i,t.exported,this.lastTokStart)}else{t.exported=null}}this.expectContextual("from");if(this.type!==D.string){this.unexpected()}t.source=this.parseExprAtom();this.semicolon();return this.finishNode(t,"ExportAllDeclaration")}if(this.eat(D._default)){this.checkExport(i,"default",this.lastTokStart);var a;if(this.type===D._function||(a=this.isAsyncFunction())){var o=this.startNode();this.next();if(a){this.next()}t.declaration=this.parseFunction(o,pe|le,false,a)}else if(this.type===D._class){var p=this.startNode();t.declaration=this.parseClass(p,"nullableID")}else{t.declaration=this.parseMaybeAssign();this.semicolon()}return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){t.declaration=this.parseStatement(null);if(t.declaration.type==="VariableDeclaration"){this.checkVariableExport(i,t.declaration.declarations)}else{this.checkExport(i,t.declaration.id,t.declaration.id.start)}t.specifiers=[];t.source=null}else{t.declaration=null;t.specifiers=this.parseExportSpecifiers(i);if(this.eatContextual("from")){if(this.type!==D.string){this.unexpected()}t.source=this.parseExprAtom()}else{for(var u=0,l=t.specifiers;u=13&&this.type===D.string){var t=this.parseLiteral(this.value);if(P.test(t.value)){this.raise(t.start,"An export name cannot include a lone surrogate.")}return t}return this.parseIdent(true)};se.adaptDirectivePrologue=function(t){for(var i=0;i=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value==="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var de=Q.prototype;de.toAssignable=function(t,i,a){if(this.options.ecmaVersion>=6&&t){switch(t.type){case"Identifier":if(this.inAsync&&t.name==="await"){this.raise(t.start,"Cannot use 'await' as identifier inside an async function")}break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";if(a){this.checkPatternErrors(a,true)}for(var o=0,p=t.properties;o=8&&!l&&d.name==="async"&&!this.canInsertSemicolon()&&this.eat(D._function)){this.overrideContext(fe.f_expr);return this.parseFunction(this.startNodeAt(p,u),0,false,true,i)}if(o&&!this.canInsertSemicolon()){if(this.eat(D.arrow)){return this.parseArrowExpression(this.startNodeAt(p,u),[d],false,i)}if(this.options.ecmaVersion>=8&&d.name==="async"&&this.type===D.name&&!l&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){d=this.parseIdent(false);if(this.canInsertSemicolon()||!this.eat(D.arrow)){this.unexpected()}return this.parseArrowExpression(this.startNodeAt(p,u),[d],true,i)}}return d;case D.regexp:var h=this.value;a=this.parseLiteral(h.value);a.regex={pattern:h.pattern,flags:h.flags};return a;case D.num:case D.string:return this.parseLiteral(this.value);case D._null:case D._true:case D._false:a=this.startNode();a.value=this.type===D._null?null:this.type===D._true;a.raw=this.type.keyword;this.next();return this.finishNode(a,"Literal");case D.parenL:var m=this.start,g=this.parseParenAndDistinguishExpression(o,i);if(t){if(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(g)){t.parenthesizedAssign=m}if(t.parenthesizedBind<0){t.parenthesizedBind=m}}return g;case D.bracketL:a=this.startNode();this.next();a.elements=this.parseExprList(D.bracketR,true,true,t);return this.finishNode(a,"ArrayExpression");case D.braceL:this.overrideContext(fe.b_expr);return this.parseObj(false,t);case D._function:a=this.startNode();this.next();return this.parseFunction(a,0);case D._class:return this.parseClass(this.startNode(),false);case D._new:return this.parseNew();case D.backQuote:return this.parseTemplate();case D._import:if(this.options.ecmaVersion>=11){return this.parseExprImport()}else{return this.unexpected()}default:this.unexpected()}};me.parseExprImport=function(){var t=this.startNode();if(this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword import")}var i=this.parseIdent(true);switch(this.type){case D.parenL:return this.parseDynamicImport(t);case D.dot:t.meta=i;return this.parseImportMeta(t);default:this.unexpected()}};me.parseDynamicImport=function(t){this.next();t.source=this.parseMaybeAssign();if(!this.eat(D.parenR)){var i=this.start;if(this.eat(D.comma)&&this.eat(D.parenR)){this.raiseRecoverable(i,"Trailing comma is not allowed in import()")}else{this.unexpected(i)}}return this.finishNode(t,"ImportExpression")};me.parseImportMeta=function(t){this.next();var i=this.containsEsc;t.property=this.parseIdent(true);if(t.property.name!=="meta"){this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'")}if(i){this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters")}if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere){this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module")}return this.finishNode(t,"MetaProperty")};me.parseLiteral=function(t){var i=this.startNode();i.value=t;i.raw=this.input.slice(this.start,this.end);if(i.raw.charCodeAt(i.raw.length-1)===110){i.bigint=i.raw.slice(0,-1).replace(/_/g,"")}this.next();return this.finishNode(i,"Literal")};me.parseParenExpression=function(){this.expect(D.parenL);var t=this.parseExpression();this.expect(D.parenR);return t};me.parseParenAndDistinguishExpression=function(t,i){var a=this.start,o=this.startLoc,p,u=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var l=this.start,d=this.startLoc;var h=[],m=true,g=false;var E=new ie,v=this.yieldPos,A=this.awaitPos,y;this.yieldPos=0;this.awaitPos=0;while(this.type!==D.parenR){m?m=false:this.expect(D.comma);if(u&&this.afterTrailingComma(D.parenR,true)){g=true;break}else if(this.type===D.ellipsis){y=this.start;h.push(this.parseParenItem(this.parseRestBinding()));if(this.type===D.comma){this.raise(this.start,"Comma is not permitted after the rest element")}break}else{h.push(this.parseMaybeAssign(false,E,this.parseParenItem))}}var b=this.lastTokEnd,C=this.lastTokEndLoc;this.expect(D.parenR);if(t&&!this.canInsertSemicolon()&&this.eat(D.arrow)){this.checkPatternErrors(E,false);this.checkYieldAwaitInDefaultParams();this.yieldPos=v;this.awaitPos=A;return this.parseParenArrowList(a,o,h,i)}if(!h.length||g){this.unexpected(this.lastTokStart)}if(y){this.unexpected(y)}this.checkExpressionErrors(E,true);this.yieldPos=v||this.yieldPos;this.awaitPos=A||this.awaitPos;if(h.length>1){p=this.startNodeAt(l,d);p.expressions=h;this.finishNodeAt(p,"SequenceExpression",b,C)}else{p=h[0]}}else{p=this.parseParenExpression()}if(this.options.preserveParens){var w=this.startNodeAt(a,o);w.expression=p;return this.finishNode(w,"ParenthesizedExpression")}else{return p}};me.parseParenItem=function(t){return t};me.parseParenArrowList=function(t,i,a,o){return this.parseArrowExpression(this.startNodeAt(t,i),a,false,o)};var ge=[];me.parseNew=function(){if(this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword new")}var t=this.startNode();var i=this.parseIdent(true);if(this.options.ecmaVersion>=6&&this.eat(D.dot)){t.meta=i;var a=this.containsEsc;t.property=this.parseIdent(true);if(t.property.name!=="target"){this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'")}if(a){this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters")}if(!this.allowNewDotTarget){this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block")}return this.finishNode(t,"MetaProperty")}var o=this.start,p=this.startLoc,u=this.type===D._import;t.callee=this.parseSubscripts(this.parseExprAtom(),o,p,true,false);if(u&&t.callee.type==="ImportExpression"){this.raise(o,"Cannot use new with import()")}if(this.eat(D.parenL)){t.arguments=this.parseExprList(D.parenR,this.options.ecmaVersion>=8,false)}else{t.arguments=ge}return this.finishNode(t,"NewExpression")};me.parseTemplateElement=function(t){var i=t.isTagged;var a=this.startNode();if(this.type===D.invalidTemplate){if(!i){this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal")}a.value={raw:this.value,cooked:null}}else{a.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value}}this.next();a.tail=this.type===D.backQuote;return this.finishNode(a,"TemplateElement")};me.parseTemplate=function(t){if(t===void 0)t={};var i=t.isTagged;if(i===void 0)i=false;var a=this.startNode();this.next();a.expressions=[];var o=this.parseTemplateElement({isTagged:i});a.quasis=[o];while(!o.tail){if(this.type===D.eof){this.raise(this.pos,"Unterminated template literal")}this.expect(D.dollarBraceL);a.expressions.push(this.parseExpression());this.expect(D.braceR);a.quasis.push(o=this.parseTemplateElement({isTagged:i}))}this.next();return this.finishNode(a,"TemplateLiteral")};me.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===D.name||this.type===D.num||this.type===D.string||this.type===D.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===D.star)&&!b.test(this.input.slice(this.lastTokEnd,this.start))};me.parseObj=function(t,i){var a=this.startNode(),o=true,p={};a.properties=[];this.next();while(!this.eat(D.braceR)){if(!o){this.expect(D.comma);if(this.options.ecmaVersion>=5&&this.afterTrailingComma(D.braceR)){break}}else{o=false}var u=this.parseProperty(t,i);if(!t){this.checkPropClash(u,p,i)}a.properties.push(u)}return this.finishNode(a,t?"ObjectPattern":"ObjectExpression")};me.parseProperty=function(t,i){var a=this.startNode(),o,p,u,l;if(this.options.ecmaVersion>=9&&this.eat(D.ellipsis)){if(t){a.argument=this.parseIdent(false);if(this.type===D.comma){this.raise(this.start,"Comma is not permitted after the rest element")}return this.finishNode(a,"RestElement")}a.argument=this.parseMaybeAssign(false,i);if(this.type===D.comma&&i&&i.trailingComma<0){i.trailingComma=this.start}return this.finishNode(a,"SpreadElement")}if(this.options.ecmaVersion>=6){a.method=false;a.shorthand=false;if(t||i){u=this.start;l=this.startLoc}if(!t){o=this.eat(D.star)}}var d=this.containsEsc;this.parsePropertyName(a);if(!t&&!d&&this.options.ecmaVersion>=8&&!o&&this.isAsyncProp(a)){p=true;o=this.options.ecmaVersion>=9&&this.eat(D.star);this.parsePropertyName(a,i)}else{p=false}this.parsePropertyValue(a,t,o,p,u,l,i,d);return this.finishNode(a,"Property")};me.parsePropertyValue=function(t,i,a,o,p,u,l,d){if((a||o)&&this.type===D.colon){this.unexpected()}if(this.eat(D.colon)){t.value=i?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(false,l);t.kind="init"}else if(this.options.ecmaVersion>=6&&this.type===D.parenL){if(i){this.unexpected()}t.kind="init";t.method=true;t.value=this.parseMethod(a,o)}else if(!i&&!d&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&(this.type!==D.comma&&this.type!==D.braceR&&this.type!==D.eq)){if(a||o){this.unexpected()}t.kind=t.key.name;this.parsePropertyName(t);t.value=this.parseMethod(false);var h=t.kind==="get"?0:1;if(t.value.params.length!==h){var m=t.value.start;if(t.kind==="get"){this.raiseRecoverable(m,"getter should have no params")}else{this.raiseRecoverable(m,"setter should have exactly one param")}}else{if(t.kind==="set"&&t.value.params[0].type==="RestElement"){this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")}}}else if(this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"){if(a||o){this.unexpected()}this.checkUnreserved(t.key);if(t.key.name==="await"&&!this.awaitIdentPos){this.awaitIdentPos=p}t.kind="init";if(i){t.value=this.parseMaybeDefault(p,u,this.copyNode(t.key))}else if(this.type===D.eq&&l){if(l.shorthandAssign<0){l.shorthandAssign=this.start}t.value=this.parseMaybeDefault(p,u,this.copyNode(t.key))}else{t.value=this.copyNode(t.key)}t.shorthand=true}else{this.unexpected()}};me.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(D.bracketL)){t.computed=true;t.key=this.parseMaybeAssign();this.expect(D.bracketR);return t.key}else{t.computed=false}}return t.key=this.type===D.num||this.type===D.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};me.initFunction=function(t){t.id=null;if(this.options.ecmaVersion>=6){t.generator=t.expression=false}if(this.options.ecmaVersion>=8){t.async=false}};me.parseMethod=function(t,i,a){var o=this.startNode(),p=this.yieldPos,u=this.awaitPos,l=this.awaitIdentPos;this.initFunction(o);if(this.options.ecmaVersion>=6){o.generator=t}if(this.options.ecmaVersion>=8){o.async=!!i}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(i,o.generator)|q|(a?H:0));this.expect(D.parenL);o.params=this.parseBindingList(D.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams();this.parseFunctionBody(o,false,true,false);this.yieldPos=p;this.awaitPos=u;this.awaitIdentPos=l;return this.finishNode(o,"FunctionExpression")};me.parseArrowExpression=function(t,i,a,o){var p=this.yieldPos,u=this.awaitPos,l=this.awaitIdentPos;this.enterScope(functionFlags(a,false)|j);this.initFunction(t);if(this.options.ecmaVersion>=8){t.async=!!a}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;t.params=this.toAssignableList(i,true);this.parseFunctionBody(t,true,false,o);this.yieldPos=p;this.awaitPos=u;this.awaitIdentPos=l;return this.finishNode(t,"ArrowFunctionExpression")};me.parseFunctionBody=function(t,i,a,o){var p=i&&this.type!==D.braceL;var u=this.strict,l=false;if(p){t.body=this.parseMaybeAssign(o);t.expression=true;this.checkParams(t,false)}else{var d=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);if(!u||d){l=this.strictDirective(this.end);if(l&&d){this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list")}}var h=this.labels;this.labels=[];if(l){this.strict=true}this.checkParams(t,!u&&!l&&!i&&!a&&this.isSimpleParamList(t.params));if(this.strict&&t.id){this.checkLValSimple(t.id,Z)}t.body=this.parseBlock(false,undefined,l&&!u);t.expression=false;this.adaptDirectivePrologue(t.body.body);this.labels=h}this.exitScope()};me.isSimpleParamList=function(t){for(var i=0,a=t;i-1||p.functions.indexOf(t)>-1||p.var.indexOf(t)>-1;p.lexical.push(t);if(this.inModule&&p.flags&L){delete this.undefinedExports[t]}}else if(i===Y){var u=this.currentScope();u.lexical.push(t)}else if(i===X){var l=this.currentScope();if(this.treatFunctionsAsVar){o=l.lexical.indexOf(t)>-1}else{o=l.lexical.indexOf(t)>-1||l.var.indexOf(t)>-1}l.functions.push(t)}else{for(var d=this.scopeStack.length-1;d>=0;--d){var h=this.scopeStack[d];if(h.lexical.indexOf(t)>-1&&!(h.flags&V&&h.lexical[0]===t)||!this.treatFunctionsAsVarInScope(h)&&h.functions.indexOf(t)>-1){o=true;break}h.var.push(t);if(this.inModule&&h.flags&L){delete this.undefinedExports[t]}if(h.flags&z){break}}}if(o){this.raiseRecoverable(a,"Identifier '"+t+"' has already been declared")}};ve.checkLocalExport=function(t){if(this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1){this.undefinedExports[t.name]=t}};ve.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};ve.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var i=this.scopeStack[t];if(i.flags&z){return i}}};ve.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var i=this.scopeStack[t];if(i.flags&z&&!(i.flags&j)){return i}}};var ye=function Node(t,i,a){this.type="";this.start=i;this.end=0;if(t.options.locations){this.loc=new I(t,a)}if(t.options.directSourceFile){this.sourceFile=t.options.directSourceFile}if(t.options.ranges){this.range=[i,0]}};var De=Q.prototype;De.startNode=function(){return new ye(this,this.start,this.startLoc)};De.startNodeAt=function(t,i){return new ye(this,t,i)};function finishNodeAt(t,i,a,o){t.type=i;t.end=a;if(this.options.locations){t.loc.end=o}if(this.options.ranges){t.range[1]=a}return t}De.finishNode=function(t,i){return finishNodeAt.call(this,t,i,this.lastTokEnd,this.lastTokEndLoc)};De.finishNodeAt=function(t,i,a,o){return finishNodeAt.call(this,t,i,a,o)};De.copyNode=function(t){var i=new ye(this,t.start,this.startLoc);for(var a in t){i[a]=t[a]}return i};var be="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";var Ce=be+" Extended_Pictographic";var Fe=Ce;var we=Fe+" EBase EComp EMod EPres ExtPict";var Se=we;var _e={9:be,10:Ce,11:Fe,12:we,13:Se};var Te="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";var Be="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";var xe=Be+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";var ke=xe+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";var Pe=ke+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";var Oe=Pe+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";var Ie={9:Be,10:xe,11:ke,12:Pe,13:Oe};var Ne={};function buildUnicodeData(t){var i=Ne[t]={binary:wordsRegexp(_e[t]+" "+Te),nonBinary:{General_Category:wordsRegexp(Te),Script:wordsRegexp(Ie[t])}};i.nonBinary.Script_Extensions=i.nonBinary.Script;i.nonBinary.gc=i.nonBinary.General_Category;i.nonBinary.sc=i.nonBinary.Script;i.nonBinary.scx=i.nonBinary.Script_Extensions}for(var Re=0,Le=[9,10,11,12,13];Re=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"");this.unicodeProperties=Ne[t.options.ecmaVersion>=13?13:t.options.ecmaVersion];this.source="";this.flags="";this.start=0;this.switchU=false;this.switchN=false;this.pos=0;this.lastIntValue=0;this.lastStringValue="";this.lastAssertionIsQuantifiable=false;this.numCapturingParens=0;this.maxBackReference=0;this.groupNames=[];this.backReferenceNames=[]};Me.prototype.reset=function reset(t,i,a){var o=a.indexOf("u")!==-1;this.start=t|0;this.source=i+"";this.flags=a;this.switchU=o&&this.parser.options.ecmaVersion>=6;this.switchN=o&&this.parser.options.ecmaVersion>=9};Me.prototype.raise=function raise(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Me.prototype.at=function at(t,i){if(i===void 0)i=false;var a=this.source;var o=a.length;if(t>=o){return-1}var p=a.charCodeAt(t);if(!(i||this.switchU)||p<=55295||p>=57344||t+1>=o){return p}var u=a.charCodeAt(t+1);return u>=56320&&u<=57343?(p<<10)+u-56613888:p};Me.prototype.nextIndex=function nextIndex(t,i){if(i===void 0)i=false;var a=this.source;var o=a.length;if(t>=o){return o}var p=a.charCodeAt(t),u;if(!(i||this.switchU)||p<=55295||p>=57344||t+1>=o||(u=a.charCodeAt(t+1))<56320||u>57343){return t+1}return t+2};Me.prototype.current=function current(t){if(t===void 0)t=false;return this.at(this.pos,t)};Me.prototype.lookahead=function lookahead(t){if(t===void 0)t=false;return this.at(this.nextIndex(this.pos,t),t)};Me.prototype.advance=function advance(t){if(t===void 0)t=false;this.pos=this.nextIndex(this.pos,t)};Me.prototype.eat=function eat(t,i){if(i===void 0)i=false;if(this.current(i)===t){this.advance(i);return true}return false};Ge.validateRegExpFlags=function(t){var i=t.validFlags;var a=t.flags;for(var o=0;o-1){this.raise(t.start,"Duplicate regular expression flag")}}};Ge.validateRegExpPattern=function(t){this.regexp_pattern(t);if(!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0){t.switchN=true;this.regexp_pattern(t)}};Ge.regexp_pattern=function(t){t.pos=0;t.lastIntValue=0;t.lastStringValue="";t.lastAssertionIsQuantifiable=false;t.numCapturingParens=0;t.maxBackReference=0;t.groupNames.length=0;t.backReferenceNames.length=0;this.regexp_disjunction(t);if(t.pos!==t.source.length){if(t.eat(41)){t.raise("Unmatched ')'")}if(t.eat(93)||t.eat(125)){t.raise("Lone quantifier brackets")}}if(t.maxBackReference>t.numCapturingParens){t.raise("Invalid escape")}for(var i=0,a=t.backReferenceNames;i=9){a=t.eat(60)}if(t.eat(61)||t.eat(33)){this.regexp_disjunction(t);if(!t.eat(41)){t.raise("Unterminated group")}t.lastAssertionIsQuantifiable=!a;return true}}t.pos=i;return false};Ge.regexp_eatQuantifier=function(t,i){if(i===void 0)i=false;if(this.regexp_eatQuantifierPrefix(t,i)){t.eat(63);return true}return false};Ge.regexp_eatQuantifierPrefix=function(t,i){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,i)};Ge.regexp_eatBracedQuantifier=function(t,i){var a=t.pos;if(t.eat(123)){var o=0,p=-1;if(this.regexp_eatDecimalDigits(t)){o=t.lastIntValue;if(t.eat(44)&&this.regexp_eatDecimalDigits(t)){p=t.lastIntValue}if(t.eat(125)){if(p!==-1&&p=9){this.regexp_groupSpecifier(t)}else if(t.current()===63){t.raise("Invalid group")}this.regexp_disjunction(t);if(t.eat(41)){t.numCapturingParens+=1;return true}t.raise("Unterminated group")}return false};Ge.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)};Ge.regexp_eatInvalidBracedQuantifier=function(t){if(this.regexp_eatBracedQuantifier(t,true)){t.raise("Nothing to repeat")}return false};Ge.regexp_eatSyntaxCharacter=function(t){var i=t.current();if(isSyntaxCharacter(i)){t.lastIntValue=i;t.advance();return true}return false};function isSyntaxCharacter(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}Ge.regexp_eatPatternCharacters=function(t){var i=t.pos;var a=0;while((a=t.current())!==-1&&!isSyntaxCharacter(a)){t.advance()}return t.pos!==i};Ge.regexp_eatExtendedPatternCharacter=function(t){var i=t.current();if(i!==-1&&i!==36&&!(i>=40&&i<=43)&&i!==46&&i!==63&&i!==91&&i!==94&&i!==124){t.advance();return true}return false};Ge.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t)){if(t.groupNames.indexOf(t.lastStringValue)!==-1){t.raise("Duplicate capture group name")}t.groupNames.push(t.lastStringValue);return}t.raise("Invalid group")}};Ge.regexp_eatGroupName=function(t){t.lastStringValue="";if(t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62)){return true}t.raise("Invalid capture group name")}return false};Ge.regexp_eatRegExpIdentifierName=function(t){t.lastStringValue="";if(this.regexp_eatRegExpIdentifierStart(t)){t.lastStringValue+=codePointToString(t.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(t)){t.lastStringValue+=codePointToString(t.lastIntValue)}return true}return false};Ge.regexp_eatRegExpIdentifierStart=function(t){var i=t.pos;var a=this.options.ecmaVersion>=11;var o=t.current(a);t.advance(a);if(o===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,a)){o=t.lastIntValue}if(isRegExpIdentifierStart(o)){t.lastIntValue=o;return true}t.pos=i;return false};function isRegExpIdentifierStart(t){return isIdentifierStart(t,true)||t===36||t===95}Ge.regexp_eatRegExpIdentifierPart=function(t){var i=t.pos;var a=this.options.ecmaVersion>=11;var o=t.current(a);t.advance(a);if(o===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,a)){o=t.lastIntValue}if(isRegExpIdentifierPart(o)){t.lastIntValue=o;return true}t.pos=i;return false};function isRegExpIdentifierPart(t){return isIdentifierChar(t,true)||t===36||t===95||t===8204||t===8205}Ge.regexp_eatAtomEscape=function(t){if(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)){return true}if(t.switchU){if(t.current()===99){t.raise("Invalid unicode escape")}t.raise("Invalid escape")}return false};Ge.regexp_eatBackReference=function(t){var i=t.pos;if(this.regexp_eatDecimalEscape(t)){var a=t.lastIntValue;if(t.switchU){if(a>t.maxBackReference){t.maxBackReference=a}return true}if(a<=t.numCapturingParens){return true}t.pos=i}return false};Ge.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t)){t.backReferenceNames.push(t.lastStringValue);return true}t.raise("Invalid named reference")}return false};Ge.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,false)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)};Ge.regexp_eatCControlLetter=function(t){var i=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t)){return true}t.pos=i}return false};Ge.regexp_eatZero=function(t){if(t.current()===48&&!isDecimalDigit(t.lookahead())){t.lastIntValue=0;t.advance();return true}return false};Ge.regexp_eatControlEscape=function(t){var i=t.current();if(i===116){t.lastIntValue=9;t.advance();return true}if(i===110){t.lastIntValue=10;t.advance();return true}if(i===118){t.lastIntValue=11;t.advance();return true}if(i===102){t.lastIntValue=12;t.advance();return true}if(i===114){t.lastIntValue=13;t.advance();return true}return false};Ge.regexp_eatControlLetter=function(t){var i=t.current();if(isControlLetter(i)){t.lastIntValue=i%32;t.advance();return true}return false};function isControlLetter(t){return t>=65&&t<=90||t>=97&&t<=122}Ge.regexp_eatRegExpUnicodeEscapeSequence=function(t,i){if(i===void 0)i=false;var a=t.pos;var o=i||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var p=t.lastIntValue;if(o&&p>=55296&&p<=56319){var u=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var l=t.lastIntValue;if(l>=56320&&l<=57343){t.lastIntValue=(p-55296)*1024+(l-56320)+65536;return true}}t.pos=u;t.lastIntValue=p}return true}if(o&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&isValidUnicode(t.lastIntValue)){return true}if(o){t.raise("Invalid unicode escape")}t.pos=a}return false};function isValidUnicode(t){return t>=0&&t<=1114111}Ge.regexp_eatIdentityEscape=function(t){if(t.switchU){if(this.regexp_eatSyntaxCharacter(t)){return true}if(t.eat(47)){t.lastIntValue=47;return true}return false}var i=t.current();if(i!==99&&(!t.switchN||i!==107)){t.lastIntValue=i;t.advance();return true}return false};Ge.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var i=t.current();if(i>=49&&i<=57){do{t.lastIntValue=10*t.lastIntValue+(i-48);t.advance()}while((i=t.current())>=48&&i<=57);return true}return false};Ge.regexp_eatCharacterClassEscape=function(t){var i=t.current();if(isCharacterClassEscape(i)){t.lastIntValue=-1;t.advance();return true}if(t.switchU&&this.options.ecmaVersion>=9&&(i===80||i===112)){t.lastIntValue=-1;t.advance();if(t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125)){return true}t.raise("Invalid property name")}return false};function isCharacterClassEscape(t){return t===100||t===68||t===115||t===83||t===119||t===87}Ge.regexp_eatUnicodePropertyValueExpression=function(t){var i=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var a=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var o=t.lastStringValue;this.regexp_validateUnicodePropertyNameAndValue(t,a,o);return true}}t.pos=i;if(this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var p=t.lastStringValue;this.regexp_validateUnicodePropertyNameOrValue(t,p);return true}return false};Ge.regexp_validateUnicodePropertyNameAndValue=function(t,i,a){if(!x(t.unicodeProperties.nonBinary,i)){t.raise("Invalid property name")}if(!t.unicodeProperties.nonBinary[i].test(a)){t.raise("Invalid property value")}};Ge.regexp_validateUnicodePropertyNameOrValue=function(t,i){if(!t.unicodeProperties.binary.test(i)){t.raise("Invalid property name")}};Ge.regexp_eatUnicodePropertyName=function(t){var i=0;t.lastStringValue="";while(isUnicodePropertyNameCharacter(i=t.current())){t.lastStringValue+=codePointToString(i);t.advance()}return t.lastStringValue!==""};function isUnicodePropertyNameCharacter(t){return isControlLetter(t)||t===95}Ge.regexp_eatUnicodePropertyValue=function(t){var i=0;t.lastStringValue="";while(isUnicodePropertyValueCharacter(i=t.current())){t.lastStringValue+=codePointToString(i);t.advance()}return t.lastStringValue!==""};function isUnicodePropertyValueCharacter(t){return isUnicodePropertyNameCharacter(t)||isDecimalDigit(t)}Ge.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)};Ge.regexp_eatCharacterClass=function(t){if(t.eat(91)){t.eat(94);this.regexp_classRanges(t);if(t.eat(93)){return true}t.raise("Unterminated character class")}return false};Ge.regexp_classRanges=function(t){while(this.regexp_eatClassAtom(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var a=t.lastIntValue;if(t.switchU&&(i===-1||a===-1)){t.raise("Invalid character class")}if(i!==-1&&a!==-1&&i>a){t.raise("Range out of order in character class")}}}};Ge.regexp_eatClassAtom=function(t){var i=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t)){return true}if(t.switchU){var a=t.current();if(a===99||isOctalDigit(a)){t.raise("Invalid class escape")}t.raise("Invalid escape")}t.pos=i}var o=t.current();if(o!==93){t.lastIntValue=o;t.advance();return true}return false};Ge.regexp_eatClassEscape=function(t){var i=t.pos;if(t.eat(98)){t.lastIntValue=8;return true}if(t.switchU&&t.eat(45)){t.lastIntValue=45;return true}if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t)){return true}t.pos=i}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)};Ge.regexp_eatClassControlLetter=function(t){var i=t.current();if(isDecimalDigit(i)||i===95){t.lastIntValue=i%32;t.advance();return true}return false};Ge.regexp_eatHexEscapeSequence=function(t){var i=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2)){return true}if(t.switchU){t.raise("Invalid escape")}t.pos=i}return false};Ge.regexp_eatDecimalDigits=function(t){var i=t.pos;var a=0;t.lastIntValue=0;while(isDecimalDigit(a=t.current())){t.lastIntValue=10*t.lastIntValue+(a-48);t.advance()}return t.pos!==i};function isDecimalDigit(t){return t>=48&&t<=57}Ge.regexp_eatHexDigits=function(t){var i=t.pos;var a=0;t.lastIntValue=0;while(isHexDigit(a=t.current())){t.lastIntValue=16*t.lastIntValue+hexToInt(a);t.advance()}return t.pos!==i};function isHexDigit(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function hexToInt(t){if(t>=65&&t<=70){return 10+(t-65)}if(t>=97&&t<=102){return 10+(t-97)}return t-48}Ge.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var a=t.lastIntValue;if(i<=3&&this.regexp_eatOctalDigit(t)){t.lastIntValue=i*64+a*8+t.lastIntValue}else{t.lastIntValue=i*8+a}}else{t.lastIntValue=i}return true}return false};Ge.regexp_eatOctalDigit=function(t){var i=t.current();if(isOctalDigit(i)){t.lastIntValue=i-48;t.advance();return true}t.lastIntValue=0;return false};function isOctalDigit(t){return t>=48&&t<=55}Ge.regexp_eatFixedHexDigits=function(t,i){var a=t.pos;t.lastIntValue=0;for(var o=0;o=this.input.length){return this.finishToken(D.eof)}if(t.override){return t.override(this)}else{this.readToken(this.fullCharCodeAtPos())}};Ve.readToken=function(t){if(isIdentifierStart(t,this.options.ecmaVersion>=6)||t===92){return this.readWord()}return this.getTokenFromCode(t)};Ve.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320){return t}var i=this.input.charCodeAt(this.pos+1);return i<=56319||i>=57344?t:(t<<10)+i-56613888};Ve.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition();var i=this.pos,a=this.input.indexOf("*/",this.pos+=2);if(a===-1){this.raise(this.pos-2,"Unterminated comment")}this.pos=a+2;if(this.options.locations){for(var o=void 0,p=i;(o=nextLineBreak(this.input,p,this.pos))>-1;){++this.curLine;p=this.lineStart=o}}if(this.options.onComment){this.options.onComment(true,this.input.slice(i+2,a),i,this.pos,t,this.curPosition())}};Ve.skipLineComment=function(t){var i=this.pos;var a=this.options.onComment&&this.curPosition();var o=this.input.charCodeAt(this.pos+=t);while(this.pos8&&t<14||t>=5760&&w.test(String.fromCharCode(t))){++this.pos}else{break e}}}};Ve.finishToken=function(t,i){this.end=this.pos;if(this.options.locations){this.endLoc=this.curPosition()}var a=this.type;this.type=t;this.value=i;this.updateContext(a)};Ve.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57){return this.readNumber(true)}var i=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&t===46&&i===46){this.pos+=3;return this.finishToken(D.ellipsis)}else{++this.pos;return this.finishToken(D.dot)}};Ve.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);if(this.exprAllowed){++this.pos;return this.readRegexp()}if(t===61){return this.finishOp(D.assign,2)}return this.finishOp(D.slash,1)};Ve.readToken_mult_modulo_exp=function(t){var i=this.input.charCodeAt(this.pos+1);var a=1;var o=t===42?D.star:D.modulo;if(this.options.ecmaVersion>=7&&t===42&&i===42){++a;o=D.starstar;i=this.input.charCodeAt(this.pos+2)}if(i===61){return this.finishOp(D.assign,a+1)}return this.finishOp(o,a)};Ve.readToken_pipe_amp=function(t){var i=this.input.charCodeAt(this.pos+1);if(i===t){if(this.options.ecmaVersion>=12){var a=this.input.charCodeAt(this.pos+2);if(a===61){return this.finishOp(D.assign,3)}}return this.finishOp(t===124?D.logicalOR:D.logicalAND,2)}if(i===61){return this.finishOp(D.assign,2)}return this.finishOp(t===124?D.bitwiseOR:D.bitwiseAND,1)};Ve.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);if(t===61){return this.finishOp(D.assign,2)}return this.finishOp(D.bitwiseXOR,1)};Ve.readToken_plus_min=function(t){var i=this.input.charCodeAt(this.pos+1);if(i===t){if(i===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||b.test(this.input.slice(this.lastTokEnd,this.pos)))){this.skipLineComment(3);this.skipSpace();return this.nextToken()}return this.finishOp(D.incDec,2)}if(i===61){return this.finishOp(D.assign,2)}return this.finishOp(D.plusMin,1)};Ve.readToken_lt_gt=function(t){var i=this.input.charCodeAt(this.pos+1);var a=1;if(i===t){a=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2;if(this.input.charCodeAt(this.pos+a)===61){return this.finishOp(D.assign,a+1)}return this.finishOp(D.bitShift,a)}if(i===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45){this.skipLineComment(4);this.skipSpace();return this.nextToken()}if(i===61){a=2}return this.finishOp(D.relational,a)};Ve.readToken_eq_excl=function(t){var i=this.input.charCodeAt(this.pos+1);if(i===61){return this.finishOp(D.equality,this.input.charCodeAt(this.pos+2)===61?3:2)}if(t===61&&i===62&&this.options.ecmaVersion>=6){this.pos+=2;return this.finishToken(D.arrow)}return this.finishOp(t===61?D.eq:D.prefix,1)};Ve.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var i=this.input.charCodeAt(this.pos+1);if(i===46){var a=this.input.charCodeAt(this.pos+2);if(a<48||a>57){return this.finishOp(D.questionDot,2)}}if(i===63){if(t>=12){var o=this.input.charCodeAt(this.pos+2);if(o===61){return this.finishOp(D.assign,3)}}return this.finishOp(D.coalesce,2)}}return this.finishOp(D.question,1)};Ve.readToken_numberSign=function(){var t=this.options.ecmaVersion;var i=35;if(t>=13){++this.pos;i=this.fullCharCodeAtPos();if(isIdentifierStart(i,true)||i===92){return this.finishToken(D.privateId,this.readWord1())}}this.raise(this.pos,"Unexpected character '"+codePointToString(i)+"'")};Ve.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:++this.pos;return this.finishToken(D.parenL);case 41:++this.pos;return this.finishToken(D.parenR);case 59:++this.pos;return this.finishToken(D.semi);case 44:++this.pos;return this.finishToken(D.comma);case 91:++this.pos;return this.finishToken(D.bracketL);case 93:++this.pos;return this.finishToken(D.bracketR);case 123:++this.pos;return this.finishToken(D.braceL);case 125:++this.pos;return this.finishToken(D.braceR);case 58:++this.pos;return this.finishToken(D.colon);case 96:if(this.options.ecmaVersion<6){break}++this.pos;return this.finishToken(D.backQuote);case 48:var i=this.input.charCodeAt(this.pos+1);if(i===120||i===88){return this.readRadixNumber(16)}if(this.options.ecmaVersion>=6){if(i===111||i===79){return this.readRadixNumber(8)}if(i===98||i===66){return this.readRadixNumber(2)}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(false);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(D.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(t)+"'")};Ve.finishOp=function(t,i){var a=this.input.slice(this.pos,this.pos+i);this.pos+=i;return this.finishToken(t,a)};Ve.readRegexp=function(){var t,i,a=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(a,"Unterminated regular expression")}var o=this.input.charAt(this.pos);if(b.test(o)){this.raise(a,"Unterminated regular expression")}if(!t){if(o==="["){i=true}else if(o==="]"&&i){i=false}else if(o==="/"&&!i){break}t=o==="\\"}else{t=false}++this.pos}var p=this.input.slice(a,this.pos);++this.pos;var u=this.pos;var l=this.readWord1();if(this.containsEsc){this.unexpected(u)}var d=this.regexpState||(this.regexpState=new Me(this));d.reset(a,p,l);this.validateRegExpFlags(d);this.validateRegExpPattern(d);var h=null;try{h=new RegExp(p,l)}catch(t){}return this.finishToken(D.regexp,{pattern:p,flags:l,value:h})};Ve.readInt=function(t,i,a){var o=this.options.ecmaVersion>=12&&i===undefined;var p=a&&this.input.charCodeAt(this.pos)===48;var u=this.pos,l=0,d=0;for(var h=0,m=i==null?Infinity:i;h=97){E=g-97+10}else if(g>=65){E=g-65+10}else if(g>=48&&g<=57){E=g-48}else{E=Infinity}if(E>=t){break}d=g;l=l*t+E}if(o&&d===95){this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits")}if(this.pos===u||i!=null&&this.pos-u!==i){return null}return l};function stringToNumber(t,i){if(i){return parseInt(t,8)}return parseFloat(t.replace(/_/g,""))}function stringToBigInt(t){if(typeof BigInt!=="function"){return null}return BigInt(t.replace(/_/g,""))}Ve.readRadixNumber=function(t){var i=this.pos;this.pos+=2;var a=this.readInt(t);if(a==null){this.raise(this.start+2,"Expected number in radix "+t)}if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110){a=stringToBigInt(this.input.slice(i,this.pos));++this.pos}else if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(D.num,a)};Ve.readNumber=function(t){var i=this.pos;if(!t&&this.readInt(10,undefined,true)===null){this.raise(i,"Invalid number")}var a=this.pos-i>=2&&this.input.charCodeAt(i)===48;if(a&&this.strict){this.raise(i,"Invalid number")}var o=this.input.charCodeAt(this.pos);if(!a&&!t&&this.options.ecmaVersion>=11&&o===110){var p=stringToBigInt(this.input.slice(i,this.pos));++this.pos;if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(D.num,p)}if(a&&/[89]/.test(this.input.slice(i,this.pos))){a=false}if(o===46&&!a){++this.pos;this.readInt(10);o=this.input.charCodeAt(this.pos)}if((o===69||o===101)&&!a){o=this.input.charCodeAt(++this.pos);if(o===43||o===45){++this.pos}if(this.readInt(10)===null){this.raise(i,"Invalid number")}}if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}var u=stringToNumber(this.input.slice(i,this.pos),a);return this.finishToken(D.num,u)};Ve.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),i;if(t===123){if(this.options.ecmaVersion<6){this.unexpected()}var a=++this.pos;i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos);++this.pos;if(i>1114111){this.invalidStringToken(a,"Code point out of bounds")}}else{i=this.readHexChar(4)}return i};Ve.readString=function(t){var i="",a=++this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated string constant")}var o=this.input.charCodeAt(this.pos);if(o===t){break}if(o===92){i+=this.input.slice(a,this.pos);i+=this.readEscapedChar(false);a=this.pos}else if(o===8232||o===8233){if(this.options.ecmaVersion<10){this.raise(this.start,"Unterminated string constant")}++this.pos;if(this.options.locations){this.curLine++;this.lineStart=this.pos}}else{if(isNewLine(o)){this.raise(this.start,"Unterminated string constant")}++this.pos}}i+=this.input.slice(a,this.pos++);return this.finishToken(D.string,i)};var qe={};Ve.tryReadTemplateToken=function(){this.inTemplateElement=true;try{this.readTmplToken()}catch(t){if(t===qe){this.readInvalidTemplateToken()}else{throw t}}this.inTemplateElement=false};Ve.invalidStringToken=function(t,i){if(this.inTemplateElement&&this.options.ecmaVersion>=9){throw qe}else{this.raise(t,i)}};Ve.readTmplToken=function(){var t="",i=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated template")}var a=this.input.charCodeAt(this.pos);if(a===96||a===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===D.template||this.type===D.invalidTemplate)){if(a===36){this.pos+=2;return this.finishToken(D.dollarBraceL)}else{++this.pos;return this.finishToken(D.backQuote)}}t+=this.input.slice(i,this.pos);return this.finishToken(D.template,t)}if(a===92){t+=this.input.slice(i,this.pos);t+=this.readEscapedChar(true);i=this.pos}else if(isNewLine(a)){t+=this.input.slice(i,this.pos);++this.pos;switch(a){case 13:if(this.input.charCodeAt(this.pos)===10){++this.pos}case 10:t+="\n";break;default:t+=String.fromCharCode(a);break}if(this.options.locations){++this.curLine;this.lineStart=this.pos}i=this.pos}else{++this.pos}}};Ve.readInvalidTemplateToken=function(){for(;this.pos=48&&i<=55){var o=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0];var p=parseInt(o,8);if(p>255){o=o.slice(0,-1);p=parseInt(o,8)}this.pos+=o.length-1;i=this.input.charCodeAt(this.pos);if((o!=="0"||i===56||i===57)&&(this.strict||t)){this.invalidStringToken(this.pos-1-o.length,t?"Octal literal in template string":"Octal literal in strict mode")}return String.fromCharCode(p)}if(isNewLine(i)){return""}return String.fromCharCode(i)}};Ve.readHexChar=function(t){var i=this.pos;var a=this.readInt(16,t);if(a===null){this.invalidStringToken(i,"Bad character escape sequence")}return a};Ve.readWord1=function(){this.containsEsc=false;var t="",i=true,a=this.pos;var o=this.options.ecmaVersion>=6;while(this.post.indexOf("(https.js:")!==-1||t.indexOf("node:https:")!==-1))}function createAgent(t,i){return new createAgent.Agent(t,i)}(function(t){class Agent extends p.EventEmitter{constructor(t,i){super();let a=i;if(typeof t==="function"){this.callback=t}else if(t){a=t}this.timeout=null;if(a&&typeof a.timeout==="number"){this.timeout=a.timeout}this.maxFreeSockets=1;this.maxSockets=1;this.maxTotalSockets=Infinity;this.sockets={};this.freeSockets={};this.requests={};this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number"){return this.explicitDefaultPort}return isSecureEndpoint()?443:80}set defaultPort(t){this.explicitDefaultPort=t}get protocol(){if(typeof this.explicitProtocol==="string"){return this.explicitProtocol}return isSecureEndpoint()?"https:":"http:"}set protocol(t){this.explicitProtocol=t}callback(t,i,a){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(t,i){const a=Object.assign({},i);if(typeof a.secureEndpoint!=="boolean"){a.secureEndpoint=isSecureEndpoint()}if(a.host==null){a.host="localhost"}if(a.port==null){a.port=a.secureEndpoint?443:80}if(a.protocol==null){a.protocol=a.secureEndpoint?"https:":"http:"}if(a.host&&a.path){delete a.path}delete a.agent;delete a.hostname;delete a._defaultAgent;delete a.defaultPort;delete a.createConnection;t._last=true;t.shouldKeepAlive=false;let o=false;let p=null;const u=a.timeout||this.timeout;const onerror=i=>{if(t._hadError)return;t.emit("error",i);t._hadError=true};const ontimeout=()=>{p=null;o=true;const t=new Error(`A "socket" was not created for HTTP request before ${u}ms`);t.code="ETIMEOUT";onerror(t)};const callbackError=t=>{if(o)return;if(p!==null){clearTimeout(p);p=null}onerror(t)};const onsocket=i=>{if(o)return;if(p!=null){clearTimeout(p);p=null}if(isAgent(i)){d("Callback returned another Agent instance %o",i.constructor.name);i.addRequest(t,a);return}if(i){i.once("free",(()=>{this.freeSocket(i,a)}));t.onSocket(i);return}const u=new Error(`no Duplex stream was returned to agent-base for \`${t.method} ${t.path}\``);onerror(u)};if(typeof this.callback!=="function"){onerror(new Error("`callback` is not defined"));return}if(!this.promisifiedCallback){if(this.callback.length>=3){d("Converting legacy callback function to promise");this.promisifiedCallback=l.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof u==="number"&&u>0){p=setTimeout(ontimeout,u)}if("port"in a&&typeof a.port!=="number"){a.port=Number(a.port)}try{d("Resolving socket for %o request: %o",a.protocol,`${t.method} ${t.path}`);Promise.resolve(this.promisifiedCallback(t,a)).then(onsocket,callbackError)}catch(t){Promise.reject(t).catch(callbackError)}}freeSocket(t,i){d("Freeing socket %o %o",t.constructor.name,i);t.destroy()}destroy(){d("Destroying agent %o",this.constructor.name)}}t.Agent=Agent;t.prototype=t.Agent.prototype})(createAgent||(createAgent={}));t.exports=createAgent},6570:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function promisify(t){return function(i,a){return new Promise(((o,p)=>{t.call(this,i,a,((t,i)=>{if(t){p(t)}else{o(i)}}))}))}}i["default"]=promisify},5382:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(4631));var l=o.__importDefault(a(5351));function default_1(t){t.use(l.default);var i=t.use(p.default);var a=t.use(u.default).defaults;var o=i.Type.def;var d=i.Type.or;o("Noop").bases("Statement").build();o("DoExpression").bases("Expression").build("body").field("body",[o("Statement")]);o("Super").bases("Expression").build();o("BindExpression").bases("Expression").build("object","callee").field("object",d(o("Expression"),null)).field("callee",o("Expression"));o("Decorator").bases("Node").build("expression").field("expression",o("Expression"));o("Property").field("decorators",d([o("Decorator")],null),a["null"]);o("MethodDefinition").field("decorators",d([o("Decorator")],null),a["null"]);o("MetaProperty").bases("Expression").build("meta","property").field("meta",o("Identifier")).field("property",o("Identifier"));o("ParenthesizedExpression").bases("Expression").build("expression").field("expression",o("Expression"));o("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",o("Identifier"));o("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local");o("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local");o("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",d(o("Declaration"),o("Expression")));o("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",d(o("Declaration"),null)).field("specifiers",[o("ExportSpecifier")],a.emptyArray).field("source",d(o("Literal"),null),a["null"]);o("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",o("Identifier"));o("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",o("Identifier"));o("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",o("Identifier"));o("ExportAllDeclaration").bases("Declaration").build("exported","source").field("exported",d(o("Identifier"),null)).field("source",o("Literal"));o("CommentBlock").bases("Comment").build("value","leading","trailing");o("CommentLine").bases("Comment").build("value","leading","trailing");o("Directive").bases("Node").build("value").field("value",o("DirectiveLiteral"));o("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,a["use strict"]);o("InterpreterDirective").bases("Node").build("value").field("value",String);o("BlockStatement").bases("Statement").build("body").field("body",[o("Statement")]).field("directives",[o("Directive")],a.emptyArray);o("Program").bases("Node").build("body").field("body",[o("Statement")]).field("directives",[o("Directive")],a.emptyArray).field("interpreter",d(o("InterpreterDirective"),null),a["null"]);o("StringLiteral").bases("Literal").build("value").field("value",String);o("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",d(String,null),a["null"]).field("extra",{rawValue:Number,raw:String},(function getDefault(){return{rawValue:this.value,raw:this.value+""}}));o("BigIntLiteral").bases("Literal").build("value").field("value",d(String,Number)).field("extra",{rawValue:String,raw:String},(function getDefault(){return{rawValue:String(this.value),raw:this.value+"n"}}));o("NullLiteral").bases("Literal").build().field("value",null,a["null"]);o("BooleanLiteral").bases("Literal").build("value").field("value",Boolean);o("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,(function(){return new RegExp(this.pattern,this.flags)}));var h=d(o("Property"),o("ObjectMethod"),o("ObjectProperty"),o("SpreadProperty"),o("SpreadElement"));o("ObjectExpression").bases("Expression").build("properties").field("properties",[h]);o("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",d("method","get","set")).field("key",d(o("Literal"),o("Identifier"),o("Expression"))).field("params",[o("Pattern")]).field("body",o("BlockStatement")).field("computed",Boolean,a["false"]).field("generator",Boolean,a["false"]).field("async",Boolean,a["false"]).field("accessibility",d(o("Literal"),null),a["null"]).field("decorators",d([o("Decorator")],null),a["null"]);o("ObjectProperty").bases("Node").build("key","value").field("key",d(o("Literal"),o("Identifier"),o("Expression"))).field("value",d(o("Expression"),o("Pattern"))).field("accessibility",d(o("Literal"),null),a["null"]).field("computed",Boolean,a["false"]);var m=d(o("MethodDefinition"),o("VariableDeclarator"),o("ClassPropertyDefinition"),o("ClassProperty"),o("ClassPrivateProperty"),o("ClassMethod"),o("ClassPrivateMethod"));o("ClassBody").bases("Declaration").build("body").field("body",[m]);o("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",d(o("Literal"),o("Identifier"),o("Expression")));o("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",o("PrivateName"));["ClassMethod","ClassPrivateMethod"].forEach((function(t){o(t).field("kind",d("get","set","method","constructor"),(function(){return"method"})).field("body",o("BlockStatement")).field("computed",Boolean,a["false"]).field("static",d(Boolean,null),a["null"]).field("abstract",d(Boolean,null),a["null"]).field("access",d("public","private","protected",null),a["null"]).field("accessibility",d("public","private","protected",null),a["null"]).field("decorators",d([o("Decorator")],null),a["null"]).field("optional",d(Boolean,null),a["null"])}));o("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",o("PrivateName")).field("value",d(o("Expression"),null),a["null"]);o("PrivateName").bases("Expression","Pattern").build("id").field("id",o("Identifier"));var g=d(o("Property"),o("PropertyPattern"),o("SpreadPropertyPattern"),o("SpreadProperty"),o("ObjectProperty"),o("RestProperty"));o("ObjectPattern").bases("Pattern").build("properties").field("properties",[g]).field("decorators",d([o("Decorator")],null),a["null"]);o("SpreadProperty").bases("Node").build("argument").field("argument",o("Expression"));o("RestProperty").bases("Node").build("argument").field("argument",o("Expression"));o("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",d(o("VariableDeclaration"),o("Expression"))).field("right",o("Expression")).field("body",o("Statement"));o("Import").bases("Expression").build()}i["default"]=default_1;t.exports=i["default"]},2262:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(5382));var u=o.__importDefault(a(368));function default_1(t){t.use(p.default);t.use(u.default)}i["default"]=default_1;t.exports=i["default"]},6604:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(4631));function default_1(t){var i=t.use(p.default);var a=i.Type;var o=a.def;var l=a.or;var d=t.use(u.default);var h=d.defaults;var m=d.geq;o("Printable").field("loc",l(o("SourceLocation"),null),h["null"],true);o("Node").bases("Printable").field("type",String).field("comments",l([o("Comment")],null),h["null"],true);o("SourceLocation").field("start",o("Position")).field("end",o("Position")).field("source",l(String,null),h["null"]);o("Position").field("line",m(1)).field("column",m(0));o("File").bases("Node").build("program","name").field("program",o("Program")).field("name",l(String,null),h["null"]);o("Program").bases("Node").build("body").field("body",[o("Statement")]);o("Function").bases("Node").field("id",l(o("Identifier"),null),h["null"]).field("params",[o("Pattern")]).field("body",o("BlockStatement")).field("generator",Boolean,h["false"]).field("async",Boolean,h["false"]);o("Statement").bases("Node");o("EmptyStatement").bases("Statement").build();o("BlockStatement").bases("Statement").build("body").field("body",[o("Statement")]);o("ExpressionStatement").bases("Statement").build("expression").field("expression",o("Expression"));o("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",o("Expression")).field("consequent",o("Statement")).field("alternate",l(o("Statement"),null),h["null"]);o("LabeledStatement").bases("Statement").build("label","body").field("label",o("Identifier")).field("body",o("Statement"));o("BreakStatement").bases("Statement").build("label").field("label",l(o("Identifier"),null),h["null"]);o("ContinueStatement").bases("Statement").build("label").field("label",l(o("Identifier"),null),h["null"]);o("WithStatement").bases("Statement").build("object","body").field("object",o("Expression")).field("body",o("Statement"));o("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",o("Expression")).field("cases",[o("SwitchCase")]).field("lexical",Boolean,h["false"]);o("ReturnStatement").bases("Statement").build("argument").field("argument",l(o("Expression"),null));o("ThrowStatement").bases("Statement").build("argument").field("argument",o("Expression"));o("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",o("BlockStatement")).field("handler",l(o("CatchClause"),null),(function(){return this.handlers&&this.handlers[0]||null})).field("handlers",[o("CatchClause")],(function(){return this.handler?[this.handler]:[]}),true).field("guardedHandlers",[o("CatchClause")],h.emptyArray).field("finalizer",l(o("BlockStatement"),null),h["null"]);o("CatchClause").bases("Node").build("param","guard","body").field("param",l(o("Pattern"),null),h["null"]).field("guard",l(o("Expression"),null),h["null"]).field("body",o("BlockStatement"));o("WhileStatement").bases("Statement").build("test","body").field("test",o("Expression")).field("body",o("Statement"));o("DoWhileStatement").bases("Statement").build("body","test").field("body",o("Statement")).field("test",o("Expression"));o("ForStatement").bases("Statement").build("init","test","update","body").field("init",l(o("VariableDeclaration"),o("Expression"),null)).field("test",l(o("Expression"),null)).field("update",l(o("Expression"),null)).field("body",o("Statement"));o("ForInStatement").bases("Statement").build("left","right","body").field("left",l(o("VariableDeclaration"),o("Expression"))).field("right",o("Expression")).field("body",o("Statement"));o("DebuggerStatement").bases("Statement").build();o("Declaration").bases("Statement");o("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",o("Identifier"));o("FunctionExpression").bases("Function","Expression").build("id","params","body");o("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",l("var","let","const")).field("declarations",[o("VariableDeclarator")]);o("VariableDeclarator").bases("Node").build("id","init").field("id",o("Pattern")).field("init",l(o("Expression"),null),h["null"]);o("Expression").bases("Node");o("ThisExpression").bases("Expression").build();o("ArrayExpression").bases("Expression").build("elements").field("elements",[l(o("Expression"),null)]);o("ObjectExpression").bases("Expression").build("properties").field("properties",[o("Property")]);o("Property").bases("Node").build("kind","key","value").field("kind",l("init","get","set")).field("key",l(o("Literal"),o("Identifier"))).field("value",o("Expression"));o("SequenceExpression").bases("Expression").build("expressions").field("expressions",[o("Expression")]);var g=l("-","+","!","~","typeof","void","delete");o("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",g).field("argument",o("Expression")).field("prefix",Boolean,h["true"]);var E=l("==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","**","&","|","^","in","instanceof");o("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",E).field("left",o("Expression")).field("right",o("Expression"));var v=l("=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&=");o("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",v).field("left",l(o("Pattern"),o("MemberExpression"))).field("right",o("Expression"));var A=l("++","--");o("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",A).field("argument",o("Expression")).field("prefix",Boolean);var y=l("||","&&");o("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",y).field("left",o("Expression")).field("right",o("Expression"));o("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",o("Expression")).field("consequent",o("Expression")).field("alternate",o("Expression"));o("NewExpression").bases("Expression").build("callee","arguments").field("callee",o("Expression")).field("arguments",[o("Expression")]);o("CallExpression").bases("Expression").build("callee","arguments").field("callee",o("Expression")).field("arguments",[o("Expression")]);o("MemberExpression").bases("Expression").build("object","property","computed").field("object",o("Expression")).field("property",l(o("Identifier"),o("Expression"))).field("computed",Boolean,(function(){var t=this.property.type;if(t==="Literal"||t==="MemberExpression"||t==="BinaryExpression"){return true}return false}));o("Pattern").bases("Node");o("SwitchCase").bases("Node").build("test","consequent").field("test",l(o("Expression"),null)).field("consequent",[o("Statement")]);o("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,h["false"]);o("Literal").bases("Expression").build("value").field("value",l(String,Boolean,null,Number,RegExp)).field("regex",l({pattern:String,flags:String},null),(function(){if(this.value instanceof RegExp){var t="";if(this.value.ignoreCase)t+="i";if(this.value.multiline)t+="m";if(this.value.global)t+="g";return{pattern:this.value.source,flags:t}}return null}));o("Comment").bases("Printable").field("value",String).field("leading",Boolean,h["true"]).field("trailing",Boolean,h["false"])}i["default"]=default_1;t.exports=i["default"]},2207:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(4631));var l=o.__importDefault(a(6604));function default_1(t){t.use(l.default);var i=t.use(p.default);var a=i.Type;var o=i.Type.def;var d=a.or;var h=t.use(u.default);var m=h.defaults;o("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,m["true"]);o("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,m["true"]);var g=d("||","&&","??");o("LogicalExpression").field("operator",g)}i["default"]=default_1;t.exports=i["default"]},8975:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(5351));var u=o.__importDefault(a(2619));function default_1(t){t.use(p.default);var i=t.use(u.default);var a=i.Type.def;a("ImportExpression").bases("Expression").build("source").field("source",a("Expression"))}i["default"]=default_1;t.exports=i["default"]},8127:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(6604));var u=o.__importDefault(a(2619));var l=o.__importDefault(a(4631));function default_1(t){t.use(p.default);var i=t.use(u.default);var a=i.Type.def;var o=i.Type.or;var d=t.use(l.default).defaults;a("Function").field("generator",Boolean,d["false"]).field("expression",Boolean,d["false"]).field("defaults",[o(a("Expression"),null)],d.emptyArray).field("rest",o(a("Identifier"),null),d["null"]);a("RestElement").bases("Pattern").build("argument").field("argument",a("Pattern")).field("typeAnnotation",o(a("TypeAnnotation"),a("TSTypeAnnotation"),null),d["null"]);a("SpreadElementPattern").bases("Pattern").build("argument").field("argument",a("Pattern"));a("FunctionDeclaration").build("id","params","body","generator","expression");a("FunctionExpression").build("id","params","body","generator","expression");a("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,d["null"]).field("body",o(a("BlockStatement"),a("Expression"))).field("generator",false,d["false"]);a("ForOfStatement").bases("Statement").build("left","right","body").field("left",o(a("VariableDeclaration"),a("Pattern"))).field("right",a("Expression")).field("body",a("Statement"));a("YieldExpression").bases("Expression").build("argument","delegate").field("argument",o(a("Expression"),null)).field("delegate",Boolean,d["false"]);a("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",a("Expression")).field("blocks",[a("ComprehensionBlock")]).field("filter",o(a("Expression"),null));a("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",a("Expression")).field("blocks",[a("ComprehensionBlock")]).field("filter",o(a("Expression"),null));a("ComprehensionBlock").bases("Node").build("left","right","each").field("left",a("Pattern")).field("right",a("Expression")).field("each",Boolean);a("Property").field("key",o(a("Literal"),a("Identifier"),a("Expression"))).field("value",o(a("Expression"),a("Pattern"))).field("method",Boolean,d["false"]).field("shorthand",Boolean,d["false"]).field("computed",Boolean,d["false"]);a("ObjectProperty").field("shorthand",Boolean,d["false"]);a("PropertyPattern").bases("Pattern").build("key","pattern").field("key",o(a("Literal"),a("Identifier"),a("Expression"))).field("pattern",a("Pattern")).field("computed",Boolean,d["false"]);a("ObjectPattern").bases("Pattern").build("properties").field("properties",[o(a("PropertyPattern"),a("Property"))]);a("ArrayPattern").bases("Pattern").build("elements").field("elements",[o(a("Pattern"),null)]);a("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",o("constructor","method","get","set")).field("key",a("Expression")).field("value",a("Function")).field("computed",Boolean,d["false"]).field("static",Boolean,d["false"]);a("SpreadElement").bases("Node").build("argument").field("argument",a("Expression"));a("ArrayExpression").field("elements",[o(a("Expression"),a("SpreadElement"),a("RestElement"),null)]);a("NewExpression").field("arguments",[o(a("Expression"),a("SpreadElement"))]);a("CallExpression").field("arguments",[o(a("Expression"),a("SpreadElement"))]);a("AssignmentPattern").bases("Pattern").build("left","right").field("left",a("Pattern")).field("right",a("Expression"));var h=o(a("MethodDefinition"),a("VariableDeclarator"),a("ClassPropertyDefinition"),a("ClassProperty"));a("ClassProperty").bases("Declaration").build("key").field("key",o(a("Literal"),a("Identifier"),a("Expression"))).field("computed",Boolean,d["false"]);a("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",h);a("ClassBody").bases("Declaration").build("body").field("body",[h]);a("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",o(a("Identifier"),null)).field("body",a("ClassBody")).field("superClass",o(a("Expression"),null),d["null"]);a("ClassExpression").bases("Expression").build("id","body","superClass").field("id",o(a("Identifier"),null),d["null"]).field("body",a("ClassBody")).field("superClass",o(a("Expression"),null),d["null"]);a("Specifier").bases("Node");a("ModuleSpecifier").bases("Specifier").field("local",o(a("Identifier"),null),d["null"]).field("id",o(a("Identifier"),null),d["null"]).field("name",o(a("Identifier"),null),d["null"]);a("ImportSpecifier").bases("ModuleSpecifier").build("id","name");a("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("id");a("ImportDefaultSpecifier").bases("ModuleSpecifier").build("id");a("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[o(a("ImportSpecifier"),a("ImportNamespaceSpecifier"),a("ImportDefaultSpecifier"))],d.emptyArray).field("source",a("Literal")).field("importKind",o("value","type"),(function(){return"value"}));a("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",a("Expression")).field("quasi",a("TemplateLiteral"));a("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[a("TemplateElement")]).field("expressions",[a("Expression")]);a("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean)}i["default"]=default_1;t.exports=i["default"]},5351:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(8127));var u=o.__importDefault(a(2619));var l=o.__importDefault(a(4631));function default_1(t){t.use(p.default);var i=t.use(u.default);var a=i.Type.def;var o=i.Type.or;var d=t.use(l.default).defaults;a("Function").field("async",Boolean,d["false"]);a("SpreadProperty").bases("Node").build("argument").field("argument",a("Expression"));a("ObjectExpression").field("properties",[o(a("Property"),a("SpreadProperty"),a("SpreadElement"))]);a("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",a("Pattern"));a("ObjectPattern").field("properties",[o(a("Property"),a("PropertyPattern"),a("SpreadPropertyPattern"))]);a("AwaitExpression").bases("Expression").build("argument","all").field("argument",o(a("Expression"),null)).field("all",Boolean,d["false"])}i["default"]=default_1;t.exports=i["default"]},6019:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(5351));var u=o.__importDefault(a(2619));var l=o.__importDefault(a(4631));function default_1(t){t.use(p.default);var i=t.use(u.default);var a=t.use(l.default).defaults;var o=i.Type.def;var d=i.Type.or;o("VariableDeclaration").field("declarations",[d(o("VariableDeclarator"),o("Identifier"))]);o("Property").field("value",d(o("Expression"),o("Pattern")));o("ArrayPattern").field("elements",[d(o("Pattern"),o("SpreadElement"),null)]);o("ObjectPattern").field("properties",[d(o("Property"),o("PropertyPattern"),o("SpreadPropertyPattern"),o("SpreadProperty"))]);o("ExportSpecifier").bases("ModuleSpecifier").build("id","name");o("ExportBatchSpecifier").bases("Specifier").build();o("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",d(o("Declaration"),o("Expression"),null)).field("specifiers",[d(o("ExportSpecifier"),o("ExportBatchSpecifier"))],a.emptyArray).field("source",d(o("Literal"),null),a["null"]);o("Block").bases("Comment").build("value","leading","trailing");o("Line").bases("Comment").build("value","leading","trailing")}i["default"]=default_1;t.exports=i["default"]},368:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(5351));var u=o.__importDefault(a(6278));var l=o.__importDefault(a(2619));var d=o.__importDefault(a(4631));function default_1(t){t.use(p.default);t.use(u.default);var i=t.use(l.default);var a=i.Type.def;var o=i.Type.or;var h=t.use(d.default).defaults;a("Flow").bases("Node");a("FlowType").bases("Flow");a("AnyTypeAnnotation").bases("FlowType").build();a("EmptyTypeAnnotation").bases("FlowType").build();a("MixedTypeAnnotation").bases("FlowType").build();a("VoidTypeAnnotation").bases("FlowType").build();a("NumberTypeAnnotation").bases("FlowType").build();a("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String);a("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String);a("StringTypeAnnotation").bases("FlowType").build();a("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String);a("BooleanTypeAnnotation").bases("FlowType").build();a("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String);a("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",a("FlowType"));a("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",a("FlowType"));a("NullLiteralTypeAnnotation").bases("FlowType").build();a("NullTypeAnnotation").bases("FlowType").build();a("ThisTypeAnnotation").bases("FlowType").build();a("ExistsTypeAnnotation").bases("FlowType").build();a("ExistentialTypeParam").bases("FlowType").build();a("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[a("FunctionTypeParam")]).field("returnType",a("FlowType")).field("rest",o(a("FunctionTypeParam"),null)).field("typeParameters",o(a("TypeParameterDeclaration"),null));a("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",a("Identifier")).field("typeAnnotation",a("FlowType")).field("optional",Boolean);a("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",a("FlowType"));a("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[o(a("ObjectTypeProperty"),a("ObjectTypeSpreadProperty"))]).field("indexers",[a("ObjectTypeIndexer")],h.emptyArray).field("callProperties",[a("ObjectTypeCallProperty")],h.emptyArray).field("inexact",o(Boolean,void 0),h["undefined"]).field("exact",Boolean,h["false"]).field("internalSlots",[a("ObjectTypeInternalSlot")],h.emptyArray);a("Variance").bases("Node").build("kind").field("kind",o("plus","minus"));var m=o(a("Variance"),"plus","minus",null);a("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",o(a("Literal"),a("Identifier"))).field("value",a("FlowType")).field("optional",Boolean).field("variance",m,h["null"]);a("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",a("Identifier")).field("key",a("FlowType")).field("value",a("FlowType")).field("variance",m,h["null"]);a("ObjectTypeCallProperty").bases("Node").build("value").field("value",a("FunctionTypeAnnotation")).field("static",Boolean,h["false"]);a("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",o(a("Identifier"),a("QualifiedTypeIdentifier"))).field("id",a("Identifier"));a("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",o(a("Identifier"),a("QualifiedTypeIdentifier"))).field("typeParameters",o(a("TypeParameterInstantiation"),null));a("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",a("Identifier")).field("property",o(a("MemberTypeAnnotation"),a("GenericTypeAnnotation")));a("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[a("FlowType")]);a("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[a("FlowType")]);a("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",a("FlowType"));a("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",a("FlowType"));a("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",a("Identifier")).field("value",a("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean);a("TypeParameterDeclaration").bases("Node").build("params").field("params",[a("TypeParameter")]);a("TypeParameterInstantiation").bases("Node").build("params").field("params",[a("FlowType")]);a("TypeParameter").bases("FlowType").build("name","variance","bound").field("name",String).field("variance",m,h["null"]).field("bound",o(a("TypeAnnotation"),null),h["null"]);a("ClassProperty").field("variance",m,h["null"]);a("ClassImplements").bases("Node").build("id").field("id",a("Identifier")).field("superClass",o(a("Expression"),null),h["null"]).field("typeParameters",o(a("TypeParameterInstantiation"),null),h["null"]);a("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",a("ObjectTypeAnnotation")).field("extends",o([a("InterfaceExtends")],null),h["null"]);a("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",a("Identifier")).field("typeParameters",o(a("TypeParameterDeclaration"),null),h["null"]).field("body",a("ObjectTypeAnnotation")).field("extends",[a("InterfaceExtends")]);a("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends");a("InterfaceExtends").bases("Node").build("id").field("id",a("Identifier")).field("typeParameters",o(a("TypeParameterInstantiation"),null),h["null"]);a("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",a("Identifier")).field("typeParameters",o(a("TypeParameterDeclaration"),null)).field("right",a("FlowType"));a("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",a("Identifier")).field("typeParameters",o(a("TypeParameterDeclaration"),null)).field("impltype",a("FlowType")).field("supertype",a("FlowType"));a("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right");a("DeclareOpaqueType").bases("TypeAlias").build("id","typeParameters","supertype");a("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",a("Expression")).field("typeAnnotation",a("TypeAnnotation"));a("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[a("FlowType")]);a("DeclareVariable").bases("Statement").build("id").field("id",a("Identifier"));a("DeclareFunction").bases("Statement").build("id").field("id",a("Identifier"));a("DeclareClass").bases("InterfaceDeclaration").build("id");a("DeclareModule").bases("Statement").build("id","body").field("id",o(a("Identifier"),a("Literal"))).field("body",a("BlockStatement"));a("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",a("TypeAnnotation"));a("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",o(a("DeclareVariable"),a("DeclareFunction"),a("DeclareClass"),a("FlowType"),null)).field("specifiers",[o(a("ExportSpecifier"),a("ExportBatchSpecifier"))],h.emptyArray).field("source",o(a("Literal"),null),h["null"]);a("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",o(a("Literal"),null),h["null"]);a("FlowPredicate").bases("Flow");a("InferredPredicate").bases("FlowPredicate").build();a("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",a("Expression"));a("CallExpression").field("typeArguments",o(null,a("TypeParameterInstantiation")),h["null"]);a("NewExpression").field("typeArguments",o(null,a("TypeParameterInstantiation")),h["null"])}i["default"]=default_1;t.exports=i["default"]},7572:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(5351));var u=o.__importDefault(a(2619));var l=o.__importDefault(a(4631));function default_1(t){t.use(p.default);var i=t.use(u.default);var a=i.Type.def;var o=i.Type.or;var d=t.use(l.default).defaults;a("JSXAttribute").bases("Node").build("name","value").field("name",o(a("JSXIdentifier"),a("JSXNamespacedName"))).field("value",o(a("Literal"),a("JSXExpressionContainer"),null),d["null"]);a("JSXIdentifier").bases("Identifier").build("name").field("name",String);a("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",a("JSXIdentifier")).field("name",a("JSXIdentifier"));a("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",o(a("JSXIdentifier"),a("JSXMemberExpression"))).field("property",a("JSXIdentifier")).field("computed",Boolean,d.false);var h=o(a("JSXIdentifier"),a("JSXNamespacedName"),a("JSXMemberExpression"));a("JSXSpreadAttribute").bases("Node").build("argument").field("argument",a("Expression"));var m=[o(a("JSXAttribute"),a("JSXSpreadAttribute"))];a("JSXExpressionContainer").bases("Expression").build("expression").field("expression",a("Expression"));a("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",a("JSXOpeningElement")).field("closingElement",o(a("JSXClosingElement"),null),d["null"]).field("children",[o(a("JSXElement"),a("JSXExpressionContainer"),a("JSXFragment"),a("JSXText"),a("Literal"))],d.emptyArray).field("name",h,(function(){return this.openingElement.name}),true).field("selfClosing",Boolean,(function(){return this.openingElement.selfClosing}),true).field("attributes",m,(function(){return this.openingElement.attributes}),true);a("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",h).field("attributes",m,d.emptyArray).field("selfClosing",Boolean,d["false"]);a("JSXClosingElement").bases("Node").build("name").field("name",h);a("JSXFragment").bases("Expression").build("openingElement","closingElement","children").field("openingElement",a("JSXOpeningFragment")).field("closingElement",a("JSXClosingFragment")).field("children",[o(a("JSXElement"),a("JSXExpressionContainer"),a("JSXFragment"),a("JSXText"),a("Literal"))],d.emptyArray);a("JSXOpeningFragment").bases("Node").build();a("JSXClosingFragment").bases("Node").build();a("JSXText").bases("Literal").build("value").field("value",String);a("JSXEmptyExpression").bases("Expression").build();a("JSXSpreadChild").bases("Expression").build("expression").field("expression",a("Expression"))}i["default"]=default_1;t.exports=i["default"]},6278:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(4631));function default_1(t){var i=t.use(p.default);var a=i.Type.def;var o=i.Type.or;var l=t.use(u.default).defaults;var d=o(a("TypeAnnotation"),a("TSTypeAnnotation"),null);var h=o(a("TypeParameterDeclaration"),a("TSTypeParameterDeclaration"),null);a("Identifier").field("typeAnnotation",d,l["null"]);a("ObjectPattern").field("typeAnnotation",d,l["null"]);a("Function").field("returnType",d,l["null"]).field("typeParameters",h,l["null"]);a("ClassProperty").build("key","value","typeAnnotation","static").field("value",o(a("Expression"),null)).field("static",Boolean,l["false"]).field("typeAnnotation",d,l["null"]);["ClassDeclaration","ClassExpression"].forEach((function(t){a(t).field("typeParameters",h,l["null"]).field("superTypeParameters",o(a("TypeParameterInstantiation"),a("TSTypeParameterInstantiation"),null),l["null"]).field("implements",o([a("ClassImplements")],[a("TSExpressionWithTypeArguments")]),l.emptyArray)}))}i["default"]=default_1;t.exports=i["default"]},6743:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(5382));var u=o.__importDefault(a(6278));var l=o.__importDefault(a(2619));var d=o.__importDefault(a(4631));function default_1(t){t.use(p.default);t.use(u.default);var i=t.use(l.default);var a=i.namedTypes;var o=i.Type.def;var h=i.Type.or;var m=t.use(d.default).defaults;var g=i.Type.from((function(t,i){if(a.StringLiteral&&a.StringLiteral.check(t,i)){return true}if(a.Literal&&a.Literal.check(t,i)&&typeof t.value==="string"){return true}return false}),"StringLiteral");o("TSType").bases("Node");var E=h(o("Identifier"),o("TSQualifiedName"));o("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",E);o("TSHasOptionalTypeParameterInstantiation").field("typeParameters",h(o("TSTypeParameterInstantiation"),null),m["null"]);o("TSHasOptionalTypeParameters").field("typeParameters",h(o("TSTypeParameterDeclaration"),null,void 0),m["null"]);o("TSHasOptionalTypeAnnotation").field("typeAnnotation",h(o("TSTypeAnnotation"),null),m["null"]);o("TSQualifiedName").bases("Node").build("left","right").field("left",E).field("right",E);o("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",o("Expression")).field("typeAnnotation",o("TSType")).field("extra",h({parenthesized:Boolean},null),m["null"]);o("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",o("Expression"));["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSThisType"].forEach((function(t){o(t).bases("TSType").build()}));o("TSArrayType").bases("TSType").build("elementType").field("elementType",o("TSType"));o("TSLiteralType").bases("TSType").build("literal").field("literal",h(o("NumericLiteral"),o("StringLiteral"),o("BooleanLiteral"),o("TemplateLiteral"),o("UnaryExpression")));["TSUnionType","TSIntersectionType"].forEach((function(t){o(t).bases("TSType").build("types").field("types",[o("TSType")])}));o("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",o("TSType")).field("extendsType",o("TSType")).field("trueType",o("TSType")).field("falseType",o("TSType"));o("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",o("TSTypeParameter"));o("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",o("TSType"));var v=[h(o("Identifier"),o("RestElement"),o("ArrayPattern"),o("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach((function(t){o(t).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",v)}));o("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,m["false"]).field("async",Boolean,m["false"]).field("generator",Boolean,m["false"]).field("id",h(o("Identifier"),null),m["null"]).field("params",[o("Pattern")]).field("returnType",h(o("TSTypeAnnotation"),o("Noop"),null),m["null"]);o("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,m["false"]).field("generator",Boolean,m["false"]).field("params",[o("Pattern")]).field("abstract",Boolean,m["false"]).field("accessibility",h("public","private","protected",void 0),m["undefined"]).field("static",Boolean,m["false"]).field("computed",Boolean,m["false"]).field("optional",Boolean,m["false"]).field("key",h(o("Identifier"),o("StringLiteral"),o("NumericLiteral"),o("Expression"))).field("kind",h("get","set","method","constructor"),(function getDefault(){return"method"})).field("access",h("public","private","protected",void 0),m["undefined"]).field("decorators",h([o("Decorator")],null),m["null"]).field("returnType",h(o("TSTypeAnnotation"),o("Noop"),null),m["null"]);o("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",h(Boolean,"+","-"),m["false"]).field("typeParameter",o("TSTypeParameter")).field("optional",h(Boolean,"+","-"),m["false"]).field("typeAnnotation",h(o("TSType"),null),m["null"]);o("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[h(o("TSType"),o("TSNamedTupleMember"))]);o("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",o("Identifier")).field("optional",Boolean,m["false"]).field("elementType",o("TSType"));o("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",o("TSType"));o("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",o("TSType"));o("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",o("TSType")).field("indexType",o("TSType"));o("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",o("TSType"));o("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",h(o("TSType"),o("TSTypeAnnotation")));o("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[o("Identifier")]).field("readonly",Boolean,m["false"]);o("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",o("Expression")).field("computed",Boolean,m["false"]).field("readonly",Boolean,m["false"]).field("optional",Boolean,m["false"]).field("initializer",h(o("Expression"),null),m["null"]);o("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",o("Expression")).field("computed",Boolean,m["false"]).field("optional",Boolean,m["false"]).field("parameters",v);o("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",h(o("Identifier"),o("TSThisType"))).field("typeAnnotation",h(o("TSTypeAnnotation"),null),m["null"]).field("asserts",Boolean,m["false"]);["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach((function(t){o(t).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",v)}));o("TSEnumMember").bases("Node").build("id","initializer").field("id",h(o("Identifier"),g)).field("initializer",h(o("Expression"),null),m["null"]);o("TSTypeQuery").bases("TSType").build("exprName").field("exprName",h(E,o("TSImportType")));var A=h(o("TSCallSignatureDeclaration"),o("TSConstructSignatureDeclaration"),o("TSIndexSignature"),o("TSMethodSignature"),o("TSPropertySignature"));o("TSTypeLiteral").bases("TSType").build("members").field("members",[A]);o("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",String).field("constraint",h(o("TSType"),void 0),m["undefined"]).field("default",h(o("TSType"),void 0),m["undefined"]);o("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",o("TSType")).field("expression",o("Expression")).field("extra",h({parenthesized:Boolean},null),m["null"]);o("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[o("TSTypeParameter")]);o("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[o("TSType")]);o("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",o("Identifier")).field("const",Boolean,m["false"]).field("declare",Boolean,m["false"]).field("members",[o("TSEnumMember")]).field("initializer",h(o("Expression"),null),m["null"]);o("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",o("Identifier")).field("declare",Boolean,m["false"]).field("typeAnnotation",o("TSType"));o("TSModuleBlock").bases("Node").build("body").field("body",[o("Statement")]);o("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",h(g,E)).field("declare",Boolean,m["false"]).field("global",Boolean,m["false"]).field("body",h(o("TSModuleBlock"),o("TSModuleDeclaration"),null),m["null"]);o("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",g).field("qualifier",h(E,void 0),m["undefined"]);o("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",o("Identifier")).field("isExport",Boolean,m["false"]).field("moduleReference",h(E,o("TSExternalModuleReference")));o("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",g);o("TSExportAssignment").bases("Statement").build("expression").field("expression",o("Expression"));o("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",o("Identifier"));o("TSInterfaceBody").bases("Node").build("body").field("body",[A]);o("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",E);o("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",E).field("declare",Boolean,m["false"]).field("extends",h([o("TSExpressionWithTypeArguments")],null),m["null"]).field("body",o("TSInterfaceBody"));o("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",h("public","private","protected",void 0),m["undefined"]).field("readonly",Boolean,m["false"]).field("parameter",h(o("Identifier"),o("AssignmentPattern")));o("ClassProperty").field("access",h("public","private","protected",void 0),m["undefined"]);o("ClassBody").field("body",[h(o("MethodDefinition"),o("VariableDeclarator"),o("ClassPropertyDefinition"),o("ClassProperty"),o("ClassPrivateProperty"),o("ClassMethod"),o("ClassPrivateMethod"),o("TSDeclareMethod"),A)])}i["default"]=default_1;t.exports=i["default"]},253:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(6525));var l=o.__importDefault(a(8636));var d=o.__importDefault(a(8770));var h=o.__importDefault(a(5694));function default_1(t){var i=createFork();var a=i.use(p.default);t.forEach(i.use);a.finalize();var o=i.use(u.default);return{Type:a.Type,builtInTypes:a.builtInTypes,namedTypes:a.namedTypes,builders:a.builders,defineMethod:a.defineMethod,getFieldNames:a.getFieldNames,getFieldValue:a.getFieldValue,eachField:a.eachField,someField:a.someField,getSupertypeNames:a.getSupertypeNames,getBuilderName:a.getBuilderName,astNodesAreEquivalent:i.use(l.default),finalize:a.finalize,Path:i.use(d.default),NodePath:i.use(h.default),PathVisitor:o,use:i.use,visit:o.visit}}i["default"]=default_1;function createFork(){var t=[];var i=[];function use(o){var p=t.indexOf(o);if(p===-1){p=t.length;t.push(o);i[p]=o(a)}return i[p]}var a={use:use};return a}t.exports=i["default"]},4143:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.namedTypes=void 0;var a;(function(t){})(a=i.namedTypes||(i.namedTypes={}))},8636:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));function default_1(t){var i=t.use(p.default);var a=i.getFieldNames;var o=i.getFieldValue;var u=i.builtInTypes.array;var l=i.builtInTypes.object;var d=i.builtInTypes.Date;var h=i.builtInTypes.RegExp;var m=Object.prototype.hasOwnProperty;function astNodesAreEquivalent(t,i,a){if(u.check(a)){a.length=0}else{a=null}return areEquivalent(t,i,a)}astNodesAreEquivalent.assert=function(t,i){var a=[];if(!astNodesAreEquivalent(t,i,a)){if(a.length===0){if(t!==i){throw new Error("Nodes must be equal")}}else{throw new Error("Nodes differ in the following path: "+a.map(subscriptForProperty).join(""))}}};function subscriptForProperty(t){if(/[_$a-z][_$a-z0-9]*/i.test(t)){return"."+t}return"["+JSON.stringify(t)+"]"}function areEquivalent(t,i,a){if(t===i){return true}if(u.check(t)){return arraysAreEquivalent(t,i,a)}if(l.check(t)){return objectsAreEquivalent(t,i,a)}if(d.check(t)){return d.check(i)&&+t===+i}if(h.check(t)){return h.check(i)&&(t.source===i.source&&t.global===i.global&&t.multiline===i.multiline&&t.ignoreCase===i.ignoreCase)}return t==i}function arraysAreEquivalent(t,i,a){u.assert(t);var o=t.length;if(!u.check(i)||i.length!==o){if(a){a.push("length")}return false}for(var p=0;p{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(8770));var l=o.__importDefault(a(9733));function nodePathPlugin(t){var i=t.use(p.default);var a=i.namedTypes;var o=i.builders;var d=i.builtInTypes.number;var h=i.builtInTypes.array;var m=t.use(u.default);var g=t.use(l.default);var E=function NodePath(t,i,a){if(!(this instanceof NodePath)){throw new Error("NodePath constructor cannot be invoked without 'new'")}m.call(this,t,i,a)};var v=E.prototype=Object.create(m.prototype,{constructor:{value:E,enumerable:false,writable:true,configurable:true}});Object.defineProperties(v,{node:{get:function(){Object.defineProperty(this,"node",{configurable:true,value:this._computeNode()});return this.node}},parent:{get:function(){Object.defineProperty(this,"parent",{configurable:true,value:this._computeParent()});return this.parent}},scope:{get:function(){Object.defineProperty(this,"scope",{configurable:true,value:this._computeScope()});return this.scope}}});v.replace=function(){delete this.node;delete this.parent;delete this.scope;return m.prototype.replace.apply(this,arguments)};v.prune=function(){var t=this.parent;this.replace();return cleanUpNodesAfterPrune(t)};v._computeNode=function(){var t=this.value;if(a.Node.check(t)){return t}var i=this.parentPath;return i&&i.node||null};v._computeParent=function(){var t=this.value;var i=this.parentPath;if(!a.Node.check(t)){while(i&&!a.Node.check(i.value)){i=i.parentPath}if(i){i=i.parentPath}}while(i&&!a.Node.check(i.value)){i=i.parentPath}return i||null};v._computeScope=function(){var t=this.value;var i=this.parentPath;var o=i&&i.scope;if(a.Node.check(t)&&g.isEstablishedBy(t)){o=new g(this,o)}return o||null};v.getValueProperty=function(t){return i.getFieldValue(this.value,t)};v.needsParens=function(t){var i=this.parentPath;if(!i){return false}var o=this.value;if(!a.Expression.check(o)){return false}if(o.type==="Identifier"){return false}while(!a.Node.check(i.value)){i=i.parentPath;if(!i){return false}}var p=i.value;switch(o.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return p.type==="MemberExpression"&&this.name==="object"&&p.object===o;case"BinaryExpression":case"LogicalExpression":switch(p.type){case"CallExpression":return this.name==="callee"&&p.callee===o;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return true;case"MemberExpression":return this.name==="object"&&p.object===o;case"BinaryExpression":case"LogicalExpression":{var u=o;var l=p.operator;var h=A[l];var m=u.operator;var g=A[m];if(h>g){return true}if(h===g&&this.name==="right"){if(p.right!==u){throw new Error("Nodes must be equal")}return true}}default:return false}case"SequenceExpression":switch(p.type){case"ForStatement":return false;case"ExpressionStatement":return this.name!=="expression";default:return true}case"YieldExpression":switch(p.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return true;default:return false}case"Literal":return p.type==="MemberExpression"&&d.check(o.value)&&this.name==="object"&&p.object===o;case"AssignmentExpression":case"ConditionalExpression":switch(p.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return true;case"CallExpression":return this.name==="callee"&&p.callee===o;case"ConditionalExpression":return this.name==="test"&&p.test===o;case"MemberExpression":return this.name==="object"&&p.object===o;default:return false}default:if(p.type==="NewExpression"&&this.name==="callee"&&p.callee===o){return containsCallExpression(o)}}if(t!==true&&!this.canBeFirstInStatement()&&this.firstInStatement())return true;return false};function isBinary(t){return a.BinaryExpression.check(t)||a.LogicalExpression.check(t)}function isUnaryLike(t){return a.UnaryExpression.check(t)||a.SpreadElement&&a.SpreadElement.check(t)||a.SpreadProperty&&a.SpreadProperty.check(t)}var A={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach((function(t,i){t.forEach((function(t){A[t]=i}))}));function containsCallExpression(t){if(a.CallExpression.check(t)){return true}if(h.check(t)){return t.some(containsCallExpression)}if(a.Node.check(t)){return i.someField(t,(function(t,i){return containsCallExpression(i)}))}return false}v.canBeFirstInStatement=function(){var t=this.node;return!a.FunctionExpression.check(t)&&!a.ObjectExpression.check(t)};v.firstInStatement=function(){return firstInStatement(this)};function firstInStatement(t){for(var i,o;t.parent;t=t.parent){i=t.node;o=t.parent.node;if(a.BlockStatement.check(o)&&t.parent.name==="body"&&t.name===0){if(o.body[0]!==i){throw new Error("Nodes must be equal")}return true}if(a.ExpressionStatement.check(o)&&t.name==="expression"){if(o.expression!==i){throw new Error("Nodes must be equal")}return true}if(a.SequenceExpression.check(o)&&t.parent.name==="expressions"&&t.name===0){if(o.expressions[0]!==i){throw new Error("Nodes must be equal")}continue}if(a.CallExpression.check(o)&&t.name==="callee"){if(o.callee!==i){throw new Error("Nodes must be equal")}continue}if(a.MemberExpression.check(o)&&t.name==="object"){if(o.object!==i){throw new Error("Nodes must be equal")}continue}if(a.ConditionalExpression.check(o)&&t.name==="test"){if(o.test!==i){throw new Error("Nodes must be equal")}continue}if(isBinary(o)&&t.name==="left"){if(o.left!==i){throw new Error("Nodes must be equal")}continue}if(a.UnaryExpression.check(o)&&!o.prefix&&t.name==="argument"){if(o.argument!==i){throw new Error("Nodes must be equal")}continue}return false}return true}function cleanUpNodesAfterPrune(t){if(a.VariableDeclaration.check(t.node)){var i=t.get("declarations").value;if(!i||i.length===0){return t.prune()}}else if(a.ExpressionStatement.check(t.node)){if(!t.get("expression").value){return t.prune()}}else if(a.IfStatement.check(t.node)){cleanUpIfStatementAfterPrune(t)}return t}function cleanUpIfStatementAfterPrune(t){var i=t.get("test").value;var p=t.get("alternate").value;var u=t.get("consequent").value;if(!u&&!p){var l=o.expressionStatement(i);t.replace(l)}else if(!u&&p){var d=o.unaryExpression("!",i,true);if(a.UnaryExpression.check(i)&&i.operator==="!"){d=i.argument}t.get("test").replace(d);t.get("consequent").replace(p);t.get("alternate").replace()}}return E}i["default"]=nodePathPlugin;t.exports=i["default"]},6525:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(5694));var l=Object.prototype.hasOwnProperty;function pathVisitorPlugin(t){var i=t.use(p.default);var a=t.use(u.default);var o=i.builtInTypes.array;var d=i.builtInTypes.object;var h=i.builtInTypes.function;var m;var g=function PathVisitor(){if(!(this instanceof PathVisitor)){throw new Error("PathVisitor constructor cannot be invoked without 'new'")}this._reusableContextStack=[];this._methodNameTable=computeMethodNameTable(this);this._shouldVisitComments=l.call(this._methodNameTable,"Block")||l.call(this._methodNameTable,"Line");this.Context=makeContextConstructor(this);this._visiting=false;this._changeReported=false};function computeMethodNameTable(t){var a=Object.create(null);for(var o in t){if(/^visit[A-Z]/.test(o)){a[o.slice("visit".length)]=true}}var p=i.computeSupertypeLookupTable(a);var u=Object.create(null);var l=Object.keys(p);var d=l.length;for(var m=0;m{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=Object.prototype;var l=u.hasOwnProperty;function pathPlugin(t){var i=t.use(p.default);var a=i.builtInTypes.array;var o=i.builtInTypes.number;var u=function Path(t,i,a){if(!(this instanceof Path)){throw new Error("Path constructor cannot be invoked without 'new'")}if(i){if(!(i instanceof Path)){throw new Error("")}}else{i=null;a=null}this.value=t;this.parentPath=i;this.name=a;this.__childCache=null};var d=u.prototype;function getChildCache(t){return t.__childCache||(t.__childCache=Object.create(null))}function getChildPath(t,i){var a=getChildCache(t);var o=t.getValueProperty(i);var p=a[i];if(!l.call(a,i)||p.value!==o){p=a[i]=new t.constructor(o,t,i)}return p}d.getValueProperty=function getValueProperty(t){return this.value[t]};d.get=function get(){var t=[];for(var i=0;i=0){p[t.name=l]=t}}else{o[t.name]=t.value;p[t.name]=t}if(o[t.name]!==t.value){throw new Error("")}if(t.parentPath.get(t.name)!==t){throw new Error("")}return t}d.replace=function replace(t){var i=[];var o=this.parentPath.value;var p=getChildCache(this.parentPath);var u=arguments.length;repairRelationshipWithParent(this);if(a.check(o)){var l=o.length;var d=getMoves(this.parentPath,u-1,this.name+1);var h=[this.name,1];for(var m=0;m{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=Object.prototype.hasOwnProperty;function scopePlugin(t){var i=t.use(p.default);var a=i.Type;var o=i.namedTypes;var l=o.Node;var d=o.Expression;var h=i.builtInTypes.array;var m=i.builders;var g=function Scope(t,i){if(!(this instanceof Scope)){throw new Error("Scope constructor cannot be invoked without 'new'")}v.assert(t.value);var a;if(i){if(!(i instanceof Scope)){throw new Error("")}a=i.depth+1}else{i=null;a=0}Object.defineProperties(this,{path:{value:t},node:{value:t.value},isGlobal:{value:!i,enumerable:true},depth:{value:a},parent:{value:i},bindings:{value:{}},types:{value:{}}})};var E=[o.Program,o.Function,o.CatchClause];var v=a.or.apply(a,E);g.isEstablishedBy=function(t){return v.check(t)};var A=g.prototype;A.didScan=false;A.declares=function(t){this.scan();return u.call(this.bindings,t)};A.declaresType=function(t){this.scan();return u.call(this.types,t)};A.declareTemporary=function(t){if(t){if(!/^[a-z$_]/i.test(t)){throw new Error("")}}else{t="t$"}t+=this.depth.toString(36)+"$";this.scan();var a=0;while(this.declares(t+a)){++a}var o=t+a;return this.bindings[o]=i.builders.identifier(o)};A.injectTemporary=function(t,i){t||(t=this.declareTemporary());var a=this.path.get("body");if(o.BlockStatement.check(a.value)){a=a.get("body")}a.unshift(m.variableDeclaration("var",[m.variableDeclarator(t,i||null)]));return t};A.scan=function(t){if(t||!this.didScan){for(var i in this.bindings){delete this.bindings[i]}scanScope(this.path,this.bindings,this.types);this.didScan=true}};A.getBindings=function(){this.scan();return this.bindings};A.getTypes=function(){this.scan();return this.types};function scanScope(t,i,a){var p=t.value;v.assert(p);if(o.CatchClause.check(p)){var u=t.get("param");if(u.value){addPattern(u,i)}}else{recursiveScanScope(t,i,a)}}function recursiveScanScope(t,a,p){var u=t.value;if(t.parent&&o.FunctionExpression.check(t.parent.node)&&t.parent.node.id){addPattern(t.parent.get("id"),a)}if(!u){}else if(h.check(u)){t.each((function(t){recursiveScanChild(t,a,p)}))}else if(o.Function.check(u)){t.get("params").each((function(t){addPattern(t,a)}));recursiveScanChild(t.get("body"),a,p)}else if(o.TypeAlias&&o.TypeAlias.check(u)||o.InterfaceDeclaration&&o.InterfaceDeclaration.check(u)||o.TSTypeAliasDeclaration&&o.TSTypeAliasDeclaration.check(u)||o.TSInterfaceDeclaration&&o.TSInterfaceDeclaration.check(u)){addTypePattern(t.get("id"),p)}else if(o.VariableDeclarator.check(u)){addPattern(t.get("id"),a);recursiveScanChild(t.get("init"),a,p)}else if(u.type==="ImportSpecifier"||u.type==="ImportNamespaceSpecifier"||u.type==="ImportDefaultSpecifier"){addPattern(t.get(u.local?"local":u.name?"name":"id"),a)}else if(l.check(u)&&!d.check(u)){i.eachField(u,(function(i,o){var u=t.get(i);if(!pathHasValue(u,o)){throw new Error("")}recursiveScanChild(u,a,p)}))}}function pathHasValue(t,i){if(t.value===i){return true}if(Array.isArray(t.value)&&t.value.length===0&&Array.isArray(i)&&i.length===0){return true}return false}function recursiveScanChild(t,i,a){var p=t.value;if(!p||d.check(p)){}else if(o.FunctionDeclaration.check(p)&&p.id!==null){addPattern(t.get("id"),i)}else if(o.ClassDeclaration&&o.ClassDeclaration.check(p)){addPattern(t.get("id"),i)}else if(v.check(p)){if(o.CatchClause.check(p)&&o.Identifier.check(p.param)){var l=p.param.name;var h=u.call(i,l);recursiveScanScope(t.get("body"),i,a);if(!h){delete i[l]}}}else{recursiveScanScope(t,i,a)}}function addPattern(t,i){var a=t.value;o.Pattern.assert(a);if(o.Identifier.check(a)){if(u.call(i,a.name)){i[a.name].push(t)}else{i[a.name]=[t]}}else if(o.AssignmentPattern&&o.AssignmentPattern.check(a)){addPattern(t.get("left"),i)}else if(o.ObjectPattern&&o.ObjectPattern.check(a)){t.get("properties").each((function(t){var a=t.value;if(o.Pattern.check(a)){addPattern(t,i)}else if(o.Property.check(a)){addPattern(t.get("value"),i)}else if(o.SpreadProperty&&o.SpreadProperty.check(a)){addPattern(t.get("argument"),i)}}))}else if(o.ArrayPattern&&o.ArrayPattern.check(a)){t.get("elements").each((function(t){var a=t.value;if(o.Pattern.check(a)){addPattern(t,i)}else if(o.SpreadElement&&o.SpreadElement.check(a)){addPattern(t.get("argument"),i)}}))}else if(o.PropertyPattern&&o.PropertyPattern.check(a)){addPattern(t.get("pattern"),i)}else if(o.SpreadElementPattern&&o.SpreadElementPattern.check(a)||o.SpreadPropertyPattern&&o.SpreadPropertyPattern.check(a)){addPattern(t.get("argument"),i)}}function addTypePattern(t,i){var a=t.value;o.Pattern.assert(a);if(o.Identifier.check(a)){if(u.call(i,a.name)){i[a.name].push(t)}else{i[a.name]=[t]}}}A.lookup=function(t){for(var i=this;i;i=i.parent)if(i.declares(t))break;return i};A.lookupType=function(t){for(var i=this;i;i=i.parent)if(i.declaresType(t))break;return i};A.getGlobalScope=function(){var t=this;while(!t.isGlobal)t=t.parent;return t};return g}i["default"]=scopePlugin;t.exports=i["default"]},4631:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));function default_1(t){var i=t.use(p.default);var a=i.Type;var o=i.builtInTypes;var u=o.number;function geq(t){return a.from((function(i){return u.check(i)&&i>=t}),u+" >= "+t)}var l={null:function(){return null},emptyArray:function(){return[]},false:function(){return false},true:function(){return true},undefined:function(){},"use strict":function(){return"use strict"}};var d=a.or(o.string,o.number,o.boolean,o.null,o.undefined);var h=a.from((function(t){if(t===null)return true;var i=typeof t;if(i==="object"||i==="function"){return false}return true}),d.toString());return{geq:geq,defaults:l,isPrimitive:h}}i["default"]=default_1;t.exports=i["default"]},2619:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Def=void 0;var o=a(4351);var p=Object.prototype;var u=p.toString;var l=p.hasOwnProperty;var d=function(){function BaseType(){}BaseType.prototype.assert=function(t,i){if(!this.check(t,i)){var a=shallowStringify(t);throw new Error(a+" does not match type "+this)}return true};BaseType.prototype.arrayOf=function(){var t=this;return new h(t)};return BaseType}();var h=function(t){o.__extends(ArrayType,t);function ArrayType(i){var a=t.call(this)||this;a.elemType=i;a.kind="ArrayType";return a}ArrayType.prototype.toString=function(){return"["+this.elemType+"]"};ArrayType.prototype.check=function(t,i){var a=this;return Array.isArray(t)&&t.every((function(t){return a.elemType.check(t,i)}))};return ArrayType}(d);var m=function(t){o.__extends(IdentityType,t);function IdentityType(i){var a=t.call(this)||this;a.value=i;a.kind="IdentityType";return a}IdentityType.prototype.toString=function(){return String(this.value)};IdentityType.prototype.check=function(t,i){var a=t===this.value;if(!a&&typeof i==="function"){i(this,t)}return a};return IdentityType}(d);var g=function(t){o.__extends(ObjectType,t);function ObjectType(i){var a=t.call(this)||this;a.fields=i;a.kind="ObjectType";return a}ObjectType.prototype.toString=function(){return"{ "+this.fields.join(", ")+" }"};ObjectType.prototype.check=function(t,i){return u.call(t)===u.call({})&&this.fields.every((function(a){return a.type.check(t[a.name],i)}))};return ObjectType}(d);var E=function(t){o.__extends(OrType,t);function OrType(i){var a=t.call(this)||this;a.types=i;a.kind="OrType";return a}OrType.prototype.toString=function(){return this.types.join(" | ")};OrType.prototype.check=function(t,i){return this.types.some((function(a){return a.check(t,i)}))};return OrType}(d);var v=function(t){o.__extends(PredicateType,t);function PredicateType(i,a){var o=t.call(this)||this;o.name=i;o.predicate=a;o.kind="PredicateType";return o}PredicateType.prototype.toString=function(){return this.name};PredicateType.prototype.check=function(t,i){var a=this.predicate(t,i);if(!a&&typeof i==="function"){i(this,t)}return a};return PredicateType}(d);var A=function(){function Def(t,i){this.type=t;this.typeName=i;this.baseNames=[];this.ownFields=Object.create(null);this.allSupertypes=Object.create(null);this.supertypeList=[];this.allFields=Object.create(null);this.fieldNames=[];this.finalized=false;this.buildable=false;this.buildParams=[]}Def.prototype.isSupertypeOf=function(t){if(t instanceof Def){if(this.finalized!==true||t.finalized!==true){throw new Error("")}return l.call(t.allSupertypes,this.typeName)}else{throw new Error(t+" is not a Def")}};Def.prototype.checkAllFields=function(t,i){var a=this.allFields;if(this.finalized!==true){throw new Error(""+this.typeName)}function checkFieldByName(o){var p=a[o];var u=p.type;var l=p.getValue(t);return u.check(l,i)}return t!==null&&typeof t==="object"&&Object.keys(a).every(checkFieldByName)};Def.prototype.bases=function(){var t=[];for(var i=0;i=0){return p[u]}if(typeof o!=="string"){throw new Error("missing name")}return new v(o,t)}return new m(t)},def:function(t){return l.call(P,t)?P[t]:P[t]=new O(t)},hasDef:function(t){return l.call(P,t)}};var a=[];var p=[];function defBuiltInType(t,i){var o=u.call(i);var l=new v(t,(function(t){return u.call(t)===o}));if(i&&typeof i.constructor==="function"){a.push(i.constructor);p.push(l)}return l}var d=defBuiltInType("string","truthy");var D=defBuiltInType("function",(function(){}));var b=defBuiltInType("array",[]);var C=defBuiltInType("object",{});var w=defBuiltInType("RegExp",/./);var S=defBuiltInType("Date",new Date);var _=defBuiltInType("number",3);var T=defBuiltInType("boolean",true);var B=defBuiltInType("null",null);var x=defBuiltInType("undefined",undefined);var k={string:d,function:D,array:b,object:C,RegExp:w,Date:S,number:_,boolean:T,null:B,undefined:x};var P=Object.create(null);function defFromValue(t){if(t&&typeof t==="object"){var i=t.type;if(typeof i==="string"&&l.call(P,i)){var a=P[i];if(a.finalized){return a}}}return null}var O=function(t){o.__extends(DefImpl,t);function DefImpl(i){var a=t.call(this,new v(i,(function(t,i){return a.check(t,i)})),i)||this;return a}DefImpl.prototype.check=function(t,i){if(this.finalized!==true){throw new Error("prematurely checking unfinalized type "+this.typeName)}if(t===null||typeof t!=="object"){return false}var a=defFromValue(t);if(!a){if(this.typeName==="SourceLocation"||this.typeName==="Position"){return this.checkAllFields(t,i)}return false}if(i&&a===this){return this.checkAllFields(t,i)}if(!this.isSupertypeOf(a)){return false}if(!i){return true}return a.checkAllFields(t,i)&&this.checkAllFields(t,false)};DefImpl.prototype.build=function(){var t=this;var i=[];for(var a=0;a=0){wrapExpressionBuilderWithStatement(this.typeName)}}};return DefImpl}(A);function getSupertypeNames(t){if(!l.call(P,t)){throw new Error("")}var i=P[t];if(i.finalized!==true){throw new Error("")}return i.supertypeList.slice(1)}function computeSupertypeLookupTable(t){var i={};var a=Object.keys(P);var o=a.length;for(var p=0;p{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.visit=i.use=i.Type=i.someField=i.PathVisitor=i.Path=i.NodePath=i.namedTypes=i.getSupertypeNames=i.getFieldValue=i.getFieldNames=i.getBuilderName=i.finalize=i.eachField=i.defineMethod=i.builtInTypes=i.builders=i.astNodesAreEquivalent=void 0;var o=a(4351);var p=o.__importDefault(a(253));var u=o.__importDefault(a(6604));var l=o.__importDefault(a(8127));var d=o.__importDefault(a(5351));var h=o.__importDefault(a(8975));var m=o.__importDefault(a(7572));var g=o.__importDefault(a(368));var E=o.__importDefault(a(6019));var v=o.__importDefault(a(2262));var A=o.__importDefault(a(6743));var y=o.__importDefault(a(2207));var D=a(4143);Object.defineProperty(i,"namedTypes",{enumerable:true,get:function(){return D.namedTypes}});var b=p.default([u.default,l.default,d.default,h.default,m.default,g.default,E.default,v.default,A.default,y.default]),C=b.astNodesAreEquivalent,w=b.builders,S=b.builtInTypes,_=b.defineMethod,T=b.eachField,B=b.finalize,x=b.getBuilderName,k=b.getFieldNames,P=b.getFieldValue,O=b.getSupertypeNames,I=b.namedTypes,N=b.NodePath,R=b.Path,L=b.PathVisitor,U=b.someField,G=b.Type,M=b.use,j=b.visit;i.astNodesAreEquivalent=C;i.builders=w;i.builtInTypes=S;i.defineMethod=_;i.eachField=T;i.finalize=B;i.getBuilderName=x;i.getFieldNames=k;i.getFieldValue=P;i.getSupertypeNames=O;i.NodePath=N;i.Path=R;i.PathVisitor=L;i.someField=U;i.Type=G;i.use=M;i.visit=j;Object.assign(D.namedTypes,I)},3682:(t,i,a)=>{var o=a(4670);var p=a(5549);var u=a(6819);var l=Function.bind;var d=l.bind(l);function bindApi(t,i,a){var o=d(u,null).apply(null,a?[i,a]:[i]);t.api={remove:o};t.remove=o;["before","error","after","wrap"].forEach((function(o){var u=a?[i,o,a]:[i,o];t[o]=t.api[o]=d(p,null).apply(null,u)}))}function HookSingular(){var t="h";var i={registry:{}};var a=o.bind(null,i,t);bindApi(a,i,t);return a}function HookCollection(){var t={registry:{}};var i=o.bind(null,t);bindApi(i,t);return i}var h=false;function Hook(){if(!h){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');h=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();t.exports=Hook;t.exports.Hook=Hook;t.exports.Singular=Hook.Singular;t.exports.Collection=Hook.Collection},5549:t=>{t.exports=addHook;function addHook(t,i,a,o){var p=o;if(!t.registry[a]){t.registry[a]=[]}if(i==="before"){o=function(t,i){return Promise.resolve().then(p.bind(null,i)).then(t.bind(null,i))}}if(i==="after"){o=function(t,i){var a;return Promise.resolve().then(t.bind(null,i)).then((function(t){a=t;return p(a,i)})).then((function(){return a}))}}if(i==="error"){o=function(t,i){return Promise.resolve().then(t.bind(null,i)).catch((function(t){return p(t,i)}))}}t.registry[a].push({hook:o,orig:p})}},4670:t=>{t.exports=register;function register(t,i,a,o){if(typeof a!=="function"){throw new Error("method for before hook must be a function")}if(!o){o={}}if(Array.isArray(i)){return i.reverse().reduce((function(i,a){return register.bind(null,t,a,i,o)}),a)()}return Promise.resolve().then((function(){if(!t.registry[i]){return a(o)}return t.registry[i].reduce((function(t,i){return i.hook.bind(null,t,o)}),a)()}))}},6819:t=>{t.exports=removeHook;function removeHook(t,i,a){if(!t.registry[i]){return}var o=t.registry[i].map((function(t){return t.orig})).indexOf(a);if(o===-1){return}t.registry[i].splice(o,1)}},6966:t=>{"use strict"; +(()=>{var __webpack_modules__={6979:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getGithubFilePath=i.getScannerViolationType=void 0;function getScannerViolationType(t,i,a){if(t.severityThreshold>=i.severity){return"Error"}if(!t.strictlyEnforcedRules){return"Warning"}let o={engine:a,category:i.category,rule:i.ruleName};for(let i of JSON.parse(t.strictlyEnforcedRules)){if(Object.entries(o).toString()===Object.entries(i).toString()){return"Error"}}return"Warning"}i.getScannerViolationType=getScannerViolationType;function getGithubFilePath(t,i){return["..","tree",t,i].join("/")}i.getGithubFilePath=getGithubFilePath},8763:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};var p=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:true});i.getDiffInPullRequest=void 0;const u=p(a(4833));const l=p(a(7147));const d=a(2081);const h="diffBetweenCurrentAndParentBranch.txt";function getDiffInPullRequest(t,i,a){return o(this,void 0,void 0,(function*(){console.log("Getting difference within the pull request ...",{baseRef:t,headRef:i});if(a){(0,d.execSync)(`git remote add -f destination ${a}`);(0,d.execSync)(`git remote update`)}(0,d.execSync)(`git diff destination/${t}...origin/${i} > ${h}`);const o=(0,u.default)(l.default.readFileSync(h).toString());const p=new Map;for(let t of o){if(t.to&&t.to!=="/dev/null"){const i=new Set;for(let a of t.chunks){for(let t of a.changes){if(t.type==="add"||t.type==="del"){i.add(t.ln)}}}p.set(t.to,i)}}return p}))}i.getDiffInPullRequest=getDiffInPullRequest},4822:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.performStaticCodeAnalysisOnFilesInDiff=void 0;const p=a(2186);const u=a(5438);const l=a(8763);const d=a(1471);const h=a(5418);const m=a(9774);function initialSetup(){var t,i;const a={category:(0,p.getInput)("category"),engine:(0,p.getInput)("engine"),env:(0,p.getInput)("eslint-env"),eslintconfig:(0,p.getInput)("eslintconfig"),pmdconfig:(0,p.getInput)("pmdconfig"),tsConfig:(0,p.getInput)("tsconfig")};const o={reportMode:(0,p.getInput)("report-mode")||"check-runs",customPmdRules:(0,p.getInput)("custom-pmd-rules"),severityThreshold:parseInt((0,p.getInput)("severity-threshold"))||0,strictlyEnforcedRules:(0,p.getInput)("strictly-enforced-rules"),deleteResolvedComments:(0,p.getInput)("delete-resolved-comments")==="true",target:((t=u.context===null||u.context===void 0?void 0:u.context.payload)===null||t===void 0?void 0:t.pull_request)?"":(0,p.getInput)("target")};const l={inputs:o,context:u.context};return{inputs:o,pullRequest:(i=u.context===null||u.context===void 0?void 0:u.context.payload)===null||i===void 0?void 0:i.pull_request,scannerFlags:a,reporter:o.reportMode==="comments"?new h.CommentsReporter(l):new m.AnnotationsReporter(l)}}function validateContext(t,i){console.log("Validating that this action was invoked from an acceptable context...");if(!t&&!i){(0,p.setFailed)("This action is only applicable when invoked by a pull request, or with the target property supplied.")}}function performStaticCodeAnalysisOnFilesInDiff(t){var i;return o(this,void 0,void 0,(function*(){console.log("Performing static code analysis on all of the files in the difference...");try{const i=yield(0,d.scanFiles)(t);return typeof i==="string"?[]:i}catch(t){const a=t;console.error({message:a.message,status:a.status,stack:a.stack,output:(i=a.output)===null||i===void 0?void 0:i.toString()});(0,p.setFailed)("Something went wrong when scanning the files.")}return[]}))}i.performStaticCodeAnalysisOnFilesInDiff=performStaticCodeAnalysisOnFilesInDiff;function filterFindingsToDiffScope(t,i,a,o){console.log("Filtering the findings to just the lines which are part of the pull request...");for(let p of t){const t=p.fileName.replace(process.cwd()+"/","");const u=i.get(t)||new Set;for(let i of p.violations){if(!isInChangedLines(i,u)&&!a.target){continue}o.translateViolationToReport(t,i,p.engine)}}}function isInChangedLines(t,i){if(!t.endLine){return i.has(parseInt(t.line))}for(let a=parseInt(t.line);a<=parseInt(t.endLine);a++){if(i.has(a)==false){return false}}return true}function getFilesToScan(t,i){if(i){return[i]}let a=[];for(let[i,o]of t){if(o.size>0){a.push(i)}}return a}function registerCustomPmdRules(t){var i;return o(this,void 0,void 0,(function*(){for(let a of JSON.parse(t)){try{yield(0,d.registerRule)(a.path,a.language)}catch(t){const a=t;console.error({message:a.message,status:a.status,stack:a.stack,output:(i=a.output)===null||i===void 0?void 0:i.toString()});(0,p.setFailed)("Something went wrong when registering custom rule.")}}}))}function main(){var t,i,a,u;return o(this,void 0,void 0,(function*(){console.log("Beginning sfdx-scan-pull-request run...");const{pullRequest:o,scannerFlags:d,reporter:h,inputs:m}=initialSetup();validateContext(o,m.target);const g=yield(0,l.getDiffInPullRequest)((t=o===null||o===void 0?void 0:o.base)===null||t===void 0?void 0:t.ref,(i=o===null||o===void 0?void 0:o.head)===null||i===void 0?void 0:i.ref,(u=(a=o===null||o===void 0?void 0:o.base)===null||a===void 0?void 0:a.repo)===null||u===void 0?void 0:u.clone_url);const E=getFilesToScan(g,m.target);if(E.length===0){console.log("There are no files to scan - exiting now.");return}d.target=E.join(",");if(m.customPmdRules){registerCustomPmdRules(m.customPmdRules)}const v=yield performStaticCodeAnalysisOnFilesInDiff(d);filterFindingsToDiffScope(v,g,m,h);try{yield h.write()}catch(t){console.error(t);(0,p.setFailed)("An error occurred while trying to write to GitHub")}}))}main()},9774:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.AnnotationsReporter=i.RIGHT=i.ERROR=void 0;const p=a(6979);const u=a(1231);const l=a(5438);const d=a(4287);i.ERROR="Error";i.RIGHT="RIGHT";class AnnotationsReporter extends d.BaseReporter{performGithubRequest(t){const i=new u.Octokit;const a=l.context.repo.owner;const o=l.context.repo.repo;const p=`POST /repos/${a}/${o}/check-runs`;return i.request(p,t)}write(){var t;return o(this,void 0,void 0,(function*(){console.log("Creating Check Runs using GitHub REST API...");let i;if(this.hasHaltingError){i="failure"}else{i=this.issues.length===0?"success":"neutral"}const a=((t=this.context.payload)===null||t===void 0?void 0:t.pull_request)?this.context.payload.pull_request.head.sha:this.context.sha;if(this.issues){const t={name:"sfdx-scanner",head_sha:a,status:"completed",conclusion:i,output:{title:"Results from sfdx-scanner",summary:`${this.issues.length} violations found`,annotations:this.issues}};this.checkHasHaltingError();try{yield this.performGithubRequest(t)}catch(t){console.error("Error when creating check run: "+JSON.stringify(t,null,2))}}}))}translateViolationToReport(t,a,o){const u=(0,p.getScannerViolationType)(this.inputs,a,o);if(u===i.ERROR){this.hasHaltingError=true}let l=a.endLine?parseInt(a.endLine):parseInt(a.line);let d=parseInt(a.line);if(l===d){l++}this.issues.push({path:t,start_side:i.RIGHT,annotation_level:"notice",start_line:d,end_line:l,message:`${a.category} ${a.message}\n${a.url}`,title:`${a.ruleName} (sev: ${a.severity})`})}}i.AnnotationsReporter=AnnotationsReporter},5418:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.CommentsReporter=void 0;const p=a(6979);const u=a(1231);const l=a(5438);const d=a(4287);const h="Error";const m="\x3c!--sfdx-scanner--\x3e";class CommentsReporter extends d.BaseReporter{performGithubRequest(t,i){var a;const o=new u.Octokit;const p=l.context.repo.owner;const d=l.context.repo.repo;const h=(a=l.context.payload.pull_request)===null||a===void 0?void 0:a.number;const m=`${t} /repos/${p}/${d}/${h?`pulls/${h}`:`commits/${l.context.sha}`}/comments`;return t==="POST"?o.request(m,i):o.paginate(m)}performGithubDeleteRequest(t){return o(this,void 0,void 0,(function*(){const i=new u.Octokit;const a=l.context.repo.owner;const o=l.context.repo.repo;const p=`DELETE /repos/${a}/${o}/pulls/comments/${t.id}`;yield i.request(p)}))}write(){return o(this,void 0,void 0,(function*(){console.log("Writing comments using GitHub REST API...");const t=yield this.getExistingComments();for(let i of this.issues){const a=t.find((t=>this.matchComment(i,t)));if(!a){try{yield this.performGithubRequest("POST",i)}catch(t){console.error("Error when writing comments: "+JSON.stringify(t,null,2))}}else{console.log(`Skipping existing comment ${a.url}`)}}this.checkHasHaltingError();if(this.inputs.deleteResolvedComments){yield this.deleteResolvedComments(this.issues,t)}}))}deleteResolvedComments(t,i){return o(this,void 0,void 0,(function*(){const a=i.filter((i=>!t.find((t=>this.matchComment(i,t)))));for(let t of a){if(t.id){console.log(`Removing the comment because the issue appears to be resolved: Id: ${t.id}, File: ${t===null||t===void 0?void 0:t.path}, Body: ${t.body}`);yield this.performGithubDeleteRequest(t)}}}))}getExistingComments(){return o(this,void 0,void 0,(function*(){console.log("Getting existing comments using GitHub REST API...");let t=Array();try{t=(yield this.performGithubRequest("GET")).filter((t=>t.body.includes(m)&&t.user.type==="Bot"))}catch(t){console.error("Error when fetching existing comments: "+JSON.stringify(t,null,2))}return t}))}matchComment(t,i){const getSanitizedBody=t=>t.split("|").filter((t=>t)).slice(0,-1).toString();return t.line===i.line&&getSanitizedBody(t.body)===getSanitizedBody(i.body)&&t.path===i.path}translateViolationToReport(t,i,a){const o=parseInt(i.line);let u=i.endLine?parseInt(i.endLine):parseInt(i.line);if(u===o){u++}const l=(0,p.getScannerViolationType)(this.inputs,i,a);if(l===h){this.hasHaltingError=true}const d=this.context.payload.pull_request?this.context.payload.pull_request.head.sha:this.context.sha;this.issues.push({commit_id:d,path:t,start_line:o,start_side:"RIGHT",side:"RIGHT",line:u,body:this.getFormattedBody(a,l,i,t,d)})}getFormattedBody(t,i,a,o,u){const l=`${m}\n| Attribute | Value |\n| --- | --- |`;return`${l}\n| Engine | ${t}|\n| Category | ${a.category} |\n| Rule | ${a.ruleName} |\n| Severity | ${a.severity} |\n| Type | ${i} |\n| Message| [${a.message.trim()}](${a.url}) |\n| File | [${o}](${(0,p.getGithubFilePath)(u,o)}) |`}}i.CommentsReporter=CommentsReporter},4287:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BaseReporter=void 0;const o=a(2186);class BaseReporter{constructor({context:t,inputs:i}){this.hasHaltingError=false;this.issues=[];this.context=t;this.inputs=i}write(){throw new Error("Method not implemented.")}translateViolationToReport(t,i,a){throw new Error("Method not implemented.")}checkHasHaltingError(){if(this.hasHaltingError){(0,o.setFailed)("One or more errors have been identified within the structure of the code that will need to be resolved before continuing.")}}}i.BaseReporter=BaseReporter},1471:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.registerRule=i.scanFiles=void 0;const p=a(2081);const cli=(t,i=[])=>o(void 0,void 0,void 0,(function*(){let a=null;try{const o=`npx sfdx ${t} ${i.join(" ")}`;console.log(o);a=JSON.parse((0,p.execSync)(o).toString()).result}catch(t){throw t}return a}));function scanFiles(t){return o(this,void 0,void 0,(function*(){t.target=`"`+t.target+`"`;const i=Object.keys(t).map((i=>t[i]?[`--${i}`,t[i]]:[])).reduce(((t,[i,a])=>i&&a?[...t,i,a]:t),[]);return cli("scanner:run",[...i,"--json"])}))}i.scanFiles=scanFiles;function registerRule(t,i){return o(this,void 0,void 0,(function*(){return cli("scanner:rule:add",[`--path="${t}"`,`--language="${i}"`,"--json"])}))}i.registerRule=registerRule},7351:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};Object.defineProperty(i,"__esModule",{value:true});i.issue=i.issueCommand=void 0;const l=u(a(2037));const d=a(5278);function issueCommand(t,i,a){const o=new Command(t,i,a);process.stdout.write(o.toString()+l.EOL)}i.issueCommand=issueCommand;function issue(t,i=""){issueCommand(t,{},i)}i.issue=issue;const h="::";class Command{constructor(t,i,a){if(!t){t="missing.command"}this.command=t;this.properties=i;this.message=a}toString(){let t=h+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let i=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const o=this.properties[a];if(o){if(i){i=false}else{t+=","}t+=`${a}=${escapeProperty(o)}`}}}}t+=`${h}${escapeData(this.message)}`;return t}}function escapeData(t){return d.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(t){return d.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};var l=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getIDToken=i.getState=i.saveState=i.group=i.endGroup=i.startGroup=i.info=i.notice=i.warning=i.error=i.debug=i.isDebug=i.setFailed=i.setCommandEcho=i.setOutput=i.getBooleanInput=i.getMultilineInput=i.getInput=i.addPath=i.setSecret=i.exportVariable=i.ExitCode=void 0;const d=a(7351);const h=a(717);const m=a(5278);const g=u(a(2037));const E=u(a(1017));const v=a(8041);var A;(function(t){t[t["Success"]=0]="Success";t[t["Failure"]=1]="Failure"})(A=i.ExitCode||(i.ExitCode={}));function exportVariable(t,i){const a=m.toCommandValue(i);process.env[t]=a;const o=process.env["GITHUB_ENV"]||"";if(o){return h.issueFileCommand("ENV",h.prepareKeyValueMessage(t,i))}d.issueCommand("set-env",{name:t},a)}i.exportVariable=exportVariable;function setSecret(t){d.issueCommand("add-mask",{},t)}i.setSecret=setSecret;function addPath(t){const i=process.env["GITHUB_PATH"]||"";if(i){h.issueFileCommand("PATH",t)}else{d.issueCommand("add-path",{},t)}process.env["PATH"]=`${t}${E.delimiter}${process.env["PATH"]}`}i.addPath=addPath;function getInput(t,i){const a=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(i&&i.required&&!a){throw new Error(`Input required and not supplied: ${t}`)}if(i&&i.trimWhitespace===false){return a}return a.trim()}i.getInput=getInput;function getMultilineInput(t,i){const a=getInput(t,i).split("\n").filter((t=>t!==""));if(i&&i.trimWhitespace===false){return a}return a.map((t=>t.trim()))}i.getMultilineInput=getMultilineInput;function getBooleanInput(t,i){const a=["true","True","TRUE"];const o=["false","False","FALSE"];const p=getInput(t,i);if(a.includes(p))return true;if(o.includes(p))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i.getBooleanInput=getBooleanInput;function setOutput(t,i){const a=process.env["GITHUB_OUTPUT"]||"";if(a){return h.issueFileCommand("OUTPUT",h.prepareKeyValueMessage(t,i))}process.stdout.write(g.EOL);d.issueCommand("set-output",{name:t},m.toCommandValue(i))}i.setOutput=setOutput;function setCommandEcho(t){d.issue("echo",t?"on":"off")}i.setCommandEcho=setCommandEcho;function setFailed(t){process.exitCode=A.Failure;error(t)}i.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}i.isDebug=isDebug;function debug(t){d.issueCommand("debug",{},t)}i.debug=debug;function error(t,i={}){d.issueCommand("error",m.toCommandProperties(i),t instanceof Error?t.toString():t)}i.error=error;function warning(t,i={}){d.issueCommand("warning",m.toCommandProperties(i),t instanceof Error?t.toString():t)}i.warning=warning;function notice(t,i={}){d.issueCommand("notice",m.toCommandProperties(i),t instanceof Error?t.toString():t)}i.notice=notice;function info(t){process.stdout.write(t+g.EOL)}i.info=info;function startGroup(t){d.issue("group",t)}i.startGroup=startGroup;function endGroup(){d.issue("endgroup")}i.endGroup=endGroup;function group(t,i){return l(this,void 0,void 0,(function*(){startGroup(t);let a;try{a=yield i()}finally{endGroup()}return a}))}i.group=group;function saveState(t,i){const a=process.env["GITHUB_STATE"]||"";if(a){return h.issueFileCommand("STATE",h.prepareKeyValueMessage(t,i))}d.issueCommand("save-state",{name:t},m.toCommandValue(i))}i.saveState=saveState;function getState(t){return process.env[`STATE_${t}`]||""}i.getState=getState;function getIDToken(t){return l(this,void 0,void 0,(function*(){return yield v.OidcClient.getIDToken(t)}))}i.getIDToken=getIDToken;var y=a(1327);Object.defineProperty(i,"summary",{enumerable:true,get:function(){return y.summary}});var D=a(1327);Object.defineProperty(i,"markdownSummary",{enumerable:true,get:function(){return D.markdownSummary}});var b=a(2981);Object.defineProperty(i,"toPosixPath",{enumerable:true,get:function(){return b.toPosixPath}});Object.defineProperty(i,"toWin32Path",{enumerable:true,get:function(){return b.toWin32Path}});Object.defineProperty(i,"toPlatformPath",{enumerable:true,get:function(){return b.toPlatformPath}})},717:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};Object.defineProperty(i,"__esModule",{value:true});i.prepareKeyValueMessage=i.issueFileCommand=void 0;const l=u(a(7147));const d=u(a(2037));const h=a(5840);const m=a(5278);function issueFileCommand(t,i){const a=process.env[`GITHUB_${t}`];if(!a){throw new Error(`Unable to find environment variable for file command ${t}`)}if(!l.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}l.appendFileSync(a,`${m.toCommandValue(i)}${d.EOL}`,{encoding:"utf8"})}i.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(t,i){const a=`ghadelimiter_${h.v4()}`;const o=m.toCommandValue(i);if(t.includes(a)){throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`)}if(o.includes(a)){throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`)}return`${t}<<${a}${d.EOL}${o}${d.EOL}${a}`}i.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.OidcClient=void 0;const p=a(6255);const u=a(5526);const l=a(2186);class OidcClient{static createHttpClient(t=true,i=10){const a={allowRetries:t,maxRetries:i};return new p.HttpClient("actions/oidc-client",[new u.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return t}static getIDTokenUrl(){const t=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!t){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return t}static getCall(t){var i;return o(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const o=yield a.getJson(t).catch((t=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${t.statusCode}\n \n Error Message: ${t.result.message}`)}));const p=(i=o.result)===null||i===void 0?void 0:i.value;if(!p){throw new Error("Response json body do not have ID Token field")}return p}))}static getIDToken(t){return o(this,void 0,void 0,(function*(){try{let i=OidcClient.getIDTokenUrl();if(t){const a=encodeURIComponent(t);i=`${i}&audience=${a}`}l.debug(`ID token url is ${i}`);const a=yield OidcClient.getCall(i);l.setSecret(a);return a}catch(t){throw new Error(`Error message: ${t.message}`)}}))}}i.OidcClient=OidcClient},2981:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};Object.defineProperty(i,"__esModule",{value:true});i.toPlatformPath=i.toWin32Path=i.toPosixPath=void 0;const l=u(a(1017));function toPosixPath(t){return t.replace(/[\\]/g,"/")}i.toPosixPath=toPosixPath;function toWin32Path(t){return t.replace(/[/]/g,"\\")}i.toWin32Path=toWin32Path;function toPlatformPath(t){return t.replace(/[/\\]/g,l.sep)}i.toPlatformPath=toPlatformPath},1327:function(t,i,a){"use strict";var o=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.summary=i.markdownSummary=i.SUMMARY_DOCS_URL=i.SUMMARY_ENV_VAR=void 0;const p=a(2037);const u=a(7147);const{access:l,appendFile:d,writeFile:h}=u.promises;i.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";i.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 o(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const t=process.env[i.SUMMARY_ENV_VAR];if(!t){throw new Error(`Unable to find environment variable for $${i.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield l(t,u.constants.R_OK|u.constants.W_OK)}catch(i){throw new Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}this._filePath=t;return this._filePath}))}wrap(t,i,a={}){const o=Object.entries(a).map((([t,i])=>` ${t}="${i}"`)).join("");if(!i){return`<${t}${o}>`}return`<${t}${o}>${i}`}write(t){return o(this,void 0,void 0,(function*(){const i=!!(t===null||t===void 0?void 0:t.overwrite);const a=yield this.filePath();const o=i?h:d;yield o(a,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return o(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(t,i=false){this._buffer+=t;return i?this.addEOL():this}addEOL(){return this.addRaw(p.EOL)}addCodeBlock(t,i){const a=Object.assign({},i&&{lang:i});const o=this.wrap("pre",this.wrap("code",t),a);return this.addRaw(o).addEOL()}addList(t,i=false){const a=i?"ol":"ul";const o=t.map((t=>this.wrap("li",t))).join("");const p=this.wrap(a,o);return this.addRaw(p).addEOL()}addTable(t){const i=t.map((t=>{const i=t.map((t=>{if(typeof t==="string"){return this.wrap("td",t)}const{header:i,data:a,colspan:o,rowspan:p}=t;const u=i?"th":"td";const l=Object.assign(Object.assign({},o&&{colspan:o}),p&&{rowspan:p});return this.wrap(u,a,l)})).join("");return this.wrap("tr",i)})).join("");const a=this.wrap("table",i);return this.addRaw(a).addEOL()}addDetails(t,i){const a=this.wrap("details",this.wrap("summary",t)+i);return this.addRaw(a).addEOL()}addImage(t,i,a){const{width:o,height:p}=a||{};const u=Object.assign(Object.assign({},o&&{width:o}),p&&{height:p});const l=this.wrap("img",null,Object.assign({src:t,alt:i},u));return this.addRaw(l).addEOL()}addHeading(t,i){const a=`h${i}`;const o=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1";const p=this.wrap(o,t);return this.addRaw(p).addEOL()}addSeparator(){const t=this.wrap("hr",null);return this.addRaw(t).addEOL()}addBreak(){const t=this.wrap("br",null);return this.addRaw(t).addEOL()}addQuote(t,i){const a=Object.assign({},i&&{cite:i});const o=this.wrap("blockquote",t,a);return this.addRaw(o).addEOL()}addLink(t,i){const a=this.wrap("a",t,{href:i});return this.addRaw(a).addEOL()}}const m=new Summary;i.markdownSummary=m;i.summary=m},5278:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.toCommandProperties=i.toCommandValue=void 0;function toCommandValue(t){if(t===null||t===undefined){return""}else if(typeof t==="string"||t instanceof String){return t}return JSON.stringify(t)}i.toCommandValue=toCommandValue;function toCommandProperties(t){if(!Object.keys(t).length){return{}}return{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}}i.toCommandProperties=toCommandProperties},4087:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Context=void 0;const o=a(7147);const p=a(2037);class Context{constructor(){var t,i,a;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(o.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(o.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const t=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${t} does not exist${p.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(t=process.env.GITHUB_API_URL)!==null&&t!==void 0?t:`https://api.github.com`;this.serverUrl=(i=process.env.GITHUB_SERVER_URL)!==null&&i!==void 0?i:`https://github.com`;this.graphqlUrl=(a=process.env.GITHUB_GRAPHQL_URL)!==null&&a!==void 0?a:`https://api.github.com/graphql`}get issue(){const t=this.payload;return Object.assign(Object.assign({},this.repo),{number:(t.issue||t.pull_request||t).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[t,i]=process.env.GITHUB_REPOSITORY.split("/");return{owner:t,repo:i}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}i.Context=Context},5438:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokit=i.context=void 0;const l=u(a(4087));const d=a(3030);i.context=new l.Context;function getOctokit(t,i,...a){const o=d.GitHub.plugin(...a);return new o(d.getOctokitOptions(t,i))}i.getOctokit=getOctokit},7914:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};Object.defineProperty(i,"__esModule",{value:true});i.getApiBaseUrl=i.getProxyAgent=i.getAuthString=void 0;const l=u(a(6255));function getAuthString(t,i){if(!t&&!i.auth){throw new Error("Parameter token or opts.auth is required")}else if(t&&i.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof i.auth==="string"?i.auth:`token ${t}`}i.getAuthString=getAuthString;function getProxyAgent(t){const i=new l.HttpClient;return i.getAgent(t)}i.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}i.getApiBaseUrl=getApiBaseUrl},3030:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokitOptions=i.GitHub=i.defaults=i.context=void 0;const l=u(a(4087));const d=u(a(7914));const h=a(8525);const m=a(4045);const g=a(8945);i.context=new l.Context;const E=d.getApiBaseUrl();i.defaults={baseUrl:E,request:{agent:d.getProxyAgent(E)}};i.GitHub=h.Octokit.plugin(m.restEndpointMethods,g.paginateRest).defaults(i.defaults);function getOctokitOptions(t,i){const a=Object.assign({},i||{});const o=d.getAuthString(t,a);if(o){a.auth=o}return a}i.getOctokitOptions=getOctokitOptions},673:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a=/^v1\./;const o=/^ghs_/;const p=/^ghu_/;async function auth(t){const i=t.split(/\./).length===3;const u=a.test(t)||o.test(t);const l=p.test(t);const d=i?"app":u?"installation":l?"user-to-server":"oauth";return{type:"token",token:t,tokenType:d}}function withAuthorizationPrefix(t){if(t.split(/\./).length===3){return`bearer ${t}`}return`token ${t}`}async function hook(t,i,a,o){const p=i.endpoint.merge(a,o);p.headers.authorization=withAuthorizationPrefix(t);return i(p)}const u=function createTokenAuth(t){if(!t){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof t!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}t=t.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,t),{hook:hook.bind(null,t)})};i.createTokenAuth=u},8525:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(5030);var p=a(3682);var u=a(9353);var l=a(6422);var d=a(673);function _objectWithoutPropertiesLoose(t,i){if(t==null)return{};var a={};var o=Object.keys(t);var p,u;for(u=0;u=0)continue;a[p]=t[p]}return a}function _objectWithoutProperties(t,i){if(t==null)return{};var a=_objectWithoutPropertiesLoose(t,i);var o,p;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(p=0;p=0)continue;if(!Object.prototype.propertyIsEnumerable.call(t,o))continue;a[o]=t[o]}}return a}const h="3.6.0";const m=["authStrategy"];class Octokit{constructor(t={}){const i=new p.Collection;const a={baseUrl:u.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},t.request,{hook:i.bind(null,"request")}),mediaType:{previews:[],format:""}};a.headers["user-agent"]=[t.userAgent,`octokit-core.js/${h} ${o.getUserAgent()}`].filter(Boolean).join(" ");if(t.baseUrl){a.baseUrl=t.baseUrl}if(t.previews){a.mediaType.previews=t.previews}if(t.timeZone){a.headers["time-zone"]=t.timeZone}this.request=u.request.defaults(a);this.graphql=l.withCustomRequest(this.request).defaults(a);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},t.log);this.hook=i;if(!t.authStrategy){if(!t.auth){this.auth=async()=>({type:"unauthenticated"})}else{const a=d.createTokenAuth(t.auth);i.wrap("request",a.hook);this.auth=a}}else{const{authStrategy:a}=t,o=_objectWithoutProperties(t,m);const p=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},t.auth));i.wrap("request",p.hook);this.auth=p}const g=this.constructor;g.plugins.forEach((i=>{Object.assign(this,i(this,t))}))}static defaults(t){const i=class extends(this){constructor(...i){const a=i[0]||{};if(typeof t==="function"){super(t(a));return}super(Object.assign({},t,a,a.userAgent&&t.userAgent?{userAgent:`${a.userAgent} ${t.userAgent}`}:null))}};return i}static plugin(...t){var i;const a=this.plugins;const o=(i=class extends(this){},i.plugins=a.concat(t.filter((t=>!a.includes(t)))),i);return o}}Octokit.VERSION=h;Octokit.plugins=[];i.Octokit=Octokit},8713:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(3287);var p=a(5030);function lowercaseKeys(t){if(!t){return{}}return Object.keys(t).reduce(((i,a)=>{i[a.toLowerCase()]=t[a];return i}),{})}function mergeDeep(t,i){const a=Object.assign({},t);Object.keys(i).forEach((p=>{if(o.isPlainObject(i[p])){if(!(p in t))Object.assign(a,{[p]:i[p]});else a[p]=mergeDeep(t[p],i[p])}else{Object.assign(a,{[p]:i[p]})}}));return a}function removeUndefinedProperties(t){for(const i in t){if(t[i]===undefined){delete t[i]}}return t}function merge(t,i,a){if(typeof i==="string"){let[t,o]=i.split(" ");a=Object.assign(o?{method:t,url:o}:{url:t},a)}else{a=Object.assign({},i)}a.headers=lowercaseKeys(a.headers);removeUndefinedProperties(a);removeUndefinedProperties(a.headers);const o=mergeDeep(t||{},a);if(t&&t.mediaType.previews.length){o.mediaType.previews=t.mediaType.previews.filter((t=>!o.mediaType.previews.includes(t))).concat(o.mediaType.previews)}o.mediaType.previews=o.mediaType.previews.map((t=>t.replace(/-preview/,"")));return o}function addQueryParameters(t,i){const a=/\?/.test(t)?"&":"?";const o=Object.keys(i);if(o.length===0){return t}return t+a+o.map((t=>{if(t==="q"){return"q="+i.q.split("+").map(encodeURIComponent).join("+")}return`${t}=${encodeURIComponent(i[t])}`})).join("&")}const u=/\{[^}]+\}/g;function removeNonChars(t){return t.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(t){const i=t.match(u);if(!i){return[]}return i.map(removeNonChars).reduce(((t,i)=>t.concat(i)),[])}function omit(t,i){return Object.keys(t).filter((t=>!i.includes(t))).reduce(((i,a)=>{i[a]=t[a];return i}),{})}function encodeReserved(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map((function(t){if(!/%[0-9A-Fa-f]/.test(t)){t=encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]")}return t})).join("")}function encodeUnreserved(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(t,i,a){i=t==="+"||t==="#"?encodeReserved(i):encodeUnreserved(i);if(a){return encodeUnreserved(a)+"="+i}else{return i}}function isDefined(t){return t!==undefined&&t!==null}function isKeyOperator(t){return t===";"||t==="&"||t==="?"}function getValues(t,i,a,o){var p=t[a],u=[];if(isDefined(p)&&p!==""){if(typeof p==="string"||typeof p==="number"||typeof p==="boolean"){p=p.toString();if(o&&o!=="*"){p=p.substring(0,parseInt(o,10))}u.push(encodeValue(i,p,isKeyOperator(i)?a:""))}else{if(o==="*"){if(Array.isArray(p)){p.filter(isDefined).forEach((function(t){u.push(encodeValue(i,t,isKeyOperator(i)?a:""))}))}else{Object.keys(p).forEach((function(t){if(isDefined(p[t])){u.push(encodeValue(i,p[t],t))}}))}}else{const t=[];if(Array.isArray(p)){p.filter(isDefined).forEach((function(a){t.push(encodeValue(i,a))}))}else{Object.keys(p).forEach((function(a){if(isDefined(p[a])){t.push(encodeUnreserved(a));t.push(encodeValue(i,p[a].toString()))}}))}if(isKeyOperator(i)){u.push(encodeUnreserved(a)+"="+t.join(","))}else if(t.length!==0){u.push(t.join(","))}}}}else{if(i===";"){if(isDefined(p)){u.push(encodeUnreserved(a))}}else if(p===""&&(i==="&"||i==="?")){u.push(encodeUnreserved(a)+"=")}else if(p===""){u.push("")}}return u}function parseUrl(t){return{expand:expand.bind(null,t)}}function expand(t,i){var a=["+","#",".","/",";","?","&"];return t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(t,o,p){if(o){let t="";const p=[];if(a.indexOf(o.charAt(0))!==-1){t=o.charAt(0);o=o.substr(1)}o.split(/,/g).forEach((function(a){var o=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);p.push(getValues(i,t,o[1],o[2]||o[3]))}));if(t&&t!=="+"){var u=",";if(t==="?"){u="&"}else if(t!=="#"){u=t}return(p.length!==0?t:"")+p.join(u)}else{return p.join(",")}}else{return encodeReserved(p)}}))}function parse(t){let i=t.method.toUpperCase();let a=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let o=Object.assign({},t.headers);let p;let u=omit(t,["method","baseUrl","url","headers","request","mediaType"]);const l=extractUrlVariableNames(a);a=parseUrl(a).expand(u);if(!/^http/.test(a)){a=t.baseUrl+a}const d=Object.keys(t).filter((t=>l.includes(t))).concat("baseUrl");const h=omit(u,d);const m=/application\/octet-stream/i.test(o.accept);if(!m){if(t.mediaType.format){o.accept=o.accept.split(/,/).map((i=>i.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${t.mediaType.format}`))).join(",")}if(t.mediaType.previews.length){const i=o.accept.match(/[\w-]+(?=-preview)/g)||[];o.accept=i.concat(t.mediaType.previews).map((i=>{const a=t.mediaType.format?`.${t.mediaType.format}`:"+json";return`application/vnd.github.${i}-preview${a}`})).join(",")}}if(["GET","HEAD"].includes(i)){a=addQueryParameters(a,h)}else{if("data"in h){p=h.data}else{if(Object.keys(h).length){p=h}else{o["content-length"]=0}}}if(!o["content-type"]&&typeof p!=="undefined"){o["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(i)&&typeof p==="undefined"){p=""}return Object.assign({method:i,url:a,headers:o},typeof p!=="undefined"?{body:p}:null,t.request?{request:t.request}:null)}function endpointWithDefaults(t,i,a){return parse(merge(t,i,a))}function withDefaults(t,i){const a=merge(t,i);const o=endpointWithDefaults.bind(null,a);return Object.assign(o,{DEFAULTS:a,defaults:withDefaults.bind(null,a),merge:merge.bind(null,a),parse:parse})}const l="6.0.12";const d=`octokit-endpoint.js/${l} ${p.getUserAgent()}`;const h={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":d},mediaType:{format:"",previews:[]}};const m=withDefaults(null,h);i.endpoint=m},6422:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(9353);var p=a(5030);const u="4.8.0";function _buildMessageForResponseErrors(t){return`Request failed due to following response errors:\n`+t.errors.map((t=>` - ${t.message}`)).join("\n")}class GraphqlResponseError extends Error{constructor(t,i,a){super(_buildMessageForResponseErrors(a));this.request=t;this.headers=i;this.response=a;this.name="GraphqlResponseError";this.errors=a.errors;this.data=a.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const l=["method","baseUrl","url","headers","request","query","mediaType"];const d=["query","method","url"];const h=/\/api\/v3\/?$/;function graphql(t,i,a){if(a){if(typeof i==="string"&&"query"in a){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const t in a){if(!d.includes(t))continue;return Promise.reject(new Error(`[@octokit/graphql] "${t}" cannot be used as variable name`))}}const o=typeof i==="string"?Object.assign({query:i},a):i;const p=Object.keys(o).reduce(((t,i)=>{if(l.includes(i)){t[i]=o[i];return t}if(!t.variables){t.variables={}}t.variables[i]=o[i];return t}),{});const u=o.baseUrl||t.endpoint.DEFAULTS.baseUrl;if(h.test(u)){p.url=u.replace(h,"/api/graphql")}return t(p).then((t=>{if(t.data.errors){const i={};for(const a of Object.keys(t.headers)){i[a]=t.headers[a]}throw new GraphqlResponseError(p,i,t.data)}return t.data.data}))}function withDefaults(t,i){const a=t.defaults(i);const newApi=(t,i)=>graphql(a,t,i);return Object.assign(newApi,{defaults:withDefaults.bind(null,a),endpoint:o.request.endpoint})}const m=withDefaults(o.request,{headers:{"user-agent":`octokit-graphql.js/${u} ${p.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(t){return withDefaults(t,{method:"POST",url:"/graphql"})}i.GraphqlResponseError=GraphqlResponseError;i.graphql=m;i.withCustomRequest=withCustomRequest},8945:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a="2.21.3";function ownKeys(t,i){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i&&(o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),a.push.apply(a,o)}return a}function _objectSpread2(t){for(var i=1;i({async next(){if(!d)return{done:true};try{const t=await p({method:u,url:d,headers:l});const i=normalizePaginatedListResponse(t);d=((i.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:i}}catch(t){if(t.status!==409)throw t;d="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(t,i,a,o){if(typeof a==="function"){o=a;a=undefined}return gather(t,[],iterator(t,i,a)[Symbol.asyncIterator](),o)}function gather(t,i,a,o){return a.next().then((p=>{if(p.done){return i}let u=false;function done(){u=true}i=i.concat(o?o(p.value,done):p.value.data);if(u){return i}return gather(t,i,a,o)}))}const o=Object.assign(paginate,{iterator:iterator});const p=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(t){if(typeof t==="string"){return p.includes(t)}else{return false}}function paginateRest(t){return{paginate:Object.assign(paginate.bind(null,t),{iterator:iterator.bind(null,t)})}}paginateRest.VERSION=a;i.composePaginateRest=o;i.isPaginatingEndpoint=isPaginatingEndpoint;i.paginateRest=paginateRest;i.paginatingEndpoints=p},4045:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function ownKeys(t,i){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);if(i){o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))}a.push.apply(a,o)}return a}function _objectSpread2(t){for(var i=1;i{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var o=a(8932);var p=_interopDefault(a(1223));const u=p((t=>console.warn(t)));const l=p((t=>console.warn(t)));class RequestError extends Error{constructor(t,i,a){super(t);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=i;let p;if("headers"in a&&typeof a.headers!=="undefined"){p=a.headers}if("response"in a){this.response=a.response;p=a.response.headers}const d=Object.assign({},a.request);if(a.request.headers.authorization){d.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}d.url=d.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=d;Object.defineProperty(this,"code",{get(){u(new o.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return i}});Object.defineProperty(this,"headers",{get(){l(new o.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return p||{}}})}}i.RequestError=RequestError},9353:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var o=a(8713);var p=a(5030);var u=a(3287);var l=_interopDefault(a(467));var d=a(7471);const h="5.6.3";function getBufferResponse(t){return t.arrayBuffer()}function fetchWrapper(t){const i=t.request&&t.request.log?t.request.log:console;if(u.isPlainObject(t.body)||Array.isArray(t.body)){t.body=JSON.stringify(t.body)}let a={};let o;let p;const h=t.request&&t.request.fetch||l;return h(t.url,Object.assign({method:t.method,body:t.body,headers:t.headers,redirect:t.redirect},t.request)).then((async u=>{p=u.url;o=u.status;for(const t of u.headers){a[t[0]]=t[1]}if("deprecation"in a){const o=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const p=o&&o.pop();i.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${p?`. See ${p}`:""}`)}if(o===204||o===205){return}if(t.method==="HEAD"){if(o<400){return}throw new d.RequestError(u.statusText,o,{response:{url:p,status:o,headers:a,data:undefined},request:t})}if(o===304){throw new d.RequestError("Not modified",o,{response:{url:p,status:o,headers:a,data:await getResponseData(u)},request:t})}if(o>=400){const i=await getResponseData(u);const l=new d.RequestError(toErrorMessage(i),o,{response:{url:p,status:o,headers:a,data:i},request:t});throw l}return getResponseData(u)})).then((t=>({status:o,url:p,headers:a,data:t}))).catch((i=>{if(i instanceof d.RequestError)throw i;throw new d.RequestError(i.message,500,{request:t})}))}async function getResponseData(t){const i=t.headers.get("content-type");if(/application\/json/.test(i)){return t.json()}if(!i||/^text\/|charset=utf-8$/.test(i)){return t.text()}return getBufferResponse(t)}function toErrorMessage(t){if(typeof t==="string")return t;if("message"in t){if(Array.isArray(t.errors)){return`${t.message}: ${t.errors.map(JSON.stringify).join(", ")}`}return t.message}return`Unknown error: ${JSON.stringify(t)}`}function withDefaults(t,i){const a=t.defaults(i);const newApi=function(t,i){const o=a.merge(t,i);if(!o.request||!o.request.hook){return fetchWrapper(a.parse(o))}const request=(t,i)=>fetchWrapper(a.parse(a.merge(t,i)));Object.assign(request,{endpoint:a,defaults:withDefaults.bind(null,a)});return o.request.hook(request,o)};return Object.assign(newApi,{endpoint:a,defaults:withDefaults.bind(null,a)})}const m=withDefaults(o.endpoint,{headers:{"user-agent":`octokit-request.js/${h} ${p.getUserAgent()}`}});i.request=m},5526:function(t,i){"use strict";var a=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.PersonalAccessTokenCredentialHandler=i.BearerCredentialHandler=i.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(t,i){this.username=t;this.password=i}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(t){this.token=t}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(t){this.token=t}prepareRequest(t){if(!t.headers){throw Error("The request has no headers")}t.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(t,i,a){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,i,a,o){if(o===undefined)o=a;Object.defineProperty(t,o,{enumerable:true,get:function(){return i[a]}})}:function(t,i,a,o){if(o===undefined)o=a;t[o]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:true,value:i})}:function(t,i){t["default"]=i});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a in t)if(a!=="default"&&Object.hasOwnProperty.call(t,a))o(i,t,a);p(i,t);return i};var l=this&&this.__awaiter||function(t,i,a,o){function adopt(t){return t instanceof a?t:new a((function(i){i(t)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(t){try{step(o.next(t))}catch(t){p(t)}}function rejected(t){try{step(o["throw"](t))}catch(t){p(t)}}function step(t){t.done?a(t.value):adopt(t.value).then(fulfilled,rejected)}step((o=o.apply(t,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.HttpClient=i.isHttps=i.HttpClientResponse=i.HttpClientError=i.getProxyUrl=i.MediaTypes=i.Headers=i.HttpCodes=void 0;const d=u(a(3685));const h=u(a(5687));const m=u(a(9835));const g=u(a(4294));var E;(function(t){t[t["OK"]=200]="OK";t[t["MultipleChoices"]=300]="MultipleChoices";t[t["MovedPermanently"]=301]="MovedPermanently";t[t["ResourceMoved"]=302]="ResourceMoved";t[t["SeeOther"]=303]="SeeOther";t[t["NotModified"]=304]="NotModified";t[t["UseProxy"]=305]="UseProxy";t[t["SwitchProxy"]=306]="SwitchProxy";t[t["TemporaryRedirect"]=307]="TemporaryRedirect";t[t["PermanentRedirect"]=308]="PermanentRedirect";t[t["BadRequest"]=400]="BadRequest";t[t["Unauthorized"]=401]="Unauthorized";t[t["PaymentRequired"]=402]="PaymentRequired";t[t["Forbidden"]=403]="Forbidden";t[t["NotFound"]=404]="NotFound";t[t["MethodNotAllowed"]=405]="MethodNotAllowed";t[t["NotAcceptable"]=406]="NotAcceptable";t[t["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";t[t["RequestTimeout"]=408]="RequestTimeout";t[t["Conflict"]=409]="Conflict";t[t["Gone"]=410]="Gone";t[t["TooManyRequests"]=429]="TooManyRequests";t[t["InternalServerError"]=500]="InternalServerError";t[t["NotImplemented"]=501]="NotImplemented";t[t["BadGateway"]=502]="BadGateway";t[t["ServiceUnavailable"]=503]="ServiceUnavailable";t[t["GatewayTimeout"]=504]="GatewayTimeout"})(E=i.HttpCodes||(i.HttpCodes={}));var v;(function(t){t["Accept"]="accept";t["ContentType"]="content-type"})(v=i.Headers||(i.Headers={}));var A;(function(t){t["ApplicationJson"]="application/json"})(A=i.MediaTypes||(i.MediaTypes={}));function getProxyUrl(t){const i=m.getProxyUrl(new URL(t));return i?i.href:""}i.getProxyUrl=getProxyUrl;const y=[E.MovedPermanently,E.ResourceMoved,E.SeeOther,E.TemporaryRedirect,E.PermanentRedirect];const D=[E.BadGateway,E.ServiceUnavailable,E.GatewayTimeout];const b=["OPTIONS","GET","DELETE","HEAD"];const C=10;const w=5;class HttpClientError extends Error{constructor(t,i){super(t);this.name="HttpClientError";this.statusCode=i;Object.setPrototypeOf(this,HttpClientError.prototype)}}i.HttpClientError=HttpClientError;class HttpClientResponse{constructor(t){this.message=t}readBody(){return l(this,void 0,void 0,(function*(){return new Promise((t=>l(this,void 0,void 0,(function*(){let i=Buffer.alloc(0);this.message.on("data",(t=>{i=Buffer.concat([i,t])}));this.message.on("end",(()=>{t(i.toString())}))}))))}))}}i.HttpClientResponse=HttpClientResponse;function isHttps(t){const i=new URL(t);return i.protocol==="https:"}i.isHttps=isHttps;class HttpClient{constructor(t,i,a){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=t;this.handlers=i||[];this.requestOptions=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){this._maxRetries=a.maxRetries}}}options(t,i){return l(this,void 0,void 0,(function*(){return this.request("OPTIONS",t,null,i||{})}))}get(t,i){return l(this,void 0,void 0,(function*(){return this.request("GET",t,null,i||{})}))}del(t,i){return l(this,void 0,void 0,(function*(){return this.request("DELETE",t,null,i||{})}))}post(t,i,a){return l(this,void 0,void 0,(function*(){return this.request("POST",t,i,a||{})}))}patch(t,i,a){return l(this,void 0,void 0,(function*(){return this.request("PATCH",t,i,a||{})}))}put(t,i,a){return l(this,void 0,void 0,(function*(){return this.request("PUT",t,i,a||{})}))}head(t,i){return l(this,void 0,void 0,(function*(){return this.request("HEAD",t,null,i||{})}))}sendStream(t,i,a,o){return l(this,void 0,void 0,(function*(){return this.request(t,i,a,o)}))}getJson(t,i={}){return l(this,void 0,void 0,(function*(){i[v.Accept]=this._getExistingOrDefaultHeader(i,v.Accept,A.ApplicationJson);const a=yield this.get(t,i);return this._processResponse(a,this.requestOptions)}))}postJson(t,i,a={}){return l(this,void 0,void 0,(function*(){const o=JSON.stringify(i,null,2);a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,A.ApplicationJson);a[v.ContentType]=this._getExistingOrDefaultHeader(a,v.ContentType,A.ApplicationJson);const p=yield this.post(t,o,a);return this._processResponse(p,this.requestOptions)}))}putJson(t,i,a={}){return l(this,void 0,void 0,(function*(){const o=JSON.stringify(i,null,2);a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,A.ApplicationJson);a[v.ContentType]=this._getExistingOrDefaultHeader(a,v.ContentType,A.ApplicationJson);const p=yield this.put(t,o,a);return this._processResponse(p,this.requestOptions)}))}patchJson(t,i,a={}){return l(this,void 0,void 0,(function*(){const o=JSON.stringify(i,null,2);a[v.Accept]=this._getExistingOrDefaultHeader(a,v.Accept,A.ApplicationJson);a[v.ContentType]=this._getExistingOrDefaultHeader(a,v.ContentType,A.ApplicationJson);const p=yield this.patch(t,o,a);return this._processResponse(p,this.requestOptions)}))}request(t,i,a,o){return l(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const p=new URL(i);let u=this._prepareRequest(t,p,o);const l=this._allowRetries&&b.includes(t)?this._maxRetries+1:1;let d=0;let h;do{h=yield this.requestRaw(u,a);if(h&&h.message&&h.message.statusCode===E.Unauthorized){let t;for(const i of this.handlers){if(i.canHandleAuthentication(h)){t=i;break}}if(t){return t.handleAuthentication(this,u,a)}else{return h}}let i=this._maxRedirects;while(h.message.statusCode&&y.includes(h.message.statusCode)&&this._allowRedirects&&i>0){const l=h.message.headers["location"];if(!l){break}const d=new URL(l);if(p.protocol==="https:"&&p.protocol!==d.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 h.readBody();if(d.hostname!==p.hostname){for(const t in o){if(t.toLowerCase()==="authorization"){delete o[t]}}}u=this._prepareRequest(t,d,o);h=yield this.requestRaw(u,a);i--}if(!h.message.statusCode||!D.includes(h.message.statusCode)){return h}d+=1;if(d{function callbackForResult(t,i){if(t){o(t)}else if(!i){o(new Error("Unknown error"))}else{a(i)}}this.requestRawWithCallback(t,i,callbackForResult)}))}))}requestRawWithCallback(t,i,a){if(typeof i==="string"){if(!t.options.headers){t.options.headers={}}t.options.headers["Content-Length"]=Buffer.byteLength(i,"utf8")}let o=false;function handleResult(t,i){if(!o){o=true;a(t,i)}}const p=t.httpModule.request(t.options,(t=>{const i=new HttpClientResponse(t);handleResult(undefined,i)}));let u;p.on("socket",(t=>{u=t}));p.setTimeout(this._socketTimeout||3*6e4,(()=>{if(u){u.end()}handleResult(new Error(`Request timeout: ${t.options.path}`))}));p.on("error",(function(t){handleResult(t)}));if(i&&typeof i==="string"){p.write(i,"utf8")}if(i&&typeof i!=="string"){i.on("close",(function(){p.end()}));i.pipe(p)}else{p.end()}}getAgent(t){const i=new URL(t);return this._getAgent(i)}_prepareRequest(t,i,a){const o={};o.parsedUrl=i;const p=o.parsedUrl.protocol==="https:";o.httpModule=p?h:d;const u=p?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):u;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=t;o.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){for(const t of this.handlers){t.prepareRequest(o.options)}}return o}_mergeHeaders(t){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(t||{}))}return lowercaseKeys(t||{})}_getExistingOrDefaultHeader(t,i,a){let o;if(this.requestOptions&&this.requestOptions.headers){o=lowercaseKeys(this.requestOptions.headers)[i]}return t[i]||o||a}_getAgent(t){let i;const a=m.getProxyUrl(t);const o=a&&a.hostname;if(this._keepAlive&&o){i=this._proxyAgent}if(this._keepAlive&&!o){i=this._agent}if(i){return i}const p=t.protocol==="https:";let u=100;if(this.requestOptions){u=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(a&&a.hostname){const t={maxSockets:u,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let o;const l=a.protocol==="https:";if(p){o=l?g.httpsOverHttps:g.httpsOverHttp}else{o=l?g.httpOverHttps:g.httpOverHttp}i=o(t);this._proxyAgent=i}if(this._keepAlive&&!i){const t={keepAlive:this._keepAlive,maxSockets:u};i=p?new h.Agent(t):new d.Agent(t);this._agent=i}if(!i){i=p?h.globalAgent:d.globalAgent}if(p&&this._ignoreSslError){i.options=Object.assign(i.options||{},{rejectUnauthorized:false})}return i}_performExponentialBackoff(t){return l(this,void 0,void 0,(function*(){t=Math.min(C,t);const i=w*Math.pow(2,t);return new Promise((t=>setTimeout((()=>t()),i)))}))}_processResponse(t,i){return l(this,void 0,void 0,(function*(){return new Promise(((a,o)=>l(this,void 0,void 0,(function*(){const p=t.message.statusCode||0;const u={statusCode:p,result:null,headers:{}};if(p===E.NotFound){a(u)}function dateTimeDeserializer(t,i){if(typeof i==="string"){const t=new Date(i);if(!isNaN(t.valueOf())){return t}}return i}let l;let d;try{d=yield t.readBody();if(d&&d.length>0){if(i&&i.deserializeDates){l=JSON.parse(d,dateTimeDeserializer)}else{l=JSON.parse(d)}u.result=l}u.headers=t.message.headers}catch(t){}if(p>299){let t;if(l&&l.message){t=l.message}else if(d&&d.length>0){t=d}else{t=`Failed request: (${p})`}const i=new HttpClientError(t,p);i.result=u.result;o(i)}else{a(u)}}))))}))}}i.HttpClient=HttpClient;const lowercaseKeys=t=>Object.keys(t).reduce(((i,a)=>(i[a.toLowerCase()]=t[a],i)),{})},9835:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.checkBypass=i.getProxyUrl=void 0;function getProxyUrl(t){const i=t.protocol==="https:";if(checkBypass(t)){return undefined}const a=(()=>{if(i){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(a){return new URL(a)}else{return undefined}}i.getProxyUrl=getProxyUrl;function checkBypass(t){if(!t.hostname){return false}const i=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!i){return false}let a;if(t.port){a=Number(t.port)}else if(t.protocol==="http:"){a=80}else if(t.protocol==="https:"){a=443}const o=[t.hostname.toUpperCase()];if(typeof a==="number"){o.push(`${o[0]}:${a}`)}for(const t of i.split(",").map((t=>t.trim().toUpperCase())).filter((t=>t))){if(o.some((i=>i===t))){return true}}return false}i.checkBypass=checkBypass},1231:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var o=a(6762);var p=a(20);var u=a(4193);var l=a(3044);var d=_interopDefault(a(7367));const h="4.0.4";const m={authStrategy:p.createActionAuth,baseUrl:getApiBaseUrl(),userAgent:`octokit-action.js/${h}`};const g=o.Octokit.plugin(u.paginateRest,l.legacyRestEndpointMethods).defaults((function buildDefaults(t){return{...m,...t,request:{agent:new d,...t.request}}}));function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}i.Octokit=g},20:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(334);const p=function createActionAuth(){if(!process.env.GITHUB_ACTION){throw new Error("[@octokit/auth-action] `GITHUB_ACTION` environment variable is not set. @octokit/auth-action is meant to be used in GitHub Actions only.")}const t=[process.env.GITHUB_TOKEN,process.env.INPUT_GITHUB_TOKEN,process.env.INPUT_TOKEN].filter(Boolean);if(t.length===0){throw new Error("[@octokit/auth-action] `GITHUB_TOKEN` variable is not set. It must be set on either `env:` or `with:`. See https://github.com/octokit/auth-action.js#createactionauth")}if(t.length>1){throw new Error("[@octokit/auth-action] The token variable is specified more than once. Use either `with.token`, `with.GITHUB_TOKEN`, or `env.GITHUB_TOKEN`. See https://github.com/octokit/auth-action.js#createactionauth")}const i=t.pop();return o.createTokenAuth(i)};i.createActionAuth=p},334:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a=/^v1\./;const o=/^ghs_/;const p=/^ghu_/;async function auth(t){const i=t.split(/\./).length===3;const u=a.test(t)||o.test(t);const l=p.test(t);const d=i?"app":u?"installation":l?"user-to-server":"oauth";return{type:"token",token:t,tokenType:d}}function withAuthorizationPrefix(t){if(t.split(/\./).length===3){return`bearer ${t}`}return`token ${t}`}async function hook(t,i,a,o){const p=i.endpoint.merge(a,o);p.headers.authorization=withAuthorizationPrefix(t);return i(p)}const u=function createTokenAuth(t){if(!t){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof t!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}t=t.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,t),{hook:hook.bind(null,t)})};i.createTokenAuth=u},6762:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(5030);var p=a(3682);var u=a(6234);var l=a(8467);var d=a(334);const h="4.0.4";class Octokit{constructor(t={}){const i=new p.Collection;const a={baseUrl:u.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},t.request,{hook:i.bind(null,"request")}),mediaType:{previews:[],format:""}};a.headers["user-agent"]=[t.userAgent,`octokit-core.js/${h} ${o.getUserAgent()}`].filter(Boolean).join(" ");if(t.baseUrl){a.baseUrl=t.baseUrl}if(t.previews){a.mediaType.previews=t.previews}if(t.timeZone){a.headers["time-zone"]=t.timeZone}this.request=u.request.defaults(a);this.graphql=l.withCustomRequest(this.request).defaults(a);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},t.log);this.hook=i;if(!t.authStrategy){if(!t.auth){this.auth=async()=>({type:"unauthenticated"})}else{const a=d.createTokenAuth(t.auth);i.wrap("request",a.hook);this.auth=a}}else{const{authStrategy:a,...o}=t;const p=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},t.auth));i.wrap("request",p.hook);this.auth=p}const m=this.constructor;m.plugins.forEach((i=>{Object.assign(this,i(this,t))}))}static defaults(t){const i=class extends(this){constructor(...i){const a=i[0]||{};if(typeof t==="function"){super(t(a));return}super(Object.assign({},t,a,a.userAgent&&t.userAgent?{userAgent:`${a.userAgent} ${t.userAgent}`}:null))}};return i}static plugin(...t){var i;const a=this.plugins;const o=(i=class extends(this){},i.plugins=a.concat(t.filter((t=>!a.includes(t)))),i);return o}}Octokit.VERSION=h;Octokit.plugins=[];i.Octokit=Octokit},9440:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(3287);var p=a(5030);function lowercaseKeys(t){if(!t){return{}}return Object.keys(t).reduce(((i,a)=>{i[a.toLowerCase()]=t[a];return i}),{})}function mergeDeep(t,i){const a=Object.assign({},t);Object.keys(i).forEach((p=>{if(o.isPlainObject(i[p])){if(!(p in t))Object.assign(a,{[p]:i[p]});else a[p]=mergeDeep(t[p],i[p])}else{Object.assign(a,{[p]:i[p]})}}));return a}function removeUndefinedProperties(t){for(const i in t){if(t[i]===undefined){delete t[i]}}return t}function merge(t,i,a){if(typeof i==="string"){let[t,o]=i.split(" ");a=Object.assign(o?{method:t,url:o}:{url:t},a)}else{a=Object.assign({},i)}a.headers=lowercaseKeys(a.headers);removeUndefinedProperties(a);removeUndefinedProperties(a.headers);const o=mergeDeep(t||{},a);if(t&&t.mediaType.previews.length){o.mediaType.previews=t.mediaType.previews.filter((t=>!o.mediaType.previews.includes(t))).concat(o.mediaType.previews)}o.mediaType.previews=o.mediaType.previews.map((t=>t.replace(/-preview/,"")));return o}function addQueryParameters(t,i){const a=/\?/.test(t)?"&":"?";const o=Object.keys(i);if(o.length===0){return t}return t+a+o.map((t=>{if(t==="q"){return"q="+i.q.split("+").map(encodeURIComponent).join("+")}return`${t}=${encodeURIComponent(i[t])}`})).join("&")}const u=/\{[^}]+\}/g;function removeNonChars(t){return t.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(t){const i=t.match(u);if(!i){return[]}return i.map(removeNonChars).reduce(((t,i)=>t.concat(i)),[])}function omit(t,i){return Object.keys(t).filter((t=>!i.includes(t))).reduce(((i,a)=>{i[a]=t[a];return i}),{})}function encodeReserved(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map((function(t){if(!/%[0-9A-Fa-f]/.test(t)){t=encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]")}return t})).join("")}function encodeUnreserved(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(t,i,a){i=t==="+"||t==="#"?encodeReserved(i):encodeUnreserved(i);if(a){return encodeUnreserved(a)+"="+i}else{return i}}function isDefined(t){return t!==undefined&&t!==null}function isKeyOperator(t){return t===";"||t==="&"||t==="?"}function getValues(t,i,a,o){var p=t[a],u=[];if(isDefined(p)&&p!==""){if(typeof p==="string"||typeof p==="number"||typeof p==="boolean"){p=p.toString();if(o&&o!=="*"){p=p.substring(0,parseInt(o,10))}u.push(encodeValue(i,p,isKeyOperator(i)?a:""))}else{if(o==="*"){if(Array.isArray(p)){p.filter(isDefined).forEach((function(t){u.push(encodeValue(i,t,isKeyOperator(i)?a:""))}))}else{Object.keys(p).forEach((function(t){if(isDefined(p[t])){u.push(encodeValue(i,p[t],t))}}))}}else{const t=[];if(Array.isArray(p)){p.filter(isDefined).forEach((function(a){t.push(encodeValue(i,a))}))}else{Object.keys(p).forEach((function(a){if(isDefined(p[a])){t.push(encodeUnreserved(a));t.push(encodeValue(i,p[a].toString()))}}))}if(isKeyOperator(i)){u.push(encodeUnreserved(a)+"="+t.join(","))}else if(t.length!==0){u.push(t.join(","))}}}}else{if(i===";"){if(isDefined(p)){u.push(encodeUnreserved(a))}}else if(p===""&&(i==="&"||i==="?")){u.push(encodeUnreserved(a)+"=")}else if(p===""){u.push("")}}return u}function parseUrl(t){return{expand:expand.bind(null,t)}}function expand(t,i){var a=["+","#",".","/",";","?","&"];return t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(t,o,p){if(o){let t="";const p=[];if(a.indexOf(o.charAt(0))!==-1){t=o.charAt(0);o=o.substr(1)}o.split(/,/g).forEach((function(a){var o=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);p.push(getValues(i,t,o[1],o[2]||o[3]))}));if(t&&t!=="+"){var u=",";if(t==="?"){u="&"}else if(t!=="#"){u=t}return(p.length!==0?t:"")+p.join(u)}else{return p.join(",")}}else{return encodeReserved(p)}}))}function parse(t){let i=t.method.toUpperCase();let a=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let o=Object.assign({},t.headers);let p;let u=omit(t,["method","baseUrl","url","headers","request","mediaType"]);const l=extractUrlVariableNames(a);a=parseUrl(a).expand(u);if(!/^http/.test(a)){a=t.baseUrl+a}const d=Object.keys(t).filter((t=>l.includes(t))).concat("baseUrl");const h=omit(u,d);const m=/application\/octet-stream/i.test(o.accept);if(!m){if(t.mediaType.format){o.accept=o.accept.split(/,/).map((i=>i.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${t.mediaType.format}`))).join(",")}if(t.mediaType.previews.length){const i=o.accept.match(/[\w-]+(?=-preview)/g)||[];o.accept=i.concat(t.mediaType.previews).map((i=>{const a=t.mediaType.format?`.${t.mediaType.format}`:"+json";return`application/vnd.github.${i}-preview${a}`})).join(",")}}if(["GET","HEAD"].includes(i)){a=addQueryParameters(a,h)}else{if("data"in h){p=h.data}else{if(Object.keys(h).length){p=h}else{o["content-length"]=0}}}if(!o["content-type"]&&typeof p!=="undefined"){o["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(i)&&typeof p==="undefined"){p=""}return Object.assign({method:i,url:a,headers:o},typeof p!=="undefined"?{body:p}:null,t.request?{request:t.request}:null)}function endpointWithDefaults(t,i,a){return parse(merge(t,i,a))}function withDefaults(t,i){const a=merge(t,i);const o=endpointWithDefaults.bind(null,a);return Object.assign(o,{DEFAULTS:a,defaults:withDefaults.bind(null,a),merge:merge.bind(null,a),parse:parse})}const l="7.0.0";const d=`octokit-endpoint.js/${l} ${p.getUserAgent()}`;const h={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":d},mediaType:{format:"",previews:[]}};const m=withDefaults(null,h);i.endpoint=m},8467:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(6234);var p=a(5030);const u="5.0.0";function _buildMessageForResponseErrors(t){return`Request failed due to following response errors:\n`+t.errors.map((t=>` - ${t.message}`)).join("\n")}class GraphqlResponseError extends Error{constructor(t,i,a){super(_buildMessageForResponseErrors(a));this.request=t;this.headers=i;this.response=a;this.name="GraphqlResponseError";this.errors=a.errors;this.data=a.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const l=["method","baseUrl","url","headers","request","query","mediaType"];const d=["query","method","url"];const h=/\/api\/v3\/?$/;function graphql(t,i,a){if(a){if(typeof i==="string"&&"query"in a){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const t in a){if(!d.includes(t))continue;return Promise.reject(new Error(`[@octokit/graphql] "${t}" cannot be used as variable name`))}}const o=typeof i==="string"?Object.assign({query:i},a):i;const p=Object.keys(o).reduce(((t,i)=>{if(l.includes(i)){t[i]=o[i];return t}if(!t.variables){t.variables={}}t.variables[i]=o[i];return t}),{});const u=o.baseUrl||t.endpoint.DEFAULTS.baseUrl;if(h.test(u)){p.url=u.replace(h,"/api/graphql")}return t(p).then((t=>{if(t.data.errors){const i={};for(const a of Object.keys(t.headers)){i[a]=t.headers[a]}throw new GraphqlResponseError(p,i,t.data)}return t.data.data}))}function withDefaults(t,i){const a=t.defaults(i);const newApi=(t,i)=>graphql(a,t,i);return Object.assign(newApi,{defaults:withDefaults.bind(null,a),endpoint:o.request.endpoint})}const m=withDefaults(o.request,{headers:{"user-agent":`octokit-graphql.js/${u} ${p.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(t){return withDefaults(t,{method:"POST",url:"/graphql"})}i.GraphqlResponseError=GraphqlResponseError;i.graphql=m;i.withCustomRequest=withCustomRequest},4193:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a="3.1.0";function normalizePaginatedListResponse(t){if(!t.data){return{...t,data:[]}}const i="total_count"in t.data&&!("url"in t.data);if(!i)return t;const a=t.data.incomplete_results;const o=t.data.repository_selection;const p=t.data.total_count;delete t.data.incomplete_results;delete t.data.repository_selection;delete t.data.total_count;const u=Object.keys(t.data)[0];const l=t.data[u];t.data=l;if(typeof a!=="undefined"){t.data.incomplete_results=a}if(typeof o!=="undefined"){t.data.repository_selection=o}t.data.total_count=p;return t}function iterator(t,i,a){const o=typeof i==="function"?i.endpoint(a):t.request.endpoint(i,a);const p=typeof i==="function"?i:t.request;const u=o.method;const l=o.headers;let d=o.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!d)return{done:true};try{const t=await p({method:u,url:d,headers:l});const i=normalizePaginatedListResponse(t);d=((i.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:i}}catch(t){if(t.status!==409)throw t;d="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(t,i,a,o){if(typeof a==="function"){o=a;a=undefined}return gather(t,[],iterator(t,i,a)[Symbol.asyncIterator](),o)}function gather(t,i,a,o){return a.next().then((p=>{if(p.done){return i}let u=false;function done(){u=true}i=i.concat(o?o(p.value,done):p.value.data);if(u){return i}return gather(t,i,a,o)}))}const o=Object.assign(paginate,{iterator:iterator});const p=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/code-scanning/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(t){if(typeof t==="string"){return p.includes(t)}else{return false}}function paginateRest(t){return{paginate:Object.assign(paginate.bind(null,t),{iterator:iterator.bind(null,t)})}}paginateRest.VERSION=a;i.composePaginateRest=o;i.isPaginatingEndpoint=isPaginatingEndpoint;i.paginateRest=paginateRest;i.paginatingEndpoints=p},3044:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForEnterprise:["GET /enterprises/{enterprise}/actions/cache/usage"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getGithubActionsDefaultWorkflowPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setGithubActionsDefaultWorkflowPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubAdvancedSecurityBillingGhe:["GET /enterprises/{enterprise}/settings/billing/advanced-security"],getGithubAdvancedSecurityBillingOrg:["GET /orgs/{org}/settings/billing/advanced-security"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/code-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"]},emojis:{get:["GET /emojis"]},enterpriseAdmin:{addCustomLabelsToSelfHostedRunnerForEnterprise:["POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],disableSelectedOrganizationGithubActionsEnterprise:["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],enableSelectedOrganizationGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"],getAllowedActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/selected-actions"],getGithubActionsPermissionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions"],getServerStatistics:["GET /enterprise-installation/{enterprise_or_org}/server-statistics"],listLabelsForSelfHostedRunnerForEnterprise:["GET /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],listSelectedOrganizationsEnabledGithubActionsEnterprise:["GET /enterprises/{enterprise}/actions/permissions/organizations"],removeAllCustomLabelsFromSelfHostedRunnerForEnterprise:["DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForEnterprise:["DELETE /enterprises/{enterprise}/actions/runners/{runner_id}/labels/{name}"],setAllowedActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForEnterprise:["PUT /enterprises/{enterprise}/actions/runners/{runner_id}/labels"],setGithubActionsPermissionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions"],setSelectedOrganizationsEnabledGithubActionsEnterprise:["PUT /enterprises/{enterprise}/actions/permissions/organizations"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import"],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors"],getImportStatus:["GET /repos/{owner}/{repo}/import"],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs"],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import"]},orgs:{blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createInvitation:["POST /orgs/{org}/invitations"],createWebhook:["POST /orgs/{org}/hooks"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomRoles:["GET /organizations/{organization_id}/custom_roles"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableLfsForRepo:["DELETE /repos/{owner}/{repo}/lfs"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enableLfsForRepo:["PUT /repos/{owner}/{repo}/lfs"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};const o="6.2.0";function endpointsToMethods(t,i){const a={};for(const[o,p]of Object.entries(i)){for(const[i,u]of Object.entries(p)){const[p,l,d]=u;const[h,m]=p.split(/ /);const g=Object.assign({method:h,url:m},l);if(!a[o]){a[o]={}}const E=a[o];if(d){E[i]=decorate(t,o,i,g,d);continue}E[i]=t.request.defaults(g)}}return a}function decorate(t,i,a,o,p){const u=t.request.defaults(o);function withDecorations(...o){let l=u.endpoint.merge(...o);if(p.mapToData){l=Object.assign({},l,{data:l[p.mapToData],[p.mapToData]:undefined});return u(l)}if(p.renamed){const[o,u]=p.renamed;t.log.warn(`octokit.${i}.${a}() has been renamed to octokit.${o}.${u}()`)}if(p.deprecated){t.log.warn(p.deprecated)}if(p.renamedParameters){const l=u.endpoint.merge(...o);for(const[o,u]of Object.entries(p.renamedParameters)){if(o in l){t.log.warn(`"${o}" parameter is deprecated for "octokit.${i}.${a}()". Use "${u}" instead`);if(!(u in l)){l[u]=l[o]}delete l[o]}}return u(l)}return u(...o)}return Object.assign(withDecorations,u)}function restEndpointMethods(t){const i=endpointsToMethods(t,a);return{rest:i}}restEndpointMethods.VERSION=o;function legacyRestEndpointMethods(t){const i=endpointsToMethods(t,a);return{...i,rest:i}}legacyRestEndpointMethods.VERSION=o;i.legacyRestEndpointMethods=legacyRestEndpointMethods;i.restEndpointMethods=restEndpointMethods},537:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var o=a(8932);var p=_interopDefault(a(1223));const u=p((t=>console.warn(t)));const l=p((t=>console.warn(t)));class RequestError extends Error{constructor(t,i,a){super(t);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=i;let p;if("headers"in a&&typeof a.headers!=="undefined"){p=a.headers}if("response"in a){this.response=a.response;p=a.response.headers}const d=Object.assign({},a.request);if(a.request.headers.authorization){d.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}d.url=d.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=d;Object.defineProperty(this,"code",{get(){u(new o.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return i}});Object.defineProperty(this,"headers",{get(){l(new o.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return p||{}}})}}i.RequestError=RequestError},6234:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var o=a(9440);var p=a(5030);var u=a(3287);var l=_interopDefault(a(467));var d=a(537);const h="6.2.0";function getBufferResponse(t){return t.arrayBuffer()}function fetchWrapper(t){const i=t.request&&t.request.log?t.request.log:console;if(u.isPlainObject(t.body)||Array.isArray(t.body)){t.body=JSON.stringify(t.body)}let a={};let o;let p;const h=t.request&&t.request.fetch||globalThis.fetch||l;return h(t.url,Object.assign({method:t.method,body:t.body,headers:t.headers,redirect:t.redirect},t.request)).then((async u=>{p=u.url;o=u.status;for(const t of u.headers){a[t[0]]=t[1]}if("deprecation"in a){const o=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const p=o&&o.pop();i.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${p?`. See ${p}`:""}`)}if(o===204||o===205){return}if(t.method==="HEAD"){if(o<400){return}throw new d.RequestError(u.statusText,o,{response:{url:p,status:o,headers:a,data:undefined},request:t})}if(o===304){throw new d.RequestError("Not modified",o,{response:{url:p,status:o,headers:a,data:await getResponseData(u)},request:t})}if(o>=400){const i=await getResponseData(u);const l=new d.RequestError(toErrorMessage(i),o,{response:{url:p,status:o,headers:a,data:i},request:t});throw l}return getResponseData(u)})).then((t=>({status:o,url:p,headers:a,data:t}))).catch((i=>{if(i instanceof d.RequestError)throw i;else if(i.name==="AbortError")throw i;throw new d.RequestError(i.message,500,{request:t})}))}async function getResponseData(t){const i=t.headers.get("content-type");if(/application\/json/.test(i)){return t.json()}if(!i||/^text\/|charset=utf-8$/.test(i)){return t.text()}return getBufferResponse(t)}function toErrorMessage(t){if(typeof t==="string")return t;if("message"in t){if(Array.isArray(t.errors)){return`${t.message}: ${t.errors.map(JSON.stringify).join(", ")}`}return t.message}return`Unknown error: ${JSON.stringify(t)}`}function withDefaults(t,i){const a=t.defaults(i);const newApi=function(t,i){const o=a.merge(t,i);if(!o.request||!o.request.hook){return fetchWrapper(a.parse(o))}const request=(t,i)=>fetchWrapper(a.parse(a.merge(t,i)));Object.assign(request,{endpoint:a,defaults:withDefaults.bind(null,a)});return o.request.hook(request,o)};return Object.assign(newApi,{endpoint:a,defaults:withDefaults.bind(null,a)})}const m=withDefaults(o.endpoint,{headers:{"user-agent":`octokit-request.js/${h} ${p.getUserAgent()}`}});i.request=m},1040:t=>{"use strict";function noop(){}function once(t,i){const a=once.spread(t,i);const o=a.then((t=>t[0]));o.cancel=a.cancel;return o}(function(t){function spread(t,i){let a=null;const o=new Promise(((p,u)=>{function cancel(){t.removeListener(i,onEvent);t.removeListener("error",onError);o.cancel=noop}function onEvent(...t){cancel();p(t)}function onError(t){cancel();u(t)}a=cancel;t.on(i,onEvent);t.on("error",onError)}));if(!a){throw new TypeError("Could not get `cancel()` function")}o.cancel=a;return o}t.spread=spread})(once||(once={}));t.exports=once},8390:function(t,i){(function(t,a){true?a(i):0})(this,(function(t){"use strict";function simple(t,i,o,p,u){if(!o){o=a}(function c(t,a,p){var u=p||t.type,l=i[u];o[u](t,a,c);if(l){l(t,a)}})(t,p,u)}function ancestor(t,i,o,p,u){var l=[];if(!o){o=a}(function c(t,a,p){var u=p||t.type,d=i[u];var h=t!==l[l.length-1];if(h){l.push(t)}o[u](t,a,c);if(d){d(t,a||l,l)}if(h){l.pop()}})(t,p,u)}function recursive(t,i,a,o,p){var u=a?make(a,o||undefined):o;(function c(t,i,a){u[a||t.type](t,i,c)})(t,i,p)}function makeTest(t){if(typeof t==="string"){return function(i){return i===t}}else if(!t){return function(){return true}}else{return t}}var i=function Found(t,i){this.node=t;this.state=i};function full(t,i,o,p,u){if(!o){o=a}var l;(function c(t,a,p){var u=p||t.type;o[u](t,a,c);if(l!==t){i(t,a,u);l=t}})(t,p,u)}function fullAncestor(t,i,o,p){if(!o){o=a}var u=[],l;(function c(t,a,p){var d=p||t.type;var h=t!==u[u.length-1];if(h){u.push(t)}o[d](t,a,c);if(l!==t){i(t,a||u,u,d);l=t}if(h){u.pop()}})(t,p)}function findNodeAt(t,o,p,u,l,d){if(!l){l=a}u=makeTest(u);try{(function c(t,a,d){var h=d||t.type;if((o==null||t.start<=o)&&(p==null||t.end>=p)){l[h](t,a,c)}if((o==null||t.start===o)&&(p==null||t.end===p)&&u(h,t)){throw new i(t,a)}})(t,d)}catch(t){if(t instanceof i){return t}throw t}}function findNodeAround(t,o,p,u,l){p=makeTest(p);if(!u){u=a}try{(function c(t,a,l){var d=l||t.type;if(t.start>o||t.end=o&&p(d,t)){throw new i(t,a)}u[d](t,a,c)})(t,l)}catch(t){if(t instanceof i){return t}throw t}}function findNodeBefore(t,o,p,u,l){p=makeTest(p);if(!u){u=a}var d;(function c(t,a,l){if(t.start>o){return}var h=l||t.type;if(t.end<=o&&(!d||d.node.endt){return false}a+=i[o+1];if(a>=t){return true}}}function isIdentifierStart(t,i){if(t<65){return t===36}if(t<91){return true}if(t<97){return t===95}if(t<123){return true}if(t<=65535){return t>=170&&m.test(String.fromCharCode(t))}if(i===false){return false}return isInAstralSet(t,a)}function isIdentifierChar(t,o){if(t<48){return t===36}if(t<58){return true}if(t<65){return false}if(t<91){return true}if(t<97){return t===95}if(t<123){return true}if(t<=65535){return t>=170&&g.test(String.fromCharCode(t))}if(o===false){return false}return isInAstralSet(t,a)||isInAstralSet(t,i)}var E=function TokenType(t,i){if(i===void 0)i={};this.label=t;this.keyword=i.keyword;this.beforeExpr=!!i.beforeExpr;this.startsExpr=!!i.startsExpr;this.isLoop=!!i.isLoop;this.isAssign=!!i.isAssign;this.prefix=!!i.prefix;this.postfix=!!i.postfix;this.binop=i.binop||null;this.updateContext=null};function binop(t,i){return new E(t,{beforeExpr:true,binop:i})}var v={beforeExpr:true},A={startsExpr:true};var y={};function kw(t,i){if(i===void 0)i={};i.keyword=t;return y[t]=new E(t,i)}var D={num:new E("num",A),regexp:new E("regexp",A),string:new E("string",A),name:new E("name",A),privateId:new E("privateId",A),eof:new E("eof"),bracketL:new E("[",{beforeExpr:true,startsExpr:true}),bracketR:new E("]"),braceL:new E("{",{beforeExpr:true,startsExpr:true}),braceR:new E("}"),parenL:new E("(",{beforeExpr:true,startsExpr:true}),parenR:new E(")"),comma:new E(",",v),semi:new E(";",v),colon:new E(":",v),dot:new E("."),question:new E("?",v),questionDot:new E("?."),arrow:new E("=>",v),template:new E("template"),invalidTemplate:new E("invalidTemplate"),ellipsis:new E("...",v),backQuote:new E("`",A),dollarBraceL:new E("${",{beforeExpr:true,startsExpr:true}),eq:new E("=",{beforeExpr:true,isAssign:true}),assign:new E("_=",{beforeExpr:true,isAssign:true}),incDec:new E("++/--",{prefix:true,postfix:true,startsExpr:true}),prefix:new E("!/~",{beforeExpr:true,prefix:true,startsExpr:true}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new E("+/-",{beforeExpr:true,binop:9,prefix:true,startsExpr:true}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new E("**",{beforeExpr:true}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",v),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",v),_do:kw("do",{isLoop:true,beforeExpr:true}),_else:kw("else",v),_finally:kw("finally"),_for:kw("for",{isLoop:true}),_function:kw("function",A),_if:kw("if"),_return:kw("return",v),_switch:kw("switch"),_throw:kw("throw",v),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:true}),_with:kw("with"),_new:kw("new",{beforeExpr:true,startsExpr:true}),_this:kw("this",A),_super:kw("super",A),_class:kw("class",A),_extends:kw("extends",v),_export:kw("export"),_import:kw("import",A),_null:kw("null",A),_true:kw("true",A),_false:kw("false",A),_in:kw("in",{beforeExpr:true,binop:7}),_instanceof:kw("instanceof",{beforeExpr:true,binop:7}),_typeof:kw("typeof",{beforeExpr:true,prefix:true,startsExpr:true}),_void:kw("void",{beforeExpr:true,prefix:true,startsExpr:true}),_delete:kw("delete",{beforeExpr:true,prefix:true,startsExpr:true})};var b=/\r\n?|\n|\u2028|\u2029/;var C=new RegExp(b.source,"g");function isNewLine(t){return t===10||t===13||t===8232||t===8233}function nextLineBreak(t,i,a){if(a===void 0)a=t.length;for(var o=i;o>10)+55296,(t&1023)+56320)}var P=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;var O=function Position(t,i){this.line=t;this.column=i};O.prototype.offset=function offset(t){return new O(this.line,this.column+t)};var I=function SourceLocation(t,i,a){this.start=i;this.end=a;if(t.sourceFile!==null){this.source=t.sourceFile}};function getLineInfo(t,i){for(var a=1,o=0;;){var p=nextLineBreak(t,o,i);if(p<0){return new O(a,i-o)}++a;o=p}}var N={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:false,allowImportExportEverywhere:false,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:false,locations:false,onToken:null,onComment:null,ranges:false,program:null,sourceFile:null,directSourceFile:null,preserveParens:false};var R=false;function getOptions(t){var i={};for(var a in N){i[a]=t&&x(t,a)?t[a]:N[a]}if(i.ecmaVersion==="latest"){i.ecmaVersion=1e8}else if(i.ecmaVersion==null){if(!R&&typeof console==="object"&&console.warn){R=true;console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")}i.ecmaVersion=11}else if(i.ecmaVersion>=2015){i.ecmaVersion-=2009}if(i.allowReserved==null){i.allowReserved=i.ecmaVersion<5}if(t.allowHashBang==null){i.allowHashBang=i.ecmaVersion>=14}if(k(i.onToken)){var o=i.onToken;i.onToken=function(t){return o.push(t)}}if(k(i.onComment)){i.onComment=pushComment(i,i.onComment)}return i}function pushComment(t,i){return function(a,o,p,u,l,d){var h={type:a?"Block":"Line",value:o,start:p,end:u};if(t.locations){h.loc=new I(this,l,d)}if(t.ranges){h.range=[p,u]}i.push(h)}}var L=1,U=2,G=4,M=8,j=16,V=32,q=64,H=128,W=256,z=L|U|W;function functionFlags(t,i){return U|(t?G:0)|(i?M:0)}var $=0,J=1,K=2,X=3,Y=4,Z=5;var Q=function Parser(t,i,a){this.options=t=getOptions(t);this.sourceFile=t.sourceFile;this.keywords=wordsRegexp(d[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var o="";if(t.allowReserved!==true){o=u[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3];if(t.sourceType==="module"){o+=" await"}}this.reservedWords=wordsRegexp(o);var p=(o?o+" ":"")+u.strict;this.reservedWordsStrict=wordsRegexp(p);this.reservedWordsStrictBind=wordsRegexp(p+" "+u.strictBind);this.input=String(i);this.containsEsc=false;if(a){this.pos=a;this.lineStart=this.input.lastIndexOf("\n",a-1)+1;this.curLine=this.input.slice(0,this.lineStart).split(b).length}else{this.pos=this.lineStart=0;this.curLine=1}this.type=D.eof;this.value=null;this.start=this.end=this.pos;this.startLoc=this.endLoc=this.curPosition();this.lastTokEndLoc=this.lastTokStartLoc=null;this.lastTokStart=this.lastTokEnd=this.pos;this.context=this.initialContext();this.exprAllowed=true;this.inModule=t.sourceType==="module";this.strict=this.inModule||this.strictDirective(this.pos);this.potentialArrowAt=-1;this.potentialArrowInForAwait=false;this.yieldPos=this.awaitPos=this.awaitIdentPos=0;this.labels=[];this.undefinedExports=Object.create(null);if(this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"){this.skipLineComment(2)}this.scopeStack=[];this.enterScope(L);this.regexpState=null;this.privateNameStack=[]};var ee={inFunction:{configurable:true},inGenerator:{configurable:true},inAsync:{configurable:true},canAwait:{configurable:true},allowSuper:{configurable:true},allowDirectSuper:{configurable:true},treatFunctionsAsVar:{configurable:true},allowNewDotTarget:{configurable:true},inClassStaticBlock:{configurable:true}};Q.prototype.parse=function parse(){var t=this.options.program||this.startNode();this.nextToken();return this.parseTopLevel(t)};ee.inFunction.get=function(){return(this.currentVarScope().flags&U)>0};ee.inGenerator.get=function(){return(this.currentVarScope().flags&M)>0&&!this.currentVarScope().inClassFieldInit};ee.inAsync.get=function(){return(this.currentVarScope().flags&G)>0&&!this.currentVarScope().inClassFieldInit};ee.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var i=this.scopeStack[t];if(i.inClassFieldInit||i.flags&W){return false}if(i.flags&U){return(i.flags&G)>0}}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};ee.allowSuper.get=function(){var t=this.currentThisScope();var i=t.flags;var a=t.inClassFieldInit;return(i&q)>0||a||this.options.allowSuperOutsideMethod};ee.allowDirectSuper.get=function(){return(this.currentThisScope().flags&H)>0};ee.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};ee.allowNewDotTarget.get=function(){var t=this.currentThisScope();var i=t.flags;var a=t.inClassFieldInit;return(i&(U|W))>0||a};ee.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&W)>0};Q.extend=function extend(){var t=[],i=arguments.length;while(i--)t[i]=arguments[i];var a=this;for(var o=0;o=,?^&]/.test(p)||p==="!"&&this.input.charAt(o+1)==="=")}t+=i[0].length;S.lastIndex=t;t+=S.exec(this.input)[0].length;if(this.input[t]===";"){t++}}};te.eat=function(t){if(this.type===t){this.next();return true}else{return false}};te.isContextual=function(t){return this.type===D.name&&this.value===t&&!this.containsEsc};te.eatContextual=function(t){if(!this.isContextual(t)){return false}this.next();return true};te.expectContextual=function(t){if(!this.eatContextual(t)){this.unexpected()}};te.canInsertSemicolon=function(){return this.type===D.eof||this.type===D.braceR||b.test(this.input.slice(this.lastTokEnd,this.start))};te.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon){this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc)}return true}};te.semicolon=function(){if(!this.eat(D.semi)&&!this.insertSemicolon()){this.unexpected()}};te.afterTrailingComma=function(t,i){if(this.type===t){if(this.options.onTrailingComma){this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc)}if(!i){this.next()}return true}};te.expect=function(t){this.eat(t)||this.unexpected()};te.unexpected=function(t){this.raise(t!=null?t:this.start,"Unexpected token")};var ie=function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};te.checkPatternErrors=function(t,i){if(!t){return}if(t.trailingComma>-1){this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element")}var a=i?t.parenthesizedAssign:t.parenthesizedBind;if(a>-1){this.raiseRecoverable(a,i?"Assigning to rvalue":"Parenthesized pattern")}};te.checkExpressionErrors=function(t,i){if(!t){return false}var a=t.shorthandAssign;var o=t.doubleProto;if(!i){return a>=0||o>=0}if(a>=0){this.raise(a,"Shorthand property assignments are valid only in destructuring patterns")}if(o>=0){this.raiseRecoverable(o,"Redefinition of __proto__ property")}};te.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&o<56320){return true}if(t){return false}if(o===123){return true}if(isIdentifierStart(o,true)){var p=a+1;while(isIdentifierChar(o=this.input.charCodeAt(p),true)){++p}if(o===92||o>55295&&o<56320){return true}var u=this.input.slice(a,p);if(!h.test(u)){return true}}return false};se.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async")){return false}S.lastIndex=this.pos;var t=S.exec(this.input);var i=this.pos+t[0].length,a;return!b.test(this.input.slice(this.pos,i))&&this.input.slice(i,i+8)==="function"&&(i+8===this.input.length||!(isIdentifierChar(a=this.input.charCodeAt(i+8))||a>55295&&a<56320))};se.parseStatement=function(t,i,a){var o=this.type,p=this.startNode(),u;if(this.isLet(t)){o=D._var;u="let"}switch(o){case D._break:case D._continue:return this.parseBreakContinueStatement(p,o.keyword);case D._debugger:return this.parseDebuggerStatement(p);case D._do:return this.parseDoStatement(p);case D._for:return this.parseForStatement(p);case D._function:if(t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6){this.unexpected()}return this.parseFunctionStatement(p,false,!t);case D._class:if(t){this.unexpected()}return this.parseClass(p,true);case D._if:return this.parseIfStatement(p);case D._return:return this.parseReturnStatement(p);case D._switch:return this.parseSwitchStatement(p);case D._throw:return this.parseThrowStatement(p);case D._try:return this.parseTryStatement(p);case D._const:case D._var:u=u||this.value;if(t&&u!=="var"){this.unexpected()}return this.parseVarStatement(p,u);case D._while:return this.parseWhileStatement(p);case D._with:return this.parseWithStatement(p);case D.braceL:return this.parseBlock(true,p);case D.semi:return this.parseEmptyStatement(p);case D._export:case D._import:if(this.options.ecmaVersion>10&&o===D._import){S.lastIndex=this.pos;var l=S.exec(this.input);var d=this.pos+l[0].length,h=this.input.charCodeAt(d);if(h===40||h===46){return this.parseExpressionStatement(p,this.parseExpression())}}if(!this.options.allowImportExportEverywhere){if(!i){this.raise(this.start,"'import' and 'export' may only appear at the top level")}if(!this.inModule){this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}}return o===D._import?this.parseImport(p):this.parseExport(p,a);default:if(this.isAsyncFunction()){if(t){this.unexpected()}this.next();return this.parseFunctionStatement(p,true,!t)}var m=this.value,g=this.parseExpression();if(o===D.name&&g.type==="Identifier"&&this.eat(D.colon)){return this.parseLabeledStatement(p,m,g,t)}else{return this.parseExpressionStatement(p,g)}}};se.parseBreakContinueStatement=function(t,i){var a=i==="break";this.next();if(this.eat(D.semi)||this.insertSemicolon()){t.label=null}else if(this.type!==D.name){this.unexpected()}else{t.label=this.parseIdent();this.semicolon()}var o=0;for(;o=6){this.eat(D.semi)}else{this.semicolon()}return this.finishNode(t,"DoWhileStatement")};se.parseForStatement=function(t){this.next();var i=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;this.labels.push(ne);this.enterScope(0);this.expect(D.parenL);if(this.type===D.semi){if(i>-1){this.unexpected(i)}return this.parseFor(t,null)}var a=this.isLet();if(this.type===D._var||this.type===D._const||a){var o=this.startNode(),p=a?"let":this.value;this.next();this.parseVar(o,true,p);this.finishNode(o,"VariableDeclaration");if((this.type===D._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&o.declarations.length===1){if(this.options.ecmaVersion>=9){if(this.type===D._in){if(i>-1){this.unexpected(i)}}else{t.await=i>-1}}return this.parseForIn(t,o)}if(i>-1){this.unexpected(i)}return this.parseFor(t,o)}var u=this.isContextual("let"),l=false;var d=new ie;var h=this.parseExpression(i>-1?"await":true,d);if(this.type===D._in||(l=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(this.options.ecmaVersion>=9){if(this.type===D._in){if(i>-1){this.unexpected(i)}}else{t.await=i>-1}}if(u&&l){this.raise(h.start,"The left-hand side of a for-of loop may not start with 'let'.")}this.toAssignable(h,false,d);this.checkLValPattern(h);return this.parseForIn(t,h)}else{this.checkExpressionErrors(d,true)}if(i>-1){this.unexpected(i)}return this.parseFor(t,h)};se.parseFunctionStatement=function(t,i,a){this.next();return this.parseFunction(t,pe|(a?0:ue),false,i)};se.parseIfStatement=function(t){this.next();t.test=this.parseParenExpression();t.consequent=this.parseStatement("if");t.alternate=this.eat(D._else)?this.parseStatement("if"):null;return this.finishNode(t,"IfStatement")};se.parseReturnStatement=function(t){if(!this.inFunction&&!this.options.allowReturnOutsideFunction){this.raise(this.start,"'return' outside of function")}this.next();if(this.eat(D.semi)||this.insertSemicolon()){t.argument=null}else{t.argument=this.parseExpression();this.semicolon()}return this.finishNode(t,"ReturnStatement")};se.parseSwitchStatement=function(t){this.next();t.discriminant=this.parseParenExpression();t.cases=[];this.expect(D.braceL);this.labels.push(ae);this.enterScope(0);var i;for(var a=false;this.type!==D.braceR;){if(this.type===D._case||this.type===D._default){var o=this.type===D._case;if(i){this.finishNode(i,"SwitchCase")}t.cases.push(i=this.startNode());i.consequent=[];this.next();if(o){i.test=this.parseExpression()}else{if(a){this.raiseRecoverable(this.lastTokStart,"Multiple default clauses")}a=true;i.test=null}this.expect(D.colon)}else{if(!i){this.unexpected()}i.consequent.push(this.parseStatement(null))}}this.exitScope();if(i){this.finishNode(i,"SwitchCase")}this.next();this.labels.pop();return this.finishNode(t,"SwitchStatement")};se.parseThrowStatement=function(t){this.next();if(b.test(this.input.slice(this.lastTokEnd,this.start))){this.raise(this.lastTokEnd,"Illegal newline after throw")}t.argument=this.parseExpression();this.semicolon();return this.finishNode(t,"ThrowStatement")};var oe=[];se.parseTryStatement=function(t){this.next();t.block=this.parseBlock();t.handler=null;if(this.type===D._catch){var i=this.startNode();this.next();if(this.eat(D.parenL)){i.param=this.parseBindingAtom();var a=i.param.type==="Identifier";this.enterScope(a?V:0);this.checkLValPattern(i.param,a?Y:K);this.expect(D.parenR)}else{if(this.options.ecmaVersion<10){this.unexpected()}i.param=null;this.enterScope(0)}i.body=this.parseBlock(false);this.exitScope();t.handler=this.finishNode(i,"CatchClause")}t.finalizer=this.eat(D._finally)?this.parseBlock():null;if(!t.handler&&!t.finalizer){this.raise(t.start,"Missing catch or finally clause")}return this.finishNode(t,"TryStatement")};se.parseVarStatement=function(t,i){this.next();this.parseVar(t,false,i);this.semicolon();return this.finishNode(t,"VariableDeclaration")};se.parseWhileStatement=function(t){this.next();t.test=this.parseParenExpression();this.labels.push(ne);t.body=this.parseStatement("while");this.labels.pop();return this.finishNode(t,"WhileStatement")};se.parseWithStatement=function(t){if(this.strict){this.raise(this.start,"'with' in strict mode")}this.next();t.object=this.parseParenExpression();t.body=this.parseStatement("with");return this.finishNode(t,"WithStatement")};se.parseEmptyStatement=function(t){this.next();return this.finishNode(t,"EmptyStatement")};se.parseLabeledStatement=function(t,i,a,o){for(var p=0,u=this.labels;p=0;h--){var m=this.labels[h];if(m.statementStart===t.start){m.statementStart=this.start;m.kind=d}else{break}}this.labels.push({name:i,kind:d,statementStart:this.start});t.body=this.parseStatement(o?o.indexOf("label")===-1?o+"label":o:"label");this.labels.pop();t.label=a;return this.finishNode(t,"LabeledStatement")};se.parseExpressionStatement=function(t,i){t.expression=i;this.semicolon();return this.finishNode(t,"ExpressionStatement")};se.parseBlock=function(t,i,a){if(t===void 0)t=true;if(i===void 0)i=this.startNode();i.body=[];this.expect(D.braceL);if(t){this.enterScope(0)}while(this.type!==D.braceR){var o=this.parseStatement(null);i.body.push(o)}if(a){this.strict=false}this.next();if(t){this.exitScope()}return this.finishNode(i,"BlockStatement")};se.parseFor=function(t,i){t.init=i;this.expect(D.semi);t.test=this.type===D.semi?null:this.parseExpression();this.expect(D.semi);t.update=this.type===D.parenR?null:this.parseExpression();this.expect(D.parenR);t.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(t,"ForStatement")};se.parseForIn=function(t,i){var a=this.type===D._in;this.next();if(i.type==="VariableDeclaration"&&i.declarations[0].init!=null&&(!a||this.options.ecmaVersion<8||this.strict||i.kind!=="var"||i.declarations[0].id.type!=="Identifier")){this.raise(i.start,(a?"for-in":"for-of")+" loop variable declaration may not have an initializer")}t.left=i;t.right=a?this.parseExpression():this.parseMaybeAssign();this.expect(D.parenR);t.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(t,a?"ForInStatement":"ForOfStatement")};se.parseVar=function(t,i,a){t.declarations=[];t.kind=a;for(;;){var o=this.startNode();this.parseVarId(o,a);if(this.eat(D.eq)){o.init=this.parseMaybeAssign(i)}else if(a==="const"&&!(this.type===D._in||this.options.ecmaVersion>=6&&this.isContextual("of"))){this.unexpected()}else if(o.id.type!=="Identifier"&&!(i&&(this.type===D._in||this.isContextual("of")))){this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value")}else{o.init=null}t.declarations.push(this.finishNode(o,"VariableDeclarator"));if(!this.eat(D.comma)){break}}return t};se.parseVarId=function(t,i){t.id=this.parseBindingAtom();this.checkLValPattern(t.id,i==="var"?J:K,false)};var pe=1,ue=2,le=4;se.parseFunction=function(t,i,a,o,p){this.initFunction(t);if(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!o){if(this.type===D.star&&i&ue){this.unexpected()}t.generator=this.eat(D.star)}if(this.options.ecmaVersion>=8){t.async=!!o}if(i&pe){t.id=i&le&&this.type!==D.name?null:this.parseIdent();if(t.id&&!(i&ue)){this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?J:K:X)}}var u=this.yieldPos,l=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(t.async,t.generator));if(!(i&pe)){t.id=this.type===D.name?this.parseIdent():null}this.parseFunctionParams(t);this.parseFunctionBody(t,a,false,p);this.yieldPos=u;this.awaitPos=l;this.awaitIdentPos=d;return this.finishNode(t,i&pe?"FunctionDeclaration":"FunctionExpression")};se.parseFunctionParams=function(t){this.expect(D.parenL);t.params=this.parseBindingList(D.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams()};se.parseClass=function(t,i){this.next();var a=this.strict;this.strict=true;this.parseClassId(t,i);this.parseClassSuper(t);var o=this.enterClassBody();var p=this.startNode();var u=false;p.body=[];this.expect(D.braceL);while(this.type!==D.braceR){var l=this.parseClassElement(t.superClass!==null);if(l){p.body.push(l);if(l.type==="MethodDefinition"&&l.kind==="constructor"){if(u){this.raise(l.start,"Duplicate constructor in the same class")}u=true}else if(l.key&&l.key.type==="PrivateIdentifier"&&isPrivateNameConflicted(o,l)){this.raiseRecoverable(l.key.start,"Identifier '#"+l.key.name+"' has already been declared")}}}this.strict=a;this.next();t.body=this.finishNode(p,"ClassBody");this.exitClassBody();return this.finishNode(t,i?"ClassDeclaration":"ClassExpression")};se.parseClassElement=function(t){if(this.eat(D.semi)){return null}var i=this.options.ecmaVersion;var a=this.startNode();var o="";var p=false;var u=false;var l="method";var d=false;if(this.eatContextual("static")){if(i>=13&&this.eat(D.braceL)){this.parseClassStaticBlock(a);return a}if(this.isClassElementNameStart()||this.type===D.star){d=true}else{o="static"}}a.static=d;if(!o&&i>=8&&this.eatContextual("async")){if((this.isClassElementNameStart()||this.type===D.star)&&!this.canInsertSemicolon()){u=true}else{o="async"}}if(!o&&(i>=9||!u)&&this.eat(D.star)){p=true}if(!o&&!u&&!p){var h=this.value;if(this.eatContextual("get")||this.eatContextual("set")){if(this.isClassElementNameStart()){l=h}else{o=h}}}if(o){a.computed=false;a.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);a.key.name=o;this.finishNode(a.key,"Identifier")}else{this.parseClassElementName(a)}if(i<13||this.type===D.parenL||l!=="method"||p||u){var m=!a.static&&checkKeyName(a,"constructor");var g=m&&t;if(m&&l!=="method"){this.raise(a.key.start,"Constructor can't have get/set modifier")}a.kind=m?"constructor":l;this.parseClassMethod(a,p,u,g)}else{this.parseClassField(a)}return a};se.isClassElementNameStart=function(){return this.type===D.name||this.type===D.privateId||this.type===D.num||this.type===D.string||this.type===D.bracketL||this.type.keyword};se.parseClassElementName=function(t){if(this.type===D.privateId){if(this.value==="constructor"){this.raise(this.start,"Classes can't have an element named '#constructor'")}t.computed=false;t.key=this.parsePrivateIdent()}else{this.parsePropertyName(t)}};se.parseClassMethod=function(t,i,a,o){var p=t.key;if(t.kind==="constructor"){if(i){this.raise(p.start,"Constructor can't be a generator")}if(a){this.raise(p.start,"Constructor can't be an async method")}}else if(t.static&&checkKeyName(t,"prototype")){this.raise(p.start,"Classes may not have a static property named prototype")}var u=t.value=this.parseMethod(i,a,o);if(t.kind==="get"&&u.params.length!==0){this.raiseRecoverable(u.start,"getter should have no params")}if(t.kind==="set"&&u.params.length!==1){this.raiseRecoverable(u.start,"setter should have exactly one param")}if(t.kind==="set"&&u.params[0].type==="RestElement"){this.raiseRecoverable(u.params[0].start,"Setter cannot use rest params")}return this.finishNode(t,"MethodDefinition")};se.parseClassField=function(t){if(checkKeyName(t,"constructor")){this.raise(t.key.start,"Classes can't have a field named 'constructor'")}else if(t.static&&checkKeyName(t,"prototype")){this.raise(t.key.start,"Classes can't have a static field named 'prototype'")}if(this.eat(D.eq)){var i=this.currentThisScope();var a=i.inClassFieldInit;i.inClassFieldInit=true;t.value=this.parseMaybeAssign();i.inClassFieldInit=a}else{t.value=null}this.semicolon();return this.finishNode(t,"PropertyDefinition")};se.parseClassStaticBlock=function(t){t.body=[];var i=this.labels;this.labels=[];this.enterScope(W|q);while(this.type!==D.braceR){var a=this.parseStatement(null);t.body.push(a)}this.next();this.exitScope();this.labels=i;return this.finishNode(t,"StaticBlock")};se.parseClassId=function(t,i){if(this.type===D.name){t.id=this.parseIdent();if(i){this.checkLValSimple(t.id,K,false)}}else{if(i===true){this.unexpected()}t.id=null}};se.parseClassSuper=function(t){t.superClass=this.eat(D._extends)?this.parseExprSubscripts(false):null};se.enterClassBody=function(){var t={declared:Object.create(null),used:[]};this.privateNameStack.push(t);return t.declared};se.exitClassBody=function(){var t=this.privateNameStack.pop();var i=t.declared;var a=t.used;var o=this.privateNameStack.length;var p=o===0?null:this.privateNameStack[o-1];for(var u=0;u=11){if(this.eatContextual("as")){t.exported=this.parseModuleExportName();this.checkExport(i,t.exported,this.lastTokStart)}else{t.exported=null}}this.expectContextual("from");if(this.type!==D.string){this.unexpected()}t.source=this.parseExprAtom();this.semicolon();return this.finishNode(t,"ExportAllDeclaration")}if(this.eat(D._default)){this.checkExport(i,"default",this.lastTokStart);var a;if(this.type===D._function||(a=this.isAsyncFunction())){var o=this.startNode();this.next();if(a){this.next()}t.declaration=this.parseFunction(o,pe|le,false,a)}else if(this.type===D._class){var p=this.startNode();t.declaration=this.parseClass(p,"nullableID")}else{t.declaration=this.parseMaybeAssign();this.semicolon()}return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){t.declaration=this.parseStatement(null);if(t.declaration.type==="VariableDeclaration"){this.checkVariableExport(i,t.declaration.declarations)}else{this.checkExport(i,t.declaration.id,t.declaration.id.start)}t.specifiers=[];t.source=null}else{t.declaration=null;t.specifiers=this.parseExportSpecifiers(i);if(this.eatContextual("from")){if(this.type!==D.string){this.unexpected()}t.source=this.parseExprAtom()}else{for(var u=0,l=t.specifiers;u=13&&this.type===D.string){var t=this.parseLiteral(this.value);if(P.test(t.value)){this.raise(t.start,"An export name cannot include a lone surrogate.")}return t}return this.parseIdent(true)};se.adaptDirectivePrologue=function(t){for(var i=0;i=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value==="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var de=Q.prototype;de.toAssignable=function(t,i,a){if(this.options.ecmaVersion>=6&&t){switch(t.type){case"Identifier":if(this.inAsync&&t.name==="await"){this.raise(t.start,"Cannot use 'await' as identifier inside an async function")}break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";if(a){this.checkPatternErrors(a,true)}for(var o=0,p=t.properties;o=8&&!l&&d.name==="async"&&!this.canInsertSemicolon()&&this.eat(D._function)){this.overrideContext(fe.f_expr);return this.parseFunction(this.startNodeAt(p,u),0,false,true,i)}if(o&&!this.canInsertSemicolon()){if(this.eat(D.arrow)){return this.parseArrowExpression(this.startNodeAt(p,u),[d],false,i)}if(this.options.ecmaVersion>=8&&d.name==="async"&&this.type===D.name&&!l&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){d=this.parseIdent(false);if(this.canInsertSemicolon()||!this.eat(D.arrow)){this.unexpected()}return this.parseArrowExpression(this.startNodeAt(p,u),[d],true,i)}}return d;case D.regexp:var h=this.value;a=this.parseLiteral(h.value);a.regex={pattern:h.pattern,flags:h.flags};return a;case D.num:case D.string:return this.parseLiteral(this.value);case D._null:case D._true:case D._false:a=this.startNode();a.value=this.type===D._null?null:this.type===D._true;a.raw=this.type.keyword;this.next();return this.finishNode(a,"Literal");case D.parenL:var m=this.start,g=this.parseParenAndDistinguishExpression(o,i);if(t){if(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(g)){t.parenthesizedAssign=m}if(t.parenthesizedBind<0){t.parenthesizedBind=m}}return g;case D.bracketL:a=this.startNode();this.next();a.elements=this.parseExprList(D.bracketR,true,true,t);return this.finishNode(a,"ArrayExpression");case D.braceL:this.overrideContext(fe.b_expr);return this.parseObj(false,t);case D._function:a=this.startNode();this.next();return this.parseFunction(a,0);case D._class:return this.parseClass(this.startNode(),false);case D._new:return this.parseNew();case D.backQuote:return this.parseTemplate();case D._import:if(this.options.ecmaVersion>=11){return this.parseExprImport()}else{return this.unexpected()}default:this.unexpected()}};me.parseExprImport=function(){var t=this.startNode();if(this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword import")}var i=this.parseIdent(true);switch(this.type){case D.parenL:return this.parseDynamicImport(t);case D.dot:t.meta=i;return this.parseImportMeta(t);default:this.unexpected()}};me.parseDynamicImport=function(t){this.next();t.source=this.parseMaybeAssign();if(!this.eat(D.parenR)){var i=this.start;if(this.eat(D.comma)&&this.eat(D.parenR)){this.raiseRecoverable(i,"Trailing comma is not allowed in import()")}else{this.unexpected(i)}}return this.finishNode(t,"ImportExpression")};me.parseImportMeta=function(t){this.next();var i=this.containsEsc;t.property=this.parseIdent(true);if(t.property.name!=="meta"){this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'")}if(i){this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters")}if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere){this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module")}return this.finishNode(t,"MetaProperty")};me.parseLiteral=function(t){var i=this.startNode();i.value=t;i.raw=this.input.slice(this.start,this.end);if(i.raw.charCodeAt(i.raw.length-1)===110){i.bigint=i.raw.slice(0,-1).replace(/_/g,"")}this.next();return this.finishNode(i,"Literal")};me.parseParenExpression=function(){this.expect(D.parenL);var t=this.parseExpression();this.expect(D.parenR);return t};me.parseParenAndDistinguishExpression=function(t,i){var a=this.start,o=this.startLoc,p,u=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var l=this.start,d=this.startLoc;var h=[],m=true,g=false;var E=new ie,v=this.yieldPos,A=this.awaitPos,y;this.yieldPos=0;this.awaitPos=0;while(this.type!==D.parenR){m?m=false:this.expect(D.comma);if(u&&this.afterTrailingComma(D.parenR,true)){g=true;break}else if(this.type===D.ellipsis){y=this.start;h.push(this.parseParenItem(this.parseRestBinding()));if(this.type===D.comma){this.raise(this.start,"Comma is not permitted after the rest element")}break}else{h.push(this.parseMaybeAssign(false,E,this.parseParenItem))}}var b=this.lastTokEnd,C=this.lastTokEndLoc;this.expect(D.parenR);if(t&&!this.canInsertSemicolon()&&this.eat(D.arrow)){this.checkPatternErrors(E,false);this.checkYieldAwaitInDefaultParams();this.yieldPos=v;this.awaitPos=A;return this.parseParenArrowList(a,o,h,i)}if(!h.length||g){this.unexpected(this.lastTokStart)}if(y){this.unexpected(y)}this.checkExpressionErrors(E,true);this.yieldPos=v||this.yieldPos;this.awaitPos=A||this.awaitPos;if(h.length>1){p=this.startNodeAt(l,d);p.expressions=h;this.finishNodeAt(p,"SequenceExpression",b,C)}else{p=h[0]}}else{p=this.parseParenExpression()}if(this.options.preserveParens){var w=this.startNodeAt(a,o);w.expression=p;return this.finishNode(w,"ParenthesizedExpression")}else{return p}};me.parseParenItem=function(t){return t};me.parseParenArrowList=function(t,i,a,o){return this.parseArrowExpression(this.startNodeAt(t,i),a,false,o)};var ge=[];me.parseNew=function(){if(this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword new")}var t=this.startNode();var i=this.parseIdent(true);if(this.options.ecmaVersion>=6&&this.eat(D.dot)){t.meta=i;var a=this.containsEsc;t.property=this.parseIdent(true);if(t.property.name!=="target"){this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'")}if(a){this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters")}if(!this.allowNewDotTarget){this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block")}return this.finishNode(t,"MetaProperty")}var o=this.start,p=this.startLoc,u=this.type===D._import;t.callee=this.parseSubscripts(this.parseExprAtom(),o,p,true,false);if(u&&t.callee.type==="ImportExpression"){this.raise(o,"Cannot use new with import()")}if(this.eat(D.parenL)){t.arguments=this.parseExprList(D.parenR,this.options.ecmaVersion>=8,false)}else{t.arguments=ge}return this.finishNode(t,"NewExpression")};me.parseTemplateElement=function(t){var i=t.isTagged;var a=this.startNode();if(this.type===D.invalidTemplate){if(!i){this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal")}a.value={raw:this.value,cooked:null}}else{a.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value}}this.next();a.tail=this.type===D.backQuote;return this.finishNode(a,"TemplateElement")};me.parseTemplate=function(t){if(t===void 0)t={};var i=t.isTagged;if(i===void 0)i=false;var a=this.startNode();this.next();a.expressions=[];var o=this.parseTemplateElement({isTagged:i});a.quasis=[o];while(!o.tail){if(this.type===D.eof){this.raise(this.pos,"Unterminated template literal")}this.expect(D.dollarBraceL);a.expressions.push(this.parseExpression());this.expect(D.braceR);a.quasis.push(o=this.parseTemplateElement({isTagged:i}))}this.next();return this.finishNode(a,"TemplateLiteral")};me.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===D.name||this.type===D.num||this.type===D.string||this.type===D.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===D.star)&&!b.test(this.input.slice(this.lastTokEnd,this.start))};me.parseObj=function(t,i){var a=this.startNode(),o=true,p={};a.properties=[];this.next();while(!this.eat(D.braceR)){if(!o){this.expect(D.comma);if(this.options.ecmaVersion>=5&&this.afterTrailingComma(D.braceR)){break}}else{o=false}var u=this.parseProperty(t,i);if(!t){this.checkPropClash(u,p,i)}a.properties.push(u)}return this.finishNode(a,t?"ObjectPattern":"ObjectExpression")};me.parseProperty=function(t,i){var a=this.startNode(),o,p,u,l;if(this.options.ecmaVersion>=9&&this.eat(D.ellipsis)){if(t){a.argument=this.parseIdent(false);if(this.type===D.comma){this.raise(this.start,"Comma is not permitted after the rest element")}return this.finishNode(a,"RestElement")}a.argument=this.parseMaybeAssign(false,i);if(this.type===D.comma&&i&&i.trailingComma<0){i.trailingComma=this.start}return this.finishNode(a,"SpreadElement")}if(this.options.ecmaVersion>=6){a.method=false;a.shorthand=false;if(t||i){u=this.start;l=this.startLoc}if(!t){o=this.eat(D.star)}}var d=this.containsEsc;this.parsePropertyName(a);if(!t&&!d&&this.options.ecmaVersion>=8&&!o&&this.isAsyncProp(a)){p=true;o=this.options.ecmaVersion>=9&&this.eat(D.star);this.parsePropertyName(a,i)}else{p=false}this.parsePropertyValue(a,t,o,p,u,l,i,d);return this.finishNode(a,"Property")};me.parsePropertyValue=function(t,i,a,o,p,u,l,d){if((a||o)&&this.type===D.colon){this.unexpected()}if(this.eat(D.colon)){t.value=i?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(false,l);t.kind="init"}else if(this.options.ecmaVersion>=6&&this.type===D.parenL){if(i){this.unexpected()}t.kind="init";t.method=true;t.value=this.parseMethod(a,o)}else if(!i&&!d&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&(this.type!==D.comma&&this.type!==D.braceR&&this.type!==D.eq)){if(a||o){this.unexpected()}t.kind=t.key.name;this.parsePropertyName(t);t.value=this.parseMethod(false);var h=t.kind==="get"?0:1;if(t.value.params.length!==h){var m=t.value.start;if(t.kind==="get"){this.raiseRecoverable(m,"getter should have no params")}else{this.raiseRecoverable(m,"setter should have exactly one param")}}else{if(t.kind==="set"&&t.value.params[0].type==="RestElement"){this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")}}}else if(this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"){if(a||o){this.unexpected()}this.checkUnreserved(t.key);if(t.key.name==="await"&&!this.awaitIdentPos){this.awaitIdentPos=p}t.kind="init";if(i){t.value=this.parseMaybeDefault(p,u,this.copyNode(t.key))}else if(this.type===D.eq&&l){if(l.shorthandAssign<0){l.shorthandAssign=this.start}t.value=this.parseMaybeDefault(p,u,this.copyNode(t.key))}else{t.value=this.copyNode(t.key)}t.shorthand=true}else{this.unexpected()}};me.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(D.bracketL)){t.computed=true;t.key=this.parseMaybeAssign();this.expect(D.bracketR);return t.key}else{t.computed=false}}return t.key=this.type===D.num||this.type===D.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};me.initFunction=function(t){t.id=null;if(this.options.ecmaVersion>=6){t.generator=t.expression=false}if(this.options.ecmaVersion>=8){t.async=false}};me.parseMethod=function(t,i,a){var o=this.startNode(),p=this.yieldPos,u=this.awaitPos,l=this.awaitIdentPos;this.initFunction(o);if(this.options.ecmaVersion>=6){o.generator=t}if(this.options.ecmaVersion>=8){o.async=!!i}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(i,o.generator)|q|(a?H:0));this.expect(D.parenL);o.params=this.parseBindingList(D.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams();this.parseFunctionBody(o,false,true,false);this.yieldPos=p;this.awaitPos=u;this.awaitIdentPos=l;return this.finishNode(o,"FunctionExpression")};me.parseArrowExpression=function(t,i,a,o){var p=this.yieldPos,u=this.awaitPos,l=this.awaitIdentPos;this.enterScope(functionFlags(a,false)|j);this.initFunction(t);if(this.options.ecmaVersion>=8){t.async=!!a}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;t.params=this.toAssignableList(i,true);this.parseFunctionBody(t,true,false,o);this.yieldPos=p;this.awaitPos=u;this.awaitIdentPos=l;return this.finishNode(t,"ArrowFunctionExpression")};me.parseFunctionBody=function(t,i,a,o){var p=i&&this.type!==D.braceL;var u=this.strict,l=false;if(p){t.body=this.parseMaybeAssign(o);t.expression=true;this.checkParams(t,false)}else{var d=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);if(!u||d){l=this.strictDirective(this.end);if(l&&d){this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list")}}var h=this.labels;this.labels=[];if(l){this.strict=true}this.checkParams(t,!u&&!l&&!i&&!a&&this.isSimpleParamList(t.params));if(this.strict&&t.id){this.checkLValSimple(t.id,Z)}t.body=this.parseBlock(false,undefined,l&&!u);t.expression=false;this.adaptDirectivePrologue(t.body.body);this.labels=h}this.exitScope()};me.isSimpleParamList=function(t){for(var i=0,a=t;i-1||p.functions.indexOf(t)>-1||p.var.indexOf(t)>-1;p.lexical.push(t);if(this.inModule&&p.flags&L){delete this.undefinedExports[t]}}else if(i===Y){var u=this.currentScope();u.lexical.push(t)}else if(i===X){var l=this.currentScope();if(this.treatFunctionsAsVar){o=l.lexical.indexOf(t)>-1}else{o=l.lexical.indexOf(t)>-1||l.var.indexOf(t)>-1}l.functions.push(t)}else{for(var d=this.scopeStack.length-1;d>=0;--d){var h=this.scopeStack[d];if(h.lexical.indexOf(t)>-1&&!(h.flags&V&&h.lexical[0]===t)||!this.treatFunctionsAsVarInScope(h)&&h.functions.indexOf(t)>-1){o=true;break}h.var.push(t);if(this.inModule&&h.flags&L){delete this.undefinedExports[t]}if(h.flags&z){break}}}if(o){this.raiseRecoverable(a,"Identifier '"+t+"' has already been declared")}};ve.checkLocalExport=function(t){if(this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1){this.undefinedExports[t.name]=t}};ve.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};ve.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var i=this.scopeStack[t];if(i.flags&z){return i}}};ve.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var i=this.scopeStack[t];if(i.flags&z&&!(i.flags&j)){return i}}};var ye=function Node(t,i,a){this.type="";this.start=i;this.end=0;if(t.options.locations){this.loc=new I(t,a)}if(t.options.directSourceFile){this.sourceFile=t.options.directSourceFile}if(t.options.ranges){this.range=[i,0]}};var De=Q.prototype;De.startNode=function(){return new ye(this,this.start,this.startLoc)};De.startNodeAt=function(t,i){return new ye(this,t,i)};function finishNodeAt(t,i,a,o){t.type=i;t.end=a;if(this.options.locations){t.loc.end=o}if(this.options.ranges){t.range[1]=a}return t}De.finishNode=function(t,i){return finishNodeAt.call(this,t,i,this.lastTokEnd,this.lastTokEndLoc)};De.finishNodeAt=function(t,i,a,o){return finishNodeAt.call(this,t,i,a,o)};De.copyNode=function(t){var i=new ye(this,t.start,this.startLoc);for(var a in t){i[a]=t[a]}return i};var be="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";var Ce=be+" Extended_Pictographic";var Fe=Ce;var we=Fe+" EBase EComp EMod EPres ExtPict";var Se=we;var _e={9:be,10:Ce,11:Fe,12:we,13:Se};var Te="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";var Be="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";var xe=Be+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";var ke=xe+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";var Pe=ke+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";var Oe=Pe+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";var Ie={9:Be,10:xe,11:ke,12:Pe,13:Oe};var Ne={};function buildUnicodeData(t){var i=Ne[t]={binary:wordsRegexp(_e[t]+" "+Te),nonBinary:{General_Category:wordsRegexp(Te),Script:wordsRegexp(Ie[t])}};i.nonBinary.Script_Extensions=i.nonBinary.Script;i.nonBinary.gc=i.nonBinary.General_Category;i.nonBinary.sc=i.nonBinary.Script;i.nonBinary.scx=i.nonBinary.Script_Extensions}for(var Re=0,Le=[9,10,11,12,13];Re=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"");this.unicodeProperties=Ne[t.options.ecmaVersion>=13?13:t.options.ecmaVersion];this.source="";this.flags="";this.start=0;this.switchU=false;this.switchN=false;this.pos=0;this.lastIntValue=0;this.lastStringValue="";this.lastAssertionIsQuantifiable=false;this.numCapturingParens=0;this.maxBackReference=0;this.groupNames=[];this.backReferenceNames=[]};Me.prototype.reset=function reset(t,i,a){var o=a.indexOf("u")!==-1;this.start=t|0;this.source=i+"";this.flags=a;this.switchU=o&&this.parser.options.ecmaVersion>=6;this.switchN=o&&this.parser.options.ecmaVersion>=9};Me.prototype.raise=function raise(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Me.prototype.at=function at(t,i){if(i===void 0)i=false;var a=this.source;var o=a.length;if(t>=o){return-1}var p=a.charCodeAt(t);if(!(i||this.switchU)||p<=55295||p>=57344||t+1>=o){return p}var u=a.charCodeAt(t+1);return u>=56320&&u<=57343?(p<<10)+u-56613888:p};Me.prototype.nextIndex=function nextIndex(t,i){if(i===void 0)i=false;var a=this.source;var o=a.length;if(t>=o){return o}var p=a.charCodeAt(t),u;if(!(i||this.switchU)||p<=55295||p>=57344||t+1>=o||(u=a.charCodeAt(t+1))<56320||u>57343){return t+1}return t+2};Me.prototype.current=function current(t){if(t===void 0)t=false;return this.at(this.pos,t)};Me.prototype.lookahead=function lookahead(t){if(t===void 0)t=false;return this.at(this.nextIndex(this.pos,t),t)};Me.prototype.advance=function advance(t){if(t===void 0)t=false;this.pos=this.nextIndex(this.pos,t)};Me.prototype.eat=function eat(t,i){if(i===void 0)i=false;if(this.current(i)===t){this.advance(i);return true}return false};Ge.validateRegExpFlags=function(t){var i=t.validFlags;var a=t.flags;for(var o=0;o-1){this.raise(t.start,"Duplicate regular expression flag")}}};Ge.validateRegExpPattern=function(t){this.regexp_pattern(t);if(!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0){t.switchN=true;this.regexp_pattern(t)}};Ge.regexp_pattern=function(t){t.pos=0;t.lastIntValue=0;t.lastStringValue="";t.lastAssertionIsQuantifiable=false;t.numCapturingParens=0;t.maxBackReference=0;t.groupNames.length=0;t.backReferenceNames.length=0;this.regexp_disjunction(t);if(t.pos!==t.source.length){if(t.eat(41)){t.raise("Unmatched ')'")}if(t.eat(93)||t.eat(125)){t.raise("Lone quantifier brackets")}}if(t.maxBackReference>t.numCapturingParens){t.raise("Invalid escape")}for(var i=0,a=t.backReferenceNames;i=9){a=t.eat(60)}if(t.eat(61)||t.eat(33)){this.regexp_disjunction(t);if(!t.eat(41)){t.raise("Unterminated group")}t.lastAssertionIsQuantifiable=!a;return true}}t.pos=i;return false};Ge.regexp_eatQuantifier=function(t,i){if(i===void 0)i=false;if(this.regexp_eatQuantifierPrefix(t,i)){t.eat(63);return true}return false};Ge.regexp_eatQuantifierPrefix=function(t,i){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,i)};Ge.regexp_eatBracedQuantifier=function(t,i){var a=t.pos;if(t.eat(123)){var o=0,p=-1;if(this.regexp_eatDecimalDigits(t)){o=t.lastIntValue;if(t.eat(44)&&this.regexp_eatDecimalDigits(t)){p=t.lastIntValue}if(t.eat(125)){if(p!==-1&&p=9){this.regexp_groupSpecifier(t)}else if(t.current()===63){t.raise("Invalid group")}this.regexp_disjunction(t);if(t.eat(41)){t.numCapturingParens+=1;return true}t.raise("Unterminated group")}return false};Ge.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)};Ge.regexp_eatInvalidBracedQuantifier=function(t){if(this.regexp_eatBracedQuantifier(t,true)){t.raise("Nothing to repeat")}return false};Ge.regexp_eatSyntaxCharacter=function(t){var i=t.current();if(isSyntaxCharacter(i)){t.lastIntValue=i;t.advance();return true}return false};function isSyntaxCharacter(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}Ge.regexp_eatPatternCharacters=function(t){var i=t.pos;var a=0;while((a=t.current())!==-1&&!isSyntaxCharacter(a)){t.advance()}return t.pos!==i};Ge.regexp_eatExtendedPatternCharacter=function(t){var i=t.current();if(i!==-1&&i!==36&&!(i>=40&&i<=43)&&i!==46&&i!==63&&i!==91&&i!==94&&i!==124){t.advance();return true}return false};Ge.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t)){if(t.groupNames.indexOf(t.lastStringValue)!==-1){t.raise("Duplicate capture group name")}t.groupNames.push(t.lastStringValue);return}t.raise("Invalid group")}};Ge.regexp_eatGroupName=function(t){t.lastStringValue="";if(t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62)){return true}t.raise("Invalid capture group name")}return false};Ge.regexp_eatRegExpIdentifierName=function(t){t.lastStringValue="";if(this.regexp_eatRegExpIdentifierStart(t)){t.lastStringValue+=codePointToString(t.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(t)){t.lastStringValue+=codePointToString(t.lastIntValue)}return true}return false};Ge.regexp_eatRegExpIdentifierStart=function(t){var i=t.pos;var a=this.options.ecmaVersion>=11;var o=t.current(a);t.advance(a);if(o===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,a)){o=t.lastIntValue}if(isRegExpIdentifierStart(o)){t.lastIntValue=o;return true}t.pos=i;return false};function isRegExpIdentifierStart(t){return isIdentifierStart(t,true)||t===36||t===95}Ge.regexp_eatRegExpIdentifierPart=function(t){var i=t.pos;var a=this.options.ecmaVersion>=11;var o=t.current(a);t.advance(a);if(o===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,a)){o=t.lastIntValue}if(isRegExpIdentifierPart(o)){t.lastIntValue=o;return true}t.pos=i;return false};function isRegExpIdentifierPart(t){return isIdentifierChar(t,true)||t===36||t===95||t===8204||t===8205}Ge.regexp_eatAtomEscape=function(t){if(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)){return true}if(t.switchU){if(t.current()===99){t.raise("Invalid unicode escape")}t.raise("Invalid escape")}return false};Ge.regexp_eatBackReference=function(t){var i=t.pos;if(this.regexp_eatDecimalEscape(t)){var a=t.lastIntValue;if(t.switchU){if(a>t.maxBackReference){t.maxBackReference=a}return true}if(a<=t.numCapturingParens){return true}t.pos=i}return false};Ge.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t)){t.backReferenceNames.push(t.lastStringValue);return true}t.raise("Invalid named reference")}return false};Ge.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,false)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)};Ge.regexp_eatCControlLetter=function(t){var i=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t)){return true}t.pos=i}return false};Ge.regexp_eatZero=function(t){if(t.current()===48&&!isDecimalDigit(t.lookahead())){t.lastIntValue=0;t.advance();return true}return false};Ge.regexp_eatControlEscape=function(t){var i=t.current();if(i===116){t.lastIntValue=9;t.advance();return true}if(i===110){t.lastIntValue=10;t.advance();return true}if(i===118){t.lastIntValue=11;t.advance();return true}if(i===102){t.lastIntValue=12;t.advance();return true}if(i===114){t.lastIntValue=13;t.advance();return true}return false};Ge.regexp_eatControlLetter=function(t){var i=t.current();if(isControlLetter(i)){t.lastIntValue=i%32;t.advance();return true}return false};function isControlLetter(t){return t>=65&&t<=90||t>=97&&t<=122}Ge.regexp_eatRegExpUnicodeEscapeSequence=function(t,i){if(i===void 0)i=false;var a=t.pos;var o=i||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var p=t.lastIntValue;if(o&&p>=55296&&p<=56319){var u=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var l=t.lastIntValue;if(l>=56320&&l<=57343){t.lastIntValue=(p-55296)*1024+(l-56320)+65536;return true}}t.pos=u;t.lastIntValue=p}return true}if(o&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&isValidUnicode(t.lastIntValue)){return true}if(o){t.raise("Invalid unicode escape")}t.pos=a}return false};function isValidUnicode(t){return t>=0&&t<=1114111}Ge.regexp_eatIdentityEscape=function(t){if(t.switchU){if(this.regexp_eatSyntaxCharacter(t)){return true}if(t.eat(47)){t.lastIntValue=47;return true}return false}var i=t.current();if(i!==99&&(!t.switchN||i!==107)){t.lastIntValue=i;t.advance();return true}return false};Ge.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var i=t.current();if(i>=49&&i<=57){do{t.lastIntValue=10*t.lastIntValue+(i-48);t.advance()}while((i=t.current())>=48&&i<=57);return true}return false};Ge.regexp_eatCharacterClassEscape=function(t){var i=t.current();if(isCharacterClassEscape(i)){t.lastIntValue=-1;t.advance();return true}if(t.switchU&&this.options.ecmaVersion>=9&&(i===80||i===112)){t.lastIntValue=-1;t.advance();if(t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125)){return true}t.raise("Invalid property name")}return false};function isCharacterClassEscape(t){return t===100||t===68||t===115||t===83||t===119||t===87}Ge.regexp_eatUnicodePropertyValueExpression=function(t){var i=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var a=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var o=t.lastStringValue;this.regexp_validateUnicodePropertyNameAndValue(t,a,o);return true}}t.pos=i;if(this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var p=t.lastStringValue;this.regexp_validateUnicodePropertyNameOrValue(t,p);return true}return false};Ge.regexp_validateUnicodePropertyNameAndValue=function(t,i,a){if(!x(t.unicodeProperties.nonBinary,i)){t.raise("Invalid property name")}if(!t.unicodeProperties.nonBinary[i].test(a)){t.raise("Invalid property value")}};Ge.regexp_validateUnicodePropertyNameOrValue=function(t,i){if(!t.unicodeProperties.binary.test(i)){t.raise("Invalid property name")}};Ge.regexp_eatUnicodePropertyName=function(t){var i=0;t.lastStringValue="";while(isUnicodePropertyNameCharacter(i=t.current())){t.lastStringValue+=codePointToString(i);t.advance()}return t.lastStringValue!==""};function isUnicodePropertyNameCharacter(t){return isControlLetter(t)||t===95}Ge.regexp_eatUnicodePropertyValue=function(t){var i=0;t.lastStringValue="";while(isUnicodePropertyValueCharacter(i=t.current())){t.lastStringValue+=codePointToString(i);t.advance()}return t.lastStringValue!==""};function isUnicodePropertyValueCharacter(t){return isUnicodePropertyNameCharacter(t)||isDecimalDigit(t)}Ge.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)};Ge.regexp_eatCharacterClass=function(t){if(t.eat(91)){t.eat(94);this.regexp_classRanges(t);if(t.eat(93)){return true}t.raise("Unterminated character class")}return false};Ge.regexp_classRanges=function(t){while(this.regexp_eatClassAtom(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var a=t.lastIntValue;if(t.switchU&&(i===-1||a===-1)){t.raise("Invalid character class")}if(i!==-1&&a!==-1&&i>a){t.raise("Range out of order in character class")}}}};Ge.regexp_eatClassAtom=function(t){var i=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t)){return true}if(t.switchU){var a=t.current();if(a===99||isOctalDigit(a)){t.raise("Invalid class escape")}t.raise("Invalid escape")}t.pos=i}var o=t.current();if(o!==93){t.lastIntValue=o;t.advance();return true}return false};Ge.regexp_eatClassEscape=function(t){var i=t.pos;if(t.eat(98)){t.lastIntValue=8;return true}if(t.switchU&&t.eat(45)){t.lastIntValue=45;return true}if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t)){return true}t.pos=i}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)};Ge.regexp_eatClassControlLetter=function(t){var i=t.current();if(isDecimalDigit(i)||i===95){t.lastIntValue=i%32;t.advance();return true}return false};Ge.regexp_eatHexEscapeSequence=function(t){var i=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2)){return true}if(t.switchU){t.raise("Invalid escape")}t.pos=i}return false};Ge.regexp_eatDecimalDigits=function(t){var i=t.pos;var a=0;t.lastIntValue=0;while(isDecimalDigit(a=t.current())){t.lastIntValue=10*t.lastIntValue+(a-48);t.advance()}return t.pos!==i};function isDecimalDigit(t){return t>=48&&t<=57}Ge.regexp_eatHexDigits=function(t){var i=t.pos;var a=0;t.lastIntValue=0;while(isHexDigit(a=t.current())){t.lastIntValue=16*t.lastIntValue+hexToInt(a);t.advance()}return t.pos!==i};function isHexDigit(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function hexToInt(t){if(t>=65&&t<=70){return 10+(t-65)}if(t>=97&&t<=102){return 10+(t-97)}return t-48}Ge.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var a=t.lastIntValue;if(i<=3&&this.regexp_eatOctalDigit(t)){t.lastIntValue=i*64+a*8+t.lastIntValue}else{t.lastIntValue=i*8+a}}else{t.lastIntValue=i}return true}return false};Ge.regexp_eatOctalDigit=function(t){var i=t.current();if(isOctalDigit(i)){t.lastIntValue=i-48;t.advance();return true}t.lastIntValue=0;return false};function isOctalDigit(t){return t>=48&&t<=55}Ge.regexp_eatFixedHexDigits=function(t,i){var a=t.pos;t.lastIntValue=0;for(var o=0;o=this.input.length){return this.finishToken(D.eof)}if(t.override){return t.override(this)}else{this.readToken(this.fullCharCodeAtPos())}};Ve.readToken=function(t){if(isIdentifierStart(t,this.options.ecmaVersion>=6)||t===92){return this.readWord()}return this.getTokenFromCode(t)};Ve.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320){return t}var i=this.input.charCodeAt(this.pos+1);return i<=56319||i>=57344?t:(t<<10)+i-56613888};Ve.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition();var i=this.pos,a=this.input.indexOf("*/",this.pos+=2);if(a===-1){this.raise(this.pos-2,"Unterminated comment")}this.pos=a+2;if(this.options.locations){for(var o=void 0,p=i;(o=nextLineBreak(this.input,p,this.pos))>-1;){++this.curLine;p=this.lineStart=o}}if(this.options.onComment){this.options.onComment(true,this.input.slice(i+2,a),i,this.pos,t,this.curPosition())}};Ve.skipLineComment=function(t){var i=this.pos;var a=this.options.onComment&&this.curPosition();var o=this.input.charCodeAt(this.pos+=t);while(this.pos8&&t<14||t>=5760&&w.test(String.fromCharCode(t))){++this.pos}else{break e}}}};Ve.finishToken=function(t,i){this.end=this.pos;if(this.options.locations){this.endLoc=this.curPosition()}var a=this.type;this.type=t;this.value=i;this.updateContext(a)};Ve.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57){return this.readNumber(true)}var i=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&t===46&&i===46){this.pos+=3;return this.finishToken(D.ellipsis)}else{++this.pos;return this.finishToken(D.dot)}};Ve.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);if(this.exprAllowed){++this.pos;return this.readRegexp()}if(t===61){return this.finishOp(D.assign,2)}return this.finishOp(D.slash,1)};Ve.readToken_mult_modulo_exp=function(t){var i=this.input.charCodeAt(this.pos+1);var a=1;var o=t===42?D.star:D.modulo;if(this.options.ecmaVersion>=7&&t===42&&i===42){++a;o=D.starstar;i=this.input.charCodeAt(this.pos+2)}if(i===61){return this.finishOp(D.assign,a+1)}return this.finishOp(o,a)};Ve.readToken_pipe_amp=function(t){var i=this.input.charCodeAt(this.pos+1);if(i===t){if(this.options.ecmaVersion>=12){var a=this.input.charCodeAt(this.pos+2);if(a===61){return this.finishOp(D.assign,3)}}return this.finishOp(t===124?D.logicalOR:D.logicalAND,2)}if(i===61){return this.finishOp(D.assign,2)}return this.finishOp(t===124?D.bitwiseOR:D.bitwiseAND,1)};Ve.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);if(t===61){return this.finishOp(D.assign,2)}return this.finishOp(D.bitwiseXOR,1)};Ve.readToken_plus_min=function(t){var i=this.input.charCodeAt(this.pos+1);if(i===t){if(i===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||b.test(this.input.slice(this.lastTokEnd,this.pos)))){this.skipLineComment(3);this.skipSpace();return this.nextToken()}return this.finishOp(D.incDec,2)}if(i===61){return this.finishOp(D.assign,2)}return this.finishOp(D.plusMin,1)};Ve.readToken_lt_gt=function(t){var i=this.input.charCodeAt(this.pos+1);var a=1;if(i===t){a=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2;if(this.input.charCodeAt(this.pos+a)===61){return this.finishOp(D.assign,a+1)}return this.finishOp(D.bitShift,a)}if(i===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45){this.skipLineComment(4);this.skipSpace();return this.nextToken()}if(i===61){a=2}return this.finishOp(D.relational,a)};Ve.readToken_eq_excl=function(t){var i=this.input.charCodeAt(this.pos+1);if(i===61){return this.finishOp(D.equality,this.input.charCodeAt(this.pos+2)===61?3:2)}if(t===61&&i===62&&this.options.ecmaVersion>=6){this.pos+=2;return this.finishToken(D.arrow)}return this.finishOp(t===61?D.eq:D.prefix,1)};Ve.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var i=this.input.charCodeAt(this.pos+1);if(i===46){var a=this.input.charCodeAt(this.pos+2);if(a<48||a>57){return this.finishOp(D.questionDot,2)}}if(i===63){if(t>=12){var o=this.input.charCodeAt(this.pos+2);if(o===61){return this.finishOp(D.assign,3)}}return this.finishOp(D.coalesce,2)}}return this.finishOp(D.question,1)};Ve.readToken_numberSign=function(){var t=this.options.ecmaVersion;var i=35;if(t>=13){++this.pos;i=this.fullCharCodeAtPos();if(isIdentifierStart(i,true)||i===92){return this.finishToken(D.privateId,this.readWord1())}}this.raise(this.pos,"Unexpected character '"+codePointToString(i)+"'")};Ve.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:++this.pos;return this.finishToken(D.parenL);case 41:++this.pos;return this.finishToken(D.parenR);case 59:++this.pos;return this.finishToken(D.semi);case 44:++this.pos;return this.finishToken(D.comma);case 91:++this.pos;return this.finishToken(D.bracketL);case 93:++this.pos;return this.finishToken(D.bracketR);case 123:++this.pos;return this.finishToken(D.braceL);case 125:++this.pos;return this.finishToken(D.braceR);case 58:++this.pos;return this.finishToken(D.colon);case 96:if(this.options.ecmaVersion<6){break}++this.pos;return this.finishToken(D.backQuote);case 48:var i=this.input.charCodeAt(this.pos+1);if(i===120||i===88){return this.readRadixNumber(16)}if(this.options.ecmaVersion>=6){if(i===111||i===79){return this.readRadixNumber(8)}if(i===98||i===66){return this.readRadixNumber(2)}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(false);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(D.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(t)+"'")};Ve.finishOp=function(t,i){var a=this.input.slice(this.pos,this.pos+i);this.pos+=i;return this.finishToken(t,a)};Ve.readRegexp=function(){var t,i,a=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(a,"Unterminated regular expression")}var o=this.input.charAt(this.pos);if(b.test(o)){this.raise(a,"Unterminated regular expression")}if(!t){if(o==="["){i=true}else if(o==="]"&&i){i=false}else if(o==="/"&&!i){break}t=o==="\\"}else{t=false}++this.pos}var p=this.input.slice(a,this.pos);++this.pos;var u=this.pos;var l=this.readWord1();if(this.containsEsc){this.unexpected(u)}var d=this.regexpState||(this.regexpState=new Me(this));d.reset(a,p,l);this.validateRegExpFlags(d);this.validateRegExpPattern(d);var h=null;try{h=new RegExp(p,l)}catch(t){}return this.finishToken(D.regexp,{pattern:p,flags:l,value:h})};Ve.readInt=function(t,i,a){var o=this.options.ecmaVersion>=12&&i===undefined;var p=a&&this.input.charCodeAt(this.pos)===48;var u=this.pos,l=0,d=0;for(var h=0,m=i==null?Infinity:i;h=97){E=g-97+10}else if(g>=65){E=g-65+10}else if(g>=48&&g<=57){E=g-48}else{E=Infinity}if(E>=t){break}d=g;l=l*t+E}if(o&&d===95){this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits")}if(this.pos===u||i!=null&&this.pos-u!==i){return null}return l};function stringToNumber(t,i){if(i){return parseInt(t,8)}return parseFloat(t.replace(/_/g,""))}function stringToBigInt(t){if(typeof BigInt!=="function"){return null}return BigInt(t.replace(/_/g,""))}Ve.readRadixNumber=function(t){var i=this.pos;this.pos+=2;var a=this.readInt(t);if(a==null){this.raise(this.start+2,"Expected number in radix "+t)}if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110){a=stringToBigInt(this.input.slice(i,this.pos));++this.pos}else if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(D.num,a)};Ve.readNumber=function(t){var i=this.pos;if(!t&&this.readInt(10,undefined,true)===null){this.raise(i,"Invalid number")}var a=this.pos-i>=2&&this.input.charCodeAt(i)===48;if(a&&this.strict){this.raise(i,"Invalid number")}var o=this.input.charCodeAt(this.pos);if(!a&&!t&&this.options.ecmaVersion>=11&&o===110){var p=stringToBigInt(this.input.slice(i,this.pos));++this.pos;if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(D.num,p)}if(a&&/[89]/.test(this.input.slice(i,this.pos))){a=false}if(o===46&&!a){++this.pos;this.readInt(10);o=this.input.charCodeAt(this.pos)}if((o===69||o===101)&&!a){o=this.input.charCodeAt(++this.pos);if(o===43||o===45){++this.pos}if(this.readInt(10)===null){this.raise(i,"Invalid number")}}if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}var u=stringToNumber(this.input.slice(i,this.pos),a);return this.finishToken(D.num,u)};Ve.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),i;if(t===123){if(this.options.ecmaVersion<6){this.unexpected()}var a=++this.pos;i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos);++this.pos;if(i>1114111){this.invalidStringToken(a,"Code point out of bounds")}}else{i=this.readHexChar(4)}return i};Ve.readString=function(t){var i="",a=++this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated string constant")}var o=this.input.charCodeAt(this.pos);if(o===t){break}if(o===92){i+=this.input.slice(a,this.pos);i+=this.readEscapedChar(false);a=this.pos}else if(o===8232||o===8233){if(this.options.ecmaVersion<10){this.raise(this.start,"Unterminated string constant")}++this.pos;if(this.options.locations){this.curLine++;this.lineStart=this.pos}}else{if(isNewLine(o)){this.raise(this.start,"Unterminated string constant")}++this.pos}}i+=this.input.slice(a,this.pos++);return this.finishToken(D.string,i)};var qe={};Ve.tryReadTemplateToken=function(){this.inTemplateElement=true;try{this.readTmplToken()}catch(t){if(t===qe){this.readInvalidTemplateToken()}else{throw t}}this.inTemplateElement=false};Ve.invalidStringToken=function(t,i){if(this.inTemplateElement&&this.options.ecmaVersion>=9){throw qe}else{this.raise(t,i)}};Ve.readTmplToken=function(){var t="",i=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated template")}var a=this.input.charCodeAt(this.pos);if(a===96||a===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===D.template||this.type===D.invalidTemplate)){if(a===36){this.pos+=2;return this.finishToken(D.dollarBraceL)}else{++this.pos;return this.finishToken(D.backQuote)}}t+=this.input.slice(i,this.pos);return this.finishToken(D.template,t)}if(a===92){t+=this.input.slice(i,this.pos);t+=this.readEscapedChar(true);i=this.pos}else if(isNewLine(a)){t+=this.input.slice(i,this.pos);++this.pos;switch(a){case 13:if(this.input.charCodeAt(this.pos)===10){++this.pos}case 10:t+="\n";break;default:t+=String.fromCharCode(a);break}if(this.options.locations){++this.curLine;this.lineStart=this.pos}i=this.pos}else{++this.pos}}};Ve.readInvalidTemplateToken=function(){for(;this.pos=48&&i<=55){var o=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0];var p=parseInt(o,8);if(p>255){o=o.slice(0,-1);p=parseInt(o,8)}this.pos+=o.length-1;i=this.input.charCodeAt(this.pos);if((o!=="0"||i===56||i===57)&&(this.strict||t)){this.invalidStringToken(this.pos-1-o.length,t?"Octal literal in template string":"Octal literal in strict mode")}return String.fromCharCode(p)}if(isNewLine(i)){return""}return String.fromCharCode(i)}};Ve.readHexChar=function(t){var i=this.pos;var a=this.readInt(16,t);if(a===null){this.invalidStringToken(i,"Bad character escape sequence")}return a};Ve.readWord1=function(){this.containsEsc=false;var t="",i=true,a=this.pos;var o=this.options.ecmaVersion>=6;while(this.post.indexOf("(https.js:")!==-1||t.indexOf("node:https:")!==-1))}function createAgent(t,i){return new createAgent.Agent(t,i)}(function(t){class Agent extends p.EventEmitter{constructor(t,i){super();let a=i;if(typeof t==="function"){this.callback=t}else if(t){a=t}this.timeout=null;if(a&&typeof a.timeout==="number"){this.timeout=a.timeout}this.maxFreeSockets=1;this.maxSockets=1;this.maxTotalSockets=Infinity;this.sockets={};this.freeSockets={};this.requests={};this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number"){return this.explicitDefaultPort}return isSecureEndpoint()?443:80}set defaultPort(t){this.explicitDefaultPort=t}get protocol(){if(typeof this.explicitProtocol==="string"){return this.explicitProtocol}return isSecureEndpoint()?"https:":"http:"}set protocol(t){this.explicitProtocol=t}callback(t,i,a){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(t,i){const a=Object.assign({},i);if(typeof a.secureEndpoint!=="boolean"){a.secureEndpoint=isSecureEndpoint()}if(a.host==null){a.host="localhost"}if(a.port==null){a.port=a.secureEndpoint?443:80}if(a.protocol==null){a.protocol=a.secureEndpoint?"https:":"http:"}if(a.host&&a.path){delete a.path}delete a.agent;delete a.hostname;delete a._defaultAgent;delete a.defaultPort;delete a.createConnection;t._last=true;t.shouldKeepAlive=false;let o=false;let p=null;const u=a.timeout||this.timeout;const onerror=i=>{if(t._hadError)return;t.emit("error",i);t._hadError=true};const ontimeout=()=>{p=null;o=true;const t=new Error(`A "socket" was not created for HTTP request before ${u}ms`);t.code="ETIMEOUT";onerror(t)};const callbackError=t=>{if(o)return;if(p!==null){clearTimeout(p);p=null}onerror(t)};const onsocket=i=>{if(o)return;if(p!=null){clearTimeout(p);p=null}if(isAgent(i)){d("Callback returned another Agent instance %o",i.constructor.name);i.addRequest(t,a);return}if(i){i.once("free",(()=>{this.freeSocket(i,a)}));t.onSocket(i);return}const u=new Error(`no Duplex stream was returned to agent-base for \`${t.method} ${t.path}\``);onerror(u)};if(typeof this.callback!=="function"){onerror(new Error("`callback` is not defined"));return}if(!this.promisifiedCallback){if(this.callback.length>=3){d("Converting legacy callback function to promise");this.promisifiedCallback=l.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof u==="number"&&u>0){p=setTimeout(ontimeout,u)}if("port"in a&&typeof a.port!=="number"){a.port=Number(a.port)}try{d("Resolving socket for %o request: %o",a.protocol,`${t.method} ${t.path}`);Promise.resolve(this.promisifiedCallback(t,a)).then(onsocket,callbackError)}catch(t){Promise.reject(t).catch(callbackError)}}freeSocket(t,i){d("Freeing socket %o %o",t.constructor.name,i);t.destroy()}destroy(){d("Destroying agent %o",this.constructor.name)}}t.Agent=Agent;t.prototype=t.Agent.prototype})(createAgent||(createAgent={}));t.exports=createAgent},6570:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});function promisify(t){return function(i,a){return new Promise(((o,p)=>{t.call(this,i,a,((t,i)=>{if(t){p(t)}else{o(i)}}))}))}}i["default"]=promisify},5382:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(4631));var l=o.__importDefault(a(5351));function default_1(t){t.use(l.default);var i=t.use(p.default);var a=t.use(u.default).defaults;var o=i.Type.def;var d=i.Type.or;o("Noop").bases("Statement").build();o("DoExpression").bases("Expression").build("body").field("body",[o("Statement")]);o("Super").bases("Expression").build();o("BindExpression").bases("Expression").build("object","callee").field("object",d(o("Expression"),null)).field("callee",o("Expression"));o("Decorator").bases("Node").build("expression").field("expression",o("Expression"));o("Property").field("decorators",d([o("Decorator")],null),a["null"]);o("MethodDefinition").field("decorators",d([o("Decorator")],null),a["null"]);o("MetaProperty").bases("Expression").build("meta","property").field("meta",o("Identifier")).field("property",o("Identifier"));o("ParenthesizedExpression").bases("Expression").build("expression").field("expression",o("Expression"));o("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",o("Identifier"));o("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local");o("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local");o("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",d(o("Declaration"),o("Expression")));o("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",d(o("Declaration"),null)).field("specifiers",[o("ExportSpecifier")],a.emptyArray).field("source",d(o("Literal"),null),a["null"]);o("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",o("Identifier"));o("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",o("Identifier"));o("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",o("Identifier"));o("ExportAllDeclaration").bases("Declaration").build("exported","source").field("exported",d(o("Identifier"),null)).field("source",o("Literal"));o("CommentBlock").bases("Comment").build("value","leading","trailing");o("CommentLine").bases("Comment").build("value","leading","trailing");o("Directive").bases("Node").build("value").field("value",o("DirectiveLiteral"));o("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,a["use strict"]);o("InterpreterDirective").bases("Node").build("value").field("value",String);o("BlockStatement").bases("Statement").build("body").field("body",[o("Statement")]).field("directives",[o("Directive")],a.emptyArray);o("Program").bases("Node").build("body").field("body",[o("Statement")]).field("directives",[o("Directive")],a.emptyArray).field("interpreter",d(o("InterpreterDirective"),null),a["null"]);o("StringLiteral").bases("Literal").build("value").field("value",String);o("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",d(String,null),a["null"]).field("extra",{rawValue:Number,raw:String},(function getDefault(){return{rawValue:this.value,raw:this.value+""}}));o("BigIntLiteral").bases("Literal").build("value").field("value",d(String,Number)).field("extra",{rawValue:String,raw:String},(function getDefault(){return{rawValue:String(this.value),raw:this.value+"n"}}));o("NullLiteral").bases("Literal").build().field("value",null,a["null"]);o("BooleanLiteral").bases("Literal").build("value").field("value",Boolean);o("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,(function(){return new RegExp(this.pattern,this.flags)}));var h=d(o("Property"),o("ObjectMethod"),o("ObjectProperty"),o("SpreadProperty"),o("SpreadElement"));o("ObjectExpression").bases("Expression").build("properties").field("properties",[h]);o("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",d("method","get","set")).field("key",d(o("Literal"),o("Identifier"),o("Expression"))).field("params",[o("Pattern")]).field("body",o("BlockStatement")).field("computed",Boolean,a["false"]).field("generator",Boolean,a["false"]).field("async",Boolean,a["false"]).field("accessibility",d(o("Literal"),null),a["null"]).field("decorators",d([o("Decorator")],null),a["null"]);o("ObjectProperty").bases("Node").build("key","value").field("key",d(o("Literal"),o("Identifier"),o("Expression"))).field("value",d(o("Expression"),o("Pattern"))).field("accessibility",d(o("Literal"),null),a["null"]).field("computed",Boolean,a["false"]);var m=d(o("MethodDefinition"),o("VariableDeclarator"),o("ClassPropertyDefinition"),o("ClassProperty"),o("ClassPrivateProperty"),o("ClassMethod"),o("ClassPrivateMethod"));o("ClassBody").bases("Declaration").build("body").field("body",[m]);o("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",d(o("Literal"),o("Identifier"),o("Expression")));o("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",o("PrivateName"));["ClassMethod","ClassPrivateMethod"].forEach((function(t){o(t).field("kind",d("get","set","method","constructor"),(function(){return"method"})).field("body",o("BlockStatement")).field("computed",Boolean,a["false"]).field("static",d(Boolean,null),a["null"]).field("abstract",d(Boolean,null),a["null"]).field("access",d("public","private","protected",null),a["null"]).field("accessibility",d("public","private","protected",null),a["null"]).field("decorators",d([o("Decorator")],null),a["null"]).field("optional",d(Boolean,null),a["null"])}));o("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",o("PrivateName")).field("value",d(o("Expression"),null),a["null"]);o("PrivateName").bases("Expression","Pattern").build("id").field("id",o("Identifier"));var g=d(o("Property"),o("PropertyPattern"),o("SpreadPropertyPattern"),o("SpreadProperty"),o("ObjectProperty"),o("RestProperty"));o("ObjectPattern").bases("Pattern").build("properties").field("properties",[g]).field("decorators",d([o("Decorator")],null),a["null"]);o("SpreadProperty").bases("Node").build("argument").field("argument",o("Expression"));o("RestProperty").bases("Node").build("argument").field("argument",o("Expression"));o("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",d(o("VariableDeclaration"),o("Expression"))).field("right",o("Expression")).field("body",o("Statement"));o("Import").bases("Expression").build()}i["default"]=default_1;t.exports=i["default"]},2262:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(5382));var u=o.__importDefault(a(368));function default_1(t){t.use(p.default);t.use(u.default)}i["default"]=default_1;t.exports=i["default"]},6604:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(4631));function default_1(t){var i=t.use(p.default);var a=i.Type;var o=a.def;var l=a.or;var d=t.use(u.default);var h=d.defaults;var m=d.geq;o("Printable").field("loc",l(o("SourceLocation"),null),h["null"],true);o("Node").bases("Printable").field("type",String).field("comments",l([o("Comment")],null),h["null"],true);o("SourceLocation").field("start",o("Position")).field("end",o("Position")).field("source",l(String,null),h["null"]);o("Position").field("line",m(1)).field("column",m(0));o("File").bases("Node").build("program","name").field("program",o("Program")).field("name",l(String,null),h["null"]);o("Program").bases("Node").build("body").field("body",[o("Statement")]);o("Function").bases("Node").field("id",l(o("Identifier"),null),h["null"]).field("params",[o("Pattern")]).field("body",o("BlockStatement")).field("generator",Boolean,h["false"]).field("async",Boolean,h["false"]);o("Statement").bases("Node");o("EmptyStatement").bases("Statement").build();o("BlockStatement").bases("Statement").build("body").field("body",[o("Statement")]);o("ExpressionStatement").bases("Statement").build("expression").field("expression",o("Expression"));o("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",o("Expression")).field("consequent",o("Statement")).field("alternate",l(o("Statement"),null),h["null"]);o("LabeledStatement").bases("Statement").build("label","body").field("label",o("Identifier")).field("body",o("Statement"));o("BreakStatement").bases("Statement").build("label").field("label",l(o("Identifier"),null),h["null"]);o("ContinueStatement").bases("Statement").build("label").field("label",l(o("Identifier"),null),h["null"]);o("WithStatement").bases("Statement").build("object","body").field("object",o("Expression")).field("body",o("Statement"));o("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",o("Expression")).field("cases",[o("SwitchCase")]).field("lexical",Boolean,h["false"]);o("ReturnStatement").bases("Statement").build("argument").field("argument",l(o("Expression"),null));o("ThrowStatement").bases("Statement").build("argument").field("argument",o("Expression"));o("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",o("BlockStatement")).field("handler",l(o("CatchClause"),null),(function(){return this.handlers&&this.handlers[0]||null})).field("handlers",[o("CatchClause")],(function(){return this.handler?[this.handler]:[]}),true).field("guardedHandlers",[o("CatchClause")],h.emptyArray).field("finalizer",l(o("BlockStatement"),null),h["null"]);o("CatchClause").bases("Node").build("param","guard","body").field("param",l(o("Pattern"),null),h["null"]).field("guard",l(o("Expression"),null),h["null"]).field("body",o("BlockStatement"));o("WhileStatement").bases("Statement").build("test","body").field("test",o("Expression")).field("body",o("Statement"));o("DoWhileStatement").bases("Statement").build("body","test").field("body",o("Statement")).field("test",o("Expression"));o("ForStatement").bases("Statement").build("init","test","update","body").field("init",l(o("VariableDeclaration"),o("Expression"),null)).field("test",l(o("Expression"),null)).field("update",l(o("Expression"),null)).field("body",o("Statement"));o("ForInStatement").bases("Statement").build("left","right","body").field("left",l(o("VariableDeclaration"),o("Expression"))).field("right",o("Expression")).field("body",o("Statement"));o("DebuggerStatement").bases("Statement").build();o("Declaration").bases("Statement");o("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",o("Identifier"));o("FunctionExpression").bases("Function","Expression").build("id","params","body");o("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",l("var","let","const")).field("declarations",[o("VariableDeclarator")]);o("VariableDeclarator").bases("Node").build("id","init").field("id",o("Pattern")).field("init",l(o("Expression"),null),h["null"]);o("Expression").bases("Node");o("ThisExpression").bases("Expression").build();o("ArrayExpression").bases("Expression").build("elements").field("elements",[l(o("Expression"),null)]);o("ObjectExpression").bases("Expression").build("properties").field("properties",[o("Property")]);o("Property").bases("Node").build("kind","key","value").field("kind",l("init","get","set")).field("key",l(o("Literal"),o("Identifier"))).field("value",o("Expression"));o("SequenceExpression").bases("Expression").build("expressions").field("expressions",[o("Expression")]);var g=l("-","+","!","~","typeof","void","delete");o("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",g).field("argument",o("Expression")).field("prefix",Boolean,h["true"]);var E=l("==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","**","&","|","^","in","instanceof");o("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",E).field("left",o("Expression")).field("right",o("Expression"));var v=l("=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&=");o("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",v).field("left",l(o("Pattern"),o("MemberExpression"))).field("right",o("Expression"));var A=l("++","--");o("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",A).field("argument",o("Expression")).field("prefix",Boolean);var y=l("||","&&");o("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",y).field("left",o("Expression")).field("right",o("Expression"));o("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",o("Expression")).field("consequent",o("Expression")).field("alternate",o("Expression"));o("NewExpression").bases("Expression").build("callee","arguments").field("callee",o("Expression")).field("arguments",[o("Expression")]);o("CallExpression").bases("Expression").build("callee","arguments").field("callee",o("Expression")).field("arguments",[o("Expression")]);o("MemberExpression").bases("Expression").build("object","property","computed").field("object",o("Expression")).field("property",l(o("Identifier"),o("Expression"))).field("computed",Boolean,(function(){var t=this.property.type;if(t==="Literal"||t==="MemberExpression"||t==="BinaryExpression"){return true}return false}));o("Pattern").bases("Node");o("SwitchCase").bases("Node").build("test","consequent").field("test",l(o("Expression"),null)).field("consequent",[o("Statement")]);o("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,h["false"]);o("Literal").bases("Expression").build("value").field("value",l(String,Boolean,null,Number,RegExp)).field("regex",l({pattern:String,flags:String},null),(function(){if(this.value instanceof RegExp){var t="";if(this.value.ignoreCase)t+="i";if(this.value.multiline)t+="m";if(this.value.global)t+="g";return{pattern:this.value.source,flags:t}}return null}));o("Comment").bases("Printable").field("value",String).field("leading",Boolean,h["true"]).field("trailing",Boolean,h["false"])}i["default"]=default_1;t.exports=i["default"]},2207:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(4631));var l=o.__importDefault(a(6604));function default_1(t){t.use(l.default);var i=t.use(p.default);var a=i.Type;var o=i.Type.def;var d=a.or;var h=t.use(u.default);var m=h.defaults;o("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,m["true"]);o("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,m["true"]);var g=d("||","&&","??");o("LogicalExpression").field("operator",g)}i["default"]=default_1;t.exports=i["default"]},8975:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(5351));var u=o.__importDefault(a(2619));function default_1(t){t.use(p.default);var i=t.use(u.default);var a=i.Type.def;a("ImportExpression").bases("Expression").build("source").field("source",a("Expression"))}i["default"]=default_1;t.exports=i["default"]},8127:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(6604));var u=o.__importDefault(a(2619));var l=o.__importDefault(a(4631));function default_1(t){t.use(p.default);var i=t.use(u.default);var a=i.Type.def;var o=i.Type.or;var d=t.use(l.default).defaults;a("Function").field("generator",Boolean,d["false"]).field("expression",Boolean,d["false"]).field("defaults",[o(a("Expression"),null)],d.emptyArray).field("rest",o(a("Identifier"),null),d["null"]);a("RestElement").bases("Pattern").build("argument").field("argument",a("Pattern")).field("typeAnnotation",o(a("TypeAnnotation"),a("TSTypeAnnotation"),null),d["null"]);a("SpreadElementPattern").bases("Pattern").build("argument").field("argument",a("Pattern"));a("FunctionDeclaration").build("id","params","body","generator","expression");a("FunctionExpression").build("id","params","body","generator","expression");a("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,d["null"]).field("body",o(a("BlockStatement"),a("Expression"))).field("generator",false,d["false"]);a("ForOfStatement").bases("Statement").build("left","right","body").field("left",o(a("VariableDeclaration"),a("Pattern"))).field("right",a("Expression")).field("body",a("Statement"));a("YieldExpression").bases("Expression").build("argument","delegate").field("argument",o(a("Expression"),null)).field("delegate",Boolean,d["false"]);a("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",a("Expression")).field("blocks",[a("ComprehensionBlock")]).field("filter",o(a("Expression"),null));a("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",a("Expression")).field("blocks",[a("ComprehensionBlock")]).field("filter",o(a("Expression"),null));a("ComprehensionBlock").bases("Node").build("left","right","each").field("left",a("Pattern")).field("right",a("Expression")).field("each",Boolean);a("Property").field("key",o(a("Literal"),a("Identifier"),a("Expression"))).field("value",o(a("Expression"),a("Pattern"))).field("method",Boolean,d["false"]).field("shorthand",Boolean,d["false"]).field("computed",Boolean,d["false"]);a("ObjectProperty").field("shorthand",Boolean,d["false"]);a("PropertyPattern").bases("Pattern").build("key","pattern").field("key",o(a("Literal"),a("Identifier"),a("Expression"))).field("pattern",a("Pattern")).field("computed",Boolean,d["false"]);a("ObjectPattern").bases("Pattern").build("properties").field("properties",[o(a("PropertyPattern"),a("Property"))]);a("ArrayPattern").bases("Pattern").build("elements").field("elements",[o(a("Pattern"),null)]);a("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",o("constructor","method","get","set")).field("key",a("Expression")).field("value",a("Function")).field("computed",Boolean,d["false"]).field("static",Boolean,d["false"]);a("SpreadElement").bases("Node").build("argument").field("argument",a("Expression"));a("ArrayExpression").field("elements",[o(a("Expression"),a("SpreadElement"),a("RestElement"),null)]);a("NewExpression").field("arguments",[o(a("Expression"),a("SpreadElement"))]);a("CallExpression").field("arguments",[o(a("Expression"),a("SpreadElement"))]);a("AssignmentPattern").bases("Pattern").build("left","right").field("left",a("Pattern")).field("right",a("Expression"));var h=o(a("MethodDefinition"),a("VariableDeclarator"),a("ClassPropertyDefinition"),a("ClassProperty"));a("ClassProperty").bases("Declaration").build("key").field("key",o(a("Literal"),a("Identifier"),a("Expression"))).field("computed",Boolean,d["false"]);a("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",h);a("ClassBody").bases("Declaration").build("body").field("body",[h]);a("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",o(a("Identifier"),null)).field("body",a("ClassBody")).field("superClass",o(a("Expression"),null),d["null"]);a("ClassExpression").bases("Expression").build("id","body","superClass").field("id",o(a("Identifier"),null),d["null"]).field("body",a("ClassBody")).field("superClass",o(a("Expression"),null),d["null"]);a("Specifier").bases("Node");a("ModuleSpecifier").bases("Specifier").field("local",o(a("Identifier"),null),d["null"]).field("id",o(a("Identifier"),null),d["null"]).field("name",o(a("Identifier"),null),d["null"]);a("ImportSpecifier").bases("ModuleSpecifier").build("id","name");a("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("id");a("ImportDefaultSpecifier").bases("ModuleSpecifier").build("id");a("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[o(a("ImportSpecifier"),a("ImportNamespaceSpecifier"),a("ImportDefaultSpecifier"))],d.emptyArray).field("source",a("Literal")).field("importKind",o("value","type"),(function(){return"value"}));a("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",a("Expression")).field("quasi",a("TemplateLiteral"));a("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[a("TemplateElement")]).field("expressions",[a("Expression")]);a("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean)}i["default"]=default_1;t.exports=i["default"]},5351:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(8127));var u=o.__importDefault(a(2619));var l=o.__importDefault(a(4631));function default_1(t){t.use(p.default);var i=t.use(u.default);var a=i.Type.def;var o=i.Type.or;var d=t.use(l.default).defaults;a("Function").field("async",Boolean,d["false"]);a("SpreadProperty").bases("Node").build("argument").field("argument",a("Expression"));a("ObjectExpression").field("properties",[o(a("Property"),a("SpreadProperty"),a("SpreadElement"))]);a("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",a("Pattern"));a("ObjectPattern").field("properties",[o(a("Property"),a("PropertyPattern"),a("SpreadPropertyPattern"))]);a("AwaitExpression").bases("Expression").build("argument","all").field("argument",o(a("Expression"),null)).field("all",Boolean,d["false"])}i["default"]=default_1;t.exports=i["default"]},6019:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(5351));var u=o.__importDefault(a(2619));var l=o.__importDefault(a(4631));function default_1(t){t.use(p.default);var i=t.use(u.default);var a=t.use(l.default).defaults;var o=i.Type.def;var d=i.Type.or;o("VariableDeclaration").field("declarations",[d(o("VariableDeclarator"),o("Identifier"))]);o("Property").field("value",d(o("Expression"),o("Pattern")));o("ArrayPattern").field("elements",[d(o("Pattern"),o("SpreadElement"),null)]);o("ObjectPattern").field("properties",[d(o("Property"),o("PropertyPattern"),o("SpreadPropertyPattern"),o("SpreadProperty"))]);o("ExportSpecifier").bases("ModuleSpecifier").build("id","name");o("ExportBatchSpecifier").bases("Specifier").build();o("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",d(o("Declaration"),o("Expression"),null)).field("specifiers",[d(o("ExportSpecifier"),o("ExportBatchSpecifier"))],a.emptyArray).field("source",d(o("Literal"),null),a["null"]);o("Block").bases("Comment").build("value","leading","trailing");o("Line").bases("Comment").build("value","leading","trailing")}i["default"]=default_1;t.exports=i["default"]},368:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(5351));var u=o.__importDefault(a(6278));var l=o.__importDefault(a(2619));var d=o.__importDefault(a(4631));function default_1(t){t.use(p.default);t.use(u.default);var i=t.use(l.default);var a=i.Type.def;var o=i.Type.or;var h=t.use(d.default).defaults;a("Flow").bases("Node");a("FlowType").bases("Flow");a("AnyTypeAnnotation").bases("FlowType").build();a("EmptyTypeAnnotation").bases("FlowType").build();a("MixedTypeAnnotation").bases("FlowType").build();a("VoidTypeAnnotation").bases("FlowType").build();a("NumberTypeAnnotation").bases("FlowType").build();a("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String);a("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String);a("StringTypeAnnotation").bases("FlowType").build();a("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String);a("BooleanTypeAnnotation").bases("FlowType").build();a("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String);a("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",a("FlowType"));a("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",a("FlowType"));a("NullLiteralTypeAnnotation").bases("FlowType").build();a("NullTypeAnnotation").bases("FlowType").build();a("ThisTypeAnnotation").bases("FlowType").build();a("ExistsTypeAnnotation").bases("FlowType").build();a("ExistentialTypeParam").bases("FlowType").build();a("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[a("FunctionTypeParam")]).field("returnType",a("FlowType")).field("rest",o(a("FunctionTypeParam"),null)).field("typeParameters",o(a("TypeParameterDeclaration"),null));a("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",a("Identifier")).field("typeAnnotation",a("FlowType")).field("optional",Boolean);a("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",a("FlowType"));a("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[o(a("ObjectTypeProperty"),a("ObjectTypeSpreadProperty"))]).field("indexers",[a("ObjectTypeIndexer")],h.emptyArray).field("callProperties",[a("ObjectTypeCallProperty")],h.emptyArray).field("inexact",o(Boolean,void 0),h["undefined"]).field("exact",Boolean,h["false"]).field("internalSlots",[a("ObjectTypeInternalSlot")],h.emptyArray);a("Variance").bases("Node").build("kind").field("kind",o("plus","minus"));var m=o(a("Variance"),"plus","minus",null);a("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",o(a("Literal"),a("Identifier"))).field("value",a("FlowType")).field("optional",Boolean).field("variance",m,h["null"]);a("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",a("Identifier")).field("key",a("FlowType")).field("value",a("FlowType")).field("variance",m,h["null"]);a("ObjectTypeCallProperty").bases("Node").build("value").field("value",a("FunctionTypeAnnotation")).field("static",Boolean,h["false"]);a("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",o(a("Identifier"),a("QualifiedTypeIdentifier"))).field("id",a("Identifier"));a("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",o(a("Identifier"),a("QualifiedTypeIdentifier"))).field("typeParameters",o(a("TypeParameterInstantiation"),null));a("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",a("Identifier")).field("property",o(a("MemberTypeAnnotation"),a("GenericTypeAnnotation")));a("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[a("FlowType")]);a("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[a("FlowType")]);a("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",a("FlowType"));a("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",a("FlowType"));a("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",a("Identifier")).field("value",a("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean);a("TypeParameterDeclaration").bases("Node").build("params").field("params",[a("TypeParameter")]);a("TypeParameterInstantiation").bases("Node").build("params").field("params",[a("FlowType")]);a("TypeParameter").bases("FlowType").build("name","variance","bound").field("name",String).field("variance",m,h["null"]).field("bound",o(a("TypeAnnotation"),null),h["null"]);a("ClassProperty").field("variance",m,h["null"]);a("ClassImplements").bases("Node").build("id").field("id",a("Identifier")).field("superClass",o(a("Expression"),null),h["null"]).field("typeParameters",o(a("TypeParameterInstantiation"),null),h["null"]);a("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",a("ObjectTypeAnnotation")).field("extends",o([a("InterfaceExtends")],null),h["null"]);a("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",a("Identifier")).field("typeParameters",o(a("TypeParameterDeclaration"),null),h["null"]).field("body",a("ObjectTypeAnnotation")).field("extends",[a("InterfaceExtends")]);a("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends");a("InterfaceExtends").bases("Node").build("id").field("id",a("Identifier")).field("typeParameters",o(a("TypeParameterInstantiation"),null),h["null"]);a("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",a("Identifier")).field("typeParameters",o(a("TypeParameterDeclaration"),null)).field("right",a("FlowType"));a("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",a("Identifier")).field("typeParameters",o(a("TypeParameterDeclaration"),null)).field("impltype",a("FlowType")).field("supertype",a("FlowType"));a("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right");a("DeclareOpaqueType").bases("TypeAlias").build("id","typeParameters","supertype");a("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",a("Expression")).field("typeAnnotation",a("TypeAnnotation"));a("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[a("FlowType")]);a("DeclareVariable").bases("Statement").build("id").field("id",a("Identifier"));a("DeclareFunction").bases("Statement").build("id").field("id",a("Identifier"));a("DeclareClass").bases("InterfaceDeclaration").build("id");a("DeclareModule").bases("Statement").build("id","body").field("id",o(a("Identifier"),a("Literal"))).field("body",a("BlockStatement"));a("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",a("TypeAnnotation"));a("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",o(a("DeclareVariable"),a("DeclareFunction"),a("DeclareClass"),a("FlowType"),null)).field("specifiers",[o(a("ExportSpecifier"),a("ExportBatchSpecifier"))],h.emptyArray).field("source",o(a("Literal"),null),h["null"]);a("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",o(a("Literal"),null),h["null"]);a("FlowPredicate").bases("Flow");a("InferredPredicate").bases("FlowPredicate").build();a("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",a("Expression"));a("CallExpression").field("typeArguments",o(null,a("TypeParameterInstantiation")),h["null"]);a("NewExpression").field("typeArguments",o(null,a("TypeParameterInstantiation")),h["null"])}i["default"]=default_1;t.exports=i["default"]},7572:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(5351));var u=o.__importDefault(a(2619));var l=o.__importDefault(a(4631));function default_1(t){t.use(p.default);var i=t.use(u.default);var a=i.Type.def;var o=i.Type.or;var d=t.use(l.default).defaults;a("JSXAttribute").bases("Node").build("name","value").field("name",o(a("JSXIdentifier"),a("JSXNamespacedName"))).field("value",o(a("Literal"),a("JSXExpressionContainer"),null),d["null"]);a("JSXIdentifier").bases("Identifier").build("name").field("name",String);a("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",a("JSXIdentifier")).field("name",a("JSXIdentifier"));a("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",o(a("JSXIdentifier"),a("JSXMemberExpression"))).field("property",a("JSXIdentifier")).field("computed",Boolean,d.false);var h=o(a("JSXIdentifier"),a("JSXNamespacedName"),a("JSXMemberExpression"));a("JSXSpreadAttribute").bases("Node").build("argument").field("argument",a("Expression"));var m=[o(a("JSXAttribute"),a("JSXSpreadAttribute"))];a("JSXExpressionContainer").bases("Expression").build("expression").field("expression",a("Expression"));a("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",a("JSXOpeningElement")).field("closingElement",o(a("JSXClosingElement"),null),d["null"]).field("children",[o(a("JSXElement"),a("JSXExpressionContainer"),a("JSXFragment"),a("JSXText"),a("Literal"))],d.emptyArray).field("name",h,(function(){return this.openingElement.name}),true).field("selfClosing",Boolean,(function(){return this.openingElement.selfClosing}),true).field("attributes",m,(function(){return this.openingElement.attributes}),true);a("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",h).field("attributes",m,d.emptyArray).field("selfClosing",Boolean,d["false"]);a("JSXClosingElement").bases("Node").build("name").field("name",h);a("JSXFragment").bases("Expression").build("openingElement","closingElement","children").field("openingElement",a("JSXOpeningFragment")).field("closingElement",a("JSXClosingFragment")).field("children",[o(a("JSXElement"),a("JSXExpressionContainer"),a("JSXFragment"),a("JSXText"),a("Literal"))],d.emptyArray);a("JSXOpeningFragment").bases("Node").build();a("JSXClosingFragment").bases("Node").build();a("JSXText").bases("Literal").build("value").field("value",String);a("JSXEmptyExpression").bases("Expression").build();a("JSXSpreadChild").bases("Expression").build("expression").field("expression",a("Expression"))}i["default"]=default_1;t.exports=i["default"]},6278:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(4631));function default_1(t){var i=t.use(p.default);var a=i.Type.def;var o=i.Type.or;var l=t.use(u.default).defaults;var d=o(a("TypeAnnotation"),a("TSTypeAnnotation"),null);var h=o(a("TypeParameterDeclaration"),a("TSTypeParameterDeclaration"),null);a("Identifier").field("typeAnnotation",d,l["null"]);a("ObjectPattern").field("typeAnnotation",d,l["null"]);a("Function").field("returnType",d,l["null"]).field("typeParameters",h,l["null"]);a("ClassProperty").build("key","value","typeAnnotation","static").field("value",o(a("Expression"),null)).field("static",Boolean,l["false"]).field("typeAnnotation",d,l["null"]);["ClassDeclaration","ClassExpression"].forEach((function(t){a(t).field("typeParameters",h,l["null"]).field("superTypeParameters",o(a("TypeParameterInstantiation"),a("TSTypeParameterInstantiation"),null),l["null"]).field("implements",o([a("ClassImplements")],[a("TSExpressionWithTypeArguments")]),l.emptyArray)}))}i["default"]=default_1;t.exports=i["default"]},6743:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(5382));var u=o.__importDefault(a(6278));var l=o.__importDefault(a(2619));var d=o.__importDefault(a(4631));function default_1(t){t.use(p.default);t.use(u.default);var i=t.use(l.default);var a=i.namedTypes;var o=i.Type.def;var h=i.Type.or;var m=t.use(d.default).defaults;var g=i.Type.from((function(t,i){if(a.StringLiteral&&a.StringLiteral.check(t,i)){return true}if(a.Literal&&a.Literal.check(t,i)&&typeof t.value==="string"){return true}return false}),"StringLiteral");o("TSType").bases("Node");var E=h(o("Identifier"),o("TSQualifiedName"));o("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",E);o("TSHasOptionalTypeParameterInstantiation").field("typeParameters",h(o("TSTypeParameterInstantiation"),null),m["null"]);o("TSHasOptionalTypeParameters").field("typeParameters",h(o("TSTypeParameterDeclaration"),null,void 0),m["null"]);o("TSHasOptionalTypeAnnotation").field("typeAnnotation",h(o("TSTypeAnnotation"),null),m["null"]);o("TSQualifiedName").bases("Node").build("left","right").field("left",E).field("right",E);o("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",o("Expression")).field("typeAnnotation",o("TSType")).field("extra",h({parenthesized:Boolean},null),m["null"]);o("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",o("Expression"));["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSThisType"].forEach((function(t){o(t).bases("TSType").build()}));o("TSArrayType").bases("TSType").build("elementType").field("elementType",o("TSType"));o("TSLiteralType").bases("TSType").build("literal").field("literal",h(o("NumericLiteral"),o("StringLiteral"),o("BooleanLiteral"),o("TemplateLiteral"),o("UnaryExpression")));["TSUnionType","TSIntersectionType"].forEach((function(t){o(t).bases("TSType").build("types").field("types",[o("TSType")])}));o("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",o("TSType")).field("extendsType",o("TSType")).field("trueType",o("TSType")).field("falseType",o("TSType"));o("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",o("TSTypeParameter"));o("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",o("TSType"));var v=[h(o("Identifier"),o("RestElement"),o("ArrayPattern"),o("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach((function(t){o(t).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",v)}));o("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,m["false"]).field("async",Boolean,m["false"]).field("generator",Boolean,m["false"]).field("id",h(o("Identifier"),null),m["null"]).field("params",[o("Pattern")]).field("returnType",h(o("TSTypeAnnotation"),o("Noop"),null),m["null"]);o("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,m["false"]).field("generator",Boolean,m["false"]).field("params",[o("Pattern")]).field("abstract",Boolean,m["false"]).field("accessibility",h("public","private","protected",void 0),m["undefined"]).field("static",Boolean,m["false"]).field("computed",Boolean,m["false"]).field("optional",Boolean,m["false"]).field("key",h(o("Identifier"),o("StringLiteral"),o("NumericLiteral"),o("Expression"))).field("kind",h("get","set","method","constructor"),(function getDefault(){return"method"})).field("access",h("public","private","protected",void 0),m["undefined"]).field("decorators",h([o("Decorator")],null),m["null"]).field("returnType",h(o("TSTypeAnnotation"),o("Noop"),null),m["null"]);o("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",h(Boolean,"+","-"),m["false"]).field("typeParameter",o("TSTypeParameter")).field("optional",h(Boolean,"+","-"),m["false"]).field("typeAnnotation",h(o("TSType"),null),m["null"]);o("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[h(o("TSType"),o("TSNamedTupleMember"))]);o("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",o("Identifier")).field("optional",Boolean,m["false"]).field("elementType",o("TSType"));o("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",o("TSType"));o("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",o("TSType"));o("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",o("TSType")).field("indexType",o("TSType"));o("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",o("TSType"));o("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",h(o("TSType"),o("TSTypeAnnotation")));o("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[o("Identifier")]).field("readonly",Boolean,m["false"]);o("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",o("Expression")).field("computed",Boolean,m["false"]).field("readonly",Boolean,m["false"]).field("optional",Boolean,m["false"]).field("initializer",h(o("Expression"),null),m["null"]);o("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",o("Expression")).field("computed",Boolean,m["false"]).field("optional",Boolean,m["false"]).field("parameters",v);o("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",h(o("Identifier"),o("TSThisType"))).field("typeAnnotation",h(o("TSTypeAnnotation"),null),m["null"]).field("asserts",Boolean,m["false"]);["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach((function(t){o(t).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",v)}));o("TSEnumMember").bases("Node").build("id","initializer").field("id",h(o("Identifier"),g)).field("initializer",h(o("Expression"),null),m["null"]);o("TSTypeQuery").bases("TSType").build("exprName").field("exprName",h(E,o("TSImportType")));var A=h(o("TSCallSignatureDeclaration"),o("TSConstructSignatureDeclaration"),o("TSIndexSignature"),o("TSMethodSignature"),o("TSPropertySignature"));o("TSTypeLiteral").bases("TSType").build("members").field("members",[A]);o("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",String).field("constraint",h(o("TSType"),void 0),m["undefined"]).field("default",h(o("TSType"),void 0),m["undefined"]);o("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",o("TSType")).field("expression",o("Expression")).field("extra",h({parenthesized:Boolean},null),m["null"]);o("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[o("TSTypeParameter")]);o("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[o("TSType")]);o("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",o("Identifier")).field("const",Boolean,m["false"]).field("declare",Boolean,m["false"]).field("members",[o("TSEnumMember")]).field("initializer",h(o("Expression"),null),m["null"]);o("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",o("Identifier")).field("declare",Boolean,m["false"]).field("typeAnnotation",o("TSType"));o("TSModuleBlock").bases("Node").build("body").field("body",[o("Statement")]);o("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",h(g,E)).field("declare",Boolean,m["false"]).field("global",Boolean,m["false"]).field("body",h(o("TSModuleBlock"),o("TSModuleDeclaration"),null),m["null"]);o("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",g).field("qualifier",h(E,void 0),m["undefined"]);o("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",o("Identifier")).field("isExport",Boolean,m["false"]).field("moduleReference",h(E,o("TSExternalModuleReference")));o("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",g);o("TSExportAssignment").bases("Statement").build("expression").field("expression",o("Expression"));o("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",o("Identifier"));o("TSInterfaceBody").bases("Node").build("body").field("body",[A]);o("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",E);o("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",E).field("declare",Boolean,m["false"]).field("extends",h([o("TSExpressionWithTypeArguments")],null),m["null"]).field("body",o("TSInterfaceBody"));o("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",h("public","private","protected",void 0),m["undefined"]).field("readonly",Boolean,m["false"]).field("parameter",h(o("Identifier"),o("AssignmentPattern")));o("ClassProperty").field("access",h("public","private","protected",void 0),m["undefined"]);o("ClassBody").field("body",[h(o("MethodDefinition"),o("VariableDeclarator"),o("ClassPropertyDefinition"),o("ClassProperty"),o("ClassPrivateProperty"),o("ClassMethod"),o("ClassPrivateMethod"),o("TSDeclareMethod"),A)])}i["default"]=default_1;t.exports=i["default"]},253:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(6525));var l=o.__importDefault(a(8636));var d=o.__importDefault(a(8770));var h=o.__importDefault(a(5694));function default_1(t){var i=createFork();var a=i.use(p.default);t.forEach(i.use);a.finalize();var o=i.use(u.default);return{Type:a.Type,builtInTypes:a.builtInTypes,namedTypes:a.namedTypes,builders:a.builders,defineMethod:a.defineMethod,getFieldNames:a.getFieldNames,getFieldValue:a.getFieldValue,eachField:a.eachField,someField:a.someField,getSupertypeNames:a.getSupertypeNames,getBuilderName:a.getBuilderName,astNodesAreEquivalent:i.use(l.default),finalize:a.finalize,Path:i.use(d.default),NodePath:i.use(h.default),PathVisitor:o,use:i.use,visit:o.visit}}i["default"]=default_1;function createFork(){var t=[];var i=[];function use(o){var p=t.indexOf(o);if(p===-1){p=t.length;t.push(o);i[p]=o(a)}return i[p]}var a={use:use};return a}t.exports=i["default"]},4143:(t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.namedTypes=void 0;var a;(function(t){})(a=i.namedTypes||(i.namedTypes={}))},8636:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));function default_1(t){var i=t.use(p.default);var a=i.getFieldNames;var o=i.getFieldValue;var u=i.builtInTypes.array;var l=i.builtInTypes.object;var d=i.builtInTypes.Date;var h=i.builtInTypes.RegExp;var m=Object.prototype.hasOwnProperty;function astNodesAreEquivalent(t,i,a){if(u.check(a)){a.length=0}else{a=null}return areEquivalent(t,i,a)}astNodesAreEquivalent.assert=function(t,i){var a=[];if(!astNodesAreEquivalent(t,i,a)){if(a.length===0){if(t!==i){throw new Error("Nodes must be equal")}}else{throw new Error("Nodes differ in the following path: "+a.map(subscriptForProperty).join(""))}}};function subscriptForProperty(t){if(/[_$a-z][_$a-z0-9]*/i.test(t)){return"."+t}return"["+JSON.stringify(t)+"]"}function areEquivalent(t,i,a){if(t===i){return true}if(u.check(t)){return arraysAreEquivalent(t,i,a)}if(l.check(t)){return objectsAreEquivalent(t,i,a)}if(d.check(t)){return d.check(i)&&+t===+i}if(h.check(t)){return h.check(i)&&(t.source===i.source&&t.global===i.global&&t.multiline===i.multiline&&t.ignoreCase===i.ignoreCase)}return t==i}function arraysAreEquivalent(t,i,a){u.assert(t);var o=t.length;if(!u.check(i)||i.length!==o){if(a){a.push("length")}return false}for(var p=0;p{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(8770));var l=o.__importDefault(a(9733));function nodePathPlugin(t){var i=t.use(p.default);var a=i.namedTypes;var o=i.builders;var d=i.builtInTypes.number;var h=i.builtInTypes.array;var m=t.use(u.default);var g=t.use(l.default);var E=function NodePath(t,i,a){if(!(this instanceof NodePath)){throw new Error("NodePath constructor cannot be invoked without 'new'")}m.call(this,t,i,a)};var v=E.prototype=Object.create(m.prototype,{constructor:{value:E,enumerable:false,writable:true,configurable:true}});Object.defineProperties(v,{node:{get:function(){Object.defineProperty(this,"node",{configurable:true,value:this._computeNode()});return this.node}},parent:{get:function(){Object.defineProperty(this,"parent",{configurable:true,value:this._computeParent()});return this.parent}},scope:{get:function(){Object.defineProperty(this,"scope",{configurable:true,value:this._computeScope()});return this.scope}}});v.replace=function(){delete this.node;delete this.parent;delete this.scope;return m.prototype.replace.apply(this,arguments)};v.prune=function(){var t=this.parent;this.replace();return cleanUpNodesAfterPrune(t)};v._computeNode=function(){var t=this.value;if(a.Node.check(t)){return t}var i=this.parentPath;return i&&i.node||null};v._computeParent=function(){var t=this.value;var i=this.parentPath;if(!a.Node.check(t)){while(i&&!a.Node.check(i.value)){i=i.parentPath}if(i){i=i.parentPath}}while(i&&!a.Node.check(i.value)){i=i.parentPath}return i||null};v._computeScope=function(){var t=this.value;var i=this.parentPath;var o=i&&i.scope;if(a.Node.check(t)&&g.isEstablishedBy(t)){o=new g(this,o)}return o||null};v.getValueProperty=function(t){return i.getFieldValue(this.value,t)};v.needsParens=function(t){var i=this.parentPath;if(!i){return false}var o=this.value;if(!a.Expression.check(o)){return false}if(o.type==="Identifier"){return false}while(!a.Node.check(i.value)){i=i.parentPath;if(!i){return false}}var p=i.value;switch(o.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return p.type==="MemberExpression"&&this.name==="object"&&p.object===o;case"BinaryExpression":case"LogicalExpression":switch(p.type){case"CallExpression":return this.name==="callee"&&p.callee===o;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return true;case"MemberExpression":return this.name==="object"&&p.object===o;case"BinaryExpression":case"LogicalExpression":{var u=o;var l=p.operator;var h=A[l];var m=u.operator;var g=A[m];if(h>g){return true}if(h===g&&this.name==="right"){if(p.right!==u){throw new Error("Nodes must be equal")}return true}}default:return false}case"SequenceExpression":switch(p.type){case"ForStatement":return false;case"ExpressionStatement":return this.name!=="expression";default:return true}case"YieldExpression":switch(p.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return true;default:return false}case"Literal":return p.type==="MemberExpression"&&d.check(o.value)&&this.name==="object"&&p.object===o;case"AssignmentExpression":case"ConditionalExpression":switch(p.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return true;case"CallExpression":return this.name==="callee"&&p.callee===o;case"ConditionalExpression":return this.name==="test"&&p.test===o;case"MemberExpression":return this.name==="object"&&p.object===o;default:return false}default:if(p.type==="NewExpression"&&this.name==="callee"&&p.callee===o){return containsCallExpression(o)}}if(t!==true&&!this.canBeFirstInStatement()&&this.firstInStatement())return true;return false};function isBinary(t){return a.BinaryExpression.check(t)||a.LogicalExpression.check(t)}function isUnaryLike(t){return a.UnaryExpression.check(t)||a.SpreadElement&&a.SpreadElement.check(t)||a.SpreadProperty&&a.SpreadProperty.check(t)}var A={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach((function(t,i){t.forEach((function(t){A[t]=i}))}));function containsCallExpression(t){if(a.CallExpression.check(t)){return true}if(h.check(t)){return t.some(containsCallExpression)}if(a.Node.check(t)){return i.someField(t,(function(t,i){return containsCallExpression(i)}))}return false}v.canBeFirstInStatement=function(){var t=this.node;return!a.FunctionExpression.check(t)&&!a.ObjectExpression.check(t)};v.firstInStatement=function(){return firstInStatement(this)};function firstInStatement(t){for(var i,o;t.parent;t=t.parent){i=t.node;o=t.parent.node;if(a.BlockStatement.check(o)&&t.parent.name==="body"&&t.name===0){if(o.body[0]!==i){throw new Error("Nodes must be equal")}return true}if(a.ExpressionStatement.check(o)&&t.name==="expression"){if(o.expression!==i){throw new Error("Nodes must be equal")}return true}if(a.SequenceExpression.check(o)&&t.parent.name==="expressions"&&t.name===0){if(o.expressions[0]!==i){throw new Error("Nodes must be equal")}continue}if(a.CallExpression.check(o)&&t.name==="callee"){if(o.callee!==i){throw new Error("Nodes must be equal")}continue}if(a.MemberExpression.check(o)&&t.name==="object"){if(o.object!==i){throw new Error("Nodes must be equal")}continue}if(a.ConditionalExpression.check(o)&&t.name==="test"){if(o.test!==i){throw new Error("Nodes must be equal")}continue}if(isBinary(o)&&t.name==="left"){if(o.left!==i){throw new Error("Nodes must be equal")}continue}if(a.UnaryExpression.check(o)&&!o.prefix&&t.name==="argument"){if(o.argument!==i){throw new Error("Nodes must be equal")}continue}return false}return true}function cleanUpNodesAfterPrune(t){if(a.VariableDeclaration.check(t.node)){var i=t.get("declarations").value;if(!i||i.length===0){return t.prune()}}else if(a.ExpressionStatement.check(t.node)){if(!t.get("expression").value){return t.prune()}}else if(a.IfStatement.check(t.node)){cleanUpIfStatementAfterPrune(t)}return t}function cleanUpIfStatementAfterPrune(t){var i=t.get("test").value;var p=t.get("alternate").value;var u=t.get("consequent").value;if(!u&&!p){var l=o.expressionStatement(i);t.replace(l)}else if(!u&&p){var d=o.unaryExpression("!",i,true);if(a.UnaryExpression.check(i)&&i.operator==="!"){d=i.argument}t.get("test").replace(d);t.get("consequent").replace(p);t.get("alternate").replace()}}return E}i["default"]=nodePathPlugin;t.exports=i["default"]},6525:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=o.__importDefault(a(5694));var l=Object.prototype.hasOwnProperty;function pathVisitorPlugin(t){var i=t.use(p.default);var a=t.use(u.default);var o=i.builtInTypes.array;var d=i.builtInTypes.object;var h=i.builtInTypes.function;var m;var g=function PathVisitor(){if(!(this instanceof PathVisitor)){throw new Error("PathVisitor constructor cannot be invoked without 'new'")}this._reusableContextStack=[];this._methodNameTable=computeMethodNameTable(this);this._shouldVisitComments=l.call(this._methodNameTable,"Block")||l.call(this._methodNameTable,"Line");this.Context=makeContextConstructor(this);this._visiting=false;this._changeReported=false};function computeMethodNameTable(t){var a=Object.create(null);for(var o in t){if(/^visit[A-Z]/.test(o)){a[o.slice("visit".length)]=true}}var p=i.computeSupertypeLookupTable(a);var u=Object.create(null);var l=Object.keys(p);var d=l.length;for(var m=0;m{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=Object.prototype;var l=u.hasOwnProperty;function pathPlugin(t){var i=t.use(p.default);var a=i.builtInTypes.array;var o=i.builtInTypes.number;var u=function Path(t,i,a){if(!(this instanceof Path)){throw new Error("Path constructor cannot be invoked without 'new'")}if(i){if(!(i instanceof Path)){throw new Error("")}}else{i=null;a=null}this.value=t;this.parentPath=i;this.name=a;this.__childCache=null};var d=u.prototype;function getChildCache(t){return t.__childCache||(t.__childCache=Object.create(null))}function getChildPath(t,i){var a=getChildCache(t);var o=t.getValueProperty(i);var p=a[i];if(!l.call(a,i)||p.value!==o){p=a[i]=new t.constructor(o,t,i)}return p}d.getValueProperty=function getValueProperty(t){return this.value[t]};d.get=function get(){var t=[];for(var i=0;i=0){p[t.name=l]=t}}else{o[t.name]=t.value;p[t.name]=t}if(o[t.name]!==t.value){throw new Error("")}if(t.parentPath.get(t.name)!==t){throw new Error("")}return t}d.replace=function replace(t){var i=[];var o=this.parentPath.value;var p=getChildCache(this.parentPath);var u=arguments.length;repairRelationshipWithParent(this);if(a.check(o)){var l=o.length;var d=getMoves(this.parentPath,u-1,this.name+1);var h=[this.name,1];for(var m=0;m{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));var u=Object.prototype.hasOwnProperty;function scopePlugin(t){var i=t.use(p.default);var a=i.Type;var o=i.namedTypes;var l=o.Node;var d=o.Expression;var h=i.builtInTypes.array;var m=i.builders;var g=function Scope(t,i){if(!(this instanceof Scope)){throw new Error("Scope constructor cannot be invoked without 'new'")}v.assert(t.value);var a;if(i){if(!(i instanceof Scope)){throw new Error("")}a=i.depth+1}else{i=null;a=0}Object.defineProperties(this,{path:{value:t},node:{value:t.value},isGlobal:{value:!i,enumerable:true},depth:{value:a},parent:{value:i},bindings:{value:{}},types:{value:{}}})};var E=[o.Program,o.Function,o.CatchClause];var v=a.or.apply(a,E);g.isEstablishedBy=function(t){return v.check(t)};var A=g.prototype;A.didScan=false;A.declares=function(t){this.scan();return u.call(this.bindings,t)};A.declaresType=function(t){this.scan();return u.call(this.types,t)};A.declareTemporary=function(t){if(t){if(!/^[a-z$_]/i.test(t)){throw new Error("")}}else{t="t$"}t+=this.depth.toString(36)+"$";this.scan();var a=0;while(this.declares(t+a)){++a}var o=t+a;return this.bindings[o]=i.builders.identifier(o)};A.injectTemporary=function(t,i){t||(t=this.declareTemporary());var a=this.path.get("body");if(o.BlockStatement.check(a.value)){a=a.get("body")}a.unshift(m.variableDeclaration("var",[m.variableDeclarator(t,i||null)]));return t};A.scan=function(t){if(t||!this.didScan){for(var i in this.bindings){delete this.bindings[i]}scanScope(this.path,this.bindings,this.types);this.didScan=true}};A.getBindings=function(){this.scan();return this.bindings};A.getTypes=function(){this.scan();return this.types};function scanScope(t,i,a){var p=t.value;v.assert(p);if(o.CatchClause.check(p)){var u=t.get("param");if(u.value){addPattern(u,i)}}else{recursiveScanScope(t,i,a)}}function recursiveScanScope(t,a,p){var u=t.value;if(t.parent&&o.FunctionExpression.check(t.parent.node)&&t.parent.node.id){addPattern(t.parent.get("id"),a)}if(!u){}else if(h.check(u)){t.each((function(t){recursiveScanChild(t,a,p)}))}else if(o.Function.check(u)){t.get("params").each((function(t){addPattern(t,a)}));recursiveScanChild(t.get("body"),a,p)}else if(o.TypeAlias&&o.TypeAlias.check(u)||o.InterfaceDeclaration&&o.InterfaceDeclaration.check(u)||o.TSTypeAliasDeclaration&&o.TSTypeAliasDeclaration.check(u)||o.TSInterfaceDeclaration&&o.TSInterfaceDeclaration.check(u)){addTypePattern(t.get("id"),p)}else if(o.VariableDeclarator.check(u)){addPattern(t.get("id"),a);recursiveScanChild(t.get("init"),a,p)}else if(u.type==="ImportSpecifier"||u.type==="ImportNamespaceSpecifier"||u.type==="ImportDefaultSpecifier"){addPattern(t.get(u.local?"local":u.name?"name":"id"),a)}else if(l.check(u)&&!d.check(u)){i.eachField(u,(function(i,o){var u=t.get(i);if(!pathHasValue(u,o)){throw new Error("")}recursiveScanChild(u,a,p)}))}}function pathHasValue(t,i){if(t.value===i){return true}if(Array.isArray(t.value)&&t.value.length===0&&Array.isArray(i)&&i.length===0){return true}return false}function recursiveScanChild(t,i,a){var p=t.value;if(!p||d.check(p)){}else if(o.FunctionDeclaration.check(p)&&p.id!==null){addPattern(t.get("id"),i)}else if(o.ClassDeclaration&&o.ClassDeclaration.check(p)){addPattern(t.get("id"),i)}else if(v.check(p)){if(o.CatchClause.check(p)&&o.Identifier.check(p.param)){var l=p.param.name;var h=u.call(i,l);recursiveScanScope(t.get("body"),i,a);if(!h){delete i[l]}}}else{recursiveScanScope(t,i,a)}}function addPattern(t,i){var a=t.value;o.Pattern.assert(a);if(o.Identifier.check(a)){if(u.call(i,a.name)){i[a.name].push(t)}else{i[a.name]=[t]}}else if(o.AssignmentPattern&&o.AssignmentPattern.check(a)){addPattern(t.get("left"),i)}else if(o.ObjectPattern&&o.ObjectPattern.check(a)){t.get("properties").each((function(t){var a=t.value;if(o.Pattern.check(a)){addPattern(t,i)}else if(o.Property.check(a)){addPattern(t.get("value"),i)}else if(o.SpreadProperty&&o.SpreadProperty.check(a)){addPattern(t.get("argument"),i)}}))}else if(o.ArrayPattern&&o.ArrayPattern.check(a)){t.get("elements").each((function(t){var a=t.value;if(o.Pattern.check(a)){addPattern(t,i)}else if(o.SpreadElement&&o.SpreadElement.check(a)){addPattern(t.get("argument"),i)}}))}else if(o.PropertyPattern&&o.PropertyPattern.check(a)){addPattern(t.get("pattern"),i)}else if(o.SpreadElementPattern&&o.SpreadElementPattern.check(a)||o.SpreadPropertyPattern&&o.SpreadPropertyPattern.check(a)){addPattern(t.get("argument"),i)}}function addTypePattern(t,i){var a=t.value;o.Pattern.assert(a);if(o.Identifier.check(a)){if(u.call(i,a.name)){i[a.name].push(t)}else{i[a.name]=[t]}}}A.lookup=function(t){for(var i=this;i;i=i.parent)if(i.declares(t))break;return i};A.lookupType=function(t){for(var i=this;i;i=i.parent)if(i.declaresType(t))break;return i};A.getGlobalScope=function(){var t=this;while(!t.isGlobal)t=t.parent;return t};return g}i["default"]=scopePlugin;t.exports=i["default"]},4631:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var o=a(4351);var p=o.__importDefault(a(2619));function default_1(t){var i=t.use(p.default);var a=i.Type;var o=i.builtInTypes;var u=o.number;function geq(t){return a.from((function(i){return u.check(i)&&i>=t}),u+" >= "+t)}var l={null:function(){return null},emptyArray:function(){return[]},false:function(){return false},true:function(){return true},undefined:function(){},"use strict":function(){return"use strict"}};var d=a.or(o.string,o.number,o.boolean,o.null,o.undefined);var h=a.from((function(t){if(t===null)return true;var i=typeof t;if(i==="object"||i==="function"){return false}return true}),d.toString());return{geq:geq,defaults:l,isPrimitive:h}}i["default"]=default_1;t.exports=i["default"]},2619:(t,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Def=void 0;var o=a(4351);var p=Object.prototype;var u=p.toString;var l=p.hasOwnProperty;var d=function(){function BaseType(){}BaseType.prototype.assert=function(t,i){if(!this.check(t,i)){var a=shallowStringify(t);throw new Error(a+" does not match type "+this)}return true};BaseType.prototype.arrayOf=function(){var t=this;return new h(t)};return BaseType}();var h=function(t){o.__extends(ArrayType,t);function ArrayType(i){var a=t.call(this)||this;a.elemType=i;a.kind="ArrayType";return a}ArrayType.prototype.toString=function(){return"["+this.elemType+"]"};ArrayType.prototype.check=function(t,i){var a=this;return Array.isArray(t)&&t.every((function(t){return a.elemType.check(t,i)}))};return ArrayType}(d);var m=function(t){o.__extends(IdentityType,t);function IdentityType(i){var a=t.call(this)||this;a.value=i;a.kind="IdentityType";return a}IdentityType.prototype.toString=function(){return String(this.value)};IdentityType.prototype.check=function(t,i){var a=t===this.value;if(!a&&typeof i==="function"){i(this,t)}return a};return IdentityType}(d);var g=function(t){o.__extends(ObjectType,t);function ObjectType(i){var a=t.call(this)||this;a.fields=i;a.kind="ObjectType";return a}ObjectType.prototype.toString=function(){return"{ "+this.fields.join(", ")+" }"};ObjectType.prototype.check=function(t,i){return u.call(t)===u.call({})&&this.fields.every((function(a){return a.type.check(t[a.name],i)}))};return ObjectType}(d);var E=function(t){o.__extends(OrType,t);function OrType(i){var a=t.call(this)||this;a.types=i;a.kind="OrType";return a}OrType.prototype.toString=function(){return this.types.join(" | ")};OrType.prototype.check=function(t,i){return this.types.some((function(a){return a.check(t,i)}))};return OrType}(d);var v=function(t){o.__extends(PredicateType,t);function PredicateType(i,a){var o=t.call(this)||this;o.name=i;o.predicate=a;o.kind="PredicateType";return o}PredicateType.prototype.toString=function(){return this.name};PredicateType.prototype.check=function(t,i){var a=this.predicate(t,i);if(!a&&typeof i==="function"){i(this,t)}return a};return PredicateType}(d);var A=function(){function Def(t,i){this.type=t;this.typeName=i;this.baseNames=[];this.ownFields=Object.create(null);this.allSupertypes=Object.create(null);this.supertypeList=[];this.allFields=Object.create(null);this.fieldNames=[];this.finalized=false;this.buildable=false;this.buildParams=[]}Def.prototype.isSupertypeOf=function(t){if(t instanceof Def){if(this.finalized!==true||t.finalized!==true){throw new Error("")}return l.call(t.allSupertypes,this.typeName)}else{throw new Error(t+" is not a Def")}};Def.prototype.checkAllFields=function(t,i){var a=this.allFields;if(this.finalized!==true){throw new Error(""+this.typeName)}function checkFieldByName(o){var p=a[o];var u=p.type;var l=p.getValue(t);return u.check(l,i)}return t!==null&&typeof t==="object"&&Object.keys(a).every(checkFieldByName)};Def.prototype.bases=function(){var t=[];for(var i=0;i=0){return p[u]}if(typeof o!=="string"){throw new Error("missing name")}return new v(o,t)}return new m(t)},def:function(t){return l.call(P,t)?P[t]:P[t]=new O(t)},hasDef:function(t){return l.call(P,t)}};var a=[];var p=[];function defBuiltInType(t,i){var o=u.call(i);var l=new v(t,(function(t){return u.call(t)===o}));if(i&&typeof i.constructor==="function"){a.push(i.constructor);p.push(l)}return l}var d=defBuiltInType("string","truthy");var D=defBuiltInType("function",(function(){}));var b=defBuiltInType("array",[]);var C=defBuiltInType("object",{});var w=defBuiltInType("RegExp",/./);var S=defBuiltInType("Date",new Date);var _=defBuiltInType("number",3);var T=defBuiltInType("boolean",true);var B=defBuiltInType("null",null);var x=defBuiltInType("undefined",undefined);var k={string:d,function:D,array:b,object:C,RegExp:w,Date:S,number:_,boolean:T,null:B,undefined:x};var P=Object.create(null);function defFromValue(t){if(t&&typeof t==="object"){var i=t.type;if(typeof i==="string"&&l.call(P,i)){var a=P[i];if(a.finalized){return a}}}return null}var O=function(t){o.__extends(DefImpl,t);function DefImpl(i){var a=t.call(this,new v(i,(function(t,i){return a.check(t,i)})),i)||this;return a}DefImpl.prototype.check=function(t,i){if(this.finalized!==true){throw new Error("prematurely checking unfinalized type "+this.typeName)}if(t===null||typeof t!=="object"){return false}var a=defFromValue(t);if(!a){if(this.typeName==="SourceLocation"||this.typeName==="Position"){return this.checkAllFields(t,i)}return false}if(i&&a===this){return this.checkAllFields(t,i)}if(!this.isSupertypeOf(a)){return false}if(!i){return true}return a.checkAllFields(t,i)&&this.checkAllFields(t,false)};DefImpl.prototype.build=function(){var t=this;var i=[];for(var a=0;a=0){wrapExpressionBuilderWithStatement(this.typeName)}}};return DefImpl}(A);function getSupertypeNames(t){if(!l.call(P,t)){throw new Error("")}var i=P[t];if(i.finalized!==true){throw new Error("")}return i.supertypeList.slice(1)}function computeSupertypeLookupTable(t){var i={};var a=Object.keys(P);var o=a.length;for(var p=0;p{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.visit=i.use=i.Type=i.someField=i.PathVisitor=i.Path=i.NodePath=i.namedTypes=i.getSupertypeNames=i.getFieldValue=i.getFieldNames=i.getBuilderName=i.finalize=i.eachField=i.defineMethod=i.builtInTypes=i.builders=i.astNodesAreEquivalent=void 0;var o=a(4351);var p=o.__importDefault(a(253));var u=o.__importDefault(a(6604));var l=o.__importDefault(a(8127));var d=o.__importDefault(a(5351));var h=o.__importDefault(a(8975));var m=o.__importDefault(a(7572));var g=o.__importDefault(a(368));var E=o.__importDefault(a(6019));var v=o.__importDefault(a(2262));var A=o.__importDefault(a(6743));var y=o.__importDefault(a(2207));var D=a(4143);Object.defineProperty(i,"namedTypes",{enumerable:true,get:function(){return D.namedTypes}});var b=p.default([u.default,l.default,d.default,h.default,m.default,g.default,E.default,v.default,A.default,y.default]),C=b.astNodesAreEquivalent,w=b.builders,S=b.builtInTypes,_=b.defineMethod,T=b.eachField,B=b.finalize,x=b.getBuilderName,k=b.getFieldNames,P=b.getFieldValue,O=b.getSupertypeNames,I=b.namedTypes,N=b.NodePath,R=b.Path,L=b.PathVisitor,U=b.someField,G=b.Type,M=b.use,j=b.visit;i.astNodesAreEquivalent=C;i.builders=w;i.builtInTypes=S;i.defineMethod=_;i.eachField=T;i.finalize=B;i.getBuilderName=x;i.getFieldNames=k;i.getFieldValue=P;i.getSupertypeNames=O;i.NodePath=N;i.Path=R;i.PathVisitor=L;i.someField=U;i.Type=G;i.use=M;i.visit=j;Object.assign(D.namedTypes,I)},3682:(t,i,a)=>{var o=a(4670);var p=a(5549);var u=a(6819);var l=Function.bind;var d=l.bind(l);function bindApi(t,i,a){var o=d(u,null).apply(null,a?[i,a]:[i]);t.api={remove:o};t.remove=o;["before","error","after","wrap"].forEach((function(o){var u=a?[i,o,a]:[i,o];t[o]=t.api[o]=d(p,null).apply(null,u)}))}function HookSingular(){var t="h";var i={registry:{}};var a=o.bind(null,i,t);bindApi(a,i,t);return a}function HookCollection(){var t={registry:{}};var i=o.bind(null,t);bindApi(i,t);return i}var h=false;function Hook(){if(!h){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');h=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();t.exports=Hook;t.exports.Hook=Hook;t.exports.Singular=Hook.Singular;t.exports.Collection=Hook.Collection},5549:t=>{t.exports=addHook;function addHook(t,i,a,o){var p=o;if(!t.registry[a]){t.registry[a]=[]}if(i==="before"){o=function(t,i){return Promise.resolve().then(p.bind(null,i)).then(t.bind(null,i))}}if(i==="after"){o=function(t,i){var a;return Promise.resolve().then(t.bind(null,i)).then((function(t){a=t;return p(a,i)})).then((function(){return a}))}}if(i==="error"){o=function(t,i){return Promise.resolve().then(t.bind(null,i)).catch((function(t){return p(t,i)}))}}t.registry[a].push({hook:o,orig:p})}},4670:t=>{t.exports=register;function register(t,i,a,o){if(typeof a!=="function"){throw new Error("method for before hook must be a function")}if(!o){o={}}if(Array.isArray(i)){return i.reverse().reduce((function(i,a){return register.bind(null,t,a,i,o)}),a)()}return Promise.resolve().then((function(){if(!t.registry[i]){return a(o)}return t.registry[i].reduce((function(t,i){return i.hook.bind(null,t,o)}),a)()}))}},6819:t=>{t.exports=removeHook;function removeHook(t,i,a){if(!t.registry[i]){return}var o=t.registry[i].map((function(t){return t.orig})).indexOf(a);if(o===-1){return}t.registry[i].splice(o,1)}},6966:t=>{"use strict"; /*! * bytes * Copyright(c) 2012-2014 TJ Holowaychuk diff --git a/src/index.ts b/src/index.ts index 1b808121..894a2636 100644 --- a/src/index.ts +++ b/src/index.ts @@ -54,7 +54,7 @@ function initialSetup() { const inputs: PluginInputs = { reportMode: getInput("report-mode") || "check-runs", customPmdRules: getInput("custom-pmd-rules"), - severityThreshold: parseInt(getInput("severity-threshold")) || 4, + severityThreshold: parseInt(getInput("severity-threshold")) || 0, strictlyEnforcedRules: getInput("strictly-enforced-rules"), deleteResolvedComments: getInput("delete-resolved-comments") === "true", target: context?.payload?.pull_request ? "" : getInput("target"), @@ -131,7 +131,6 @@ function filterFindingsToDiffScope( console.log( "Filtering the findings to just the lines which are part of the pull request..." ); - let hasHaltingError = false; for (let finding of findings) { const filePath = finding.fileName.replace(process.cwd() + "/", ""); @@ -141,18 +140,9 @@ function filterFindingsToDiffScope( if (!isInChangedLines(violation, relevantLines) && !inputs.target) { continue; } - - const { violationType } = reporter.translateViolationToReport( - filePath, - violation, - finding.engine - ); - if (violationType === "Error") { - hasHaltingError = true; - } + reporter.translateViolationToReport(filePath, violation, finding.engine); } } - return { hasHaltingError }; } /** diff --git a/src/reporter/annoations-reporter.ts b/src/reporter/annoations-reporter.ts index b285e9f7..b8f705de 100644 --- a/src/reporter/annoations-reporter.ts +++ b/src/reporter/annoations-reporter.ts @@ -118,6 +118,5 @@ export class AnnotationsReporter extends BaseReporter { message: `${violation.category} ${violation.message}\n${violation.url}`, title: `${violation.ruleName} (sev: ${violation.severity})`, }); - return { violationType }; } } diff --git a/src/reporter/comments-reporter.ts b/src/reporter/comments-reporter.ts index 6e966242..c1e04362 100644 --- a/src/reporter/comments-reporter.ts +++ b/src/reporter/comments-reporter.ts @@ -22,6 +22,8 @@ import { } from "./reporter.types"; import { ScannerViolation } from "../sfdxCli"; +const ERROR = "Error"; + const HIDDEN_COMMENT_PREFIX = ""; export class CommentsReporter extends BaseReporter { @@ -198,6 +200,9 @@ export class CommentsReporter extends BaseReporter { violation, engine ); + if (violationType === ERROR) { + this.hasHaltingError = true; + } const commit_id = this.context.payload.pull_request ? this.context.payload.pull_request.head.sha : this.context.sha; @@ -217,7 +222,6 @@ export class CommentsReporter extends BaseReporter { commit_id ), }); - return { violationType }; } /** diff --git a/src/reporter/reporter.types.ts b/src/reporter/reporter.types.ts index 80e9bd1b..8b813b31 100644 --- a/src/reporter/reporter.types.ts +++ b/src/reporter/reporter.types.ts @@ -74,7 +74,7 @@ export interface Reporter { filePath: string, violation: ScannerViolation, engine: string - ): { violationType: string }; + ): void; } type GithubCommentSide = "RIGHT"; @@ -98,7 +98,7 @@ export abstract class BaseReporter implements Reporter { _filePath: string, _violation: ScannerViolation, _engine: string - ): { violationType: string } { + ): void { throw new Error("Method not implemented."); }