From 7579cb07ade8a79be8c9c72359505755c45399e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Levilain?= Date: Tue, 18 Jan 2022 17:01:03 +0100 Subject: [PATCH] fix: pass target file name to state to avoid hash mutation --- dist/main/index.js | 2 +- dist/post/index.js | 58 +++++++++++++++++++++------------------------- src/inputs.ts | 6 ++++- src/main.ts | 35 ++++++++++++++++------------ src/post.ts | 14 ++++------- src/state.ts | 11 ++++++++- 6 files changed, 66 insertions(+), 60 deletions(-) diff --git a/dist/main/index.js b/dist/main/index.js index b726bc9..79a7f1e 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={6180:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getInputs=void 0;const o=a(i(2186));function getInputs(){return{bucket:o.getInput("bucket",{required:true}),path:o.getInput("path",{required:true}),key:o.getInput("key",{required:true}),restoreKeys:o.getInput("restore-keys").split(",").filter((e=>e))}}r.getInputs=getInputs},3109:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});const c=a(i(2186));const l=a(i(5438));const p=i(8174);const d=i(8065);const h=i(6180);const g=i(9249);const v=i(8429);function getBestMatch(e,r,i){return o(this,void 0,void 0,(function*(){const n=`${l.context.repo.owner}/${l.context.repo.repo}`;const s=e.file(`${n}/${r}.tar`);const[a]=yield s.exists();c.debug(s.name);if(a){console.log(`🙌 Found exact match from cache for key '${r}'.`);return[s,"exact"]}else{console.log(`🔸 No exact match found for key '${r}'.`)}const o=yield e.getFiles({prefix:`${n}/${i[i.length-1]}`}).then((([e])=>e.sort(((e,r)=>new Date(r.metadata.updated).getTime()-new Date(e.metadata.updated).getTime()))));if(c.isDebug()){c.debug(JSON.stringify(o.map((e=>({name:e.name,metadata:e.metadata})))))}for(const e of i){const r=o.find((r=>r.name.startsWith(`${n}/${e}`)));if(r){console.log(`🤝 Found match from cache for restore key '${e}'.`);return[r,"partial"]}else{console.log(`🔸 No cache candidate found for restore key '${e}'.`)}}return[null,"none"]}))}function main(){var e,r;return o(this,void 0,void 0,(function*(){const i=(0,h.getInputs)();const n=(new p.Storage).bucket(i.bucket);const[s,a]=yield c.group("🔍 Searching the best cache archive available",(()=>getBestMatch(n,i.key,i.restoreKeys))).catch((e=>{c.setFailed(e);throw e}));c.debug(a);if(!s){(0,g.saveState)({cacheHitKind:"none"});c.setOutput("cache-hit","false");console.log("😢 No cache candidate found.");return}c.debug(s.name);const l=yield s.getMetadata().then((([e])=>e));c.debug(JSON.stringify(l));const y=(e=l===null||l===void 0?void 0:l.metadata)===null||e===void 0?void 0:e["Cache-Action-Compression-Method"];c.debug(y);if(!l||!y){(0,g.saveState)({cacheHitKind:"none"});c.setOutput("cache-hit","false");console.log("😢 No cache candidate found (missing metadata).");return}const b=(r=process.env.GITHUB_WORKSPACE)!==null&&r!==void 0?r:process.cwd();return(0,d.withFile)((e=>o(this,void 0,void 0,(function*(){yield c.group("🌐 Downloading cache archive from bucket",(()=>o(this,void 0,void 0,(function*(){console.log(`🔹 Downloading file '${s.name}'...`);return s.download({destination:e.path})}))));yield c.group("🗜️ Extracting cache archive",(()=>(0,v.extractTar)(e.path,y,b)));const r={cacheHitKind:a};c.debug(y);(0,g.saveState)(r);c.setOutput("cache-hit","true");console.log("✅ Successfully restored cache.")}))))}))}void main()},9249:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getState=r.saveState=void 0;const o=a(i(2186));function saveState(e){o.saveState("cache-hit-kind",e.cacheHitKind)}r.saveState=saveState;function getState(){return{cacheHitKind:o.getState("cache-hit-kind")}}r.getState=getState},8429:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.extractTar=r.createTar=r.CompressionMethod=void 0;const c=a(i(1514));const l=a(i(1383));var p;(function(e){e["GZIP"]="gzip";e["ZSTD_WITHOUT_LONG"]="zstd (without long)";e["ZSTD"]="zstd"})(p=r.CompressionMethod||(r.CompressionMethod={}));function getTarCompressionMethod(){return o(this,void 0,void 0,(function*(){if(process.platform==="win32"){return p.GZIP}const[e,r]=yield c.getExecOutput("zstd",["--version"],{ignoreReturnCode:true,silent:true}).then((e=>e.stdout.trim())).then((e=>[e,l.clean(e)]));if(!(e===null||e===void 0?void 0:e.toLowerCase().includes("zstd command line interface"))){return p.GZIP}else if(!r||l.lt(r,"v1.3.2")){return p.ZSTD_WITHOUT_LONG}else{return p.ZSTD}}))}function createTar(e,r,i){return o(this,void 0,void 0,(function*(){const n=yield getTarCompressionMethod();console.log(`🔹 Using '${n}' compression method.`);const s=n===p.GZIP?["-z"]:n===p.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -T0 --long=30"]:["--use-compress-program","zstd -T0"];yield c.exec("tar",["-c",...s,"--posix","-P","-f",e,"-C",i,...r]);return n}))}r.createTar=createTar;function extractTar(e,r,i){return o(this,void 0,void 0,(function*(){console.log(`🔹 Detected '${r}' compression method from object metadata.`);const n=r===p.GZIP?["-z"]:r===p.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -d --long=30"]:["--use-compress-program","zstd -d"];yield c.exec("tar",["-x",...n,"-P","-f",e,"-C",i])}))}r.extractTar=extractTar},7351:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issue=r.issueCommand=void 0;const o=a(i(2037));const c=i(5278);function issueCommand(e,r,i){const n=new Command(e,r,i);process.stdout.write(n.toString()+o.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const l="::";class Command{constructor(e,r,i){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=i}toString(){let e=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const n=this.properties[i];if(n){if(r){r=false}else{e+=","}e+=`${i}=${escapeProperty(n)}`}}}}e+=`${l}${escapeData(this.message)}`;return e}}function escapeData(e){return c.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return c.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getIDToken=r.getState=r.saveState=r.group=r.endGroup=r.startGroup=r.info=r.notice=r.warning=r.error=r.debug=r.isDebug=r.setFailed=r.setCommandEcho=r.setOutput=r.getBooleanInput=r.getMultilineInput=r.getInput=r.addPath=r.setSecret=r.exportVariable=r.ExitCode=void 0;const c=i(7351);const l=i(717);const p=i(5278);const d=a(i(2037));const h=a(i(1017));const g=i(8041);var v;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(v=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const i=p.toCommandValue(r);process.env[e]=i;const n=process.env["GITHUB_ENV"]||"";if(n){const r="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${r}${d.EOL}${i}${d.EOL}${r}`;l.issueCommand("ENV",n)}else{c.issueCommand("set-env",{name:e},i)}}r.exportVariable=exportVariable;function setSecret(e){c.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){l.issueCommand("PATH",e)}else{c.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${h.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const i=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!i){throw new Error(`Input required and not supplied: ${e}`)}if(r&&r.trimWhitespace===false){return i}return i.trim()}r.getInput=getInput;function getMultilineInput(e,r){const i=getInput(e,r).split("\n").filter((e=>e!==""));return i}r.getMultilineInput=getMultilineInput;function getBooleanInput(e,r){const i=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,r);if(i.includes(s))return true;if(n.includes(s))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}r.getBooleanInput=getBooleanInput;function setOutput(e,r){process.stdout.write(d.EOL);c.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setCommandEcho(e){c.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=v.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){c.issueCommand("debug",{},e)}r.debug=debug;function error(e,r={}){c.issueCommand("error",p.toCommandProperties(r),e instanceof Error?e.toString():e)}r.error=error;function warning(e,r={}){c.issueCommand("warning",p.toCommandProperties(r),e instanceof Error?e.toString():e)}r.warning=warning;function notice(e,r={}){c.issueCommand("notice",p.toCommandProperties(r),e instanceof Error?e.toString():e)}r.notice=notice;function info(e){process.stdout.write(e+d.EOL)}r.info=info;function startGroup(e){c.issue("group",e)}r.startGroup=startGroup;function endGroup(){c.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return o(this,void 0,void 0,(function*(){startGroup(e);let i;try{i=yield r()}finally{endGroup()}return i}))}r.group=group;function saveState(e,r){c.issueCommand("save-state",{name:e},r)}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield g.OidcClient.getIDToken(e)}))}r.getIDToken=getIDToken},717:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issueCommand=void 0;const o=a(i(7147));const c=a(i(2037));const l=i(5278);function issueCommand(e,r){const i=process.env[`GITHUB_${e}`];if(!i){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}o.appendFileSync(i,`${l.toCommandValue(r)}${c.EOL}`,{encoding:"utf8"})}r.issueCommand=issueCommand},8041:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.OidcClient=void 0;const s=i(9925);const a=i(3702);const o=i(2186);class OidcClient{static createHttpClient(e=true,r=10){const i={allowRetries:e,maxRetries:r};return new s.HttpClient("actions/oidc-client",[new a.BearerCredentialHandler(OidcClient.getRequestToken())],i)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var r;return n(this,void 0,void 0,(function*(){const i=OidcClient.createHttpClient();const n=yield i.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const s=(r=n.result)===null||r===void 0?void 0:r.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let r=OidcClient.getIDTokenUrl();if(e){const i=encodeURIComponent(e);r=`${r}&audience=${i}`}o.debug(`ID token url is ${r}`);const i=yield OidcClient.getCall(r);o.setSecret(i);return i}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}r.OidcClient=OidcClient},5278:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.toCommandProperties=r.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}r.toCommandProperties=toCommandProperties},1514:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getExecOutput=r.exec=void 0;const c=i(1576);const l=a(i(8159));function exec(e,r,i){return o(this,void 0,void 0,(function*(){const n=l.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const s=n[0];r=n.slice(1).concat(r||[]);const a=new l.ToolRunner(s,r,i);return a.exec()}))}r.exec=exec;function getExecOutput(e,r,i){var n,s;return o(this,void 0,void 0,(function*(){let a="";let o="";const l=new c.StringDecoder("utf8");const p=new c.StringDecoder("utf8");const d=(n=i===null||i===void 0?void 0:i.listeners)===null||n===void 0?void 0:n.stdout;const h=(s=i===null||i===void 0?void 0:i.listeners)===null||s===void 0?void 0:s.stderr;const stdErrListener=e=>{o+=p.write(e);if(h){h(e)}};const stdOutListener=e=>{a+=l.write(e);if(d){d(e)}};const g=Object.assign(Object.assign({},i===null||i===void 0?void 0:i.listeners),{stdout:stdOutListener,stderr:stdErrListener});const v=yield exec(e,r,Object.assign(Object.assign({},i),{listeners:g}));a+=l.end();o+=p.end();return{exitCode:v,stdout:a,stderr:o}}))}r.getExecOutput=getExecOutput},8159:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.argStringToArray=r.ToolRunner=void 0;const c=a(i(2037));const l=a(i(2361));const p=a(i(2081));const d=a(i(1017));const h=a(i(7436));const g=a(i(1962));const v=i(9512);const y=process.platform==="win32";class ToolRunner extends l.EventEmitter{constructor(e,r,i){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=r||[];this.options=i||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,r){const i=this._getSpawnFileName();const n=this._getSpawnArgs(e);let s=r?"":"[command]";if(y){if(this._isCmdFile()){s+=i;for(const e of n){s+=` ${e}`}}else if(e.windowsVerbatimArguments){s+=`"${i}"`;for(const e of n){s+=` ${e}`}}else{s+=this._windowsQuoteCmdArg(i);for(const e of n){s+=` ${this._windowsQuoteCmdArg(e)}`}}}else{s+=i;for(const e of n){s+=` ${e}`}}return s}_processLineBuffer(e,r,i){try{let n=r+e.toString();let s=n.indexOf(c.EOL);while(s>-1){const e=n.substring(0,s);i(e);n=n.substring(s+c.EOL.length);s=n.indexOf(c.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(y){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(y){if(this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const i of this.args){r+=" ";r+=e.windowsVerbatimArguments?i:this._windowsQuoteCmdArg(i)}r+='"';return[r]}}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const r=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let i=false;for(const n of e){if(r.some((e=>e===n))){i=true;break}}if(!i){return e}let n='"';let s=true;for(let r=e.length;r>0;r--){n+=e[r-1];if(s&&e[r-1]==="\\"){n+="\\"}else if(e[r-1]==='"'){s=true;n+='"'}else{s=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let r='"';let i=true;for(let n=e.length;n>0;n--){r+=e[n-1];if(i&&e[n-1]==="\\"){r+="\\"}else if(e[n-1]==='"'){i=true;r+="\\"}else{i=false}}r+='"';return r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};r.outStream=e.outStream||process.stdout;r.errStream=e.errStream||process.stderr;return r}_getSpawnOptions(e,r){e=e||{};const i={};i.cwd=e.cwd;i.env=e.env;i["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){i.argv0=`"${r}"`}return i}exec(){return o(this,void 0,void 0,(function*(){if(!g.isRooted(this.toolPath)&&(this.toolPath.includes("/")||y&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield h.which(this.toolPath,true);return new Promise(((e,r)=>o(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const i=this._cloneExecOptions(this.options);if(!i.silent&&i.outStream){i.outStream.write(this._getCommandString(i)+c.EOL)}const n=new ExecState(i,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield g.exists(this.options.cwd))){return r(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const s=this._getSpawnFileName();const a=p.spawn(s,this._getSpawnArgs(i),this._getSpawnOptions(this.options,s));let o="";if(a.stdout){a.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!i.silent&&i.outStream){i.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let l="";if(a.stderr){a.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!i.silent&&i.errStream&&i.outStream){const r=i.failOnStdErr?i.errStream:i.outStream;r.write(e)}l=this._processLineBuffer(e,l,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}a.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));a.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));a.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((i,n)=>{if(o.length>0){this.emit("stdline",o)}if(l.length>0){this.emit("errline",l)}a.removeAllListeners();if(i){r(i)}else{e(n)}}));if(this.options.input){if(!a.stdin){throw new Error("child process missing stdin")}a.stdin.end(this.options.input)}}))))}))}}r.ToolRunner=ToolRunner;function argStringToArray(e){const r=[];let i=false;let n=false;let s="";function append(e){if(n&&e!=='"'){s+="\\"}s+=e;n=false}for(let a=0;a0){r.push(s);s=""}continue}append(o)}if(s.length>0){r.push(s.trim())}return r}r.argStringToArray=argStringToArray;class ExecState extends l.EventEmitter{constructor(e,r){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!r){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=r;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=v.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}},4087:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Context=void 0;const n=i(7147);const s=i(2037);class Context{constructor(){var e,r,i;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(n.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(n.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.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=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:`https://github.com`;this.graphqlUrl=(i=process.env.GITHUB_GRAPHQL_URL)!==null&&i!==void 0?i:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}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'")}}r.Context=Context},5438:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getOctokit=r.context=void 0;const o=a(i(4087));const c=i(3030);r.context=new o.Context;function getOctokit(e,r){return new c.GitHub(c.getOctokitOptions(e,r))}r.getOctokit=getOctokit},7914:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getApiBaseUrl=r.getProxyAgent=r.getAuthString=void 0;const o=a(i(9925));function getAuthString(e,r){if(!e&&!r.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&r.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof r.auth==="string"?r.auth:`token ${e}`}r.getAuthString=getAuthString;function getProxyAgent(e){const r=new o.HttpClient;return r.getAgent(e)}r.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}r.getApiBaseUrl=getApiBaseUrl},3030:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getOctokitOptions=r.GitHub=r.context=void 0;const o=a(i(4087));const c=a(i(7914));const l=i(6762);const p=i(3044);const d=i(4193);r.context=new o.Context;const h=c.getApiBaseUrl();const g={baseUrl:h,request:{agent:c.getProxyAgent(h)}};r.GitHub=l.Octokit.plugin(p.restEndpointMethods,d.paginateRest).defaults(g);function getOctokitOptions(e,r){const i=Object.assign({},r||{});const n=c.getAuthString(e,i);if(n){i.auth=n}return i}r.getOctokitOptions=getOctokitOptions},3702:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,r){this.username=e;this.password=r}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,r,i){return null}}r.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,r,i){return null}}r.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,r,i){return null}}r.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const n=i(3685);const s=i(5687);const a=i(6443);let o;var c;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(c=r.HttpCodes||(r.HttpCodes={}));var l;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(l=r.Headers||(r.Headers={}));var p;(function(e){e["ApplicationJson"]="application/json"})(p=r.MediaTypes||(r.MediaTypes={}));function getProxyUrl(e){let r=a.getProxyUrl(new URL(e));return r?r.href:""}r.getProxyUrl=getProxyUrl;const d=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const h=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const v=10;const y=5;class HttpClientError extends Error{constructor(e,r){super(e);this.name="HttpClientError";this.statusCode=r;Object.setPrototypeOf(this,HttpClientError.prototype)}}r.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,r)=>{let i=Buffer.alloc(0);this.message.on("data",(e=>{i=Buffer.concat([i,e])}));this.message.on("end",(()=>{e(i.toString())}))}))}}r.HttpClientResponse=HttpClientResponse;function isHttps(e){let r=new URL(e);return r.protocol==="https:"}r.isHttps=isHttps;class HttpClient{constructor(e,r,i){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=r||[];this.requestOptions=i;if(i){if(i.ignoreSslError!=null){this._ignoreSslError=i.ignoreSslError}this._socketTimeout=i.socketTimeout;if(i.allowRedirects!=null){this._allowRedirects=i.allowRedirects}if(i.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=i.allowRedirectDowngrade}if(i.maxRedirects!=null){this._maxRedirects=Math.max(i.maxRedirects,0)}if(i.keepAlive!=null){this._keepAlive=i.keepAlive}if(i.allowRetries!=null){this._allowRetries=i.allowRetries}if(i.maxRetries!=null){this._maxRetries=i.maxRetries}}}options(e,r){return this.request("OPTIONS",e,null,r||{})}get(e,r){return this.request("GET",e,null,r||{})}del(e,r){return this.request("DELETE",e,null,r||{})}post(e,r,i){return this.request("POST",e,r,i||{})}patch(e,r,i){return this.request("PATCH",e,r,i||{})}put(e,r,i){return this.request("PUT",e,r,i||{})}head(e,r){return this.request("HEAD",e,null,r||{})}sendStream(e,r,i,n){return this.request(e,r,i,n)}async getJson(e,r={}){r[l.Accept]=this._getExistingOrDefaultHeader(r,l.Accept,p.ApplicationJson);let i=await this.get(e,r);return this._processResponse(i,this.requestOptions)}async postJson(e,r,i={}){let n=JSON.stringify(r,null,2);i[l.Accept]=this._getExistingOrDefaultHeader(i,l.Accept,p.ApplicationJson);i[l.ContentType]=this._getExistingOrDefaultHeader(i,l.ContentType,p.ApplicationJson);let s=await this.post(e,n,i);return this._processResponse(s,this.requestOptions)}async putJson(e,r,i={}){let n=JSON.stringify(r,null,2);i[l.Accept]=this._getExistingOrDefaultHeader(i,l.Accept,p.ApplicationJson);i[l.ContentType]=this._getExistingOrDefaultHeader(i,l.ContentType,p.ApplicationJson);let s=await this.put(e,n,i);return this._processResponse(s,this.requestOptions)}async patchJson(e,r,i={}){let n=JSON.stringify(r,null,2);i[l.Accept]=this._getExistingOrDefaultHeader(i,l.Accept,p.ApplicationJson);i[l.ContentType]=this._getExistingOrDefaultHeader(i,l.ContentType,p.ApplicationJson);let s=await this.patch(e,n,i);return this._processResponse(s,this.requestOptions)}async request(e,r,i,n){if(this._disposed){throw new Error("Client has already been disposed.")}let s=new URL(r);let a=this._prepareRequest(e,s,n);let o=this._allowRetries&&g.indexOf(e)!=-1?this._maxRetries+1:1;let l=0;let p;while(l0){const o=p.message.headers["location"];if(!o){break}let c=new URL(o);if(s.protocol=="https:"&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await p.readBody();if(c.hostname!==s.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}a=this._prepareRequest(e,c,n);p=await this.requestRaw(a,i);r--}if(h.indexOf(p.message.statusCode)==-1){return p}l+=1;if(l{let callbackForResult=function(e,r){if(e){n(e)}i(r)};this.requestRawWithCallback(e,r,callbackForResult)}))}requestRawWithCallback(e,r,i){let n;if(typeof r==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8")}let s=false;let handleResult=(e,r)=>{if(!s){s=true;i(e,r)}};let a=e.httpModule.request(e.options,(e=>{let r=new HttpClientResponse(e);handleResult(null,r)}));a.on("socket",(e=>{n=e}));a.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));a.on("error",(function(e){handleResult(e,null)}));if(r&&typeof r==="string"){a.write(r,"utf8")}if(r&&typeof r!=="string"){r.on("close",(function(){a.end()}));r.pipe(a)}else{a.end()}}getAgent(e){let r=new URL(e);return this._getAgent(r)}_prepareRequest(e,r,i){const a={};a.parsedUrl=r;const o=a.parsedUrl.protocol==="https:";a.httpModule=o?s:n;const c=o?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):c;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=e;a.options.headers=this._mergeHeaders(i);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(a.options)}))}return a}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((r,i)=>(r[i.toLowerCase()]=e[i],r)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,r,i){const lowercaseKeys=e=>Object.keys(e).reduce(((r,i)=>(r[i.toLowerCase()]=e[i],r)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[r]}return e[r]||n||i}_getAgent(e){let r;let c=a.getProxyUrl(e);let l=c&&c.hostname;if(this._keepAlive&&l){r=this._proxyAgent}if(this._keepAlive&&!l){r=this._agent}if(!!r){return r}const p=e.protocol==="https:";let d=100;if(!!this.requestOptions){d=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(l){if(!o){o=i(4294)}const e={maxSockets:d,keepAlive:this._keepAlive,proxy:{...(c.username||c.password)&&{proxyAuth:`${c.username}:${c.password}`},host:c.hostname,port:c.port}};let n;const s=c.protocol==="https:";if(p){n=s?o.httpsOverHttps:o.httpsOverHttp}else{n=s?o.httpOverHttps:o.httpOverHttp}r=n(e);this._proxyAgent=r}if(this._keepAlive&&!r){const e={keepAlive:this._keepAlive,maxSockets:d};r=p?new s.Agent(e):new n.Agent(e);this._agent=r}if(!r){r=p?s.globalAgent:n.globalAgent}if(p&&this._ignoreSslError){r.options=Object.assign(r.options||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){e=Math.min(v,e);const r=y*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),r)))}static dateTimeDeserializer(e,r){if(typeof r==="string"){let e=new Date(r);if(!isNaN(e.valueOf())){return e}}return r}async _processResponse(e,r){return new Promise((async(i,n)=>{const s=e.message.statusCode;const a={statusCode:s,result:null,headers:{}};if(s==c.NotFound){i(a)}let o;let l;try{l=await e.readBody();if(l&&l.length>0){if(r&&r.deserializeDates){o=JSON.parse(l,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(l)}a.result=o}a.headers=e.message.headers}catch(e){}if(s>299){let e;if(o&&o.message){e=o.message}else if(l&&l.length>0){e=l}else{e="Failed request: ("+s+")"}let r=new HttpClientError(e,s);r.result=a.result;n(r)}else{i(a)}}))}}r.HttpClient=HttpClient},6443:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function getProxyUrl(e){let r=e.protocol==="https:";let i;if(checkBypass(e)){return i}let n;if(r){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){i=new URL(n)}return i}r.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let i;if(e.port){i=Number(e.port)}else if(e.protocol==="http:"){i=80}else if(e.protocol==="https:"){i=443}let n=[e.hostname.toUpperCase()];if(typeof i==="number"){n.push(`${n[0]}:${i}`)}for(let e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((r=>r===e))){return true}}return false}r.checkBypass=checkBypass},1962:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))r[i]=e[i];r["default"]=e;return r};var a;Object.defineProperty(r,"__esModule",{value:true});const o=i(9491);const c=s(i(7147));const l=s(i(1017));a=c.promises,r.chmod=a.chmod,r.copyFile=a.copyFile,r.lstat=a.lstat,r.mkdir=a.mkdir,r.readdir=a.readdir,r.readlink=a.readlink,r.rename=a.rename,r.rmdir=a.rmdir,r.stat=a.stat,r.symlink=a.symlink,r.unlink=a.unlink;r.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,(function*(){try{yield r.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}r.exists=exists;function isDirectory(e,i=false){return n(this,void 0,void 0,(function*(){const n=i?yield r.stat(e):yield r.lstat(e);return n.isDirectory()}))}r.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(r.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}r.isRooted=isRooted;function mkdirP(e,i=1e3,s=1){return n(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");e=l.resolve(e);if(s>=i)return r.mkdir(e);try{yield r.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(l.dirname(e),i,s+1);yield r.mkdir(e);return}default:{let i;try{i=yield r.stat(e)}catch(e){throw n}if(!i.isDirectory())throw n}}}}))}r.mkdirP=mkdirP;function tryGetExecutablePath(e,i){return n(this,void 0,void 0,(function*(){let n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){const r=l.extname(e).toUpperCase();if(i.some((e=>e.toUpperCase()===r))){return e}}else{if(isUnixExecutable(n)){return e}}}const s=e;for(const a of i){e=s+a;n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){try{const i=l.dirname(e);const n=l.basename(e).toUpperCase();for(const s of yield r.readdir(i)){if(n===s.toUpperCase()){e=l.join(i,s);break}}}catch(r){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${r}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}r.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(r.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},7436:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))r[i]=e[i];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const a=s(i(2081));const o=s(i(1017));const c=i(3837);const l=s(i(1962));const p=c.promisify(a.exec);function cp(e,r,i={}){return n(this,void 0,void 0,(function*(){const{force:n,recursive:s}=readCopyOptions(i);const a=(yield l.exists(r))?yield l.stat(r):null;if(a&&a.isFile()&&!n){return}const c=a&&a.isDirectory()?o.join(r,o.basename(e)):r;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield l.stat(e);if(p.isDirectory()){if(!s){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(o.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}}))}r.cp=cp;function mv(e,r,i={}){return n(this,void 0,void 0,(function*(){if(yield l.exists(r)){let n=true;if(yield l.isDirectory(r)){r=o.join(r,o.basename(e));n=yield l.exists(r)}if(n){if(i.force==null||i.force){yield rmRF(r)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(r));yield l.rename(e,r)}))}r.mv=mv;function rmRF(e){return n(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){try{if(yield l.isDirectory(e,true)){yield p(`rd /s /q "${e}"`)}else{yield p(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield l.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let r=false;try{r=yield l.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(r){yield p(`rm -rf "${e}"`)}else{yield l.unlink(e)}}}))}r.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,(function*(){yield l.mkdirP(e)}))}r.mkdirP=mkdirP;function which(e,r){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(r){const r=yield which(e,false);if(!r){if(l.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return r}const i=yield findInPath(e);if(i&&i.length>0){return i[0]}return""}))}r.which=which;function findInPath(e){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const r=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(o.delimiter)){if(e){r.push(e)}}}if(l.isRooted(e)){const i=yield l.tryGetExecutablePath(e,r);if(i){return[i]}return[]}if(e.includes(o.sep)){return[]}const i=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){i.push(e)}}}const n=[];for(const s of i){const i=yield l.tryGetExecutablePath(o.join(s,e),r);if(i){n.push(i)}}return n}))}r.findInPath=findInPath;function readCopyOptions(e){const r=e.force==null?true:e.force;const i=Boolean(e.recursive);return{force:r,recursive:i}}function cpDirRecursive(e,r,i,s){return n(this,void 0,void 0,(function*(){if(i>=255)return;i++;yield mkdirP(r);const n=yield l.readdir(e);for(const a of n){const n=`${e}/${a}`;const o=`${r}/${a}`;const c=yield l.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,o,i,s)}else{yield copyFile(n,o,s)}}yield l.chmod(r,(yield l.stat(e)).mode)}))}function copyFile(e,r,i){return n(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(r);yield l.unlink(r)}catch(e){if(e.code==="EPERM"){yield l.chmod(r,"0666");yield l.unlink(r)}}const i=yield l.readlink(e);yield l.symlink(i,r,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(r))||i){yield l.copyFile(e,r)}}))}},4777:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=i(7378);r.Operation=n.Operation;var s=i(1682);r.Service=s.Service;var a=i(5674);r.ServiceObject=a.ServiceObject;var o=i(2221);r.ApiError=o.ApiError;r.util=o.util},7378:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true}); +(()=>{var __webpack_modules__={6180:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getInputs=void 0;const o=a(i(2186));function getInputs(){const e={bucket:o.getInput("bucket",{required:true}),path:o.getInput("path",{required:true}),key:o.getInput("key",{required:true}),restoreKeys:o.getInput("restore-keys").split(",").filter((e=>e))};o.debug(`Loaded inputs: ${JSON.stringify(e)}.`);return e}r.getInputs=getInputs},3109:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});const c=a(i(2186));const l=a(i(5438));const p=i(8174);const d=i(8065);const h=i(6180);const g=i(9249);const v=i(8429);function getBestMatch(e,r,i){return o(this,void 0,void 0,(function*(){const n=`${l.context.repo.owner}/${l.context.repo.repo}`;const s=e.file(`${n}/${r}.tar`);const[a]=yield s.exists();c.debug(`Exact file name: ${s.name}.`);if(a){console.log(`🙌 Found exact match from cache for key '${r}'.`);return[s,"exact"]}else{console.log(`🔸 No exact match found for key '${r}'.`)}const o=yield e.getFiles({prefix:`${n}/${i[i.length-1]}`}).then((([e])=>e.sort(((e,r)=>new Date(r.metadata.updated).getTime()-new Date(e.metadata.updated).getTime()))));if(c.isDebug()){c.debug(`Candidates: ${JSON.stringify(o.map((e=>({name:e.name,metadata:{updated:e.metadata.updated}}))))}.`)}for(const e of i){const r=o.find((r=>r.name.startsWith(`${n}/${e}`)));if(r){console.log(`🤝 Found match from cache for restore key '${e}'.`);return[r,"partial"]}else{console.log(`🔸 No cache candidate found for restore key '${e}'.`)}}return[null,"none"]}))}function main(){var e,r;return o(this,void 0,void 0,(function*(){const i=(0,h.getInputs)();const n=(new p.Storage).bucket(i.bucket);const s=`${l.context.repo.owner}/${l.context.repo.repo}`;const a=`${s}/${i.key}.tar`;const[y,b]=yield c.group("🔍 Searching the best cache archive available",(()=>getBestMatch(n,i.key,i.restoreKeys))).catch((e=>{c.setFailed(e);throw e}));c.debug(`Best match kind: ${b}.`);if(!y){(0,g.saveState)({cacheHitKind:"none",targetFileName:a});c.setOutput("cache-hit","false");console.log("😢 No cache candidate found.");return}c.debug(`Best match name: ${y.name}.`);const E=yield y.getMetadata().then((([e])=>e));c.debug(`Best match metadata: ${JSON.stringify(E)}.`);const x=(e=E===null||E===void 0?void 0:E.metadata)===null||e===void 0?void 0:e["Cache-Action-Compression-Method"];c.debug(`Best match compression method: ${x}.`);if(!E||!x){(0,g.saveState)({cacheHitKind:"none",targetFileName:a});c.setOutput("cache-hit","false");console.log("😢 No cache candidate found (missing metadata).");return}const w=(r=process.env.GITHUB_WORKSPACE)!==null&&r!==void 0?r:process.cwd();return(0,d.withFile)((e=>o(this,void 0,void 0,(function*(){yield c.group("🌐 Downloading cache archive from bucket",(()=>o(this,void 0,void 0,(function*(){console.log(`🔹 Downloading file '${y.name}'...`);return y.download({destination:e.path})}))));yield c.group("🗜️ Extracting cache archive",(()=>(0,v.extractTar)(e.path,x,w)));(0,g.saveState)({cacheHitKind:b,targetFileName:a});c.setOutput("cache-hit","true");console.log("✅ Successfully restored cache.")}))))}))}void main()},9249:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getState=r.saveState=void 0;const o=a(i(2186));function saveState(e){o.debug(`Saving state: ${JSON.stringify(e)}.`);o.saveState("cache-hit-kind",e.cacheHitKind);o.saveState("target-file-name",e.targetFileName)}r.saveState=saveState;function getState(){const e={cacheHitKind:o.getState("cache-hit-kind"),targetFileName:o.getState("target-file-name")};o.debug(`Loaded state: ${JSON.stringify(e)}.`);return e}r.getState=getState},8429:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.extractTar=r.createTar=r.CompressionMethod=void 0;const c=a(i(1514));const l=a(i(1383));var p;(function(e){e["GZIP"]="gzip";e["ZSTD_WITHOUT_LONG"]="zstd (without long)";e["ZSTD"]="zstd"})(p=r.CompressionMethod||(r.CompressionMethod={}));function getTarCompressionMethod(){return o(this,void 0,void 0,(function*(){if(process.platform==="win32"){return p.GZIP}const[e,r]=yield c.getExecOutput("zstd",["--version"],{ignoreReturnCode:true,silent:true}).then((e=>e.stdout.trim())).then((e=>[e,l.clean(e)]));if(!(e===null||e===void 0?void 0:e.toLowerCase().includes("zstd command line interface"))){return p.GZIP}else if(!r||l.lt(r,"v1.3.2")){return p.ZSTD_WITHOUT_LONG}else{return p.ZSTD}}))}function createTar(e,r,i){return o(this,void 0,void 0,(function*(){const n=yield getTarCompressionMethod();console.log(`🔹 Using '${n}' compression method.`);const s=n===p.GZIP?["-z"]:n===p.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -T0 --long=30"]:["--use-compress-program","zstd -T0"];yield c.exec("tar",["-c",...s,"--posix","-P","-f",e,"-C",i,...r]);return n}))}r.createTar=createTar;function extractTar(e,r,i){return o(this,void 0,void 0,(function*(){console.log(`🔹 Detected '${r}' compression method from object metadata.`);const n=r===p.GZIP?["-z"]:r===p.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -d --long=30"]:["--use-compress-program","zstd -d"];yield c.exec("tar",["-x",...n,"-P","-f",e,"-C",i])}))}r.extractTar=extractTar},7351:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issue=r.issueCommand=void 0;const o=a(i(2037));const c=i(5278);function issueCommand(e,r,i){const n=new Command(e,r,i);process.stdout.write(n.toString()+o.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const l="::";class Command{constructor(e,r,i){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=i}toString(){let e=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const n=this.properties[i];if(n){if(r){r=false}else{e+=","}e+=`${i}=${escapeProperty(n)}`}}}}e+=`${l}${escapeData(this.message)}`;return e}}function escapeData(e){return c.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return c.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getIDToken=r.getState=r.saveState=r.group=r.endGroup=r.startGroup=r.info=r.notice=r.warning=r.error=r.debug=r.isDebug=r.setFailed=r.setCommandEcho=r.setOutput=r.getBooleanInput=r.getMultilineInput=r.getInput=r.addPath=r.setSecret=r.exportVariable=r.ExitCode=void 0;const c=i(7351);const l=i(717);const p=i(5278);const d=a(i(2037));const h=a(i(1017));const g=i(8041);var v;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(v=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const i=p.toCommandValue(r);process.env[e]=i;const n=process.env["GITHUB_ENV"]||"";if(n){const r="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${r}${d.EOL}${i}${d.EOL}${r}`;l.issueCommand("ENV",n)}else{c.issueCommand("set-env",{name:e},i)}}r.exportVariable=exportVariable;function setSecret(e){c.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){l.issueCommand("PATH",e)}else{c.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${h.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const i=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!i){throw new Error(`Input required and not supplied: ${e}`)}if(r&&r.trimWhitespace===false){return i}return i.trim()}r.getInput=getInput;function getMultilineInput(e,r){const i=getInput(e,r).split("\n").filter((e=>e!==""));return i}r.getMultilineInput=getMultilineInput;function getBooleanInput(e,r){const i=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,r);if(i.includes(s))return true;if(n.includes(s))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}r.getBooleanInput=getBooleanInput;function setOutput(e,r){process.stdout.write(d.EOL);c.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setCommandEcho(e){c.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=v.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){c.issueCommand("debug",{},e)}r.debug=debug;function error(e,r={}){c.issueCommand("error",p.toCommandProperties(r),e instanceof Error?e.toString():e)}r.error=error;function warning(e,r={}){c.issueCommand("warning",p.toCommandProperties(r),e instanceof Error?e.toString():e)}r.warning=warning;function notice(e,r={}){c.issueCommand("notice",p.toCommandProperties(r),e instanceof Error?e.toString():e)}r.notice=notice;function info(e){process.stdout.write(e+d.EOL)}r.info=info;function startGroup(e){c.issue("group",e)}r.startGroup=startGroup;function endGroup(){c.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return o(this,void 0,void 0,(function*(){startGroup(e);let i;try{i=yield r()}finally{endGroup()}return i}))}r.group=group;function saveState(e,r){c.issueCommand("save-state",{name:e},r)}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield g.OidcClient.getIDToken(e)}))}r.getIDToken=getIDToken},717:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issueCommand=void 0;const o=a(i(7147));const c=a(i(2037));const l=i(5278);function issueCommand(e,r){const i=process.env[`GITHUB_${e}`];if(!i){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}o.appendFileSync(i,`${l.toCommandValue(r)}${c.EOL}`,{encoding:"utf8"})}r.issueCommand=issueCommand},8041:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.OidcClient=void 0;const s=i(9925);const a=i(3702);const o=i(2186);class OidcClient{static createHttpClient(e=true,r=10){const i={allowRetries:e,maxRetries:r};return new s.HttpClient("actions/oidc-client",[new a.BearerCredentialHandler(OidcClient.getRequestToken())],i)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var r;return n(this,void 0,void 0,(function*(){const i=OidcClient.createHttpClient();const n=yield i.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const s=(r=n.result)===null||r===void 0?void 0:r.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let r=OidcClient.getIDTokenUrl();if(e){const i=encodeURIComponent(e);r=`${r}&audience=${i}`}o.debug(`ID token url is ${r}`);const i=yield OidcClient.getCall(r);o.setSecret(i);return i}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}r.OidcClient=OidcClient},5278:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.toCommandProperties=r.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}r.toCommandProperties=toCommandProperties},1514:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getExecOutput=r.exec=void 0;const c=i(1576);const l=a(i(8159));function exec(e,r,i){return o(this,void 0,void 0,(function*(){const n=l.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const s=n[0];r=n.slice(1).concat(r||[]);const a=new l.ToolRunner(s,r,i);return a.exec()}))}r.exec=exec;function getExecOutput(e,r,i){var n,s;return o(this,void 0,void 0,(function*(){let a="";let o="";const l=new c.StringDecoder("utf8");const p=new c.StringDecoder("utf8");const d=(n=i===null||i===void 0?void 0:i.listeners)===null||n===void 0?void 0:n.stdout;const h=(s=i===null||i===void 0?void 0:i.listeners)===null||s===void 0?void 0:s.stderr;const stdErrListener=e=>{o+=p.write(e);if(h){h(e)}};const stdOutListener=e=>{a+=l.write(e);if(d){d(e)}};const g=Object.assign(Object.assign({},i===null||i===void 0?void 0:i.listeners),{stdout:stdOutListener,stderr:stdErrListener});const v=yield exec(e,r,Object.assign(Object.assign({},i),{listeners:g}));a+=l.end();o+=p.end();return{exitCode:v,stdout:a,stderr:o}}))}r.getExecOutput=getExecOutput},8159:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.argStringToArray=r.ToolRunner=void 0;const c=a(i(2037));const l=a(i(2361));const p=a(i(2081));const d=a(i(1017));const h=a(i(7436));const g=a(i(1962));const v=i(9512);const y=process.platform==="win32";class ToolRunner extends l.EventEmitter{constructor(e,r,i){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=r||[];this.options=i||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,r){const i=this._getSpawnFileName();const n=this._getSpawnArgs(e);let s=r?"":"[command]";if(y){if(this._isCmdFile()){s+=i;for(const e of n){s+=` ${e}`}}else if(e.windowsVerbatimArguments){s+=`"${i}"`;for(const e of n){s+=` ${e}`}}else{s+=this._windowsQuoteCmdArg(i);for(const e of n){s+=` ${this._windowsQuoteCmdArg(e)}`}}}else{s+=i;for(const e of n){s+=` ${e}`}}return s}_processLineBuffer(e,r,i){try{let n=r+e.toString();let s=n.indexOf(c.EOL);while(s>-1){const e=n.substring(0,s);i(e);n=n.substring(s+c.EOL.length);s=n.indexOf(c.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(y){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(y){if(this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const i of this.args){r+=" ";r+=e.windowsVerbatimArguments?i:this._windowsQuoteCmdArg(i)}r+='"';return[r]}}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const r=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let i=false;for(const n of e){if(r.some((e=>e===n))){i=true;break}}if(!i){return e}let n='"';let s=true;for(let r=e.length;r>0;r--){n+=e[r-1];if(s&&e[r-1]==="\\"){n+="\\"}else if(e[r-1]==='"'){s=true;n+='"'}else{s=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let r='"';let i=true;for(let n=e.length;n>0;n--){r+=e[n-1];if(i&&e[n-1]==="\\"){r+="\\"}else if(e[n-1]==='"'){i=true;r+="\\"}else{i=false}}r+='"';return r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};r.outStream=e.outStream||process.stdout;r.errStream=e.errStream||process.stderr;return r}_getSpawnOptions(e,r){e=e||{};const i={};i.cwd=e.cwd;i.env=e.env;i["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){i.argv0=`"${r}"`}return i}exec(){return o(this,void 0,void 0,(function*(){if(!g.isRooted(this.toolPath)&&(this.toolPath.includes("/")||y&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield h.which(this.toolPath,true);return new Promise(((e,r)=>o(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const i=this._cloneExecOptions(this.options);if(!i.silent&&i.outStream){i.outStream.write(this._getCommandString(i)+c.EOL)}const n=new ExecState(i,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield g.exists(this.options.cwd))){return r(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const s=this._getSpawnFileName();const a=p.spawn(s,this._getSpawnArgs(i),this._getSpawnOptions(this.options,s));let o="";if(a.stdout){a.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!i.silent&&i.outStream){i.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let l="";if(a.stderr){a.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!i.silent&&i.errStream&&i.outStream){const r=i.failOnStdErr?i.errStream:i.outStream;r.write(e)}l=this._processLineBuffer(e,l,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}a.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));a.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));a.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((i,n)=>{if(o.length>0){this.emit("stdline",o)}if(l.length>0){this.emit("errline",l)}a.removeAllListeners();if(i){r(i)}else{e(n)}}));if(this.options.input){if(!a.stdin){throw new Error("child process missing stdin")}a.stdin.end(this.options.input)}}))))}))}}r.ToolRunner=ToolRunner;function argStringToArray(e){const r=[];let i=false;let n=false;let s="";function append(e){if(n&&e!=='"'){s+="\\"}s+=e;n=false}for(let a=0;a0){r.push(s);s=""}continue}append(o)}if(s.length>0){r.push(s.trim())}return r}r.argStringToArray=argStringToArray;class ExecState extends l.EventEmitter{constructor(e,r){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!r){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=r;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=v.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}},4087:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Context=void 0;const n=i(7147);const s=i(2037);class Context{constructor(){var e,r,i;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(n.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(n.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.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=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:`https://github.com`;this.graphqlUrl=(i=process.env.GITHUB_GRAPHQL_URL)!==null&&i!==void 0?i:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}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'")}}r.Context=Context},5438:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getOctokit=r.context=void 0;const o=a(i(4087));const c=i(3030);r.context=new o.Context;function getOctokit(e,r){return new c.GitHub(c.getOctokitOptions(e,r))}r.getOctokit=getOctokit},7914:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getApiBaseUrl=r.getProxyAgent=r.getAuthString=void 0;const o=a(i(9925));function getAuthString(e,r){if(!e&&!r.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&r.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof r.auth==="string"?r.auth:`token ${e}`}r.getAuthString=getAuthString;function getProxyAgent(e){const r=new o.HttpClient;return r.getAgent(e)}r.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}r.getApiBaseUrl=getApiBaseUrl},3030:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getOctokitOptions=r.GitHub=r.context=void 0;const o=a(i(4087));const c=a(i(7914));const l=i(6762);const p=i(3044);const d=i(4193);r.context=new o.Context;const h=c.getApiBaseUrl();const g={baseUrl:h,request:{agent:c.getProxyAgent(h)}};r.GitHub=l.Octokit.plugin(p.restEndpointMethods,d.paginateRest).defaults(g);function getOctokitOptions(e,r){const i=Object.assign({},r||{});const n=c.getAuthString(e,i);if(n){i.auth=n}return i}r.getOctokitOptions=getOctokitOptions},3702:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,r){this.username=e;this.password=r}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,r,i){return null}}r.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,r,i){return null}}r.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,r,i){return null}}r.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const n=i(3685);const s=i(5687);const a=i(6443);let o;var c;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(c=r.HttpCodes||(r.HttpCodes={}));var l;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(l=r.Headers||(r.Headers={}));var p;(function(e){e["ApplicationJson"]="application/json"})(p=r.MediaTypes||(r.MediaTypes={}));function getProxyUrl(e){let r=a.getProxyUrl(new URL(e));return r?r.href:""}r.getProxyUrl=getProxyUrl;const d=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const h=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const v=10;const y=5;class HttpClientError extends Error{constructor(e,r){super(e);this.name="HttpClientError";this.statusCode=r;Object.setPrototypeOf(this,HttpClientError.prototype)}}r.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,r)=>{let i=Buffer.alloc(0);this.message.on("data",(e=>{i=Buffer.concat([i,e])}));this.message.on("end",(()=>{e(i.toString())}))}))}}r.HttpClientResponse=HttpClientResponse;function isHttps(e){let r=new URL(e);return r.protocol==="https:"}r.isHttps=isHttps;class HttpClient{constructor(e,r,i){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=r||[];this.requestOptions=i;if(i){if(i.ignoreSslError!=null){this._ignoreSslError=i.ignoreSslError}this._socketTimeout=i.socketTimeout;if(i.allowRedirects!=null){this._allowRedirects=i.allowRedirects}if(i.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=i.allowRedirectDowngrade}if(i.maxRedirects!=null){this._maxRedirects=Math.max(i.maxRedirects,0)}if(i.keepAlive!=null){this._keepAlive=i.keepAlive}if(i.allowRetries!=null){this._allowRetries=i.allowRetries}if(i.maxRetries!=null){this._maxRetries=i.maxRetries}}}options(e,r){return this.request("OPTIONS",e,null,r||{})}get(e,r){return this.request("GET",e,null,r||{})}del(e,r){return this.request("DELETE",e,null,r||{})}post(e,r,i){return this.request("POST",e,r,i||{})}patch(e,r,i){return this.request("PATCH",e,r,i||{})}put(e,r,i){return this.request("PUT",e,r,i||{})}head(e,r){return this.request("HEAD",e,null,r||{})}sendStream(e,r,i,n){return this.request(e,r,i,n)}async getJson(e,r={}){r[l.Accept]=this._getExistingOrDefaultHeader(r,l.Accept,p.ApplicationJson);let i=await this.get(e,r);return this._processResponse(i,this.requestOptions)}async postJson(e,r,i={}){let n=JSON.stringify(r,null,2);i[l.Accept]=this._getExistingOrDefaultHeader(i,l.Accept,p.ApplicationJson);i[l.ContentType]=this._getExistingOrDefaultHeader(i,l.ContentType,p.ApplicationJson);let s=await this.post(e,n,i);return this._processResponse(s,this.requestOptions)}async putJson(e,r,i={}){let n=JSON.stringify(r,null,2);i[l.Accept]=this._getExistingOrDefaultHeader(i,l.Accept,p.ApplicationJson);i[l.ContentType]=this._getExistingOrDefaultHeader(i,l.ContentType,p.ApplicationJson);let s=await this.put(e,n,i);return this._processResponse(s,this.requestOptions)}async patchJson(e,r,i={}){let n=JSON.stringify(r,null,2);i[l.Accept]=this._getExistingOrDefaultHeader(i,l.Accept,p.ApplicationJson);i[l.ContentType]=this._getExistingOrDefaultHeader(i,l.ContentType,p.ApplicationJson);let s=await this.patch(e,n,i);return this._processResponse(s,this.requestOptions)}async request(e,r,i,n){if(this._disposed){throw new Error("Client has already been disposed.")}let s=new URL(r);let a=this._prepareRequest(e,s,n);let o=this._allowRetries&&g.indexOf(e)!=-1?this._maxRetries+1:1;let l=0;let p;while(l0){const o=p.message.headers["location"];if(!o){break}let c=new URL(o);if(s.protocol=="https:"&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await p.readBody();if(c.hostname!==s.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}a=this._prepareRequest(e,c,n);p=await this.requestRaw(a,i);r--}if(h.indexOf(p.message.statusCode)==-1){return p}l+=1;if(l{let callbackForResult=function(e,r){if(e){n(e)}i(r)};this.requestRawWithCallback(e,r,callbackForResult)}))}requestRawWithCallback(e,r,i){let n;if(typeof r==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8")}let s=false;let handleResult=(e,r)=>{if(!s){s=true;i(e,r)}};let a=e.httpModule.request(e.options,(e=>{let r=new HttpClientResponse(e);handleResult(null,r)}));a.on("socket",(e=>{n=e}));a.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));a.on("error",(function(e){handleResult(e,null)}));if(r&&typeof r==="string"){a.write(r,"utf8")}if(r&&typeof r!=="string"){r.on("close",(function(){a.end()}));r.pipe(a)}else{a.end()}}getAgent(e){let r=new URL(e);return this._getAgent(r)}_prepareRequest(e,r,i){const a={};a.parsedUrl=r;const o=a.parsedUrl.protocol==="https:";a.httpModule=o?s:n;const c=o?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):c;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=e;a.options.headers=this._mergeHeaders(i);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(a.options)}))}return a}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((r,i)=>(r[i.toLowerCase()]=e[i],r)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,r,i){const lowercaseKeys=e=>Object.keys(e).reduce(((r,i)=>(r[i.toLowerCase()]=e[i],r)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[r]}return e[r]||n||i}_getAgent(e){let r;let c=a.getProxyUrl(e);let l=c&&c.hostname;if(this._keepAlive&&l){r=this._proxyAgent}if(this._keepAlive&&!l){r=this._agent}if(!!r){return r}const p=e.protocol==="https:";let d=100;if(!!this.requestOptions){d=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(l){if(!o){o=i(4294)}const e={maxSockets:d,keepAlive:this._keepAlive,proxy:{...(c.username||c.password)&&{proxyAuth:`${c.username}:${c.password}`},host:c.hostname,port:c.port}};let n;const s=c.protocol==="https:";if(p){n=s?o.httpsOverHttps:o.httpsOverHttp}else{n=s?o.httpOverHttps:o.httpOverHttp}r=n(e);this._proxyAgent=r}if(this._keepAlive&&!r){const e={keepAlive:this._keepAlive,maxSockets:d};r=p?new s.Agent(e):new n.Agent(e);this._agent=r}if(!r){r=p?s.globalAgent:n.globalAgent}if(p&&this._ignoreSslError){r.options=Object.assign(r.options||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){e=Math.min(v,e);const r=y*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),r)))}static dateTimeDeserializer(e,r){if(typeof r==="string"){let e=new Date(r);if(!isNaN(e.valueOf())){return e}}return r}async _processResponse(e,r){return new Promise((async(i,n)=>{const s=e.message.statusCode;const a={statusCode:s,result:null,headers:{}};if(s==c.NotFound){i(a)}let o;let l;try{l=await e.readBody();if(l&&l.length>0){if(r&&r.deserializeDates){o=JSON.parse(l,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(l)}a.result=o}a.headers=e.message.headers}catch(e){}if(s>299){let e;if(o&&o.message){e=o.message}else if(l&&l.length>0){e=l}else{e="Failed request: ("+s+")"}let r=new HttpClientError(e,s);r.result=a.result;n(r)}else{i(a)}}))}}r.HttpClient=HttpClient},6443:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function getProxyUrl(e){let r=e.protocol==="https:";let i;if(checkBypass(e)){return i}let n;if(r){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){i=new URL(n)}return i}r.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let i;if(e.port){i=Number(e.port)}else if(e.protocol==="http:"){i=80}else if(e.protocol==="https:"){i=443}let n=[e.hostname.toUpperCase()];if(typeof i==="number"){n.push(`${n[0]}:${i}`)}for(let e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((r=>r===e))){return true}}return false}r.checkBypass=checkBypass},1962:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))r[i]=e[i];r["default"]=e;return r};var a;Object.defineProperty(r,"__esModule",{value:true});const o=i(9491);const c=s(i(7147));const l=s(i(1017));a=c.promises,r.chmod=a.chmod,r.copyFile=a.copyFile,r.lstat=a.lstat,r.mkdir=a.mkdir,r.readdir=a.readdir,r.readlink=a.readlink,r.rename=a.rename,r.rmdir=a.rmdir,r.stat=a.stat,r.symlink=a.symlink,r.unlink=a.unlink;r.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,(function*(){try{yield r.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}r.exists=exists;function isDirectory(e,i=false){return n(this,void 0,void 0,(function*(){const n=i?yield r.stat(e):yield r.lstat(e);return n.isDirectory()}))}r.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(r.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}r.isRooted=isRooted;function mkdirP(e,i=1e3,s=1){return n(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");e=l.resolve(e);if(s>=i)return r.mkdir(e);try{yield r.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(l.dirname(e),i,s+1);yield r.mkdir(e);return}default:{let i;try{i=yield r.stat(e)}catch(e){throw n}if(!i.isDirectory())throw n}}}}))}r.mkdirP=mkdirP;function tryGetExecutablePath(e,i){return n(this,void 0,void 0,(function*(){let n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){const r=l.extname(e).toUpperCase();if(i.some((e=>e.toUpperCase()===r))){return e}}else{if(isUnixExecutable(n)){return e}}}const s=e;for(const a of i){e=s+a;n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){try{const i=l.dirname(e);const n=l.basename(e).toUpperCase();for(const s of yield r.readdir(i)){if(n===s.toUpperCase()){e=l.join(i,s);break}}}catch(r){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${r}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}r.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(r.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},7436:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))r[i]=e[i];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const a=s(i(2081));const o=s(i(1017));const c=i(3837);const l=s(i(1962));const p=c.promisify(a.exec);function cp(e,r,i={}){return n(this,void 0,void 0,(function*(){const{force:n,recursive:s}=readCopyOptions(i);const a=(yield l.exists(r))?yield l.stat(r):null;if(a&&a.isFile()&&!n){return}const c=a&&a.isDirectory()?o.join(r,o.basename(e)):r;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield l.stat(e);if(p.isDirectory()){if(!s){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(o.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}}))}r.cp=cp;function mv(e,r,i={}){return n(this,void 0,void 0,(function*(){if(yield l.exists(r)){let n=true;if(yield l.isDirectory(r)){r=o.join(r,o.basename(e));n=yield l.exists(r)}if(n){if(i.force==null||i.force){yield rmRF(r)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(r));yield l.rename(e,r)}))}r.mv=mv;function rmRF(e){return n(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){try{if(yield l.isDirectory(e,true)){yield p(`rd /s /q "${e}"`)}else{yield p(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield l.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let r=false;try{r=yield l.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(r){yield p(`rm -rf "${e}"`)}else{yield l.unlink(e)}}}))}r.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,(function*(){yield l.mkdirP(e)}))}r.mkdirP=mkdirP;function which(e,r){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(r){const r=yield which(e,false);if(!r){if(l.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return r}const i=yield findInPath(e);if(i&&i.length>0){return i[0]}return""}))}r.which=which;function findInPath(e){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const r=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(o.delimiter)){if(e){r.push(e)}}}if(l.isRooted(e)){const i=yield l.tryGetExecutablePath(e,r);if(i){return[i]}return[]}if(e.includes(o.sep)){return[]}const i=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){i.push(e)}}}const n=[];for(const s of i){const i=yield l.tryGetExecutablePath(o.join(s,e),r);if(i){n.push(i)}}return n}))}r.findInPath=findInPath;function readCopyOptions(e){const r=e.force==null?true:e.force;const i=Boolean(e.recursive);return{force:r,recursive:i}}function cpDirRecursive(e,r,i,s){return n(this,void 0,void 0,(function*(){if(i>=255)return;i++;yield mkdirP(r);const n=yield l.readdir(e);for(const a of n){const n=`${e}/${a}`;const o=`${r}/${a}`;const c=yield l.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,o,i,s)}else{yield copyFile(n,o,s)}}yield l.chmod(r,(yield l.stat(e)).mode)}))}function copyFile(e,r,i){return n(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(r);yield l.unlink(r)}catch(e){if(e.code==="EPERM"){yield l.chmod(r,"0666");yield l.unlink(r)}}const i=yield l.readlink(e);yield l.symlink(i,r,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(r))||i){yield l.copyFile(e,r)}}))}},4777:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=i(7378);r.Operation=n.Operation;var s=i(1682);r.Service=s.Service;var a=i(5674);r.ServiceObject=a.ServiceObject;var o=i(2221);r.ApiError=o.ApiError;r.util=o.util},7378:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true}); /*! * @module common/operation */const n=i(5674);const s=i(3837);class Operation extends n.ServiceObject{constructor(e){const r={exists:true,get:true,getMetadata:{reqOpts:{name:e.id}}};e=Object.assign({baseUrl:""},e);e.methods=e.methods||r;super(e);this.completeListeners=0;this.hasActiveListeners=false;this.listenForEvents_()}promise(){return new Promise(((e,r)=>{this.on("error",r).on("complete",(r=>{e([r])}))}))}listenForEvents_(){this.on("newListener",(e=>{if(e==="complete"){this.completeListeners++;if(!this.hasActiveListeners){this.hasActiveListeners=true;this.startPolling_()}}}));this.on("removeListener",(e=>{if(e==="complete"&&--this.completeListeners===0){this.hasActiveListeners=false}}))}poll_(e){this.getMetadata(((r,i)=>{if(r||i.error){e(r||i.error);return}if(!i.done){e(null);return}e(null,i)}))}async startPolling_(){if(!this.hasActiveListeners){return}try{const e=await s.promisify(this.poll_.bind(this))();if(!e){setTimeout(this.startPolling_.bind(this),this.pollIntervalMs||500);return}this.emit("complete",e)}catch(e){this.emit("error",e)}}}r.Operation=Operation},5674:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true}); diff --git a/dist/post/index.js b/dist/post/index.js index 50f96db..fc4b611 100644 --- a/dist/post/index.js +++ b/dist/post/index.js @@ -1,16 +1,16 @@ -(()=>{var __webpack_modules__={6180:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getInputs=void 0;const o=a(i(2186));function getInputs(){return{bucket:o.getInput("bucket",{required:true}),path:o.getInput("path",{required:true}),key:o.getInput("key",{required:true}),restoreKeys:o.getInput("restore-keys").split(",").filter((e=>e))}}r.getInputs=getInputs},95:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});const c=a(i(2186));const l=a(i(5438));const p=a(i(8090));const d=i(8174);const h=a(i(1017));const g=i(8065);const v=i(6180);const y=i(9249);const b=i(8429);function main(){var e;return o(this,void 0,void 0,(function*(){const r=(0,v.getInputs)();const i=(0,y.getState)();c.debug(JSON.stringify(r));c.debug(JSON.stringify(i));if(i.cacheHitKind==="exact"){console.log("🌀 Skipping uploading cache as the cache was hit by exact match.");return}const n=(new d.Storage).bucket(r.bucket);const s=`${l.context.repo.owner}/${l.context.repo.repo}`;const a=`${s}/${r.key}.tar`;const[E]=yield n.file(a).exists();c.debug(a);if(E){console.log("🌀 Skipping uploading cache as it already exists (probably due to another job).");return}const x=(e=process.env.GITHUB_WORKSPACE)!==null&&e!==void 0?e:process.cwd();const w=yield p.create(r.path,{implicitDescendants:false});const T=yield w.glob().then((e=>e.map((e=>h.relative(x,e)))));c.debug(JSON.stringify(T));return(0,g.withFile)((e=>o(this,void 0,void 0,(function*(){const r=yield c.group("🗜️ Creating cache archive",(()=>(0,b.createTar)(e.path,T,x)));const i={"Cache-Action-Compression-Method":r};c.debug(JSON.stringify(i));yield c.group("🌐 Uploading cache archive to bucket",(()=>o(this,void 0,void 0,(function*(){console.log(`🔹 Uploading file '${a}'...`);yield n.upload(e.path,{destination:a,metadata:{metadata:i}})}))));console.log("✅ Successfully saved cache.")}))))}))}void main()},9249:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getState=r.saveState=void 0;const o=a(i(2186));function saveState(e){o.saveState("cache-hit-kind",e.cacheHitKind)}r.saveState=saveState;function getState(){return{cacheHitKind:o.getState("cache-hit-kind")}}r.getState=getState},8429:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.extractTar=r.createTar=r.CompressionMethod=void 0;const c=a(i(1514));const l=a(i(1383));var p;(function(e){e["GZIP"]="gzip";e["ZSTD_WITHOUT_LONG"]="zstd (without long)";e["ZSTD"]="zstd"})(p=r.CompressionMethod||(r.CompressionMethod={}));function getTarCompressionMethod(){return o(this,void 0,void 0,(function*(){if(process.platform==="win32"){return p.GZIP}const[e,r]=yield c.getExecOutput("zstd",["--version"],{ignoreReturnCode:true,silent:true}).then((e=>e.stdout.trim())).then((e=>[e,l.clean(e)]));if(!(e===null||e===void 0?void 0:e.toLowerCase().includes("zstd command line interface"))){return p.GZIP}else if(!r||l.lt(r,"v1.3.2")){return p.ZSTD_WITHOUT_LONG}else{return p.ZSTD}}))}function createTar(e,r,i){return o(this,void 0,void 0,(function*(){const n=yield getTarCompressionMethod();console.log(`🔹 Using '${n}' compression method.`);const s=n===p.GZIP?["-z"]:n===p.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -T0 --long=30"]:["--use-compress-program","zstd -T0"];yield c.exec("tar",["-c",...s,"--posix","-P","-f",e,"-C",i,...r]);return n}))}r.createTar=createTar;function extractTar(e,r,i){return o(this,void 0,void 0,(function*(){console.log(`🔹 Detected '${r}' compression method from object metadata.`);const n=r===p.GZIP?["-z"]:r===p.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -d --long=30"]:["--use-compress-program","zstd -d"];yield c.exec("tar",["-x",...n,"-P","-f",e,"-C",i])}))}r.extractTar=extractTar},7351:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issue=r.issueCommand=void 0;const o=a(i(2037));const c=i(5278);function issueCommand(e,r,i){const n=new Command(e,r,i);process.stdout.write(n.toString()+o.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const l="::";class Command{constructor(e,r,i){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=i}toString(){let e=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const n=this.properties[i];if(n){if(r){r=false}else{e+=","}e+=`${i}=${escapeProperty(n)}`}}}}e+=`${l}${escapeData(this.message)}`;return e}}function escapeData(e){return c.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return c.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getIDToken=r.getState=r.saveState=r.group=r.endGroup=r.startGroup=r.info=r.notice=r.warning=r.error=r.debug=r.isDebug=r.setFailed=r.setCommandEcho=r.setOutput=r.getBooleanInput=r.getMultilineInput=r.getInput=r.addPath=r.setSecret=r.exportVariable=r.ExitCode=void 0;const c=i(7351);const l=i(717);const p=i(5278);const d=a(i(2037));const h=a(i(1017));const g=i(8041);var v;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(v=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const i=p.toCommandValue(r);process.env[e]=i;const n=process.env["GITHUB_ENV"]||"";if(n){const r="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${r}${d.EOL}${i}${d.EOL}${r}`;l.issueCommand("ENV",n)}else{c.issueCommand("set-env",{name:e},i)}}r.exportVariable=exportVariable;function setSecret(e){c.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){l.issueCommand("PATH",e)}else{c.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${h.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const i=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!i){throw new Error(`Input required and not supplied: ${e}`)}if(r&&r.trimWhitespace===false){return i}return i.trim()}r.getInput=getInput;function getMultilineInput(e,r){const i=getInput(e,r).split("\n").filter((e=>e!==""));return i}r.getMultilineInput=getMultilineInput;function getBooleanInput(e,r){const i=["true","True","TRUE"];const n=["false","False","FALSE"];const s=getInput(e,r);if(i.includes(s))return true;if(n.includes(s))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}r.getBooleanInput=getBooleanInput;function setOutput(e,r){process.stdout.write(d.EOL);c.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setCommandEcho(e){c.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=v.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){c.issueCommand("debug",{},e)}r.debug=debug;function error(e,r={}){c.issueCommand("error",p.toCommandProperties(r),e instanceof Error?e.toString():e)}r.error=error;function warning(e,r={}){c.issueCommand("warning",p.toCommandProperties(r),e instanceof Error?e.toString():e)}r.warning=warning;function notice(e,r={}){c.issueCommand("notice",p.toCommandProperties(r),e instanceof Error?e.toString():e)}r.notice=notice;function info(e){process.stdout.write(e+d.EOL)}r.info=info;function startGroup(e){c.issue("group",e)}r.startGroup=startGroup;function endGroup(){c.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return o(this,void 0,void 0,(function*(){startGroup(e);let i;try{i=yield r()}finally{endGroup()}return i}))}r.group=group;function saveState(e,r){c.issueCommand("save-state",{name:e},r)}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield g.OidcClient.getIDToken(e)}))}r.getIDToken=getIDToken},717:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issueCommand=void 0;const o=a(i(7147));const c=a(i(2037));const l=i(5278);function issueCommand(e,r){const i=process.env[`GITHUB_${e}`];if(!i){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}o.appendFileSync(i,`${l.toCommandValue(r)}${c.EOL}`,{encoding:"utf8"})}r.issueCommand=issueCommand},8041:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.OidcClient=void 0;const s=i(9925);const a=i(3702);const o=i(2186);class OidcClient{static createHttpClient(e=true,r=10){const i={allowRetries:e,maxRetries:r};return new s.HttpClient("actions/oidc-client",[new a.BearerCredentialHandler(OidcClient.getRequestToken())],i)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var r;return n(this,void 0,void 0,(function*(){const i=OidcClient.createHttpClient();const n=yield i.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const s=(r=n.result)===null||r===void 0?void 0:r.value;if(!s){throw new Error("Response json body do not have ID Token field")}return s}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let r=OidcClient.getIDTokenUrl();if(e){const i=encodeURIComponent(e);r=`${r}&audience=${i}`}o.debug(`ID token url is ${r}`);const i=yield OidcClient.getCall(r);o.setSecret(i);return i}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}r.OidcClient=OidcClient},5278:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.toCommandProperties=r.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}r.toCommandProperties=toCommandProperties},1514:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getExecOutput=r.exec=void 0;const c=i(1576);const l=a(i(8159));function exec(e,r,i){return o(this,void 0,void 0,(function*(){const n=l.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const s=n[0];r=n.slice(1).concat(r||[]);const a=new l.ToolRunner(s,r,i);return a.exec()}))}r.exec=exec;function getExecOutput(e,r,i){var n,s;return o(this,void 0,void 0,(function*(){let a="";let o="";const l=new c.StringDecoder("utf8");const p=new c.StringDecoder("utf8");const d=(n=i===null||i===void 0?void 0:i.listeners)===null||n===void 0?void 0:n.stdout;const h=(s=i===null||i===void 0?void 0:i.listeners)===null||s===void 0?void 0:s.stderr;const stdErrListener=e=>{o+=p.write(e);if(h){h(e)}};const stdOutListener=e=>{a+=l.write(e);if(d){d(e)}};const g=Object.assign(Object.assign({},i===null||i===void 0?void 0:i.listeners),{stdout:stdOutListener,stderr:stdErrListener});const v=yield exec(e,r,Object.assign(Object.assign({},i),{listeners:g}));a+=l.end();o+=p.end();return{exitCode:v,stdout:a,stderr:o}}))}r.getExecOutput=getExecOutput},8159:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.argStringToArray=r.ToolRunner=void 0;const c=a(i(2037));const l=a(i(2361));const p=a(i(2081));const d=a(i(1017));const h=a(i(7436));const g=a(i(1962));const v=i(9512);const y=process.platform==="win32";class ToolRunner extends l.EventEmitter{constructor(e,r,i){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=r||[];this.options=i||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,r){const i=this._getSpawnFileName();const n=this._getSpawnArgs(e);let s=r?"":"[command]";if(y){if(this._isCmdFile()){s+=i;for(const e of n){s+=` ${e}`}}else if(e.windowsVerbatimArguments){s+=`"${i}"`;for(const e of n){s+=` ${e}`}}else{s+=this._windowsQuoteCmdArg(i);for(const e of n){s+=` ${this._windowsQuoteCmdArg(e)}`}}}else{s+=i;for(const e of n){s+=` ${e}`}}return s}_processLineBuffer(e,r,i){try{let n=r+e.toString();let s=n.indexOf(c.EOL);while(s>-1){const e=n.substring(0,s);i(e);n=n.substring(s+c.EOL.length);s=n.indexOf(c.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(y){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(y){if(this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const i of this.args){r+=" ";r+=e.windowsVerbatimArguments?i:this._windowsQuoteCmdArg(i)}r+='"';return[r]}}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const r=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let i=false;for(const n of e){if(r.some((e=>e===n))){i=true;break}}if(!i){return e}let n='"';let s=true;for(let r=e.length;r>0;r--){n+=e[r-1];if(s&&e[r-1]==="\\"){n+="\\"}else if(e[r-1]==='"'){s=true;n+='"'}else{s=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let r='"';let i=true;for(let n=e.length;n>0;n--){r+=e[n-1];if(i&&e[n-1]==="\\"){r+="\\"}else if(e[n-1]==='"'){i=true;r+="\\"}else{i=false}}r+='"';return r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};r.outStream=e.outStream||process.stdout;r.errStream=e.errStream||process.stderr;return r}_getSpawnOptions(e,r){e=e||{};const i={};i.cwd=e.cwd;i.env=e.env;i["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){i.argv0=`"${r}"`}return i}exec(){return o(this,void 0,void 0,(function*(){if(!g.isRooted(this.toolPath)&&(this.toolPath.includes("/")||y&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield h.which(this.toolPath,true);return new Promise(((e,r)=>o(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const i=this._cloneExecOptions(this.options);if(!i.silent&&i.outStream){i.outStream.write(this._getCommandString(i)+c.EOL)}const n=new ExecState(i,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield g.exists(this.options.cwd))){return r(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const s=this._getSpawnFileName();const a=p.spawn(s,this._getSpawnArgs(i),this._getSpawnOptions(this.options,s));let o="";if(a.stdout){a.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!i.silent&&i.outStream){i.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let l="";if(a.stderr){a.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!i.silent&&i.errStream&&i.outStream){const r=i.failOnStdErr?i.errStream:i.outStream;r.write(e)}l=this._processLineBuffer(e,l,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}a.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));a.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));a.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((i,n)=>{if(o.length>0){this.emit("stdline",o)}if(l.length>0){this.emit("errline",l)}a.removeAllListeners();if(i){r(i)}else{e(n)}}));if(this.options.input){if(!a.stdin){throw new Error("child process missing stdin")}a.stdin.end(this.options.input)}}))))}))}}r.ToolRunner=ToolRunner;function argStringToArray(e){const r=[];let i=false;let n=false;let s="";function append(e){if(n&&e!=='"'){s+="\\"}s+=e;n=false}for(let a=0;a0){r.push(s);s=""}continue}append(o)}if(s.length>0){r.push(s.trim())}return r}r.argStringToArray=argStringToArray;class ExecState extends l.EventEmitter{constructor(e,r){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!r){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=r;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=v.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}},4087:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Context=void 0;const n=i(7147);const s=i(2037);class Context{constructor(){var e,r,i;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(n.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(n.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${s.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=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:`https://github.com`;this.graphqlUrl=(i=process.env.GITHUB_GRAPHQL_URL)!==null&&i!==void 0?i:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}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'")}}r.Context=Context},5438:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getOctokit=r.context=void 0;const o=a(i(4087));const c=i(3030);r.context=new o.Context;function getOctokit(e,r){return new c.GitHub(c.getOctokitOptions(e,r))}r.getOctokit=getOctokit},7914:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getApiBaseUrl=r.getProxyAgent=r.getAuthString=void 0;const o=a(i(9925));function getAuthString(e,r){if(!e&&!r.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&r.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof r.auth==="string"?r.auth:`token ${e}`}r.getAuthString=getAuthString;function getProxyAgent(e){const r=new o.HttpClient;return r.getAgent(e)}r.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}r.getApiBaseUrl=getApiBaseUrl},3030:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getOctokitOptions=r.GitHub=r.context=void 0;const o=a(i(4087));const c=a(i(7914));const l=i(6762);const p=i(3044);const d=i(4193);r.context=new o.Context;const h=c.getApiBaseUrl();const g={baseUrl:h,request:{agent:c.getProxyAgent(h)}};r.GitHub=l.Octokit.plugin(p.restEndpointMethods,d.paginateRest).defaults(g);function getOctokitOptions(e,r){const i=Object.assign({},r||{});const n=c.getAuthString(e,i);if(n){i.auth=n}return i}r.getOctokitOptions=getOctokitOptions},8090:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.hashFiles=r.create=void 0;const s=i(8298);const a=i(2448);function create(e,r){return n(this,void 0,void 0,(function*(){return yield s.DefaultGlobber.create(e,r)}))}r.create=create;function hashFiles(e,r){return n(this,void 0,void 0,(function*(){let i=true;if(r&&typeof r.followSymbolicLinks==="boolean"){i=r.followSymbolicLinks}const n=yield create(e,{followSymbolicLinks:i});return a.hashFiles(n)}))}r.hashFiles=hashFiles},1026:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getOptions=void 0;const o=a(i(2186));function getOptions(e){const r={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){r.followSymbolicLinks=e.followSymbolicLinks;o.debug(`followSymbolicLinks '${r.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){r.implicitDescendants=e.implicitDescendants;o.debug(`implicitDescendants '${r.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){r.matchDirectories=e.matchDirectories;o.debug(`matchDirectories '${r.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){r.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;o.debug(`omitBrokenSymbolicLinks '${r.omitBrokenSymbolicLinks}'`)}}return r}r.getOptions=getOptions},8298:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var c=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],i;return r?r.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(r){i[r]=e[r]&&function(i){return new Promise((function(n,s){i=e[r](i),settle(n,s,i.done,i.value)}))}}function settle(e,r,i,n){Promise.resolve(n).then((function(r){e({value:r,done:i})}),r)}};var l=this&&this.__await||function(e){return this instanceof l?(this.v=e,this):new l(e)};var p=this&&this.__asyncGenerator||function(e,r,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(e,r||[]),s,a=[];return s={},verb("next"),verb("throw"),verb("return"),s[Symbol.asyncIterator]=function(){return this},s;function verb(e){if(n[e])s[e]=function(r){return new Promise((function(i,n){a.push([e,r,i,n])>1||resume(e,r)}))}}function resume(e,r){try{step(n[e](r))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof l?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,r){if(e(r),a.shift(),a.length)resume(a[0][0],a[0][1])}};Object.defineProperty(r,"__esModule",{value:true});r.DefaultGlobber=void 0;const d=a(i(2186));const h=a(i(7147));const g=a(i(1026));const v=a(i(1017));const y=a(i(9005));const b=i(1063);const E=i(4536);const x=i(9117);const w=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=g.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,r;return o(this,void 0,void 0,(function*(){const i=[];try{for(var n=c(this.globGenerator()),s;s=yield n.next(),!s.done;){const e=s.value;i.push(e)}}catch(r){e={error:r}}finally{try{if(s&&!s.done&&(r=n.return))yield r.call(n)}finally{if(e)throw e.error}}return i}))}globGenerator(){return p(this,arguments,(function*globGenerator_1(){const e=g.getOptions(this.options);const r=[];for(const i of this.patterns){r.push(i);if(e.implicitDescendants&&(i.trailingSeparator||i.segments[i.segments.length-1]!=="**")){r.push(new E.Pattern(i.negate,true,i.segments.concat("**")))}}const i=[];for(const e of y.getSearchPaths(r)){d.debug(`Search path '${e}'`);try{yield l(h.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}i.unshift(new x.SearchState(e,1))}const n=[];while(i.length){const s=i.pop();const a=y.match(r,s.path);const o=!!a||y.partialMatch(r,s.path);if(!a&&!o){continue}const c=yield l(DefaultGlobber.stat(s,e,n));if(!c){continue}if(c.isDirectory()){if(a&b.MatchKind.Directory&&e.matchDirectories){yield yield l(s.path)}else if(!o){continue}const r=s.level+1;const n=(yield l(h.promises.readdir(s.path))).map((e=>new x.SearchState(v.join(s.path,e),r)));i.push(...n.reverse())}else if(a&b.MatchKind.File){yield yield l(s.path)}}}))}static create(e,r){return o(this,void 0,void 0,(function*(){const i=new DefaultGlobber(r);if(w){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const n=e.split("\n").map((e=>e.trim()));for(const e of n){if(!e||e.startsWith("#")){continue}else{i.patterns.push(new E.Pattern(e))}}i.searchPaths.push(...y.getSearchPaths(i.patterns));return i}))}static stat(e,r,i){return o(this,void 0,void 0,(function*(){let n;if(r.followSymbolicLinks){try{n=yield h.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){d.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}}else{n=yield h.promises.lstat(e.path)}if(n.isDirectory()&&r.followSymbolicLinks){const r=yield h.promises.realpath(e.path);while(i.length>=e.level){i.pop()}if(i.some((e=>e===r))){d.debug(`Symlink cycle detected for path '${e.path}' and realpath '${r}'`);return undefined}i.push(r)}return n}))}}r.DefaultGlobber=DefaultGlobber},2448:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var c=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],i;return r?r.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(r){i[r]=e[r]&&function(i){return new Promise((function(n,s){i=e[r](i),settle(n,s,i.done,i.value)}))}}function settle(e,r,i,n){Promise.resolve(n).then((function(r){e({value:r,done:i})}),r)}};Object.defineProperty(r,"__esModule",{value:true});r.hashFiles=void 0;const l=a(i(6113));const p=a(i(2186));const d=a(i(7147));const h=a(i(2781));const g=a(i(3837));const v=a(i(1017));function hashFiles(e){var r,i;var n;return o(this,void 0,void 0,(function*(){let s=false;const a=(n=process.env["GITHUB_WORKSPACE"])!==null&&n!==void 0?n:process.cwd();const o=l.createHash("sha256");let y=0;try{for(var b=c(e.globGenerator()),E;E=yield b.next(),!E.done;){const e=E.value;p.debug(e);if(!e.startsWith(`${a}${v.sep}`)){p.debug(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(d.statSync(e).isDirectory()){p.debug(`Skip directory '${e}'.`);continue}const r=l.createHash("sha256");const i=g.promisify(h.pipeline);yield i(d.createReadStream(e),r);o.write(r.digest());y++;if(!s){s=true}}}catch(e){r={error:e}}finally{try{if(E&&!E.done&&(i=b.return))yield i.call(b)}finally{if(r)throw r.error}}o.end();if(s){p.debug(`Found ${y} files to hash.`);return o.digest("hex")}else{p.debug(`No matches found for glob`);return""}}))}r.hashFiles=hashFiles},1063:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.MatchKind=void 0;var i;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(i=r.MatchKind||(r.MatchKind={}))},1849:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.safeTrimTrailingSeparator=r.normalizeSeparators=r.hasRoot=r.hasAbsoluteRoot=r.ensureAbsoluteRoot=r.dirname=void 0;const c=a(i(1017));const l=o(i(9491));const p=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(p&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let r=c.dirname(e);if(p&&/^\\\\[^\\]+\\[^\\]+\\$/.test(r)){r=safeTrimTrailingSeparator(r)}return r}r.dirname=dirname;function ensureAbsoluteRoot(e,r){l.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);l.default(r,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(r)){return r}if(p){if(r.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();l.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(r[0].toUpperCase()===e[0].toUpperCase()){if(r.length===2){return`${r[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${r[0]}:\\${e.substr(3)}${r.substr(2)}`}}else{return`${r[0]}:\\${r.substr(2)}`}}else if(normalizeSeparators(r).match(/^\\$|^\\[^\\]/)){const e=process.cwd();l.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${r.substr(1)}`}}l.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||p&&e.endsWith("\\")){}else{e+=c.sep}return e+r}r.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){l.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(p){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}r.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){l.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(p){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}r.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(p){e=e.replace(/\//g,"\\");const r=/^\\\\+[^\\]/.test(e);return(r?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}r.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(c.sep)){return e}if(e===c.sep){return e}if(p&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}r.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.Path=void 0;const c=a(i(1017));const l=a(i(1849));const p=o(i(9491));const d=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){p.default(e,`Parameter 'itemPath' must not be empty`);e=l.safeTrimTrailingSeparator(e);if(!l.hasRoot(e)){this.segments=e.split(c.sep)}else{let r=e;let i=l.dirname(r);while(i!==r){const e=c.basename(r);this.segments.unshift(e);r=i;i=l.dirname(r)}this.segments.unshift(r)}}else{p.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let r=0;r!e.negate));const r={};for(const i of e){const e=l?i.searchPath.toUpperCase():i.searchPath;r[e]="candidate"}const i=[];for(const n of e){const e=l?n.searchPath.toUpperCase():n.searchPath;if(r[e]==="included"){continue}let s=false;let a=e;let c=o.dirname(a);while(c!==a){if(r[c]){s=true;break}a=c;c=o.dirname(a)}if(!s){i.push(n.searchPath);r[e]="included"}}return i}r.getSearchPaths=getSearchPaths;function match(e,r){let i=c.MatchKind.None;for(const n of e){if(n.negate){i&=~n.match(r)}else{i|=n.match(r)}}return i}r.match=match;function partialMatch(e,r){return e.some((e=>!e.negate&&e.partialMatch(r)))}r.partialMatch=partialMatch},4536:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var s=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);s(r,e);return r};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.Pattern=void 0;const c=a(i(2037));const l=a(i(1017));const p=a(i(1849));const d=o(i(9491));const h=i(3973);const g=i(1063);const v=i(6836);const y=process.platform==="win32";class Pattern{constructor(e,r=false,i,n){this.negate=false;let s;if(typeof e==="string"){s=e.trim()}else{i=i||[];d.default(i.length,`Parameter 'segments' must not empty`);const r=Pattern.getLiteral(i[0]);d.default(r&&p.hasAbsoluteRoot(r),`Parameter 'segments' first element must be a root path`);s=new v.Path(i).toString().trim();if(e){s=`!${s}`}}while(s.startsWith("!")){this.negate=!this.negate;s=s.substr(1).trim()}s=Pattern.fixupPattern(s,n);this.segments=new v.Path(s).segments;this.trailingSeparator=p.normalizeSeparators(s).endsWith(l.sep);s=p.safeTrimTrailingSeparator(s);let a=false;const o=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!a&&!(a=e==="")));this.searchPath=new v.Path(o).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(o[0]),y?"i":"");this.isImplicitPattern=r;const c={dot:true,nobrace:true,nocase:y,nocomment:true,noext:true,nonegate:true};s=y?s.replace(/\\/g,"/"):s;this.minimatch=new h.Minimatch(s,c)}match(e){if(this.segments[this.segments.length-1]==="**"){e=p.normalizeSeparators(e);if(!e.endsWith(l.sep)&&this.isImplicitPattern===false){e=`${e}${l.sep}`}}else{e=p.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?g.MatchKind.Directory:g.MatchKind.All}return g.MatchKind.None}partialMatch(e){e=p.safeTrimTrailingSeparator(e);if(p.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(y?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(y?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){d.default(e,"pattern cannot be empty");const i=new v.Path(e).segments.map((e=>Pattern.getLiteral(e)));d.default(i.every(((e,r)=>(e!=="."||r===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);d.default(!p.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=p.normalizeSeparators(e);if(e==="."||e.startsWith(`.${l.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${l.sep}`)){r=r||c.homedir();d.default(r,"Unable to determine HOME directory");d.default(p.hasAbsoluteRoot(r),`Expected HOME directory to be a rooted path. Actual '${r}'`);e=Pattern.globEscape(r)+e.substr(1)}else if(y&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let r=p.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!r.endsWith("\\")){r+="\\"}e=Pattern.globEscape(r)+e.substr(2)}else if(y&&(e==="\\"||e.match(/^\\[^\\]/))){let r=p.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!r.endsWith("\\")){r+="\\"}e=Pattern.globEscape(r)+e.substr(1)}else{e=p.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return p.normalizeSeparators(e)}static getLiteral(e){let r="";for(let i=0;i=0){if(n.length>1){return""}if(n){r+=n;i=s;continue}}}r+=n}return r}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}r.Pattern=Pattern},9117:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.SearchState=void 0;class SearchState{constructor(e,r){this.path=e;this.level=r}}r.SearchState=SearchState},3702:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,r){this.username=e;this.password=r}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,r,i){return null}}r.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,r,i){return null}}r.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,r,i){return null}}r.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const n=i(3685);const s=i(5687);const a=i(6443);let o;var c;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(c=r.HttpCodes||(r.HttpCodes={}));var l;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(l=r.Headers||(r.Headers={}));var p;(function(e){e["ApplicationJson"]="application/json"})(p=r.MediaTypes||(r.MediaTypes={}));function getProxyUrl(e){let r=a.getProxyUrl(new URL(e));return r?r.href:""}r.getProxyUrl=getProxyUrl;const d=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const h=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const v=10;const y=5;class HttpClientError extends Error{constructor(e,r){super(e);this.name="HttpClientError";this.statusCode=r;Object.setPrototypeOf(this,HttpClientError.prototype)}}r.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,r)=>{let i=Buffer.alloc(0);this.message.on("data",(e=>{i=Buffer.concat([i,e])}));this.message.on("end",(()=>{e(i.toString())}))}))}}r.HttpClientResponse=HttpClientResponse;function isHttps(e){let r=new URL(e);return r.protocol==="https:"}r.isHttps=isHttps;class HttpClient{constructor(e,r,i){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=r||[];this.requestOptions=i;if(i){if(i.ignoreSslError!=null){this._ignoreSslError=i.ignoreSslError}this._socketTimeout=i.socketTimeout;if(i.allowRedirects!=null){this._allowRedirects=i.allowRedirects}if(i.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=i.allowRedirectDowngrade}if(i.maxRedirects!=null){this._maxRedirects=Math.max(i.maxRedirects,0)}if(i.keepAlive!=null){this._keepAlive=i.keepAlive}if(i.allowRetries!=null){this._allowRetries=i.allowRetries}if(i.maxRetries!=null){this._maxRetries=i.maxRetries}}}options(e,r){return this.request("OPTIONS",e,null,r||{})}get(e,r){return this.request("GET",e,null,r||{})}del(e,r){return this.request("DELETE",e,null,r||{})}post(e,r,i){return this.request("POST",e,r,i||{})}patch(e,r,i){return this.request("PATCH",e,r,i||{})}put(e,r,i){return this.request("PUT",e,r,i||{})}head(e,r){return this.request("HEAD",e,null,r||{})}sendStream(e,r,i,n){return this.request(e,r,i,n)}async getJson(e,r={}){r[l.Accept]=this._getExistingOrDefaultHeader(r,l.Accept,p.ApplicationJson);let i=await this.get(e,r);return this._processResponse(i,this.requestOptions)}async postJson(e,r,i={}){let n=JSON.stringify(r,null,2);i[l.Accept]=this._getExistingOrDefaultHeader(i,l.Accept,p.ApplicationJson);i[l.ContentType]=this._getExistingOrDefaultHeader(i,l.ContentType,p.ApplicationJson);let s=await this.post(e,n,i);return this._processResponse(s,this.requestOptions)}async putJson(e,r,i={}){let n=JSON.stringify(r,null,2);i[l.Accept]=this._getExistingOrDefaultHeader(i,l.Accept,p.ApplicationJson);i[l.ContentType]=this._getExistingOrDefaultHeader(i,l.ContentType,p.ApplicationJson);let s=await this.put(e,n,i);return this._processResponse(s,this.requestOptions)}async patchJson(e,r,i={}){let n=JSON.stringify(r,null,2);i[l.Accept]=this._getExistingOrDefaultHeader(i,l.Accept,p.ApplicationJson);i[l.ContentType]=this._getExistingOrDefaultHeader(i,l.ContentType,p.ApplicationJson);let s=await this.patch(e,n,i);return this._processResponse(s,this.requestOptions)}async request(e,r,i,n){if(this._disposed){throw new Error("Client has already been disposed.")}let s=new URL(r);let a=this._prepareRequest(e,s,n);let o=this._allowRetries&&g.indexOf(e)!=-1?this._maxRetries+1:1;let l=0;let p;while(l0){const o=p.message.headers["location"];if(!o){break}let c=new URL(o);if(s.protocol=="https:"&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await p.readBody();if(c.hostname!==s.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}a=this._prepareRequest(e,c,n);p=await this.requestRaw(a,i);r--}if(h.indexOf(p.message.statusCode)==-1){return p}l+=1;if(l{let callbackForResult=function(e,r){if(e){n(e)}i(r)};this.requestRawWithCallback(e,r,callbackForResult)}))}requestRawWithCallback(e,r,i){let n;if(typeof r==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8")}let s=false;let handleResult=(e,r)=>{if(!s){s=true;i(e,r)}};let a=e.httpModule.request(e.options,(e=>{let r=new HttpClientResponse(e);handleResult(null,r)}));a.on("socket",(e=>{n=e}));a.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));a.on("error",(function(e){handleResult(e,null)}));if(r&&typeof r==="string"){a.write(r,"utf8")}if(r&&typeof r!=="string"){r.on("close",(function(){a.end()}));r.pipe(a)}else{a.end()}}getAgent(e){let r=new URL(e);return this._getAgent(r)}_prepareRequest(e,r,i){const a={};a.parsedUrl=r;const o=a.parsedUrl.protocol==="https:";a.httpModule=o?s:n;const c=o?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):c;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=e;a.options.headers=this._mergeHeaders(i);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(a.options)}))}return a}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((r,i)=>(r[i.toLowerCase()]=e[i],r)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,r,i){const lowercaseKeys=e=>Object.keys(e).reduce(((r,i)=>(r[i.toLowerCase()]=e[i],r)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[r]}return e[r]||n||i}_getAgent(e){let r;let c=a.getProxyUrl(e);let l=c&&c.hostname;if(this._keepAlive&&l){r=this._proxyAgent}if(this._keepAlive&&!l){r=this._agent}if(!!r){return r}const p=e.protocol==="https:";let d=100;if(!!this.requestOptions){d=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(l){if(!o){o=i(4294)}const e={maxSockets:d,keepAlive:this._keepAlive,proxy:{...(c.username||c.password)&&{proxyAuth:`${c.username}:${c.password}`},host:c.hostname,port:c.port}};let n;const s=c.protocol==="https:";if(p){n=s?o.httpsOverHttps:o.httpsOverHttp}else{n=s?o.httpOverHttps:o.httpOverHttp}r=n(e);this._proxyAgent=r}if(this._keepAlive&&!r){const e={keepAlive:this._keepAlive,maxSockets:d};r=p?new s.Agent(e):new n.Agent(e);this._agent=r}if(!r){r=p?s.globalAgent:n.globalAgent}if(p&&this._ignoreSslError){r.options=Object.assign(r.options||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){e=Math.min(v,e);const r=y*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),r)))}static dateTimeDeserializer(e,r){if(typeof r==="string"){let e=new Date(r);if(!isNaN(e.valueOf())){return e}}return r}async _processResponse(e,r){return new Promise((async(i,n)=>{const s=e.message.statusCode;const a={statusCode:s,result:null,headers:{}};if(s==c.NotFound){i(a)}let o;let l;try{l=await e.readBody();if(l&&l.length>0){if(r&&r.deserializeDates){o=JSON.parse(l,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(l)}a.result=o}a.headers=e.message.headers}catch(e){}if(s>299){let e;if(o&&o.message){e=o.message}else if(l&&l.length>0){e=l}else{e="Failed request: ("+s+")"}let r=new HttpClientError(e,s);r.result=a.result;n(r)}else{i(a)}}))}}r.HttpClient=HttpClient},6443:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function getProxyUrl(e){let r=e.protocol==="https:";let i;if(checkBypass(e)){return i}let n;if(r){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){i=new URL(n)}return i}r.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let i;if(e.port){i=Number(e.port)}else if(e.protocol==="http:"){i=80}else if(e.protocol==="https:"){i=443}let n=[e.hostname.toUpperCase()];if(typeof i==="number"){n.push(`${n[0]}:${i}`)}for(let e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((r=>r===e))){return true}}return false}r.checkBypass=checkBypass},1962:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))r[i]=e[i];r["default"]=e;return r};var a;Object.defineProperty(r,"__esModule",{value:true});const o=i(9491);const c=s(i(7147));const l=s(i(1017));a=c.promises,r.chmod=a.chmod,r.copyFile=a.copyFile,r.lstat=a.lstat,r.mkdir=a.mkdir,r.readdir=a.readdir,r.readlink=a.readlink,r.rename=a.rename,r.rmdir=a.rmdir,r.stat=a.stat,r.symlink=a.symlink,r.unlink=a.unlink;r.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,(function*(){try{yield r.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}r.exists=exists;function isDirectory(e,i=false){return n(this,void 0,void 0,(function*(){const n=i?yield r.stat(e):yield r.lstat(e);return n.isDirectory()}))}r.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(r.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}r.isRooted=isRooted;function mkdirP(e,i=1e3,s=1){return n(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");e=l.resolve(e);if(s>=i)return r.mkdir(e);try{yield r.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(l.dirname(e),i,s+1);yield r.mkdir(e);return}default:{let i;try{i=yield r.stat(e)}catch(e){throw n}if(!i.isDirectory())throw n}}}}))}r.mkdirP=mkdirP;function tryGetExecutablePath(e,i){return n(this,void 0,void 0,(function*(){let n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){const r=l.extname(e).toUpperCase();if(i.some((e=>e.toUpperCase()===r))){return e}}else{if(isUnixExecutable(n)){return e}}}const s=e;for(const a of i){e=s+a;n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){try{const i=l.dirname(e);const n=l.basename(e).toUpperCase();for(const s of yield r.readdir(i)){if(n===s.toUpperCase()){e=l.join(i,s);break}}}catch(r){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${r}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}r.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(r.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},7436:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))r[i]=e[i];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const a=s(i(2081));const o=s(i(1017));const c=i(3837);const l=s(i(1962));const p=c.promisify(a.exec);function cp(e,r,i={}){return n(this,void 0,void 0,(function*(){const{force:n,recursive:s}=readCopyOptions(i);const a=(yield l.exists(r))?yield l.stat(r):null;if(a&&a.isFile()&&!n){return}const c=a&&a.isDirectory()?o.join(r,o.basename(e)):r;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield l.stat(e);if(p.isDirectory()){if(!s){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(o.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}}))}r.cp=cp;function mv(e,r,i={}){return n(this,void 0,void 0,(function*(){if(yield l.exists(r)){let n=true;if(yield l.isDirectory(r)){r=o.join(r,o.basename(e));n=yield l.exists(r)}if(n){if(i.force==null||i.force){yield rmRF(r)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(r));yield l.rename(e,r)}))}r.mv=mv;function rmRF(e){return n(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){try{if(yield l.isDirectory(e,true)){yield p(`rd /s /q "${e}"`)}else{yield p(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield l.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let r=false;try{r=yield l.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(r){yield p(`rm -rf "${e}"`)}else{yield l.unlink(e)}}}))}r.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,(function*(){yield l.mkdirP(e)}))}r.mkdirP=mkdirP;function which(e,r){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(r){const r=yield which(e,false);if(!r){if(l.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return r}const i=yield findInPath(e);if(i&&i.length>0){return i[0]}return""}))}r.which=which;function findInPath(e){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const r=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(o.delimiter)){if(e){r.push(e)}}}if(l.isRooted(e)){const i=yield l.tryGetExecutablePath(e,r);if(i){return[i]}return[]}if(e.includes(o.sep)){return[]}const i=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){i.push(e)}}}const n=[];for(const s of i){const i=yield l.tryGetExecutablePath(o.join(s,e),r);if(i){n.push(i)}}return n}))}r.findInPath=findInPath;function readCopyOptions(e){const r=e.force==null?true:e.force;const i=Boolean(e.recursive);return{force:r,recursive:i}}function cpDirRecursive(e,r,i,s){return n(this,void 0,void 0,(function*(){if(i>=255)return;i++;yield mkdirP(r);const n=yield l.readdir(e);for(const a of n){const n=`${e}/${a}`;const o=`${r}/${a}`;const c=yield l.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,o,i,s)}else{yield copyFile(n,o,s)}}yield l.chmod(r,(yield l.stat(e)).mode)}))}function copyFile(e,r,i){return n(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(r);yield l.unlink(r)}catch(e){if(e.code==="EPERM"){yield l.chmod(r,"0666");yield l.unlink(r)}}const i=yield l.readlink(e);yield l.symlink(i,r,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(r))||i){yield l.copyFile(e,r)}}))}},4777:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=i(7378);r.Operation=n.Operation;var s=i(1682);r.Service=s.Service;var a=i(5674);r.ServiceObject=a.ServiceObject;var o=i(2221);r.ApiError=o.ApiError;r.util=o.util},7378:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true}); +(()=>{var __webpack_modules__={6180:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getInputs=void 0;const o=s(i(2186));function getInputs(){const e={bucket:o.getInput("bucket",{required:true}),path:o.getInput("path",{required:true}),key:o.getInput("key",{required:true}),restoreKeys:o.getInput("restore-keys").split(",").filter((e=>e))};o.debug(`Loaded inputs: ${JSON.stringify(e)}.`);return e}r.getInputs=getInputs},95:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});const c=s(i(2186));const l=s(i(8090));const p=i(8174);const d=s(i(1017));const h=i(8065);const g=i(6180);const v=i(9249);const y=i(8429);function main(){var e;return o(this,void 0,void 0,(function*(){const r=(0,g.getInputs)();const i=(0,v.getState)();if(i.cacheHitKind==="exact"){console.log("🌀 Skipping uploading cache as the cache was hit by exact match.");return}const n=(new p.Storage).bucket(r.bucket);const a=i.targetFileName;const[s]=yield n.file(a).exists();c.debug(`Target file name: ${a}.`);if(s){console.log("🌀 Skipping uploading cache as it already exists (probably due to another job).");return}const b=(e=process.env.GITHUB_WORKSPACE)!==null&&e!==void 0?e:process.cwd();const x=yield l.create(r.path,{implicitDescendants:false});const E=yield x.glob().then((e=>e.map((e=>d.relative(b,e)))));c.debug(`Paths: ${JSON.stringify(E)}.`);return(0,h.withFile)((e=>o(this,void 0,void 0,(function*(){const r=yield c.group("🗜️ Creating cache archive",(()=>(0,y.createTar)(e.path,E,b)));const i={"Cache-Action-Compression-Method":r};c.debug(`Metadata: ${JSON.stringify(i)}.`);yield c.group("🌐 Uploading cache archive to bucket",(()=>o(this,void 0,void 0,(function*(){console.log(`🔹 Uploading file '${a}'...`);yield n.upload(e.path,{destination:a,metadata:{metadata:i}})}))));console.log("✅ Successfully saved cache.")}))))}))}void main()},9249:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getState=r.saveState=void 0;const o=s(i(2186));function saveState(e){o.debug(`Saving state: ${JSON.stringify(e)}.`);o.saveState("cache-hit-kind",e.cacheHitKind);o.saveState("target-file-name",e.targetFileName)}r.saveState=saveState;function getState(){const e={cacheHitKind:o.getState("cache-hit-kind"),targetFileName:o.getState("target-file-name")};o.debug(`Loaded state: ${JSON.stringify(e)}.`);return e}r.getState=getState},8429:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.extractTar=r.createTar=r.CompressionMethod=void 0;const c=s(i(1514));const l=s(i(1383));var p;(function(e){e["GZIP"]="gzip";e["ZSTD_WITHOUT_LONG"]="zstd (without long)";e["ZSTD"]="zstd"})(p=r.CompressionMethod||(r.CompressionMethod={}));function getTarCompressionMethod(){return o(this,void 0,void 0,(function*(){if(process.platform==="win32"){return p.GZIP}const[e,r]=yield c.getExecOutput("zstd",["--version"],{ignoreReturnCode:true,silent:true}).then((e=>e.stdout.trim())).then((e=>[e,l.clean(e)]));if(!(e===null||e===void 0?void 0:e.toLowerCase().includes("zstd command line interface"))){return p.GZIP}else if(!r||l.lt(r,"v1.3.2")){return p.ZSTD_WITHOUT_LONG}else{return p.ZSTD}}))}function createTar(e,r,i){return o(this,void 0,void 0,(function*(){const n=yield getTarCompressionMethod();console.log(`🔹 Using '${n}' compression method.`);const a=n===p.GZIP?["-z"]:n===p.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -T0 --long=30"]:["--use-compress-program","zstd -T0"];yield c.exec("tar",["-c",...a,"--posix","-P","-f",e,"-C",i,...r]);return n}))}r.createTar=createTar;function extractTar(e,r,i){return o(this,void 0,void 0,(function*(){console.log(`🔹 Detected '${r}' compression method from object metadata.`);const n=r===p.GZIP?["-z"]:r===p.ZSTD_WITHOUT_LONG?["--use-compress-program","zstd -d --long=30"]:["--use-compress-program","zstd -d"];yield c.exec("tar",["-x",...n,"-P","-f",e,"-C",i])}))}r.extractTar=extractTar},7351:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issue=r.issueCommand=void 0;const o=s(i(2037));const c=i(5278);function issueCommand(e,r,i){const n=new Command(e,r,i);process.stdout.write(n.toString()+o.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const l="::";class Command{constructor(e,r,i){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=i}toString(){let e=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const n=this.properties[i];if(n){if(r){r=false}else{e+=","}e+=`${i}=${escapeProperty(n)}`}}}}e+=`${l}${escapeData(this.message)}`;return e}}function escapeData(e){return c.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return c.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getIDToken=r.getState=r.saveState=r.group=r.endGroup=r.startGroup=r.info=r.notice=r.warning=r.error=r.debug=r.isDebug=r.setFailed=r.setCommandEcho=r.setOutput=r.getBooleanInput=r.getMultilineInput=r.getInput=r.addPath=r.setSecret=r.exportVariable=r.ExitCode=void 0;const c=i(7351);const l=i(717);const p=i(5278);const d=s(i(2037));const h=s(i(1017));const g=i(8041);var v;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(v=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const i=p.toCommandValue(r);process.env[e]=i;const n=process.env["GITHUB_ENV"]||"";if(n){const r="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${r}${d.EOL}${i}${d.EOL}${r}`;l.issueCommand("ENV",n)}else{c.issueCommand("set-env",{name:e},i)}}r.exportVariable=exportVariable;function setSecret(e){c.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){l.issueCommand("PATH",e)}else{c.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${h.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const i=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!i){throw new Error(`Input required and not supplied: ${e}`)}if(r&&r.trimWhitespace===false){return i}return i.trim()}r.getInput=getInput;function getMultilineInput(e,r){const i=getInput(e,r).split("\n").filter((e=>e!==""));return i}r.getMultilineInput=getMultilineInput;function getBooleanInput(e,r){const i=["true","True","TRUE"];const n=["false","False","FALSE"];const a=getInput(e,r);if(i.includes(a))return true;if(n.includes(a))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}r.getBooleanInput=getBooleanInput;function setOutput(e,r){process.stdout.write(d.EOL);c.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setCommandEcho(e){c.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=v.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){c.issueCommand("debug",{},e)}r.debug=debug;function error(e,r={}){c.issueCommand("error",p.toCommandProperties(r),e instanceof Error?e.toString():e)}r.error=error;function warning(e,r={}){c.issueCommand("warning",p.toCommandProperties(r),e instanceof Error?e.toString():e)}r.warning=warning;function notice(e,r={}){c.issueCommand("notice",p.toCommandProperties(r),e instanceof Error?e.toString():e)}r.notice=notice;function info(e){process.stdout.write(e+d.EOL)}r.info=info;function startGroup(e){c.issue("group",e)}r.startGroup=startGroup;function endGroup(){c.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return o(this,void 0,void 0,(function*(){startGroup(e);let i;try{i=yield r()}finally{endGroup()}return i}))}r.group=group;function saveState(e,r){c.issueCommand("save-state",{name:e},r)}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield g.OidcClient.getIDToken(e)}))}r.getIDToken=getIDToken},717:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issueCommand=void 0;const o=s(i(7147));const c=s(i(2037));const l=i(5278);function issueCommand(e,r){const i=process.env[`GITHUB_${e}`];if(!i){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}o.appendFileSync(i,`${l.toCommandValue(r)}${c.EOL}`,{encoding:"utf8"})}r.issueCommand=issueCommand},8041:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.OidcClient=void 0;const a=i(9925);const s=i(3702);const o=i(2186);class OidcClient{static createHttpClient(e=true,r=10){const i={allowRetries:e,maxRetries:r};return new a.HttpClient("actions/oidc-client",[new s.BearerCredentialHandler(OidcClient.getRequestToken())],i)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var r;return n(this,void 0,void 0,(function*(){const i=OidcClient.createHttpClient();const n=yield i.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const a=(r=n.result)===null||r===void 0?void 0:r.value;if(!a){throw new Error("Response json body do not have ID Token field")}return a}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let r=OidcClient.getIDTokenUrl();if(e){const i=encodeURIComponent(e);r=`${r}&audience=${i}`}o.debug(`ID token url is ${r}`);const i=yield OidcClient.getCall(r);o.setSecret(i);return i}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}r.OidcClient=OidcClient},5278:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.toCommandProperties=r.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}r.toCommandProperties=toCommandProperties},1514:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getExecOutput=r.exec=void 0;const c=i(1576);const l=s(i(8159));function exec(e,r,i){return o(this,void 0,void 0,(function*(){const n=l.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const a=n[0];r=n.slice(1).concat(r||[]);const s=new l.ToolRunner(a,r,i);return s.exec()}))}r.exec=exec;function getExecOutput(e,r,i){var n,a;return o(this,void 0,void 0,(function*(){let s="";let o="";const l=new c.StringDecoder("utf8");const p=new c.StringDecoder("utf8");const d=(n=i===null||i===void 0?void 0:i.listeners)===null||n===void 0?void 0:n.stdout;const h=(a=i===null||i===void 0?void 0:i.listeners)===null||a===void 0?void 0:a.stderr;const stdErrListener=e=>{o+=p.write(e);if(h){h(e)}};const stdOutListener=e=>{s+=l.write(e);if(d){d(e)}};const g=Object.assign(Object.assign({},i===null||i===void 0?void 0:i.listeners),{stdout:stdOutListener,stderr:stdErrListener});const v=yield exec(e,r,Object.assign(Object.assign({},i),{listeners:g}));s+=l.end();o+=p.end();return{exitCode:v,stdout:s,stderr:o}}))}r.getExecOutput=getExecOutput},8159:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.argStringToArray=r.ToolRunner=void 0;const c=s(i(2037));const l=s(i(2361));const p=s(i(2081));const d=s(i(1017));const h=s(i(7436));const g=s(i(1962));const v=i(9512);const y=process.platform==="win32";class ToolRunner extends l.EventEmitter{constructor(e,r,i){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=r||[];this.options=i||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,r){const i=this._getSpawnFileName();const n=this._getSpawnArgs(e);let a=r?"":"[command]";if(y){if(this._isCmdFile()){a+=i;for(const e of n){a+=` ${e}`}}else if(e.windowsVerbatimArguments){a+=`"${i}"`;for(const e of n){a+=` ${e}`}}else{a+=this._windowsQuoteCmdArg(i);for(const e of n){a+=` ${this._windowsQuoteCmdArg(e)}`}}}else{a+=i;for(const e of n){a+=` ${e}`}}return a}_processLineBuffer(e,r,i){try{let n=r+e.toString();let a=n.indexOf(c.EOL);while(a>-1){const e=n.substring(0,a);i(e);n=n.substring(a+c.EOL.length);a=n.indexOf(c.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(y){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(y){if(this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const i of this.args){r+=" ";r+=e.windowsVerbatimArguments?i:this._windowsQuoteCmdArg(i)}r+='"';return[r]}}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const r=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let i=false;for(const n of e){if(r.some((e=>e===n))){i=true;break}}if(!i){return e}let n='"';let a=true;for(let r=e.length;r>0;r--){n+=e[r-1];if(a&&e[r-1]==="\\"){n+="\\"}else if(e[r-1]==='"'){a=true;n+='"'}else{a=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let r='"';let i=true;for(let n=e.length;n>0;n--){r+=e[n-1];if(i&&e[n-1]==="\\"){r+="\\"}else if(e[n-1]==='"'){i=true;r+="\\"}else{i=false}}r+='"';return r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};r.outStream=e.outStream||process.stdout;r.errStream=e.errStream||process.stderr;return r}_getSpawnOptions(e,r){e=e||{};const i={};i.cwd=e.cwd;i.env=e.env;i["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){i.argv0=`"${r}"`}return i}exec(){return o(this,void 0,void 0,(function*(){if(!g.isRooted(this.toolPath)&&(this.toolPath.includes("/")||y&&this.toolPath.includes("\\"))){this.toolPath=d.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield h.which(this.toolPath,true);return new Promise(((e,r)=>o(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const i=this._cloneExecOptions(this.options);if(!i.silent&&i.outStream){i.outStream.write(this._getCommandString(i)+c.EOL)}const n=new ExecState(i,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield g.exists(this.options.cwd))){return r(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const a=this._getSpawnFileName();const s=p.spawn(a,this._getSpawnArgs(i),this._getSpawnOptions(this.options,a));let o="";if(s.stdout){s.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!i.silent&&i.outStream){i.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let l="";if(s.stderr){s.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!i.silent&&i.errStream&&i.outStream){const r=i.failOnStdErr?i.errStream:i.outStream;r.write(e)}l=this._processLineBuffer(e,l,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}s.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));s.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));s.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((i,n)=>{if(o.length>0){this.emit("stdline",o)}if(l.length>0){this.emit("errline",l)}s.removeAllListeners();if(i){r(i)}else{e(n)}}));if(this.options.input){if(!s.stdin){throw new Error("child process missing stdin")}s.stdin.end(this.options.input)}}))))}))}}r.ToolRunner=ToolRunner;function argStringToArray(e){const r=[];let i=false;let n=false;let a="";function append(e){if(n&&e!=='"'){a+="\\"}a+=e;n=false}for(let s=0;s0){r.push(a);a=""}continue}append(o)}if(a.length>0){r.push(a.trim())}return r}r.argStringToArray=argStringToArray;class ExecState extends l.EventEmitter{constructor(e,r){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!r){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=r;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=v.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}},8090:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.hashFiles=r.create=void 0;const a=i(8298);const s=i(2448);function create(e,r){return n(this,void 0,void 0,(function*(){return yield a.DefaultGlobber.create(e,r)}))}r.create=create;function hashFiles(e,r){return n(this,void 0,void 0,(function*(){let i=true;if(r&&typeof r.followSymbolicLinks==="boolean"){i=r.followSymbolicLinks}const n=yield create(e,{followSymbolicLinks:i});return s.hashFiles(n)}))}r.hashFiles=hashFiles},1026:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.getOptions=void 0;const o=s(i(2186));function getOptions(e){const r={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){r.followSymbolicLinks=e.followSymbolicLinks;o.debug(`followSymbolicLinks '${r.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){r.implicitDescendants=e.implicitDescendants;o.debug(`implicitDescendants '${r.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){r.matchDirectories=e.matchDirectories;o.debug(`matchDirectories '${r.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){r.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;o.debug(`omitBrokenSymbolicLinks '${r.omitBrokenSymbolicLinks}'`)}}return r}r.getOptions=getOptions},8298:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var c=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],i;return r?r.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(r){i[r]=e[r]&&function(i){return new Promise((function(n,a){i=e[r](i),settle(n,a,i.done,i.value)}))}}function settle(e,r,i,n){Promise.resolve(n).then((function(r){e({value:r,done:i})}),r)}};var l=this&&this.__await||function(e){return this instanceof l?(this.v=e,this):new l(e)};var p=this&&this.__asyncGenerator||function(e,r,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(e,r||[]),a,s=[];return a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a;function verb(e){if(n[e])a[e]=function(r){return new Promise((function(i,n){s.push([e,r,i,n])>1||resume(e,r)}))}}function resume(e,r){try{step(n[e](r))}catch(e){settle(s[0][3],e)}}function step(e){e.value instanceof l?Promise.resolve(e.value.v).then(fulfill,reject):settle(s[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,r){if(e(r),s.shift(),s.length)resume(s[0][0],s[0][1])}};Object.defineProperty(r,"__esModule",{value:true});r.DefaultGlobber=void 0;const d=s(i(2186));const h=s(i(7147));const g=s(i(1026));const v=s(i(1017));const y=s(i(9005));const b=i(1063);const x=i(4536);const E=i(9117);const w=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=g.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,r;return o(this,void 0,void 0,(function*(){const i=[];try{for(var n=c(this.globGenerator()),a;a=yield n.next(),!a.done;){const e=a.value;i.push(e)}}catch(r){e={error:r}}finally{try{if(a&&!a.done&&(r=n.return))yield r.call(n)}finally{if(e)throw e.error}}return i}))}globGenerator(){return p(this,arguments,(function*globGenerator_1(){const e=g.getOptions(this.options);const r=[];for(const i of this.patterns){r.push(i);if(e.implicitDescendants&&(i.trailingSeparator||i.segments[i.segments.length-1]!=="**")){r.push(new x.Pattern(i.negate,true,i.segments.concat("**")))}}const i=[];for(const e of y.getSearchPaths(r)){d.debug(`Search path '${e}'`);try{yield l(h.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}i.unshift(new E.SearchState(e,1))}const n=[];while(i.length){const a=i.pop();const s=y.match(r,a.path);const o=!!s||y.partialMatch(r,a.path);if(!s&&!o){continue}const c=yield l(DefaultGlobber.stat(a,e,n));if(!c){continue}if(c.isDirectory()){if(s&b.MatchKind.Directory&&e.matchDirectories){yield yield l(a.path)}else if(!o){continue}const r=a.level+1;const n=(yield l(h.promises.readdir(a.path))).map((e=>new E.SearchState(v.join(a.path,e),r)));i.push(...n.reverse())}else if(s&b.MatchKind.File){yield yield l(a.path)}}}))}static create(e,r){return o(this,void 0,void 0,(function*(){const i=new DefaultGlobber(r);if(w){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const n=e.split("\n").map((e=>e.trim()));for(const e of n){if(!e||e.startsWith("#")){continue}else{i.patterns.push(new x.Pattern(e))}}i.searchPaths.push(...y.getSearchPaths(i.patterns));return i}))}static stat(e,r,i){return o(this,void 0,void 0,(function*(){let n;if(r.followSymbolicLinks){try{n=yield h.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){d.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}}else{n=yield h.promises.lstat(e.path)}if(n.isDirectory()&&r.followSymbolicLinks){const r=yield h.promises.realpath(e.path);while(i.length>=e.level){i.pop()}if(i.some((e=>e===r))){d.debug(`Symlink cycle detected for path '${e.path}' and realpath '${r}'`);return undefined}i.push(r)}return n}))}}r.DefaultGlobber=DefaultGlobber},2448:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};var o=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var c=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],i;return r?r.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(r){i[r]=e[r]&&function(i){return new Promise((function(n,a){i=e[r](i),settle(n,a,i.done,i.value)}))}}function settle(e,r,i,n){Promise.resolve(n).then((function(r){e({value:r,done:i})}),r)}};Object.defineProperty(r,"__esModule",{value:true});r.hashFiles=void 0;const l=s(i(6113));const p=s(i(2186));const d=s(i(7147));const h=s(i(2781));const g=s(i(3837));const v=s(i(1017));function hashFiles(e){var r,i;var n;return o(this,void 0,void 0,(function*(){let a=false;const s=(n=process.env["GITHUB_WORKSPACE"])!==null&&n!==void 0?n:process.cwd();const o=l.createHash("sha256");let y=0;try{for(var b=c(e.globGenerator()),x;x=yield b.next(),!x.done;){const e=x.value;p.debug(e);if(!e.startsWith(`${s}${v.sep}`)){p.debug(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(d.statSync(e).isDirectory()){p.debug(`Skip directory '${e}'.`);continue}const r=l.createHash("sha256");const i=g.promisify(h.pipeline);yield i(d.createReadStream(e),r);o.write(r.digest());y++;if(!a){a=true}}}catch(e){r={error:e}}finally{try{if(x&&!x.done&&(i=b.return))yield i.call(b)}finally{if(r)throw r.error}}o.end();if(a){p.debug(`Found ${y} files to hash.`);return o.digest("hex")}else{p.debug(`No matches found for glob`);return""}}))}r.hashFiles=hashFiles},1063:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.MatchKind=void 0;var i;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(i=r.MatchKind||(r.MatchKind={}))},1849:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.safeTrimTrailingSeparator=r.normalizeSeparators=r.hasRoot=r.hasAbsoluteRoot=r.ensureAbsoluteRoot=r.dirname=void 0;const c=s(i(1017));const l=o(i(9491));const p=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(p&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let r=c.dirname(e);if(p&&/^\\\\[^\\]+\\[^\\]+\\$/.test(r)){r=safeTrimTrailingSeparator(r)}return r}r.dirname=dirname;function ensureAbsoluteRoot(e,r){l.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);l.default(r,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(r)){return r}if(p){if(r.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();l.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(r[0].toUpperCase()===e[0].toUpperCase()){if(r.length===2){return`${r[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${r[0]}:\\${e.substr(3)}${r.substr(2)}`}}else{return`${r[0]}:\\${r.substr(2)}`}}else if(normalizeSeparators(r).match(/^\\$|^\\[^\\]/)){const e=process.cwd();l.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${r.substr(1)}`}}l.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||p&&e.endsWith("\\")){}else{e+=c.sep}return e+r}r.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){l.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(p){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}r.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){l.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(p){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}r.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(p){e=e.replace(/\//g,"\\");const r=/^\\\\+[^\\]/.test(e);return(r?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}r.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(c.sep)){return e}if(e===c.sep){return e}if(p&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}r.safeTrimTrailingSeparator=safeTrimTrailingSeparator},6836:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.Path=void 0;const c=s(i(1017));const l=s(i(1849));const p=o(i(9491));const d=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){p.default(e,`Parameter 'itemPath' must not be empty`);e=l.safeTrimTrailingSeparator(e);if(!l.hasRoot(e)){this.segments=e.split(c.sep)}else{let r=e;let i=l.dirname(r);while(i!==r){const e=c.basename(r);this.segments.unshift(e);r=i;i=l.dirname(r)}this.segments.unshift(r)}}else{p.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let r=0;r!e.negate));const r={};for(const i of e){const e=l?i.searchPath.toUpperCase():i.searchPath;r[e]="candidate"}const i=[];for(const n of e){const e=l?n.searchPath.toUpperCase():n.searchPath;if(r[e]==="included"){continue}let a=false;let s=e;let c=o.dirname(s);while(c!==s){if(r[c]){a=true;break}s=c;c=o.dirname(s)}if(!a){i.push(n.searchPath);r[e]="included"}}return i}r.getSearchPaths=getSearchPaths;function match(e,r){let i=c.MatchKind.None;for(const n of e){if(n.negate){i&=~n.match(r)}else{i|=n.match(r)}}return i}r.match=match;function partialMatch(e,r){return e.some((e=>!e.negate&&e.partialMatch(r)))}r.partialMatch=partialMatch},4536:function(e,r,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,r,i,n){if(n===undefined)n=i;Object.defineProperty(e,n,{enumerable:true,get:function(){return r[i]}})}:function(e,r,i,n){if(n===undefined)n=i;e[n]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(i!=="default"&&Object.hasOwnProperty.call(e,i))n(r,e,i);a(r,e);return r};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.Pattern=void 0;const c=s(i(2037));const l=s(i(1017));const p=s(i(1849));const d=o(i(9491));const h=i(3973);const g=i(1063);const v=i(6836);const y=process.platform==="win32";class Pattern{constructor(e,r=false,i,n){this.negate=false;let a;if(typeof e==="string"){a=e.trim()}else{i=i||[];d.default(i.length,`Parameter 'segments' must not empty`);const r=Pattern.getLiteral(i[0]);d.default(r&&p.hasAbsoluteRoot(r),`Parameter 'segments' first element must be a root path`);a=new v.Path(i).toString().trim();if(e){a=`!${a}`}}while(a.startsWith("!")){this.negate=!this.negate;a=a.substr(1).trim()}a=Pattern.fixupPattern(a,n);this.segments=new v.Path(a).segments;this.trailingSeparator=p.normalizeSeparators(a).endsWith(l.sep);a=p.safeTrimTrailingSeparator(a);let s=false;const o=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!s&&!(s=e==="")));this.searchPath=new v.Path(o).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(o[0]),y?"i":"");this.isImplicitPattern=r;const c={dot:true,nobrace:true,nocase:y,nocomment:true,noext:true,nonegate:true};a=y?a.replace(/\\/g,"/"):a;this.minimatch=new h.Minimatch(a,c)}match(e){if(this.segments[this.segments.length-1]==="**"){e=p.normalizeSeparators(e);if(!e.endsWith(l.sep)&&this.isImplicitPattern===false){e=`${e}${l.sep}`}}else{e=p.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?g.MatchKind.Directory:g.MatchKind.All}return g.MatchKind.None}partialMatch(e){e=p.safeTrimTrailingSeparator(e);if(p.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(y?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(y?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){d.default(e,"pattern cannot be empty");const i=new v.Path(e).segments.map((e=>Pattern.getLiteral(e)));d.default(i.every(((e,r)=>(e!=="."||r===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);d.default(!p.hasRoot(e)||i[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=p.normalizeSeparators(e);if(e==="."||e.startsWith(`.${l.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${l.sep}`)){r=r||c.homedir();d.default(r,"Unable to determine HOME directory");d.default(p.hasAbsoluteRoot(r),`Expected HOME directory to be a rooted path. Actual '${r}'`);e=Pattern.globEscape(r)+e.substr(1)}else if(y&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let r=p.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!r.endsWith("\\")){r+="\\"}e=Pattern.globEscape(r)+e.substr(2)}else if(y&&(e==="\\"||e.match(/^\\[^\\]/))){let r=p.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!r.endsWith("\\")){r+="\\"}e=Pattern.globEscape(r)+e.substr(1)}else{e=p.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return p.normalizeSeparators(e)}static getLiteral(e){let r="";for(let i=0;i=0){if(n.length>1){return""}if(n){r+=n;i=a;continue}}}r+=n}return r}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}r.Pattern=Pattern},9117:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.SearchState=void 0;class SearchState{constructor(e,r){this.path=e;this.level=r}}r.SearchState=SearchState},3702:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,r){this.username=e;this.password=r}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,r,i){return null}}r.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,r,i){return null}}r.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,r,i){return null}}r.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9925:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const n=i(3685);const a=i(5687);const s=i(6443);let o;var c;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(c=r.HttpCodes||(r.HttpCodes={}));var l;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(l=r.Headers||(r.Headers={}));var p;(function(e){e["ApplicationJson"]="application/json"})(p=r.MediaTypes||(r.MediaTypes={}));function getProxyUrl(e){let r=s.getProxyUrl(new URL(e));return r?r.href:""}r.getProxyUrl=getProxyUrl;const d=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const h=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const v=10;const y=5;class HttpClientError extends Error{constructor(e,r){super(e);this.name="HttpClientError";this.statusCode=r;Object.setPrototypeOf(this,HttpClientError.prototype)}}r.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise((async(e,r)=>{let i=Buffer.alloc(0);this.message.on("data",(e=>{i=Buffer.concat([i,e])}));this.message.on("end",(()=>{e(i.toString())}))}))}}r.HttpClientResponse=HttpClientResponse;function isHttps(e){let r=new URL(e);return r.protocol==="https:"}r.isHttps=isHttps;class HttpClient{constructor(e,r,i){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=r||[];this.requestOptions=i;if(i){if(i.ignoreSslError!=null){this._ignoreSslError=i.ignoreSslError}this._socketTimeout=i.socketTimeout;if(i.allowRedirects!=null){this._allowRedirects=i.allowRedirects}if(i.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=i.allowRedirectDowngrade}if(i.maxRedirects!=null){this._maxRedirects=Math.max(i.maxRedirects,0)}if(i.keepAlive!=null){this._keepAlive=i.keepAlive}if(i.allowRetries!=null){this._allowRetries=i.allowRetries}if(i.maxRetries!=null){this._maxRetries=i.maxRetries}}}options(e,r){return this.request("OPTIONS",e,null,r||{})}get(e,r){return this.request("GET",e,null,r||{})}del(e,r){return this.request("DELETE",e,null,r||{})}post(e,r,i){return this.request("POST",e,r,i||{})}patch(e,r,i){return this.request("PATCH",e,r,i||{})}put(e,r,i){return this.request("PUT",e,r,i||{})}head(e,r){return this.request("HEAD",e,null,r||{})}sendStream(e,r,i,n){return this.request(e,r,i,n)}async getJson(e,r={}){r[l.Accept]=this._getExistingOrDefaultHeader(r,l.Accept,p.ApplicationJson);let i=await this.get(e,r);return this._processResponse(i,this.requestOptions)}async postJson(e,r,i={}){let n=JSON.stringify(r,null,2);i[l.Accept]=this._getExistingOrDefaultHeader(i,l.Accept,p.ApplicationJson);i[l.ContentType]=this._getExistingOrDefaultHeader(i,l.ContentType,p.ApplicationJson);let a=await this.post(e,n,i);return this._processResponse(a,this.requestOptions)}async putJson(e,r,i={}){let n=JSON.stringify(r,null,2);i[l.Accept]=this._getExistingOrDefaultHeader(i,l.Accept,p.ApplicationJson);i[l.ContentType]=this._getExistingOrDefaultHeader(i,l.ContentType,p.ApplicationJson);let a=await this.put(e,n,i);return this._processResponse(a,this.requestOptions)}async patchJson(e,r,i={}){let n=JSON.stringify(r,null,2);i[l.Accept]=this._getExistingOrDefaultHeader(i,l.Accept,p.ApplicationJson);i[l.ContentType]=this._getExistingOrDefaultHeader(i,l.ContentType,p.ApplicationJson);let a=await this.patch(e,n,i);return this._processResponse(a,this.requestOptions)}async request(e,r,i,n){if(this._disposed){throw new Error("Client has already been disposed.")}let a=new URL(r);let s=this._prepareRequest(e,a,n);let o=this._allowRetries&&g.indexOf(e)!=-1?this._maxRetries+1:1;let l=0;let p;while(l0){const o=p.message.headers["location"];if(!o){break}let c=new URL(o);if(a.protocol=="https:"&&a.protocol!=c.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await p.readBody();if(c.hostname!==a.hostname){for(let e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}s=this._prepareRequest(e,c,n);p=await this.requestRaw(s,i);r--}if(h.indexOf(p.message.statusCode)==-1){return p}l+=1;if(l{let callbackForResult=function(e,r){if(e){n(e)}i(r)};this.requestRawWithCallback(e,r,callbackForResult)}))}requestRawWithCallback(e,r,i){let n;if(typeof r==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8")}let a=false;let handleResult=(e,r)=>{if(!a){a=true;i(e,r)}};let s=e.httpModule.request(e.options,(e=>{let r=new HttpClientResponse(e);handleResult(null,r)}));s.on("socket",(e=>{n=e}));s.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));s.on("error",(function(e){handleResult(e,null)}));if(r&&typeof r==="string"){s.write(r,"utf8")}if(r&&typeof r!=="string"){r.on("close",(function(){s.end()}));r.pipe(s)}else{s.end()}}getAgent(e){let r=new URL(e);return this._getAgent(r)}_prepareRequest(e,r,i){const s={};s.parsedUrl=r;const o=s.parsedUrl.protocol==="https:";s.httpModule=o?a:n;const c=o?443:80;s.options={};s.options.host=s.parsedUrl.hostname;s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):c;s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||"");s.options.method=e;s.options.headers=this._mergeHeaders(i);if(this.userAgent!=null){s.options.headers["user-agent"]=this.userAgent}s.options.agent=this._getAgent(s.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(s.options)}))}return s}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((r,i)=>(r[i.toLowerCase()]=e[i],r)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,r,i){const lowercaseKeys=e=>Object.keys(e).reduce(((r,i)=>(r[i.toLowerCase()]=e[i],r)),{});let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[r]}return e[r]||n||i}_getAgent(e){let r;let c=s.getProxyUrl(e);let l=c&&c.hostname;if(this._keepAlive&&l){r=this._proxyAgent}if(this._keepAlive&&!l){r=this._agent}if(!!r){return r}const p=e.protocol==="https:";let d=100;if(!!this.requestOptions){d=this.requestOptions.maxSockets||n.globalAgent.maxSockets}if(l){if(!o){o=i(4294)}const e={maxSockets:d,keepAlive:this._keepAlive,proxy:{...(c.username||c.password)&&{proxyAuth:`${c.username}:${c.password}`},host:c.hostname,port:c.port}};let n;const a=c.protocol==="https:";if(p){n=a?o.httpsOverHttps:o.httpsOverHttp}else{n=a?o.httpOverHttps:o.httpOverHttp}r=n(e);this._proxyAgent=r}if(this._keepAlive&&!r){const e={keepAlive:this._keepAlive,maxSockets:d};r=p?new a.Agent(e):new n.Agent(e);this._agent=r}if(!r){r=p?a.globalAgent:n.globalAgent}if(p&&this._ignoreSslError){r.options=Object.assign(r.options||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){e=Math.min(v,e);const r=y*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),r)))}static dateTimeDeserializer(e,r){if(typeof r==="string"){let e=new Date(r);if(!isNaN(e.valueOf())){return e}}return r}async _processResponse(e,r){return new Promise((async(i,n)=>{const a=e.message.statusCode;const s={statusCode:a,result:null,headers:{}};if(a==c.NotFound){i(s)}let o;let l;try{l=await e.readBody();if(l&&l.length>0){if(r&&r.deserializeDates){o=JSON.parse(l,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(l)}s.result=o}s.headers=e.message.headers}catch(e){}if(a>299){let e;if(o&&o.message){e=o.message}else if(l&&l.length>0){e=l}else{e="Failed request: ("+a+")"}let r=new HttpClientError(e,a);r.result=s.result;n(r)}else{i(s)}}))}}r.HttpClient=HttpClient},6443:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function getProxyUrl(e){let r=e.protocol==="https:";let i;if(checkBypass(e)){return i}let n;if(r){n=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{n=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(n){i=new URL(n)}return i}r.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let i;if(e.port){i=Number(e.port)}else if(e.protocol==="http:"){i=80}else if(e.protocol==="https:"){i=443}let n=[e.hostname.toUpperCase()];if(typeof i==="number"){n.push(`${n[0]}:${i}`)}for(let e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(n.some((r=>r===e))){return true}}return false}r.checkBypass=checkBypass},1962:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))r[i]=e[i];r["default"]=e;return r};var s;Object.defineProperty(r,"__esModule",{value:true});const o=i(9491);const c=a(i(7147));const l=a(i(1017));s=c.promises,r.chmod=s.chmod,r.copyFile=s.copyFile,r.lstat=s.lstat,r.mkdir=s.mkdir,r.readdir=s.readdir,r.readlink=s.readlink,r.rename=s.rename,r.rmdir=s.rmdir,r.stat=s.stat,r.symlink=s.symlink,r.unlink=s.unlink;r.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,(function*(){try{yield r.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}r.exists=exists;function isDirectory(e,i=false){return n(this,void 0,void 0,(function*(){const n=i?yield r.stat(e):yield r.lstat(e);return n.isDirectory()}))}r.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(r.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}r.isRooted=isRooted;function mkdirP(e,i=1e3,a=1){return n(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");e=l.resolve(e);if(a>=i)return r.mkdir(e);try{yield r.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(l.dirname(e),i,a+1);yield r.mkdir(e);return}default:{let i;try{i=yield r.stat(e)}catch(e){throw n}if(!i.isDirectory())throw n}}}}))}r.mkdirP=mkdirP;function tryGetExecutablePath(e,i){return n(this,void 0,void 0,(function*(){let n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){const r=l.extname(e).toUpperCase();if(i.some((e=>e.toUpperCase()===r))){return e}}else{if(isUnixExecutable(n)){return e}}}const a=e;for(const s of i){e=a+s;n=undefined;try{n=yield r.stat(e)}catch(r){if(r.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${r}`)}}if(n&&n.isFile()){if(r.IS_WINDOWS){try{const i=l.dirname(e);const n=l.basename(e).toUpperCase();for(const a of yield r.readdir(i)){if(n===a.toUpperCase()){e=l.join(i,a);break}}}catch(r){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${r}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}r.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(r.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},7436:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))r[i]=e[i];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const s=a(i(2081));const o=a(i(1017));const c=i(3837);const l=a(i(1962));const p=c.promisify(s.exec);function cp(e,r,i={}){return n(this,void 0,void 0,(function*(){const{force:n,recursive:a}=readCopyOptions(i);const s=(yield l.exists(r))?yield l.stat(r):null;if(s&&s.isFile()&&!n){return}const c=s&&s.isDirectory()?o.join(r,o.basename(e)):r;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const p=yield l.stat(e);if(p.isDirectory()){if(!a){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(o.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}}))}r.cp=cp;function mv(e,r,i={}){return n(this,void 0,void 0,(function*(){if(yield l.exists(r)){let n=true;if(yield l.isDirectory(r)){r=o.join(r,o.basename(e));n=yield l.exists(r)}if(n){if(i.force==null||i.force){yield rmRF(r)}else{throw new Error("Destination already exists")}}}yield mkdirP(o.dirname(r));yield l.rename(e,r)}))}r.mv=mv;function rmRF(e){return n(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){try{if(yield l.isDirectory(e,true)){yield p(`rd /s /q "${e}"`)}else{yield p(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield l.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let r=false;try{r=yield l.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(r){yield p(`rm -rf "${e}"`)}else{yield l.unlink(e)}}}))}r.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,(function*(){yield l.mkdirP(e)}))}r.mkdirP=mkdirP;function which(e,r){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(r){const r=yield which(e,false);if(!r){if(l.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return r}const i=yield findInPath(e);if(i&&i.length>0){return i[0]}return""}))}r.which=which;function findInPath(e){return n(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const r=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(o.delimiter)){if(e){r.push(e)}}}if(l.isRooted(e)){const i=yield l.tryGetExecutablePath(e,r);if(i){return[i]}return[]}if(e.includes(o.sep)){return[]}const i=[];if(process.env.PATH){for(const e of process.env.PATH.split(o.delimiter)){if(e){i.push(e)}}}const n=[];for(const a of i){const i=yield l.tryGetExecutablePath(o.join(a,e),r);if(i){n.push(i)}}return n}))}r.findInPath=findInPath;function readCopyOptions(e){const r=e.force==null?true:e.force;const i=Boolean(e.recursive);return{force:r,recursive:i}}function cpDirRecursive(e,r,i,a){return n(this,void 0,void 0,(function*(){if(i>=255)return;i++;yield mkdirP(r);const n=yield l.readdir(e);for(const s of n){const n=`${e}/${s}`;const o=`${r}/${s}`;const c=yield l.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,o,i,a)}else{yield copyFile(n,o,a)}}yield l.chmod(r,(yield l.stat(e)).mode)}))}function copyFile(e,r,i){return n(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(r);yield l.unlink(r)}catch(e){if(e.code==="EPERM"){yield l.chmod(r,"0666");yield l.unlink(r)}}const i=yield l.readlink(e);yield l.symlink(i,r,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(r))||i){yield l.copyFile(e,r)}}))}},4777:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=i(7378);r.Operation=n.Operation;var a=i(1682);r.Service=a.Service;var s=i(5674);r.ServiceObject=s.ServiceObject;var o=i(2221);r.ApiError=o.ApiError;r.util=o.util},7378:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true}); /*! * @module common/operation - */const n=i(5674);const s=i(3837);class Operation extends n.ServiceObject{constructor(e){const r={exists:true,get:true,getMetadata:{reqOpts:{name:e.id}}};e=Object.assign({baseUrl:""},e);e.methods=e.methods||r;super(e);this.completeListeners=0;this.hasActiveListeners=false;this.listenForEvents_()}promise(){return new Promise(((e,r)=>{this.on("error",r).on("complete",(r=>{e([r])}))}))}listenForEvents_(){this.on("newListener",(e=>{if(e==="complete"){this.completeListeners++;if(!this.hasActiveListeners){this.hasActiveListeners=true;this.startPolling_()}}}));this.on("removeListener",(e=>{if(e==="complete"&&--this.completeListeners===0){this.hasActiveListeners=false}}))}poll_(e){this.getMetadata(((r,i)=>{if(r||i.error){e(r||i.error);return}if(!i.done){e(null);return}e(null,i)}))}async startPolling_(){if(!this.hasActiveListeners){return}try{const e=await s.promisify(this.poll_.bind(this))();if(!e){setTimeout(this.startPolling_.bind(this),this.pollIntervalMs||500);return}this.emit("complete",e)}catch(e){this.emit("error",e)}}}r.Operation=Operation},5674:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true}); + */const n=i(5674);const a=i(3837);class Operation extends n.ServiceObject{constructor(e){const r={exists:true,get:true,getMetadata:{reqOpts:{name:e.id}}};e=Object.assign({baseUrl:""},e);e.methods=e.methods||r;super(e);this.completeListeners=0;this.hasActiveListeners=false;this.listenForEvents_()}promise(){return new Promise(((e,r)=>{this.on("error",r).on("complete",(r=>{e([r])}))}))}listenForEvents_(){this.on("newListener",(e=>{if(e==="complete"){this.completeListeners++;if(!this.hasActiveListeners){this.hasActiveListeners=true;this.startPolling_()}}}));this.on("removeListener",(e=>{if(e==="complete"&&--this.completeListeners===0){this.hasActiveListeners=false}}))}poll_(e){this.getMetadata(((r,i)=>{if(r||i.error){e(r||i.error);return}if(!i.done){e(null);return}e(null,i)}))}async startPolling_(){if(!this.hasActiveListeners){return}try{const e=await a.promisify(this.poll_.bind(this))();if(!e){setTimeout(this.startPolling_.bind(this),this.pollIntervalMs||500);return}this.emit("complete",e)}catch(e){this.emit("error",e)}}}r.Operation=Operation},5674:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true}); /*! * @module common/service-object - */const n=i(9203);const s=i(7895);const a=i(2361);const o=i(8171);const c=i(2221);class ServiceObject extends a.EventEmitter{constructor(e){super();this.metadata={};this.baseUrl=e.baseUrl;this.parent=e.parent;this.id=e.id;this.createMethod=e.createMethod;this.methods=e.methods||{};this.interceptors=[];this.pollIntervalMs=e.pollIntervalMs;if(e.methods){Object.getOwnPropertyNames(ServiceObject.prototype).filter((r=>!/^request/.test(r)&&!/^getRequestInterceptors/.test(r)&&this[r]===ServiceObject.prototype[r]&&!e.methods[r])).forEach((e=>{this[e]=undefined}))}}create(e,r){const i=this;const n=[this.id];if(typeof e==="function"){r=e}if(typeof e==="object"){n.push(e)}function onCreate(...e){const[n,s]=e;if(!n){i.metadata=s.metadata;e[1]=i}r(...e)}n.push(onCreate);this.createMethod.apply(null,n)}delete(e,r){const[i,n]=c.util.maybeOptionsOrCallback(e,r);const s=i.ignoreNotFound;delete i.ignoreNotFound;const a=typeof this.methods.delete==="object"&&this.methods.delete||{};const l=o(true,{method:"DELETE",uri:""},a.reqOpts,{qs:i});ServiceObject.prototype.request.call(this,l,((e,...r)=>{if(e){if(e.code===404&&s){e=null}}n(e,...r)}))}exists(e,r){const[i,n]=c.util.maybeOptionsOrCallback(e,r);this.get(i,(e=>{if(e){if(e.code===404){n(null,false)}else{n(e)}return}n(null,true)}))}get(e,r){const i=this;const[n,s]=c.util.maybeOptionsOrCallback(e,r);const a=Object.assign({},n);const o=a.autoCreate&&typeof this.create==="function";delete a.autoCreate;function onCreate(e,r,n){if(e){if(e.code===409){i.get(a,s);return}s(e,null,n);return}s(null,r,n)}this.getMetadata(a,((e,r)=>{if(e){if(e.code===404&&o){const e=[];if(Object.keys(a).length>0){e.push(a)}e.push(onCreate);i.create(...e);return}s(e,null,r);return}s(null,i,r)}))}getMetadata(e,r){const[i,n]=c.util.maybeOptionsOrCallback(e,r);const s=typeof this.methods.getMetadata==="object"&&this.methods.getMetadata||{};const a=o(true,{uri:""},s.reqOpts,{qs:i});ServiceObject.prototype.request.call(this,a,((e,r,i)=>{this.metadata=r;n(e,this.metadata,i)}))}getRequestInterceptors(){const e=this.interceptors.filter((e=>typeof e.request==="function")).map((e=>e.request));return this.parent.getRequestInterceptors().concat(e)}setMetadata(e,r,i){const[n,s]=c.util.maybeOptionsOrCallback(r,i);const a=typeof this.methods.setMetadata==="object"&&this.methods.setMetadata||{};const l=o(true,{},{method:"PATCH",uri:""},a.reqOpts,{json:e,qs:n});ServiceObject.prototype.request.call(this,l,((e,r,i)=>{this.metadata=r;s(e,this.metadata,i)}))}request_(e,r){e=o(true,{},e);const i=e.uri.indexOf("http")===0;const n=[this.baseUrl,this.id||"",e.uri];if(i){n.splice(0,n.indexOf(e.uri))}e.uri=n.filter((e=>e.trim())).map((e=>{const r=/^\/*|\/*$/g;return e.replace(r,"")})).join("/");const a=s(e.interceptors_);const c=[].slice.call(this.interceptors);e.interceptors_=a.concat(c);if(e.shouldReturnStream){return this.parent.requestStream(e)}this.parent.request(e,r)}request(e,r){this.request_(e,r)}requestStream(e){const r=o(true,e,{shouldReturnStream:true});return this.request_(r)}}r.ServiceObject=ServiceObject;n.promisifyAll(ServiceObject,{exclude:["getRequestInterceptors"]})},1682:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true}); + */const n=i(9203);const a=i(7895);const s=i(2361);const o=i(8171);const c=i(2221);class ServiceObject extends s.EventEmitter{constructor(e){super();this.metadata={};this.baseUrl=e.baseUrl;this.parent=e.parent;this.id=e.id;this.createMethod=e.createMethod;this.methods=e.methods||{};this.interceptors=[];this.pollIntervalMs=e.pollIntervalMs;if(e.methods){Object.getOwnPropertyNames(ServiceObject.prototype).filter((r=>!/^request/.test(r)&&!/^getRequestInterceptors/.test(r)&&this[r]===ServiceObject.prototype[r]&&!e.methods[r])).forEach((e=>{this[e]=undefined}))}}create(e,r){const i=this;const n=[this.id];if(typeof e==="function"){r=e}if(typeof e==="object"){n.push(e)}function onCreate(...e){const[n,a]=e;if(!n){i.metadata=a.metadata;e[1]=i}r(...e)}n.push(onCreate);this.createMethod.apply(null,n)}delete(e,r){const[i,n]=c.util.maybeOptionsOrCallback(e,r);const a=i.ignoreNotFound;delete i.ignoreNotFound;const s=typeof this.methods.delete==="object"&&this.methods.delete||{};const l=o(true,{method:"DELETE",uri:""},s.reqOpts,{qs:i});ServiceObject.prototype.request.call(this,l,((e,...r)=>{if(e){if(e.code===404&&a){e=null}}n(e,...r)}))}exists(e,r){const[i,n]=c.util.maybeOptionsOrCallback(e,r);this.get(i,(e=>{if(e){if(e.code===404){n(null,false)}else{n(e)}return}n(null,true)}))}get(e,r){const i=this;const[n,a]=c.util.maybeOptionsOrCallback(e,r);const s=Object.assign({},n);const o=s.autoCreate&&typeof this.create==="function";delete s.autoCreate;function onCreate(e,r,n){if(e){if(e.code===409){i.get(s,a);return}a(e,null,n);return}a(null,r,n)}this.getMetadata(s,((e,r)=>{if(e){if(e.code===404&&o){const e=[];if(Object.keys(s).length>0){e.push(s)}e.push(onCreate);i.create(...e);return}a(e,null,r);return}a(null,i,r)}))}getMetadata(e,r){const[i,n]=c.util.maybeOptionsOrCallback(e,r);const a=typeof this.methods.getMetadata==="object"&&this.methods.getMetadata||{};const s=o(true,{uri:""},a.reqOpts,{qs:i});ServiceObject.prototype.request.call(this,s,((e,r,i)=>{this.metadata=r;n(e,this.metadata,i)}))}getRequestInterceptors(){const e=this.interceptors.filter((e=>typeof e.request==="function")).map((e=>e.request));return this.parent.getRequestInterceptors().concat(e)}setMetadata(e,r,i){const[n,a]=c.util.maybeOptionsOrCallback(r,i);const s=typeof this.methods.setMetadata==="object"&&this.methods.setMetadata||{};const l=o(true,{},{method:"PATCH",uri:""},s.reqOpts,{json:e,qs:n});ServiceObject.prototype.request.call(this,l,((e,r,i)=>{this.metadata=r;a(e,this.metadata,i)}))}request_(e,r){e=o(true,{},e);const i=e.uri.indexOf("http")===0;const n=[this.baseUrl,this.id||"",e.uri];if(i){n.splice(0,n.indexOf(e.uri))}e.uri=n.filter((e=>e.trim())).map((e=>{const r=/^\/*|\/*$/g;return e.replace(r,"")})).join("/");const s=a(e.interceptors_);const c=[].slice.call(this.interceptors);e.interceptors_=s.concat(c);if(e.shouldReturnStream){return this.parent.requestStream(e)}this.parent.request(e,r)}request(e,r){this.request_(e,r)}requestStream(e){const r=o(true,e,{shouldReturnStream:true});return this.request_(r)}}r.ServiceObject=ServiceObject;n.promisifyAll(ServiceObject,{exclude:["getRequestInterceptors"]})},1682:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true}); /*! * @module common/service - */const n=i(7895);const s=i(8171);const a=i(2221);const o="{{projectId}}";class Service{constructor(e,r={}){this.baseUrl=e.baseUrl;this.apiEndpoint=e.apiEndpoint;this.timeout=r.timeout;this.globalInterceptors=n(r.interceptors_);this.interceptors=[];this.packageJson=e.packageJson;this.projectId=r.projectId||o;this.projectIdRequired=e.projectIdRequired!==false;this.providedUserAgent=r.userAgent;const i=s({},e,{projectIdRequired:this.projectIdRequired,projectId:this.projectId,authClient:r.authClient,credentials:r.credentials,keyFile:r.keyFilename,email:r.email,token:r.token});this.makeAuthenticatedRequest=a.util.makeAuthenticatedRequestFactory(i);this.authClient=this.makeAuthenticatedRequest.authClient;this.getCredentials=this.makeAuthenticatedRequest.getCredentials;const c=!!process.env.FUNCTION_NAME;if(c){this.interceptors.push({request(e){e.forever=false;return e}})}}getRequestInterceptors(){return[].slice.call(this.globalInterceptors).concat(this.interceptors).filter((e=>typeof e.request==="function")).map((e=>e.request))}getProjectId(e){if(!e){return this.getProjectIdAsync()}this.getProjectIdAsync().then((r=>e(null,r)),e)}async getProjectIdAsync(){const e=await this.authClient.getProjectId();if(this.projectId===o&&e){this.projectId=e}return this.projectId}request_(e,r){e=s(true,{},e,{timeout:this.timeout});const i=e.uri.indexOf("http")===0;const o=[this.baseUrl];if(this.projectIdRequired){o.push("projects");o.push(this.projectId)}o.push(e.uri);if(i){o.splice(0,o.indexOf(e.uri))}e.uri=o.map((e=>{const r=/^\/*|\/*$/g;return e.replace(r,"")})).join("/").replace(/\/:/g,":");const c=this.getRequestInterceptors();n(e.interceptors_).forEach((e=>{if(typeof e.request==="function"){c.push(e.request)}}));c.forEach((r=>{e=r(e)}));delete e.interceptors_;const l=this.packageJson;let p=a.util.getUserAgentFromPackageJson(l);if(this.providedUserAgent){p=`${this.providedUserAgent} ${p}`}e.headers=s({},e.headers,{"User-Agent":p,"x-goog-api-client":`gl-node/${process.versions.node} gccl/${l.version}`});if(e.shouldReturnStream){return this.makeAuthenticatedRequest(e)}else{this.makeAuthenticatedRequest(e,r)}}request(e,r){Service.prototype.request_.call(this,e,r)}requestStream(e){const r=s(true,e,{shouldReturnStream:true});return Service.prototype.request_.call(this,r)}}r.Service=Service},2221:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true}); + */const n=i(7895);const a=i(8171);const s=i(2221);const o="{{projectId}}";class Service{constructor(e,r={}){this.baseUrl=e.baseUrl;this.apiEndpoint=e.apiEndpoint;this.timeout=r.timeout;this.globalInterceptors=n(r.interceptors_);this.interceptors=[];this.packageJson=e.packageJson;this.projectId=r.projectId||o;this.projectIdRequired=e.projectIdRequired!==false;this.providedUserAgent=r.userAgent;const i=a({},e,{projectIdRequired:this.projectIdRequired,projectId:this.projectId,authClient:r.authClient,credentials:r.credentials,keyFile:r.keyFilename,email:r.email,token:r.token});this.makeAuthenticatedRequest=s.util.makeAuthenticatedRequestFactory(i);this.authClient=this.makeAuthenticatedRequest.authClient;this.getCredentials=this.makeAuthenticatedRequest.getCredentials;const c=!!process.env.FUNCTION_NAME;if(c){this.interceptors.push({request(e){e.forever=false;return e}})}}getRequestInterceptors(){return[].slice.call(this.globalInterceptors).concat(this.interceptors).filter((e=>typeof e.request==="function")).map((e=>e.request))}getProjectId(e){if(!e){return this.getProjectIdAsync()}this.getProjectIdAsync().then((r=>e(null,r)),e)}async getProjectIdAsync(){const e=await this.authClient.getProjectId();if(this.projectId===o&&e){this.projectId=e}return this.projectId}request_(e,r){e=a(true,{},e,{timeout:this.timeout});const i=e.uri.indexOf("http")===0;const o=[this.baseUrl];if(this.projectIdRequired){o.push("projects");o.push(this.projectId)}o.push(e.uri);if(i){o.splice(0,o.indexOf(e.uri))}e.uri=o.map((e=>{const r=/^\/*|\/*$/g;return e.replace(r,"")})).join("/").replace(/\/:/g,":");const c=this.getRequestInterceptors();n(e.interceptors_).forEach((e=>{if(typeof e.request==="function"){c.push(e.request)}}));c.forEach((r=>{e=r(e)}));delete e.interceptors_;const l=this.packageJson;let p=s.util.getUserAgentFromPackageJson(l);if(this.providedUserAgent){p=`${this.providedUserAgent} ${p}`}e.headers=a({},e.headers,{"User-Agent":p,"x-goog-api-client":`gl-node/${process.versions.node} gccl/${l.version}`});if(e.shouldReturnStream){return this.makeAuthenticatedRequest(e)}else{this.makeAuthenticatedRequest(e,r)}}request(e,r){Service.prototype.request_.call(this,e,r)}requestStream(e){const r=a(true,e,{shouldReturnStream:true});return Service.prototype.request_.call(this,r)}}r.Service=Service},2221:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true}); /*! * @module common/util - */const n=i(3497);const s=i(1151);const a=i(8171);const o=i(810);const c=i(3515);const l=i(2781);const p=i(6886);const d=i(6599);const h={timeout:6e4,gzip:true,forever:true,pool:{maxSockets:Infinity}};const g=true;const v=3;class ApiError extends Error{constructor(e){super();if(typeof e!=="object"){this.message=e||"";return}const r=e;this.code=r.code;this.errors=r.errors;this.response=r.response;try{this.errors=JSON.parse(this.response.body).error.errors}catch(e){this.errors=r.errors}this.message=ApiError.createMultiErrorMessage(r,this.errors);Error.captureStackTrace(this)}static createMultiErrorMessage(e,r){const i=new Set;if(e.message){i.add(e.message)}if(r&&r.length){r.forEach((({message:e})=>i.add(e)))}else if(e.response&&e.response.body){i.add(s.decode(e.response.body.toString()))}else if(!e.message){i.add("A failure occurred during this request.")}let n=Array.from(i);if(n.length>1){n=n.map(((e,r)=>` ${r+1}. ${e}`));n.unshift("Multiple errors occurred during the request. Please see the `errors` array for complete details.\n");n.push("\n")}return n.join("\n")}}r.ApiError=ApiError;class PartialFailureError extends Error{constructor(e){super();const r=e;this.errors=r.errors;this.name="PartialFailureError";this.response=r.response;this.message=ApiError.createMultiErrorMessage(r,this.errors)}}r.PartialFailureError=PartialFailureError;class Util{constructor(){this.ApiError=ApiError;this.PartialFailureError=PartialFailureError}noop(){}handleResp(e,r,i,n){n=n||y.noop;const s=a(true,{err:e||null},r&&y.parseHttpRespMessage(r),i&&y.parseHttpRespBody(i));if(!s.err&&r&&typeof s.body==="object"){s.resp.body=s.body}if(s.err&&r){s.err.response=r}n(s.err,s.body,s.resp)}parseHttpRespMessage(e){const r={resp:e};if(e.statusCode<200||e.statusCode>299){r.err=new ApiError({errors:new Array,code:e.statusCode,message:e.statusMessage,response:e})}return r}parseHttpRespBody(e){const r={body:e};if(typeof e==="string"){try{r.body=JSON.parse(e)}catch(i){r.body=e}}if(r.body&&r.body.error){r.err=new ApiError(r.body.error)}return r}makeWritableStream(e,r,i){i=i||y.noop;const n=new ProgressStream;n.on("progress",(r=>e.emit("progress",r)));e.setWritable(n);const s={method:"POST",qs:{uploadType:"multipart"},timeout:0,maxRetries:0};const o=r.metadata||{};const c=a(true,s,r.request,{multipart:[{"Content-Type":"application/json",body:JSON.stringify(o)},{"Content-Type":o.contentType||"application/octet-stream",body:n}]});r.makeAuthenticatedRequest(c,{onAuthenticated(r,n){if(r){e.destroy(r);return}const s=p.teenyRequest.defaults(h);s(n,((r,n,s)=>{y.handleResp(r,n,s,((r,s)=>{if(r){e.destroy(r);return}e.emit("response",n);i(s)}))}))}})}shouldRetryRequest(e){if(e){if([408,429,500,502,503,504].indexOf(e.code)!==-1){return true}if(e.errors){for(const r of e.errors){const e=r.reason;if(e==="rateLimitExceeded"){return true}if(e==="userRateLimitExceeded"){return true}if(e&&e.includes("EAI_AGAIN")){return true}}}}return false}makeAuthenticatedRequestFactory(e){const r=a({},e);if(r.projectId==="{{projectId}}"){delete r.projectId}const i=r.authClient||new o.GoogleAuth(r);function makeAuthenticatedRequest(r,n){let s;let o;const c=a({},e);let l;if(!n){s=d();c.stream=s}const p=typeof n==="object"?n:undefined;const h=typeof n==="function"?n:undefined;const onAuthenticated=(e,i)=>{const n=e;const a=e&&e.message.indexOf("Could not load the default credentials")>-1;if(a){i=r}if(!e||a){try{i=y.decorateRequest(i,o);e=null}catch(r){e=e||r}}if(e){if(s){s.destroy(e)}else{const r=p&&p.onAuthenticated?p.onAuthenticated:h;r(e)}return}if(p&&p.onAuthenticated){p.onAuthenticated(null,i)}else{l=y.makeRequest(i,c,((e,...r)=>{if(e&&e.code===401&&n){e=n}h(e,...r)}))}};Promise.all([e.projectId&&e.projectId!=="{{projectId}}"?new Promise((r=>r(e.projectId))):i.getProjectId(),c.customEndpoint&&c.useAuthWithCustomEndpoint!==true?new Promise((e=>e(r))):i.authorizeRequest(r)]).then((([e,r])=>{o=e;onAuthenticated(null,r)})).catch(onAuthenticated);if(s){return s}return{abort(){setImmediate((()=>{if(l){l.abort();l=null}}))}}}const n=makeAuthenticatedRequest;n.getCredentials=i.getCredentials.bind(i);n.authClient=i;return n}makeRequest(e,r,i){var n,s,a,o,l,d,b;let E=g;if(r.autoRetry!==undefined&&((n=r.retryOptions)===null||n===void 0?void 0:n.autoRetry)!==undefined){throw new ApiError("autoRetry is deprecated. Use retryOptions.autoRetry instead.")}else if(r.autoRetry!==undefined){E=r.autoRetry}else if(((s=r.retryOptions)===null||s===void 0?void 0:s.autoRetry)!==undefined){E=r.retryOptions.autoRetry}let x=v;if(r.maxRetries&&((a=r.retryOptions)===null||a===void 0?void 0:a.maxRetries)){throw new ApiError("maxRetries is deprecated. Use retryOptions.maxRetries instead.")}else if(r.maxRetries){x=r.maxRetries}else if((o=r.retryOptions)===null||o===void 0?void 0:o.maxRetries){x=r.retryOptions.maxRetries}const w={request:p.teenyRequest.defaults(h),retries:E!==false?x:0,noResponseRetries:E!==false?x:0,shouldRetryFn(e){var i,n;const s=y.parseHttpRespMessage(e).err;if((i=r.retryOptions)===null||i===void 0?void 0:i.retryableErrorFn){return s&&((n=r.retryOptions)===null||n===void 0?void 0:n.retryableErrorFn(s))}return s&&y.shouldRetryRequest(s)},maxRetryDelay:(l=r.retryOptions)===null||l===void 0?void 0:l.maxRetryDelay,retryDelayMultiplier:(d=r.retryOptions)===null||d===void 0?void 0:d.retryDelayMultiplier,totalTimeout:(b=r.retryOptions)===null||b===void 0?void 0:b.totalTimeout};if(typeof e.maxRetries==="number"){w.retries=e.maxRetries}if(!r.stream){return c(e,w,((e,r,n)=>{y.handleResp(e,r,n,i)}))}const T=r.stream;let _;const C=(e.method||"GET").toUpperCase()==="GET";if(C){_=c(e,w);T.setReadable(_)}else{_=w.request(e);T.setWritable(_)}_.on("error",T.destroy.bind(T)).on("response",T.emit.bind(T,"response")).on("complete",T.emit.bind(T,"complete"));T.abort=_.abort;return T}decorateRequest(e,r){delete e.autoPaginate;delete e.autoPaginateVal;delete e.objectMode;if(e.qs!==null&&typeof e.qs==="object"){delete e.qs.autoPaginate;delete e.qs.autoPaginateVal;e.qs=n.replaceProjectIdToken(e.qs,r)}if(Array.isArray(e.multipart)){e.multipart=e.multipart.map((e=>n.replaceProjectIdToken(e,r)))}if(e.json!==null&&typeof e.json==="object"){delete e.json.autoPaginate;delete e.json.autoPaginateVal;e.json=n.replaceProjectIdToken(e.json,r)}e.uri=n.replaceProjectIdToken(e.uri,r);return e}isCustomType(e,r){function getConstructorName(e){return e.constructor&&e.constructor.name.toLowerCase()}const i=r.split("/");const n=i[0]&&i[0].toLowerCase();const s=i[1]&&i[1].toLowerCase();if(s&&getConstructorName(e)!==s){return false}let a=e;while(true){if(getConstructorName(a)===n){return true}a=a.parent;if(!a){return false}}}getUserAgentFromPackageJson(e){const r=e.name.replace("@google-cloud","gcloud-node").replace("/","-");return r+"/"+e.version}maybeOptionsOrCallback(e,r){return typeof e==="function"?[{},e]:[e,r]}}r.Util=Util;class ProgressStream extends l.Transform{constructor(){super(...arguments);this.bytesRead=0}_transform(e,r,i){this.bytesRead+=e.length;this.emit("progress",{bytesWritten:this.bytesRead,contentLength:"*"});this.push(e);i()}}const y=new Util;r.util=y},7895:e=>{"use strict";const arrify=e=>{if(e===null||e===undefined){return[]}if(Array.isArray(e)){return e}if(typeof e==="string"){return[e]}if(typeof e[Symbol.iterator]==="function"){return[...e]}return[e]};e.exports=arrify},6412:(e,r,i)=>{"use strict"; + */const n=i(3497);const a=i(1151);const s=i(8171);const o=i(810);const c=i(3515);const l=i(2781);const p=i(6886);const d=i(6599);const h={timeout:6e4,gzip:true,forever:true,pool:{maxSockets:Infinity}};const g=true;const v=3;class ApiError extends Error{constructor(e){super();if(typeof e!=="object"){this.message=e||"";return}const r=e;this.code=r.code;this.errors=r.errors;this.response=r.response;try{this.errors=JSON.parse(this.response.body).error.errors}catch(e){this.errors=r.errors}this.message=ApiError.createMultiErrorMessage(r,this.errors);Error.captureStackTrace(this)}static createMultiErrorMessage(e,r){const i=new Set;if(e.message){i.add(e.message)}if(r&&r.length){r.forEach((({message:e})=>i.add(e)))}else if(e.response&&e.response.body){i.add(a.decode(e.response.body.toString()))}else if(!e.message){i.add("A failure occurred during this request.")}let n=Array.from(i);if(n.length>1){n=n.map(((e,r)=>` ${r+1}. ${e}`));n.unshift("Multiple errors occurred during the request. Please see the `errors` array for complete details.\n");n.push("\n")}return n.join("\n")}}r.ApiError=ApiError;class PartialFailureError extends Error{constructor(e){super();const r=e;this.errors=r.errors;this.name="PartialFailureError";this.response=r.response;this.message=ApiError.createMultiErrorMessage(r,this.errors)}}r.PartialFailureError=PartialFailureError;class Util{constructor(){this.ApiError=ApiError;this.PartialFailureError=PartialFailureError}noop(){}handleResp(e,r,i,n){n=n||y.noop;const a=s(true,{err:e||null},r&&y.parseHttpRespMessage(r),i&&y.parseHttpRespBody(i));if(!a.err&&r&&typeof a.body==="object"){a.resp.body=a.body}if(a.err&&r){a.err.response=r}n(a.err,a.body,a.resp)}parseHttpRespMessage(e){const r={resp:e};if(e.statusCode<200||e.statusCode>299){r.err=new ApiError({errors:new Array,code:e.statusCode,message:e.statusMessage,response:e})}return r}parseHttpRespBody(e){const r={body:e};if(typeof e==="string"){try{r.body=JSON.parse(e)}catch(i){r.body=e}}if(r.body&&r.body.error){r.err=new ApiError(r.body.error)}return r}makeWritableStream(e,r,i){i=i||y.noop;const n=new ProgressStream;n.on("progress",(r=>e.emit("progress",r)));e.setWritable(n);const a={method:"POST",qs:{uploadType:"multipart"},timeout:0,maxRetries:0};const o=r.metadata||{};const c=s(true,a,r.request,{multipart:[{"Content-Type":"application/json",body:JSON.stringify(o)},{"Content-Type":o.contentType||"application/octet-stream",body:n}]});r.makeAuthenticatedRequest(c,{onAuthenticated(r,n){if(r){e.destroy(r);return}const a=p.teenyRequest.defaults(h);a(n,((r,n,a)=>{y.handleResp(r,n,a,((r,a)=>{if(r){e.destroy(r);return}e.emit("response",n);i(a)}))}))}})}shouldRetryRequest(e){if(e){if([408,429,500,502,503,504].indexOf(e.code)!==-1){return true}if(e.errors){for(const r of e.errors){const e=r.reason;if(e==="rateLimitExceeded"){return true}if(e==="userRateLimitExceeded"){return true}if(e&&e.includes("EAI_AGAIN")){return true}}}}return false}makeAuthenticatedRequestFactory(e){const r=s({},e);if(r.projectId==="{{projectId}}"){delete r.projectId}const i=r.authClient||new o.GoogleAuth(r);function makeAuthenticatedRequest(r,n){let a;let o;const c=s({},e);let l;if(!n){a=d();c.stream=a}const p=typeof n==="object"?n:undefined;const h=typeof n==="function"?n:undefined;const onAuthenticated=(e,i)=>{const n=e;const s=e&&e.message.indexOf("Could not load the default credentials")>-1;if(s){i=r}if(!e||s){try{i=y.decorateRequest(i,o);e=null}catch(r){e=e||r}}if(e){if(a){a.destroy(e)}else{const r=p&&p.onAuthenticated?p.onAuthenticated:h;r(e)}return}if(p&&p.onAuthenticated){p.onAuthenticated(null,i)}else{l=y.makeRequest(i,c,((e,...r)=>{if(e&&e.code===401&&n){e=n}h(e,...r)}))}};Promise.all([e.projectId&&e.projectId!=="{{projectId}}"?new Promise((r=>r(e.projectId))):i.getProjectId(),c.customEndpoint&&c.useAuthWithCustomEndpoint!==true?new Promise((e=>e(r))):i.authorizeRequest(r)]).then((([e,r])=>{o=e;onAuthenticated(null,r)})).catch(onAuthenticated);if(a){return a}return{abort(){setImmediate((()=>{if(l){l.abort();l=null}}))}}}const n=makeAuthenticatedRequest;n.getCredentials=i.getCredentials.bind(i);n.authClient=i;return n}makeRequest(e,r,i){var n,a,s,o,l,d,b;let x=g;if(r.autoRetry!==undefined&&((n=r.retryOptions)===null||n===void 0?void 0:n.autoRetry)!==undefined){throw new ApiError("autoRetry is deprecated. Use retryOptions.autoRetry instead.")}else if(r.autoRetry!==undefined){x=r.autoRetry}else if(((a=r.retryOptions)===null||a===void 0?void 0:a.autoRetry)!==undefined){x=r.retryOptions.autoRetry}let E=v;if(r.maxRetries&&((s=r.retryOptions)===null||s===void 0?void 0:s.maxRetries)){throw new ApiError("maxRetries is deprecated. Use retryOptions.maxRetries instead.")}else if(r.maxRetries){E=r.maxRetries}else if((o=r.retryOptions)===null||o===void 0?void 0:o.maxRetries){E=r.retryOptions.maxRetries}const w={request:p.teenyRequest.defaults(h),retries:x!==false?E:0,noResponseRetries:x!==false?E:0,shouldRetryFn(e){var i,n;const a=y.parseHttpRespMessage(e).err;if((i=r.retryOptions)===null||i===void 0?void 0:i.retryableErrorFn){return a&&((n=r.retryOptions)===null||n===void 0?void 0:n.retryableErrorFn(a))}return a&&y.shouldRetryRequest(a)},maxRetryDelay:(l=r.retryOptions)===null||l===void 0?void 0:l.maxRetryDelay,retryDelayMultiplier:(d=r.retryOptions)===null||d===void 0?void 0:d.retryDelayMultiplier,totalTimeout:(b=r.retryOptions)===null||b===void 0?void 0:b.totalTimeout};if(typeof e.maxRetries==="number"){w.retries=e.maxRetries}if(!r.stream){return c(e,w,((e,r,n)=>{y.handleResp(e,r,n,i)}))}const C=r.stream;let T;const _=(e.method||"GET").toUpperCase()==="GET";if(_){T=c(e,w);C.setReadable(T)}else{T=w.request(e);C.setWritable(T)}T.on("error",C.destroy.bind(C)).on("response",C.emit.bind(C,"response")).on("complete",C.emit.bind(C,"complete"));C.abort=T.abort;return C}decorateRequest(e,r){delete e.autoPaginate;delete e.autoPaginateVal;delete e.objectMode;if(e.qs!==null&&typeof e.qs==="object"){delete e.qs.autoPaginate;delete e.qs.autoPaginateVal;e.qs=n.replaceProjectIdToken(e.qs,r)}if(Array.isArray(e.multipart)){e.multipart=e.multipart.map((e=>n.replaceProjectIdToken(e,r)))}if(e.json!==null&&typeof e.json==="object"){delete e.json.autoPaginate;delete e.json.autoPaginateVal;e.json=n.replaceProjectIdToken(e.json,r)}e.uri=n.replaceProjectIdToken(e.uri,r);return e}isCustomType(e,r){function getConstructorName(e){return e.constructor&&e.constructor.name.toLowerCase()}const i=r.split("/");const n=i[0]&&i[0].toLowerCase();const a=i[1]&&i[1].toLowerCase();if(a&&getConstructorName(e)!==a){return false}let s=e;while(true){if(getConstructorName(s)===n){return true}s=s.parent;if(!s){return false}}}getUserAgentFromPackageJson(e){const r=e.name.replace("@google-cloud","gcloud-node").replace("/","-");return r+"/"+e.version}maybeOptionsOrCallback(e,r){return typeof e==="function"?[{},e]:[e,r]}}r.Util=Util;class ProgressStream extends l.Transform{constructor(){super(...arguments);this.bytesRead=0}_transform(e,r,i){this.bytesRead+=e.length;this.emit("progress",{bytesWritten:this.bytesRead,contentLength:"*"});this.push(e);i()}}const y=new Util;r.util=y},7895:e=>{"use strict";const arrify=e=>{if(e===null||e===undefined){return[]}if(Array.isArray(e)){return e}if(typeof e==="string"){return[e]}if(typeof e[Symbol.iterator]==="function"){return[...e]}return[e]};e.exports=arrify},6412:(e,r,i)=>{"use strict"; /*! * Copyright 2015 Google Inc. All Rights Reserved. * @@ -28,7 +28,7 @@ */Object.defineProperty(r,"__esModule",{value:true});r.ResourceStream=r.paginator=r.Paginator=void 0; /*! * @module common/paginator - */const n=i(7578);const s=i(8171);const a=i(2199);Object.defineProperty(r,"ResourceStream",{enumerable:true,get:function(){return a.ResourceStream}}); + */const n=i(7578);const a=i(8171);const s=i(2199);Object.defineProperty(r,"ResourceStream",{enumerable:true,get:function(){return s.ResourceStream}}); /*! Developer Documentation * * paginator is used to auto-paginate `nextQuery` methods as well as @@ -46,7 +46,7 @@ * * Methods to extend should be written to accept callbacks and return a * `nextQuery`. - */class Paginator{extend(e,r){r=n(r);r.forEach((r=>{const i=e.prototype[r];e.prototype[r+"_"]=i;e.prototype[r]=function(...e){const r=o.parseArguments_(e);return o.run_(r,i.bind(this))}}))}streamify(e){return function(...r){const i=o.parseArguments_(r);const n=this[e+"_"]||this[e];return o.runAsStream_(i,n.bind(this))}}parseArguments_(e){let r;let i=true;let n=-1;let a=-1;let o;const c=e[0];const l=e[e.length-1];if(typeof c==="function"){o=c}else{r=c}if(typeof l==="function"){o=l}if(typeof r==="object"){r=s(true,{},r);if(r.maxResults&&typeof r.maxResults==="number"){a=r.maxResults}else if(typeof r.pageSize==="number"){a=r.pageSize}if(r.maxApiCalls&&typeof r.maxApiCalls==="number"){n=r.maxApiCalls;delete r.maxApiCalls}if(a!==-1||r.autoPaginate===false){i=false}}const p={query:r||{},autoPaginate:i,maxApiCalls:n,maxResults:a,callback:o};p.streamOptions=s(true,{},p.query);delete p.streamOptions.autoPaginate;delete p.streamOptions.maxResults;delete p.streamOptions.pageSize;return p}run_(e,r){const i=e.query;const n=e.callback;if(!e.autoPaginate){return r(i,n)}const s=new Array;const a=new Promise(((i,n)=>{o.runAsStream_(e,r).on("error",n).on("data",(e=>s.push(e))).on("end",(()=>i(s)))}));if(!n){return a.then((e=>[e]))}a.then((e=>n(null,e)),(e=>n(e)))}runAsStream_(e,r){return new a.ResourceStream(e,r)}}r.Paginator=Paginator;const o=new Paginator;r.paginator=o},2199:(e,r,i)=>{"use strict"; + */class Paginator{extend(e,r){r=n(r);r.forEach((r=>{const i=e.prototype[r];e.prototype[r+"_"]=i;e.prototype[r]=function(...e){const r=o.parseArguments_(e);return o.run_(r,i.bind(this))}}))}streamify(e){return function(...r){const i=o.parseArguments_(r);const n=this[e+"_"]||this[e];return o.runAsStream_(i,n.bind(this))}}parseArguments_(e){let r;let i=true;let n=-1;let s=-1;let o;const c=e[0];const l=e[e.length-1];if(typeof c==="function"){o=c}else{r=c}if(typeof l==="function"){o=l}if(typeof r==="object"){r=a(true,{},r);if(r.maxResults&&typeof r.maxResults==="number"){s=r.maxResults}else if(typeof r.pageSize==="number"){s=r.pageSize}if(r.maxApiCalls&&typeof r.maxApiCalls==="number"){n=r.maxApiCalls;delete r.maxApiCalls}if(s!==-1||r.autoPaginate===false){i=false}}const p={query:r||{},autoPaginate:i,maxApiCalls:n,maxResults:s,callback:o};p.streamOptions=a(true,{},p.query);delete p.streamOptions.autoPaginate;delete p.streamOptions.maxResults;delete p.streamOptions.pageSize;return p}run_(e,r){const i=e.query;const n=e.callback;if(!e.autoPaginate){return r(i,n)}const a=new Array;const s=new Promise(((i,n)=>{o.runAsStream_(e,r).on("error",n).on("data",(e=>a.push(e))).on("end",(()=>i(a)))}));if(!n){return s.then((e=>[e]))}s.then((e=>n(null,e)),(e=>n(e)))}runAsStream_(e,r){return new s.ResourceStream(e,r)}}r.Paginator=Paginator;const o=new Paginator;r.paginator=o},2199:(e,r,i)=>{"use strict"; /*! * Copyright 2019 Google Inc. All Rights Reserved. * @@ -61,67 +61,67 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */Object.defineProperty(r,"__esModule",{value:true});r.ResourceStream=void 0;const n=i(2781);class ResourceStream extends n.Transform{constructor(e,r){const i=Object.assign({objectMode:true},e.streamOptions);super(i);this._ended=false;this._maxApiCalls=e.maxApiCalls===-1?Infinity:e.maxApiCalls;this._nextQuery=e.query;this._reading=false;this._requestFn=r;this._requestsMade=0;this._resultsToSend=e.maxResults===-1?Infinity:e.maxResults}end(...e){this._ended=true;return super.end(...e)}_read(){if(this._reading){return}this._reading=true;try{this._requestFn(this._nextQuery,((e,r,i)=>{if(e){this.destroy(e);return}this._nextQuery=i;if(this._resultsToSend!==Infinity){r=r.splice(0,this._resultsToSend);this._resultsToSend-=r.length}let n=true;for(const e of r){if(this._ended){break}n=this.push(e)}const s=!this._nextQuery||this._resultsToSend<1;const a=++this._requestsMade>=this._maxApiCalls;if(s||a){this.end()}if(n&&!this._ended){setImmediate((()=>this._read()))}this._reading=false}))}catch(e){this.destroy(e)}}}r.ResourceStream=ResourceStream},7578:e=>{"use strict";const arrify=e=>{if(e===null||e===undefined){return[]}if(Array.isArray(e)){return e}if(typeof e==="string"){return[e]}if(typeof e[Symbol.iterator]==="function"){return[...e]}return[e]};e.exports=arrify},3497:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const n=i(2781);function replaceProjectIdToken(e,r){if(Array.isArray(e)){e=e.map((e=>replaceProjectIdToken(e,r)))}if(e!==null&&typeof e==="object"&&!(e instanceof Buffer)&&!(e instanceof n.Stream)&&typeof e.hasOwnProperty==="function"){for(const i in e){if(e.hasOwnProperty(i)){e[i]=replaceProjectIdToken(e[i],r)}}}if(typeof e==="string"&&e.indexOf("{{projectId}}")>-1){if(!r||r==="{{projectId}}"){throw new MissingProjectIdError}e=e.replace(/{{projectId}}/g,r)}return e}r.replaceProjectIdToken=replaceProjectIdToken;class MissingProjectIdError extends Error{constructor(){super(...arguments);this.message=`Sorry, we cannot connect to Cloud Services without a project\n ID. You may specify one with an environment variable named\n "GOOGLE_CLOUD_PROJECT".`.replace(/ +/g," ")}}r.MissingProjectIdError=MissingProjectIdError},9203:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.callbackifyAll=r.callbackify=r.promisifyAll=r.promisify=void 0;function promisify(e,r){if(e.promisified_){return e}r=r||{};const i=Array.prototype.slice;const wrapper=function(){let n;for(n=arguments.length-1;n>=0;n--){const r=arguments[n];if(typeof r==="undefined"){continue}if(typeof r!=="function"){break}return e.apply(this,arguments)}const s=i.call(arguments,0,n+1);let a=Promise;if(this&&this.Promise){a=this.Promise}return new a(((n,a)=>{s.push(((...e)=>{const s=i.call(e);const o=s.shift();if(o){return a(o)}if(r.singular&&s.length===1){n(s[0])}else{n(s)}}));e.apply(this,s)}))};wrapper.promisified_=true;return wrapper}r.promisify=promisify;function promisifyAll(e,i){const n=i&&i.exclude||[];const s=Object.getOwnPropertyNames(e.prototype);const a=s.filter((r=>!n.includes(r)&&typeof e.prototype[r]==="function"&&!/(^_|(Stream|_)|promise$)|^constructor$/.test(r)));a.forEach((n=>{const s=e.prototype[n];if(!s.promisified_){e.prototype[n]=r.promisify(s,i)}}))}r.promisifyAll=promisifyAll;function callbackify(e){if(e.callbackified_){return e}const wrapper=function(){if(typeof arguments[arguments.length-1]!=="function"){return e.apply(this,arguments)}const r=Array.prototype.pop.call(arguments);e.apply(this,arguments).then((e=>{e=Array.isArray(e)?e:[e];r(null,...e)}),(e=>r(e)))};wrapper.callbackified_=true;return wrapper}r.callbackify=callbackify;function callbackifyAll(e,i){const n=i&&i.exclude||[];const s=Object.getOwnPropertyNames(e.prototype);const a=s.filter((r=>!n.includes(r)&&typeof e.prototype[r]==="function"&&!/^_|(Stream|_)|^constructor$/.test(r)));a.forEach((i=>{const n=e.prototype[i];if(!n.callbackified_){e.prototype[i]=r.callbackify(n)}}))}r.callbackifyAll=callbackifyAll},1672:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.AclRoleAccessorMethods=r.Acl=void 0;const n=i(9203);const s=i(363);class AclRoleAccessorMethods{constructor(){this.owners={};this.readers={};this.writers={};this.owners={};this.readers={};this.writers={};AclRoleAccessorMethods.roles.forEach(this._assignAccessMethods.bind(this))}_assignAccessMethods(e){const r=AclRoleAccessorMethods.accessMethods;const i=AclRoleAccessorMethods.entities;const n=e.toLowerCase()+"s";this[n]=i.reduce(((i,n)=>{const s=n.charAt(n.length-1)==="-";r.forEach((r=>{let a=r+n[0].toUpperCase()+n.substr(1);if(s){a=a.replace("-","")}i[a]=(i,a,o)=>{let c;if(typeof a==="function"){o=a;a={}}if(s){c=n+i}else{c=n;o=i}a=Object.assign({entity:c,role:e},a);const l=[a];if(typeof o==="function"){l.push(o)}return this[r].apply(this,l)}}));return i}),{})}}r.AclRoleAccessorMethods=AclRoleAccessorMethods;AclRoleAccessorMethods.accessMethods=["add","delete"];AclRoleAccessorMethods.entities=["allAuthenticatedUsers","allUsers","domain-","group-","project-","user-"];AclRoleAccessorMethods.roles=["OWNER","READER","WRITER"];class Acl extends AclRoleAccessorMethods{constructor(e){super();this.pathPrefix=e.pathPrefix;this.request_=e.request}add(e,r){const i={};if(e.generation){i.generation=e.generation}if(e.userProject){i.userProject=e.userProject}this.request({method:"POST",uri:"",qs:i,json:{entity:e.entity,role:e.role.toUpperCase()}},((e,i)=>{if(e){r(e,null,i);return}r(null,this.makeAclObject_(i),i)}))}delete(e,r){const i={};if(e.generation){i.generation=e.generation}if(e.userProject){i.userProject=e.userProject}this.request({method:"DELETE",uri:"/"+encodeURIComponent(e.entity),qs:i},((e,i)=>{r(e,i)}))}get(e,r){const i=typeof e==="object"?e:null;const n=typeof e==="function"?e:r;let a="";const o={};if(i){a="/"+encodeURIComponent(i.entity);if(i.generation){o.generation=i.generation}if(i.userProject){o.userProject=i.userProject}}this.request({uri:a,qs:o},((e,r)=>{if(e){n(e,null,r);return}let i;if(r.items){i=s(r.items).map(this.makeAclObject_)}else{i=this.makeAclObject_(r)}n(null,i,r)}))}update(e,r){const i={};if(e.generation){i.generation=e.generation}if(e.userProject){i.userProject=e.userProject}this.request({method:"PUT",uri:"/"+encodeURIComponent(e.entity),qs:i,json:{role:e.role.toUpperCase()}},((e,i)=>{if(e){r(e,null,i);return}r(null,this.makeAclObject_(i),i)}))}makeAclObject_(e){const r={entity:e.entity,role:e.role};if(e.projectTeam){r.projectTeam=e.projectTeam}return r}request(e,r){e.uri=this.pathPrefix+e.uri;this.request_(e,r)}}r.Acl=Acl; + */Object.defineProperty(r,"__esModule",{value:true});r.ResourceStream=void 0;const n=i(2781);class ResourceStream extends n.Transform{constructor(e,r){const i=Object.assign({objectMode:true},e.streamOptions);super(i);this._ended=false;this._maxApiCalls=e.maxApiCalls===-1?Infinity:e.maxApiCalls;this._nextQuery=e.query;this._reading=false;this._requestFn=r;this._requestsMade=0;this._resultsToSend=e.maxResults===-1?Infinity:e.maxResults}end(...e){this._ended=true;return super.end(...e)}_read(){if(this._reading){return}this._reading=true;try{this._requestFn(this._nextQuery,((e,r,i)=>{if(e){this.destroy(e);return}this._nextQuery=i;if(this._resultsToSend!==Infinity){r=r.splice(0,this._resultsToSend);this._resultsToSend-=r.length}let n=true;for(const e of r){if(this._ended){break}n=this.push(e)}const a=!this._nextQuery||this._resultsToSend<1;const s=++this._requestsMade>=this._maxApiCalls;if(a||s){this.end()}if(n&&!this._ended){setImmediate((()=>this._read()))}this._reading=false}))}catch(e){this.destroy(e)}}}r.ResourceStream=ResourceStream},7578:e=>{"use strict";const arrify=e=>{if(e===null||e===undefined){return[]}if(Array.isArray(e)){return e}if(typeof e==="string"){return[e]}if(typeof e[Symbol.iterator]==="function"){return[...e]}return[e]};e.exports=arrify},3497:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const n=i(2781);function replaceProjectIdToken(e,r){if(Array.isArray(e)){e=e.map((e=>replaceProjectIdToken(e,r)))}if(e!==null&&typeof e==="object"&&!(e instanceof Buffer)&&!(e instanceof n.Stream)&&typeof e.hasOwnProperty==="function"){for(const i in e){if(e.hasOwnProperty(i)){e[i]=replaceProjectIdToken(e[i],r)}}}if(typeof e==="string"&&e.indexOf("{{projectId}}")>-1){if(!r||r==="{{projectId}}"){throw new MissingProjectIdError}e=e.replace(/{{projectId}}/g,r)}return e}r.replaceProjectIdToken=replaceProjectIdToken;class MissingProjectIdError extends Error{constructor(){super(...arguments);this.message=`Sorry, we cannot connect to Cloud Services without a project\n ID. You may specify one with an environment variable named\n "GOOGLE_CLOUD_PROJECT".`.replace(/ +/g," ")}}r.MissingProjectIdError=MissingProjectIdError},9203:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.callbackifyAll=r.callbackify=r.promisifyAll=r.promisify=void 0;function promisify(e,r){if(e.promisified_){return e}r=r||{};const i=Array.prototype.slice;const wrapper=function(){let n;for(n=arguments.length-1;n>=0;n--){const r=arguments[n];if(typeof r==="undefined"){continue}if(typeof r!=="function"){break}return e.apply(this,arguments)}const a=i.call(arguments,0,n+1);let s=Promise;if(this&&this.Promise){s=this.Promise}return new s(((n,s)=>{a.push(((...e)=>{const a=i.call(e);const o=a.shift();if(o){return s(o)}if(r.singular&&a.length===1){n(a[0])}else{n(a)}}));e.apply(this,a)}))};wrapper.promisified_=true;return wrapper}r.promisify=promisify;function promisifyAll(e,i){const n=i&&i.exclude||[];const a=Object.getOwnPropertyNames(e.prototype);const s=a.filter((r=>!n.includes(r)&&typeof e.prototype[r]==="function"&&!/(^_|(Stream|_)|promise$)|^constructor$/.test(r)));s.forEach((n=>{const a=e.prototype[n];if(!a.promisified_){e.prototype[n]=r.promisify(a,i)}}))}r.promisifyAll=promisifyAll;function callbackify(e){if(e.callbackified_){return e}const wrapper=function(){if(typeof arguments[arguments.length-1]!=="function"){return e.apply(this,arguments)}const r=Array.prototype.pop.call(arguments);e.apply(this,arguments).then((e=>{e=Array.isArray(e)?e:[e];r(null,...e)}),(e=>r(e)))};wrapper.callbackified_=true;return wrapper}r.callbackify=callbackify;function callbackifyAll(e,i){const n=i&&i.exclude||[];const a=Object.getOwnPropertyNames(e.prototype);const s=a.filter((r=>!n.includes(r)&&typeof e.prototype[r]==="function"&&!/^_|(Stream|_)|^constructor$/.test(r)));s.forEach((i=>{const n=e.prototype[i];if(!n.callbackified_){e.prototype[i]=r.callbackify(n)}}))}r.callbackifyAll=callbackifyAll},3044:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.AclRoleAccessorMethods=r.Acl=void 0;const n=i(9203);const a=i(363);class AclRoleAccessorMethods{constructor(){this.owners={};this.readers={};this.writers={};this.owners={};this.readers={};this.writers={};AclRoleAccessorMethods.roles.forEach(this._assignAccessMethods.bind(this))}_assignAccessMethods(e){const r=AclRoleAccessorMethods.accessMethods;const i=AclRoleAccessorMethods.entities;const n=e.toLowerCase()+"s";this[n]=i.reduce(((i,n)=>{const a=n.charAt(n.length-1)==="-";r.forEach((r=>{let s=r+n[0].toUpperCase()+n.substr(1);if(a){s=s.replace("-","")}i[s]=(i,s,o)=>{let c;if(typeof s==="function"){o=s;s={}}if(a){c=n+i}else{c=n;o=i}s=Object.assign({entity:c,role:e},s);const l=[s];if(typeof o==="function"){l.push(o)}return this[r].apply(this,l)}}));return i}),{})}}r.AclRoleAccessorMethods=AclRoleAccessorMethods;AclRoleAccessorMethods.accessMethods=["add","delete"];AclRoleAccessorMethods.entities=["allAuthenticatedUsers","allUsers","domain-","group-","project-","user-"];AclRoleAccessorMethods.roles=["OWNER","READER","WRITER"];class Acl extends AclRoleAccessorMethods{constructor(e){super();this.pathPrefix=e.pathPrefix;this.request_=e.request}add(e,r){const i={};if(e.generation){i.generation=e.generation}if(e.userProject){i.userProject=e.userProject}this.request({method:"POST",uri:"",qs:i,json:{entity:e.entity,role:e.role.toUpperCase()}},((e,i)=>{if(e){r(e,null,i);return}r(null,this.makeAclObject_(i),i)}))}delete(e,r){const i={};if(e.generation){i.generation=e.generation}if(e.userProject){i.userProject=e.userProject}this.request({method:"DELETE",uri:"/"+encodeURIComponent(e.entity),qs:i},((e,i)=>{r(e,i)}))}get(e,r){const i=typeof e==="object"?e:null;const n=typeof e==="function"?e:r;let s="";const o={};if(i){s="/"+encodeURIComponent(i.entity);if(i.generation){o.generation=i.generation}if(i.userProject){o.userProject=i.userProject}}this.request({uri:s,qs:o},((e,r)=>{if(e){n(e,null,r);return}let i;if(r.items){i=a(r.items).map(this.makeAclObject_)}else{i=this.makeAclObject_(r)}n(null,i,r)}))}update(e,r){const i={};if(e.generation){i.generation=e.generation}if(e.userProject){i.userProject=e.userProject}this.request({method:"PUT",uri:"/"+encodeURIComponent(e.entity),qs:i,json:{role:e.role.toUpperCase()}},((e,i)=>{if(e){r(e,null,i);return}r(null,this.makeAclObject_(i),i)}))}makeAclObject_(e){const r={entity:e.entity,role:e.role};if(e.projectTeam){r.projectTeam=e.projectTeam}return r}request(e,r){e.uri=this.pathPrefix+e.uri;this.request_(e,r)}}r.Acl=Acl; /*! Developer Documentation * * All async methods (except for streams) will return a Promise in the event * that a callback is omitted. - */n.promisifyAll(Acl,{exclude:["request"]})},8561:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Bucket=r.AvailableServiceObjectMethods=r.BucketActionToHTTPMethod=void 0;const n=i(4777);const s=i(6412);const a=i(9203);const o=i(363);const c=i(8171);const l=i(7147);const p=i(3583);const d=i(1017);const h=i(7684);const g=i(3837);const v=i(3415);const y=i(4480);const b=i(1672);const E=i(5373);const x=i(66);const w=i(7523);const T=i(346);const _=i(9665);const C=i(2781);var R;(function(e){e["list"]="GET"})(R=r.BucketActionToHTTPMethod||(r.BucketActionToHTTPMethod={}));var I;(function(e){e[e["setMetadata"]=0]="setMetadata";e[e["delete"]=1]="delete"})(I=r.AvailableServiceObjectMethods||(r.AvailableServiceObjectMethods={}));const O=5e6;class Bucket extends n.ServiceObject{constructor(e,r,i){var n,a,o,c;i=i||{};r=r.replace(/^gs:\/\//,"").replace(/\/+$/,"");const l={};if((n=i===null||i===void 0?void 0:i.preconditionOpts)===null||n===void 0?void 0:n.ifGenerationMatch){l.ifGenerationMatch=i.preconditionOpts.ifGenerationMatch}if((a=i===null||i===void 0?void 0:i.preconditionOpts)===null||a===void 0?void 0:a.ifGenerationNotMatch){l.ifGenerationNotMatch=i.preconditionOpts.ifGenerationNotMatch}if((o=i===null||i===void 0?void 0:i.preconditionOpts)===null||o===void 0?void 0:o.ifMetagenerationMatch){l.ifMetagenerationMatch=i.preconditionOpts.ifMetagenerationMatch}if((c=i===null||i===void 0?void 0:i.preconditionOpts)===null||c===void 0?void 0:c.ifMetagenerationNotMatch){l.ifMetagenerationNotMatch=i.preconditionOpts.ifMetagenerationNotMatch}const p=i.userProject;if(typeof p==="string"){l.userProject=p}const d={create:{reqOpts:{qs:l}},delete:{reqOpts:{qs:l}},exists:{reqOpts:{qs:l}},get:{reqOpts:{qs:l}},getMetadata:{reqOpts:{qs:l}},setMetadata:{reqOpts:{qs:l}}};super({parent:e,baseUrl:"/b",id:r,createMethod:e.createBucket.bind(e),methods:d});this.name=r;this.storage=e;this.userProject=i.userProject;this.acl=new b.Acl({request:this.request.bind(this),pathPrefix:"/acl"});this.acl.default=new b.Acl({request:this.request.bind(this),pathPrefix:"/defaultObjectAcl"});this.iam=new x.Iam(this);this.getFilesStream=s.paginator.streamify("getFiles");this.instanceRetryValue=e.retryOptions.autoRetry;this.instancePreconditionOpts=i===null||i===void 0?void 0:i.preconditionOpts}getFilesStream(e){return new C.Readable}addLifecycleRule(e,r,i){let n;if(typeof r==="function"){i=r}else if(r){n=r}n=n||{};const s=o(e).map((e=>{if(typeof e.action==="object"){return e}const r={};r.condition={};r.action={type:e.action.charAt(0).toUpperCase()+e.action.slice(1)};if(e.storageClass){r.action.storageClass=e.storageClass}for(const i in e.condition){if(e.condition[i]instanceof Date){r.condition[i]=e.condition[i].toISOString().replace(/T.+$/,"")}else{r.condition[i]=e.condition[i]}}return r}));this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,I.setMetadata);if(n.append===false){this.setMetadata({lifecycle:{rule:s}},i);this.storage.retryOptions.autoRetry=this.instanceRetryValue;return}this.getMetadata(((e,r)=>{if(e){i(e);return}const n=o(r.lifecycle&&r.lifecycle.rule);this.setMetadata({lifecycle:{rule:n.concat(s)}},i)}));this.storage.retryOptions.autoRetry=this.instanceRetryValue}combine(e,r,i,s){if(!Array.isArray(e)||e.length===0){throw new Error("You must provide at least one source file.")}if(!r){throw new Error("A destination file must be specified.")}let a={};if(typeof i==="function"){s=i}else if(i){a=i}const convertToFile=e=>{if(e instanceof E.File){return e}return this.file(e)};e=e.map(convertToFile);const o=convertToFile(r);s=s||n.util.noop;if(!o.metadata.contentType){const e=p.contentType(o.name);if(e){o.metadata.contentType=e}}let c=this.storage.retryOptions.maxRetries;e.forEach((e=>{var r;if(((r=e===null||e===void 0?void 0:e.instancePreconditionOpts)===null||r===void 0?void 0:r.ifGenerationMatch)===undefined&&this.storage.retryOptions.idempotencyStrategy===T.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===T.IdempotencyStrategy.RetryNever){c=0}}));Object.assign(a,this.instancePreconditionOpts,a);o.request({method:"POST",uri:"/compose",maxRetries:c,json:{destination:{contentType:o.metadata.contentType},sourceObjects:e.map((e=>{var r,i,n,s;const a={name:e.name};if(((r=e===null||e===void 0?void 0:e.metadata)===null||r===void 0?void 0:r.generation)||((i=e===null||e===void 0?void 0:e.instancePreconditionOpts)===null||i===void 0?void 0:i.ifGenerationMatch)){a.generation=((n=e===null||e===void 0?void 0:e.metadata)===null||n===void 0?void 0:n.generation)||((s=e===null||e===void 0?void 0:e.instancePreconditionOpts)===null||s===void 0?void 0:s.ifGenerationMatch)}return a}))},qs:a},((e,r)=>{if(e){s(e,null,r);return}s(null,o,r)}))}createChannel(e,r,i,n){if(typeof e!=="string"){throw new Error("An ID is required to create a channel.")}if(typeof r.address!=="string"){throw new Error("An address is required to create a channel.")}let s={};if(typeof i==="function"){n=i}else if(i){s=i}this.request({method:"POST",uri:"/o/watch",json:Object.assign({id:e,type:"web_hook"},r),qs:s},((r,i)=>{if(r){n(r,null,i);return}const s=i.resourceId;const a=this.storage.channel(e,s);a.metadata=i;n(null,a,i)}))}createNotification(e,r,i){let s={};if(typeof r==="function"){i=r}else if(r){s=r}const a=e!==null&&typeof e==="object";if(a&&n.util.isCustomType(e,"pubsub/topic")){e=e.name}if(typeof e!=="string"){throw new Error("A valid topic name is required.")}const o=Object.assign({topic:e},s);if(o.topic.indexOf("projects")!==0){o.topic="projects/{{projectId}}/topics/"+o.topic}o.topic="//pubsub.googleapis.com/"+o.topic;if(!o.payloadFormat){o.payloadFormat="JSON_API_V1"}const c={};if(o.userProject){c.userProject=o.userProject;delete o.userProject}this.request({method:"POST",uri:"/notificationConfigs",json:y(o),qs:c,maxRetries:0},((e,r)=>{if(e){i(e,null,r);return}const n=this.notification(r.id);n.metadata=r;i(null,n,r)}))}deleteFiles(e,r){let i={};if(typeof e==="function"){r=e}else if(e){i=e}const n=10;const s=[];const deleteFile=e=>e.delete(i).catch((e=>{if(!i.force){throw e}s.push(e)}));this.getFiles(i).then((([e])=>{const r=h(n);const i=e.map((e=>r((()=>deleteFile(e)))));return Promise.all(i)})).then((()=>r(s.length>0?s:null)),r)}deleteLabels(e,r){let i=new Array;if(typeof e==="function"){r=e}else if(e){i=o(e)}const deleteLabels=e=>{const i=e.reduce(((e,r)=>{e[r]=null;return e}),{});this.setLabels(i,r)};if(i.length===0){this.getLabels(((e,i)=>{if(e){r(e);return}deleteLabels(Object.keys(i))}))}else{deleteLabels(i)}}disableRequesterPays(e){this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,I.setMetadata);this.setMetadata({billing:{requesterPays:false}},e||n.util.noop);this.storage.retryOptions.autoRetry=this.instanceRetryValue}enableLogging(e,r){if(!e||typeof e==="function"||typeof e.prefix==="undefined"){throw new Error("A configuration object with a prefix is required.")}const i=e.bucket?e.bucket.id||e.bucket:this.id;(async()=>{let n;try{const[r]=await this.iam.getPolicy();r.bindings.push({members:["group:cloud-storage-analytics@google.com"],role:"roles/storage.objectCreator"});await this.iam.setPolicy(r);this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,I.setMetadata);[n]=await this.setMetadata({logging:{logBucket:i,logObjectPrefix:e.prefix}})}catch(e){r(e);return}finally{this.storage.retryOptions.autoRetry=this.instanceRetryValue}r(null,n)})()}enableRequesterPays(e){this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,I.setMetadata);this.setMetadata({billing:{requesterPays:true}},e||n.util.noop);this.storage.retryOptions.autoRetry=this.instanceRetryValue}file(e,r){if(!e){throw Error("A file name must be specified.")}return new E.File(this,e,r)}getFiles(e,r){let i=typeof e==="object"?e:{};if(!r){r=e}i=Object.assign({},i);if(i.directory){i.prefix=`${i.directory}/`.replace(/\/*$/,"/");delete i.directory}this.request({uri:"/o",qs:i},((e,n)=>{if(e){r(e,null,null,n);return}const s=o(n.items).map((e=>{const r={};if(i.versions){r.generation=e.generation}if(e.kmsKeyName){r.kmsKeyName=e.kmsKeyName}const n=this.file(e.name,r);n.metadata=e;return n}));let a=null;if(n.nextPageToken){a=Object.assign({},i,{pageToken:n.nextPageToken})}r(null,s,a,n)}))}getLabels(e,r){let i={};if(typeof e==="function"){r=e}else if(e){i=e}this.getMetadata(i,((e,i)=>{if(e){r(e,null);return}r(null,i.labels||{})}))}getNotifications(e,r){let i={};if(typeof e==="function"){r=e}else if(e){i=e}this.request({uri:"/notificationConfigs",qs:i},((e,i)=>{if(e){r(e,null,i);return}const n=o(i.items).map((e=>{const r=this.notification(e.id);r.metadata=e;return r}));r(null,n,i)}))}getSignedUrl(e,r){const i=R[e.action];if(!i){throw new Error("The action is not provided or invalid.")}const n={method:i,expires:e.expires,version:e.version,cname:e.cname,extensionHeaders:e.extensionHeaders||{},queryParams:e.queryParams||{}};if(!this.signer){this.signer=new _.URLSigner(this.storage.authClient,this)}this.signer.getSignedUrl(n).then((e=>r(null,e)),r)}lock(e,r){const i=typeof e;if(i!=="number"&&i!=="string"){throw new Error("A metageneration must be provided.")}this.request({method:"POST",uri:"/lockRetentionPolicy",qs:{ifMetagenerationMatch:e}},r)}makePrivate(e,r){const i=typeof e==="object"?e:{};r=typeof e==="function"?e:r;i.private=true;const n={predefinedAcl:"projectPrivate"};if(i.userProject){n.userProject=i.userProject}this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,I.setMetadata);const s=c({},i.metadata,{acl:null});this.setMetadata(s,n).then((()=>{if(i.includeFiles){return g.promisify(this.makeAllFilesPublicPrivate_).call(this,i)}return[]})).then((e=>r(null,e)),r).finally((()=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue}))}makePublic(e,r){const i=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const n=c(true,{public:true},i);this.acl.add({entity:"allUsers",role:"READER"}).then((()=>this.acl.default.add({entity:"allUsers",role:"READER"}))).then((()=>{if(n.includeFiles){return g.promisify(this.makeAllFilesPublicPrivate_).call(this,n)}return[]})).then((e=>r(null,e)),r)}notification(e){if(!e){throw new Error("You must supply a notification ID.")}return new w.Notification(this,e)}removeRetentionPeriod(e){this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,I.setMetadata);this.setMetadata({retentionPolicy:null},e);this.storage.retryOptions.autoRetry=this.instanceRetryValue}request(e,r){if(this.userProject&&(!e.qs||!e.qs.userProject)){e.qs=c(e.qs,{userProject:this.userProject})}return super.request(e,r)}setLabels(e,r,i){const s=typeof r==="object"?r:{};i=typeof r==="function"?r:i;i=i||n.util.noop;this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,I.setMetadata);this.setMetadata({labels:e},s,i);this.storage.retryOptions.autoRetry=this.instanceRetryValue}setRetentionPeriod(e,r){this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,I.setMetadata);this.setMetadata({retentionPolicy:{retentionPeriod:e}},r);this.storage.retryOptions.autoRetry=this.instanceRetryValue}setCorsConfiguration(e,r){this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,I.setMetadata);this.setMetadata({cors:e},r);this.storage.retryOptions.autoRetry=this.instanceRetryValue}setStorageClass(e,r,i){const n=typeof r==="object"?r:{};i=typeof r==="function"?r:i;this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,I.setMetadata);e=e.replace(/-/g,"_").replace(/([a-z])([A-Z])/g,((e,r,i)=>r+"_"+i)).toUpperCase();this.setMetadata({storageClass:e},n,i);this.storage.retryOptions.autoRetry=this.instanceRetryValue}setUserProject(e){this.userProject=e;const r=["create","delete","exists","get","getMetadata","setMetadata"];r.forEach((r=>{const i=this.methods[r];if(typeof i==="object"){if(typeof i.reqOpts==="object"){c(i.reqOpts.qs,{userProject:e})}else{i.reqOpts={qs:{userProject:e}}}}}))}upload(e,r,i){var n,s;const upload=r=>{const n=v((async i=>{await new Promise(((n,s)=>{var o,p;if(r===0&&((p=(o=c===null||c===void 0?void 0:c.storage)===null||o===void 0?void 0:o.retryOptions)===null||p===void 0?void 0:p.autoRetry)){c.storage.retryOptions.autoRetry=false}const d=c.createWriteStream(a);if(a.onUploadProgress){d.on("progress",a.onUploadProgress)}l.createReadStream(e).pipe(d).on("error",(e=>{if(this.storage.retryOptions.autoRetry&&this.storage.retryOptions.retryableErrorFn(e)){return s(e)}else{return i(e)}})).on("finish",(()=>n()))}))}),{retries:r,factor:this.storage.retryOptions.retryDelayMultiplier,maxTimeout:this.storage.retryOptions.maxRetryDelay*1e3,maxRetryTime:this.storage.retryOptions.totalTimeout*1e3});if(!i){return n}else{return n.then((()=>{if(i){return i(null,c,c.metadata)}})).catch(i)}};if(global["GCLOUD_SANDBOX_ENV"]){return}let a=typeof r==="object"?r:{};i=typeof r==="function"?r:i;a=Object.assign({metadata:{}},a);let o=this.storage.retryOptions.maxRetries;if(((n=a===null||a===void 0?void 0:a.preconditionOpts)===null||n===void 0?void 0:n.ifMetagenerationMatch)===undefined&&((s=this.instancePreconditionOpts)===null||s===void 0?void 0:s.ifMetagenerationMatch)===undefined&&this.storage.retryOptions.idempotencyStrategy===T.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===T.IdempotencyStrategy.RetryNever){o=0}let c;if(a.destination instanceof E.File){c=a.destination}else if(a.destination!==null&&typeof a.destination==="string"){c=this.file(a.destination,{encryptionKey:a.encryptionKey,kmsKeyName:a.kmsKeyName,preconditionOpts:this.instancePreconditionOpts})}else{const r=d.basename(e);c=this.file(r,{encryptionKey:a.encryptionKey,kmsKeyName:a.kmsKeyName,preconditionOpts:this.instancePreconditionOpts})}if(a.resumable!==null&&typeof a.resumable==="boolean"){upload(o)}else{l.stat(e,((e,r)=>{if(e){i(e);return}if(r.size<=O){a.resumable=false}upload(o)}))}}makeAllFilesPublicPrivate_(e,r){const i=10;const n=[];const s=[];const a=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const processFile=async e=>{try{await(a.public?e.makePublic():e.makePrivate(a));s.push(e)}catch(e){if(!a.force){throw e}n.push(e)}};this.getFiles(a).then((([e])=>{const r=h(i);const n=e.map((e=>r((()=>processFile(e)))));return Promise.all(n)})).then((()=>r(n.length>0?n:null,s)),(e=>r(e,s)))}getId(){return this.id}disableAutoRetryConditionallyIdempotent_(e,r){var i,n;if(typeof e==="object"&&((n=(i=e===null||e===void 0?void 0:e.reqOpts)===null||i===void 0?void 0:i.qs)===null||n===void 0?void 0:n.ifMetagenerationMatch)===undefined&&(r===I.setMetadata||r===I.delete)&&this.storage.retryOptions.idempotencyStrategy===T.IdempotencyStrategy.RetryConditional){this.storage.retryOptions.autoRetry=false}else if(this.storage.retryOptions.idempotencyStrategy===T.IdempotencyStrategy.RetryNever){this.storage.retryOptions.autoRetry=false}}}r.Bucket=Bucket; + */n.promisifyAll(Acl,{exclude:["request"]})},8561:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Bucket=r.AvailableServiceObjectMethods=r.BucketActionToHTTPMethod=void 0;const n=i(4777);const a=i(6412);const s=i(9203);const o=i(363);const c=i(8171);const l=i(7147);const p=i(3583);const d=i(1017);const h=i(7684);const g=i(3837);const v=i(3415);const y=i(4480);const b=i(3044);const x=i(5373);const E=i(66);const w=i(7523);const C=i(346);const T=i(9665);const _=i(2781);var I;(function(e){e["list"]="GET"})(I=r.BucketActionToHTTPMethod||(r.BucketActionToHTTPMethod={}));var R;(function(e){e[e["setMetadata"]=0]="setMetadata";e[e["delete"]=1]="delete"})(R=r.AvailableServiceObjectMethods||(r.AvailableServiceObjectMethods={}));const O=5e6;class Bucket extends n.ServiceObject{constructor(e,r,i){var n,s,o,c;i=i||{};r=r.replace(/^gs:\/\//,"").replace(/\/+$/,"");const l={};if((n=i===null||i===void 0?void 0:i.preconditionOpts)===null||n===void 0?void 0:n.ifGenerationMatch){l.ifGenerationMatch=i.preconditionOpts.ifGenerationMatch}if((s=i===null||i===void 0?void 0:i.preconditionOpts)===null||s===void 0?void 0:s.ifGenerationNotMatch){l.ifGenerationNotMatch=i.preconditionOpts.ifGenerationNotMatch}if((o=i===null||i===void 0?void 0:i.preconditionOpts)===null||o===void 0?void 0:o.ifMetagenerationMatch){l.ifMetagenerationMatch=i.preconditionOpts.ifMetagenerationMatch}if((c=i===null||i===void 0?void 0:i.preconditionOpts)===null||c===void 0?void 0:c.ifMetagenerationNotMatch){l.ifMetagenerationNotMatch=i.preconditionOpts.ifMetagenerationNotMatch}const p=i.userProject;if(typeof p==="string"){l.userProject=p}const d={create:{reqOpts:{qs:l}},delete:{reqOpts:{qs:l}},exists:{reqOpts:{qs:l}},get:{reqOpts:{qs:l}},getMetadata:{reqOpts:{qs:l}},setMetadata:{reqOpts:{qs:l}}};super({parent:e,baseUrl:"/b",id:r,createMethod:e.createBucket.bind(e),methods:d});this.name=r;this.storage=e;this.userProject=i.userProject;this.acl=new b.Acl({request:this.request.bind(this),pathPrefix:"/acl"});this.acl.default=new b.Acl({request:this.request.bind(this),pathPrefix:"/defaultObjectAcl"});this.iam=new E.Iam(this);this.getFilesStream=a.paginator.streamify("getFiles");this.instanceRetryValue=e.retryOptions.autoRetry;this.instancePreconditionOpts=i===null||i===void 0?void 0:i.preconditionOpts}getFilesStream(e){return new _.Readable}addLifecycleRule(e,r,i){let n;if(typeof r==="function"){i=r}else if(r){n=r}n=n||{};const a=o(e).map((e=>{if(typeof e.action==="object"){return e}const r={};r.condition={};r.action={type:e.action.charAt(0).toUpperCase()+e.action.slice(1)};if(e.storageClass){r.action.storageClass=e.storageClass}for(const i in e.condition){if(e.condition[i]instanceof Date){r.condition[i]=e.condition[i].toISOString().replace(/T.+$/,"")}else{r.condition[i]=e.condition[i]}}return r}));this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,R.setMetadata);if(n.append===false){this.setMetadata({lifecycle:{rule:a}},i);this.storage.retryOptions.autoRetry=this.instanceRetryValue;return}this.getMetadata(((e,r)=>{if(e){i(e);return}const n=o(r.lifecycle&&r.lifecycle.rule);this.setMetadata({lifecycle:{rule:n.concat(a)}},i)}));this.storage.retryOptions.autoRetry=this.instanceRetryValue}combine(e,r,i,a){if(!Array.isArray(e)||e.length===0){throw new Error("You must provide at least one source file.")}if(!r){throw new Error("A destination file must be specified.")}let s={};if(typeof i==="function"){a=i}else if(i){s=i}const convertToFile=e=>{if(e instanceof x.File){return e}return this.file(e)};e=e.map(convertToFile);const o=convertToFile(r);a=a||n.util.noop;if(!o.metadata.contentType){const e=p.contentType(o.name);if(e){o.metadata.contentType=e}}let c=this.storage.retryOptions.maxRetries;e.forEach((e=>{var r;if(((r=e===null||e===void 0?void 0:e.instancePreconditionOpts)===null||r===void 0?void 0:r.ifGenerationMatch)===undefined&&this.storage.retryOptions.idempotencyStrategy===C.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===C.IdempotencyStrategy.RetryNever){c=0}}));Object.assign(s,this.instancePreconditionOpts,s);o.request({method:"POST",uri:"/compose",maxRetries:c,json:{destination:{contentType:o.metadata.contentType},sourceObjects:e.map((e=>{var r,i,n,a;const s={name:e.name};if(((r=e===null||e===void 0?void 0:e.metadata)===null||r===void 0?void 0:r.generation)||((i=e===null||e===void 0?void 0:e.instancePreconditionOpts)===null||i===void 0?void 0:i.ifGenerationMatch)){s.generation=((n=e===null||e===void 0?void 0:e.metadata)===null||n===void 0?void 0:n.generation)||((a=e===null||e===void 0?void 0:e.instancePreconditionOpts)===null||a===void 0?void 0:a.ifGenerationMatch)}return s}))},qs:s},((e,r)=>{if(e){a(e,null,r);return}a(null,o,r)}))}createChannel(e,r,i,n){if(typeof e!=="string"){throw new Error("An ID is required to create a channel.")}if(typeof r.address!=="string"){throw new Error("An address is required to create a channel.")}let a={};if(typeof i==="function"){n=i}else if(i){a=i}this.request({method:"POST",uri:"/o/watch",json:Object.assign({id:e,type:"web_hook"},r),qs:a},((r,i)=>{if(r){n(r,null,i);return}const a=i.resourceId;const s=this.storage.channel(e,a);s.metadata=i;n(null,s,i)}))}createNotification(e,r,i){let a={};if(typeof r==="function"){i=r}else if(r){a=r}const s=e!==null&&typeof e==="object";if(s&&n.util.isCustomType(e,"pubsub/topic")){e=e.name}if(typeof e!=="string"){throw new Error("A valid topic name is required.")}const o=Object.assign({topic:e},a);if(o.topic.indexOf("projects")!==0){o.topic="projects/{{projectId}}/topics/"+o.topic}o.topic="//pubsub.googleapis.com/"+o.topic;if(!o.payloadFormat){o.payloadFormat="JSON_API_V1"}const c={};if(o.userProject){c.userProject=o.userProject;delete o.userProject}this.request({method:"POST",uri:"/notificationConfigs",json:y(o),qs:c,maxRetries:0},((e,r)=>{if(e){i(e,null,r);return}const n=this.notification(r.id);n.metadata=r;i(null,n,r)}))}deleteFiles(e,r){let i={};if(typeof e==="function"){r=e}else if(e){i=e}const n=10;const a=[];const deleteFile=e=>e.delete(i).catch((e=>{if(!i.force){throw e}a.push(e)}));this.getFiles(i).then((([e])=>{const r=h(n);const i=e.map((e=>r((()=>deleteFile(e)))));return Promise.all(i)})).then((()=>r(a.length>0?a:null)),r)}deleteLabels(e,r){let i=new Array;if(typeof e==="function"){r=e}else if(e){i=o(e)}const deleteLabels=e=>{const i=e.reduce(((e,r)=>{e[r]=null;return e}),{});this.setLabels(i,r)};if(i.length===0){this.getLabels(((e,i)=>{if(e){r(e);return}deleteLabels(Object.keys(i))}))}else{deleteLabels(i)}}disableRequesterPays(e){this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,R.setMetadata);this.setMetadata({billing:{requesterPays:false}},e||n.util.noop);this.storage.retryOptions.autoRetry=this.instanceRetryValue}enableLogging(e,r){if(!e||typeof e==="function"||typeof e.prefix==="undefined"){throw new Error("A configuration object with a prefix is required.")}const i=e.bucket?e.bucket.id||e.bucket:this.id;(async()=>{let n;try{const[r]=await this.iam.getPolicy();r.bindings.push({members:["group:cloud-storage-analytics@google.com"],role:"roles/storage.objectCreator"});await this.iam.setPolicy(r);this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,R.setMetadata);[n]=await this.setMetadata({logging:{logBucket:i,logObjectPrefix:e.prefix}})}catch(e){r(e);return}finally{this.storage.retryOptions.autoRetry=this.instanceRetryValue}r(null,n)})()}enableRequesterPays(e){this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,R.setMetadata);this.setMetadata({billing:{requesterPays:true}},e||n.util.noop);this.storage.retryOptions.autoRetry=this.instanceRetryValue}file(e,r){if(!e){throw Error("A file name must be specified.")}return new x.File(this,e,r)}getFiles(e,r){let i=typeof e==="object"?e:{};if(!r){r=e}i=Object.assign({},i);if(i.directory){i.prefix=`${i.directory}/`.replace(/\/*$/,"/");delete i.directory}this.request({uri:"/o",qs:i},((e,n)=>{if(e){r(e,null,null,n);return}const a=o(n.items).map((e=>{const r={};if(i.versions){r.generation=e.generation}if(e.kmsKeyName){r.kmsKeyName=e.kmsKeyName}const n=this.file(e.name,r);n.metadata=e;return n}));let s=null;if(n.nextPageToken){s=Object.assign({},i,{pageToken:n.nextPageToken})}r(null,a,s,n)}))}getLabels(e,r){let i={};if(typeof e==="function"){r=e}else if(e){i=e}this.getMetadata(i,((e,i)=>{if(e){r(e,null);return}r(null,i.labels||{})}))}getNotifications(e,r){let i={};if(typeof e==="function"){r=e}else if(e){i=e}this.request({uri:"/notificationConfigs",qs:i},((e,i)=>{if(e){r(e,null,i);return}const n=o(i.items).map((e=>{const r=this.notification(e.id);r.metadata=e;return r}));r(null,n,i)}))}getSignedUrl(e,r){const i=I[e.action];if(!i){throw new Error("The action is not provided or invalid.")}const n={method:i,expires:e.expires,version:e.version,cname:e.cname,extensionHeaders:e.extensionHeaders||{},queryParams:e.queryParams||{}};if(!this.signer){this.signer=new T.URLSigner(this.storage.authClient,this)}this.signer.getSignedUrl(n).then((e=>r(null,e)),r)}lock(e,r){const i=typeof e;if(i!=="number"&&i!=="string"){throw new Error("A metageneration must be provided.")}this.request({method:"POST",uri:"/lockRetentionPolicy",qs:{ifMetagenerationMatch:e}},r)}makePrivate(e,r){const i=typeof e==="object"?e:{};r=typeof e==="function"?e:r;i.private=true;const n={predefinedAcl:"projectPrivate"};if(i.userProject){n.userProject=i.userProject}this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,R.setMetadata);const a=c({},i.metadata,{acl:null});this.setMetadata(a,n).then((()=>{if(i.includeFiles){return g.promisify(this.makeAllFilesPublicPrivate_).call(this,i)}return[]})).then((e=>r(null,e)),r).finally((()=>{this.storage.retryOptions.autoRetry=this.instanceRetryValue}))}makePublic(e,r){const i=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const n=c(true,{public:true},i);this.acl.add({entity:"allUsers",role:"READER"}).then((()=>this.acl.default.add({entity:"allUsers",role:"READER"}))).then((()=>{if(n.includeFiles){return g.promisify(this.makeAllFilesPublicPrivate_).call(this,n)}return[]})).then((e=>r(null,e)),r)}notification(e){if(!e){throw new Error("You must supply a notification ID.")}return new w.Notification(this,e)}removeRetentionPeriod(e){this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,R.setMetadata);this.setMetadata({retentionPolicy:null},e);this.storage.retryOptions.autoRetry=this.instanceRetryValue}request(e,r){if(this.userProject&&(!e.qs||!e.qs.userProject)){e.qs=c(e.qs,{userProject:this.userProject})}return super.request(e,r)}setLabels(e,r,i){const a=typeof r==="object"?r:{};i=typeof r==="function"?r:i;i=i||n.util.noop;this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,R.setMetadata);this.setMetadata({labels:e},a,i);this.storage.retryOptions.autoRetry=this.instanceRetryValue}setRetentionPeriod(e,r){this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,R.setMetadata);this.setMetadata({retentionPolicy:{retentionPeriod:e}},r);this.storage.retryOptions.autoRetry=this.instanceRetryValue}setCorsConfiguration(e,r){this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,R.setMetadata);this.setMetadata({cors:e},r);this.storage.retryOptions.autoRetry=this.instanceRetryValue}setStorageClass(e,r,i){const n=typeof r==="object"?r:{};i=typeof r==="function"?r:i;this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,R.setMetadata);e=e.replace(/-/g,"_").replace(/([a-z])([A-Z])/g,((e,r,i)=>r+"_"+i)).toUpperCase();this.setMetadata({storageClass:e},n,i);this.storage.retryOptions.autoRetry=this.instanceRetryValue}setUserProject(e){this.userProject=e;const r=["create","delete","exists","get","getMetadata","setMetadata"];r.forEach((r=>{const i=this.methods[r];if(typeof i==="object"){if(typeof i.reqOpts==="object"){c(i.reqOpts.qs,{userProject:e})}else{i.reqOpts={qs:{userProject:e}}}}}))}upload(e,r,i){var n,a;const upload=r=>{const n=v((async i=>{await new Promise(((n,a)=>{var o,p;if(r===0&&((p=(o=c===null||c===void 0?void 0:c.storage)===null||o===void 0?void 0:o.retryOptions)===null||p===void 0?void 0:p.autoRetry)){c.storage.retryOptions.autoRetry=false}const d=c.createWriteStream(s);if(s.onUploadProgress){d.on("progress",s.onUploadProgress)}l.createReadStream(e).pipe(d).on("error",(e=>{if(this.storage.retryOptions.autoRetry&&this.storage.retryOptions.retryableErrorFn(e)){return a(e)}else{return i(e)}})).on("finish",(()=>n()))}))}),{retries:r,factor:this.storage.retryOptions.retryDelayMultiplier,maxTimeout:this.storage.retryOptions.maxRetryDelay*1e3,maxRetryTime:this.storage.retryOptions.totalTimeout*1e3});if(!i){return n}else{return n.then((()=>{if(i){return i(null,c,c.metadata)}})).catch(i)}};if(global["GCLOUD_SANDBOX_ENV"]){return}let s=typeof r==="object"?r:{};i=typeof r==="function"?r:i;s=Object.assign({metadata:{}},s);let o=this.storage.retryOptions.maxRetries;if(((n=s===null||s===void 0?void 0:s.preconditionOpts)===null||n===void 0?void 0:n.ifMetagenerationMatch)===undefined&&((a=this.instancePreconditionOpts)===null||a===void 0?void 0:a.ifMetagenerationMatch)===undefined&&this.storage.retryOptions.idempotencyStrategy===C.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===C.IdempotencyStrategy.RetryNever){o=0}let c;if(s.destination instanceof x.File){c=s.destination}else if(s.destination!==null&&typeof s.destination==="string"){c=this.file(s.destination,{encryptionKey:s.encryptionKey,kmsKeyName:s.kmsKeyName,preconditionOpts:this.instancePreconditionOpts})}else{const r=d.basename(e);c=this.file(r,{encryptionKey:s.encryptionKey,kmsKeyName:s.kmsKeyName,preconditionOpts:this.instancePreconditionOpts})}if(s.resumable!==null&&typeof s.resumable==="boolean"){upload(o)}else{l.stat(e,((e,r)=>{if(e){i(e);return}if(r.size<=O){s.resumable=false}upload(o)}))}}makeAllFilesPublicPrivate_(e,r){const i=10;const n=[];const a=[];const s=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const processFile=async e=>{try{await(s.public?e.makePublic():e.makePrivate(s));a.push(e)}catch(e){if(!s.force){throw e}n.push(e)}};this.getFiles(s).then((([e])=>{const r=h(i);const n=e.map((e=>r((()=>processFile(e)))));return Promise.all(n)})).then((()=>r(n.length>0?n:null,a)),(e=>r(e,a)))}getId(){return this.id}disableAutoRetryConditionallyIdempotent_(e,r){var i,n;if(typeof e==="object"&&((n=(i=e===null||e===void 0?void 0:e.reqOpts)===null||i===void 0?void 0:i.qs)===null||n===void 0?void 0:n.ifMetagenerationMatch)===undefined&&(r===R.setMetadata||r===R.delete)&&this.storage.retryOptions.idempotencyStrategy===C.IdempotencyStrategy.RetryConditional){this.storage.retryOptions.autoRetry=false}else if(this.storage.retryOptions.idempotencyStrategy===C.IdempotencyStrategy.RetryNever){this.storage.retryOptions.autoRetry=false}}}r.Bucket=Bucket; /*! Developer Documentation * * These methods can be auto-paginated. - */s.paginator.extend(Bucket,"getFiles"); + */a.paginator.extend(Bucket,"getFiles"); /*! Developer Documentation * * All async methods (except for streams) will return a Promise in the event * that a callback is omitted. - */a.promisifyAll(Bucket,{exclude:["request","file","notification"]})},8953:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Channel=void 0;const n=i(4777);const s=i(9203);class Channel extends n.ServiceObject{constructor(e,r,i){const n={parent:e,baseUrl:"/channels",id:"",methods:{}};super(n);const s=this.metadata;s.id=r;s.resourceId=i}stop(e){e=e||n.util.noop;this.request({method:"POST",uri:"/stop",json:this.metadata},((r,i)=>{e(r,i)}))}}r.Channel=Channel; + */s.promisifyAll(Bucket,{exclude:["request","file","notification"]})},8953:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Channel=void 0;const n=i(4777);const a=i(9203);class Channel extends n.ServiceObject{constructor(e,r,i){const n={parent:e,baseUrl:"/channels",id:"",methods:{}};super(n);const a=this.metadata;a.id=r;a.resourceId=i}stop(e){e=e||n.util.noop;this.request({method:"POST",uri:"/stop",json:this.metadata},((r,i)=>{e(r,i)}))}}r.Channel=Channel; /*! Developer Documentation * * All async methods (except for streams) will return a Promise in the event * that a callback is omitted. - */s.promisifyAll(Channel)},5373:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.File=r.STORAGE_POST_POLICY_BASE_URL=r.ActionToHTTPMethod=void 0;const n=i(4777);const s=i(9203);const a=i(6763);const o=i(1766);const c=i(6113);const l=i(869);const p=i(8171);const d=i(7147);const h=i(3562);const g=i(5377);const v=i(2037);const y=i(212);const b=i(8934);const E=i(2781);const x=i(9626);const w=i(3522);const T=i(9796);const _=i(346);const C=i(8561);const R=i(1672);const I=i(9665);const O=i(6599);const P=i(1862);const N=i(3415);var B;(function(e){e["read"]="GET";e["write"]="PUT";e["delete"]="DELETE";e["resumable"]="POST"})(B=r.ActionToHTTPMethod||(r.ActionToHTTPMethod={}));class ResumableUploadError extends Error{constructor(){super(...arguments);this.name="ResumableUploadError"}}r.STORAGE_POST_POLICY_BASE_URL="https://storage.googleapis.com";const j=/^gs:\/\/([a-z0-9_.-]+)\/(.+)$/;class RequestError extends Error{}const L=7*24*60*60;class File extends n.ServiceObject{constructor(e,r,i={}){var n,s;const a={};let o;if(i.generation!==null){if(typeof i.generation==="string"){o=Number(i.generation)}else{o=i.generation}if(!isNaN(o)){a.generation=o}}Object.assign(a,i.preconditionOpts);const c=i.userProject||e.userProject;if(typeof c==="string"){a.userProject=c}const l={delete:{reqOpts:{qs:a}},exists:{reqOpts:{qs:a}},get:{reqOpts:{qs:a}},getMetadata:{reqOpts:{qs:a}},setMetadata:{reqOpts:{qs:a}}};super({parent:e,baseUrl:"/o",id:encodeURIComponent(r),methods:l});this.bucket=e;this.storage=e.parent;if(i.generation!==null){let e;if(typeof i.generation==="string"){e=Number(i.generation)}else{e=i.generation}if(!isNaN(e)){this.generation=e}}this.kmsKeyName=i.kmsKeyName;this.userProject=c;this.name=r;if(i.encryptionKey){this.setEncryptionKey(i.encryptionKey)}this.acl=new R.Acl({request:this.request.bind(this),pathPrefix:"/acl"});this.instanceRetryValue=(s=(n=this.storage)===null||n===void 0?void 0:n.retryOptions)===null||s===void 0?void 0:s.autoRetry;this.instancePreconditionOpts=i===null||i===void 0?void 0:i.preconditionOpts}shouldRetryBasedOnPreconditionAndIdempotencyStrat(e){var r;return!((e===null||e===void 0?void 0:e.ifGenerationMatch)===undefined&&((r=this.instancePreconditionOpts)===null||r===void 0?void 0:r.ifGenerationMatch)===undefined&&this.storage.retryOptions.idempotencyStrategy===_.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===_.IdempotencyStrategy.RetryNever)}copy(e,r,i){const s=new Error("Destination file should have a name.");if(!e){throw s}let a={};if(typeof r==="function"){i=r}else if(r){a=r}a=p(true,{},a);i=i||n.util.noop;let o;let c;let l;if(typeof e==="string"){const r=j.exec(e);if(r!==null&&r.length===3){o=this.storage.bucket(r[1]);c=r[2]}else{o=this.bucket;c=e}}else if(e instanceof C.Bucket){o=e;c=this.name}else if(e instanceof File){o=e.bucket;c=e.name;l=e}else{throw s}const d={};if(this.generation!==undefined){d.sourceGeneration=this.generation}if(a.token!==undefined){d.rewriteToken=a.token}if(a.userProject!==undefined){d.userProject=a.userProject;delete a.userProject}if(a.predefinedAcl!==undefined){d.destinationPredefinedAcl=a.predefinedAcl;delete a.predefinedAcl}l=l||o.file(c);const h={};if(this.encryptionKey!==undefined){h["x-goog-copy-source-encryption-algorithm"]="AES256";h["x-goog-copy-source-encryption-key"]=this.encryptionKeyBase64;h["x-goog-copy-source-encryption-key-sha256"]=this.encryptionKeyHash}if(l.encryptionKey!==undefined){this.setEncryptionKey(l.encryptionKey)}else if(a.destinationKmsKeyName!==undefined){d.destinationKmsKeyName=a.destinationKmsKeyName;delete a.destinationKmsKeyName}else if(l.kmsKeyName!==undefined){d.destinationKmsKeyName=l.kmsKeyName}if(d.destinationKmsKeyName){this.kmsKeyName=d.destinationKmsKeyName;const e=this.interceptors.indexOf(this.encryptionKeyInterceptor);if(e>-1){this.interceptors.splice(e,1)}}this.request({method:"POST",uri:`/rewriteTo/b/${o.name}/o/${encodeURIComponent(l.name)}`,qs:d,json:a,headers:h},((e,r)=>{if(e){i(e,null,r);return}if(r.rewriteToken){const e={token:r.rewriteToken};if(d.userProject){e.userProject=d.userProject}if(d.destinationKmsKeyName){e.destinationKmsKeyName=d.destinationKmsKeyName}this.copy(l,e,i);return}i(null,l,r)}))}createReadStream(e={}){e=Object.assign({decompress:true},e);const r=typeof e.start==="number"||typeof e.end==="number";const i=e.end<0;let s;const a=x(new E.PassThrough);let c=true;let l=true;let p=false;if(typeof e.validation==="string"){e.validation=e.validation.toLowerCase();l=e.validation==="crc32c";p=e.validation==="md5"}else if(e.validation===false){l=false}const d=!r&&(l||p);if(r){if(typeof e.validation==="string"||e.validation===true){throw new Error("Cannot use validation with file ranges (start/end).")}l=false;p=false}const makeRequest=()=>{const g={alt:"media"};if(this.generation){g.generation=this.generation}if(e.userProject){g.userProject=e.userProject}const v={"Accept-Encoding":"gzip","Cache-Control":"no-store"};if(r){const r=typeof e.start==="number"?e.start:"0";const n=typeof e.end==="number"?e.end:"";v.Range=`bytes=${i?n:`${r}-${n}`}`}const b={forever:false,uri:"",headers:v,qs:g};const E={};this.requestStream(b).on("error",(e=>{a.destroy(e)})).on("response",(e=>{a.emit("response",e);n.util.handleResp(null,e,null,onResponse)})).resume();const onResponse=(r,i,n)=>{if(r){o(n).then((e=>{r.message=e;a.destroy(r)}));return}n.on("error",onComplete);const g=n.toJSON().headers;c=g["content-encoding"]==="gzip";const v=[];if(d){if(typeof g["x-goog-hash"]==="string"){g["x-goog-hash"].split(",").forEach((e=>{const r=e.indexOf("=");const i=e.substr(0,r);const n=e.substr(r+1);E[i]=n}))}s=h({crc32c:l,md5:p});v.push(s)}if(c&&e.decompress){v.push(T.createGunzip())}if(v.length===1){n=n.pipe(v[0])}else if(v.length>1){n=n.pipe(y.obj(v))}n.on("error",onComplete).on("end",onComplete).pipe(a,{end:false})};let x=false;const onComplete=async i=>{if(x){return}x=true;if(i){a.destroy(i);return}if(r||!d){a.end();return}if(!c){try{await this.getMetadata({userProject:e.userProject})}catch(e){a.destroy(e);return}if(this.metadata.contentEncoding==="gzip"){a.end();return}}let n=l||p;if(l&&E.crc32c){n=!s.test("crc32c",E.crc32c.substr(4))}if(p&&E.md5){n=!s.test("md5",E.md5)}if(p&&!E.md5){const e=new RequestError(["MD5 verification was specified, but is not available for the","requested object. MD5 is not available for composite objects."].join(" "));e.code="MD5_NOT_AVAILABLE";a.destroy(e)}else if(n){const e=new RequestError(["The downloaded data did not match the data from the server.","To be sure the content is the same, you should download the","file again."].join(" "));e.code="CONTENT_DOWNLOAD_MISMATCH";a.destroy(e)}else{a.end()}}};a.on("reading",makeRequest);return a}createResumableUpload(e,r){var i,n;const s=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const a=this.storage.retryOptions;if(((i=s===null||s===void 0?void 0:s.preconditionOpts)===null||i===void 0?void 0:i.ifGenerationMatch)===undefined&&((n=this.instancePreconditionOpts)===null||n===void 0?void 0:n.ifGenerationMatch)===undefined&&this.storage.retryOptions.idempotencyStrategy===_.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===_.IdempotencyStrategy.RetryNever){a.autoRetry=false}b.createURI({authClient:this.storage.authClient,apiEndpoint:this.storage.apiEndpoint,bucket:this.bucket.name,configPath:s.configPath,customRequestOptions:this.getRequestInterceptors().reduce(((e,r)=>r(e)),{}),file:this.name,generation:this.generation,key:this.encryptionKey,kmsKeyName:this.kmsKeyName,metadata:s.metadata,offset:s.offset,origin:s.origin,predefinedAcl:s.predefinedAcl,private:s.private,public:s.public,userProject:s.userProject||this.userProject,retryOptions:a,params:(s===null||s===void 0?void 0:s.preconditionOpts)||this.instancePreconditionOpts},r);this.storage.retryOptions.autoRetry=this.instanceRetryValue}createWriteStream(e={}){e=Object.assign({metadata:{}},e);if(e.contentType){e.metadata.contentType=e.contentType}if(!e.metadata.contentType||e.metadata.contentType==="auto"){const r=g.getType(this.name);if(r){e.metadata.contentType=r}}let r=e.gzip;if(r==="auto"){r=a(e.metadata.contentType)}if(r){e.metadata.contentEncoding="gzip"}let i=true;let n=false;if(typeof e.validation==="string"){e.validation=e.validation.toLowerCase();i=e.validation==="crc32c";n=e.validation==="md5"}else if(e.validation===false){i=false}const s=h({crc32c:i,md5:n});const o=O();o.on("progress",(e=>{c.emit("progress",e)}));const c=x(y([r?T.createGzip():new E.PassThrough,s,o]));c.on("writing",(()=>{if(e.resumable===false){this.startSimpleUpload_(o,e);return}if(e.configPath){this.startResumableUpload_(o,e);return}const r=w.config||v.tmpdir();d.access(r,d.constants.W_OK,(i=>{if(!i){this.startResumableUpload_(o,e);return}d.mkdir(r,{mode:448},(i=>{if(!i){this.startResumableUpload_(o,e);return}if(e.resumable){const e=new ResumableUploadError(["A resumable upload could not be performed. The directory,",`${r}, is not writable. You may try another upload,`,"this time setting `options.resumable` to `false`."].join(" "));d.access(r,d.constants.R_OK,(r=>{if(r){e.additionalInfo="The directory does not exist."}else{e.additionalInfo="The directory is read-only."}c.destroy(e)}))}else{this.startSimpleUpload_(o,e)}}))}))}));o.on("response",c.emit.bind(c,"response"));o.on("prefinish",(()=>{c.cork()}));o.on("complete",(()=>{const e=this.metadata;let r=i||n;if(i&&e.crc32c){r=!s.test("crc32c",e.crc32c.substr(4))}if(n&&e.md5Hash){r=!s.test("md5",e.md5Hash)}if(r){this.delete((r=>{let i;let s;if(r){i="FILE_NO_UPLOAD_DELETE";s=["The uploaded data did not match the data from the server. As a","precaution, we attempted to delete the file, but it was not","successful. To be sure the content is the same, you should try","removing the file manually, then uploading the file again.","\n\nThe delete attempt failed with this message:","\n\n "+r.message].join(" ")}else if(n&&!e.md5Hash){i="MD5_NOT_AVAILABLE";s=["MD5 verification was specified, but is not available for the","requested object. MD5 is not available for composite objects."].join(" ")}else{i="FILE_NO_UPLOAD";s=["The uploaded data did not match the data from the server. As a","precaution, the file has been deleted. To be sure the content","is the same, you should try uploading the file again."].join(" ")}const a=new RequestError(s);a.code=i;a.errors=[r];o.destroy(a)}));return}c.uncork()}));return c}deleteResumableCache(){const e=b.upload({bucket:this.bucket.name,file:this.name,generation:this.generation,retryOptions:this.storage.retryOptions});e.deleteConfig()}download(e,r){let i;if(typeof e==="function"){r=e;i={}}else{i=e}let n=false;const callback=(...e)=>{if(!n)r(...e);n=true};const s=i.destination;delete i.destination;const a=this.createReadStream(i);if(s){a.on("error",callback).once("data",(e=>{const r=d.createWriteStream(s);r.write(e);a.pipe(r).on("error",callback).on("finish",callback)}))}else{o.buffer(a).then((e=>callback===null||callback===void 0?void 0:callback(null,e))).catch(callback)}}setEncryptionKey(e){this.encryptionKey=e;this.encryptionKeyBase64=Buffer.from(e).toString("base64");this.encryptionKeyHash=c.createHash("sha256").update(this.encryptionKeyBase64,"base64").digest("base64");this.encryptionKeyInterceptor={request:e=>{e.headers=e.headers||{};e.headers["x-goog-encryption-algorithm"]="AES256";e.headers["x-goog-encryption-key"]=this.encryptionKeyBase64;e.headers["x-goog-encryption-key-sha256"]=this.encryptionKeyHash;return e}};this.interceptors.push(this.encryptionKeyInterceptor);return this}getExpirationDate(e){this.getMetadata(((r,i,n)=>{if(r){e(r,null,n);return}if(!i.retentionExpirationTime){const r=new Error("An expiration time is not available.");e(r,null,n);return}e(null,new Date(i.retentionExpirationTime),n)}))}getSignedPolicy(e,r){const i=P.normalize(e,r);const n=i.options;const s=i.callback;this.generateSignedPostPolicyV2(n,s)}generateSignedPostPolicyV2(e,r){const i=P.normalize(e,r);let n=i.options;const s=i.callback;const a=new Date(n.expires);if(isNaN(a.getTime())){throw new Error("The expiration date provided was invalid.")}if(a.valueOf(){if(!Array.isArray(e)||e.length!==2){throw new Error("Equals condition must be an array of 2 elements.")}o.push(["eq",e[0],e[1]])}))}if(Array.isArray(n.startsWith)){if(!Array.isArray(n.startsWith[0])){n.startsWith=[n.startsWith]}n.startsWith.forEach((e=>{if(!Array.isArray(e)||e.length!==2){throw new Error("StartsWith condition must be an array of 2 elements.")}o.push(["starts-with",e[0],e[1]])}))}if(n.acl){o.push({acl:n.acl})}if(n.successRedirect){o.push({success_action_redirect:n.successRedirect})}if(n.successStatus){o.push({success_action_status:n.successStatus})}if(n.contentLengthRange){const e=n.contentLengthRange.min;const r=n.contentLengthRange.max;if(typeof e!=="number"||typeof r!=="number"){throw new Error("ContentLengthRange must have numeric min & max fields.")}o.push(["content-length-range",e,r])}const c={expiration:a.toISOString(),conditions:o};const l=JSON.stringify(c);const p=Buffer.from(l).toString("base64");this.storage.authClient.sign(p).then((e=>{s(null,{string:l,base64:p,signature:e})}),(e=>{s(new I.SigningError(e.message))}))}generateSignedPostPolicyV4(e,i){const n=P.normalize(e,i);let s=n.options;const a=n.callback;const o=new Date(s.expires);if(isNaN(o.getTime())){throw new Error("The expiration date provided was invalid.")}if(o.valueOf()L*1e3){throw new Error(`Max allowed expiration is seven days (${L} seconds).`)}s=Object.assign({},s);let c=Object.assign({},s.fields);const p=new Date;const d=l.format(p,"YYYYMMDD[T]HHmmss[Z]",true);const h=l.format(p,"YYYYMMDD",true);const sign=async()=>{const{client_email:e}=await this.storage.authClient.getCredentials();const i=`${e}/${h}/auto/storage/goog4_request`;c={...c,bucket:this.bucket.name,key:this.name,"x-goog-date":d,"x-goog-credential":i,"x-goog-algorithm":"GOOG4-RSA-SHA256"};const n=s.conditions||[];Object.entries(c).forEach((([e,r])=>{if(!e.startsWith("x-ignore-")){n.push({[e]:r})}}));delete c.bucket;const a=l.format(o,"YYYY-MM-DD[T]HH:mm:ss[Z]",true);const p={conditions:n,expiration:a};const g=P.unicodeJSONStringify(p);const v=Buffer.from(g).toString("base64");try{const e=await this.storage.authClient.sign(v);const i=Buffer.from(e,"base64").toString("hex");c["policy"]=v;c["x-goog-signature"]=i;let n;if(s.virtualHostedStyle){n=`https://${this.bucket.name}.storage.googleapis.com/`}else if(s.bucketBoundHostname){n=`${s.bucketBoundHostname}/`}else{n=`${r.STORAGE_POST_POLICY_BASE_URL}/${this.bucket.name}/`}return{url:n,fields:c}}catch(e){throw new I.SigningError(e.message)}};sign().then((e=>a(null,e)),a)}getSignedUrl(e,r){const i=B[e.action];if(!i){throw new Error("The action is not provided or invalid.")}const n=P.objectKeyToLowercase(e.extensionHeaders||{});if(e.action==="resumable"){n["x-goog-resumable"]="start"}const s=Object.assign({},e.queryParams);if(typeof e.responseType==="string"){s["response-content-type"]=e.responseType}if(typeof e.promptSaveAs==="string"){s["response-content-disposition"]='attachment; filename="'+e.promptSaveAs+'"'}if(typeof e.responseDisposition==="string"){s["response-content-disposition"]=e.responseDisposition}if(this.generation){s["generation"]=this.generation.toString()}const a={method:i,expires:e.expires,accessibleAt:e.accessibleAt,extensionHeaders:n,queryParams:s,contentMd5:e.contentMd5,contentType:e.contentType};if(e.cname){a.cname=e.cname}if(e.version){a.version=e.version}if(e.virtualHostedStyle){a.virtualHostedStyle=e.virtualHostedStyle}if(!this.signer){this.signer=new I.URLSigner(this.storage.authClient,this.bucket,this)}this.signer.getSignedUrl(a).then((e=>r(null,e)),r)}isPublic(e){var r;const i=((r=this.storage)===null||r===void 0?void 0:r.interceptors)||[];const s=this.interceptors||[];const a=i.concat(s);const o=a.reduce(((e,r)=>{const i=r.request({uri:`${this.storage.apiEndpoint}/${this.bucket.name}/${encodeURIComponent(this.name)}`});Object.assign(e,i.headers);return e}),{});n.util.makeRequest({method:"HEAD",uri:`${this.storage.apiEndpoint}/${this.bucket.name}/${encodeURIComponent(this.name)}`,headers:o},{retryOptions:this.storage.retryOptions},(r=>{if(r){const i=r;if(i.code===403){e(null,false)}else{e(r)}}else{e(null,true)}}))}makePrivate(e,r){const i=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const n={predefinedAcl:i.strict?"private":"projectPrivate"};if(i.userProject){n.userProject=i.userProject}this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,C.AvailableServiceObjectMethods.setMetadata);const s=p({},i.metadata,{acl:null});this.setMetadata(s,n,r);this.storage.retryOptions.autoRetry=this.instanceRetryValue}makePublic(e){e=e||n.util.noop;this.acl.add({entity:"allUsers",role:"READER"},((r,i,n)=>{e(r,n)}))}publicUrl(){return`${this.storage.apiEndpoint}/${this.bucket.name}/${this.name}`}move(e,r,i){const s=typeof r==="object"?r:{};i=typeof r==="function"?r:i;i=i||n.util.noop;this.copy(e,s,((e,r,n)=>{if(e){e.message="file#copy failed with an error - "+e.message;i(e,null,n);return}if(this.name!==r.name||this.bucket.name!==r.bucket.name){this.delete(s,((e,s)=>{if(e){e.message="file#delete failed with an error - "+e.message;i(e,r,s);return}i(null,r,n)}))}else{i(null,r,n)}}))}rename(e,r,i){const s=typeof r==="object"?r:{};i=typeof r==="function"?r:i;i=i||n.util.noop;this.move(e,s,i)}request(e,r){return this.parent.request.call(this,e,r)}rotateEncryptionKey(e,r){r=typeof e==="function"?e:r;let i={};if(typeof e==="string"||e instanceof Buffer){i={encryptionKey:e}}else if(typeof e==="object"){i=e}const n=this.bucket.file(this.id,i);this.copy(n,r)}save(e,r,i){i=typeof r==="function"?r:i;const n=typeof r==="object"?r:{};let s=this.storage.retryOptions.maxRetries;if(!this.shouldRetryBasedOnPreconditionAndIdempotencyStrat(n===null||n===void 0?void 0:n.preconditionOpts)){s=0}const a=N((async r=>{await new Promise(((i,a)=>{if(s===0){this.storage.retryOptions.autoRetry=false}const o=this.createWriteStream(n).on("error",(e=>{if(this.storage.retryOptions.autoRetry&&this.storage.retryOptions.retryableErrorFn(e)){return a(e)}else{return r(e)}})).on("finish",(()=>i()));if(n.onUploadProgress){o.on("progress",n.onUploadProgress)}o.end(e)}))}),{retries:s,factor:this.storage.retryOptions.retryDelayMultiplier,maxTimeout:this.storage.retryOptions.maxRetryDelay*1e3,maxRetryTime:this.storage.retryOptions.totalTimeout*1e3});if(!i){return a}else{return a.then((()=>{if(i){return i()}})).catch(i)}}setStorageClass(e,r,i){i=typeof r==="function"?r:i;const n=typeof r==="object"?r:{};const s=p(true,{},n);s.storageClass=e.replace(/-/g,"_").replace(/([a-z])([A-Z])/g,((e,r,i)=>r+"_"+i)).toUpperCase();this.copy(this,s,((e,r,n)=>{if(e){i(e,n);return}this.metadata=r.metadata;i(null,n)}))}setUserProject(e){this.bucket.setUserProject.call(this,e)}startResumableUpload_(e,r){r=Object.assign({metadata:{}},r);const i=this.storage.retryOptions;if(!this.shouldRetryBasedOnPreconditionAndIdempotencyStrat(r===null||r===void 0?void 0:r.preconditionOpts)){i.autoRetry=false}const n=b.upload({authClient:this.storage.authClient,apiEndpoint:this.storage.apiEndpoint,bucket:this.bucket.name,configPath:r.configPath,customRequestOptions:this.getRequestInterceptors().reduce(((e,r)=>r(e)),{}),file:this.name,generation:this.generation,key:this.encryptionKey,kmsKeyName:this.kmsKeyName,metadata:r.metadata,offset:r.offset,predefinedAcl:r.predefinedAcl,private:r.private,public:r.public,uri:r.uri,userProject:r.userProject||this.userProject,retryOptions:i,params:(r===null||r===void 0?void 0:r.preconditionOpts)||this.instancePreconditionOpts});n.on("response",(r=>{e.emit("response",r)})).on("metadata",(e=>{this.metadata=e})).on("finish",(()=>{e.emit("complete")})).on("progress",(r=>e.emit("progress",r)));e.setWritable(n);this.storage.retryOptions.autoRetry=this.instanceRetryValue}startSimpleUpload_(e,r){r=Object.assign({metadata:{}},r);const i=this.storage.apiEndpoint;const s=this.bucket.name;const a=`${i}/upload/storage/v1/b/${s}/o`;const o={qs:{name:this.name},uri:a};if(this.generation!==undefined){o.qs.ifGenerationMatch=this.generation}if(this.kmsKeyName!==undefined){o.qs.kmsKeyName=this.kmsKeyName}if(typeof r.timeout==="number"){o.timeout=r.timeout}if(r.userProject||this.userProject){o.qs.userProject=r.userProject||this.userProject}if(r.predefinedAcl){o.qs.predefinedAcl=r.predefinedAcl}else if(r.private){o.qs.predefinedAcl="private"}else if(r.public){o.qs.predefinedAcl="publicRead"}Object.assign(o.qs,this.instancePreconditionOpts,r.preconditionOpts);n.util.makeWritableStream(e,{makeAuthenticatedRequest:r=>{this.request(r,((r,i,n)=>{if(r){e.destroy(r);return}this.metadata=i;e.emit("response",n);e.emit("complete")}))},metadata:r.metadata,request:o})}disableAutoRetryConditionallyIdempotent_(e,r){var i,n;if(typeof e==="object"&&((n=(i=e===null||e===void 0?void 0:e.reqOpts)===null||i===void 0?void 0:i.qs)===null||n===void 0?void 0:n.ifGenerationMatch)===undefined&&r===C.AvailableServiceObjectMethods.setMetadata&&this.storage.retryOptions.idempotencyStrategy===_.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===_.IdempotencyStrategy.RetryNever){this.storage.retryOptions.autoRetry=false}}}r.File=File; + */a.promisifyAll(Channel)},5373:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.File=r.STORAGE_POST_POLICY_BASE_URL=r.ActionToHTTPMethod=void 0;const n=i(4777);const a=i(9203);const s=i(6763);const o=i(1766);const c=i(6113);const l=i(869);const p=i(8171);const d=i(7147);const h=i(3562);const g=i(5377);const v=i(2037);const y=i(212);const b=i(8934);const x=i(2781);const E=i(9626);const w=i(3522);const C=i(9796);const T=i(346);const _=i(8561);const I=i(3044);const R=i(9665);const O=i(6599);const N=i(1862);const B=i(3415);var P;(function(e){e["read"]="GET";e["write"]="PUT";e["delete"]="DELETE";e["resumable"]="POST"})(P=r.ActionToHTTPMethod||(r.ActionToHTTPMethod={}));class ResumableUploadError extends Error{constructor(){super(...arguments);this.name="ResumableUploadError"}}r.STORAGE_POST_POLICY_BASE_URL="https://storage.googleapis.com";const j=/^gs:\/\/([a-z0-9_.-]+)\/(.+)$/;class RequestError extends Error{}const L=7*24*60*60;class File extends n.ServiceObject{constructor(e,r,i={}){var n,a;const s={};let o;if(i.generation!==null){if(typeof i.generation==="string"){o=Number(i.generation)}else{o=i.generation}if(!isNaN(o)){s.generation=o}}Object.assign(s,i.preconditionOpts);const c=i.userProject||e.userProject;if(typeof c==="string"){s.userProject=c}const l={delete:{reqOpts:{qs:s}},exists:{reqOpts:{qs:s}},get:{reqOpts:{qs:s}},getMetadata:{reqOpts:{qs:s}},setMetadata:{reqOpts:{qs:s}}};super({parent:e,baseUrl:"/o",id:encodeURIComponent(r),methods:l});this.bucket=e;this.storage=e.parent;if(i.generation!==null){let e;if(typeof i.generation==="string"){e=Number(i.generation)}else{e=i.generation}if(!isNaN(e)){this.generation=e}}this.kmsKeyName=i.kmsKeyName;this.userProject=c;this.name=r;if(i.encryptionKey){this.setEncryptionKey(i.encryptionKey)}this.acl=new I.Acl({request:this.request.bind(this),pathPrefix:"/acl"});this.instanceRetryValue=(a=(n=this.storage)===null||n===void 0?void 0:n.retryOptions)===null||a===void 0?void 0:a.autoRetry;this.instancePreconditionOpts=i===null||i===void 0?void 0:i.preconditionOpts}shouldRetryBasedOnPreconditionAndIdempotencyStrat(e){var r;return!((e===null||e===void 0?void 0:e.ifGenerationMatch)===undefined&&((r=this.instancePreconditionOpts)===null||r===void 0?void 0:r.ifGenerationMatch)===undefined&&this.storage.retryOptions.idempotencyStrategy===T.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===T.IdempotencyStrategy.RetryNever)}copy(e,r,i){const a=new Error("Destination file should have a name.");if(!e){throw a}let s={};if(typeof r==="function"){i=r}else if(r){s=r}s=p(true,{},s);i=i||n.util.noop;let o;let c;let l;if(typeof e==="string"){const r=j.exec(e);if(r!==null&&r.length===3){o=this.storage.bucket(r[1]);c=r[2]}else{o=this.bucket;c=e}}else if(e instanceof _.Bucket){o=e;c=this.name}else if(e instanceof File){o=e.bucket;c=e.name;l=e}else{throw a}const d={};if(this.generation!==undefined){d.sourceGeneration=this.generation}if(s.token!==undefined){d.rewriteToken=s.token}if(s.userProject!==undefined){d.userProject=s.userProject;delete s.userProject}if(s.predefinedAcl!==undefined){d.destinationPredefinedAcl=s.predefinedAcl;delete s.predefinedAcl}l=l||o.file(c);const h={};if(this.encryptionKey!==undefined){h["x-goog-copy-source-encryption-algorithm"]="AES256";h["x-goog-copy-source-encryption-key"]=this.encryptionKeyBase64;h["x-goog-copy-source-encryption-key-sha256"]=this.encryptionKeyHash}if(l.encryptionKey!==undefined){this.setEncryptionKey(l.encryptionKey)}else if(s.destinationKmsKeyName!==undefined){d.destinationKmsKeyName=s.destinationKmsKeyName;delete s.destinationKmsKeyName}else if(l.kmsKeyName!==undefined){d.destinationKmsKeyName=l.kmsKeyName}if(d.destinationKmsKeyName){this.kmsKeyName=d.destinationKmsKeyName;const e=this.interceptors.indexOf(this.encryptionKeyInterceptor);if(e>-1){this.interceptors.splice(e,1)}}this.request({method:"POST",uri:`/rewriteTo/b/${o.name}/o/${encodeURIComponent(l.name)}`,qs:d,json:s,headers:h},((e,r)=>{if(e){i(e,null,r);return}if(r.rewriteToken){const e={token:r.rewriteToken};if(d.userProject){e.userProject=d.userProject}if(d.destinationKmsKeyName){e.destinationKmsKeyName=d.destinationKmsKeyName}this.copy(l,e,i);return}i(null,l,r)}))}createReadStream(e={}){e=Object.assign({decompress:true},e);const r=typeof e.start==="number"||typeof e.end==="number";const i=e.end<0;let a;const s=E(new x.PassThrough);let c=true;let l=true;let p=false;if(typeof e.validation==="string"){e.validation=e.validation.toLowerCase();l=e.validation==="crc32c";p=e.validation==="md5"}else if(e.validation===false){l=false}const d=!r&&(l||p);if(r){if(typeof e.validation==="string"||e.validation===true){throw new Error("Cannot use validation with file ranges (start/end).")}l=false;p=false}const makeRequest=()=>{const g={alt:"media"};if(this.generation){g.generation=this.generation}if(e.userProject){g.userProject=e.userProject}const v={"Accept-Encoding":"gzip","Cache-Control":"no-store"};if(r){const r=typeof e.start==="number"?e.start:"0";const n=typeof e.end==="number"?e.end:"";v.Range=`bytes=${i?n:`${r}-${n}`}`}const b={forever:false,uri:"",headers:v,qs:g};const x={};this.requestStream(b).on("error",(e=>{s.destroy(e)})).on("response",(e=>{s.emit("response",e);n.util.handleResp(null,e,null,onResponse)})).resume();const onResponse=(r,i,n)=>{if(r){o(n).then((e=>{r.message=e;s.destroy(r)}));return}n.on("error",onComplete);const g=n.toJSON().headers;c=g["content-encoding"]==="gzip";const v=[];if(d){if(typeof g["x-goog-hash"]==="string"){g["x-goog-hash"].split(",").forEach((e=>{const r=e.indexOf("=");const i=e.substr(0,r);const n=e.substr(r+1);x[i]=n}))}a=h({crc32c:l,md5:p});v.push(a)}if(c&&e.decompress){v.push(C.createGunzip())}if(v.length===1){n=n.pipe(v[0])}else if(v.length>1){n=n.pipe(y.obj(v))}n.on("error",onComplete).on("end",onComplete).pipe(s,{end:false})};let E=false;const onComplete=async i=>{if(E){return}E=true;if(i){s.destroy(i);return}if(r||!d){s.end();return}if(!c){try{await this.getMetadata({userProject:e.userProject})}catch(e){s.destroy(e);return}if(this.metadata.contentEncoding==="gzip"){s.end();return}}let n=l||p;if(l&&x.crc32c){n=!a.test("crc32c",x.crc32c.substr(4))}if(p&&x.md5){n=!a.test("md5",x.md5)}if(p&&!x.md5){const e=new RequestError(["MD5 verification was specified, but is not available for the","requested object. MD5 is not available for composite objects."].join(" "));e.code="MD5_NOT_AVAILABLE";s.destroy(e)}else if(n){const e=new RequestError(["The downloaded data did not match the data from the server.","To be sure the content is the same, you should download the","file again."].join(" "));e.code="CONTENT_DOWNLOAD_MISMATCH";s.destroy(e)}else{s.end()}}};s.on("reading",makeRequest);return s}createResumableUpload(e,r){var i,n;const a=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const s=this.storage.retryOptions;if(((i=a===null||a===void 0?void 0:a.preconditionOpts)===null||i===void 0?void 0:i.ifGenerationMatch)===undefined&&((n=this.instancePreconditionOpts)===null||n===void 0?void 0:n.ifGenerationMatch)===undefined&&this.storage.retryOptions.idempotencyStrategy===T.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===T.IdempotencyStrategy.RetryNever){s.autoRetry=false}b.createURI({authClient:this.storage.authClient,apiEndpoint:this.storage.apiEndpoint,bucket:this.bucket.name,configPath:a.configPath,customRequestOptions:this.getRequestInterceptors().reduce(((e,r)=>r(e)),{}),file:this.name,generation:this.generation,key:this.encryptionKey,kmsKeyName:this.kmsKeyName,metadata:a.metadata,offset:a.offset,origin:a.origin,predefinedAcl:a.predefinedAcl,private:a.private,public:a.public,userProject:a.userProject||this.userProject,retryOptions:s,params:(a===null||a===void 0?void 0:a.preconditionOpts)||this.instancePreconditionOpts},r);this.storage.retryOptions.autoRetry=this.instanceRetryValue}createWriteStream(e={}){e=Object.assign({metadata:{}},e);if(e.contentType){e.metadata.contentType=e.contentType}if(!e.metadata.contentType||e.metadata.contentType==="auto"){const r=g.getType(this.name);if(r){e.metadata.contentType=r}}let r=e.gzip;if(r==="auto"){r=s(e.metadata.contentType)}if(r){e.metadata.contentEncoding="gzip"}let i=true;let n=false;if(typeof e.validation==="string"){e.validation=e.validation.toLowerCase();i=e.validation==="crc32c";n=e.validation==="md5"}else if(e.validation===false){i=false}const a=h({crc32c:i,md5:n});const o=O();o.on("progress",(e=>{c.emit("progress",e)}));const c=E(y([r?C.createGzip():new x.PassThrough,a,o]));c.on("writing",(()=>{if(e.resumable===false){this.startSimpleUpload_(o,e);return}if(e.configPath){this.startResumableUpload_(o,e);return}const r=w.config||v.tmpdir();d.access(r,d.constants.W_OK,(i=>{if(!i){this.startResumableUpload_(o,e);return}d.mkdir(r,{mode:448},(i=>{if(!i){this.startResumableUpload_(o,e);return}if(e.resumable){const e=new ResumableUploadError(["A resumable upload could not be performed. The directory,",`${r}, is not writable. You may try another upload,`,"this time setting `options.resumable` to `false`."].join(" "));d.access(r,d.constants.R_OK,(r=>{if(r){e.additionalInfo="The directory does not exist."}else{e.additionalInfo="The directory is read-only."}c.destroy(e)}))}else{this.startSimpleUpload_(o,e)}}))}))}));o.on("response",c.emit.bind(c,"response"));o.on("prefinish",(()=>{c.cork()}));o.on("complete",(()=>{const e=this.metadata;let r=i||n;if(i&&e.crc32c){r=!a.test("crc32c",e.crc32c.substr(4))}if(n&&e.md5Hash){r=!a.test("md5",e.md5Hash)}if(r){this.delete((r=>{let i;let a;if(r){i="FILE_NO_UPLOAD_DELETE";a=["The uploaded data did not match the data from the server. As a","precaution, we attempted to delete the file, but it was not","successful. To be sure the content is the same, you should try","removing the file manually, then uploading the file again.","\n\nThe delete attempt failed with this message:","\n\n "+r.message].join(" ")}else if(n&&!e.md5Hash){i="MD5_NOT_AVAILABLE";a=["MD5 verification was specified, but is not available for the","requested object. MD5 is not available for composite objects."].join(" ")}else{i="FILE_NO_UPLOAD";a=["The uploaded data did not match the data from the server. As a","precaution, the file has been deleted. To be sure the content","is the same, you should try uploading the file again."].join(" ")}const s=new RequestError(a);s.code=i;s.errors=[r];o.destroy(s)}));return}c.uncork()}));return c}deleteResumableCache(){const e=b.upload({bucket:this.bucket.name,file:this.name,generation:this.generation,retryOptions:this.storage.retryOptions});e.deleteConfig()}download(e,r){let i;if(typeof e==="function"){r=e;i={}}else{i=e}let n=false;const callback=(...e)=>{if(!n)r(...e);n=true};const a=i.destination;delete i.destination;const s=this.createReadStream(i);if(a){s.on("error",callback).once("data",(e=>{const r=d.createWriteStream(a);r.write(e);s.pipe(r).on("error",callback).on("finish",callback)}))}else{o.buffer(s).then((e=>callback===null||callback===void 0?void 0:callback(null,e))).catch(callback)}}setEncryptionKey(e){this.encryptionKey=e;this.encryptionKeyBase64=Buffer.from(e).toString("base64");this.encryptionKeyHash=c.createHash("sha256").update(this.encryptionKeyBase64,"base64").digest("base64");this.encryptionKeyInterceptor={request:e=>{e.headers=e.headers||{};e.headers["x-goog-encryption-algorithm"]="AES256";e.headers["x-goog-encryption-key"]=this.encryptionKeyBase64;e.headers["x-goog-encryption-key-sha256"]=this.encryptionKeyHash;return e}};this.interceptors.push(this.encryptionKeyInterceptor);return this}getExpirationDate(e){this.getMetadata(((r,i,n)=>{if(r){e(r,null,n);return}if(!i.retentionExpirationTime){const r=new Error("An expiration time is not available.");e(r,null,n);return}e(null,new Date(i.retentionExpirationTime),n)}))}getSignedPolicy(e,r){const i=N.normalize(e,r);const n=i.options;const a=i.callback;this.generateSignedPostPolicyV2(n,a)}generateSignedPostPolicyV2(e,r){const i=N.normalize(e,r);let n=i.options;const a=i.callback;const s=new Date(n.expires);if(isNaN(s.getTime())){throw new Error("The expiration date provided was invalid.")}if(s.valueOf(){if(!Array.isArray(e)||e.length!==2){throw new Error("Equals condition must be an array of 2 elements.")}o.push(["eq",e[0],e[1]])}))}if(Array.isArray(n.startsWith)){if(!Array.isArray(n.startsWith[0])){n.startsWith=[n.startsWith]}n.startsWith.forEach((e=>{if(!Array.isArray(e)||e.length!==2){throw new Error("StartsWith condition must be an array of 2 elements.")}o.push(["starts-with",e[0],e[1]])}))}if(n.acl){o.push({acl:n.acl})}if(n.successRedirect){o.push({success_action_redirect:n.successRedirect})}if(n.successStatus){o.push({success_action_status:n.successStatus})}if(n.contentLengthRange){const e=n.contentLengthRange.min;const r=n.contentLengthRange.max;if(typeof e!=="number"||typeof r!=="number"){throw new Error("ContentLengthRange must have numeric min & max fields.")}o.push(["content-length-range",e,r])}const c={expiration:s.toISOString(),conditions:o};const l=JSON.stringify(c);const p=Buffer.from(l).toString("base64");this.storage.authClient.sign(p).then((e=>{a(null,{string:l,base64:p,signature:e})}),(e=>{a(new R.SigningError(e.message))}))}generateSignedPostPolicyV4(e,i){const n=N.normalize(e,i);let a=n.options;const s=n.callback;const o=new Date(a.expires);if(isNaN(o.getTime())){throw new Error("The expiration date provided was invalid.")}if(o.valueOf()L*1e3){throw new Error(`Max allowed expiration is seven days (${L} seconds).`)}a=Object.assign({},a);let c=Object.assign({},a.fields);const p=new Date;const d=l.format(p,"YYYYMMDD[T]HHmmss[Z]",true);const h=l.format(p,"YYYYMMDD",true);const sign=async()=>{const{client_email:e}=await this.storage.authClient.getCredentials();const i=`${e}/${h}/auto/storage/goog4_request`;c={...c,bucket:this.bucket.name,key:this.name,"x-goog-date":d,"x-goog-credential":i,"x-goog-algorithm":"GOOG4-RSA-SHA256"};const n=a.conditions||[];Object.entries(c).forEach((([e,r])=>{if(!e.startsWith("x-ignore-")){n.push({[e]:r})}}));delete c.bucket;const s=l.format(o,"YYYY-MM-DD[T]HH:mm:ss[Z]",true);const p={conditions:n,expiration:s};const g=N.unicodeJSONStringify(p);const v=Buffer.from(g).toString("base64");try{const e=await this.storage.authClient.sign(v);const i=Buffer.from(e,"base64").toString("hex");c["policy"]=v;c["x-goog-signature"]=i;let n;if(a.virtualHostedStyle){n=`https://${this.bucket.name}.storage.googleapis.com/`}else if(a.bucketBoundHostname){n=`${a.bucketBoundHostname}/`}else{n=`${r.STORAGE_POST_POLICY_BASE_URL}/${this.bucket.name}/`}return{url:n,fields:c}}catch(e){throw new R.SigningError(e.message)}};sign().then((e=>s(null,e)),s)}getSignedUrl(e,r){const i=P[e.action];if(!i){throw new Error("The action is not provided or invalid.")}const n=N.objectKeyToLowercase(e.extensionHeaders||{});if(e.action==="resumable"){n["x-goog-resumable"]="start"}const a=Object.assign({},e.queryParams);if(typeof e.responseType==="string"){a["response-content-type"]=e.responseType}if(typeof e.promptSaveAs==="string"){a["response-content-disposition"]='attachment; filename="'+e.promptSaveAs+'"'}if(typeof e.responseDisposition==="string"){a["response-content-disposition"]=e.responseDisposition}if(this.generation){a["generation"]=this.generation.toString()}const s={method:i,expires:e.expires,accessibleAt:e.accessibleAt,extensionHeaders:n,queryParams:a,contentMd5:e.contentMd5,contentType:e.contentType};if(e.cname){s.cname=e.cname}if(e.version){s.version=e.version}if(e.virtualHostedStyle){s.virtualHostedStyle=e.virtualHostedStyle}if(!this.signer){this.signer=new R.URLSigner(this.storage.authClient,this.bucket,this)}this.signer.getSignedUrl(s).then((e=>r(null,e)),r)}isPublic(e){var r;const i=((r=this.storage)===null||r===void 0?void 0:r.interceptors)||[];const a=this.interceptors||[];const s=i.concat(a);const o=s.reduce(((e,r)=>{const i=r.request({uri:`${this.storage.apiEndpoint}/${this.bucket.name}/${encodeURIComponent(this.name)}`});Object.assign(e,i.headers);return e}),{});n.util.makeRequest({method:"HEAD",uri:`${this.storage.apiEndpoint}/${this.bucket.name}/${encodeURIComponent(this.name)}`,headers:o},{retryOptions:this.storage.retryOptions},(r=>{if(r){const i=r;if(i.code===403){e(null,false)}else{e(r)}}else{e(null,true)}}))}makePrivate(e,r){const i=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const n={predefinedAcl:i.strict?"private":"projectPrivate"};if(i.userProject){n.userProject=i.userProject}this.disableAutoRetryConditionallyIdempotent_(this.methods.setMetadata,_.AvailableServiceObjectMethods.setMetadata);const a=p({},i.metadata,{acl:null});this.setMetadata(a,n,r);this.storage.retryOptions.autoRetry=this.instanceRetryValue}makePublic(e){e=e||n.util.noop;this.acl.add({entity:"allUsers",role:"READER"},((r,i,n)=>{e(r,n)}))}publicUrl(){return`${this.storage.apiEndpoint}/${this.bucket.name}/${this.name}`}move(e,r,i){const a=typeof r==="object"?r:{};i=typeof r==="function"?r:i;i=i||n.util.noop;this.copy(e,a,((e,r,n)=>{if(e){e.message="file#copy failed with an error - "+e.message;i(e,null,n);return}if(this.name!==r.name||this.bucket.name!==r.bucket.name){this.delete(a,((e,a)=>{if(e){e.message="file#delete failed with an error - "+e.message;i(e,r,a);return}i(null,r,n)}))}else{i(null,r,n)}}))}rename(e,r,i){const a=typeof r==="object"?r:{};i=typeof r==="function"?r:i;i=i||n.util.noop;this.move(e,a,i)}request(e,r){return this.parent.request.call(this,e,r)}rotateEncryptionKey(e,r){r=typeof e==="function"?e:r;let i={};if(typeof e==="string"||e instanceof Buffer){i={encryptionKey:e}}else if(typeof e==="object"){i=e}const n=this.bucket.file(this.id,i);this.copy(n,r)}save(e,r,i){i=typeof r==="function"?r:i;const n=typeof r==="object"?r:{};let a=this.storage.retryOptions.maxRetries;if(!this.shouldRetryBasedOnPreconditionAndIdempotencyStrat(n===null||n===void 0?void 0:n.preconditionOpts)){a=0}const s=B((async r=>{await new Promise(((i,s)=>{if(a===0){this.storage.retryOptions.autoRetry=false}const o=this.createWriteStream(n).on("error",(e=>{if(this.storage.retryOptions.autoRetry&&this.storage.retryOptions.retryableErrorFn(e)){return s(e)}else{return r(e)}})).on("finish",(()=>i()));if(n.onUploadProgress){o.on("progress",n.onUploadProgress)}o.end(e)}))}),{retries:a,factor:this.storage.retryOptions.retryDelayMultiplier,maxTimeout:this.storage.retryOptions.maxRetryDelay*1e3,maxRetryTime:this.storage.retryOptions.totalTimeout*1e3});if(!i){return s}else{return s.then((()=>{if(i){return i()}})).catch(i)}}setStorageClass(e,r,i){i=typeof r==="function"?r:i;const n=typeof r==="object"?r:{};const a=p(true,{},n);a.storageClass=e.replace(/-/g,"_").replace(/([a-z])([A-Z])/g,((e,r,i)=>r+"_"+i)).toUpperCase();this.copy(this,a,((e,r,n)=>{if(e){i(e,n);return}this.metadata=r.metadata;i(null,n)}))}setUserProject(e){this.bucket.setUserProject.call(this,e)}startResumableUpload_(e,r){r=Object.assign({metadata:{}},r);const i=this.storage.retryOptions;if(!this.shouldRetryBasedOnPreconditionAndIdempotencyStrat(r===null||r===void 0?void 0:r.preconditionOpts)){i.autoRetry=false}const n=b.upload({authClient:this.storage.authClient,apiEndpoint:this.storage.apiEndpoint,bucket:this.bucket.name,configPath:r.configPath,customRequestOptions:this.getRequestInterceptors().reduce(((e,r)=>r(e)),{}),file:this.name,generation:this.generation,key:this.encryptionKey,kmsKeyName:this.kmsKeyName,metadata:r.metadata,offset:r.offset,predefinedAcl:r.predefinedAcl,private:r.private,public:r.public,uri:r.uri,userProject:r.userProject||this.userProject,retryOptions:i,params:(r===null||r===void 0?void 0:r.preconditionOpts)||this.instancePreconditionOpts});n.on("response",(r=>{e.emit("response",r)})).on("metadata",(e=>{this.metadata=e})).on("finish",(()=>{e.emit("complete")})).on("progress",(r=>e.emit("progress",r)));e.setWritable(n);this.storage.retryOptions.autoRetry=this.instanceRetryValue}startSimpleUpload_(e,r){r=Object.assign({metadata:{}},r);const i=this.storage.apiEndpoint;const a=this.bucket.name;const s=`${i}/upload/storage/v1/b/${a}/o`;const o={qs:{name:this.name},uri:s};if(this.generation!==undefined){o.qs.ifGenerationMatch=this.generation}if(this.kmsKeyName!==undefined){o.qs.kmsKeyName=this.kmsKeyName}if(typeof r.timeout==="number"){o.timeout=r.timeout}if(r.userProject||this.userProject){o.qs.userProject=r.userProject||this.userProject}if(r.predefinedAcl){o.qs.predefinedAcl=r.predefinedAcl}else if(r.private){o.qs.predefinedAcl="private"}else if(r.public){o.qs.predefinedAcl="publicRead"}Object.assign(o.qs,this.instancePreconditionOpts,r.preconditionOpts);n.util.makeWritableStream(e,{makeAuthenticatedRequest:r=>{this.request(r,((r,i,n)=>{if(r){e.destroy(r);return}this.metadata=i;e.emit("response",n);e.emit("complete")}))},metadata:r.metadata,request:o})}disableAutoRetryConditionallyIdempotent_(e,r){var i,n;if(typeof e==="object"&&((n=(i=e===null||e===void 0?void 0:e.reqOpts)===null||i===void 0?void 0:i.qs)===null||n===void 0?void 0:n.ifGenerationMatch)===undefined&&r===_.AvailableServiceObjectMethods.setMetadata&&this.storage.retryOptions.idempotencyStrategy===T.IdempotencyStrategy.RetryConditional||this.storage.retryOptions.idempotencyStrategy===T.IdempotencyStrategy.RetryNever){this.storage.retryOptions.autoRetry=false}}}r.File=File; /*! Developer Documentation * * All async methods (except for streams) will return a Promise in the event * that a callback is omitted. - */s.promisifyAll(File,{exclude:["publicUrl","request","save","setEncryptionKey","shouldRetryBasedOnPreconditionAndIdempotencyStrat"]})},8934:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createURI=r.upload=r.Upload=r.PROTOCOL_REGEX=void 0;const n=i(1659);const s=i(594);const a=i(6113);const o=i(8171);const c=i(9555);const l=i(810);const p=i(212);const d=i(2781);const h=i(9626);const g=i(3415);const v=404;const y=410;const b=308;const E=5;const x=/.*\.googleapis\.com/;const w=64;const T=2;const _=600;const C=true;r.PROTOCOL_REGEX=/^(\w*):\/\//;class Upload extends p{constructor(e){var r,i,n,o,p,g;super();this.numBytesWritten=0;this.numRetries=0;this.retryLimit=E;this.maxRetryDelay=w;this.retryDelayMultiplier=T;this.maxRetryTotalTimeout=_;this.upstreamChunkBuffer=Buffer.alloc(0);this.chunkBufferEncoding=undefined;this.numChunksReadInRequest=0;this.lastChunkSent=Buffer.alloc(0);this.upstreamEnded=false;this.upstream=new d.Duplex({read:async()=>{this.once("prepareFinish",(()=>{this.upstream.push(null)}))},write:this.writeToChunkBuffer.bind(this)});h(this);e=e||{};if(!e.bucket||!e.file){throw new Error("A bucket and file name are required")}e.authConfig=e.authConfig||{};e.authConfig.scopes=["https://www.googleapis.com/auth/devstorage.full_control"];this.authClient=e.authClient||new l.GoogleAuth(e.authConfig);this.apiEndpoint="https://storage.googleapis.com";if(e.apiEndpoint){this.apiEndpoint=this.sanitizeEndpoint(e.apiEndpoint);if(!x.test(e.apiEndpoint)){this.authClient=c}}this.baseURI=`${this.apiEndpoint}/upload/storage/v1/b`;this.bucket=e.bucket;const v=[e.bucket,e.file];if(typeof e.generation==="number"){v.push(`${e.generation}`)}this.cacheKey=v.join("/");this.customRequestOptions=e.customRequestOptions||{};this.file=e.file;this.generation=e.generation;this.kmsKeyName=e.kmsKeyName;this.metadata=e.metadata||{};this.offset=e.offset;this.origin=e.origin;this.params=e.params||{};this.userProject=e.userProject;this.chunkSize=e.chunkSize;if(e.key){const r=Buffer.from(e.key).toString("base64");this.encryption={key:r,hash:a.createHash("sha256").update(e.key).digest("base64")}}this.predefinedAcl=e.predefinedAcl;if(e.private)this.predefinedAcl="private";if(e.public)this.predefinedAcl="publicRead";const y=e.configPath;this.configStore=new s("gcs-resumable-upload",null,{configPath:y});const b=((r=e===null||e===void 0?void 0:e.retryOptions)===null||r===void 0?void 0:r.autoRetry)||C;this.uriProvidedManually=!!e.uri;this.uri=e.uri||this.get("uri");this.numBytesWritten=0;this.numRetries=0;if(b&&((i=e===null||e===void 0?void 0:e.retryOptions)===null||i===void 0?void 0:i.maxRetries)!==undefined){this.retryLimit=e.retryOptions.maxRetries}else if(!b){this.retryLimit=0}if(((n=e===null||e===void 0?void 0:e.retryOptions)===null||n===void 0?void 0:n.maxRetryDelay)!==undefined){this.maxRetryDelay=e.retryOptions.maxRetryDelay}if(((o=e===null||e===void 0?void 0:e.retryOptions)===null||o===void 0?void 0:o.retryDelayMultiplier)!==undefined){this.retryDelayMultiplier=e.retryOptions.retryDelayMultiplier}if(((p=e===null||e===void 0?void 0:e.retryOptions)===null||p===void 0?void 0:p.totalTimeout)!==undefined){this.maxRetryTotalTimeout=e.retryOptions.totalTimeout}this.timeOfFirstRequest=Date.now();this.retryableErrorFn=(g=e===null||e===void 0?void 0:e.retryOptions)===null||g===void 0?void 0:g.retryableErrorFn;const R=e.metadata?Number(e.metadata.contentLength):NaN;this.contentLength=isNaN(R)?"*":R;this.upstream.on("end",(()=>{this.upstreamEnded=true}));this.on("prefinish",(()=>{this.upstreamEnded=true}));this.once("writing",(()=>{this.setPipeline(this.upstream,new d.PassThrough);if(this.uri){this.continueUploading()}else{this.createURI(((e,r)=>{if(e){return this.destroy(e)}this.set({uri:r});this.startUploading()}))}}))}writeToChunkBuffer(e,r,i){this.upstreamChunkBuffer=Buffer.concat([this.upstreamChunkBuffer,typeof e==="string"?Buffer.from(e,r):e]);this.chunkBufferEncoding=r;this.once("readFromChunkBuffer",i);process.nextTick((()=>this.emit("wroteToChunkBuffer")))}unshiftChunkBuffer(e){this.upstreamChunkBuffer=Buffer.concat([e,this.upstreamChunkBuffer])}pullFromChunkBuffer(e){const r=this.upstreamChunkBuffer.slice(0,e);this.upstreamChunkBuffer=this.upstreamChunkBuffer.slice(e);process.nextTick((()=>this.emit("readFromChunkBuffer")));return r}async waitForNextChunk(){const e=await new Promise((e=>{if(this.upstreamChunkBuffer.byteLength){return e(true)}if(this.upstreamEnded){return e(false)}const wroteToChunkBufferCallback=()=>{removeListeners();return e(true)};const upstreamFinishedCallback=()=>{removeListeners();if(this.upstreamChunkBuffer.length)return e(true);return e(false)};const removeListeners=()=>{this.removeListener("wroteToChunkBuffer",wroteToChunkBufferCallback);this.upstream.removeListener("finish",upstreamFinishedCallback);this.removeListener("prefinish",upstreamFinishedCallback)};this.once("wroteToChunkBuffer",wroteToChunkBufferCallback);this.upstream.once("finish",upstreamFinishedCallback);this.once("prefinish",upstreamFinishedCallback)}));return e}async*upstreamIterator(e=Infinity,r){let i=Buffer.alloc(0);while(e&&await this.waitForNextChunk()){const n=this.pullFromChunkBuffer(e);e-=n.byteLength;if(r){i=Buffer.concat([i,n])}else{yield{chunk:n,encoding:this.chunkBufferEncoding}}}if(r){yield{chunk:i,encoding:this.chunkBufferEncoding}}}createURI(e){if(!e){return this.createURIAsync()}this.createURIAsync().then((r=>e(null,r)),e)}async createURIAsync(){const e=this.metadata;const r={method:"POST",url:[this.baseURI,this.bucket,"o"].join("/"),params:Object.assign({name:this.file,uploadType:"resumable"},this.params),data:e,headers:{}};if(e.contentLength){r.headers["X-Upload-Content-Length"]=e.contentLength.toString()}if(e.contentType){r.headers["X-Upload-Content-Type"]=e.contentType}if(typeof this.generation!=="undefined"){r.params.ifGenerationMatch=this.generation}if(this.kmsKeyName){r.params.kmsKeyName=this.kmsKeyName}if(this.predefinedAcl){r.params.predefinedAcl=this.predefinedAcl}if(this.origin){r.headers.Origin=this.origin}const i=await g((async e=>{var i,n,s;try{const e=await this.makeRequest(r);return e.headers.location}catch(r){const a=r;const o={code:(i=a.response)===null||i===void 0?void 0:i.status,name:(n=a.response)===null||n===void 0?void 0:n.statusText,message:(s=a.response)===null||s===void 0?void 0:s.statusText,errors:[{reason:a.code}]};if(this.retryLimit>0&&this.retryableErrorFn&&this.retryableErrorFn(o)){throw a}else{return e(a)}}}),{retries:this.retryLimit,factor:this.retryDelayMultiplier,maxTimeout:this.maxRetryDelay*1e3,maxRetryTime:this.maxRetryTotalTimeout*1e3});this.uri=i;this.offset=0;return i}async continueUploading(){if(typeof this.offset==="number"){this.startUploading();return}await this.getAndSetOffset();this.startUploading()}async startUploading(){const e=!!this.chunkSize;let r=false;this.numChunksReadInRequest=0;if(!this.offset){this.offset=0}if(this.numBytesWritten===0){const e=await this.ensureUploadingSameObject();if(!e){return}}if(this.offset{if(r)s.push(null);const e=await n.next();if(e.value){this.numChunksReadInRequest++;this.lastChunkSent=e.value.chunk;this.numBytesWritten+=e.value.chunk.byteLength;this.emit("progress",{bytesWritten:this.numBytesWritten,contentLength:this.contentLength});s.push(e.value.chunk,e.value.encoding)}if(e.done){s.push(null)}}});this.once("response",(e=>{r=true;this.responseHandler(e)}));let a={};if(e&&i){const e=i+this.numBytesWritten-1;a={"Content-Length":i,"Content-Range":`bytes ${this.offset}-${e}/${this.contentLength}`}}else{a={"Content-Range":`bytes ${this.offset}-*/${this.contentLength}`}}const o={method:"PUT",url:this.uri,headers:a,body:s};try{await this.makeRequestStream(o)}catch(e){const r=e;this.destroy(r)}}responseHandler(e){if(e.data.error){this.destroy(e.data.error);return}const r=this.chunkSize&&e.status===b&&e.headers.range;if(r){const r=e.headers.range;this.offset=Number(r.split("-")[1])+1;const i=this.numBytesWritten-this.offset;if(i){const e=this.lastChunkSent.slice(-i);this.unshiftChunkBuffer(e);this.numBytesWritten-=i;this.lastChunkSent=Buffer.alloc(0)}this.continueUploading()}else if(!this.isSuccessfulResponse(e.status)){const r={code:e.status,name:"Upload failed",message:"Upload failed"};this.destroy(r)}else{this.lastChunkSent=Buffer.alloc(0);if(e&&e.data){e.data.size=Number(e.data.size)}this.emit("metadata",e.data);this.deleteConfig();this.emit("prepareFinish")}}async ensureUploadingSameObject(){const e=this.upstreamIterator(16,true);const r=await e.next();const i=r.value?r.value.chunk:Buffer.alloc(0);this.unshiftChunkBuffer(i);let n=this.get("firstChunk");const s=i.valueOf();if(!n){this.set({uri:this.uri,firstChunk:s})}else{n=Buffer.from(n);const e=Buffer.from(s);if(Buffer.compare(n,e)!==0){this.restart();return false}}return true}async getAndSetOffset(){const e={method:"PUT",url:this.uri,headers:{"Content-Length":0,"Content-Range":"bytes */*"}};try{const r=await this.makeRequest(e);if(r.status===b){if(r.headers.range){const e=r.headers.range;this.offset=Number(e.split("-")[1])+1;return}}this.offset=0}catch(e){const r=e;const i=r.response;if(i&&i.status===v&&!this.uriProvidedManually){this.restart();return}if(i&&i.status===y){this.restart();return}this.destroy(r)}}async makeRequest(e){if(this.encryption){e.headers=e.headers||{};e.headers["x-goog-encryption-algorithm"]="AES256";e.headers["x-goog-encryption-key"]=this.encryption.key.toString();e.headers["x-goog-encryption-key-sha256"]=this.encryption.hash.toString()}if(this.userProject){e.params=e.params||{};e.params.userProject=this.userProject}e.validateStatus=e=>this.isSuccessfulResponse(e)||e===b;const r=o(true,{},this.customRequestOptions,e);const i=await this.authClient.request(r);if(i.data&&i.data.error){throw i.data.error}return i}async makeRequestStream(e){const r=new n.default;const errorCallback=()=>r.abort();this.once("error",errorCallback);if(this.userProject){e.params=e.params||{};e.params.userProject=this.userProject}e.signal=r.signal;e.validateStatus=()=>true;const i=o(true,{},this.customRequestOptions,e);const s=await this.authClient.request(i);this.onResponse(s);this.removeListener("error",errorCallback);return s}restart(){if(this.numBytesWritten){let e="Attempting to restart an upload after unrecoverable bytes have been written from upstream. ";e+="Stopping as this could result in data loss. ";e+="Create a new upload object to continue.";this.emit("error",new RangeError(e));return}this.lastChunkSent=Buffer.alloc(0);this.deleteConfig();this.createURI(((e,r)=>{if(e){return this.destroy(e)}this.set({uri:r});this.startUploading()}))}get(e){const r=this.configStore.get(this.cacheKey);return r&&r[e]}set(e){this.configStore.set(this.cacheKey,e)}deleteConfig(){this.configStore.delete(this.cacheKey)}onResponse(e){if(this.retryableErrorFn&&this.retryableErrorFn({code:e.status,message:e.statusText,name:e.statusText})||e.status===v||this.isServerErrorResponse(e.status)){this.attemptDelayedRetry(e);return false}this.emit("response",e);return true}attemptDelayedRetry(e){if(this.numRetries=200&&e<300}isServerErrorResponse(e){return e>=500&&e<600}}r.Upload=Upload;function upload(e){return new Upload(e)}r.upload=upload;function createURI(e,r){const i=new Upload(e);if(!r){return i.createURI()}i.createURI().then((e=>r(null,e)),r)}r.createURI=createURI},9930:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.HmacKey=void 0;const n=i(4777);class HmacKey extends n.ServiceObject{constructor(e,r,i){const n={delete:true,get:true,getMetadata:true,setMetadata:{reqOpts:{method:"PUT"}}};const s=i&&i.projectId||e.projectId;super({parent:e,id:r,baseUrl:`/projects/${s}/hmacKeys`,methods:n})}}r.HmacKey=HmacKey},66:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Iam=void 0;const n=i(9203);const s=i(363);const a=i(1862);class Iam{constructor(e){this.request_=e.request.bind(e);this.resourceId_="buckets/"+e.getId()}getPolicy(e,r){const{options:i,callback:n}=a.normalize(e,r);const s={};if(i.userProject){s.userProject=i.userProject}if(i.requestedPolicyVersion!==null&&i.requestedPolicyVersion!==undefined){s.optionsRequestedPolicyVersion=i.requestedPolicyVersion}this.request_({uri:"/iam",qs:s},n)}setPolicy(e,r,i){if(e===null||typeof e!=="object"){throw new Error("A policy object is required.")}const{options:n,callback:s}=a.normalize(r,i);this.request_({method:"PUT",uri:"/iam",json:Object.assign({resourceId:this.resourceId_},e),qs:n},s)}testPermissions(e,r,i){if(!Array.isArray(e)&&typeof e!=="string"){throw new Error("Permissions are required.")}const{options:n,callback:o}=a.normalize(r,i);const c=s(e);const l=Object.assign({permissions:c},n);this.request_({uri:"/iam/testPermissions",qs:l,useQuerystring:true},((e,r)=>{if(e){o(e,null,r);return}const i=s(r.permissions);const n=c.reduce(((e,r)=>{e[r]=i.indexOf(r)>-1;return e}),{});o(null,n,r)}))}}r.Iam=Iam; + */a.promisifyAll(File,{exclude:["publicUrl","request","save","setEncryptionKey","shouldRetryBasedOnPreconditionAndIdempotencyStrat"]})},8934:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createURI=r.upload=r.Upload=r.PROTOCOL_REGEX=void 0;const n=i(1659);const a=i(594);const s=i(6113);const o=i(8171);const c=i(9555);const l=i(810);const p=i(212);const d=i(2781);const h=i(9626);const g=i(3415);const v=404;const y=410;const b=308;const x=5;const E=/.*\.googleapis\.com/;const w=64;const C=2;const T=600;const _=true;r.PROTOCOL_REGEX=/^(\w*):\/\//;class Upload extends p{constructor(e){var r,i,n,o,p,g;super();this.numBytesWritten=0;this.numRetries=0;this.retryLimit=x;this.maxRetryDelay=w;this.retryDelayMultiplier=C;this.maxRetryTotalTimeout=T;this.upstreamChunkBuffer=Buffer.alloc(0);this.chunkBufferEncoding=undefined;this.numChunksReadInRequest=0;this.lastChunkSent=Buffer.alloc(0);this.upstreamEnded=false;this.upstream=new d.Duplex({read:async()=>{this.once("prepareFinish",(()=>{this.upstream.push(null)}))},write:this.writeToChunkBuffer.bind(this)});h(this);e=e||{};if(!e.bucket||!e.file){throw new Error("A bucket and file name are required")}e.authConfig=e.authConfig||{};e.authConfig.scopes=["https://www.googleapis.com/auth/devstorage.full_control"];this.authClient=e.authClient||new l.GoogleAuth(e.authConfig);this.apiEndpoint="https://storage.googleapis.com";if(e.apiEndpoint){this.apiEndpoint=this.sanitizeEndpoint(e.apiEndpoint);if(!E.test(e.apiEndpoint)){this.authClient=c}}this.baseURI=`${this.apiEndpoint}/upload/storage/v1/b`;this.bucket=e.bucket;const v=[e.bucket,e.file];if(typeof e.generation==="number"){v.push(`${e.generation}`)}this.cacheKey=v.join("/");this.customRequestOptions=e.customRequestOptions||{};this.file=e.file;this.generation=e.generation;this.kmsKeyName=e.kmsKeyName;this.metadata=e.metadata||{};this.offset=e.offset;this.origin=e.origin;this.params=e.params||{};this.userProject=e.userProject;this.chunkSize=e.chunkSize;if(e.key){const r=Buffer.from(e.key).toString("base64");this.encryption={key:r,hash:s.createHash("sha256").update(e.key).digest("base64")}}this.predefinedAcl=e.predefinedAcl;if(e.private)this.predefinedAcl="private";if(e.public)this.predefinedAcl="publicRead";const y=e.configPath;this.configStore=new a("gcs-resumable-upload",null,{configPath:y});const b=((r=e===null||e===void 0?void 0:e.retryOptions)===null||r===void 0?void 0:r.autoRetry)||_;this.uriProvidedManually=!!e.uri;this.uri=e.uri||this.get("uri");this.numBytesWritten=0;this.numRetries=0;if(b&&((i=e===null||e===void 0?void 0:e.retryOptions)===null||i===void 0?void 0:i.maxRetries)!==undefined){this.retryLimit=e.retryOptions.maxRetries}else if(!b){this.retryLimit=0}if(((n=e===null||e===void 0?void 0:e.retryOptions)===null||n===void 0?void 0:n.maxRetryDelay)!==undefined){this.maxRetryDelay=e.retryOptions.maxRetryDelay}if(((o=e===null||e===void 0?void 0:e.retryOptions)===null||o===void 0?void 0:o.retryDelayMultiplier)!==undefined){this.retryDelayMultiplier=e.retryOptions.retryDelayMultiplier}if(((p=e===null||e===void 0?void 0:e.retryOptions)===null||p===void 0?void 0:p.totalTimeout)!==undefined){this.maxRetryTotalTimeout=e.retryOptions.totalTimeout}this.timeOfFirstRequest=Date.now();this.retryableErrorFn=(g=e===null||e===void 0?void 0:e.retryOptions)===null||g===void 0?void 0:g.retryableErrorFn;const I=e.metadata?Number(e.metadata.contentLength):NaN;this.contentLength=isNaN(I)?"*":I;this.upstream.on("end",(()=>{this.upstreamEnded=true}));this.on("prefinish",(()=>{this.upstreamEnded=true}));this.once("writing",(()=>{this.setPipeline(this.upstream,new d.PassThrough);if(this.uri){this.continueUploading()}else{this.createURI(((e,r)=>{if(e){return this.destroy(e)}this.set({uri:r});this.startUploading()}))}}))}writeToChunkBuffer(e,r,i){this.upstreamChunkBuffer=Buffer.concat([this.upstreamChunkBuffer,typeof e==="string"?Buffer.from(e,r):e]);this.chunkBufferEncoding=r;this.once("readFromChunkBuffer",i);process.nextTick((()=>this.emit("wroteToChunkBuffer")))}unshiftChunkBuffer(e){this.upstreamChunkBuffer=Buffer.concat([e,this.upstreamChunkBuffer])}pullFromChunkBuffer(e){const r=this.upstreamChunkBuffer.slice(0,e);this.upstreamChunkBuffer=this.upstreamChunkBuffer.slice(e);process.nextTick((()=>this.emit("readFromChunkBuffer")));return r}async waitForNextChunk(){const e=await new Promise((e=>{if(this.upstreamChunkBuffer.byteLength){return e(true)}if(this.upstreamEnded){return e(false)}const wroteToChunkBufferCallback=()=>{removeListeners();return e(true)};const upstreamFinishedCallback=()=>{removeListeners();if(this.upstreamChunkBuffer.length)return e(true);return e(false)};const removeListeners=()=>{this.removeListener("wroteToChunkBuffer",wroteToChunkBufferCallback);this.upstream.removeListener("finish",upstreamFinishedCallback);this.removeListener("prefinish",upstreamFinishedCallback)};this.once("wroteToChunkBuffer",wroteToChunkBufferCallback);this.upstream.once("finish",upstreamFinishedCallback);this.once("prefinish",upstreamFinishedCallback)}));return e}async*upstreamIterator(e=Infinity,r){let i=Buffer.alloc(0);while(e&&await this.waitForNextChunk()){const n=this.pullFromChunkBuffer(e);e-=n.byteLength;if(r){i=Buffer.concat([i,n])}else{yield{chunk:n,encoding:this.chunkBufferEncoding}}}if(r){yield{chunk:i,encoding:this.chunkBufferEncoding}}}createURI(e){if(!e){return this.createURIAsync()}this.createURIAsync().then((r=>e(null,r)),e)}async createURIAsync(){const e=this.metadata;const r={method:"POST",url:[this.baseURI,this.bucket,"o"].join("/"),params:Object.assign({name:this.file,uploadType:"resumable"},this.params),data:e,headers:{}};if(e.contentLength){r.headers["X-Upload-Content-Length"]=e.contentLength.toString()}if(e.contentType){r.headers["X-Upload-Content-Type"]=e.contentType}if(typeof this.generation!=="undefined"){r.params.ifGenerationMatch=this.generation}if(this.kmsKeyName){r.params.kmsKeyName=this.kmsKeyName}if(this.predefinedAcl){r.params.predefinedAcl=this.predefinedAcl}if(this.origin){r.headers.Origin=this.origin}const i=await g((async e=>{var i,n,a;try{const e=await this.makeRequest(r);return e.headers.location}catch(r){const s=r;const o={code:(i=s.response)===null||i===void 0?void 0:i.status,name:(n=s.response)===null||n===void 0?void 0:n.statusText,message:(a=s.response)===null||a===void 0?void 0:a.statusText,errors:[{reason:s.code}]};if(this.retryLimit>0&&this.retryableErrorFn&&this.retryableErrorFn(o)){throw s}else{return e(s)}}}),{retries:this.retryLimit,factor:this.retryDelayMultiplier,maxTimeout:this.maxRetryDelay*1e3,maxRetryTime:this.maxRetryTotalTimeout*1e3});this.uri=i;this.offset=0;return i}async continueUploading(){if(typeof this.offset==="number"){this.startUploading();return}await this.getAndSetOffset();this.startUploading()}async startUploading(){const e=!!this.chunkSize;let r=false;this.numChunksReadInRequest=0;if(!this.offset){this.offset=0}if(this.numBytesWritten===0){const e=await this.ensureUploadingSameObject();if(!e){return}}if(this.offset{if(r)a.push(null);const e=await n.next();if(e.value){this.numChunksReadInRequest++;this.lastChunkSent=e.value.chunk;this.numBytesWritten+=e.value.chunk.byteLength;this.emit("progress",{bytesWritten:this.numBytesWritten,contentLength:this.contentLength});a.push(e.value.chunk,e.value.encoding)}if(e.done){a.push(null)}}});this.once("response",(e=>{r=true;this.responseHandler(e)}));let s={};if(e&&i){const e=i+this.numBytesWritten-1;s={"Content-Length":i,"Content-Range":`bytes ${this.offset}-${e}/${this.contentLength}`}}else{s={"Content-Range":`bytes ${this.offset}-*/${this.contentLength}`}}const o={method:"PUT",url:this.uri,headers:s,body:a};try{await this.makeRequestStream(o)}catch(e){const r=e;this.destroy(r)}}responseHandler(e){if(e.data.error){this.destroy(e.data.error);return}const r=this.chunkSize&&e.status===b&&e.headers.range;if(r){const r=e.headers.range;this.offset=Number(r.split("-")[1])+1;const i=this.numBytesWritten-this.offset;if(i){const e=this.lastChunkSent.slice(-i);this.unshiftChunkBuffer(e);this.numBytesWritten-=i;this.lastChunkSent=Buffer.alloc(0)}this.continueUploading()}else if(!this.isSuccessfulResponse(e.status)){const r={code:e.status,name:"Upload failed",message:"Upload failed"};this.destroy(r)}else{this.lastChunkSent=Buffer.alloc(0);if(e&&e.data){e.data.size=Number(e.data.size)}this.emit("metadata",e.data);this.deleteConfig();this.emit("prepareFinish")}}async ensureUploadingSameObject(){const e=this.upstreamIterator(16,true);const r=await e.next();const i=r.value?r.value.chunk:Buffer.alloc(0);this.unshiftChunkBuffer(i);let n=this.get("firstChunk");const a=i.valueOf();if(!n){this.set({uri:this.uri,firstChunk:a})}else{n=Buffer.from(n);const e=Buffer.from(a);if(Buffer.compare(n,e)!==0){this.restart();return false}}return true}async getAndSetOffset(){const e={method:"PUT",url:this.uri,headers:{"Content-Length":0,"Content-Range":"bytes */*"}};try{const r=await this.makeRequest(e);if(r.status===b){if(r.headers.range){const e=r.headers.range;this.offset=Number(e.split("-")[1])+1;return}}this.offset=0}catch(e){const r=e;const i=r.response;if(i&&i.status===v&&!this.uriProvidedManually){this.restart();return}if(i&&i.status===y){this.restart();return}this.destroy(r)}}async makeRequest(e){if(this.encryption){e.headers=e.headers||{};e.headers["x-goog-encryption-algorithm"]="AES256";e.headers["x-goog-encryption-key"]=this.encryption.key.toString();e.headers["x-goog-encryption-key-sha256"]=this.encryption.hash.toString()}if(this.userProject){e.params=e.params||{};e.params.userProject=this.userProject}e.validateStatus=e=>this.isSuccessfulResponse(e)||e===b;const r=o(true,{},this.customRequestOptions,e);const i=await this.authClient.request(r);if(i.data&&i.data.error){throw i.data.error}return i}async makeRequestStream(e){const r=new n.default;const errorCallback=()=>r.abort();this.once("error",errorCallback);if(this.userProject){e.params=e.params||{};e.params.userProject=this.userProject}e.signal=r.signal;e.validateStatus=()=>true;const i=o(true,{},this.customRequestOptions,e);const a=await this.authClient.request(i);this.onResponse(a);this.removeListener("error",errorCallback);return a}restart(){if(this.numBytesWritten){let e="Attempting to restart an upload after unrecoverable bytes have been written from upstream. ";e+="Stopping as this could result in data loss. ";e+="Create a new upload object to continue.";this.emit("error",new RangeError(e));return}this.lastChunkSent=Buffer.alloc(0);this.deleteConfig();this.createURI(((e,r)=>{if(e){return this.destroy(e)}this.set({uri:r});this.startUploading()}))}get(e){const r=this.configStore.get(this.cacheKey);return r&&r[e]}set(e){this.configStore.set(this.cacheKey,e)}deleteConfig(){this.configStore.delete(this.cacheKey)}onResponse(e){if(this.retryableErrorFn&&this.retryableErrorFn({code:e.status,message:e.statusText,name:e.statusText})||e.status===v||this.isServerErrorResponse(e.status)){this.attemptDelayedRetry(e);return false}this.emit("response",e);return true}attemptDelayedRetry(e){if(this.numRetries=200&&e<300}isServerErrorResponse(e){return e>=500&&e<600}}r.Upload=Upload;function upload(e){return new Upload(e)}r.upload=upload;function createURI(e,r){const i=new Upload(e);if(!r){return i.createURI()}i.createURI().then((e=>r(null,e)),r)}r.createURI=createURI},9930:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.HmacKey=void 0;const n=i(4777);class HmacKey extends n.ServiceObject{constructor(e,r,i){const n={delete:true,get:true,getMetadata:true,setMetadata:{reqOpts:{method:"PUT"}}};const a=i&&i.projectId||e.projectId;super({parent:e,id:r,baseUrl:`/projects/${a}/hmacKeys`,methods:n})}}r.HmacKey=HmacKey},66:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Iam=void 0;const n=i(9203);const a=i(363);const s=i(1862);class Iam{constructor(e){this.request_=e.request.bind(e);this.resourceId_="buckets/"+e.getId()}getPolicy(e,r){const{options:i,callback:n}=s.normalize(e,r);const a={};if(i.userProject){a.userProject=i.userProject}if(i.requestedPolicyVersion!==null&&i.requestedPolicyVersion!==undefined){a.optionsRequestedPolicyVersion=i.requestedPolicyVersion}this.request_({uri:"/iam",qs:a},n)}setPolicy(e,r,i){if(e===null||typeof e!=="object"){throw new Error("A policy object is required.")}const{options:n,callback:a}=s.normalize(r,i);this.request_({method:"PUT",uri:"/iam",json:Object.assign({resourceId:this.resourceId_},e),qs:n},a)}testPermissions(e,r,i){if(!Array.isArray(e)&&typeof e!=="string"){throw new Error("Permissions are required.")}const{options:n,callback:o}=s.normalize(r,i);const c=a(e);const l=Object.assign({permissions:c},n);this.request_({uri:"/iam/testPermissions",qs:l,useQuerystring:true},((e,r)=>{if(e){o(e,null,r);return}const i=a(r.permissions);const n=c.reduce(((e,r)=>{e[r]=i.indexOf(r)>-1;return e}),{});o(null,n,r)}))}}r.Iam=Iam; /*! Developer Documentation * * All async methods (except for streams) will return a Promise in the event * that a callback is omitted. - */n.promisifyAll(Iam)},8174:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=i(8561);Object.defineProperty(r,"Bucket",{enumerable:true,get:function(){return n.Bucket}});var s=i(8953);Object.defineProperty(r,"Channel",{enumerable:true,get:function(){return s.Channel}});var a=i(5373);Object.defineProperty(r,"File",{enumerable:true,get:function(){return a.File}});var o=i(9930);Object.defineProperty(r,"HmacKey",{enumerable:true,get:function(){return o.HmacKey}});var c=i(66);Object.defineProperty(r,"Iam",{enumerable:true,get:function(){return c.Iam}});var l=i(7523);Object.defineProperty(r,"Notification",{enumerable:true,get:function(){return l.Notification}});var p=i(346);Object.defineProperty(r,"Storage",{enumerable:true,get:function(){return p.Storage}})},7523:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Notification=void 0;const n=i(4777);const s=i(9203);class Notification extends n.ServiceObject{constructor(e,r){const i={create:true,exists:true};super({parent:e,baseUrl:"/notificationConfigs",id:r.toString(),createMethod:e.createNotification.bind(e),methods:i})}delete(e,r){const i=typeof e==="object"?e:{};r=typeof e==="function"?e:r;this.request({method:"DELETE",uri:"",qs:i},r||n.util.noop)}get(e,r){const i=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const n=i.autoCreate;delete i.autoCreate;const onCreate=(e,n,s)=>{if(e){if(e.code===409){this.get(i,r);return}r(e,null,s);return}r(null,n,s)};this.getMetadata(i,((e,s)=>{if(e){if(e.code===404&&n){const e=[];if(Object.keys(i).length>0){e.push(i)}e.push(onCreate);this.create.apply(this,e);return}r(e,null,s);return}r(null,this,s)}))}getMetadata(e,r){const i=typeof e==="object"?e:{};r=typeof e==="function"?e:r;this.request({uri:"",qs:i},((e,i)=>{if(e){r(e,null,i);return}this.metadata=i;r(null,this.metadata,i)}))}}r.Notification=Notification; + */n.promisifyAll(Iam)},8174:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=i(8561);Object.defineProperty(r,"Bucket",{enumerable:true,get:function(){return n.Bucket}});var a=i(8953);Object.defineProperty(r,"Channel",{enumerable:true,get:function(){return a.Channel}});var s=i(5373);Object.defineProperty(r,"File",{enumerable:true,get:function(){return s.File}});var o=i(9930);Object.defineProperty(r,"HmacKey",{enumerable:true,get:function(){return o.HmacKey}});var c=i(66);Object.defineProperty(r,"Iam",{enumerable:true,get:function(){return c.Iam}});var l=i(7523);Object.defineProperty(r,"Notification",{enumerable:true,get:function(){return l.Notification}});var p=i(346);Object.defineProperty(r,"Storage",{enumerable:true,get:function(){return p.Storage}})},7523:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Notification=void 0;const n=i(4777);const a=i(9203);class Notification extends n.ServiceObject{constructor(e,r){const i={create:true,exists:true};super({parent:e,baseUrl:"/notificationConfigs",id:r.toString(),createMethod:e.createNotification.bind(e),methods:i})}delete(e,r){const i=typeof e==="object"?e:{};r=typeof e==="function"?e:r;this.request({method:"DELETE",uri:"",qs:i},r||n.util.noop)}get(e,r){const i=typeof e==="object"?e:{};r=typeof e==="function"?e:r;const n=i.autoCreate;delete i.autoCreate;const onCreate=(e,n,a)=>{if(e){if(e.code===409){this.get(i,r);return}r(e,null,a);return}r(null,n,a)};this.getMetadata(i,((e,a)=>{if(e){if(e.code===404&&n){const e=[];if(Object.keys(i).length>0){e.push(i)}e.push(onCreate);this.create.apply(this,e);return}r(e,null,a);return}r(null,this,a)}))}getMetadata(e,r){const i=typeof e==="object"?e:{};r=typeof e==="function"?e:r;this.request({uri:"",qs:i},((e,i)=>{if(e){r(e,null,i);return}this.metadata=i;r(null,this.metadata,i)}))}}r.Notification=Notification; /*! Developer Documentation * * All async methods (except for streams) will return a Promise in the event * that a callback is omitted. - */s.promisifyAll(Notification)},9665:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.SigningError=r.URLSigner=r.PATH_STYLED_HOST=void 0;const n=i(6113);const s=i(869);const a=i(7310);const o=i(1862);const c="v2";const l=604800;r.PATH_STYLED_HOST="https://storage.googleapis.com";class URLSigner{constructor(e,r,i){this.bucket=r;this.file=i;this.authClient=e}getSignedUrl(e){const i=this.parseExpires(e.expires);const n=e.method;const s=this.parseAccessibleAt(e.accessibleAt);if(i{i=Object.assign(i,e.queryParams);const n=new a.URL(h.cname||r.PATH_STYLED_HOST);n.pathname=this.getResourcePath(!!h.cname,this.bucket.name,h.file);n.search=o.qsStringify(i);return n.href}))}getSignedUrlV2(e){const r=this.getCanonicalHeaders(e.extensionHeaders||{});const i=this.getResourcePath(false,e.bucket,e.file);const n=[e.method,e.contentMd5||"",e.contentType||"",e.expiration,r+i].join("\n");const sign=async()=>{const r=this.authClient;try{const i=await r.sign(n);const s=await r.getCredentials();return{GoogleAccessId:s.client_email,Expires:e.expiration,Signature:i}}catch(e){const r=new SigningError(e.message);r.stack=e.stack;throw r}};return sign()}getSignedUrlV4(e){e.accessibleAt=e.accessibleAt?e.accessibleAt:new Date;const i=1/1e3;const o=e.expiration-e.accessibleAt.valueOf()*i;if(o>l){throw new Error(`Max allowed expiration is seven days (${l} seconds).`)}const c=Object.assign({},e.extensionHeaders);const p=new a.URL(e.cname||r.PATH_STYLED_HOST);c.host=p.host;if(e.contentMd5){c["content-md5"]=e.contentMd5}if(e.contentType){c["content-type"]=e.contentType}let d;const h=c["x-goog-content-sha256"];if(h){if(typeof h!=="string"||!/[A-Fa-f0-9]{40}/.test(h)){throw new Error("The header X-Goog-Content-SHA256 must be a hexadecimal string.")}d=h}const g=Object.keys(c).map((e=>e.toLowerCase())).sort().join(";");const v=this.getCanonicalHeaders(c);const y=s.format(e.accessibleAt,"YYYYMMDD",true);const b=`${y}/auto/storage/goog4_request`;const sign=async()=>{const r=await this.authClient.getCredentials();const i=`${r.client_email}/${b}`;const a=s.format(e.accessibleAt?e.accessibleAt:new Date,"YYYYMMDD[T]HHmmss[Z]",true);const c={"X-Goog-Algorithm":"GOOG4-RSA-SHA256","X-Goog-Credential":i,"X-Goog-Date":a,"X-Goog-Expires":o.toString(10),"X-Goog-SignedHeaders":g,...e.queryParams||{}};const l=this.getCanonicalQueryParams(c);const p=this.getCanonicalRequest(e.method,this.getResourcePath(!!e.cname,e.bucket,e.file),l,v,g,d);const h=n.createHash("sha256").update(p).digest("hex");const y=["GOOG4-RSA-SHA256",a,b,h].join("\n");try{const e=await this.authClient.sign(y);const r=Buffer.from(e,"base64").toString("hex");const i=Object.assign({},c,{"X-Goog-Signature":r});return i}catch(e){const r=new SigningError(e.message);r.stack=e.stack;throw r}};return sign()}getCanonicalHeaders(e){const r=o.objectEntries(e).map((([e,r])=>[e.toLowerCase(),r])).sort(((e,r)=>e[0].localeCompare(r[0])));return r.filter((([,e])=>e!==undefined)).map((([e,r])=>{const i=`${r}`.trim().replace(/\s{2,}/g," ");return`${e}:${i}\n`})).join("")}getCanonicalRequest(e,r,i,n,s,a){return[e,r,i,n,s,a||"UNSIGNED-PAYLOAD"].join("\n")}getCanonicalQueryParams(e){return o.objectEntries(e).map((([e,r])=>[o.encodeURI(e,true),o.encodeURI(r,true)])).sort(((e,r)=>e[0]`${e}=${r}`)).join("&")}getResourcePath(e,r,i){if(e){return"/"+(i||"")}else if(i){return`/${r}/${i}`}else{return`/${r}`}}parseExpires(e,r=new Date){const i=new Date(e).valueOf();if(isNaN(i)){throw new Error("The expiration date provided was invalid.")}if(i{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Storage=r.PROTOCOL_REGEX=r.IdempotencyStrategy=void 0;const n=i(4777);const s=i(6412);const a=i(9203);const o=i(363);const c=i(2781);const l=i(8561);const p=i(8953);const d=i(5373);const h=i(1862);const g=i(9930);var v;(function(e){e[e["RetryAlways"]=0]="RetryAlways";e[e["RetryConditional"]=1]="RetryConditional";e[e["RetryNever"]=2]="RetryNever"})(v=r.IdempotencyStrategy||(r.IdempotencyStrategy={}));r.PROTOCOL_REGEX=/^(\w*):\/\//;const y=true;const b=3;const E=2;const x=600;const w=64;const T=v.RetryConditional;const RETRYABLE_ERR_FN_DEFAULT=function(e){var r;if(e){if([408,429,500,502,503,504].indexOf(e.code)!==-1){return true}if(e.errors){for(const i of e.errors){const e=(r=i===null||i===void 0?void 0:i.reason)===null||r===void 0?void 0:r.toString().toLowerCase();if(e&&e.includes("eai_again")||e==="econnreset"||e==="unexpected connection closure"){return true}}}}return false}; + */a.promisifyAll(Notification)},9665:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.SigningError=r.URLSigner=r.PATH_STYLED_HOST=void 0;const n=i(6113);const a=i(869);const s=i(7310);const o=i(1862);const c="v2";const l=604800;r.PATH_STYLED_HOST="https://storage.googleapis.com";class URLSigner{constructor(e,r,i){this.bucket=r;this.file=i;this.authClient=e}getSignedUrl(e){const i=this.parseExpires(e.expires);const n=e.method;const a=this.parseAccessibleAt(e.accessibleAt);if(i{i=Object.assign(i,e.queryParams);const n=new s.URL(h.cname||r.PATH_STYLED_HOST);n.pathname=this.getResourcePath(!!h.cname,this.bucket.name,h.file);n.search=o.qsStringify(i);return n.href}))}getSignedUrlV2(e){const r=this.getCanonicalHeaders(e.extensionHeaders||{});const i=this.getResourcePath(false,e.bucket,e.file);const n=[e.method,e.contentMd5||"",e.contentType||"",e.expiration,r+i].join("\n");const sign=async()=>{const r=this.authClient;try{const i=await r.sign(n);const a=await r.getCredentials();return{GoogleAccessId:a.client_email,Expires:e.expiration,Signature:i}}catch(e){const r=new SigningError(e.message);r.stack=e.stack;throw r}};return sign()}getSignedUrlV4(e){e.accessibleAt=e.accessibleAt?e.accessibleAt:new Date;const i=1/1e3;const o=e.expiration-e.accessibleAt.valueOf()*i;if(o>l){throw new Error(`Max allowed expiration is seven days (${l} seconds).`)}const c=Object.assign({},e.extensionHeaders);const p=new s.URL(e.cname||r.PATH_STYLED_HOST);c.host=p.host;if(e.contentMd5){c["content-md5"]=e.contentMd5}if(e.contentType){c["content-type"]=e.contentType}let d;const h=c["x-goog-content-sha256"];if(h){if(typeof h!=="string"||!/[A-Fa-f0-9]{40}/.test(h)){throw new Error("The header X-Goog-Content-SHA256 must be a hexadecimal string.")}d=h}const g=Object.keys(c).map((e=>e.toLowerCase())).sort().join(";");const v=this.getCanonicalHeaders(c);const y=a.format(e.accessibleAt,"YYYYMMDD",true);const b=`${y}/auto/storage/goog4_request`;const sign=async()=>{const r=await this.authClient.getCredentials();const i=`${r.client_email}/${b}`;const s=a.format(e.accessibleAt?e.accessibleAt:new Date,"YYYYMMDD[T]HHmmss[Z]",true);const c={"X-Goog-Algorithm":"GOOG4-RSA-SHA256","X-Goog-Credential":i,"X-Goog-Date":s,"X-Goog-Expires":o.toString(10),"X-Goog-SignedHeaders":g,...e.queryParams||{}};const l=this.getCanonicalQueryParams(c);const p=this.getCanonicalRequest(e.method,this.getResourcePath(!!e.cname,e.bucket,e.file),l,v,g,d);const h=n.createHash("sha256").update(p).digest("hex");const y=["GOOG4-RSA-SHA256",s,b,h].join("\n");try{const e=await this.authClient.sign(y);const r=Buffer.from(e,"base64").toString("hex");const i=Object.assign({},c,{"X-Goog-Signature":r});return i}catch(e){const r=new SigningError(e.message);r.stack=e.stack;throw r}};return sign()}getCanonicalHeaders(e){const r=o.objectEntries(e).map((([e,r])=>[e.toLowerCase(),r])).sort(((e,r)=>e[0].localeCompare(r[0])));return r.filter((([,e])=>e!==undefined)).map((([e,r])=>{const i=`${r}`.trim().replace(/\s{2,}/g," ");return`${e}:${i}\n`})).join("")}getCanonicalRequest(e,r,i,n,a,s){return[e,r,i,n,a,s||"UNSIGNED-PAYLOAD"].join("\n")}getCanonicalQueryParams(e){return o.objectEntries(e).map((([e,r])=>[o.encodeURI(e,true),o.encodeURI(r,true)])).sort(((e,r)=>e[0]`${e}=${r}`)).join("&")}getResourcePath(e,r,i){if(e){return"/"+(i||"")}else if(i){return`/${r}/${i}`}else{return`/${r}`}}parseExpires(e,r=new Date){const i=new Date(e).valueOf();if(isNaN(i)){throw new Error("The expiration date provided was invalid.")}if(i{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Storage=r.PROTOCOL_REGEX=r.IdempotencyStrategy=void 0;const n=i(4777);const a=i(6412);const s=i(9203);const o=i(363);const c=i(2781);const l=i(8561);const p=i(8953);const d=i(5373);const h=i(1862);const g=i(9930);var v;(function(e){e[e["RetryAlways"]=0]="RetryAlways";e[e["RetryConditional"]=1]="RetryConditional";e[e["RetryNever"]=2]="RetryNever"})(v=r.IdempotencyStrategy||(r.IdempotencyStrategy={}));r.PROTOCOL_REGEX=/^(\w*):\/\//;const y=true;const b=3;const x=2;const E=600;const w=64;const C=v.RetryConditional;const RETRYABLE_ERR_FN_DEFAULT=function(e){var r;if(e){if([408,429,500,502,503,504].indexOf(e.code)!==-1){return true}if(e.errors){for(const i of e.errors){const e=(r=i===null||i===void 0?void 0:i.reason)===null||r===void 0?void 0:r.toString().toLowerCase();if(e&&e.includes("eai_again")||e==="econnreset"||e==="unexpected connection closure"){return true}}}}return false}; /*! Developer Documentation * * Invoke this method to create a new Storage object bound with pre-determined * configuration options. For each object that can be created (e.g., a bucket), * there is an equivalent static and instance method. While they are classes, * they can be instantiated without use of the `new` keyword. - */class Storage extends n.Service{constructor(e={}){var r,a,o,c,l,p,d,h,g,v,_,C,R,I;let O="https://storage.googleapis.com";let P=false;const N=process.env.STORAGE_EMULATOR_HOST;if(typeof N==="string"){O=Storage.sanitizeEndpoint(N);P=true}if(e.apiEndpoint){O=Storage.sanitizeEndpoint(e.apiEndpoint);P=true}e=Object.assign({},e,{apiEndpoint:O});const B=N||`${e.apiEndpoint}/storage/v1`;let j=y;if(e.autoRetry!==undefined&&((r=e.retryOptions)===null||r===void 0?void 0:r.autoRetry)!==undefined){throw new n.ApiError("autoRetry is deprecated. Use retryOptions.autoRetry instead.")}else if(e.autoRetry!==undefined){j=e.autoRetry}else if(((a=e.retryOptions)===null||a===void 0?void 0:a.autoRetry)!==undefined){j=e.retryOptions.autoRetry}let L=b;if(e.maxRetries&&((o=e.retryOptions)===null||o===void 0?void 0:o.maxRetries)){throw new n.ApiError("maxRetries is deprecated. Use retryOptions.maxRetries instead.")}else if(e.maxRetries){L=e.maxRetries}else if((c=e.retryOptions)===null||c===void 0?void 0:c.maxRetries){L=e.retryOptions.maxRetries}const D={apiEndpoint:e.apiEndpoint,retryOptions:{autoRetry:j,maxRetries:L,retryDelayMultiplier:((l=e.retryOptions)===null||l===void 0?void 0:l.retryDelayMultiplier)?(p=e.retryOptions)===null||p===void 0?void 0:p.retryDelayMultiplier:E,totalTimeout:((d=e.retryOptions)===null||d===void 0?void 0:d.totalTimeout)?(h=e.retryOptions)===null||h===void 0?void 0:h.totalTimeout:x,maxRetryDelay:((g=e.retryOptions)===null||g===void 0?void 0:g.maxRetryDelay)?(v=e.retryOptions)===null||v===void 0?void 0:v.maxRetryDelay:w,retryableErrorFn:((_=e.retryOptions)===null||_===void 0?void 0:_.retryableErrorFn)?(C=e.retryOptions)===null||C===void 0?void 0:C.retryableErrorFn:RETRYABLE_ERR_FN_DEFAULT,idempotencyStrategy:((R=e.retryOptions)===null||R===void 0?void 0:R.idempotencyStrategy)!==undefined?(I=e.retryOptions)===null||I===void 0?void 0:I.idempotencyStrategy:T},baseUrl:B,customEndpoint:P,useAuthWithCustomEndpoint:e===null||e===void 0?void 0:e.useAuthWithCustomEndpoint,projectIdRequired:false,scopes:["https://www.googleapis.com/auth/iam","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/devstorage.full_control"],packageJson:i(5458)};super(D,e);this.acl=Storage.acl;this.retryOptions=D.retryOptions;this.getBucketsStream=s.paginator.streamify("getBuckets");this.getHmacKeysStream=s.paginator.streamify("getHmacKeys")}getBucketsStream(){return new c.Readable}getHmacKeysStream(){return new c.Readable}static sanitizeEndpoint(e){if(!r.PROTOCOL_REGEX.test(e)){e=`https://${e}`}return e.replace(/\/+$/,"")}bucket(e,r){if(!e){throw new Error("A bucket name is needed to use Cloud Storage.")}return new l.Bucket(this,e,r)}channel(e,r){return new p.Channel(this,e,r)}createBucket(e,r,i){if(!e){throw new Error("A name is required to create a bucket.")}let n;if(!i){i=r;n={}}else{n=r}const s=Object.assign({},n,{name:e});const a={archive:"ARCHIVE",coldline:"COLDLINE",dra:"DURABLE_REDUCED_AVAILABILITY",multiRegional:"MULTI_REGIONAL",nearline:"NEARLINE",regional:"REGIONAL",standard:"STANDARD"};Object.keys(a).forEach((e=>{if(s[e]){if(n.storageClass&&n.storageClass!==e){throw new Error(`Both \`${e}\` and \`storageClass\` were provided.`)}s.storageClass=a[e];delete s[e]}}));if(s.requesterPays){s.billing={requesterPays:s.requesterPays};delete s.requesterPays}const o={project:this.projectId};if(s.userProject){o.userProject=s.userProject;delete s.userProject}this.request({method:"POST",uri:"/b",qs:o,json:s},((r,n)=>{if(r){i(r,null,n);return}const s=this.bucket(e);s.metadata=n;i(null,s,n)}))}createHmacKey(e,r,i){if(typeof e!=="string"){throw new Error("The first argument must be a service account email to create an HMAC key.")}const{options:n,callback:s}=h.normalize(r,i);const a=Object.assign({},n,{serviceAccountEmail:e});const o=a.projectId||this.projectId;delete a.projectId;this.request({method:"POST",uri:`/projects/${o}/hmacKeys`,qs:a,maxRetries:0},((e,r)=>{if(e){s(e,null,null,r);return}const i=r.metadata;const n=this.hmacKey(i.accessId,{projectId:i.projectId});n.metadata=r.metadata;s(null,n,r.secret,r)}))}getBuckets(e,r){const{options:i,callback:n}=h.normalize(e,r);i.project=i.project||this.projectId;this.request({uri:"/b",qs:i},((e,r)=>{if(e){n(e,null,null,r);return}const s=o(r.items).map((e=>{const r=this.bucket(e.id);r.metadata=e;return r}));const a=r.nextPageToken?Object.assign({},i,{pageToken:r.nextPageToken}):null;n(null,s,a,r)}))}getHmacKeys(e,r){const{options:i,callback:n}=h.normalize(e,r);const s=Object.assign({},i);const a=s.projectId||this.projectId;delete s.projectId;this.request({uri:`/projects/${a}/hmacKeys`,qs:s},((e,r)=>{if(e){n(e,null,null,r);return}const s=o(r.items).map((e=>{const r=this.hmacKey(e.accessId,{projectId:e.projectId});r.metadata=e;return r}));const a=r.nextPageToken?Object.assign({},i,{pageToken:r.nextPageToken}):null;n(null,s,a,r)}))}getServiceAccount(e,r){const{options:i,callback:n}=h.normalize(e,r);this.request({uri:`/projects/${this.projectId}/serviceAccount`,qs:i},((e,r)=>{if(e){n(e,null,r);return}const i={};for(const e in r){if(r.hasOwnProperty(e)){const n=e.replace(/_(\w)/g,((e,r)=>r.toUpperCase()));i[n]=r[e]}}n(null,i,r)}))}hmacKey(e,r){if(!e){throw new Error("An access ID is needed to create an HmacKey object.")}return new g.HmacKey(this,e,r)}}r.Storage=Storage;Storage.Bucket=l.Bucket;Storage.Channel=p.Channel;Storage.File=d.File;Storage.HmacKey=g.HmacKey;Storage.acl={OWNER_ROLE:"OWNER",READER_ROLE:"READER",WRITER_ROLE:"WRITER"}; + */class Storage extends n.Service{constructor(e={}){var r,s,o,c,l,p,d,h,g,v,T,_,I,R;let O="https://storage.googleapis.com";let N=false;const B=process.env.STORAGE_EMULATOR_HOST;if(typeof B==="string"){O=Storage.sanitizeEndpoint(B);N=true}if(e.apiEndpoint){O=Storage.sanitizeEndpoint(e.apiEndpoint);N=true}e=Object.assign({},e,{apiEndpoint:O});const P=B||`${e.apiEndpoint}/storage/v1`;let j=y;if(e.autoRetry!==undefined&&((r=e.retryOptions)===null||r===void 0?void 0:r.autoRetry)!==undefined){throw new n.ApiError("autoRetry is deprecated. Use retryOptions.autoRetry instead.")}else if(e.autoRetry!==undefined){j=e.autoRetry}else if(((s=e.retryOptions)===null||s===void 0?void 0:s.autoRetry)!==undefined){j=e.retryOptions.autoRetry}let L=b;if(e.maxRetries&&((o=e.retryOptions)===null||o===void 0?void 0:o.maxRetries)){throw new n.ApiError("maxRetries is deprecated. Use retryOptions.maxRetries instead.")}else if(e.maxRetries){L=e.maxRetries}else if((c=e.retryOptions)===null||c===void 0?void 0:c.maxRetries){L=e.retryOptions.maxRetries}const D={apiEndpoint:e.apiEndpoint,retryOptions:{autoRetry:j,maxRetries:L,retryDelayMultiplier:((l=e.retryOptions)===null||l===void 0?void 0:l.retryDelayMultiplier)?(p=e.retryOptions)===null||p===void 0?void 0:p.retryDelayMultiplier:x,totalTimeout:((d=e.retryOptions)===null||d===void 0?void 0:d.totalTimeout)?(h=e.retryOptions)===null||h===void 0?void 0:h.totalTimeout:E,maxRetryDelay:((g=e.retryOptions)===null||g===void 0?void 0:g.maxRetryDelay)?(v=e.retryOptions)===null||v===void 0?void 0:v.maxRetryDelay:w,retryableErrorFn:((T=e.retryOptions)===null||T===void 0?void 0:T.retryableErrorFn)?(_=e.retryOptions)===null||_===void 0?void 0:_.retryableErrorFn:RETRYABLE_ERR_FN_DEFAULT,idempotencyStrategy:((I=e.retryOptions)===null||I===void 0?void 0:I.idempotencyStrategy)!==undefined?(R=e.retryOptions)===null||R===void 0?void 0:R.idempotencyStrategy:C},baseUrl:P,customEndpoint:N,useAuthWithCustomEndpoint:e===null||e===void 0?void 0:e.useAuthWithCustomEndpoint,projectIdRequired:false,scopes:["https://www.googleapis.com/auth/iam","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/devstorage.full_control"],packageJson:i(5458)};super(D,e);this.acl=Storage.acl;this.retryOptions=D.retryOptions;this.getBucketsStream=a.paginator.streamify("getBuckets");this.getHmacKeysStream=a.paginator.streamify("getHmacKeys")}getBucketsStream(){return new c.Readable}getHmacKeysStream(){return new c.Readable}static sanitizeEndpoint(e){if(!r.PROTOCOL_REGEX.test(e)){e=`https://${e}`}return e.replace(/\/+$/,"")}bucket(e,r){if(!e){throw new Error("A bucket name is needed to use Cloud Storage.")}return new l.Bucket(this,e,r)}channel(e,r){return new p.Channel(this,e,r)}createBucket(e,r,i){if(!e){throw new Error("A name is required to create a bucket.")}let n;if(!i){i=r;n={}}else{n=r}const a=Object.assign({},n,{name:e});const s={archive:"ARCHIVE",coldline:"COLDLINE",dra:"DURABLE_REDUCED_AVAILABILITY",multiRegional:"MULTI_REGIONAL",nearline:"NEARLINE",regional:"REGIONAL",standard:"STANDARD"};Object.keys(s).forEach((e=>{if(a[e]){if(n.storageClass&&n.storageClass!==e){throw new Error(`Both \`${e}\` and \`storageClass\` were provided.`)}a.storageClass=s[e];delete a[e]}}));if(a.requesterPays){a.billing={requesterPays:a.requesterPays};delete a.requesterPays}const o={project:this.projectId};if(a.userProject){o.userProject=a.userProject;delete a.userProject}this.request({method:"POST",uri:"/b",qs:o,json:a},((r,n)=>{if(r){i(r,null,n);return}const a=this.bucket(e);a.metadata=n;i(null,a,n)}))}createHmacKey(e,r,i){if(typeof e!=="string"){throw new Error("The first argument must be a service account email to create an HMAC key.")}const{options:n,callback:a}=h.normalize(r,i);const s=Object.assign({},n,{serviceAccountEmail:e});const o=s.projectId||this.projectId;delete s.projectId;this.request({method:"POST",uri:`/projects/${o}/hmacKeys`,qs:s,maxRetries:0},((e,r)=>{if(e){a(e,null,null,r);return}const i=r.metadata;const n=this.hmacKey(i.accessId,{projectId:i.projectId});n.metadata=r.metadata;a(null,n,r.secret,r)}))}getBuckets(e,r){const{options:i,callback:n}=h.normalize(e,r);i.project=i.project||this.projectId;this.request({uri:"/b",qs:i},((e,r)=>{if(e){n(e,null,null,r);return}const a=o(r.items).map((e=>{const r=this.bucket(e.id);r.metadata=e;return r}));const s=r.nextPageToken?Object.assign({},i,{pageToken:r.nextPageToken}):null;n(null,a,s,r)}))}getHmacKeys(e,r){const{options:i,callback:n}=h.normalize(e,r);const a=Object.assign({},i);const s=a.projectId||this.projectId;delete a.projectId;this.request({uri:`/projects/${s}/hmacKeys`,qs:a},((e,r)=>{if(e){n(e,null,null,r);return}const a=o(r.items).map((e=>{const r=this.hmacKey(e.accessId,{projectId:e.projectId});r.metadata=e;return r}));const s=r.nextPageToken?Object.assign({},i,{pageToken:r.nextPageToken}):null;n(null,a,s,r)}))}getServiceAccount(e,r){const{options:i,callback:n}=h.normalize(e,r);this.request({uri:`/projects/${this.projectId}/serviceAccount`,qs:i},((e,r)=>{if(e){n(e,null,r);return}const i={};for(const e in r){if(r.hasOwnProperty(e)){const n=e.replace(/_(\w)/g,((e,r)=>r.toUpperCase()));i[n]=r[e]}}n(null,i,r)}))}hmacKey(e,r){if(!e){throw new Error("An access ID is needed to create an HmacKey object.")}return new g.HmacKey(this,e,r)}}r.Storage=Storage;Storage.Bucket=l.Bucket;Storage.Channel=p.Channel;Storage.File=d.File;Storage.HmacKey=g.HmacKey;Storage.acl={OWNER_ROLE:"OWNER",READER_ROLE:"READER",WRITER_ROLE:"WRITER"}; /*! Developer Documentation * * These methods can be auto-paginated. - */s.paginator.extend(Storage,["getBuckets","getHmacKeys"]); + */a.paginator.extend(Storage,["getBuckets","getHmacKeys"]); /*! Developer Documentation * * All async methods (except for streams) will return a Promise in the event * that a callback is omitted. - */a.promisifyAll(Storage,{exclude:["bucket","channel","hmacKey"]})},1862:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.unicodeJSONStringify=r.objectKeyToLowercase=r.qsStringify=r.encodeURI=r.fixedEncodeURIComponent=r.objectEntries=r.normalize=void 0;const n=i(3477);function normalize(e,r){const i=typeof e==="object"?e:{};const n=typeof e==="function"?e:r;return{options:i,callback:n}}r.normalize=normalize;function objectEntries(e){return Object.keys(e).map((r=>[r,e[r]]))}r.objectEntries=objectEntries;function fixedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()))}r.fixedEncodeURIComponent=fixedEncodeURIComponent;function encodeURI(e,r){return e.split("/").map(fixedEncodeURIComponent).join(r?"%2F":"/")}r.encodeURI=encodeURI;function qsStringify(e){return n.stringify(e,"&","=",{encodeURIComponent:e=>encodeURI(e,true)})}r.qsStringify=qsStringify;function objectKeyToLowercase(e){const r={};for(let i of Object.keys(e)){const n=e[i];i=i.toLowerCase();r[i]=n}return r}r.objectKeyToLowercase=objectKeyToLowercase;function unicodeJSONStringify(e){return JSON.stringify(e).replace(/[\u0080-\uFFFF]/g,(e=>"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)))}r.unicodeJSONStringify=unicodeJSONStringify},363:e=>{"use strict";const arrify=e=>{if(e===null||e===undefined){return[]}if(Array.isArray(e)){return e}if(typeof e==="string"){return[e]}if(typeof e[Symbol.iterator]==="function"){return[...e]}return[e]};e.exports=arrify},334:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});async function auth(e){const r=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:r}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,r,i,n){const s=r.endpoint.merge(i,n);s.headers.authorization=withAuthorizationPrefix(e);return r(s)}const i=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};r.createTokenAuth=i},6762:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=i(5030);var s=i(3682);var a=i(6234);var o=i(8467);var c=i(334);function _objectWithoutPropertiesLoose(e,r){if(e==null)return{};var i={};var n=Object.keys(e);var s,a;for(a=0;a=0)continue;i[s]=e[s]}return i}function _objectWithoutProperties(e,r){if(e==null)return{};var i=_objectWithoutPropertiesLoose(e,r);var n,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;i[n]=e[n]}}return i}const l="3.4.0";class Octokit{constructor(e={}){const r=new s.Collection;const i={baseUrl:a.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};i.headers["user-agent"]=[e.userAgent,`octokit-core.js/${l} ${n.getUserAgent()}`].filter(Boolean).join(" ");if(e.baseUrl){i.baseUrl=e.baseUrl}if(e.previews){i.mediaType.previews=e.previews}if(e.timeZone){i.headers["time-zone"]=e.timeZone}this.request=a.request.defaults(i);this.graphql=o.withCustomRequest(this.request).defaults(i);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=r;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const i=c.createTokenAuth(e.auth);r.wrap("request",i.hook);this.auth=i}}else{const{authStrategy:i}=e,n=_objectWithoutProperties(e,["authStrategy"]);const s=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));r.wrap("request",s.hook);this.auth=s}const p=this.constructor;p.plugins.forEach((r=>{Object.assign(this,r(this,e))}))}static defaults(e){const r=class extends(this){constructor(...r){const i=r[0]||{};if(typeof e==="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}};return r}static plugin(...e){var r;const i=this.plugins;const n=(r=class extends(this){},r.plugins=i.concat(e.filter((e=>!i.includes(e)))),r);return n}}Octokit.VERSION=l;Octokit.plugins=[];r.Octokit=Octokit},9440:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=i(3287);var s=i(5030);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((r,i)=>{r[i.toLowerCase()]=e[i];return r}),{})}function mergeDeep(e,r){const i=Object.assign({},e);Object.keys(r).forEach((s=>{if(n.isPlainObject(r[s])){if(!(s in e))Object.assign(i,{[s]:r[s]});else i[s]=mergeDeep(e[s],r[s])}else{Object.assign(i,{[s]:r[s]})}}));return i}function removeUndefinedProperties(e){for(const r in e){if(e[r]===undefined){delete e[r]}}return e}function merge(e,r,i){if(typeof r==="string"){let[e,n]=r.split(" ");i=Object.assign(n?{method:e,url:n}:{url:e},i)}else{i=Object.assign({},r)}i.headers=lowercaseKeys(i.headers);removeUndefinedProperties(i);removeUndefinedProperties(i.headers);const n=mergeDeep(e||{},i);if(e&&e.mediaType.previews.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=n.mediaType.previews.map((e=>e.replace(/-preview/,"")));return n}function addQueryParameters(e,r){const i=/\?/.test(e)?"&":"?";const n=Object.keys(r);if(n.length===0){return e}return e+i+n.map((e=>{if(e==="q"){return"q="+r.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(r[e])}`})).join("&")}const a=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const r=e.match(a);if(!r){return[]}return r.map(removeNonChars).reduce(((e,r)=>e.concat(r)),[])}function omit(e,r){return Object.keys(e).filter((e=>!r.includes(e))).reduce(((r,i)=>{r[i]=e[i];return r}),{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,r,i){r=e==="+"||e==="#"?encodeReserved(r):encodeUnreserved(r);if(i){return encodeUnreserved(i)+"="+r}else{return r}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,r,i,n){var s=e[i],a=[];if(isDefined(s)&&s!==""){if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){s=s.toString();if(n&&n!=="*"){s=s.substring(0,parseInt(n,10))}a.push(encodeValue(r,s,isKeyOperator(r)?i:""))}else{if(n==="*"){if(Array.isArray(s)){s.filter(isDefined).forEach((function(e){a.push(encodeValue(r,e,isKeyOperator(r)?i:""))}))}else{Object.keys(s).forEach((function(e){if(isDefined(s[e])){a.push(encodeValue(r,s[e],e))}}))}}else{const e=[];if(Array.isArray(s)){s.filter(isDefined).forEach((function(i){e.push(encodeValue(r,i))}))}else{Object.keys(s).forEach((function(i){if(isDefined(s[i])){e.push(encodeUnreserved(i));e.push(encodeValue(r,s[i].toString()))}}))}if(isKeyOperator(r)){a.push(encodeUnreserved(i)+"="+e.join(","))}else if(e.length!==0){a.push(e.join(","))}}}}else{if(r===";"){if(isDefined(s)){a.push(encodeUnreserved(i))}}else if(s===""&&(r==="&"||r==="?")){a.push(encodeUnreserved(i)+"=")}else if(s===""){a.push("")}}return a}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,r){var i=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,s){if(n){let e="";const s=[];if(i.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(i){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(i);s.push(getValues(r,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var a=",";if(e==="?"){a="&"}else if(e!=="#"){a=e}return(s.length!==0?e:"")+s.join(a)}else{return s.join(",")}}else{return encodeReserved(s)}}))}function parse(e){let r=e.method.toUpperCase();let i=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let s;let a=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const o=extractUrlVariableNames(i);i=parseUrl(i).expand(a);if(!/^http/.test(i)){i=e.baseUrl+i}const c=Object.keys(e).filter((e=>o.includes(e))).concat("baseUrl");const l=omit(a,c);const p=/application\/octet-stream/i.test(n.accept);if(!p){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((r=>r.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(e.mediaType.previews.length){const r=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=r.concat(e.mediaType.previews).map((r=>{const i=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${r}-preview${i}`})).join(",")}}if(["GET","HEAD"].includes(r)){i=addQueryParameters(i,l)}else{if("data"in l){s=l.data}else{if(Object.keys(l).length){s=l}else{n["content-length"]=0}}}if(!n["content-type"]&&typeof s!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(r)&&typeof s==="undefined"){s=""}return Object.assign({method:r,url:i,headers:n},typeof s!=="undefined"?{body:s}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,r,i){return parse(merge(e,r,i))}function withDefaults(e,r){const i=merge(e,r);const n=endpointWithDefaults.bind(null,i);return Object.assign(n,{DEFAULTS:i,defaults:withDefaults.bind(null,i),merge:merge.bind(null,i),parse:parse})}const o="6.0.11";const c=`octokit-endpoint.js/${o} ${s.getUserAgent()}`;const l={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":c},mediaType:{format:"",previews:[]}};const p=withDefaults(null,l);r.endpoint=p},8467:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=i(6234);var s=i(5030);const a="4.6.1";class GraphqlError extends Error{constructor(e,r){const i=r.data.errors[0].message;super(i);Object.assign(this,r.data);Object.assign(this,{headers:r.headers});this.name="GraphqlError";this.request=e;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const o=["method","baseUrl","url","headers","request","query","mediaType"];const c=["query","method","url"];const l=/\/api\/v3\/?$/;function graphql(e,r,i){if(i){if(typeof r==="string"&&"query"in i){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in i){if(!c.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof r==="string"?Object.assign({query:r},i):r;const s=Object.keys(n).reduce(((e,r)=>{if(o.includes(r)){e[r]=n[r];return e}if(!e.variables){e.variables={}}e.variables[r]=n[r];return e}),{});const a=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(l.test(a)){s.url=a.replace(l,"/api/graphql")}return e(s).then((e=>{if(e.data.errors){const r={};for(const i of Object.keys(e.headers)){r[i]=e.headers[i]}throw new GraphqlError(s,{headers:r,data:e.data})}return e.data.data}))}function withDefaults(e,r){const i=e.defaults(r);const newApi=(e,r)=>graphql(i,e,r);return Object.assign(newApi,{defaults:withDefaults.bind(null,i),endpoint:n.request.endpoint})}const p=withDefaults(n.request,{headers:{"user-agent":`octokit-graphql.js/${a} ${s.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}r.graphql=p;r.withCustomRequest=withCustomRequest},4193:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const i="2.13.3";function normalizePaginatedListResponse(e){const r="total_count"in e.data&&!("url"in e.data);if(!r)return e;const i=e.data.incomplete_results;const n=e.data.repository_selection;const s=e.data.total_count;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;const a=Object.keys(e.data)[0];const o=e.data[a];e.data=o;if(typeof i!=="undefined"){e.data.incomplete_results=i}if(typeof n!=="undefined"){e.data.repository_selection=n}e.data.total_count=s;return e}function iterator(e,r,i){const n=typeof r==="function"?r.endpoint(i):e.request.endpoint(r,i);const s=typeof r==="function"?r:e.request;const a=n.method;const o=n.headers;let c=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!c)return{done:true};const e=await s({method:a,url:c,headers:o});const r=normalizePaginatedListResponse(e);c=((r.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:r}}})}}function paginate(e,r,i,n){if(typeof i==="function"){n=i;i=undefined}return gather(e,[],iterator(e,r,i)[Symbol.asyncIterator](),n)}function gather(e,r,i,n){return i.next().then((s=>{if(s.done){return r}let a=false;function done(){a=true}r=r.concat(n?n(s.value,done):s.value.data);if(a){return r}return gather(e,r,i,n)}))}const n=Object.assign(paginate,{iterator:iterator});const s=["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}/actions/runners/downloads","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 /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/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/runners/downloads","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","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}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","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}/team-sync/group-mappings","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/runners","GET /repos/{owner}/{repo}/actions/runners/downloads","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","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}/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}/branches-where-head","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}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","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}/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}/secret-scanning/alerts","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /scim/v2/enterprises/{enterprise}/Groups","GET /scim/v2/enterprises/{enterprise}/Users","GET /scim/v2/organizations/{org}/Users","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}/team-sync/group-mappings","GET /teams/{team_id}/teams","GET /user/blocks","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/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}/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(e){if(typeof e==="string"){return s.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=i;r.composePaginateRest=n;r.isPaginatingEndpoint=isPaginatingEndpoint;r.paginateRest=paginateRest;r.paginatingEndpoints=s},3044:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function ownKeys(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(r){n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))}i.push.apply(i,n)}return i}function _objectSpread2(e){for(var r=1;r{"use strict";Object.defineProperty(r,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=i(8932);var s=_interopDefault(i(1223));const a=s((e=>console.warn(e)));class RequestError extends Error{constructor(e,r,i){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=r;Object.defineProperty(this,"code",{get(){a(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return r}});this.headers=i.headers||{};const s=Object.assign({},i.request);if(i.request.headers.authorization){s.headers=Object.assign({},i.request.headers,{authorization:i.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=s}}r.RequestError=RequestError},6234:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=i(9440);var s=i(5030);var a=i(3287);var o=_interopDefault(i(467));var c=i(537);const l="5.4.15";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(a.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let r={};let i;let n;const s=e.request&&e.request.fetch||o;return s(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((s=>{n=s.url;i=s.status;for(const e of s.headers){r[e[0]]=e[1]}if(i===204||i===205){return}if(e.method==="HEAD"){if(i<400){return}throw new c.RequestError(s.statusText,i,{headers:r,request:e})}if(i===304){throw new c.RequestError("Not modified",i,{headers:r,request:e})}if(i>=400){return s.text().then((n=>{const s=new c.RequestError(n,i,{headers:r,request:e});try{let e=JSON.parse(s.message);Object.assign(s,e);let r=e.errors;s.message=s.message+": "+r.map(JSON.stringify).join(", ")}catch(e){}throw s}))}const a=s.headers.get("content-type");if(/application\/json/.test(a)){return s.json()}if(!a||/^text\/|charset=utf-8$/.test(a)){return s.text()}return getBufferResponse(s)})).then((e=>({status:i,url:n,headers:r,data:e}))).catch((i=>{if(i instanceof c.RequestError){throw i}throw new c.RequestError(i.message,500,{headers:r,request:e})}))}function withDefaults(e,r){const i=e.defaults(r);const newApi=function(e,r){const n=i.merge(e,r);if(!n.request||!n.request.hook){return fetchWrapper(i.parse(n))}const request=(e,r)=>fetchWrapper(i.parse(i.merge(e,r)));Object.assign(request,{endpoint:i,defaults:withDefaults.bind(null,i)});return n.request.hook(request,n)};return Object.assign(newApi,{endpoint:i,defaults:withDefaults.bind(null,i)})}const p=withDefaults(n.endpoint,{headers:{"user-agent":`octokit-request.js/${l} ${s.getUserAgent()}`}});r.request=p},1659:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=i(4697);class AbortSignal extends n.EventTarget{constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const e=s.get(this);if(typeof e!=="boolean"){throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`)}return e}}n.defineEventAttribute(AbortSignal.prototype,"abort");function createAbortSignal(){const e=Object.create(AbortSignal.prototype);n.EventTarget.call(e);s.set(e,false);return e}function abortSignal(e){if(s.get(e)!==false){return}s.set(e,true);e.dispatchEvent({type:"abort"})}const s=new WeakMap;Object.defineProperties(AbortSignal.prototype,{aborted:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortSignal.prototype,Symbol.toStringTag,{configurable:true,value:"AbortSignal"})}class AbortController{constructor(){a.set(this,createAbortSignal())}get signal(){return getSignal(this)}abort(){abortSignal(getSignal(this))}}const a=new WeakMap;function getSignal(e){const r=a.get(e);if(r==null){throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${e===null?"null":typeof e}`)}return r}Object.defineProperties(AbortController.prototype,{signal:{enumerable:true},abort:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortController.prototype,Symbol.toStringTag,{configurable:true,value:"AbortController"})}r.AbortController=AbortController;r.AbortSignal=AbortSignal;r["default"]=AbortController;e.exports=AbortController;e.exports.AbortController=e.exports["default"]=AbortController;e.exports.AbortSignal=AbortSignal},9690:function(e,r,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const s=i(2361);const a=n(i(8237));const o=n(i(6570));const c=a.default("agent-base");function isAgent(e){return Boolean(e)&&typeof e.addRequest==="function"}function isSecureEndpoint(){const{stack:e}=new Error;if(typeof e!=="string")return false;return e.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}function createAgent(e,r){return new createAgent.Agent(e,r)}(function(e){class Agent extends s.EventEmitter{constructor(e,r){super();let i=r;if(typeof e==="function"){this.callback=e}else if(e){i=e}this.timeout=null;if(i&&typeof i.timeout==="number"){this.timeout=i.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(e){this.explicitDefaultPort=e}get protocol(){if(typeof this.explicitProtocol==="string"){return this.explicitProtocol}return isSecureEndpoint()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,r,i){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,r){const i=Object.assign({},r);if(typeof i.secureEndpoint!=="boolean"){i.secureEndpoint=isSecureEndpoint()}if(i.host==null){i.host="localhost"}if(i.port==null){i.port=i.secureEndpoint?443:80}if(i.protocol==null){i.protocol=i.secureEndpoint?"https:":"http:"}if(i.host&&i.path){delete i.path}delete i.agent;delete i.hostname;delete i._defaultAgent;delete i.defaultPort;delete i.createConnection;e._last=true;e.shouldKeepAlive=false;let n=false;let s=null;const a=i.timeout||this.timeout;const onerror=r=>{if(e._hadError)return;e.emit("error",r);e._hadError=true};const ontimeout=()=>{s=null;n=true;const e=new Error(`A "socket" was not created for HTTP request before ${a}ms`);e.code="ETIMEOUT";onerror(e)};const callbackError=e=>{if(n)return;if(s!==null){clearTimeout(s);s=null}onerror(e)};const onsocket=r=>{if(n)return;if(s!=null){clearTimeout(s);s=null}if(isAgent(r)){c("Callback returned another Agent instance %o",r.constructor.name);r.addRequest(e,i);return}if(r){r.once("free",(()=>{this.freeSocket(r,i)}));e.onSocket(r);return}const a=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);onerror(a)};if(typeof this.callback!=="function"){onerror(new Error("`callback` is not defined"));return}if(!this.promisifiedCallback){if(this.callback.length>=3){c("Converting legacy callback function to promise");this.promisifiedCallback=o.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof a==="number"&&a>0){s=setTimeout(ontimeout,a)}if("port"in i&&typeof i.port!=="number"){i.port=Number(i.port)}try{c("Resolving socket for %o request: %o",i.protocol,`${e.method} ${e.path}`);Promise.resolve(this.promisifiedCallback(e,i)).then(onsocket,callbackError)}catch(e){Promise.reject(e).catch(callbackError)}}freeSocket(e,r){c("Freeing socket %o %o",e.constructor.name,r);e.destroy()}destroy(){c("Destroying agent %o",this.constructor.name)}}e.Agent=Agent;e.prototype=e.Agent.prototype})(createAgent||(createAgent={}));e.exports=createAgent},6570:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function promisify(e){return function(r,i){return new Promise(((n,s)=>{e.call(this,r,i,((e,r)=>{if(e){s(e)}else{n(r)}}))}))}}r["default"]=promisify},3415:(e,r,i)=>{var n=i(4347);function retry(e,r){function run(i,s){var a=r||{};var o;if(!("randomize"in a)){a.randomize=true}o=n.operation(a);function bail(e){s(e||new Error("Aborted"))}function onError(e,r){if(e.bail){bail(e);return}if(!o.retry(e)){s(o.mainError())}else if(a.onRetry){a.onRetry(e,r)}}function runAttempt(r){var n;try{n=e(bail,r)}catch(e){onError(e,r);return}Promise.resolve(n).then(i).catch((function catchIt(e){onError(e,r)}))}o.attempt(runAttempt)}return new Promise(run)}e.exports=retry},9417:e=>{"use strict";e.exports=balanced;function balanced(e,r,i){if(e instanceof RegExp)e=maybeMatch(e,i);if(r instanceof RegExp)r=maybeMatch(r,i);var n=range(e,r,i);return n&&{start:n[0],end:n[1],pre:i.slice(0,n[0]),body:i.slice(n[0]+e.length,n[1]),post:i.slice(n[1]+r.length)}}function maybeMatch(e,r){var i=r.match(e);return i?i[0]:null}balanced.range=range;function range(e,r,i){var n,s,a,o,c;var l=i.indexOf(e);var p=i.indexOf(r,l+1);var d=l;if(l>=0&&p>0){if(e===r){return[l,p]}n=[];a=i.length;while(d>=0&&!c){if(d==l){n.push(d);l=i.indexOf(e,d+1)}else if(n.length==1){c=[n.pop(),p]}else{s=n.pop();if(s=0?l:p}if(n.length){c=[a,o]}}return c}},6463:(e,r)=>{"use strict";r.byteLength=byteLength;r.toByteArray=toByteArray;r.fromByteArray=fromByteArray;var i=[];var n=[];var s=typeof Uint8Array!=="undefined"?Uint8Array:Array;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var o=0,c=a.length;o0){throw new Error("Invalid string. Length must be a multiple of 4")}var i=e.indexOf("=");if(i===-1)i=r;var n=i===r?0:4-i%4;return[i,n]}function byteLength(e){var r=getLens(e);var i=r[0];var n=r[1];return(i+n)*3/4-n}function _byteLength(e,r,i){return(r+i)*3/4-i}function toByteArray(e){var r;var i=getLens(e);var a=i[0];var o=i[1];var c=new s(_byteLength(e,a,o));var l=0;var p=o>0?a-4:a;var d;for(d=0;d>16&255;c[l++]=r>>8&255;c[l++]=r&255}if(o===2){r=n[e.charCodeAt(d)]<<2|n[e.charCodeAt(d+1)]>>4;c[l++]=r&255}if(o===1){r=n[e.charCodeAt(d)]<<10|n[e.charCodeAt(d+1)]<<4|n[e.charCodeAt(d+2)]>>2;c[l++]=r>>8&255;c[l++]=r&255}return c}function tripletToBase64(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[e&63]}function encodeChunk(e,r,i){var n;var s=[];for(var a=r;al?l:c+o))}if(s===1){r=e[n-1];a.push(i[r>>2]+i[r<<4&63]+"==")}else if(s===2){r=(e[n-2]<<8)+e[n-1];a.push(i[r>>10]+i[r>>4&63]+i[r<<2&63]+"=")}return a.join("")}},3682:(e,r,i)=>{var n=i(4670);var s=i(5549);var a=i(6819);var o=Function.bind;var c=o.bind(o);function bindApi(e,r,i){var n=c(a,null).apply(null,i?[r,i]:[r]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((function(n){var a=i?[r,n,i]:[r,n];e[n]=e.api[n]=c(s,null).apply(null,a)}))}function HookSingular(){var e="h";var r={registry:{}};var i=n.bind(null,r,e);bindApi(i,r,e);return i}function HookCollection(){var e={registry:{}};var r=n.bind(null,e);bindApi(r,e);return r}var l=false;function Hook(){if(!l){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');l=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},5549:e=>{e.exports=addHook;function addHook(e,r,i,n){var s=n;if(!e.registry[i]){e.registry[i]=[]}if(r==="before"){n=function(e,r){return Promise.resolve().then(s.bind(null,r)).then(e.bind(null,r))}}if(r==="after"){n=function(e,r){var i;return Promise.resolve().then(e.bind(null,r)).then((function(e){i=e;return s(i,r)})).then((function(){return i}))}}if(r==="error"){n=function(e,r){return Promise.resolve().then(e.bind(null,r)).catch((function(e){return s(e,r)}))}}e.registry[i].push({hook:n,orig:s})}},4670:e=>{e.exports=register;function register(e,r,i,n){if(typeof i!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(r)){return r.reverse().reduce((function(r,i){return register.bind(null,e,i,r,n)}),i)()}return Promise.resolve().then((function(){if(!e.registry[r]){return i(n)}return e.registry[r].reduce((function(e,r){return r.hook.bind(null,e,n)}),i)()}))}},6819:e=>{e.exports=removeHook;function removeHook(e,r,i){if(!e.registry[r]){return}var n=e.registry[r].map((function(e){return e.orig})).indexOf(i);if(n===-1){return}e.registry[r].splice(n,1)}},7558:function(e){(function(r){"use strict";var i,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,a=Math.floor,o="[BigNumber Error] ",c=o+"Number primitive has more than 15 significant digits: ",l=1e14,p=14,d=9007199254740991,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],g=1e7,v=1e9;function clone(e){var r,i,y,b=BigNumber.prototype={constructor:BigNumber,toString:null,valueOf:null},E=new BigNumber(1),x=20,w=4,T=-7,_=21,C=-1e7,R=1e7,I=false,O=1,P=0,N={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},B="0123456789abcdefghijklmnopqrstuvwxyz",j=true;function BigNumber(e,r){var s,o,l,h,g,v,b,E,T=this;if(!(T instanceof BigNumber))return new BigNumber(e,r);if(r==null){if(e&&e._isBigNumber===true){T.s=e.s;if(!e.c||e.e>R){T.c=T.e=null}else if(e.e=10;g/=10,h++);if(h>R){T.c=T.e=null}else{T.e=h;T.c=[e]}return}E=String(e)}else{if(!n.test(E=String(e)))return y(T,E,v);T.s=E.charCodeAt(0)==45?(E=E.slice(1),-1):1}if((h=E.indexOf("."))>-1)E=E.replace(".","");if((g=E.search(/e/i))>0){if(h<0)h=g;h+=+E.slice(g+1);E=E.substring(0,g)}else if(h<0){h=E.length}}else{intCheck(r,2,B.length,"Base");if(r==10&&j){T=new BigNumber(e);return round(T,x+T.e+1,w)}E=String(e);if(v=typeof e=="number"){if(e*0!=0)return y(T,E,v,r);T.s=1/e<0?(E=E.slice(1),-1):1;if(BigNumber.DEBUG&&E.replace(/^0\.0*|\./,"").length>15){throw Error(c+e)}}else{T.s=E.charCodeAt(0)===45?(E=E.slice(1),-1):1}s=B.slice(0,r);h=g=0;for(b=E.length;gh){h=b;continue}}else if(!l){if(E==E.toUpperCase()&&(E=E.toLowerCase())||E==E.toLowerCase()&&(E=E.toUpperCase())){l=true;g=-1;h=0;continue}}return y(T,String(e),v,r)}}v=false;E=i(E,r,10,T.s);if((h=E.indexOf("."))>-1)E=E.replace(".","");else h=E.length}for(g=0;E.charCodeAt(g)===48;g++);for(b=E.length;E.charCodeAt(--b)===48;);if(E=E.slice(g,++b)){b-=g;if(v&&BigNumber.DEBUG&&b>15&&(e>d||e!==a(e))){throw Error(c+T.s*e)}if((h=h-g-1)>R){T.c=T.e=null}else if(h=-v&&s<=v&&s===a(s)){if(n[0]===0){if(s===0&&n.length===1)return true;break e}r=(s+1)%p;if(r<1)r+=p;if(String(n[0]).length==r){for(r=0;r=l||i!==a(i))break e}if(i!==0)return true}}}else if(n===null&&s===null&&(c===null||c===1||c===-1)){return true}throw Error(o+"Invalid BigNumber: "+e)};BigNumber.maximum=BigNumber.max=function(){return maxOrMin(arguments,b.lt)};BigNumber.minimum=BigNumber.min=function(){return maxOrMin(arguments,b.gt)};BigNumber.random=function(){var e=9007199254740992;var r=Math.random()*e&2097151?function(){return a(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(e){var i,n,c,l,d,g=0,y=[],b=new BigNumber(E);if(e==null)e=x;else intCheck(e,0,v);l=s(e/p);if(I){if(crypto.getRandomValues){i=crypto.getRandomValues(new Uint32Array(l*=2));for(;g>>11);if(d>=9e15){n=crypto.getRandomValues(new Uint32Array(2));i[g]=n[0];i[g+1]=n[1]}else{y.push(d%1e14);g+=2}}g=l/2}else if(crypto.randomBytes){i=crypto.randomBytes(l*=7);for(;g=9e15){crypto.randomBytes(7).copy(i,g)}else{y.push(d%1e14);g+=7}}g=l/7}else{I=false;throw Error(o+"crypto unavailable")}}if(!I){for(;g=10;d/=10,g++);if(gi-1){if(a[s+1]==null)a[s+1]=0;a[s+1]+=a[s]/i|0;a[s]%=i}}}return a.reverse()}return function(i,n,s,a,o){var c,l,p,d,h,g,v,y,b=i.indexOf("."),E=x,T=w;if(b>=0){d=P;P=0;i=i.replace(".","");y=new BigNumber(n);g=y.pow(i.length-b);P=d;y.c=toBaseOut(toFixedPoint(coeffToString(g.c),g.e,"0"),10,s,e);y.e=y.c.length}v=toBaseOut(i,n,s,o?(c=B,e):(c=e,B));p=d=v.length;for(;v[--d]==0;v.pop());if(!v[0])return c.charAt(0);if(b<0){--p}else{g.c=v;g.e=p;g.s=a;g=r(g,y,E,T,s);v=g.c;h=g.r;p=g.e}l=p+E+1;b=v[l];d=s/2;h=h||l<0||v[l+1]!=null;h=T<4?(b!=null||h)&&(T==0||T==(g.s<0?3:2)):b>d||b==d&&(T==4||h||T==6&&v[l-1]&1||T==(g.s<0?8:7));if(l<1||!v[0]){i=h?toFixedPoint(c.charAt(1),-E,c.charAt(0)):c.charAt(0)}else{v.length=l;if(h){for(--s;++v[--l]>s;){v[l]=0;if(!l){++p;v=[1].concat(v)}}}for(d=v.length;!v[--d];);for(b=0,i="";b<=d;i+=c.charAt(v[b++]));i=toFixedPoint(i,p,c.charAt(0))}return i}}();r=function(){function multiply(e,r,i){var n,s,a,o,c=0,l=e.length,p=r%g,d=r/g|0;for(e=e.slice();l--;){a=e[l]%g;o=e[l]/g|0;n=d*a+o*p;s=p*a+n%g*g+c;c=(s/i|0)+(n/g|0)+d*o;e[l]=s%i}if(c)e=[c].concat(e);return e}function compare(e,r,i,n){var s,a;if(i!=n){a=i>n?1:-1}else{for(s=a=0;sr[s]?1:-1;break}}}return a}function subtract(e,r,i,n){var s=0;for(;i--;){e[i]-=s;s=e[i]1;e.splice(0,1));}return function(e,r,i,n,s){var o,c,d,h,g,v,y,b,E,x,w,T,_,C,R,I,O,P=e.s==r.s?1:-1,N=e.c,B=r.c;if(!N||!N[0]||!B||!B[0]){return new BigNumber(!e.s||!r.s||(N?B&&N[0]==B[0]:!B)?NaN:N&&N[0]==0||!B?P*0:P/0)}b=new BigNumber(P);E=b.c=[];c=e.e-r.e;P=i+c+1;if(!s){s=l;c=bitFloor(e.e/p)-bitFloor(r.e/p);P=P/p|0}for(d=0;B[d]==(N[d]||0);d++);if(B[d]>(N[d]||0))c--;if(P<0){E.push(1);h=true}else{C=N.length;I=B.length;d=0;P+=2;g=a(s/(B[0]+1));if(g>1){B=multiply(B,g,s);N=multiply(N,g,s);I=B.length;C=N.length}_=I;x=N.slice(0,I);w=x.length;for(;w=s/2)R++;do{g=0;o=compare(B,x,I,w);if(o<0){T=x[0];if(I!=w)T=T*s+(x[1]||0);g=a(T/R);if(g>1){if(g>=s)g=s-1;v=multiply(B,g,s);y=v.length;w=x.length;while(compare(v,x,y,w)==1){g--;subtract(v,I=10;P/=10,d++);round(b,i+(b.e=d+c*p-1)+1,n,h)}else{b.e=c;b.r=+h}return b}}();function format(e,r,i,n){var s,a,o,c,l;if(i==null)i=w;else intCheck(i,0,8);if(!e.c)return e.toString();s=e.c[0];o=e.e;if(r==null){l=coeffToString(e.c);l=n==1||n==2&&(o<=T||o>=_)?toExponential(l,o):toFixedPoint(l,o,"0")}else{e=round(new BigNumber(e),r,i);a=e.e;l=coeffToString(e.c);c=l.length;if(n==1||n==2&&(r<=a||a<=T)){for(;cc){if(--r>0)for(l+=".";r--;l+="0");}else{r+=a-c;if(r>0){if(a+1==c)l+=".";for(;r--;l+="0");}}}}return e.s<0&&s?"-"+l:l}function maxOrMin(e,r){var i,n=1,s=new BigNumber(e[0]);for(;n=10;s/=10,n++);if((i=n+i*p-1)>R){e.c=e.e=null}else if(i=10;g/=10,o++);c=r-o;if(c<0){c+=p;d=r;v=E[y=0];b=v/x[o-d-1]%10|0}else{y=s((c+1)/p);if(y>=E.length){if(n){for(;E.length<=y;E.push(0));v=b=0;o=1;c%=p;d=c-p+1}else{break e}}else{v=g=E[y];for(o=1;g>=10;g/=10,o++);c%=p;d=c-p+o;b=d<0?0:v/x[o-d-1]%10|0}}n=n||r<0||E[y+1]!=null||(d<0?v:v%x[o-d-1]);n=i<4?(b||n)&&(i==0||i==(e.s<0?3:2)):b>5||b==5&&(i==4||n||i==6&&(c>0?d>0?v/x[o-d]:0:E[y-1])%10&1||i==(e.s<0?8:7));if(r<1||!E[0]){E.length=0;if(n){r-=e.e+1;E[0]=x[(p-r%p)%p];e.e=-r||0}else{E[0]=e.e=0}return e}if(c==0){E.length=y;g=1;y--}else{E.length=y+1;g=x[p-c];E[y]=d>0?a(v/x[o-d]%x[d])*g:0}if(n){for(;;){if(y==0){for(c=1,d=E[0];d>=10;d/=10,c++);d=E[0]+=g;for(g=1;d>=10;d/=10,g++);if(c!=g){e.e++;if(E[0]==l)E[0]=1}break}else{E[y]+=g;if(E[y]!=l)break;E[y--]=0;g=1}}}for(c=E.length;E[--c]===0;E.pop());}if(e.e>R){e.c=e.e=null}else if(e.e=_?toExponential(r,i):toFixedPoint(r,i,"0");return e.s<0?"-"+r:r}b.absoluteValue=b.abs=function(){var e=new BigNumber(this);if(e.s<0)e.s=1;return e};b.comparedTo=function(e,r){return compare(this,new BigNumber(e,r))};b.decimalPlaces=b.dp=function(e,r){var i,n,s,a=this;if(e!=null){intCheck(e,0,v);if(r==null)r=w;else intCheck(r,0,8);return round(new BigNumber(a),e+a.e+1,r)}if(!(i=a.c))return null;n=((s=i.length-1)-bitFloor(this.e/p))*p;if(s=i[s])for(;s%10==0;s/=10,n--);if(n<0)n=0;return n};b.dividedBy=b.div=function(e,i){return r(this,new BigNumber(e,i),x,w)};b.dividedToIntegerBy=b.idiv=function(e,i){return r(this,new BigNumber(e,i),0,1)};b.exponentiatedBy=b.pow=function(e,r){var i,n,c,l,d,h,g,v,y,b=this;e=new BigNumber(e);if(e.c&&!e.isInteger()){throw Error(o+"Exponent not an integer: "+valueOf(e))}if(r!=null)r=new BigNumber(r);h=e.e>14;if(!b.c||!b.c[0]||b.c[0]==1&&!b.e&&b.c.length==1||!e.c||!e.c[0]){y=new BigNumber(Math.pow(+valueOf(b),h?2-isOdd(e):+valueOf(e)));return r?y.mod(r):y}g=e.s<0;if(r){if(r.c?!r.c[0]:!r.s)return new BigNumber(NaN);n=!g&&b.isInteger()&&r.isInteger();if(n)b=b.mod(r)}else if(e.e>9&&(b.e>0||b.e<-1||(b.e==0?b.c[0]>1||h&&b.c[1]>=24e7:b.c[0]<8e13||h&&b.c[0]<=9999975e7))){l=b.s<0&&isOdd(e)?-0:0;if(b.e>-1)l=1/l;return new BigNumber(g?1/l:l)}else if(P){l=s(P/p+2)}if(h){i=new BigNumber(.5);if(g)e.s=1;v=isOdd(e)}else{c=Math.abs(+valueOf(e));v=c%2}y=new BigNumber(E);for(;;){if(v){y=y.times(b);if(!y.c)break;if(l){if(y.c.length>l)y.c.length=l}else if(n){y=y.mod(r)}}if(c){c=a(c/2);if(c===0)break;v=c%2}else{e=e.times(i);round(e,e.e+1,1);if(e.e>14){v=isOdd(e)}else{c=+valueOf(e);if(c===0)break;v=c%2}}b=b.times(b);if(l){if(b.c&&b.c.length>l)b.c.length=l}else if(n){b=b.mod(r)}}if(n)return y;if(g)y=E.div(y);return r?y.mod(r):l?round(y,P,w,d):y};b.integerValue=function(e){var r=new BigNumber(this);if(e==null)e=w;else intCheck(e,0,8);return round(r,r.e+1,e)};b.isEqualTo=b.eq=function(e,r){return compare(this,new BigNumber(e,r))===0};b.isFinite=function(){return!!this.c};b.isGreaterThan=b.gt=function(e,r){return compare(this,new BigNumber(e,r))>0};b.isGreaterThanOrEqualTo=b.gte=function(e,r){return(r=compare(this,new BigNumber(e,r)))===1||r===0};b.isInteger=function(){return!!this.c&&bitFloor(this.e/p)>this.c.length-2};b.isLessThan=b.lt=function(e,r){return compare(this,new BigNumber(e,r))<0};b.isLessThanOrEqualTo=b.lte=function(e,r){return(r=compare(this,new BigNumber(e,r)))===-1||r===0};b.isNaN=function(){return!this.s};b.isNegative=function(){return this.s<0};b.isPositive=function(){return this.s>0};b.isZero=function(){return!!this.c&&this.c[0]==0};b.minus=function(e,r){var i,n,s,a,o=this,c=o.s;e=new BigNumber(e,r);r=e.s;if(!c||!r)return new BigNumber(NaN);if(c!=r){e.s=-r;return o.plus(e)}var d=o.e/p,h=e.e/p,g=o.c,v=e.c;if(!d||!h){if(!g||!v)return g?(e.s=-r,e):new BigNumber(v?o:NaN);if(!g[0]||!v[0]){return v[0]?(e.s=-r,e):new BigNumber(g[0]?o:w==3?-0:0)}}d=bitFloor(d);h=bitFloor(h);g=g.slice();if(c=d-h){if(a=c<0){c=-c;s=g}else{h=d;s=v}s.reverse();for(r=c;r--;s.push(0));s.reverse()}else{n=(a=(c=g.length)<(r=v.length))?c:r;for(c=r=0;r0)for(;r--;g[i++]=0);r=l-1;for(;n>c;){if(g[--n]=0;){i=0;b=R[s]%T;E=R[s]/T|0;for(o=d,a=s+o;a>s;){h=C[--o]%T;v=C[o]/T|0;c=E*h+v*b;h=b*h+c%T*T+x[a]+i;i=(h/w|0)+(c/T|0)+E*v;x[a--]=h%w}x[a]=i}if(i){++n}else{x.splice(0,1)}return normalise(e,x,n)};b.negated=function(){var e=new BigNumber(this);e.s=-e.s||null;return e};b.plus=function(e,r){var i,n=this,s=n.s;e=new BigNumber(e,r);r=e.s;if(!s||!r)return new BigNumber(NaN);if(s!=r){e.s=-r;return n.minus(e)}var a=n.e/p,o=e.e/p,c=n.c,d=e.c;if(!a||!o){if(!c||!d)return new BigNumber(s/0);if(!c[0]||!d[0])return d[0]?e:new BigNumber(c[0]?n:s*0)}a=bitFloor(a);o=bitFloor(o);c=c.slice();if(s=a-o){if(s>0){o=a;i=d}else{s=-s;i=c}i.reverse();for(;s--;i.push(0));i.reverse()}s=c.length;r=d.length;if(s-r<0)i=d,d=c,c=i,r=s;for(s=0;r;){s=(c[--r]=c[r]+d[r]+s)/l|0;c[r]=l===c[r]?0:c[r]%l}if(s){c=[s].concat(c);++o}return normalise(e,c,o)};b.precision=b.sd=function(e,r){var i,n,s,a=this;if(e!=null&&e!==!!e){intCheck(e,1,v);if(r==null)r=w;else intCheck(r,0,8);return round(new BigNumber(a),e,r)}if(!(i=a.c))return null;s=i.length-1;n=s*p+1;if(s=i[s]){for(;s%10==0;s/=10,n--);for(s=i[0];s>=10;s/=10,n++);}if(e&&a.e+1>n)n=a.e+1;return n};b.shiftedBy=function(e){intCheck(e,-d,d);return this.times("1e"+e)};b.squareRoot=b.sqrt=function(){var e,i,n,s,a,o=this,c=o.c,l=o.s,p=o.e,d=x+4,h=new BigNumber("0.5");if(l!==1||!c||!c[0]){return new BigNumber(!l||l<0&&(!c||c[0])?NaN:c?o:1/0)}l=Math.sqrt(+valueOf(o));if(l==0||l==1/0){i=coeffToString(c);if((i.length+p)%2==0)i+="0";l=Math.sqrt(+i);p=bitFloor((p+1)/2)-(p<0||p%2);if(l==1/0){i="5e"+p}else{i=l.toExponential();i=i.slice(0,i.indexOf("e")+1)+p}n=new BigNumber(i)}else{n=new BigNumber(l+"")}if(n.c[0]){p=n.e;l=p+d;if(l<3)l=0;for(;;){a=n;n=h.times(a.plus(r(o,a,d,1)));if(coeffToString(a.c).slice(0,l)===(i=coeffToString(n.c)).slice(0,l)){if(n.e0&&b>0){a=b%l||l;h=y.substr(0,a);for(;a0)h+=d+y.slice(a);if(v)h="-"+h}n=g?h+(i.decimalSeparator||"")+((p=+i.fractionGroupSize)?g.replace(new RegExp("\\d{"+p+"}\\B","g"),"$&"+(i.fractionGroupSeparator||"")):g):h}return(i.prefix||"")+n+(i.suffix||"")};b.toFraction=function(e){var i,n,s,a,c,l,d,g,v,y,b,x,T=this,_=T.c;if(e!=null){d=new BigNumber(e);if(!d.isInteger()&&(d.c||d.s!==1)||d.lt(E)){throw Error(o+"Argument "+(d.isInteger()?"out of range: ":"not an integer: ")+valueOf(d))}}if(!_)return new BigNumber(T);i=new BigNumber(E);v=n=new BigNumber(E);s=g=new BigNumber(E);x=coeffToString(_);c=i.e=x.length-T.e-1;i.c[0]=h[(l=c%p)<0?p+l:l];e=!e||d.comparedTo(i)>0?c>0?i:v:d;l=R;R=1/0;d=new BigNumber(x);g.c[0]=0;for(;;){y=r(d,i,0,1);a=n.plus(y.times(s));if(a.comparedTo(e)==1)break;n=s;s=a;v=g.plus(y.times(a=v));g=a;i=d.minus(y.times(a=i));d=a}a=r(e.minus(n),s,0,1);g=g.plus(a.times(v));n=n.plus(a.times(s));g.s=v.s=T.s;c=c*2;b=r(v,s,c,w).minus(T).abs().comparedTo(r(g,n,c,w).minus(T).abs())<1?[v,s]:[g,n];R=l;return b};b.toNumber=function(){return+valueOf(this)};b.toPrecision=function(e,r){if(e!=null)intCheck(e,1,v);return format(this,e,r,2)};b.toString=function(e){var r,n=this,s=n.s,a=n.e;if(a===null){if(s){r="Infinity";if(s<0)r="-"+r}else{r="NaN"}}else{if(e==null){r=a<=T||a>=_?toExponential(coeffToString(n.c),a):toFixedPoint(coeffToString(n.c),a,"0")}else if(e===10&&j){n=round(new BigNumber(n),x+a+1,w);r=toFixedPoint(coeffToString(n.c),n.e,"0")}else{intCheck(e,2,B.length,"Base");r=i(toFixedPoint(coeffToString(n.c),a,"0"),10,e,s,true)}if(s<0&&n.c[0])r="-"+r}return r};b.valueOf=b.toJSON=function(){return valueOf(this)};b._isBigNumber=true;if(e!=null)BigNumber.set(e);return BigNumber}function bitFloor(e){var r=e|0;return e>0||e===r?r:r-1}function coeffToString(e){var r,i,n=1,s=e.length,a=e[0]+"";for(;np^i?1:-1;c=(l=s.length)<(p=a.length)?l:p;for(o=0;oa[o]^i?1:-1;return l==p?0:l>p^i?1:-1}function intCheck(e,r,i,n){if(ei||e!==a(e)){throw Error(o+(n||"Argument")+(typeof e=="number"?ei?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}}function isOdd(e){var r=e.c.length-1;return bitFloor(e.e/p)==r&&e.c[r]%2!=0}function toExponential(e,r){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(r<0?"e":"e+")+r}function toFixedPoint(e,r,i){var n,s;if(r<0){for(s=i+".";++r;s+=i);e=s+e}else{n=e.length;if(++r>n){for(s=i,r-=n;--r;s+=i);e+=s}else if(r{var n=i(6891);var s=i(9417);e.exports=expandTop;var a="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var c="\0CLOSE"+Math.random()+"\0";var l="\0COMMA"+Math.random()+"\0";var p="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(a).split("\\{").join(o).split("\\}").join(c).split("\\,").join(l).split("\\.").join(p)}function unescapeBraces(e){return e.split(a).join("\\").split(o).join("{").split(c).join("}").split(l).join(",").split(p).join(".")}function parseCommaParts(e){if(!e)return[""];var r=[];var i=s("{","}",e);if(!i)return e.split(",");var n=i.pre;var a=i.body;var o=i.post;var c=n.split(",");c[c.length-1]+="{"+a+"}";var l=parseCommaParts(o);if(o.length){c[c.length-1]+=l.shift();c.push.apply(c,l)}r.push.apply(r,c);return r}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,r){return e<=r}function gte(e,r){return e>=r}function expand(e,r){var i=[];var a=s("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var p=o||l;var d=a.body.indexOf(",")>=0;if(!p&&!d){if(a.post.match(/,.*\}/)){e=a.pre+"{"+a.body+c+a.post;return expand(e)}return[e]}var h;if(p){h=a.body.split(/\.\./)}else{h=parseCommaParts(a.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var g=a.post.length?expand(a.post,false):[""];return g.map((function(e){return a.pre+h[0]+e}))}}}var v=a.pre;var g=a.post.length?expand(a.post,false):[""];var y;if(p){var b=numeric(h[0]);var E=numeric(h[1]);var x=Math.max(h[0].length,h[1].length);var w=h.length==3?Math.abs(numeric(h[2])):1;var T=lte;var _=E0){var P=new Array(O+1).join("0");if(R<0)I="-"+P+I.slice(1);else I=P+I}}}y.push(I)}}else{y=n(h,(function(e){return expand(e,false)}))}for(var N=0;N{"use strict";var n=i(4300).Buffer;var s=i(4300).SlowBuffer;e.exports=bufferEq;function bufferEq(e,r){if(!n.isBuffer(e)||!n.isBuffer(r)){return false}if(e.length!==r.length){return false}var i=0;for(var s=0;s{"use strict"; + */s.promisifyAll(Storage,{exclude:["bucket","channel","hmacKey"]})},1862:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.unicodeJSONStringify=r.objectKeyToLowercase=r.qsStringify=r.encodeURI=r.fixedEncodeURIComponent=r.objectEntries=r.normalize=void 0;const n=i(3477);function normalize(e,r){const i=typeof e==="object"?e:{};const n=typeof e==="function"?e:r;return{options:i,callback:n}}r.normalize=normalize;function objectEntries(e){return Object.keys(e).map((r=>[r,e[r]]))}r.objectEntries=objectEntries;function fixedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()))}r.fixedEncodeURIComponent=fixedEncodeURIComponent;function encodeURI(e,r){return e.split("/").map(fixedEncodeURIComponent).join(r?"%2F":"/")}r.encodeURI=encodeURI;function qsStringify(e){return n.stringify(e,"&","=",{encodeURIComponent:e=>encodeURI(e,true)})}r.qsStringify=qsStringify;function objectKeyToLowercase(e){const r={};for(let i of Object.keys(e)){const n=e[i];i=i.toLowerCase();r[i]=n}return r}r.objectKeyToLowercase=objectKeyToLowercase;function unicodeJSONStringify(e){return JSON.stringify(e).replace(/[\u0080-\uFFFF]/g,(e=>"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)))}r.unicodeJSONStringify=unicodeJSONStringify},363:e=>{"use strict";const arrify=e=>{if(e===null||e===undefined){return[]}if(Array.isArray(e)){return e}if(typeof e==="string"){return[e]}if(typeof e[Symbol.iterator]==="function"){return[...e]}return[e]};e.exports=arrify},1659:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=i(4697);class AbortSignal extends n.EventTarget{constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const e=a.get(this);if(typeof e!=="boolean"){throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`)}return e}}n.defineEventAttribute(AbortSignal.prototype,"abort");function createAbortSignal(){const e=Object.create(AbortSignal.prototype);n.EventTarget.call(e);a.set(e,false);return e}function abortSignal(e){if(a.get(e)!==false){return}a.set(e,true);e.dispatchEvent({type:"abort"})}const a=new WeakMap;Object.defineProperties(AbortSignal.prototype,{aborted:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortSignal.prototype,Symbol.toStringTag,{configurable:true,value:"AbortSignal"})}class AbortController{constructor(){s.set(this,createAbortSignal())}get signal(){return getSignal(this)}abort(){abortSignal(getSignal(this))}}const s=new WeakMap;function getSignal(e){const r=s.get(e);if(r==null){throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${e===null?"null":typeof e}`)}return r}Object.defineProperties(AbortController.prototype,{signal:{enumerable:true},abort:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortController.prototype,Symbol.toStringTag,{configurable:true,value:"AbortController"})}r.AbortController=AbortController;r.AbortSignal=AbortSignal;r["default"]=AbortController;e.exports=AbortController;e.exports.AbortController=e.exports["default"]=AbortController;e.exports.AbortSignal=AbortSignal},9690:function(e,r,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=i(2361);const s=n(i(8237));const o=n(i(6570));const c=s.default("agent-base");function isAgent(e){return Boolean(e)&&typeof e.addRequest==="function"}function isSecureEndpoint(){const{stack:e}=new Error;if(typeof e!=="string")return false;return e.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}function createAgent(e,r){return new createAgent.Agent(e,r)}(function(e){class Agent extends a.EventEmitter{constructor(e,r){super();let i=r;if(typeof e==="function"){this.callback=e}else if(e){i=e}this.timeout=null;if(i&&typeof i.timeout==="number"){this.timeout=i.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(e){this.explicitDefaultPort=e}get protocol(){if(typeof this.explicitProtocol==="string"){return this.explicitProtocol}return isSecureEndpoint()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,r,i){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,r){const i=Object.assign({},r);if(typeof i.secureEndpoint!=="boolean"){i.secureEndpoint=isSecureEndpoint()}if(i.host==null){i.host="localhost"}if(i.port==null){i.port=i.secureEndpoint?443:80}if(i.protocol==null){i.protocol=i.secureEndpoint?"https:":"http:"}if(i.host&&i.path){delete i.path}delete i.agent;delete i.hostname;delete i._defaultAgent;delete i.defaultPort;delete i.createConnection;e._last=true;e.shouldKeepAlive=false;let n=false;let a=null;const s=i.timeout||this.timeout;const onerror=r=>{if(e._hadError)return;e.emit("error",r);e._hadError=true};const ontimeout=()=>{a=null;n=true;const e=new Error(`A "socket" was not created for HTTP request before ${s}ms`);e.code="ETIMEOUT";onerror(e)};const callbackError=e=>{if(n)return;if(a!==null){clearTimeout(a);a=null}onerror(e)};const onsocket=r=>{if(n)return;if(a!=null){clearTimeout(a);a=null}if(isAgent(r)){c("Callback returned another Agent instance %o",r.constructor.name);r.addRequest(e,i);return}if(r){r.once("free",(()=>{this.freeSocket(r,i)}));e.onSocket(r);return}const s=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);onerror(s)};if(typeof this.callback!=="function"){onerror(new Error("`callback` is not defined"));return}if(!this.promisifiedCallback){if(this.callback.length>=3){c("Converting legacy callback function to promise");this.promisifiedCallback=o.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof s==="number"&&s>0){a=setTimeout(ontimeout,s)}if("port"in i&&typeof i.port!=="number"){i.port=Number(i.port)}try{c("Resolving socket for %o request: %o",i.protocol,`${e.method} ${e.path}`);Promise.resolve(this.promisifiedCallback(e,i)).then(onsocket,callbackError)}catch(e){Promise.reject(e).catch(callbackError)}}freeSocket(e,r){c("Freeing socket %o %o",e.constructor.name,r);e.destroy()}destroy(){c("Destroying agent %o",this.constructor.name)}}e.Agent=Agent;e.prototype=e.Agent.prototype})(createAgent||(createAgent={}));e.exports=createAgent},6570:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function promisify(e){return function(r,i){return new Promise(((n,a)=>{e.call(this,r,i,((e,r)=>{if(e){a(e)}else{n(r)}}))}))}}r["default"]=promisify},3415:(e,r,i)=>{var n=i(4347);function retry(e,r){function run(i,a){var s=r||{};var o;if(!("randomize"in s)){s.randomize=true}o=n.operation(s);function bail(e){a(e||new Error("Aborted"))}function onError(e,r){if(e.bail){bail(e);return}if(!o.retry(e)){a(o.mainError())}else if(s.onRetry){s.onRetry(e,r)}}function runAttempt(r){var n;try{n=e(bail,r)}catch(e){onError(e,r);return}Promise.resolve(n).then(i).catch((function catchIt(e){onError(e,r)}))}o.attempt(runAttempt)}return new Promise(run)}e.exports=retry},9417:e=>{"use strict";e.exports=balanced;function balanced(e,r,i){if(e instanceof RegExp)e=maybeMatch(e,i);if(r instanceof RegExp)r=maybeMatch(r,i);var n=range(e,r,i);return n&&{start:n[0],end:n[1],pre:i.slice(0,n[0]),body:i.slice(n[0]+e.length,n[1]),post:i.slice(n[1]+r.length)}}function maybeMatch(e,r){var i=r.match(e);return i?i[0]:null}balanced.range=range;function range(e,r,i){var n,a,s,o,c;var l=i.indexOf(e);var p=i.indexOf(r,l+1);var d=l;if(l>=0&&p>0){if(e===r){return[l,p]}n=[];s=i.length;while(d>=0&&!c){if(d==l){n.push(d);l=i.indexOf(e,d+1)}else if(n.length==1){c=[n.pop(),p]}else{a=n.pop();if(a=0?l:p}if(n.length){c=[s,o]}}return c}},6463:(e,r)=>{"use strict";r.byteLength=byteLength;r.toByteArray=toByteArray;r.fromByteArray=fromByteArray;var i=[];var n=[];var a=typeof Uint8Array!=="undefined"?Uint8Array:Array;var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var o=0,c=s.length;o0){throw new Error("Invalid string. Length must be a multiple of 4")}var i=e.indexOf("=");if(i===-1)i=r;var n=i===r?0:4-i%4;return[i,n]}function byteLength(e){var r=getLens(e);var i=r[0];var n=r[1];return(i+n)*3/4-n}function _byteLength(e,r,i){return(r+i)*3/4-i}function toByteArray(e){var r;var i=getLens(e);var s=i[0];var o=i[1];var c=new a(_byteLength(e,s,o));var l=0;var p=o>0?s-4:s;var d;for(d=0;d>16&255;c[l++]=r>>8&255;c[l++]=r&255}if(o===2){r=n[e.charCodeAt(d)]<<2|n[e.charCodeAt(d+1)]>>4;c[l++]=r&255}if(o===1){r=n[e.charCodeAt(d)]<<10|n[e.charCodeAt(d+1)]<<4|n[e.charCodeAt(d+2)]>>2;c[l++]=r>>8&255;c[l++]=r&255}return c}function tripletToBase64(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[e&63]}function encodeChunk(e,r,i){var n;var a=[];for(var s=r;sl?l:c+o))}if(a===1){r=e[n-1];s.push(i[r>>2]+i[r<<4&63]+"==")}else if(a===2){r=(e[n-2]<<8)+e[n-1];s.push(i[r>>10]+i[r>>4&63]+i[r<<2&63]+"=")}return s.join("")}},7558:function(e){(function(r){"use strict";var i,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,s=Math.floor,o="[BigNumber Error] ",c=o+"Number primitive has more than 15 significant digits: ",l=1e14,p=14,d=9007199254740991,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],g=1e7,v=1e9;function clone(e){var r,i,y,b=BigNumber.prototype={constructor:BigNumber,toString:null,valueOf:null},x=new BigNumber(1),E=20,w=4,C=-7,T=21,_=-1e7,I=1e7,R=false,O=1,N=0,B={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},P="0123456789abcdefghijklmnopqrstuvwxyz",j=true;function BigNumber(e,r){var a,o,l,h,g,v,b,x,C=this;if(!(C instanceof BigNumber))return new BigNumber(e,r);if(r==null){if(e&&e._isBigNumber===true){C.s=e.s;if(!e.c||e.e>I){C.c=C.e=null}else if(e.e<_){C.c=[C.e=0]}else{C.e=e.e;C.c=e.c.slice()}return}if((v=typeof e=="number")&&e*0==0){C.s=1/e<0?(e=-e,-1):1;if(e===~~e){for(h=0,g=e;g>=10;g/=10,h++);if(h>I){C.c=C.e=null}else{C.e=h;C.c=[e]}return}x=String(e)}else{if(!n.test(x=String(e)))return y(C,x,v);C.s=x.charCodeAt(0)==45?(x=x.slice(1),-1):1}if((h=x.indexOf("."))>-1)x=x.replace(".","");if((g=x.search(/e/i))>0){if(h<0)h=g;h+=+x.slice(g+1);x=x.substring(0,g)}else if(h<0){h=x.length}}else{intCheck(r,2,P.length,"Base");if(r==10&&j){C=new BigNumber(e);return round(C,E+C.e+1,w)}x=String(e);if(v=typeof e=="number"){if(e*0!=0)return y(C,x,v,r);C.s=1/e<0?(x=x.slice(1),-1):1;if(BigNumber.DEBUG&&x.replace(/^0\.0*|\./,"").length>15){throw Error(c+e)}}else{C.s=x.charCodeAt(0)===45?(x=x.slice(1),-1):1}a=P.slice(0,r);h=g=0;for(b=x.length;gh){h=b;continue}}else if(!l){if(x==x.toUpperCase()&&(x=x.toLowerCase())||x==x.toLowerCase()&&(x=x.toUpperCase())){l=true;g=-1;h=0;continue}}return y(C,String(e),v,r)}}v=false;x=i(x,r,10,C.s);if((h=x.indexOf("."))>-1)x=x.replace(".","");else h=x.length}for(g=0;x.charCodeAt(g)===48;g++);for(b=x.length;x.charCodeAt(--b)===48;);if(x=x.slice(g,++b)){b-=g;if(v&&BigNumber.DEBUG&&b>15&&(e>d||e!==s(e))){throw Error(c+C.s*e)}if((h=h-g-1)>I){C.c=C.e=null}else if(h<_){C.c=[C.e=0]}else{C.e=h;C.c=[];g=(h+1)%p;if(h<0)g+=p;if(g=-v&&a<=v&&a===s(a)){if(n[0]===0){if(a===0&&n.length===1)return true;break e}r=(a+1)%p;if(r<1)r+=p;if(String(n[0]).length==r){for(r=0;r=l||i!==s(i))break e}if(i!==0)return true}}}else if(n===null&&a===null&&(c===null||c===1||c===-1)){return true}throw Error(o+"Invalid BigNumber: "+e)};BigNumber.maximum=BigNumber.max=function(){return maxOrMin(arguments,b.lt)};BigNumber.minimum=BigNumber.min=function(){return maxOrMin(arguments,b.gt)};BigNumber.random=function(){var e=9007199254740992;var r=Math.random()*e&2097151?function(){return s(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(e){var i,n,c,l,d,g=0,y=[],b=new BigNumber(x);if(e==null)e=E;else intCheck(e,0,v);l=a(e/p);if(R){if(crypto.getRandomValues){i=crypto.getRandomValues(new Uint32Array(l*=2));for(;g>>11);if(d>=9e15){n=crypto.getRandomValues(new Uint32Array(2));i[g]=n[0];i[g+1]=n[1]}else{y.push(d%1e14);g+=2}}g=l/2}else if(crypto.randomBytes){i=crypto.randomBytes(l*=7);for(;g=9e15){crypto.randomBytes(7).copy(i,g)}else{y.push(d%1e14);g+=7}}g=l/7}else{R=false;throw Error(o+"crypto unavailable")}}if(!R){for(;g=10;d/=10,g++);if(gi-1){if(s[a+1]==null)s[a+1]=0;s[a+1]+=s[a]/i|0;s[a]%=i}}}return s.reverse()}return function(i,n,a,s,o){var c,l,p,d,h,g,v,y,b=i.indexOf("."),x=E,C=w;if(b>=0){d=N;N=0;i=i.replace(".","");y=new BigNumber(n);g=y.pow(i.length-b);N=d;y.c=toBaseOut(toFixedPoint(coeffToString(g.c),g.e,"0"),10,a,e);y.e=y.c.length}v=toBaseOut(i,n,a,o?(c=P,e):(c=e,P));p=d=v.length;for(;v[--d]==0;v.pop());if(!v[0])return c.charAt(0);if(b<0){--p}else{g.c=v;g.e=p;g.s=s;g=r(g,y,x,C,a);v=g.c;h=g.r;p=g.e}l=p+x+1;b=v[l];d=a/2;h=h||l<0||v[l+1]!=null;h=C<4?(b!=null||h)&&(C==0||C==(g.s<0?3:2)):b>d||b==d&&(C==4||h||C==6&&v[l-1]&1||C==(g.s<0?8:7));if(l<1||!v[0]){i=h?toFixedPoint(c.charAt(1),-x,c.charAt(0)):c.charAt(0)}else{v.length=l;if(h){for(--a;++v[--l]>a;){v[l]=0;if(!l){++p;v=[1].concat(v)}}}for(d=v.length;!v[--d];);for(b=0,i="";b<=d;i+=c.charAt(v[b++]));i=toFixedPoint(i,p,c.charAt(0))}return i}}();r=function(){function multiply(e,r,i){var n,a,s,o,c=0,l=e.length,p=r%g,d=r/g|0;for(e=e.slice();l--;){s=e[l]%g;o=e[l]/g|0;n=d*s+o*p;a=p*s+n%g*g+c;c=(a/i|0)+(n/g|0)+d*o;e[l]=a%i}if(c)e=[c].concat(e);return e}function compare(e,r,i,n){var a,s;if(i!=n){s=i>n?1:-1}else{for(a=s=0;ar[a]?1:-1;break}}}return s}function subtract(e,r,i,n){var a=0;for(;i--;){e[i]-=a;a=e[i]1;e.splice(0,1));}return function(e,r,i,n,a){var o,c,d,h,g,v,y,b,x,E,w,C,T,_,I,R,O,N=e.s==r.s?1:-1,B=e.c,P=r.c;if(!B||!B[0]||!P||!P[0]){return new BigNumber(!e.s||!r.s||(B?P&&B[0]==P[0]:!P)?NaN:B&&B[0]==0||!P?N*0:N/0)}b=new BigNumber(N);x=b.c=[];c=e.e-r.e;N=i+c+1;if(!a){a=l;c=bitFloor(e.e/p)-bitFloor(r.e/p);N=N/p|0}for(d=0;P[d]==(B[d]||0);d++);if(P[d]>(B[d]||0))c--;if(N<0){x.push(1);h=true}else{_=B.length;R=P.length;d=0;N+=2;g=s(a/(P[0]+1));if(g>1){P=multiply(P,g,a);B=multiply(B,g,a);R=P.length;_=B.length}T=R;E=B.slice(0,R);w=E.length;for(;w=a/2)I++;do{g=0;o=compare(P,E,R,w);if(o<0){C=E[0];if(R!=w)C=C*a+(E[1]||0);g=s(C/I);if(g>1){if(g>=a)g=a-1;v=multiply(P,g,a);y=v.length;w=E.length;while(compare(v,E,y,w)==1){g--;subtract(v,R=10;N/=10,d++);round(b,i+(b.e=d+c*p-1)+1,n,h)}else{b.e=c;b.r=+h}return b}}();function format(e,r,i,n){var a,s,o,c,l;if(i==null)i=w;else intCheck(i,0,8);if(!e.c)return e.toString();a=e.c[0];o=e.e;if(r==null){l=coeffToString(e.c);l=n==1||n==2&&(o<=C||o>=T)?toExponential(l,o):toFixedPoint(l,o,"0")}else{e=round(new BigNumber(e),r,i);s=e.e;l=coeffToString(e.c);c=l.length;if(n==1||n==2&&(r<=s||s<=C)){for(;cc){if(--r>0)for(l+=".";r--;l+="0");}else{r+=s-c;if(r>0){if(s+1==c)l+=".";for(;r--;l+="0");}}}}return e.s<0&&a?"-"+l:l}function maxOrMin(e,r){var i,n=1,a=new BigNumber(e[0]);for(;n=10;a/=10,n++);if((i=n+i*p-1)>I){e.c=e.e=null}else if(i<_){e.c=[e.e=0]}else{e.e=i;e.c=r}return e}y=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,r=/^([^.]+)\.$/,i=/^\.([^.]+)$/,n=/^-?(Infinity|NaN)$/,a=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(s,c,l,p){var d,h=l?c:c.replace(a,"");if(n.test(h)){s.s=isNaN(h)?null:h<0?-1:1}else{if(!l){h=h.replace(e,(function(e,r,i){d=(i=i.toLowerCase())=="x"?16:i=="b"?2:8;return!p||p==d?r:e}));if(p){d=p;h=h.replace(r,"$1").replace(i,"0.$1")}if(c!=h)return new BigNumber(h,d)}if(BigNumber.DEBUG){throw Error(o+"Not a"+(p?" base "+p:"")+" number: "+c)}s.s=null}s.c=s.e=null}}();function round(e,r,i,n){var o,c,d,g,v,y,b,x=e.c,E=h;if(x){e:{for(o=1,g=x[0];g>=10;g/=10,o++);c=r-o;if(c<0){c+=p;d=r;v=x[y=0];b=v/E[o-d-1]%10|0}else{y=a((c+1)/p);if(y>=x.length){if(n){for(;x.length<=y;x.push(0));v=b=0;o=1;c%=p;d=c-p+1}else{break e}}else{v=g=x[y];for(o=1;g>=10;g/=10,o++);c%=p;d=c-p+o;b=d<0?0:v/E[o-d-1]%10|0}}n=n||r<0||x[y+1]!=null||(d<0?v:v%E[o-d-1]);n=i<4?(b||n)&&(i==0||i==(e.s<0?3:2)):b>5||b==5&&(i==4||n||i==6&&(c>0?d>0?v/E[o-d]:0:x[y-1])%10&1||i==(e.s<0?8:7));if(r<1||!x[0]){x.length=0;if(n){r-=e.e+1;x[0]=E[(p-r%p)%p];e.e=-r||0}else{x[0]=e.e=0}return e}if(c==0){x.length=y;g=1;y--}else{x.length=y+1;g=E[p-c];x[y]=d>0?s(v/E[o-d]%E[d])*g:0}if(n){for(;;){if(y==0){for(c=1,d=x[0];d>=10;d/=10,c++);d=x[0]+=g;for(g=1;d>=10;d/=10,g++);if(c!=g){e.e++;if(x[0]==l)x[0]=1}break}else{x[y]+=g;if(x[y]!=l)break;x[y--]=0;g=1}}}for(c=x.length;x[--c]===0;x.pop());}if(e.e>I){e.c=e.e=null}else if(e.e<_){e.c=[e.e=0]}}return e}function valueOf(e){var r,i=e.e;if(i===null)return e.toString();r=coeffToString(e.c);r=i<=C||i>=T?toExponential(r,i):toFixedPoint(r,i,"0");return e.s<0?"-"+r:r}b.absoluteValue=b.abs=function(){var e=new BigNumber(this);if(e.s<0)e.s=1;return e};b.comparedTo=function(e,r){return compare(this,new BigNumber(e,r))};b.decimalPlaces=b.dp=function(e,r){var i,n,a,s=this;if(e!=null){intCheck(e,0,v);if(r==null)r=w;else intCheck(r,0,8);return round(new BigNumber(s),e+s.e+1,r)}if(!(i=s.c))return null;n=((a=i.length-1)-bitFloor(this.e/p))*p;if(a=i[a])for(;a%10==0;a/=10,n--);if(n<0)n=0;return n};b.dividedBy=b.div=function(e,i){return r(this,new BigNumber(e,i),E,w)};b.dividedToIntegerBy=b.idiv=function(e,i){return r(this,new BigNumber(e,i),0,1)};b.exponentiatedBy=b.pow=function(e,r){var i,n,c,l,d,h,g,v,y,b=this;e=new BigNumber(e);if(e.c&&!e.isInteger()){throw Error(o+"Exponent not an integer: "+valueOf(e))}if(r!=null)r=new BigNumber(r);h=e.e>14;if(!b.c||!b.c[0]||b.c[0]==1&&!b.e&&b.c.length==1||!e.c||!e.c[0]){y=new BigNumber(Math.pow(+valueOf(b),h?2-isOdd(e):+valueOf(e)));return r?y.mod(r):y}g=e.s<0;if(r){if(r.c?!r.c[0]:!r.s)return new BigNumber(NaN);n=!g&&b.isInteger()&&r.isInteger();if(n)b=b.mod(r)}else if(e.e>9&&(b.e>0||b.e<-1||(b.e==0?b.c[0]>1||h&&b.c[1]>=24e7:b.c[0]<8e13||h&&b.c[0]<=9999975e7))){l=b.s<0&&isOdd(e)?-0:0;if(b.e>-1)l=1/l;return new BigNumber(g?1/l:l)}else if(N){l=a(N/p+2)}if(h){i=new BigNumber(.5);if(g)e.s=1;v=isOdd(e)}else{c=Math.abs(+valueOf(e));v=c%2}y=new BigNumber(x);for(;;){if(v){y=y.times(b);if(!y.c)break;if(l){if(y.c.length>l)y.c.length=l}else if(n){y=y.mod(r)}}if(c){c=s(c/2);if(c===0)break;v=c%2}else{e=e.times(i);round(e,e.e+1,1);if(e.e>14){v=isOdd(e)}else{c=+valueOf(e);if(c===0)break;v=c%2}}b=b.times(b);if(l){if(b.c&&b.c.length>l)b.c.length=l}else if(n){b=b.mod(r)}}if(n)return y;if(g)y=x.div(y);return r?y.mod(r):l?round(y,N,w,d):y};b.integerValue=function(e){var r=new BigNumber(this);if(e==null)e=w;else intCheck(e,0,8);return round(r,r.e+1,e)};b.isEqualTo=b.eq=function(e,r){return compare(this,new BigNumber(e,r))===0};b.isFinite=function(){return!!this.c};b.isGreaterThan=b.gt=function(e,r){return compare(this,new BigNumber(e,r))>0};b.isGreaterThanOrEqualTo=b.gte=function(e,r){return(r=compare(this,new BigNumber(e,r)))===1||r===0};b.isInteger=function(){return!!this.c&&bitFloor(this.e/p)>this.c.length-2};b.isLessThan=b.lt=function(e,r){return compare(this,new BigNumber(e,r))<0};b.isLessThanOrEqualTo=b.lte=function(e,r){return(r=compare(this,new BigNumber(e,r)))===-1||r===0};b.isNaN=function(){return!this.s};b.isNegative=function(){return this.s<0};b.isPositive=function(){return this.s>0};b.isZero=function(){return!!this.c&&this.c[0]==0};b.minus=function(e,r){var i,n,a,s,o=this,c=o.s;e=new BigNumber(e,r);r=e.s;if(!c||!r)return new BigNumber(NaN);if(c!=r){e.s=-r;return o.plus(e)}var d=o.e/p,h=e.e/p,g=o.c,v=e.c;if(!d||!h){if(!g||!v)return g?(e.s=-r,e):new BigNumber(v?o:NaN);if(!g[0]||!v[0]){return v[0]?(e.s=-r,e):new BigNumber(g[0]?o:w==3?-0:0)}}d=bitFloor(d);h=bitFloor(h);g=g.slice();if(c=d-h){if(s=c<0){c=-c;a=g}else{h=d;a=v}a.reverse();for(r=c;r--;a.push(0));a.reverse()}else{n=(s=(c=g.length)<(r=v.length))?c:r;for(c=r=0;r0)for(;r--;g[i++]=0);r=l-1;for(;n>c;){if(g[--n]=0;){i=0;b=I[a]%C;x=I[a]/C|0;for(o=d,s=a+o;s>a;){h=_[--o]%C;v=_[o]/C|0;c=x*h+v*b;h=b*h+c%C*C+E[s]+i;i=(h/w|0)+(c/C|0)+x*v;E[s--]=h%w}E[s]=i}if(i){++n}else{E.splice(0,1)}return normalise(e,E,n)};b.negated=function(){var e=new BigNumber(this);e.s=-e.s||null;return e};b.plus=function(e,r){var i,n=this,a=n.s;e=new BigNumber(e,r);r=e.s;if(!a||!r)return new BigNumber(NaN);if(a!=r){e.s=-r;return n.minus(e)}var s=n.e/p,o=e.e/p,c=n.c,d=e.c;if(!s||!o){if(!c||!d)return new BigNumber(a/0);if(!c[0]||!d[0])return d[0]?e:new BigNumber(c[0]?n:a*0)}s=bitFloor(s);o=bitFloor(o);c=c.slice();if(a=s-o){if(a>0){o=s;i=d}else{a=-a;i=c}i.reverse();for(;a--;i.push(0));i.reverse()}a=c.length;r=d.length;if(a-r<0)i=d,d=c,c=i,r=a;for(a=0;r;){a=(c[--r]=c[r]+d[r]+a)/l|0;c[r]=l===c[r]?0:c[r]%l}if(a){c=[a].concat(c);++o}return normalise(e,c,o)};b.precision=b.sd=function(e,r){var i,n,a,s=this;if(e!=null&&e!==!!e){intCheck(e,1,v);if(r==null)r=w;else intCheck(r,0,8);return round(new BigNumber(s),e,r)}if(!(i=s.c))return null;a=i.length-1;n=a*p+1;if(a=i[a]){for(;a%10==0;a/=10,n--);for(a=i[0];a>=10;a/=10,n++);}if(e&&s.e+1>n)n=s.e+1;return n};b.shiftedBy=function(e){intCheck(e,-d,d);return this.times("1e"+e)};b.squareRoot=b.sqrt=function(){var e,i,n,a,s,o=this,c=o.c,l=o.s,p=o.e,d=E+4,h=new BigNumber("0.5");if(l!==1||!c||!c[0]){return new BigNumber(!l||l<0&&(!c||c[0])?NaN:c?o:1/0)}l=Math.sqrt(+valueOf(o));if(l==0||l==1/0){i=coeffToString(c);if((i.length+p)%2==0)i+="0";l=Math.sqrt(+i);p=bitFloor((p+1)/2)-(p<0||p%2);if(l==1/0){i="5e"+p}else{i=l.toExponential();i=i.slice(0,i.indexOf("e")+1)+p}n=new BigNumber(i)}else{n=new BigNumber(l+"")}if(n.c[0]){p=n.e;l=p+d;if(l<3)l=0;for(;;){s=n;n=h.times(s.plus(r(o,s,d,1)));if(coeffToString(s.c).slice(0,l)===(i=coeffToString(n.c)).slice(0,l)){if(n.e0&&b>0){s=b%l||l;h=y.substr(0,s);for(;s0)h+=d+y.slice(s);if(v)h="-"+h}n=g?h+(i.decimalSeparator||"")+((p=+i.fractionGroupSize)?g.replace(new RegExp("\\d{"+p+"}\\B","g"),"$&"+(i.fractionGroupSeparator||"")):g):h}return(i.prefix||"")+n+(i.suffix||"")};b.toFraction=function(e){var i,n,a,s,c,l,d,g,v,y,b,E,C=this,T=C.c;if(e!=null){d=new BigNumber(e);if(!d.isInteger()&&(d.c||d.s!==1)||d.lt(x)){throw Error(o+"Argument "+(d.isInteger()?"out of range: ":"not an integer: ")+valueOf(d))}}if(!T)return new BigNumber(C);i=new BigNumber(x);v=n=new BigNumber(x);a=g=new BigNumber(x);E=coeffToString(T);c=i.e=E.length-C.e-1;i.c[0]=h[(l=c%p)<0?p+l:l];e=!e||d.comparedTo(i)>0?c>0?i:v:d;l=I;I=1/0;d=new BigNumber(E);g.c[0]=0;for(;;){y=r(d,i,0,1);s=n.plus(y.times(a));if(s.comparedTo(e)==1)break;n=a;a=s;v=g.plus(y.times(s=v));g=s;i=d.minus(y.times(s=i));d=s}s=r(e.minus(n),a,0,1);g=g.plus(s.times(v));n=n.plus(s.times(a));g.s=v.s=C.s;c=c*2;b=r(v,a,c,w).minus(C).abs().comparedTo(r(g,n,c,w).minus(C).abs())<1?[v,a]:[g,n];I=l;return b};b.toNumber=function(){return+valueOf(this)};b.toPrecision=function(e,r){if(e!=null)intCheck(e,1,v);return format(this,e,r,2)};b.toString=function(e){var r,n=this,a=n.s,s=n.e;if(s===null){if(a){r="Infinity";if(a<0)r="-"+r}else{r="NaN"}}else{if(e==null){r=s<=C||s>=T?toExponential(coeffToString(n.c),s):toFixedPoint(coeffToString(n.c),s,"0")}else if(e===10&&j){n=round(new BigNumber(n),E+s+1,w);r=toFixedPoint(coeffToString(n.c),n.e,"0")}else{intCheck(e,2,P.length,"Base");r=i(toFixedPoint(coeffToString(n.c),s,"0"),10,e,a,true)}if(a<0&&n.c[0])r="-"+r}return r};b.valueOf=b.toJSON=function(){return valueOf(this)};b._isBigNumber=true;if(e!=null)BigNumber.set(e);return BigNumber}function bitFloor(e){var r=e|0;return e>0||e===r?r:r-1}function coeffToString(e){var r,i,n=1,a=e.length,s=e[0]+"";for(;np^i?1:-1;c=(l=a.length)<(p=s.length)?l:p;for(o=0;os[o]^i?1:-1;return l==p?0:l>p^i?1:-1}function intCheck(e,r,i,n){if(ei||e!==s(e)){throw Error(o+(n||"Argument")+(typeof e=="number"?ei?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}}function isOdd(e){var r=e.c.length-1;return bitFloor(e.e/p)==r&&e.c[r]%2!=0}function toExponential(e,r){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(r<0?"e":"e+")+r}function toFixedPoint(e,r,i){var n,a;if(r<0){for(a=i+".";++r;a+=i);e=a+e}else{n=e.length;if(++r>n){for(a=i,r-=n;--r;a+=i);e+=a}else if(r{var n=i(6891);var a=i(9417);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var c="\0CLOSE"+Math.random()+"\0";var l="\0COMMA"+Math.random()+"\0";var p="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(c).split("\\,").join(l).split("\\.").join(p)}function unescapeBraces(e){return e.split(s).join("\\").split(o).join("{").split(c).join("}").split(l).join(",").split(p).join(".")}function parseCommaParts(e){if(!e)return[""];var r=[];var i=a("{","}",e);if(!i)return e.split(",");var n=i.pre;var s=i.body;var o=i.post;var c=n.split(",");c[c.length-1]+="{"+s+"}";var l=parseCommaParts(o);if(o.length){c[c.length-1]+=l.shift();c.push.apply(c,l)}r.push.apply(r,c);return r}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,r){return e<=r}function gte(e,r){return e>=r}function expand(e,r){var i=[];var s=a("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var p=o||l;var d=s.body.indexOf(",")>=0;if(!p&&!d){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+c+s.post;return expand(e)}return[e]}var h;if(p){h=s.body.split(/\.\./)}else{h=parseCommaParts(s.body);if(h.length===1){h=expand(h[0],false).map(embrace);if(h.length===1){var g=s.post.length?expand(s.post,false):[""];return g.map((function(e){return s.pre+h[0]+e}))}}}var v=s.pre;var g=s.post.length?expand(s.post,false):[""];var y;if(p){var b=numeric(h[0]);var x=numeric(h[1]);var E=Math.max(h[0].length,h[1].length);var w=h.length==3?Math.abs(numeric(h[2])):1;var C=lte;var T=x0){var N=new Array(O+1).join("0");if(I<0)R="-"+N+R.slice(1);else R=N+R}}}y.push(R)}}else{y=n(h,(function(e){return expand(e,false)}))}for(var B=0;B{"use strict";var n=i(4300).Buffer;var a=i(4300).SlowBuffer;e.exports=bufferEq;function bufferEq(e,r){if(!n.isBuffer(e)||!n.isBuffer(r)){return false}if(e.length!==r.length){return false}var i=0;for(var a=0;a{"use strict"; /*! * compressible * Copyright(c) 2013 Jonathan Ong * Copyright(c) 2014 Jeremiah Senkpiel * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed - */var n=i(7426);var s=/^text\/|\+(?:json|text|xml)$/i;var a=/^\s*([^;\s]*)(?:;|\s|$)/;e.exports=compressible;function compressible(e){if(!e||typeof e!=="string"){return false}var r=a.exec(e);var i=r&&r[1].toLowerCase();var o=n[i];if(o&&o.compressible!==undefined){return o.compressible}return s.test(i)||undefined}},6891:e=>{e.exports=function(e,i){var n=[];for(var s=0;s{"use strict";const n=i(1017);const s=i(2037);const a=i(7758);const o=i(9126);const c=i(3522);const l=i(3507);const p=i(2042);const d=i(5184);const h=c.config||n.join(s.tmpdir(),d());const g="You don't have access to this file.";const v={mode:448};const y={mode:384};class Configstore{constructor(e,r,i={}){const s=i.globalConfigPath?n.join(e,"config.json"):n.join("configstore",`${e}.json`);this.path=i.configPath||n.join(h,s);if(r){this.all={...r,...this.all}}}get all(){try{return JSON.parse(a.readFileSync(this.path,"utf8"))}catch(e){if(e.code==="ENOENT"){return{}}if(e.code==="EACCES"){e.message=`${e.message}\n${g}\n`}if(e.name==="SyntaxError"){l.sync(this.path,"",y);return{}}throw e}}set all(e){try{o.sync(n.dirname(this.path),v);l.sync(this.path,JSON.stringify(e,undefined,"\t"),y)}catch(e){if(e.code==="EACCES"){e.message=`${e.message}\n${g}\n`}throw e}}get size(){return Object.keys(this.all||{}).length}get(e){return p.get(this.all,e)}set(e,r){const i=this.all;if(arguments.length===1){for(const r of Object.keys(e)){p.set(i,r,e[r])}}else{p.set(i,e,r)}this.all=i}has(e){return p.has(this.all,e)}delete(e){const r=this.all;p.delete(r,e);this.all=r}clear(){this.all={}}}e.exports=Configstore},7332:(e,r,i)=>{"use strict";const n=i(6113);e.exports=e=>{if(!Number.isFinite(e)){throw new TypeError("Expected a finite number")}return n.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}},869:function(e){(function(r,i){true?e.exports=i():0})(this,(function(){"use strict"; + */var n=i(7426);var a=/^text\/|\+(?:json|text|xml)$/i;var s=/^\s*([^;\s]*)(?:;|\s|$)/;e.exports=compressible;function compressible(e){if(!e||typeof e!=="string"){return false}var r=s.exec(e);var i=r&&r[1].toLowerCase();var o=n[i];if(o&&o.compressible!==undefined){return o.compressible}return a.test(i)||undefined}},6891:e=>{e.exports=function(e,i){var n=[];for(var a=0;a{"use strict";const n=i(1017);const a=i(2037);const s=i(7758);const o=i(9126);const c=i(3522);const l=i(3507);const p=i(2042);const d=i(5184);const h=c.config||n.join(a.tmpdir(),d());const g="You don't have access to this file.";const v={mode:448};const y={mode:384};class Configstore{constructor(e,r,i={}){const a=i.globalConfigPath?n.join(e,"config.json"):n.join("configstore",`${e}.json`);this.path=i.configPath||n.join(h,a);if(r){this.all={...r,...this.all}}}get all(){try{return JSON.parse(s.readFileSync(this.path,"utf8"))}catch(e){if(e.code==="ENOENT"){return{}}if(e.code==="EACCES"){e.message=`${e.message}\n${g}\n`}if(e.name==="SyntaxError"){l.sync(this.path,"",y);return{}}throw e}}set all(e){try{o.sync(n.dirname(this.path),v);l.sync(this.path,JSON.stringify(e,undefined,"\t"),y)}catch(e){if(e.code==="EACCES"){e.message=`${e.message}\n${g}\n`}throw e}}get size(){return Object.keys(this.all||{}).length}get(e){return p.get(this.all,e)}set(e,r){const i=this.all;if(arguments.length===1){for(const r of Object.keys(e)){p.set(i,r,e[r])}}else{p.set(i,e,r)}this.all=i}has(e){return p.has(this.all,e)}delete(e){const r=this.all;p.delete(r,e);this.all=r}clear(){this.all={}}}e.exports=Configstore},7332:(e,r,i)=>{"use strict";const n=i(6113);e.exports=e=>{if(!Number.isFinite(e)){throw new TypeError("Expected a finite number")}return n.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}},869:function(e){(function(r,i){true?e.exports=i():0})(this,(function(){"use strict"; /** * @preserve date-and-time (c) KNOWLEDGECODE | MIT - */var e={},r={},i="en",n={MMMM:["January","February","March","April","May","June","July","August","September","October","November","December"],MMM:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dddd:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ddd:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dd:["Su","Mo","Tu","We","Th","Fr","Sa"],A:["AM","PM"]},s={YYYY:function(e){return("000"+e.getFullYear()).slice(-4)},YY:function(e){return("0"+e.getFullYear()).slice(-2)},Y:function(e){return""+e.getFullYear()},MMMM:function(e){return this.res.MMMM[e.getMonth()]},MMM:function(e){return this.res.MMM[e.getMonth()]},MM:function(e){return("0"+(e.getMonth()+1)).slice(-2)},M:function(e){return""+(e.getMonth()+1)},DD:function(e){return("0"+e.getDate()).slice(-2)},D:function(e){return""+e.getDate()},HH:function(e){return("0"+e.getHours()).slice(-2)},H:function(e){return""+e.getHours()},A:function(e){return this.res.A[e.getHours()>11|0]},hh:function(e){return("0"+(e.getHours()%12||12)).slice(-2)},h:function(e){return""+(e.getHours()%12||12)},mm:function(e){return("0"+e.getMinutes()).slice(-2)},m:function(e){return""+e.getMinutes()},ss:function(e){return("0"+e.getSeconds()).slice(-2)},s:function(e){return""+e.getSeconds()},SSS:function(e){return("00"+e.getMilliseconds()).slice(-3)},SS:function(e){return("0"+(e.getMilliseconds()/10|0)).slice(-2)},S:function(e){return""+(e.getMilliseconds()/100|0)},dddd:function(e){return this.res.dddd[e.getDay()]},ddd:function(e){return this.res.ddd[e.getDay()]},dd:function(e){return this.res.dd[e.getDay()]},Z:function(e){var r=e.getTimezoneOffset()/.6|0;return(r>0?"-":"+")+("000"+Math.abs(r-(r%100*.4|0))).slice(-4)},post:function(e){return e},res:n},a={YYYY:function(e){return this.exec(/^\d{4}/,e)},Y:function(e){return this.exec(/^\d{1,4}/,e)},MMMM:function(e){var r=this.find(this.res.MMMM,e);r.value++;return r},MMM:function(e){var r=this.find(this.res.MMM,e);r.value++;return r},MM:function(e){return this.exec(/^\d\d/,e)},M:function(e){return this.exec(/^\d\d?/,e)},DD:function(e){return this.exec(/^\d\d/,e)},D:function(e){return this.exec(/^\d\d?/,e)},HH:function(e){return this.exec(/^\d\d/,e)},H:function(e){return this.exec(/^\d\d?/,e)},A:function(e){return this.find(this.res.A,e)},hh:function(e){return this.exec(/^\d\d/,e)},h:function(e){return this.exec(/^\d\d?/,e)},mm:function(e){return this.exec(/^\d\d/,e)},m:function(e){return this.exec(/^\d\d?/,e)},ss:function(e){return this.exec(/^\d\d/,e)},s:function(e){return this.exec(/^\d\d?/,e)},SSS:function(e){return this.exec(/^\d{1,3}/,e)},SS:function(e){var r=this.exec(/^\d\d?/,e);r.value*=10;return r},S:function(e){var r=this.exec(/^\d/,e);r.value*=100;return r},Z:function(e){var r=this.exec(/^[\+-]\d{2}[0-5]\d/,e);r.value=(r.value/100|0)*-60-r.value%100;return r},h12:function(e,r){return(e===12?0:e)+r*12},exec:function(e,r){var i=(e.exec(r)||[""])[0];return{value:i|0,length:i.length}},find:function(e,r){var i=-1,n=0;for(var s=0,a=e.length,o;sn){i=s;n=o.length}}return{value:i,length:n}},pre:function(e){return e},res:n},extend=function(e,r,i,n){var s={},a;for(a in e){s[a]=e[a]}for(a in r||{}){if(!(!!i^!!s[a])){s[a]=r[a]}}if(n){s.res=n}return s},o={_formatter:s,_parser:a},c,l;o.compile=function(e){var r=/\[([^\[\]]|\[[^\[\]]*])*]|([A-Za-z])\2+|\.{3}|./g,i,n=[e];while(i=r.exec(e)){n[n.length]=i[0]}return n};o.format=function(e,r,i){var n=this||l,s=typeof r==="string"?n.compile(r):r,a=e.getTimezoneOffset(),o=n.addMinutes(e,i?a:0),c=n._formatter,p="";o.getTimezoneOffset=function(){return i?0:a};for(var d=1,h=s.length,g;d9999||n.M<1||n.M>12||n.D<1||n.D>s||n.H<0||n.H>23||n.m<0||n.m>59||n.s<0||n.s>59||n.S<0||n.S>999||n.Z<-720||n.Z>840)};o.transform=function(e,r,i,n){const s=this||l;return s.format(s.parse(e,r),i,n)};o.addYears=function(e,r){return(this||l).addMonths(e,r*12)};o.addMonths=function(e,r){var i=new Date(e.getTime());i.setMonth(i.getMonth()+r);return i};o.addDays=function(e,r){var i=new Date(e.getTime());i.setDate(i.getDate()+r);return i};o.addHours=function(e,r){return(this||l).addMinutes(e,r*60)};o.addMinutes=function(e,r){return(this||l).addSeconds(e,r*60)};o.addSeconds=function(e,r){return(this||l).addMilliseconds(e,r*1e3)};o.addMilliseconds=function(e,r){return new Date(e.getTime()+r)};o.subtract=function(e,r){var i=e.getTime()-r.getTime();return{toMilliseconds:function(){return i},toSeconds:function(){return i/1e3},toMinutes:function(){return i/6e4},toHours:function(){return i/36e5},toDays:function(){return i/864e5}}};o.isLeapYear=function(e){return!(e%4)&&!!(e%100)||!(e%400)};o.isSameDay=function(e,r){return e.toDateString()===r.toDateString()};o.locale=function(r,i){if(!e[r]){e[r]=i}};o.plugin=function(e,i){if(!r[e]){r[e]=i}};c=extend(o);l=extend(o);l.locale=function(p){var d=typeof p==="function"?p:l.locale[p];if(!d){return i}i=d(o);var h=e[i]||{};var g=extend(n,h.res,true);var v=extend(s,h.formatter,true,g);var y=extend(a,h.parser,true,g);l._formatter=c._formatter=v;l._parser=c._parser=y;for(var b in r){l.extend(r[b])}return i};l.extend=function(e){var r=extend(l._parser.res,e.res);var i=e.extender||{};l._formatter=extend(l._formatter,e.formatter,false,r);l._parser=extend(l._parser,e.parser,false,r);for(var n in i){if(!l[n]){l[n]=i[n]}}};l.plugin=function(e){var i=typeof e==="function"?e:l.plugin[e];if(i){l.extend(r[i(o,c)]||{})}};var p=l;return p}))},8222:(e,r,i)=>{r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage=localstorage();r.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(r){r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const i="color: "+this.color;r.splice(1,0,i,"color: inherit");let n=0;let s=0;r[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){s=n}}));r.splice(s,0,i)}r.log=console.debug||console.log||(()=>{});function save(e){try{if(e){r.storage.setItem("debug",e)}else{r.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=r.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=i(6243)(r);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,r,i)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=i(900);createDebug.destroy=destroy;Object.keys(e).forEach((r=>{createDebug[r]=e[r]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let r=0;for(let i=0;i{if(r==="%%"){return"%"}a++;const s=createDebug.formatters[n];if(typeof s==="function"){const n=e[a];r=s.call(i,n);e.splice(a,1);a--}return r}));createDebug.formatArgs.call(i,e);const o=i.log||createDebug.log;o.apply(i,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(i!==null){return i}if(n!==createDebug.namespaces){n=createDebug.namespaces;s=createDebug.enabled(e)}return s},set:e=>{i=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,r){const i=createDebug(this.namespace+(typeof r==="undefined"?":":r)+e);i.log=this.log;return i}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let r;const i=(typeof e==="string"?e:"").split(/[\s,]+/);const n=i.length;for(r=0;r"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let r;let i;for(r=0,i=createDebug.skips.length;r{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=i(8222)}else{e.exports=i(5332)}},5332:(e,r,i)=>{const n=i(6224);const s=i(3837);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.destroy=s.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");r.colors=[6,2,3,4,5,1];try{const e=i(9318);if(e&&(e.stderr||e).level>=2){r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}r.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,r)=>{const i=r.substring(6).toLowerCase().replace(/_([a-z])/g,((e,r)=>r.toUpperCase()));let n=process.env[r];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[i]=n;return e}),{});function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(r){const{namespace:i,useColors:n}=this;if(n){const n=this.color;const s="[3"+(n<8?n:"8;5;"+n);const a=` ${s};1m${i} `;r[0]=a+r[0].split("\n").join("\n"+a);r.push(s+"m+"+e.exports.humanize(this.diff)+"")}else{r[0]=getDate()+i+" "+r[0]}}function getDate(){if(r.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(s.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const i=Object.keys(r.inspectOpts);for(let n=0;ne.trim())).join(" ")};a.O=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts)}},8932:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}r.Deprecation=Deprecation},2042:(e,r,i)=>{"use strict";const n=i(1389);const s=["__proto__","prototype","constructor"];const isValidPath=e=>!e.some((e=>s.includes(e)));function getPathSegments(e){const r=e.split(".");const i=[];for(let e=0;e{var n=i(1642);var s=i(1205);var a=i(4124);var o=i(6121);var c=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]);var onuncork=function(e,r){if(e._corked)e.once("uncork",r);else r()};var autoDestroy=function(e,r){if(e._autoDestroy)e.destroy(r)};var destroyer=function(e,r){return function(i){if(i)autoDestroy(e,i.message==="premature close"?null:i);else if(r&&!e._ended)e.end()}};var end=function(e,r){if(!e)return r();if(e._writableState&&e._writableState.finished)return r();if(e._writableState)return e.end(r);e.end();r()};var noop=function(){};var toStreams2=function(e){return new n.Readable({objectMode:true,highWaterMark:16}).wrap(e)};var Duplexify=function(e,r,i){if(!(this instanceof Duplexify))return new Duplexify(e,r,i);n.Duplex.call(this,i);this._writable=null;this._readable=null;this._readable2=null;this._autoDestroy=!i||i.autoDestroy!==false;this._forwardDestroy=!i||i.destroy!==false;this._forwardEnd=!i||i.end!==false;this._corked=1;this._ondrain=null;this._drained=false;this._forwarding=false;this._unwrite=null;this._unread=null;this._ended=false;this.destroyed=false;if(e)this.setWritable(e);if(r)this.setReadable(r)};a(Duplexify,n.Duplex);Duplexify.obj=function(e,r,i){if(!i)i={};i.objectMode=true;i.highWaterMark=16;return new Duplexify(e,r,i)};Duplexify.prototype.cork=function(){if(++this._corked===1)this.emit("cork")};Duplexify.prototype.uncork=function(){if(this._corked&&--this._corked===0)this.emit("uncork")};Duplexify.prototype.setWritable=function(e){if(this._unwrite)this._unwrite();if(this.destroyed){if(e&&e.destroy)e.destroy();return}if(e===null||e===false){this.end();return}var r=this;var i=s(e,{writable:true,readable:false},destroyer(this,this._forwardEnd));var ondrain=function(){var e=r._ondrain;r._ondrain=null;if(e)e()};var clear=function(){r._writable.removeListener("drain",ondrain);i()};if(this._unwrite)process.nextTick(ondrain);this._writable=e;this._writable.on("drain",ondrain);this._unwrite=clear;this.uncork()};Duplexify.prototype.setReadable=function(e){if(this._unread)this._unread();if(this.destroyed){if(e&&e.destroy)e.destroy();return}if(e===null||e===false){this.push(null);this.resume();return}var r=this;var i=s(e,{writable:false,readable:true},destroyer(this));var onreadable=function(){r._forward()};var onend=function(){r.push(null)};var clear=function(){r._readable2.removeListener("readable",onreadable);r._readable2.removeListener("end",onend);i()};this._drained=true;this._readable=e;this._readable2=e._readableState?e:toStreams2(e);this._readable2.on("readable",onreadable);this._readable2.on("end",onend);this._unread=clear;this._forward()};Duplexify.prototype._read=function(){this._drained=true;this._forward()};Duplexify.prototype._forward=function(){if(this._forwarding||!this._readable2||!this._drained)return;this._forwarding=true;var e;while(this._drained&&(e=o(this._readable2))!==null){if(this.destroyed)continue;this._drained=this.push(e)}this._forwarding=false};Duplexify.prototype.destroy=function(e,r){if(!r)r=noop;if(this.destroyed)return r(null);this.destroyed=true;var i=this;process.nextTick((function(){i._destroy(e);r(null)}))};Duplexify.prototype._destroy=function(e){if(e){var r=this._ondrain;this._ondrain=null;if(r)r(e);else this.emit("error",e)}if(this._forwardDestroy){if(this._readable&&this._readable.destroy)this._readable.destroy();if(this._writable&&this._writable.destroy)this._writable.destroy()}this.emit("close")};Duplexify.prototype._write=function(e,r,i){if(this.destroyed)return;if(this._corked)return onuncork(this,this._write.bind(this,e,r,i));if(e===c)return this._finish(i);if(!this._writable)return i();if(this._writable.write(e)===false)this._ondrain=i;else if(!this.destroyed)i()};Duplexify.prototype._finish=function(e){var r=this;this.emit("preend");onuncork(this,(function(){end(r._forwardEnd&&r._writable,(function(){if(r._writableState.prefinished===false)r._writableState.prefinished=true;r.emit("prefinish");onuncork(r,e)}))}))};Duplexify.prototype.end=function(e,r,i){if(typeof e==="function")return this.end(null,null,e);if(typeof r==="function")return this.end(e,null,r);this._ended=true;if(e)this.write(e);if(!this._writableState.ending&&!this._writableState.destroyed)this.write(c);return n.Writable.prototype.end.call(this,i)};e.exports=Duplexify},1728:(e,r,i)=>{"use strict";var n=i(1867).Buffer;var s=i(528);var a=128,o=0,c=32,l=16,p=2,d=l|c|o<<6,h=p|o<<6;function base64Url(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function signatureAsBuffer(e){if(n.isBuffer(e)){return e}else if("string"===typeof e){return n.from(e,"base64")}throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function derToJose(e,r){e=signatureAsBuffer(e);var i=s(r);var o=i+1;var c=e.length;var l=0;if(e[l++]!==d){throw new Error('Could not find expected "seq"')}var p=e[l++];if(p===(a|1)){p=e[l++]}if(c-l=a;if(s){--n}return n}function joseToDer(e,r){e=signatureAsBuffer(e);var i=s(r);var o=e.length;if(o!==i*2){throw new TypeError('"'+r+'" signatures must be "'+i*2+'" bytes, saw "'+o+'"')}var c=countPadding(e,0,i);var l=countPadding(e,i,e.length);var p=i-c;var g=i-l;var v=1+1+p+1+1+g;var y=v{"use strict";function getParamSize(e){var r=(e/8|0)+(e%8===0?0:1);return r}var r={ES256:getParamSize(256),ES384:getParamSize(384),ES512:getParamSize(521)};function getParamBytesForAlg(e){var i=r[e];if(i){return i}throw new Error('Unknown algorithm "'+e+'"')}e.exports=getParamBytesForAlg},1205:(e,r,i)=>{var n=i(1223);var noop=function(){};var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,r,i){if(typeof r==="function")return eos(e,null,r);if(!r)r={};i=n(i||noop);var s=e._writableState;var a=e._readableState;var o=r.readable||r.readable!==false&&e.readable;var c=r.writable||r.writable!==false&&e.writable;var l=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){c=false;if(!o)i.call(e)};var onend=function(){o=false;if(!c)i.call(e)};var onexit=function(r){i.call(e,r?new Error("exited with error code: "+r):null)};var onerror=function(r){i.call(e,r)};var onclose=function(){process.nextTick(onclosenexttick)};var onclosenexttick=function(){if(l)return;if(o&&!(a&&(a.ended&&!a.destroyed)))return i.call(e,new Error("premature close"));if(c&&!(s&&(s.ended&&!s.destroyed)))return i.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(c&&!s){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(r.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){l=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},5771:(e,r,i)=>{var n=i(5477);var s=i(2077);e.exports=decode;function decode(e){if(typeof e!=="string"){throw new TypeError("Expected a String")}return e.replace(/&(#?[^;\W]+;?)/g,(function(e,r){var i;if(i=/^#(\d+);?$/.exec(r)){return n.ucs2.encode([parseInt(i[1],10)])}else if(i=/^#[Xx]([A-Fa-f0-9]+);?/.exec(r)){return n.ucs2.encode([parseInt(i[1],16)])}else{var a=/;$/.test(r);var o=a?r.replace(/;$/,""):r;var c=s[o]||a&&s[r];if(typeof c==="number"){return n.ucs2.encode([c])}else if(typeof c==="string"){return c}else{return"&"+r}}}))}},6521:(e,r,i)=>{var n=i(5477);var s=i(3123);e.exports=encode;function encode(e,r){if(typeof e!=="string"){throw new TypeError("Expected a String")}if(!r)r={};var i=true;if(r.named)i=false;if(r.numeric!==undefined)i=r.numeric;var a=r.special||{'"':true,"'":true,"<":true,">":true,"&":true};var o=n.ucs2.decode(e);var c=[];for(var l=0;l=127||a[d])&&!i){c.push("&"+(/;$/.test(h)?h:h+";"))}else if(p<32||p>=127||a[d]){c.push("&#"+p+";")}else{c.push(d)}}return c.join("")}},1151:(e,r,i)=>{r.encode=i(6521);r.decode=i(5771)},4697:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const i=new WeakMap;const n=new WeakMap;function pd(e){const r=i.get(e);console.assert(r!=null,"'this' is expected an Event object, but got",e);return r}function setCancelFlag(e){if(e.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}return}if(!e.event.cancelable){return}e.canceled=true;if(typeof e.event.preventDefault==="function"){e.event.preventDefault()}}function Event(e,r){i.set(this,{eventTarget:e,event:r,eventPhase:2,currentTarget:e,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:r.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const n=Object.keys(r);for(let e=0;e0){const e=new Array(arguments.length);for(let r=0;r{"use strict";var r=Object.prototype.hasOwnProperty;var i=Object.prototype.toString;var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=function isArray(e){if(typeof Array.isArray==="function"){return Array.isArray(e)}return i.call(e)==="[object Array]"};var o=function isPlainObject(e){if(!e||i.call(e)!=="[object Object]"){return false}var n=r.call(e,"constructor");var s=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!s){return false}var a;for(a in e){}return typeof a==="undefined"||r.call(e,a)};var c=function setProperty(e,r){if(n&&r.name==="__proto__"){n(e,r.name,{enumerable:true,configurable:true,value:r.newValue,writable:true})}else{e[r.name]=r.newValue}};var l=function getProperty(e,i){if(i==="__proto__"){if(!r.call(e,i)){return void 0}else if(s){return s(e,i).value}}return e[i]};e.exports=function extend(){var e,r,i,n,s,p;var d=arguments[0];var h=1;var g=arguments.length;var v=false;if(typeof d==="boolean"){v=d;d=arguments[1]||{};h=2}if(d==null||typeof d!=="object"&&typeof d!=="function"){d={}}for(;h=i-1){s.push(String.fromCharCode.apply(null,n.subarray(0,a)));if(!o)return s.join("");e=e.subarray(r);a=r=0}o=e[r++];if(0===(o&128))n[a++]=o;else if(192===(o&224)){var c=e[r++]&63;n[a++]=(o&31)<<6|c}else if(224===(o&240)){c=e[r++]&63;var l=e[r++]&63;n[a++]=(o&31)<<12|c<<6|l}else if(240===(o&248)){c=e[r++]&63;l=e[r++]&63;var p=e[r++]&63;o=(o&7)<<18|c<<12|l<<6|p;65535>>10&1023|55296,o=56320|o&1023);n[a++]=o}}}if(e.TextEncoder&&e.TextDecoder)return!1;var r=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(m.prototype,"encoding",{value:"utf-8"});m.prototype.encode=function(e,r){r=void 0===r?{stream:!1}:r;if(r.stream)throw Error("Failed to encode: the 'stream' option is unsupported.");r=0;for(var i=e.length,n=0,s=Math.max(32,i+(i>>>1)+7),a=new Uint8Array(s>>>3<<3);r=o){if(r=o)continue}n+4>a.length&&(s+=8,s*=1+r/e.length*2,s=s>>>3<<3,c=new Uint8Array(s),c.set(a),a=c);if(0===(o&4294967168))a[n++]=o;else{if(0===(o&4294965248))a[n++]=o>>>6&31|192;else if(0===(o&4294901760))a[n++]=o>>>12&15|224,a[n++]=o>>>6&63|128;else if(0===(o&4292870144))a[n++]=o>>>18&7|240,a[n++]=o>>>12&63|128,a[n++]=o>>>6&63|128;else continue;a[n++]=o&63|128}}return a.slice?a.slice(0,n):a.subarray(0,n)};Object.defineProperty(k.prototype,"encoding",{value:"utf-8"});Object.defineProperty(k.prototype,"fatal",{value:!1});Object.defineProperty(k.prototype,"ignoreBOM",{value:!1});var i=q;"function"===typeof Buffer&&Buffer.from?i=t:"function"===typeof Blob&&"function"===typeof URL&&"function"===typeof URL.createObjectURL&&(i=u);k.prototype.decode=function(e,r){r=void 0===r?{stream:!1}:r;if(r.stream)throw Error("Failed to decode: the 'stream' option is unsupported.");e=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e);return i(e)};e.TextEncoder=m;e.TextDecoder=k})("undefined"!==typeof window?window:"undefined"!==typeof global?global:this)},6863:(e,r,i)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=i(7147);var s=n.realpath;var a=n.realpathSync;var o=process.version;var c=/^v[0-5]\./.test(o);var l=i(1734);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,r,i){if(c){return s(e,r,i)}if(typeof r==="function"){i=r;r=null}s(e,r,(function(n,s){if(newError(n)){l.realpath(e,r,i)}else{i(n,s)}}))}function realpathSync(e,r){if(c){return a(e,r)}try{return a(e,r)}catch(i){if(newError(i)){return l.realpathSync(e,r)}else{throw i}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=s;n.realpathSync=a}},1734:(e,r,i)=>{var n=i(1017);var s=process.platform==="win32";var a=i(7147);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var r=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){r.message=e.message;e=r;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var r="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(r);else console.error(r)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var c=n.normalize;if(s){var l=/(.*?)(?:[\/\\]+|$)/g}else{var l=/(.*?)(?:[\/]+|$)/g}if(s){var p=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var p=/^[\/]*/}r.realpathSync=function realpathSync(e,r){e=n.resolve(e);if(r&&Object.prototype.hasOwnProperty.call(r,e)){return r[e]}var i=e,o={},c={};var d;var h;var g;var v;start();function start(){var r=p.exec(e);d=r[0].length;h=r[0];g=r[0];v="";if(s&&!c[g]){a.lstatSync(g);c[g]=true}}while(d=e.length){if(r)r[o]=e;return i(null,e)}l.lastIndex=h;var n=l.exec(e);y=g;g+=n[0];v=y+n[1];h=l.lastIndex;if(d[v]||r&&r[v]===v){return process.nextTick(LOOP)}if(r&&Object.prototype.hasOwnProperty.call(r,v)){return gotResolvedLink(r[v])}return a.lstat(v,gotStat)}function gotStat(e,n){if(e)return i(e);if(!n.isSymbolicLink()){d[v]=true;if(r)r[v]=v;return process.nextTick(LOOP)}if(!s){var o=n.dev.toString(32)+":"+n.ino.toString(32);if(c.hasOwnProperty(o)){return gotTarget(null,c[o],v)}}a.stat(v,(function(e){if(e)return i(e);a.readlink(v,(function(e,r){if(!s)c[o]=r;gotTarget(e,r)}))}))}function gotTarget(e,s,a){if(e)return i(e);var o=n.resolve(y,s);if(r)r[a]=o;gotResolvedLink(o)}function gotResolvedLink(r){e=n.resolve(r,e.slice(h));start()}}},6129:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GaxiosError=void 0;class GaxiosError extends Error{constructor(e,r,i){super(e);this.response=i;this.config=r;this.code=i.status.toString()}}r.GaxiosError=GaxiosError},8133:function(e,r,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.Gaxios=void 0;const s=n(i(8171));const a=i(5687);const o=n(i(467));const c=n(i(3477));const l=n(i(1554));const p=i(7310);const d=i(6129);const h=i(1052);const g=hasFetch()?window.fetch:o.default;function hasWindow(){return typeof window!=="undefined"&&!!window}function hasFetch(){return hasWindow()&&!!window.fetch}function hasBuffer(){return typeof Buffer!=="undefined"}function hasHeader(e,r){return!!getHeader(e,r)}function getHeader(e,r){r=r.toLowerCase();for(const i of Object.keys((e===null||e===void 0?void 0:e.headers)||{})){if(r===i.toLowerCase()){return e.headers[i]}}return undefined}let v;function loadProxy(){const e=process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy;if(e){v=i(7219)}return e}loadProxy();function skipProxy(e){var r;const i=(r=process.env.NO_PROXY)!==null&&r!==void 0?r:process.env.no_proxy;if(!i){return false}const n=i.split(",");const s=new p.URL(e);return!!n.find((e=>{if(e.startsWith("*.")||e.startsWith(".")){e=e.replace(/^\*\./,".");return s.hostname.endsWith(e)}else{return e===s.origin||e===s.hostname}}))}function getProxy(e){if(skipProxy(e)){return undefined}else{return loadProxy()}}class Gaxios{constructor(e){this.agentCache=new Map;this.defaults=e||{}}async request(e={}){e=this.validateOpts(e);return this._request(e)}async _defaultAdapter(e){const r=e.fetchImplementation||g;const i=await r(e.url,e);const n=await this.getResponseData(e,i);return this.translateResponse(e,i,n)}async _request(e={}){try{let r;if(e.adapter){r=await e.adapter(e,this._defaultAdapter.bind(this))}else{r=await this._defaultAdapter(e)}if(!e.validateStatus(r.status)){throw new d.GaxiosError(`Request failed with status code ${r.status}`,e,r)}return r}catch(r){const i=r;i.config=e;const{shouldRetry:n,config:s}=await h.getRetryConfig(r);if(n&&s){i.config.retryConfig.currentRetryAttempt=s.retryConfig.currentRetryAttempt;return this._request(i.config)}throw i}}async getResponseData(e,r){switch(e.responseType){case"stream":return r.body;case"json":{let e=await r.text();try{e=JSON.parse(e)}catch(e){}return e}case"arraybuffer":return r.arrayBuffer();case"blob":return r.blob();default:return r.text()}}validateOpts(e){const r=s.default(true,{},this.defaults,e);if(!r.url){throw new Error("URL is required.")}const i=r.baseUrl||r.baseURL;if(i){r.url=i+r.url}r.paramsSerializer=r.paramsSerializer||this.paramsSerializer;if(r.params&&Object.keys(r.params).length>0){let e=r.paramsSerializer(r.params);if(e.startsWith("?")){e=e.slice(1)}const i=r.url.includes("?")?"&":"?";r.url=r.url+i+e}if(typeof e.maxContentLength==="number"){r.size=e.maxContentLength}if(typeof e.maxRedirects==="number"){r.follow=e.maxRedirects}r.headers=r.headers||{};if(r.data){if(l.default.readable(r.data)){r.body=r.data}else if(hasBuffer()&&Buffer.isBuffer(r.data)){r.body=r.data;if(!hasHeader(r,"Content-Type")){r.headers["Content-Type"]="application/json"}}else if(typeof r.data==="object"){if(getHeader(r,"content-type")==="application/x-www-form-urlencoded"){r.body=r.paramsSerializer(r.data)}else{if(!hasHeader(r,"Content-Type")){r.headers["Content-Type"]="application/json"}r.body=JSON.stringify(r.data)}}else{r.body=r.data}}r.validateStatus=r.validateStatus||this.validateStatus;r.responseType=r.responseType||"json";if(!r.headers["Accept"]&&r.responseType==="json"){r.headers["Accept"]="application/json"}r.method=r.method||"GET";const n=getProxy(r.url);if(n){if(this.agentCache.has(n)){r.agent=this.agentCache.get(n)}else{if(r.cert&&r.key){const e=new p.URL(n);r.agent=new v({port:e.port,host:e.host,protocol:e.protocol,cert:r.cert,key:r.key})}else{r.agent=new v(n)}this.agentCache.set(n,r.agent)}}else if(r.cert&&r.key){if(this.agentCache.has(r.key)){r.agent=this.agentCache.get(r.key)}else{r.agent=new a.Agent({cert:r.cert,key:r.key});this.agentCache.set(r.key,r.agent)}}return r}validateStatus(e){return e>=200&&e<300}paramsSerializer(e){return c.default.stringify(e)}translateResponse(e,r,i){const n={};r.headers.forEach(((e,r)=>{n[r]=e}));return{config:e,data:i,headers:n,status:r.status,statusText:r.statusText,request:{responseURL:r.url}}}}r.Gaxios=Gaxios},9555:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.request=r.instance=r.Gaxios=void 0;const n=i(8133);Object.defineProperty(r,"Gaxios",{enumerable:true,get:function(){return n.Gaxios}});var s=i(6129);Object.defineProperty(r,"GaxiosError",{enumerable:true,get:function(){return s.GaxiosError}});r.instance=new n.Gaxios;async function request(e){return r.instance.request(e)}r.request=request},1052:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getRetryConfig=void 0;async function getRetryConfig(e){var r;let i=getConfig(e);if(!e||!e.config||!i&&!e.config.retry){return{shouldRetry:false}}i=i||{};i.currentRetryAttempt=i.currentRetryAttempt||0;i.retry=i.retry===undefined||i.retry===null?3:i.retry;i.httpMethodsToRetry=i.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"];i.noResponseRetries=i.noResponseRetries===undefined||i.noResponseRetries===null?2:i.noResponseRetries;const n=[[100,199],[429,429],[500,599]];i.statusCodesToRetry=i.statusCodesToRetry||n;e.config.retryConfig=i;const s=i.shouldRetry||shouldRetryRequest;if(!await s(e)){return{shouldRetry:false,config:e.config}}const a=i.currentRetryAttempt?0:(r=i.retryDelay)!==null&&r!==void 0?r:100;const o=a+(Math.pow(2,i.currentRetryAttempt)-1)/2*1e3;e.config.retryConfig.currentRetryAttempt+=1;const c=new Promise((e=>{setTimeout(e,o)}));if(i.onRetryAttempt){i.onRetryAttempt(e)}await c;return{shouldRetry:true,config:e.config}}r.getRetryConfig=getRetryConfig;function shouldRetryRequest(e){const r=getConfig(e);if(e.name==="AbortError"){return false}if(!r||r.retry===0){return false}if(!e.response&&(r.currentRetryAttempt||0)>=r.noResponseRetries){return false}if(!e.config.method||r.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0){return false}if(e.response&&e.response.status){let i=false;for(const[n,s]of r.statusCodesToRetry){const r=e.response.status;if(r>=n&&r<=s){i=true;break}}if(!i){return false}}r.currentRetryAttempt=r.currentRetryAttempt||0;if(r.currentRetryAttempt>=r.retry){return false}return true}function getConfig(e){if(e&&e.config&&e.config.retryConfig){return e.config.retryConfig}return}},3563:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.requestTimeout=r.resetIsAvailableCache=r.isAvailable=r.project=r.instance=r.HEADERS=r.HEADER_VALUE=r.HEADER_NAME=r.SECONDARY_HOST_ADDRESS=r.HOST_ADDRESS=r.BASE_PATH=void 0;const n=i(9555);const s=i(5031);r.BASE_PATH="/computeMetadata/v1";r.HOST_ADDRESS="http://169.254.169.254";r.SECONDARY_HOST_ADDRESS="http://metadata.google.internal.";r.HEADER_NAME="Metadata-Flavor";r.HEADER_VALUE="Google";r.HEADERS=Object.freeze({[r.HEADER_NAME]:r.HEADER_VALUE});function getBaseUrl(e){if(!e){e=process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST||r.HOST_ADDRESS}if(!/^https?:\/\//.test(e)){e=`http://${e}`}return new URL(r.BASE_PATH,e).href}function validate(e){Object.keys(e).forEach((e=>{switch(e){case"params":case"property":case"headers":break;case"qs":throw new Error("'qs' is not a valid configuration option. Please use 'params' instead.");default:throw new Error(`'${e}' is not a valid configuration option.`)}}))}async function metadataAccessor(e,i,a=3,o=false){i=i||{};if(typeof i==="string"){i={property:i}}let c="";if(typeof i==="object"&&i.property){c="/"+i.property}validate(i);try{const l=o?fastFailMetadataRequest:n.request;const p=await l({url:`${getBaseUrl()}/${e}${c}`,headers:Object.assign({},r.HEADERS,i.headers),retryConfig:{noResponseRetries:a},params:i.params,responseType:"text",timeout:requestTimeout()});if(p.headers[r.HEADER_NAME.toLowerCase()]!==r.HEADER_VALUE){throw new Error(`Invalid response from metadata service: incorrect ${r.HEADER_NAME} header.`)}else if(!p.data){throw new Error("Invalid response from the metadata service")}if(typeof p.data==="string"){try{return s.parse(p.data)}catch(e){}}return p.data}catch(e){if(e.response&&e.response.status!==200){e.message=`Unsuccessful response status code. ${e.message}`}throw e}}async function fastFailMetadataRequest(e){const i={...e,url:e.url.replace(getBaseUrl(),getBaseUrl(r.SECONDARY_HOST_ADDRESS))};let s=false;const a=n.request(e).then((e=>{s=true;return e})).catch((e=>{if(s){return o}else{s=true;throw e}}));const o=n.request(i).then((e=>{s=true;return e})).catch((e=>{if(s){return a}else{s=true;throw e}}));return Promise.race([a,o])}function instance(e){return metadataAccessor("instance",e)}r.instance=instance;function project(e){return metadataAccessor("project",e)}r.project=project;function detectGCPAvailableRetries(){return process.env.DETECT_GCP_RETRIES?Number(process.env.DETECT_GCP_RETRIES):0}let a;async function isAvailable(){try{if(a===undefined){a=metadataAccessor("instance",undefined,detectGCPAvailableRetries(),!(process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST))}await a;return true}catch(e){if(process.env.DEBUG_AUTH){console.info(e)}if(e.type==="request-timeout"){return false}if(e.response&&e.response.status===404){return false}else{if(!(e.response&&e.response.status===404)&&(!e.code||!["EHOSTDOWN","EHOSTUNREACH","ENETUNREACH","ENOENT","ENOTFOUND","ECONNREFUSED"].includes(e.code))){let r="UNKNOWN";if(e.code)r=e.code;process.emitWarning(`received unexpected error = ${e.message} code = ${r}`,"MetadataLookupWarning")}return false}}}r.isAvailable=isAvailable;function resetIsAvailableCache(){a=undefined}r.resetIsAvailableCache=resetIsAvailableCache;function requestTimeout(){return process.env.K_SERVICE||process.env.FUNCTION_NAME?0:3e3}r.requestTimeout=requestTimeout},1585:(e,r,i)=>{"use strict";const{PassThrough:n}=i(2781);e.exports=e=>{e={...e};const{array:r}=e;let{encoding:i}=e;const s=i==="buffer";let a=false;if(r){a=!(i||s)}else{i=i||"utf8"}if(s){i=null}const o=new n({objectMode:a});if(i){o.setEncoding(i)}let c=0;const l=[];o.on("data",(e=>{l.push(e);if(a){c=l.length}else{c+=e.length}}));o.getBufferedValue=()=>{if(r){return l}return s?Buffer.concat(l,c):l.join("")};o.getBufferedLength=()=>c;return o}},1766:(e,r,i)=>{"use strict";const{constants:n}=i(4300);const s=i(2781);const{promisify:a}=i(3837);const o=i(1585);const c=a(s.pipeline);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,r){if(!e){throw new Error("Expected a stream")}r={maxBuffer:Infinity,...r};const{maxBuffer:i}=r;const s=o(r);await new Promise(((r,a)=>{const rejectPromise=e=>{if(e&&s.getBufferedLength()<=n.MAX_LENGTH){e.bufferedData=s.getBufferedValue()}a(e)};(async()=>{try{await c(e,s);r()}catch(e){rejectPromise(e)}})();s.on("data",(()=>{if(s.getBufferedLength()>i){rejectPromise(new MaxBufferError)}}))}));return s.getBufferedValue()}e.exports=getStream;e.exports.buffer=(e,r)=>getStream(e,{...r,encoding:"buffer"});e.exports.array=(e,r)=>getStream(e,{...r,array:true});e.exports.MaxBufferError=MaxBufferError},7625:(e,r,i)=>{r.setopts=setopts;r.ownProp=ownProp;r.makeAbs=makeAbs;r.finish=finish;r.mark=mark;r.isIgnored=isIgnored;r.childrenIgnored=childrenIgnored;function ownProp(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var n=i(1017);var s=i(3973);var a=i(8714);var o=s.Minimatch;function alphasort(e,r){return e.localeCompare(r,"en")}function setupIgnores(e,r){e.ignore=r.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var r=null;if(e.slice(-3)==="/**"){var i=e.replace(/(\/\*\*)+$/,"");r=new o(i,{dot:true})}return{matcher:new o(e,{dot:true}),gmatcher:r}}function setopts(e,r,i){if(!i)i={};if(i.matchBase&&-1===r.indexOf("/")){if(i.noglobstar){throw new Error("base matching requires globstar")}r="**/"+r}e.silent=!!i.silent;e.pattern=r;e.strict=i.strict!==false;e.realpath=!!i.realpath;e.realpathCache=i.realpathCache||Object.create(null);e.follow=!!i.follow;e.dot=!!i.dot;e.mark=!!i.mark;e.nodir=!!i.nodir;if(e.nodir)e.mark=true;e.sync=!!i.sync;e.nounique=!!i.nounique;e.nonull=!!i.nonull;e.nosort=!!i.nosort;e.nocase=!!i.nocase;e.stat=!!i.stat;e.noprocess=!!i.noprocess;e.absolute=!!i.absolute;e.maxLength=i.maxLength||Infinity;e.cache=i.cache||Object.create(null);e.statCache=i.statCache||Object.create(null);e.symlinks=i.symlinks||Object.create(null);setupIgnores(e,i);e.changedCwd=false;var s=process.cwd();if(!ownProp(i,"cwd"))e.cwd=s;else{e.cwd=n.resolve(i.cwd);e.changedCwd=e.cwd!==s}e.root=i.root||n.resolve(e.cwd,"/");e.root=n.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=a(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!i.nomount;i.nonegate=true;i.nocomment=true;e.minimatch=new o(r,i);e.options=e.minimatch.options}function finish(e){var r=e.nounique;var i=r?[]:Object.create(null);for(var n=0,s=e.matches.length;n{e.exports=glob;var n=i(7147);var s=i(6863);var a=i(3973);var o=a.Minimatch;var c=i(4124);var l=i(2361).EventEmitter;var p=i(1017);var d=i(9491);var h=i(8714);var g=i(9010);var v=i(7625);var y=v.setopts;var b=v.ownProp;var E=i(2492);var x=i(3837);var w=v.childrenIgnored;var T=v.isIgnored;var _=i(1223);function glob(e,r,i){if(typeof r==="function")i=r,r={};if(!r)r={};if(r.sync){if(i)throw new TypeError("callback provided to sync glob");return g(e,r)}return new Glob(e,r,i)}glob.sync=g;var C=glob.GlobSync=g.GlobSync;glob.glob=glob;function extend(e,r){if(r===null||typeof r!=="object"){return e}var i=Object.keys(r);var n=i.length;while(n--){e[i[n]]=r[i[n]]}return e}glob.hasMagic=function(e,r){var i=extend({},r);i.noprocess=true;var n=new Glob(e,i);var s=n.minimatch.set;if(!e)return false;if(s.length>1)return true;for(var a=0;athis.maxLength)return r();if(!this.stat&&b(this.cache,i)){var a=this.cache[i];if(Array.isArray(a))a="DIR";if(!s||a==="DIR")return r(null,a);if(s&&a==="FILE")return r()}var o;var c=this.statCache[i];if(c!==undefined){if(c===false)return r(null,c);else{var l=c.isDirectory()?"DIR":"FILE";if(s&&l==="FILE")return r();else return r(null,l,c)}}var p=this;var d=E("stat\0"+i,lstatcb_);if(d)n.lstat(i,d);function lstatcb_(s,a){if(a&&a.isSymbolicLink()){return n.stat(i,(function(n,s){if(n)p._stat2(e,i,null,a,r);else p._stat2(e,i,n,s,r)}))}else{p._stat2(e,i,s,a,r)}}};Glob.prototype._stat2=function(e,r,i,n,s){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR")){this.statCache[r]=false;return s()}var a=e.slice(-1)==="/";this.statCache[r]=n;if(r.slice(-1)==="/"&&n&&!n.isDirectory())return s(null,false,n);var o=true;if(n)o=n.isDirectory()?"DIR":"FILE";this.cache[r]=this.cache[r]||o;if(a&&o==="FILE")return s();return s(null,o,n)}},9010:(e,r,i)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var n=i(7147);var s=i(6863);var a=i(3973);var o=a.Minimatch;var c=i(1957).Glob;var l=i(3837);var p=i(1017);var d=i(9491);var h=i(8714);var g=i(7625);var v=g.setopts;var y=g.ownProp;var b=g.childrenIgnored;var E=g.isIgnored;function globSync(e,r){if(typeof r==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,r).found}function GlobSync(e,r){if(!e)throw new Error("must provide pattern");if(typeof r==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,r);v(this,e,r);if(this.noprocess)return this;var i=this.minimatch.set.length;this.matches=new Array(i);for(var n=0;nthis.maxLength)return false;if(!this.stat&&y(this.cache,r)){var s=this.cache[r];if(Array.isArray(s))s="DIR";if(!i||s==="DIR")return s;if(i&&s==="FILE")return false}var a;var o=this.statCache[r];if(!o){var c;try{c=n.lstatSync(r)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[r]=false;return false}}if(c&&c.isSymbolicLink()){try{o=n.statSync(r)}catch(e){o=c}}else{o=c}}this.statCache[r]=o;var s=true;if(o)s=o.isDirectory()?"DIR":"FILE";this.cache[r]=this.cache[r]||s;if(i&&s==="FILE")return false;return s};GlobSync.prototype._mark=function(e){return g.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return g.makeAbs(this,e)}},4627:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.AuthClient=void 0;const n=i(2361);const s=i(2649);class AuthClient extends n.EventEmitter{constructor(){super(...arguments);this.transporter=new s.DefaultTransporter;this.credentials={};this.eagerRefreshThresholdMillis=5*60*1e3;this.forceRefreshOnFailure=false}setCredentials(e){this.credentials=e}addSharedMetadataHeaders(e){if(!e["x-goog-user-project"]&&this.quotaProjectId){e["x-goog-user-project"]=this.quotaProjectId}return e}}r.AuthClient=AuthClient},1569:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.AwsClient=void 0;const n=i(1754);const s=i(7391);class AwsClient extends s.BaseExternalAccountClient{constructor(e,r){var i;super(e,r);this.environmentId=e.credential_source.environment_id;this.regionUrl=e.credential_source.region_url;this.securityCredentialsUrl=e.credential_source.url;this.regionalCredVerificationUrl=e.credential_source.regional_cred_verification_url;const n=(i=this.environmentId)===null||i===void 0?void 0:i.match(/^(aws)(\d+)$/);if(!n||!this.regionalCredVerificationUrl){throw new Error('No valid AWS "credential_source" provided')}else if(parseInt(n[2],10)!==1){throw new Error(`aws version "${n[2]}" is not supported in the current build.`)}this.awsRequestSigner=null;this.region=""}async retrieveSubjectToken(){if(!this.awsRequestSigner){this.region=await this.getAwsRegion();this.awsRequestSigner=new n.AwsRequestSigner((async()=>{if(process.env["AWS_ACCESS_KEY_ID"]&&process.env["AWS_SECRET_ACCESS_KEY"]){return{accessKeyId:process.env["AWS_ACCESS_KEY_ID"],secretAccessKey:process.env["AWS_SECRET_ACCESS_KEY"],token:process.env["AWS_SESSION_TOKEN"]}}const e=await this.getAwsRoleName();const r=await this.getAwsSecurityCredentials(e);return{accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,token:r.Token}}),this.region)}const e=await this.awsRequestSigner.getRequestOptions({url:this.regionalCredVerificationUrl.replace("{region}",this.region),method:"POST"});const r=[];const i=Object.assign({"x-goog-cloud-target-resource":this.audience},e.headers);for(const e in i){r.push({key:e,value:i[e]})}return encodeURIComponent(JSON.stringify({url:e.url,method:e.method,headers:r}))}async getAwsRegion(){if(process.env["AWS_REGION"]||process.env["AWS_DEFAULT_REGION"]){return process.env["AWS_REGION"]||process.env["AWS_DEFAULT_REGION"]}if(!this.regionUrl){throw new Error("Unable to determine AWS region due to missing "+'"options.credential_source.region_url"')}const e={url:this.regionUrl,method:"GET",responseType:"text"};const r=await this.transporter.request(e);return r.data.substr(0,r.data.length-1)}async getAwsRoleName(){if(!this.securityCredentialsUrl){throw new Error("Unable to determine AWS role name due to missing "+'"options.credential_source.url"')}const e={url:this.securityCredentialsUrl,method:"GET",responseType:"text"};const r=await this.transporter.request(e);return r.data}async getAwsSecurityCredentials(e){const r=await this.transporter.request({url:`${this.securityCredentialsUrl}/${e}`,responseType:"json"});return r.data}}r.AwsClient=AwsClient},1754:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.AwsRequestSigner=void 0;const n=i(8043);const s="AWS4-HMAC-SHA256";const a="aws4_request";class AwsRequestSigner{constructor(e,r){this.getCredentials=e;this.region=r;this.crypto=n.createCrypto()}async getRequestOptions(e){if(!e.url){throw new Error('"url" is required in "amzOptions"')}const r=typeof e.data==="object"?JSON.stringify(e.data):e.data;const i=e.url;const n=e.method||"GET";const s=e.body||r;const a=e.headers;const o=await this.getCredentials();const c=new URL(i);const l=await generateAuthenticationHeaderMap({crypto:this.crypto,host:c.host,canonicalUri:c.pathname,canonicalQuerystring:c.search.substr(1),method:n,region:this.region,securityCredentials:o,requestPayload:s,additionalAmzHeaders:a});const p=Object.assign(l.amzDate?{"x-amz-date":l.amzDate}:{},{Authorization:l.authorizationHeader,host:c.host},a||{});if(o.token){Object.assign(p,{"x-amz-security-token":o.token})}const d={url:i,method:n,headers:p};if(typeof s!=="undefined"){d.body=s}return d}}r.AwsRequestSigner=AwsRequestSigner;async function sign(e,r,i){return await e.signWithHmacSha256(r,i)}async function getSigningKey(e,r,i,n,s){const a=await sign(e,`AWS4${r}`,i);const o=await sign(e,a,n);const c=await sign(e,o,s);const l=await sign(e,c,"aws4_request");return l}async function generateAuthenticationHeaderMap(e){const r=e.additionalAmzHeaders||{};const i=e.requestPayload||"";const o=e.host.split(".")[0];const c=new Date;const l=c.toISOString().replace(/[-:]/g,"").replace(/\.[0-9]+/,"");const p=c.toISOString().replace(/[-]/g,"").replace(/T.*/,"");const d={};Object.keys(r).forEach((e=>{d[e.toLowerCase()]=r[e]}));if(e.securityCredentials.token){d["x-amz-security-token"]=e.securityCredentials.token}const h=Object.assign({host:e.host},d.date?{}:{"x-amz-date":l},d);let g="";const v=Object.keys(h).sort();v.forEach((e=>{g+=`${e}:${h[e]}\n`}));const y=v.join(";");const b=await e.crypto.sha256DigestHex(i);const E=`${e.method}\n`+`${e.canonicalUri}\n`+`${e.canonicalQuerystring}\n`+`${g}\n`+`${y}\n`+`${b}`;const x=`${p}/${e.region}/${o}/${a}`;const w=`${s}\n`+`${l}\n`+`${x}\n`+await e.crypto.sha256DigestHex(E);const T=await getSigningKey(e.crypto,e.securityCredentials.secretAccessKey,p,e.region,o);const _=await sign(e.crypto,T,w);const C=`${s} Credential=${e.securityCredentials.accessKeyId}/`+`${x}, SignedHeaders=${y}, `+`Signature=${n.fromArrayBufferToHex(_)}`;return{amzDate:d.date?undefined:l,authorizationHeader:C,canonicalQuerystring:e.canonicalQuerystring}}},7391:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.BaseExternalAccountClient=r.CLOUD_RESOURCE_MANAGER=r.EXTERNAL_ACCOUNT_TYPE=r.EXPIRATION_TIME_OFFSET=void 0;const n=i(2781);const s=i(4627);const a=i(6308);const o="urn:ietf:params:oauth:grant-type:token-exchange";const c="urn:ietf:params:oauth:token-type:access_token";const l="https://www.googleapis.com/auth/cloud-platform";const p="\\.googleapis\\.com$";const d="[^\\.\\s\\/\\\\]+";r.EXPIRATION_TIME_OFFSET=5*60*1e3;r.EXTERNAL_ACCOUNT_TYPE="external_account";r.CLOUD_RESOURCE_MANAGER="https://cloudresourcemanager.googleapis.com/v1/projects/";const h="//iam.googleapis.com/locations/[^/]+/workforcePools/[^/]+/providers/.+";class BaseExternalAccountClient extends s.AuthClient{constructor(e,i){super();if(e.type!==r.EXTERNAL_ACCOUNT_TYPE){throw new Error(`Expected "${r.EXTERNAL_ACCOUNT_TYPE}" type but `+`received "${e.type}"`)}this.clientAuth=e.client_id?{confidentialClientType:"basic",clientId:e.client_id,clientSecret:e.client_secret}:undefined;if(!this.validateGoogleAPIsUrl("sts",e.token_url)){throw new Error(`"${e.token_url}" is not a valid token url.`)}this.stsCredential=new a.StsCredentials(e.token_url,this.clientAuth);this.scopes=[l];this.cachedAccessToken=null;this.audience=e.audience;this.subjectTokenType=e.subject_token_type;this.quotaProjectId=e.quota_project_id;this.workforcePoolUserProject=e.workforce_pool_user_project;const n=new RegExp(h);if(this.workforcePoolUserProject&&!this.audience.match(n)){throw new Error("workforcePoolUserProject should not be set for non-workforce pool "+"credentials.")}if(typeof e.service_account_impersonation_url!=="undefined"&&!this.validateGoogleAPIsUrl("iamcredentials",e.service_account_impersonation_url)){throw new Error(`"${e.service_account_impersonation_url}" is `+"not a valid service account impersonation url.")}this.serviceAccountImpersonationUrl=e.service_account_impersonation_url;if(typeof(i===null||i===void 0?void 0:i.eagerRefreshThresholdMillis)!=="number"){this.eagerRefreshThresholdMillis=r.EXPIRATION_TIME_OFFSET}else{this.eagerRefreshThresholdMillis=i.eagerRefreshThresholdMillis}this.forceRefreshOnFailure=!!(i===null||i===void 0?void 0:i.forceRefreshOnFailure);this.projectId=null;this.projectNumber=this.getProjectNumber(this.audience)}getServiceAccountEmail(){var e;if(this.serviceAccountImpersonationUrl){const r=/serviceAccounts\/(?[^:]+):generateAccessToken$/;const i=r.exec(this.serviceAccountImpersonationUrl);return((e=i===null||i===void 0?void 0:i.groups)===null||e===void 0?void 0:e.email)||null}return null}setCredentials(e){super.setCredentials(e);this.cachedAccessToken=e}async getAccessToken(){if(!this.cachedAccessToken||this.isExpired(this.cachedAccessToken)){await this.refreshAccessTokenAsync()}return{token:this.cachedAccessToken.access_token,res:this.cachedAccessToken.res}}async getRequestHeaders(){const e=await this.getAccessToken();const r={Authorization:`Bearer ${e.token}`};return this.addSharedMetadataHeaders(r)}request(e,r){if(r){this.requestAsync(e).then((e=>r(null,e)),(e=>r(e,e.response)))}else{return this.requestAsync(e)}}async getProjectId(){const e=this.projectNumber||this.workforcePoolUserProject;if(this.projectId){return this.projectId}else if(e){const i=await this.getRequestHeaders();const n=await this.transporter.request({headers:i,url:`${r.CLOUD_RESOURCE_MANAGER}${e}`,responseType:"json"});this.projectId=n.data.projectId;return this.projectId}return null}async requestAsync(e,r=false){let i;try{const r=await this.getRequestHeaders();e.headers=e.headers||{};if(r&&r["x-goog-user-project"]){e.headers["x-goog-user-project"]=r["x-goog-user-project"]}if(r&&r.Authorization){e.headers.Authorization=r.Authorization}i=await this.transporter.request(e)}catch(i){const s=i.response;if(s){const i=s.status;const a=s.config.data instanceof n.Readable;const o=i===401||i===403;if(!r&&o&&!a&&this.forceRefreshOnFailure){await this.refreshAccessTokenAsync();return await this.requestAsync(e,true)}}throw i}return i}async refreshAccessTokenAsync(){const e=await this.retrieveSubjectToken();const r={grantType:o,audience:this.audience,requestedTokenType:c,subjectToken:e,subjectTokenType:this.subjectTokenType,scope:this.serviceAccountImpersonationUrl?[l]:this.getScopesArray()};const i=!this.clientAuth&&this.workforcePoolUserProject?{userProject:this.workforcePoolUserProject}:undefined;const n=await this.stsCredential.exchangeToken(r,undefined,i);if(this.serviceAccountImpersonationUrl){this.cachedAccessToken=await this.getImpersonatedAccessToken(n.access_token)}else if(n.expires_in){this.cachedAccessToken={access_token:n.access_token,expiry_date:(new Date).getTime()+n.expires_in*1e3,res:n.res}}else{this.cachedAccessToken={access_token:n.access_token,res:n.res}}this.credentials={};Object.assign(this.credentials,this.cachedAccessToken);delete this.credentials.res;this.emit("tokens",{refresh_token:null,expiry_date:this.cachedAccessToken.expiry_date,access_token:this.cachedAccessToken.access_token,token_type:"Bearer",id_token:null});return this.cachedAccessToken}getProjectNumber(e){const r=e.match(/\/projects\/([^/]+)/);if(!r){return null}return r[1]}async getImpersonatedAccessToken(e){const r={url:this.serviceAccountImpersonationUrl,method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},data:{scope:this.getScopesArray()},responseType:"json"};const i=await this.transporter.request(r);const n=i.data;return{access_token:n.accessToken,expiry_date:new Date(n.expireTime).getTime(),res:i}}isExpired(e){const r=(new Date).getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:false}getScopesArray(){if(typeof this.scopes==="string"){return[this.scopes]}else if(typeof this.scopes==="undefined"){return[l]}else{return this.scopes}}validateGoogleAPIsUrl(e,r){let i;try{i=new URL(r)}catch(e){return false}const n=i.hostname;if(i.protocol!=="https:"){return false}const s=[new RegExp("^"+d+"\\."+e+p),new RegExp("^"+e+p),new RegExp("^"+e+"\\."+d+p),new RegExp("^"+d+"\\-"+e+p)];for(const e of s){if(n.match(e)){return true}}return false}}r.BaseExternalAccountClient=BaseExternalAccountClient},6875:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Compute=void 0;const n=i(7265);const s=i(3563);const a=i(3936);class Compute extends a.OAuth2Client{constructor(e={}){super(e);this.credentials={expiry_date:1,refresh_token:"compute-placeholder"};this.serviceAccountEmail=e.serviceAccountEmail||"default";this.scopes=n(e.scopes)}async refreshTokenNoCache(e){const r=`service-accounts/${this.serviceAccountEmail}/token`;let i;try{const e={property:r};if(this.scopes.length>0){e.params={scopes:this.scopes.join(",")}}i=await s.instance(e)}catch(e){e.message=`Could not refresh access token: ${e.message}`;this.wrapError(e);throw e}const n=i;if(i&&i.expires_in){n.expiry_date=(new Date).getTime()+i.expires_in*1e3;delete n.expires_in}this.emit("tokens",n);return{tokens:n,res:null}}async fetchIdToken(e){const r=`service-accounts/${this.serviceAccountEmail}/identity`+`?format=full&audience=${e}`;let i;try{const e={property:r};i=await s.instance(e)}catch(e){e.message=`Could not fetch ID token: ${e.message}`;throw e}return i}wrapError(e){const r=e.response;if(r&&r.status){e.code=r.status.toString();if(r.status===403){e.message="A Forbidden error was returned while attempting to retrieve an access "+"token for the Compute Engine built-in service account. This may be because the Compute "+"Engine instance does not have the correct permission scopes specified: "+e.message}else if(r.status===404){e.message="A Not Found error was returned while attempting to retrieve an access"+"token for the Compute Engine built-in service account. This may be because the Compute "+"Engine instance does not have any permission scopes specified: "+e.message}}}}r.Compute=Compute},6270:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.DownscopedClient=r.EXPIRATION_TIME_OFFSET=r.MAX_ACCESS_BOUNDARY_RULES_COUNT=void 0;const n=i(2781);const s=i(4627);const a=i(6308);const o="urn:ietf:params:oauth:grant-type:token-exchange";const c="urn:ietf:params:oauth:token-type:access_token";const l="urn:ietf:params:oauth:token-type:access_token";const p="https://sts.googleapis.com/v1/token";r.MAX_ACCESS_BOUNDARY_RULES_COUNT=10;r.EXPIRATION_TIME_OFFSET=5*60*1e3;class DownscopedClient extends s.AuthClient{constructor(e,i,n,s){super();this.authClient=e;this.credentialAccessBoundary=i;if(i.accessBoundary.accessBoundaryRules.length===0){throw new Error("At least one access boundary rule needs to be defined.")}else if(i.accessBoundary.accessBoundaryRules.length>r.MAX_ACCESS_BOUNDARY_RULES_COUNT){throw new Error("The provided access boundary has more than "+`${r.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`)}for(const e of i.accessBoundary.accessBoundaryRules){if(e.availablePermissions.length===0){throw new Error("At least one permission should be defined in access boundary rules.")}}this.stsCredential=new a.StsCredentials(p);this.cachedDownscopedAccessToken=null;if(typeof(n===null||n===void 0?void 0:n.eagerRefreshThresholdMillis)!=="number"){this.eagerRefreshThresholdMillis=r.EXPIRATION_TIME_OFFSET}else{this.eagerRefreshThresholdMillis=n.eagerRefreshThresholdMillis}this.forceRefreshOnFailure=!!(n===null||n===void 0?void 0:n.forceRefreshOnFailure);this.quotaProjectId=s}setCredentials(e){if(!e.expiry_date){throw new Error("The access token expiry_date field is missing in the provided "+"credentials.")}super.setCredentials(e);this.cachedDownscopedAccessToken=e}async getAccessToken(){if(!this.cachedDownscopedAccessToken||this.isExpired(this.cachedDownscopedAccessToken)){await this.refreshAccessTokenAsync()}return{token:this.cachedDownscopedAccessToken.access_token,expirationTime:this.cachedDownscopedAccessToken.expiry_date,res:this.cachedDownscopedAccessToken.res}}async getRequestHeaders(){const e=await this.getAccessToken();const r={Authorization:`Bearer ${e.token}`};return this.addSharedMetadataHeaders(r)}request(e,r){if(r){this.requestAsync(e).then((e=>r(null,e)),(e=>r(e,e.response)))}else{return this.requestAsync(e)}}async requestAsync(e,r=false){let i;try{const r=await this.getRequestHeaders();e.headers=e.headers||{};if(r&&r["x-goog-user-project"]){e.headers["x-goog-user-project"]=r["x-goog-user-project"]}if(r&&r.Authorization){e.headers.Authorization=r.Authorization}i=await this.transporter.request(e)}catch(i){const s=i.response;if(s){const i=s.status;const a=s.config.data instanceof n.Readable;const o=i===401||i===403;if(!r&&o&&!a&&this.forceRefreshOnFailure){await this.refreshAccessTokenAsync();return await this.requestAsync(e,true)}}throw i}return i}async refreshAccessTokenAsync(){var e;const r=(await this.authClient.getAccessToken()).token;const i={grantType:o,requestedTokenType:c,subjectToken:r,subjectTokenType:l};const n=await this.stsCredential.exchangeToken(i,undefined,this.credentialAccessBoundary);const s=((e=this.authClient.credentials)===null||e===void 0?void 0:e.expiry_date)||null;const a=n.expires_in?(new Date).getTime()+n.expires_in*1e3:s;this.cachedDownscopedAccessToken={access_token:n.access_token,expiry_date:a,res:n.res};this.credentials={};Object.assign(this.credentials,this.cachedDownscopedAccessToken);delete this.credentials.res;this.emit("tokens",{refresh_token:null,expiry_date:this.cachedDownscopedAccessToken.expiry_date,access_token:this.cachedDownscopedAccessToken.access_token,token_type:"Bearer",id_token:null});return this.cachedDownscopedAccessToken}isExpired(e){const r=(new Date).getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:false}}r.DownscopedClient=DownscopedClient},1380:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getEnv=r.clear=r.GCPEnv=void 0;const n=i(3563);var s;(function(e){e["APP_ENGINE"]="APP_ENGINE";e["KUBERNETES_ENGINE"]="KUBERNETES_ENGINE";e["CLOUD_FUNCTIONS"]="CLOUD_FUNCTIONS";e["COMPUTE_ENGINE"]="COMPUTE_ENGINE";e["CLOUD_RUN"]="CLOUD_RUN";e["NONE"]="NONE"})(s=r.GCPEnv||(r.GCPEnv={}));let a;function clear(){a=undefined}r.clear=clear;async function getEnv(){if(a){return a}a=getEnvMemoized();return a}r.getEnv=getEnv;async function getEnvMemoized(){let e=s.NONE;if(isAppEngine()){e=s.APP_ENGINE}else if(isCloudFunction()){e=s.CLOUD_FUNCTIONS}else if(await isComputeEngine()){if(await isKubernetesEngine()){e=s.KUBERNETES_ENGINE}else if(isCloudRun()){e=s.CLOUD_RUN}else{e=s.COMPUTE_ENGINE}}else{e=s.NONE}return e}function isAppEngine(){return!!(process.env.GAE_SERVICE||process.env.GAE_MODULE_NAME)}function isCloudFunction(){return!!(process.env.FUNCTION_NAME||process.env.FUNCTION_TARGET)}function isCloudRun(){return!!process.env.K_CONFIGURATION}async function isKubernetesEngine(){try{await n.instance("attributes/cluster-name");return true}catch(e){return false}}async function isComputeEngine(){return n.isAvailable()}},4381:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ExternalAccountClient=void 0;const n=i(7391);const s=i(117);const a=i(1569);class ExternalAccountClient{constructor(){throw new Error("ExternalAccountClients should be initialized via: "+"ExternalAccountClient.fromJSON(), "+"directly via explicit constructors, eg. "+"new AwsClient(options), new IdentityPoolClient(options) or via "+"new GoogleAuth(options).getClient()")}static fromJSON(e,r){var i;if(e&&e.type===n.EXTERNAL_ACCOUNT_TYPE){if((i=e.credential_source)===null||i===void 0?void 0:i.environment_id){return new a.AwsClient(e,r)}else{return new s.IdentityPoolClient(e,r)}}else{return null}}}r.ExternalAccountClient=ExternalAccountClient},695:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GoogleAuth=r.CLOUD_SDK_CLIENT_ID=void 0;const n=i(2081);const s=i(7147);const a=i(3563);const o=i(2037);const c=i(1017);const l=i(8043);const p=i(2649);const d=i(6875);const h=i(298);const g=i(1380);const v=i(3959);const y=i(8790);const b=i(4381);const E=i(7391);r.CLOUD_SDK_CLIENT_ID="764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com";class GoogleAuth{constructor(e){this.checkIsGCE=undefined;this.jsonContent=null;this.cachedCredential=null;e=e||{};this._cachedProjectId=e.projectId||null;this.keyFilename=e.keyFilename||e.keyFile;this.scopes=e.scopes;this.jsonContent=e.credentials||null;this.clientOptions=e.clientOptions}get isGCE(){return this.checkIsGCE}setGapicJWTValues(e){e.defaultServicePath=this.defaultServicePath;e.useJWTAccessWithScope=this.useJWTAccessWithScope;e.defaultScopes=this.defaultScopes}getProjectId(e){if(e){this.getProjectIdAsync().then((r=>e(null,r)),e)}else{return this.getProjectIdAsync()}}getProjectIdAsync(){if(this._cachedProjectId){return Promise.resolve(this._cachedProjectId)}if(!this._getDefaultProjectIdPromise){this._getDefaultProjectIdPromise=new Promise((async(e,r)=>{try{const r=this.getProductionProjectId()||await this.getFileProjectId()||await this.getDefaultServiceProjectId()||await this.getGCEProjectId()||await this.getExternalAccountClientProjectId();this._cachedProjectId=r;if(!r){throw new Error("Unable to detect a Project Id in the current environment. \n"+"To learn more about authentication and Google APIs, visit: \n"+"https://cloud.google.com/docs/authentication/getting-started")}e(r)}catch(e){r(e)}}))}return this._getDefaultProjectIdPromise}getAnyScopes(){return this.scopes||this.defaultScopes}getApplicationDefault(e={},r){let i;if(typeof e==="function"){r=e}else{i=e}if(r){this.getApplicationDefaultAsync(i).then((e=>r(null,e.credential,e.projectId)),r)}else{return this.getApplicationDefaultAsync(i)}}async getApplicationDefaultAsync(e={}){if(this.cachedCredential){return{credential:this.cachedCredential,projectId:await this.getProjectIdAsync()}}let r;let i;r=await this._tryGetApplicationCredentialsFromEnvironmentVariable(e);if(r){if(r instanceof v.JWT){r.scopes=this.scopes}else if(r instanceof E.BaseExternalAccountClient){r.scopes=this.getAnyScopes()}this.cachedCredential=r;i=await this.getProjectId();return{credential:r,projectId:i}}r=await this._tryGetApplicationCredentialsFromWellKnownFile(e);if(r){if(r instanceof v.JWT){r.scopes=this.scopes}else if(r instanceof E.BaseExternalAccountClient){r.scopes=this.getAnyScopes()}this.cachedCredential=r;i=await this.getProjectId();return{credential:r,projectId:i}}let n;try{n=await this._checkIsGCE()}catch(e){e.message=`Unexpected error determining execution environment: ${e.message}`;throw e}if(!n){throw new Error("Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.")}e.scopes=this.getAnyScopes();this.cachedCredential=new d.Compute(e);i=await this.getProjectId();return{projectId:i,credential:this.cachedCredential}}async _checkIsGCE(){if(this.checkIsGCE===undefined){this.checkIsGCE=await a.isAvailable()}return this.checkIsGCE}async _tryGetApplicationCredentialsFromEnvironmentVariable(e){const r=process.env["GOOGLE_APPLICATION_CREDENTIALS"]||process.env["google_application_credentials"];if(!r||r.length===0){return null}try{return this._getApplicationCredentialsFromFilePath(r,e)}catch(e){e.message=`Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${e.message}`;throw e}}async _tryGetApplicationCredentialsFromWellKnownFile(e){let r=null;if(this._isWindows()){r=process.env["APPDATA"]}else{const e=process.env["HOME"];if(e){r=c.join(e,".config")}}if(r){r=c.join(r,"gcloud","application_default_credentials.json");if(!s.existsSync(r)){r=null}}if(!r){return null}const i=await this._getApplicationCredentialsFromFilePath(r,e);return i}async _getApplicationCredentialsFromFilePath(e,r={}){if(!e||e.length===0){throw new Error("The file path is invalid.")}try{e=s.realpathSync(e);if(!s.lstatSync(e).isFile()){throw new Error}}catch(r){r.message=`The file at ${e} does not exist, or it is not a file. ${r.message}`;throw r}const i=s.createReadStream(e);return this.fromStream(i,r)}fromJSON(e,r){let i;if(!e){throw new Error("Must pass in a JSON object containing the Google auth settings.")}r=r||{};if(e.type==="authorized_user"){i=new y.UserRefreshClient(r);i.fromJSON(e)}else if(e.type===E.EXTERNAL_ACCOUNT_TYPE){i=b.ExternalAccountClient.fromJSON(e,r);i.scopes=this.getAnyScopes()}else{r.scopes=this.scopes;i=new v.JWT(r);this.setGapicJWTValues(i);i.fromJSON(e)}return i}_cacheClientFromJSON(e,r){let i;r=r||{};if(e.type==="authorized_user"){i=new y.UserRefreshClient(r);i.fromJSON(e)}else if(e.type===E.EXTERNAL_ACCOUNT_TYPE){i=b.ExternalAccountClient.fromJSON(e,r);i.scopes=this.getAnyScopes()}else{r.scopes=this.scopes;i=new v.JWT(r);this.setGapicJWTValues(i);i.fromJSON(e)}this.jsonContent=e;this.cachedCredential=i;return this.cachedCredential}fromStream(e,r={},i){let n={};if(typeof r==="function"){i=r}else{n=r}if(i){this.fromStreamAsync(e,n).then((e=>i(null,e)),i)}else{return this.fromStreamAsync(e,n)}}fromStreamAsync(e,r){return new Promise(((i,n)=>{if(!e){throw new Error("Must pass in a stream containing the Google auth settings.")}let s="";e.setEncoding("utf8").on("error",n).on("data",(e=>s+=e)).on("end",(()=>{try{try{const e=JSON.parse(s);const n=this._cacheClientFromJSON(e,r);return i(n)}catch(e){if(!this.keyFilename)throw e;const r=new v.JWT({...this.clientOptions,keyFile:this.keyFilename});this.cachedCredential=r;this.setGapicJWTValues(r);return i(r)}}catch(e){return n(e)}}))}))}fromAPIKey(e,r){r=r||{};const i=new v.JWT(r);i.fromAPIKey(e);return i}_isWindows(){const e=o.platform();if(e&&e.length>=3){if(e.substring(0,3).toLowerCase()==="win"){return true}}return false}async getDefaultServiceProjectId(){return new Promise((e=>{n.exec("gcloud config config-helper --format json",((r,i)=>{if(!r&&i){try{const r=JSON.parse(i).configuration.properties.core.project;e(r);return}catch(e){}}e(null)}))}))}getProductionProjectId(){return process.env["GCLOUD_PROJECT"]||process.env["GOOGLE_CLOUD_PROJECT"]||process.env["gcloud_project"]||process.env["google_cloud_project"]}async getFileProjectId(){if(this.cachedCredential){return this.cachedCredential.projectId}if(this.keyFilename){const e=await this.getClient();if(e&&e.projectId){return e.projectId}}const e=await this._tryGetApplicationCredentialsFromEnvironmentVariable();if(e){return e.projectId}else{return null}}async getExternalAccountClientProjectId(){if(!this.jsonContent||this.jsonContent.type!==E.EXTERNAL_ACCOUNT_TYPE){return null}const e=await this.getClient();return await e.getProjectId()}async getGCEProjectId(){try{const e=await a.project("project-id");return e}catch(e){return null}}getCredentials(e){if(e){this.getCredentialsAsync().then((r=>e(null,r)),e)}else{return this.getCredentialsAsync()}}async getCredentialsAsync(){await this.getClient();if(this.jsonContent){const e={client_email:this.jsonContent.client_email,private_key:this.jsonContent.private_key};return e}const e=await this._checkIsGCE();if(!e){throw new Error("Unknown error.")}const r=await a.instance({property:"service-accounts/",params:{recursive:"true"}});if(!r||!r.default||!r.default.email){throw new Error("Failure from metadata server.")}return{client_email:r.default.email}}async getClient(e){if(e){throw new Error("Passing options to getClient is forbidden in v5.0.0. Use new GoogleAuth(opts) instead.")}if(!this.cachedCredential){if(this.jsonContent){this._cacheClientFromJSON(this.jsonContent,this.clientOptions)}else if(this.keyFilename){const e=c.resolve(this.keyFilename);const r=s.createReadStream(e);await this.fromStreamAsync(r,this.clientOptions)}else{await this.getApplicationDefaultAsync(this.clientOptions)}}return this.cachedCredential}async getIdTokenClient(e){const r=await this.getClient();if(!("fetchIdToken"in r)){throw new Error("Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.")}return new h.IdTokenClient({targetAudience:e,idTokenProvider:r})}async getAccessToken(){const e=await this.getClient();return(await e.getAccessToken()).token}async getRequestHeaders(e){const r=await this.getClient();return r.getRequestHeaders(e)}async authorizeRequest(e){e=e||{};const r=e.url||e.uri;const i=await this.getClient();const n=await i.getRequestHeaders(r);e.headers=Object.assign(e.headers||{},n);return e}async request(e){const r=await this.getClient();return r.request(e)}getEnv(){return g.getEnv()}async sign(e){const r=await this.getClient();const i=l.createCrypto();if(r instanceof v.JWT&&r.key){const n=await i.sign(r.key,e);return n}if(r instanceof E.BaseExternalAccountClient&&r.getServiceAccountEmail()){return this.signBlob(i,r.getServiceAccountEmail(),e)}const n=await this.getProjectId();if(!n){throw new Error("Cannot sign data without a project ID.")}const s=await this.getCredentials();if(!s.client_email){throw new Error("Cannot sign data without `client_email`.")}return this.signBlob(i,s.client_email,e)}async signBlob(e,r,i){const n="https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/"+`${r}:signBlob`;const s=await this.request({method:"POST",url:n,data:{payload:e.encodeBase64StringUtf8(i)}});return s.data.signedBlob}}r.GoogleAuth=GoogleAuth;GoogleAuth.DefaultTransporter=p.DefaultTransporter},9735:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.IAMAuth=void 0;class IAMAuth{constructor(e,r){this.selector=e;this.token=r;this.selector=e;this.token=r}getRequestHeaders(){return{"x-goog-iam-authority-selector":this.selector,"x-goog-iam-authorization-token":this.token}}}r.IAMAuth=IAMAuth},117:(e,r,i)=>{"use strict";var n,s,a;Object.defineProperty(r,"__esModule",{value:true});r.IdentityPoolClient=void 0;const o=i(7147);const c=i(3837);const l=i(7391);const p=c.promisify((n=o.readFile)!==null&&n!==void 0?n:()=>{});const d=c.promisify((s=o.realpath)!==null&&s!==void 0?s:()=>{});const h=c.promisify((a=o.lstat)!==null&&a!==void 0?a:()=>{});class IdentityPoolClient extends l.BaseExternalAccountClient{constructor(e,r){var i,n;super(e,r);this.file=e.credential_source.file;this.url=e.credential_source.url;this.headers=e.credential_source.headers;if(!this.file&&!this.url){throw new Error('No valid Identity Pool "credential_source" provided')}this.formatType=((i=e.credential_source.format)===null||i===void 0?void 0:i.type)||"text";this.formatSubjectTokenFieldName=(n=e.credential_source.format)===null||n===void 0?void 0:n.subject_token_field_name;if(this.formatType!=="json"&&this.formatType!=="text"){throw new Error(`Invalid credential_source format "${this.formatType}"`)}if(this.formatType==="json"&&!this.formatSubjectTokenFieldName){throw new Error("Missing subject_token_field_name for JSON credential_source format")}}async retrieveSubjectToken(){if(this.file){return await this.getTokenFromFile(this.file,this.formatType,this.formatSubjectTokenFieldName)}return await this.getTokenFromUrl(this.url,this.formatType,this.formatSubjectTokenFieldName,this.headers)}async getTokenFromFile(e,r,i){try{e=await d(e);if(!(await h(e)).isFile()){throw new Error}}catch(r){r.message=`The file at ${e} does not exist, or it is not a file. ${r.message}`;throw r}let n;const s=await p(e,{encoding:"utf8"});if(r==="text"){n=s}else if(r==="json"&&i){const e=JSON.parse(s);n=e[i]}if(!n){throw new Error("Unable to parse the subject_token from the credential_source file")}return n}async getTokenFromUrl(e,r,i,n){const s={url:e,method:"GET",headers:n,responseType:r};let a;if(r==="text"){const e=await this.transporter.request(s);a=e.data}else if(r==="json"&&i){const e=await this.transporter.request(s);a=e.data[i]}if(!a){throw new Error("Unable to parse the subject_token from the credential_source URL")}return a}}r.IdentityPoolClient=IdentityPoolClient},298:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.IdTokenClient=void 0;const n=i(3936);class IdTokenClient extends n.OAuth2Client{constructor(e){super();this.targetAudience=e.targetAudience;this.idTokenProvider=e.idTokenProvider}async getRequestMetadataAsync(e){if(!this.credentials.id_token||(this.credentials.expiry_date||0){"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Impersonated=void 0;const n=i(3936);class Impersonated extends n.OAuth2Client{constructor(e={}){var r,i,s,a,o,c;super(e);this.credentials={expiry_date:1,refresh_token:"impersonated-placeholder"};this.sourceClient=(r=e.sourceClient)!==null&&r!==void 0?r:new n.OAuth2Client;this.targetPrincipal=(i=e.targetPrincipal)!==null&&i!==void 0?i:"";this.delegates=(s=e.delegates)!==null&&s!==void 0?s:[];this.targetScopes=(a=e.targetScopes)!==null&&a!==void 0?a:[];this.lifetime=(o=e.lifetime)!==null&&o!==void 0?o:3600;this.endpoint=(c=e.endpoint)!==null&&c!==void 0?c:"https://iamcredentials.googleapis.com"}async refreshToken(e){var r,i,n,s,a,o;try{await this.sourceClient.getAccessToken();const e="projects/-/serviceAccounts/"+this.targetPrincipal;const r=`${this.endpoint}/v1/${e}:generateAccessToken`;const i={delegates:this.delegates,scope:this.targetScopes,lifetime:this.lifetime+"s"};const n=await this.sourceClient.request({url:r,data:i,method:"POST"});const s=n.data;this.credentials.access_token=s.accessToken;this.credentials.expiry_date=Date.parse(s.expireTime);return{tokens:this.credentials,res:n}}catch(e){const c=(n=(i=(r=e===null||e===void 0?void 0:e.response)===null||r===void 0?void 0:r.data)===null||i===void 0?void 0:i.error)===null||n===void 0?void 0:n.status;const l=(o=(a=(s=e===null||e===void 0?void 0:e.response)===null||s===void 0?void 0:s.data)===null||a===void 0?void 0:a.error)===null||o===void 0?void 0:o.message;if(c&&l){e.message=`${c}: unable to impersonate: ${l}`;throw e}else{e.message=`unable to impersonate: ${e}`;throw e}}}}r.Impersonated=Impersonated},8740:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.JWTAccess=void 0;const n=i(4636);const s=i(7129);const a={alg:"RS256",typ:"JWT"};class JWTAccess{constructor(e,r,i,n){this.cache=new s({max:500,maxAge:60*60*1e3});this.email=e;this.key=r;this.keyId=i;this.eagerRefreshThresholdMillis=n!==null&&n!==void 0?n:5*60*1e3}getCachedKey(e,r){let i=e;if(r&&Array.isArray(r)&&r.length){i=e?`${e}_${r.join("_")}`:`${r.join("_")}`}else if(typeof r==="string"){i=e?`${e}_${r}`:r}if(!i){throw Error("Scopes or url must be provided")}return i}getRequestHeaders(e,r,i){const s=this.getCachedKey(e,i);const o=this.cache.get(s);const c=Date.now();if(o&&o.expiration-c>this.eagerRefreshThresholdMillis){return o.headers}const l=Math.floor(Date.now()/1e3);const p=JWTAccess.getExpirationTime(l);let d;if(Array.isArray(i)){i=i.join(" ")}if(i){d={iss:this.email,sub:this.email,scope:i,exp:p,iat:l}}else{d={iss:this.email,sub:this.email,aud:e,exp:p,iat:l}}if(r){for(const e in d){if(r[e]){throw new Error(`The '${e}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`)}}}const h=this.keyId?{...a,kid:this.keyId}:a;const g=Object.assign(d,r);const v=n.sign({header:h,payload:g,secret:this.key});const y={Authorization:`Bearer ${v}`};this.cache.set(s,{expiration:p*1e3,headers:y});return y}static getExpirationTime(e){const r=e+3600;return r}fromJSON(e){if(!e){throw new Error("Must pass in a JSON object containing the service account auth settings.")}if(!e.client_email){throw new Error("The incoming JSON object does not contain a client_email field")}if(!e.private_key){throw new Error("The incoming JSON object does not contain a private_key field")}this.email=e.client_email;this.key=e.private_key;this.keyId=e.private_key_id;this.projectId=e.project_id}fromStream(e,r){if(r){this.fromStreamAsync(e).then((()=>r()),r)}else{return this.fromStreamAsync(e)}}fromStreamAsync(e){return new Promise(((r,i)=>{if(!e){i(new Error("Must pass in a stream containing the service account auth settings."))}let n="";e.setEncoding("utf8").on("data",(e=>n+=e)).on("error",i).on("end",(()=>{try{const e=JSON.parse(n);this.fromJSON(e);r()}catch(e){i(e)}}))}))}}r.JWTAccess=JWTAccess},3959:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.JWT=void 0;const n=i(6031);const s=i(8740);const a=i(3936);class JWT extends a.OAuth2Client{constructor(e,r,i,n,s,a){const o=e&&typeof e==="object"?e:{email:e,keyFile:r,key:i,keyId:a,scopes:n,subject:s};super({eagerRefreshThresholdMillis:o.eagerRefreshThresholdMillis,forceRefreshOnFailure:o.forceRefreshOnFailure});this.email=o.email;this.keyFile=o.keyFile;this.key=o.key;this.keyId=o.keyId;this.scopes=o.scopes;this.subject=o.subject;this.additionalClaims=o.additionalClaims;this.credentials={refresh_token:"jwt-placeholder",expiry_date:1}}createScoped(e){return new JWT({email:this.email,keyFile:this.keyFile,key:this.key,keyId:this.keyId,scopes:e,subject:this.subject,additionalClaims:this.additionalClaims})}async getRequestMetadataAsync(e){e=this.defaultServicePath?`https://${this.defaultServicePath}/`:e;const r=!this.hasUserScopes()&&e||this.useJWTAccessWithScope&&this.hasAnyScopes();if(!this.apiKey&&r){if(this.additionalClaims&&this.additionalClaims.target_audience){const{tokens:e}=await this.refreshToken();return{headers:this.addSharedMetadataHeaders({Authorization:`Bearer ${e.id_token}`})}}else{if(!this.access){this.access=new s.JWTAccess(this.email,this.key,this.keyId,this.eagerRefreshThresholdMillis)}let r;if(this.hasUserScopes()){r=this.scopes}else if(!e){r=this.defaultScopes}const i=await this.access.getRequestHeaders(e!==null&&e!==void 0?e:undefined,this.additionalClaims,this.useJWTAccessWithScope?r:undefined);return{headers:this.addSharedMetadataHeaders(i)}}}else if(this.hasAnyScopes()||this.apiKey){return super.getRequestMetadataAsync(e)}else{return{headers:{}}}}async fetchIdToken(e){const r=new n.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes||this.defaultScopes,keyFile:this.keyFile,key:this.key,additionalClaims:{target_audience:e}});await r.getToken({forceRefresh:true});if(!r.idToken){throw new Error("Unknown error: Failed to fetch ID token")}return r.idToken}hasUserScopes(){if(!this.scopes){return false}return this.scopes.length>0}hasAnyScopes(){if(this.scopes&&this.scopes.length>0)return true;if(this.defaultScopes&&this.defaultScopes.length>0)return true;return false}authorize(e){if(e){this.authorizeAsync().then((r=>e(null,r)),e)}else{return this.authorizeAsync()}}async authorizeAsync(){const e=await this.refreshToken();if(!e){throw new Error("No result returned")}this.credentials=e.tokens;this.credentials.refresh_token="jwt-placeholder";this.key=this.gtoken.key;this.email=this.gtoken.iss;return e.tokens}async refreshTokenNoCache(e){const r=this.createGToken();const i=await r.getToken({forceRefresh:this.isTokenExpiring()});const n={access_token:i.access_token,token_type:"Bearer",expiry_date:r.expiresAt,id_token:r.idToken};this.emit("tokens",n);return{res:null,tokens:n}}createGToken(){if(!this.gtoken){this.gtoken=new n.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes||this.defaultScopes,keyFile:this.keyFile,key:this.key,additionalClaims:this.additionalClaims})}return this.gtoken}fromJSON(e){if(!e){throw new Error("Must pass in a JSON object containing the service account auth settings.")}if(!e.client_email){throw new Error("The incoming JSON object does not contain a client_email field")}if(!e.private_key){throw new Error("The incoming JSON object does not contain a private_key field")}this.email=e.client_email;this.key=e.private_key;this.keyId=e.private_key_id;this.projectId=e.project_id;this.quotaProjectId=e.quota_project_id}fromStream(e,r){if(r){this.fromStreamAsync(e).then((()=>r()),r)}else{return this.fromStreamAsync(e)}}fromStreamAsync(e){return new Promise(((r,i)=>{if(!e){throw new Error("Must pass in a stream containing the service account auth settings.")}let n="";e.setEncoding("utf8").on("error",i).on("data",(e=>n+=e)).on("end",(()=>{try{const e=JSON.parse(n);this.fromJSON(e);r()}catch(e){i(e)}}))}))}fromAPIKey(e){if(typeof e!=="string"){throw new Error("Must provide an API Key string.")}this.apiKey=e}async getCredentials(){if(this.key){return{private_key:this.key,client_email:this.email}}else if(this.keyFile){const e=this.createGToken();const r=await e.getCredentials(this.keyFile);return{private_key:r.privateKey,client_email:r.clientEmail}}throw new Error("A key or a keyFile must be provided to getCredentials.")}}r.JWT=JWT},4524:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.LoginTicket=void 0;class LoginTicket{constructor(e,r){this.envelope=e;this.payload=r}getEnvelope(){return this.envelope}getPayload(){return this.payload}getUserId(){const e=this.getPayload();if(e&&e.sub){return e.sub}return null}getAttributes(){return{envelope:this.getEnvelope(),payload:this.getPayload()}}}r.LoginTicket=LoginTicket},3936:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.OAuth2Client=r.CertificateFormat=r.CodeChallengeMethod=void 0;const n=i(3477);const s=i(2781);const a=i(1728);const o=i(8043);const c=i(4627);const l=i(4524);var p;(function(e){e["Plain"]="plain";e["S256"]="S256"})(p=r.CodeChallengeMethod||(r.CodeChallengeMethod={}));var d;(function(e){e["PEM"]="PEM";e["JWK"]="JWK"})(d=r.CertificateFormat||(r.CertificateFormat={}));class OAuth2Client extends c.AuthClient{constructor(e,r,i){super();this.certificateCache={};this.certificateExpiry=null;this.certificateCacheFormat=d.PEM;this.refreshTokenPromises=new Map;const n=e&&typeof e==="object"?e:{clientId:e,clientSecret:r,redirectUri:i};this._clientId=n.clientId;this._clientSecret=n.clientSecret;this.redirectUri=n.redirectUri;this.eagerRefreshThresholdMillis=n.eagerRefreshThresholdMillis||5*60*1e3;this.forceRefreshOnFailure=!!n.forceRefreshOnFailure}generateAuthUrl(e={}){if(e.code_challenge_method&&!e.code_challenge){throw new Error("If a code_challenge_method is provided, code_challenge must be included.")}e.response_type=e.response_type||"code";e.client_id=e.client_id||this._clientId;e.redirect_uri=e.redirect_uri||this.redirectUri;if(e.scope instanceof Array){e.scope=e.scope.join(" ")}const r=OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_;return r+"?"+n.stringify(e)}generateCodeVerifier(){throw new Error("generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.")}async generateCodeVerifierAsync(){const e=o.createCrypto();const r=e.randomBytesBase64(96);const i=r.replace(/\+/g,"~").replace(/=/g,"_").replace(/\//g,"-");const n=await e.sha256DigestBase64(i);const s=n.split("=")[0].replace(/\+/g,"-").replace(/\//g,"_");return{codeVerifier:i,codeChallenge:s}}getToken(e,r){const i=typeof e==="string"?{code:e}:e;if(r){this.getTokenAsync(i).then((e=>r(null,e.tokens,e.res)),(e=>r(e,null,e.response)))}else{return this.getTokenAsync(i)}}async getTokenAsync(e){const r=OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_;const i={code:e.code,client_id:e.client_id||this._clientId,client_secret:this._clientSecret,redirect_uri:e.redirect_uri||this.redirectUri,grant_type:"authorization_code",code_verifier:e.codeVerifier};const s=await this.transporter.request({method:"POST",url:r,data:n.stringify(i),headers:{"Content-Type":"application/x-www-form-urlencoded"}});const a=s.data;if(s.data&&s.data.expires_in){a.expiry_date=(new Date).getTime()+s.data.expires_in*1e3;delete a.expires_in}this.emit("tokens",a);return{tokens:a,res:s}}async refreshToken(e){if(!e){return this.refreshTokenNoCache(e)}if(this.refreshTokenPromises.has(e)){return this.refreshTokenPromises.get(e)}const r=this.refreshTokenNoCache(e).then((r=>{this.refreshTokenPromises.delete(e);return r}),(r=>{this.refreshTokenPromises.delete(e);throw r}));this.refreshTokenPromises.set(e,r);return r}async refreshTokenNoCache(e){if(!e){throw new Error("No refresh token is set.")}const r=OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_;const i={refresh_token:e,client_id:this._clientId,client_secret:this._clientSecret,grant_type:"refresh_token"};const s=await this.transporter.request({method:"POST",url:r,data:n.stringify(i),headers:{"Content-Type":"application/x-www-form-urlencoded"}});const a=s.data;if(s.data&&s.data.expires_in){a.expiry_date=(new Date).getTime()+s.data.expires_in*1e3;delete a.expires_in}this.emit("tokens",a);return{tokens:a,res:s}}refreshAccessToken(e){if(e){this.refreshAccessTokenAsync().then((r=>e(null,r.credentials,r.res)),e)}else{return this.refreshAccessTokenAsync()}}async refreshAccessTokenAsync(){const e=await this.refreshToken(this.credentials.refresh_token);const r=e.tokens;r.refresh_token=this.credentials.refresh_token;this.credentials=r;return{credentials:this.credentials,res:e.res}}getAccessToken(e){if(e){this.getAccessTokenAsync().then((r=>e(null,r.token,r.res)),e)}else{return this.getAccessTokenAsync()}}async getAccessTokenAsync(){const e=!this.credentials.access_token||this.isTokenExpiring();if(e){if(!this.credentials.refresh_token){if(this.refreshHandler){const e=await this.processAndValidateRefreshHandler();if(e===null||e===void 0?void 0:e.access_token){this.setCredentials(e);return{token:this.credentials.access_token}}}else{throw new Error("No refresh token or refresh handler callback is set.")}}const e=await this.refreshAccessTokenAsync();if(!e.credentials||e.credentials&&!e.credentials.access_token){throw new Error("Could not refresh access token.")}return{token:e.credentials.access_token,res:e.res}}else{return{token:this.credentials.access_token}}}async getRequestHeaders(e){const r=(await this.getRequestMetadataAsync(e)).headers;return r}async getRequestMetadataAsync(e){const r=this.credentials;if(!r.access_token&&!r.refresh_token&&!this.apiKey&&!this.refreshHandler){throw new Error("No access, refresh token, API key or refresh handler callback is set.")}if(r.access_token&&!this.isTokenExpiring()){r.token_type=r.token_type||"Bearer";const e={Authorization:r.token_type+" "+r.access_token};return{headers:this.addSharedMetadataHeaders(e)}}if(this.refreshHandler){const e=await this.processAndValidateRefreshHandler();if(e===null||e===void 0?void 0:e.access_token){this.setCredentials(e);const r={Authorization:"Bearer "+this.credentials.access_token};return{headers:this.addSharedMetadataHeaders(r)}}}if(this.apiKey){return{headers:{"X-Goog-Api-Key":this.apiKey}}}let i=null;let n=null;try{i=await this.refreshToken(r.refresh_token);n=i.tokens}catch(e){const r=e;if(r.response&&(r.response.status===403||r.response.status===404)){r.message=`Could not refresh access token: ${r.message}`}throw r}const s=this.credentials;s.token_type=s.token_type||"Bearer";n.refresh_token=s.refresh_token;this.credentials=n;const a={Authorization:s.token_type+" "+n.access_token};return{headers:this.addSharedMetadataHeaders(a),res:i.res}}static getRevokeTokenUrl(e){const r=n.stringify({token:e});return`${OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_}?${r}`}revokeToken(e,r){const i={url:OAuth2Client.getRevokeTokenUrl(e),method:"POST"};if(r){this.transporter.request(i).then((e=>r(null,e)),r)}else{return this.transporter.request(i)}}revokeCredentials(e){if(e){this.revokeCredentialsAsync().then((r=>e(null,r)),e)}else{return this.revokeCredentialsAsync()}}async revokeCredentialsAsync(){const e=this.credentials.access_token;this.credentials={};if(e){return this.revokeToken(e)}else{throw new Error("No access token to revoke.")}}request(e,r){if(r){this.requestAsync(e).then((e=>r(null,e)),(e=>r(e,e.response)))}else{return this.requestAsync(e)}}async requestAsync(e,r=false){let i;try{const r=await this.getRequestMetadataAsync(e.url);e.headers=e.headers||{};if(r.headers&&r.headers["x-goog-user-project"]){e.headers["x-goog-user-project"]=r.headers["x-goog-user-project"]}if(r.headers&&r.headers.Authorization){e.headers.Authorization=r.headers.Authorization}if(this.apiKey){e.headers["X-Goog-Api-Key"]=this.apiKey}i=await this.transporter.request(e)}catch(i){const n=i.response;if(n){const i=n.status;const a=this.credentials&&this.credentials.access_token&&this.credentials.refresh_token&&(!this.credentials.expiry_date||this.forceRefreshOnFailure);const o=this.credentials&&this.credentials.access_token&&!this.credentials.refresh_token&&(!this.credentials.expiry_date||this.forceRefreshOnFailure)&&this.refreshHandler;const c=n.config.data instanceof s.Readable;const l=i===401||i===403;if(!r&&l&&!c&&a){await this.refreshAccessTokenAsync();return this.requestAsync(e,true)}else if(!r&&l&&!c&&o){const r=await this.processAndValidateRefreshHandler();if(r===null||r===void 0?void 0:r.access_token){this.setCredentials(r)}return this.requestAsync(e,true)}}throw i}return i}verifyIdToken(e,r){if(r&&typeof r!=="function"){throw new Error("This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.")}if(r){this.verifyIdTokenAsync(e).then((e=>r(null,e)),r)}else{return this.verifyIdTokenAsync(e)}}async verifyIdTokenAsync(e){if(!e.idToken){throw new Error("The verifyIdToken method requires an ID Token")}const r=await this.getFederatedSignonCertsAsync();const i=await this.verifySignedJwtWithCertsAsync(e.idToken,r.certs,e.audience,OAuth2Client.ISSUERS_,e.maxExpiry);return i}async getTokenInfo(e){const{data:r}=await this.transporter.request({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:`Bearer ${e}`},url:OAuth2Client.GOOGLE_TOKEN_INFO_URL});const i=Object.assign({expiry_date:(new Date).getTime()+r.expires_in*1e3,scopes:r.scope.split(" ")},r);delete i.expires_in;delete i.scope;return i}getFederatedSignonCerts(e){if(e){this.getFederatedSignonCertsAsync().then((r=>e(null,r.certs,r.res)),e)}else{return this.getFederatedSignonCertsAsync()}}async getFederatedSignonCertsAsync(){const e=(new Date).getTime();const r=o.hasBrowserCrypto()?d.JWK:d.PEM;if(this.certificateExpiry&&ee(null,r.pubkeys,r.res)),e)}else{return this.getIapPublicKeysAsync()}}async getIapPublicKeysAsync(){let e;const r=OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_;try{e=await this.transporter.request({url:r})}catch(e){e.message=`Failed to retrieve verification certificates: ${e.message}`;throw e}return{pubkeys:e.data,res:e}}verifySignedJwtWithCerts(){throw new Error("verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.")}async verifySignedJwtWithCertsAsync(e,r,i,n,s){const c=o.createCrypto();if(!s){s=OAuth2Client.MAX_TOKEN_LIFETIME_SECS_}const p=e.split(".");if(p.length!==3){throw new Error("Wrong number of segments in token: "+e)}const d=p[0]+"."+p[1];let h=p[2];let g;let v;try{g=JSON.parse(c.decodeBase64StringUtf8(p[0]))}catch(e){e.message=`Can't parse token envelope: ${p[0]}': ${e.message}`;throw e}if(!g){throw new Error("Can't parse token envelope: "+p[0])}try{v=JSON.parse(c.decodeBase64StringUtf8(p[1]))}catch(e){e.message=`Can't parse token payload '${p[0]}`;throw e}if(!v){throw new Error("Can't parse token payload: "+p[1])}if(!Object.prototype.hasOwnProperty.call(r,g.kid)){throw new Error("No pem found for envelope: "+JSON.stringify(g))}const y=r[g.kid];if(g.alg==="ES256"){h=a.joseToDer(h,"ES256").toString("base64")}const b=await c.verify(y,d,h);if(!b){throw new Error("Invalid token signature: "+e)}if(!v.iat){throw new Error("No issue time in token: "+JSON.stringify(v))}if(!v.exp){throw new Error("No expiration time in token: "+JSON.stringify(v))}const E=Number(v.iat);if(isNaN(E))throw new Error("iat field using invalid format");const x=Number(v.exp);if(isNaN(x))throw new Error("exp field using invalid format");const w=(new Date).getTime()/1e3;if(x>=w+s){throw new Error("Expiration time too far in future: "+JSON.stringify(v))}const T=E-OAuth2Client.CLOCK_SKEW_SECS_;const _=x+OAuth2Client.CLOCK_SKEW_SECS_;if(w_){throw new Error("Token used too late, "+w+" > "+_+": "+JSON.stringify(v))}if(n&&n.indexOf(v.iss)<0){throw new Error("Invalid issuer, expected one of ["+n+"], but got "+v.iss)}if(typeof i!=="undefined"&&i!==null){const e=v.aud;let r=false;if(i.constructor===Array){r=i.indexOf(e)>-1}else{r=e===i}if(!r){throw new Error("Wrong recipient, payload audience != requiredAudience")}}return new l.LoginTicket(g,v)}async processAndValidateRefreshHandler(){if(this.refreshHandler){const e=await this.refreshHandler();if(!e.access_token){throw new Error("No access token is returned by the refreshHandler callback.")}return e}return}isTokenExpiring(){const e=this.credentials.expiry_date;return e?e<=(new Date).getTime()+this.eagerRefreshThresholdMillis:false}}r.OAuth2Client=OAuth2Client;OAuth2Client.GOOGLE_TOKEN_INFO_URL="https://oauth2.googleapis.com/tokeninfo";OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_="https://accounts.google.com/o/oauth2/v2/auth";OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_="https://oauth2.googleapis.com/token";OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_="https://oauth2.googleapis.com/revoke";OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_="https://www.googleapis.com/oauth2/v1/certs";OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_="https://www.googleapis.com/oauth2/v3/certs";OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_="https://www.gstatic.com/iap/verify/public_key";OAuth2Client.CLOCK_SKEW_SECS_=300;OAuth2Client.MAX_TOKEN_LIFETIME_SECS_=86400;OAuth2Client.ISSUERS_=["accounts.google.com","https://accounts.google.com"]},9510:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getErrorFromOAuthErrorResponse=r.OAuthClientAuthHandler=void 0;const n=i(3477);const s=i(8043);const a=["PUT","POST","PATCH"];class OAuthClientAuthHandler{constructor(e){this.clientAuthentication=e;this.crypto=s.createCrypto()}applyClientAuthenticationOptions(e,r){this.injectAuthenticatedHeaders(e,r);if(!r){this.injectAuthenticatedRequestBody(e)}}injectAuthenticatedHeaders(e,r){var i;if(r){e.headers=e.headers||{};Object.assign(e.headers,{Authorization:`Bearer ${r}}`})}else if(((i=this.clientAuthentication)===null||i===void 0?void 0:i.confidentialClientType)==="basic"){e.headers=e.headers||{};const r=this.clientAuthentication.clientId;const i=this.clientAuthentication.clientSecret||"";const n=this.crypto.encodeBase64StringUtf8(`${r}:${i}`);Object.assign(e.headers,{Authorization:`Basic ${n}`})}}injectAuthenticatedRequestBody(e){var r;if(((r=this.clientAuthentication)===null||r===void 0?void 0:r.confidentialClientType)==="request-body"){const r=(e.method||"GET").toUpperCase();if(a.indexOf(r)!==-1){let r;const i=e.headers||{};for(const e in i){if(e.toLowerCase()==="content-type"&&i[e]){r=i[e].toLowerCase();break}}if(r==="application/x-www-form-urlencoded"){e.data=e.data||"";const r=n.parse(e.data);Object.assign(r,{client_id:this.clientAuthentication.clientId,client_secret:this.clientAuthentication.clientSecret||""});e.data=n.stringify(r)}else if(r==="application/json"){e.data=e.data||{};Object.assign(e.data,{client_id:this.clientAuthentication.clientId,client_secret:this.clientAuthentication.clientSecret||""})}else{throw new Error(`${r} content-types are not supported with `+`${this.clientAuthentication.confidentialClientType} `+"client authentication")}}else{throw new Error(`${r} HTTP method does not support `+`${this.clientAuthentication.confidentialClientType} `+"client authentication")}}}}r.OAuthClientAuthHandler=OAuthClientAuthHandler;function getErrorFromOAuthErrorResponse(e,r){const i=e.error;const n=e.error_description;const s=e.error_uri;let a=`Error code ${i}`;if(typeof n!=="undefined"){a+=`: ${n}`}if(typeof s!=="undefined"){a+=` - ${s}`}const o=new Error(a);if(r){const e=Object.keys(r);if(r.stack){e.push("stack")}e.forEach((e=>{if(e!=="message"){Object.defineProperty(o,e,{value:r[e],writable:false,enumerable:true})}}))}return o}r.getErrorFromOAuthErrorResponse=getErrorFromOAuthErrorResponse},8790:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.UserRefreshClient=void 0;const n=i(3936);class UserRefreshClient extends n.OAuth2Client{constructor(e,r,i,n,s){const a=e&&typeof e==="object"?e:{clientId:e,clientSecret:r,refreshToken:i,eagerRefreshThresholdMillis:n,forceRefreshOnFailure:s};super({clientId:a.clientId,clientSecret:a.clientSecret,eagerRefreshThresholdMillis:a.eagerRefreshThresholdMillis,forceRefreshOnFailure:a.forceRefreshOnFailure});this._refreshToken=a.refreshToken;this.credentials.refresh_token=a.refreshToken}async refreshTokenNoCache(e){return super.refreshTokenNoCache(this._refreshToken)}fromJSON(e){if(!e){throw new Error("Must pass in a JSON object containing the user refresh token")}if(e.type!=="authorized_user"){throw new Error('The incoming JSON object does not have the "authorized_user" type')}if(!e.client_id){throw new Error("The incoming JSON object does not contain a client_id field")}if(!e.client_secret){throw new Error("The incoming JSON object does not contain a client_secret field")}if(!e.refresh_token){throw new Error("The incoming JSON object does not contain a refresh_token field")}this._clientId=e.client_id;this._clientSecret=e.client_secret;this._refreshToken=e.refresh_token;this.credentials.refresh_token=e.refresh_token;this.quotaProjectId=e.quota_project_id}fromStream(e,r){if(r){this.fromStreamAsync(e).then((()=>r()),r)}else{return this.fromStreamAsync(e)}}async fromStreamAsync(e){return new Promise(((r,i)=>{if(!e){return i(new Error("Must pass in a stream containing the user refresh token."))}let n="";e.setEncoding("utf8").on("error",i).on("data",(e=>n+=e)).on("end",(()=>{try{const e=JSON.parse(n);this.fromJSON(e);return r()}catch(e){return i(e)}}))}))}}r.UserRefreshClient=UserRefreshClient},6308:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.StsCredentials=void 0;const n=i(3477);const s=i(2649);const a=i(9510);class StsCredentials extends a.OAuthClientAuthHandler{constructor(e,r){super(r);this.tokenExchangeEndpoint=e;this.transporter=new s.DefaultTransporter}async exchangeToken(e,r,i){var s,o,c;const l={grant_type:e.grantType,resource:e.resource,audience:e.audience,scope:(s=e.scope)===null||s===void 0?void 0:s.join(" "),requested_token_type:e.requestedTokenType,subject_token:e.subjectToken,subject_token_type:e.subjectTokenType,actor_token:(o=e.actingParty)===null||o===void 0?void 0:o.actorToken,actor_token_type:(c=e.actingParty)===null||c===void 0?void 0:c.actorTokenType,options:i&&JSON.stringify(i)};Object.keys(l).forEach((e=>{if(typeof l[e]==="undefined"){delete l[e]}}));const p={"Content-Type":"application/x-www-form-urlencoded"};Object.assign(p,r||{});const d={url:this.tokenExchangeEndpoint,method:"POST",headers:p,data:n.stringify(l),responseType:"json"};this.applyClientAuthenticationOptions(d);try{const e=await this.transporter.request(d);const r=e.data;r.res=e;return r}catch(e){if(e.response){throw a.getErrorFromOAuthErrorResponse(e.response.data,e)}throw e}}}r.StsCredentials=StsCredentials},4693:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.BrowserCrypto=void 0;const n=i(6463);if(typeof process==="undefined"&&typeof TextEncoder==="undefined"){i(1917)}const s=i(8043);class BrowserCrypto{constructor(){if(typeof window==="undefined"||window.crypto===undefined||window.crypto.subtle===undefined){throw new Error("SubtleCrypto not found. Make sure it's an https:// website.")}}async sha256DigestBase64(e){const r=(new TextEncoder).encode(e);const i=await window.crypto.subtle.digest("SHA-256",r);return n.fromByteArray(new Uint8Array(i))}randomBytesBase64(e){const r=new Uint8Array(e);window.crypto.getRandomValues(r);return n.fromByteArray(r)}static padBase64(e){while(e.length%4!==0){e+="="}return e}async verify(e,r,i){const s={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};const a=(new TextEncoder).encode(r);const o=n.toByteArray(BrowserCrypto.padBase64(i));const c=await window.crypto.subtle.importKey("jwk",e,s,true,["verify"]);const l=await window.crypto.subtle.verify(s,c,o,a);return l}async sign(e,r){const i={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};const s=(new TextEncoder).encode(r);const a=await window.crypto.subtle.importKey("jwk",e,i,true,["sign"]);const o=await window.crypto.subtle.sign(i,a,s);return n.fromByteArray(new Uint8Array(o))}decodeBase64StringUtf8(e){const r=n.toByteArray(BrowserCrypto.padBase64(e));const i=(new TextDecoder).decode(r);return i}encodeBase64StringUtf8(e){const r=(new TextEncoder).encode(e);const i=n.fromByteArray(r);return i}async sha256DigestHex(e){const r=(new TextEncoder).encode(e);const i=await window.crypto.subtle.digest("SHA-256",r);return s.fromArrayBufferToHex(i)}async signWithHmacSha256(e,r){const i=typeof e==="string"?e:String.fromCharCode(...new Uint16Array(e));const n=new TextEncoder;const s=await window.crypto.subtle.importKey("raw",n.encode(i),{name:"HMAC",hash:{name:"SHA-256"}},false,["sign"]);return window.crypto.subtle.sign("HMAC",s,n.encode(r))}}r.BrowserCrypto=BrowserCrypto},8043:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fromArrayBufferToHex=r.hasBrowserCrypto=r.createCrypto=void 0;const n=i(4693);const s=i(757);function createCrypto(){if(hasBrowserCrypto()){return new n.BrowserCrypto}return new s.NodeCrypto}r.createCrypto=createCrypto;function hasBrowserCrypto(){return typeof window!=="undefined"&&typeof window.crypto!=="undefined"&&typeof window.crypto.subtle!=="undefined"}r.hasBrowserCrypto=hasBrowserCrypto;function fromArrayBufferToHex(e){const r=Array.from(new Uint8Array(e));return r.map((e=>e.toString(16).padStart(2,"0"))).join("")}r.fromArrayBufferToHex=fromArrayBufferToHex},757:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.NodeCrypto=void 0;const n=i(6113);class NodeCrypto{async sha256DigestBase64(e){return n.createHash("sha256").update(e).digest("base64")}randomBytesBase64(e){return n.randomBytes(e).toString("base64")}async verify(e,r,i){const s=n.createVerify("sha256");s.update(r);s.end();return s.verify(e,i,"base64")}async sign(e,r){const i=n.createSign("RSA-SHA256");i.update(r);i.end();return i.sign(e,"base64")}decodeBase64StringUtf8(e){return Buffer.from(e,"base64").toString("utf-8")}encodeBase64StringUtf8(e){return Buffer.from(e,"utf-8").toString("base64")}async sha256DigestHex(e){return n.createHash("sha256").update(e).digest("hex")}async signWithHmacSha256(e,r){const i=typeof e==="string"?e:toBuffer(e);return toArrayBuffer(n.createHmac("sha256",i).update(r).digest())}}r.NodeCrypto=NodeCrypto;function toArrayBuffer(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function toBuffer(e){return Buffer.from(e)}},810:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GoogleAuth=r.auth=void 0;const n=i(695);Object.defineProperty(r,"GoogleAuth",{enumerable:true,get:function(){return n.GoogleAuth}});var s=i(6875);Object.defineProperty(r,"Compute",{enumerable:true,get:function(){return s.Compute}});var a=i(1380);Object.defineProperty(r,"GCPEnv",{enumerable:true,get:function(){return a.GCPEnv}});var o=i(9735);Object.defineProperty(r,"IAMAuth",{enumerable:true,get:function(){return o.IAMAuth}});var c=i(298);Object.defineProperty(r,"IdTokenClient",{enumerable:true,get:function(){return c.IdTokenClient}});var l=i(8740);Object.defineProperty(r,"JWTAccess",{enumerable:true,get:function(){return l.JWTAccess}});var p=i(3959);Object.defineProperty(r,"JWT",{enumerable:true,get:function(){return p.JWT}});var d=i(1103);Object.defineProperty(r,"Impersonated",{enumerable:true,get:function(){return d.Impersonated}});var h=i(3936);Object.defineProperty(r,"CodeChallengeMethod",{enumerable:true,get:function(){return h.CodeChallengeMethod}});Object.defineProperty(r,"OAuth2Client",{enumerable:true,get:function(){return h.OAuth2Client}});var g=i(4524);Object.defineProperty(r,"LoginTicket",{enumerable:true,get:function(){return g.LoginTicket}});var v=i(8790);Object.defineProperty(r,"UserRefreshClient",{enumerable:true,get:function(){return v.UserRefreshClient}});var y=i(1569);Object.defineProperty(r,"AwsClient",{enumerable:true,get:function(){return y.AwsClient}});var b=i(117);Object.defineProperty(r,"IdentityPoolClient",{enumerable:true,get:function(){return b.IdentityPoolClient}});var E=i(4381);Object.defineProperty(r,"ExternalAccountClient",{enumerable:true,get:function(){return E.ExternalAccountClient}});var x=i(7391);Object.defineProperty(r,"BaseExternalAccountClient",{enumerable:true,get:function(){return x.BaseExternalAccountClient}});var w=i(6270);Object.defineProperty(r,"DownscopedClient",{enumerable:true,get:function(){return w.DownscopedClient}});var T=i(2649);Object.defineProperty(r,"DefaultTransporter",{enumerable:true,get:function(){return T.DefaultTransporter}});const _=new n.GoogleAuth;r.auth=_},6608:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.validate=void 0;function validate(e){const r=[{invalid:"uri",expected:"url"},{invalid:"json",expected:"data"},{invalid:"qs",expected:"params"}];for(const i of r){if(e[i.invalid]){const e=`'${i.invalid}' is not a valid configuration option. Please use '${i.expected}' instead. This library is using Axios for requests. Please see https://github.com/axios/axios to learn more about the valid request options.`;throw new Error(e)}}}r.validate=validate},2649:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.DefaultTransporter=void 0;const n=i(9555);const s=i(6608);const a=i(1402);const o="google-api-nodejs-client";class DefaultTransporter{configure(e={}){e.headers=e.headers||{};if(typeof window==="undefined"){const r=e.headers["User-Agent"];if(!r){e.headers["User-Agent"]=DefaultTransporter.USER_AGENT}else if(!r.includes(`${o}/`)){e.headers["User-Agent"]=`${r} ${DefaultTransporter.USER_AGENT}`}const i=`auth/${a.version}`;if(e.headers["x-goog-api-client"]&&!e.headers["x-goog-api-client"].includes(i)){e.headers["x-goog-api-client"]=`${e.headers["x-goog-api-client"]} ${i}`}else if(!e.headers["x-goog-api-client"]){const r=process.version.replace(/^v/,"");e.headers["x-goog-api-client"]=`gl-node/${r} ${i}`}}return e}request(e,r){e=this.configure(e);try{s.validate(e)}catch(e){if(r){return r(e)}else{throw e}}if(r){n.request(e).then((e=>{r(null,e)}),(e=>{r(this.processError(e))}))}else{return n.request(e).catch((e=>{throw this.processError(e)}))}}processError(e){const r=e.response;const i=e;const n=r?r.data:null;if(r&&n&&n.error&&r.status!==200){if(typeof n.error==="string"){i.message=n.error;i.code=r.status.toString()}else if(Array.isArray(n.error.errors)){i.message=n.error.errors.map((e=>e.message)).join("\n");i.code=n.error.code;i.errors=n.error.errors}else{i.message=n.error.message;i.code=n.error.code||r.status}}else if(r&&r.status>=400){i.message=n;i.code=r.status.toString()}return i}}r.DefaultTransporter=DefaultTransporter;DefaultTransporter.USER_AGENT=`${o}/${a.version}`},7265:e=>{"use strict";const arrify=e=>{if(e===null||e===undefined){return[]}if(Array.isArray(e)){return e}if(typeof e==="string"){return[e]}if(typeof e[Symbol.iterator]==="function"){return[...e]}return[e]};e.exports=arrify},2098:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getPem=void 0;const n=i(7147);const s=i(7655);const a=i(3837);const o=a.promisify(n.readFile);function getPem(e,r){if(r){getPemAsync(e).then((e=>r(null,e))).catch((e=>r(e,null)))}else{return getPemAsync(e)}}r.getPem=getPem;function getPemAsync(e){return o(e,{encoding:"base64"}).then((e=>convertToPem(e)))}function convertToPem(e){const r=s.util.decode64(e);const i=s.asn1.fromDer(r);const n=s.pkcs12.pkcs12FromAsn1(i,"notasecret");const a=n.getBags({friendlyName:"privatekey"});if(a.friendlyName){const e=a.friendlyName[0].key;const r=s.pki.privateKeyToPem(e);return r.replace(/\r\n/g,"\n")}else{throw new Error("Unable to get friendly name.")}}},7356:e=>{"use strict";e.exports=clone;var r=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var i={__proto__:r(e)};else var i=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(e,r))}));return i}},7758:(e,r,i)=>{var n=i(7147);var s=i(263);var a=i(3086);var o=i(7356);var c=i(3837);var l;var p;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){l=Symbol.for("graceful-fs.queue");p=Symbol.for("graceful-fs.previous")}else{l="___graceful-fs.queue";p="___graceful-fs.previous"}function noop(){}function publishQueue(e,r){Object.defineProperty(e,l,{get:function(){return r}})}var d=noop;if(c.debuglog)d=c.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))d=function(){var e=c.format.apply(c,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[l]){var h=global[l]||[];publishQueue(n,h);n.close=function(e){function close(r,i){return e.call(n,r,(function(e){if(!e){retry()}if(typeof i==="function")i.apply(this,arguments)}))}Object.defineProperty(close,p,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(r){e.apply(n,arguments);retry()}Object.defineProperty(closeSync,p,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){d(n[l]);i(9491).equal(n[l].length,0)}))}}if(!global[l]){publishQueue(global,n[l])}e.exports=patch(o(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){s(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var r=e.readFile;e.readFile=readFile;function readFile(e,i,n){if(typeof i==="function")n=i,i=null;return go$readFile(e,i,n);function go$readFile(e,i,n){return r(e,i,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$readFile,[e,i,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}))}}var i=e.writeFile;e.writeFile=writeFile;function writeFile(e,r,n,s){if(typeof n==="function")s=n,n=null;return go$writeFile(e,r,n,s);function go$writeFile(e,r,n,s){return i(e,r,n,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$writeFile,[e,r,n,s]]);else{if(typeof s==="function")s.apply(this,arguments);retry()}}))}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,r,i,s){if(typeof i==="function")s=i,i=null;return go$appendFile(e,r,i,s);function go$appendFile(e,r,i,s){return n(e,r,i,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,r,i,s]]);else{if(typeof s==="function")s.apply(this,arguments);retry()}}))}}var o=e.copyFile;if(o)e.copyFile=copyFile;function copyFile(e,r,i,n){if(typeof i==="function"){n=i;i=0}return o(e,r,i,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([o,[e,r,i,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}))}var c=e.readdir;e.readdir=readdir;function readdir(e,r,i){var n=[e];if(typeof r!=="function"){n.push(r)}else{i=r}n.push(go$readdir$cb);return go$readdir(n);function go$readdir$cb(e,r){if(r&&r.sort)r.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[n]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}}}function go$readdir(r){return c.apply(e,r)}if(process.version.substr(0,4)==="v0.8"){var l=a(e);ReadStream=l.ReadStream;WriteStream=l.WriteStream}var p=e.ReadStream;if(p){ReadStream.prototype=Object.create(p.prototype);ReadStream.prototype.open=ReadStream$open}var d=e.WriteStream;if(d){WriteStream.prototype=Object.create(d.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var h=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});var g=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return g},set:function(e){g=e},enumerable:true,configurable:true});function ReadStream(e,r){if(this instanceof ReadStream)return p.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(r,i){if(r){if(e.autoClose)e.destroy();e.emit("error",r)}else{e.fd=i;e.emit("open",i);e.read()}}))}function WriteStream(e,r){if(this instanceof WriteStream)return d.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(r,i){if(r){e.destroy();e.emit("error",r)}else{e.fd=i;e.emit("open",i)}}))}function createReadStream(r,i){return new e.ReadStream(r,i)}function createWriteStream(r,i){return new e.WriteStream(r,i)}var v=e.open;e.open=open;function open(e,r,i,n){if(typeof i==="function")n=i,i=null;return go$open(e,r,i,n);function go$open(e,r,i,n){return v(e,r,i,(function(s,a){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$open,[e,r,i,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}))}}return e}function enqueue(e){d("ENQUEUE",e[0].name,e[1]);n[l].push(e)}function retry(){var e=n[l].shift();if(e){d("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},3086:(e,r,i)=>{var n=i(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(r,i){if(!(this instanceof ReadStream))return new ReadStream(r,i);n.call(this);var s=this;this.path=r;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;i=i||{};var a=Object.keys(i);for(var o=0,c=a.length;othis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){s._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,r){if(e){s.emit("error",e);s.readable=false;return}s.fd=r;s.emit("open",r);s._read()}))}function WriteStream(r,i){if(!(this instanceof WriteStream))return new WriteStream(r,i);n.call(this);this.path=r;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var s=Object.keys(i);for(var a=0,o=s.length;a= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:(e,r,i)=>{var n=i(2057);var s=process.cwd;var a=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!a)a=s.call(process);return a};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var c=process.chdir;process.chdir=function(e){a=null;c.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,c)}e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,r,i){if(i)process.nextTick(i)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,r,i,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(o==="win32"){e.rename=function(r){return function(i,n,s){var a=Date.now();var o=0;r(i,n,(function CB(c){if(c&&(c.code==="EACCES"||c.code==="EPERM")&&Date.now()-a<6e4){setTimeout((function(){e.stat(n,(function(e,a){if(e&&e.code==="ENOENT")r(i,n,CB);else s(c)}))}),o);if(o<100)o+=10;return}if(s)s(c)}))}}(e.rename)}e.read=function(r){function read(i,n,s,a,o,c){var l;if(c&&typeof c==="function"){var p=0;l=function(d,h,g){if(d&&d.code==="EAGAIN"&&p<10){p++;return r.call(e,i,n,s,a,o,l)}c.apply(this,arguments)}}return r.call(e,i,n,s,a,o,l)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,r);return read}(e.read);e.readSync=function(r){return function(i,n,s,a,o){var c=0;while(true){try{return r.call(e,i,n,s,a,o)}catch(e){if(e.code==="EAGAIN"&&c<10){c++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(r,i,s){e.open(r,n.O_WRONLY|n.O_SYMLINK,i,(function(r,n){if(r){if(s)s(r);return}e.fchmod(n,i,(function(r){e.close(n,(function(e){if(s)s(r||e)}))}))}))};e.lchmodSync=function(r,i){var s=e.openSync(r,n.O_WRONLY|n.O_SYMLINK,i);var a=true;var o;try{o=e.fchmodSync(s,i);a=false}finally{if(a){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return o}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")){e.lutimes=function(r,i,s,a){e.open(r,n.O_SYMLINK,(function(r,n){if(r){if(a)a(r);return}e.futimes(n,i,s,(function(r){e.close(n,(function(e){if(a)a(r||e)}))}))}))};e.lutimesSync=function(r,i,s){var a=e.openSync(r,n.O_SYMLINK);var o;var c=true;try{o=e.futimesSync(a,i,s);c=false}finally{if(c){try{e.closeSync(a)}catch(e){}}else{e.closeSync(a)}}return o}}else{e.lutimes=function(e,r,i,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(r){if(!r)return r;return function(i,n,s){return r.call(e,i,n,(function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)}))}}function chmodFixSync(r){if(!r)return r;return function(i,n){try{return r.call(e,i,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(r){if(!r)return r;return function(i,n,s,a){return r.call(e,i,n,s,(function(e){if(chownErOk(e))e=null;if(a)a.apply(this,arguments)}))}}function chownFixSync(r){if(!r)return r;return function(i,n,s){try{return r.call(e,i,n,s)}catch(e){if(!chownErOk(e))throw e}}}function statFix(r){if(!r)return r;return function(i,n,s){if(typeof n==="function"){s=n;n=null}function callback(e,r){if(r){if(r.uid<0)r.uid+=4294967296;if(r.gid<0)r.gid+=4294967296}if(s)s.apply(this,arguments)}return n?r.call(e,i,n,callback):r.call(e,i,callback)}}function statFixSync(r){if(!r)return r;return function(i,n){var s=n?r.call(e,i,n):r.call(e,i);if(s.uid<0)s.uid+=4294967296;if(s.gid<0)s.gid+=4294967296;return s}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var r=!process.getuid||process.getuid()!==0;if(r){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},6031:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GoogleToken=void 0;const n=i(7147);const s=i(9555);const a=i(4636);const o=i(1017);const c=i(3837);const l=n.readFile?c.promisify(n.readFile):async()=>{throw new ErrorWithCode("use key rather than keyFile.","MISSING_CREDENTIALS")};const p="https://www.googleapis.com/oauth2/v4/token";const d="https://accounts.google.com/o/oauth2/revoke?token=";class ErrorWithCode extends Error{constructor(e,r){super(e);this.code=r}}let h;class GoogleToken{constructor(e){this.configure(e)}get accessToken(){return this.rawToken?this.rawToken.access_token:undefined}get idToken(){return this.rawToken?this.rawToken.id_token:undefined}get tokenType(){return this.rawToken?this.rawToken.token_type:undefined}get refreshToken(){return this.rawToken?this.rawToken.refresh_token:undefined}hasExpired(){const e=(new Date).getTime();if(this.rawToken&&this.expiresAt){return e>=this.expiresAt}else{return true}}isTokenExpiring(){var e;const r=(new Date).getTime();const i=(e=this.eagerRefreshThresholdMillis)!==null&&e!==void 0?e:0;if(this.rawToken&&this.expiresAt){return this.expiresAt<=r+i}else{return true}}getToken(e,r={}){if(typeof e==="object"){r=e;e=undefined}r=Object.assign({forceRefresh:false},r);if(e){const i=e;this.getTokenAsync(r).then((e=>i(null,e)),e);return}return this.getTokenAsync(r)}async getCredentials(e){const r=o.extname(e);switch(r){case".json":{const r=await l(e,"utf8");const i=JSON.parse(r);const n=i.private_key;const s=i.client_email;if(!n||!s){throw new ErrorWithCode("private_key and client_email are required.","MISSING_CREDENTIALS")}return{privateKey:n,clientEmail:s}}case".der":case".crt":case".pem":{const r=await l(e,"utf8");return{privateKey:r}}case".p12":case".pfx":{if(!h){h=(await Promise.resolve().then((()=>i(2098)))).getPem}const r=await h(e);return{privateKey:r}}default:throw new ErrorWithCode("Unknown certificate type. Type is determined based on file extension. "+"Current supported extensions are *.json, *.pem, and *.p12.","UNKNOWN_CERTIFICATE_TYPE")}}async getTokenAsync(e){if(this.inFlightRequest&&!e.forceRefresh){return this.inFlightRequest}try{return await(this.inFlightRequest=this.getTokenAsyncInner(e))}finally{this.inFlightRequest=undefined}}async getTokenAsyncInner(e){if(this.isTokenExpiring()===false&&e.forceRefresh===false){return Promise.resolve(this.rawToken)}if(!this.key&&!this.keyFile){throw new Error("No key or keyFile set.")}if(!this.key&&this.keyFile){const e=await this.getCredentials(this.keyFile);this.key=e.privateKey;this.iss=e.clientEmail||this.iss;if(!e.clientEmail){this.ensureEmail()}}return this.requestToken()}ensureEmail(){if(!this.iss){throw new ErrorWithCode("email is required.","MISSING_CREDENTIALS")}}revokeToken(e){if(e){this.revokeTokenAsync().then((()=>e()),e);return}return this.revokeTokenAsync()}async revokeTokenAsync(){if(!this.accessToken){throw new Error("No token to revoke.")}const e=d+this.accessToken;await s.request({url:e});this.configure({email:this.iss,sub:this.sub,key:this.key,keyFile:this.keyFile,scope:this.scope,additionalClaims:this.additionalClaims})}configure(e={}){this.keyFile=e.keyFile;this.key=e.key;this.rawToken=undefined;this.iss=e.email||e.iss;this.sub=e.sub;this.additionalClaims=e.additionalClaims;if(typeof e.scope==="object"){this.scope=e.scope.join(" ")}else{this.scope=e.scope}this.eagerRefreshThresholdMillis=e.eagerRefreshThresholdMillis}async requestToken(){const e=Math.floor((new Date).getTime()/1e3);const r=this.additionalClaims||{};const i=Object.assign({iss:this.iss,scope:this.scope,aud:p,exp:e+3600,iat:e,sub:this.sub},r);const n=a.sign({header:{alg:"RS256"},payload:i,secret:this.key});try{const r=await s.request({method:"POST",url:p,data:{grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:n},headers:{"Content-Type":"application/x-www-form-urlencoded"},responseType:"json"});this.rawToken=r.data;this.expiresAt=r.data.expires_in===null||r.data.expires_in===undefined?undefined:(e+r.data.expires_in)*1e3;return this.rawToken}catch(e){this.rawToken=undefined;this.tokenExpires=undefined;const r=e.response&&e.response.data?e.response.data:{};if(r.error){const i=r.error_description?`: ${r.error_description}`:"";e.message=`${r.error}${i}`}throw e}}}r.GoogleToken=GoogleToken},1621:e=>{"use strict";e.exports=(e,r=process.argv)=>{const i=e.startsWith("-")?"":e.length===1?"-":"--";const n=r.indexOf(i+e);const s=r.indexOf("--");return n!==-1&&(s===-1||n{"use strict";var r=new Int32Array([0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697]);e.exports={calculate:function(e,i){if(!Buffer.isBuffer(e))e=Buffer.from(e);var n=(i|0)^-1;for(var s=0;s>>8;return(n^-1)>>>0}}},3562:(e,r,i)=>{"use strict";var n;try{n=i(1301)}catch(e){n=i(4933)}var s=i(6113);var{PassThrough:a}=i(2781);e.exports=function(e){e=e||{};var r=e.crc32c!==false;var i=e.md5!==false;var o={};if(i)o.md5=s.createHash("md5");var onData=function(e,s,a){if(r)o.crc32c=n.calculate(e,o.crc32c||0);if(i)o.md5.update(e);a(null,e)};var onFlush=function(e){if(r)o.crc32c=Buffer.from([o.crc32c]).toString("base64");if(i)o.md5=o.md5.digest("base64");e()};var c=new a({transform:onData,flush:onFlush});c.test=function(e,r){return o[e]===r};return c}},5098:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const a=s(i(1808));const o=s(i(4404));const c=s(i(7310));const l=s(i(9491));const p=s(i(8237));const d=i(9690);const h=s(i(595));const g=p.default("https-proxy-agent:agent");class HttpsProxyAgent extends d.Agent{constructor(e){let r;if(typeof e==="string"){r=c.default.parse(e)}else{r=e}if(!r){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}g("creating new HttpsProxyAgent instance: %o",r);super(r);const i=Object.assign({},r);this.secureProxy=r.secureProxy||isHTTPS(i.protocol);i.host=i.hostname||i.host;if(typeof i.port==="string"){i.port=parseInt(i.port,10)}if(!i.port&&i.host){i.port=this.secureProxy?443:80}if(this.secureProxy&&!("ALPNProtocols"in i)){i.ALPNProtocols=["http 1.1"]}if(i.host&&i.path){delete i.path;delete i.pathname}this.proxy=i}callback(e,r){return n(this,void 0,void 0,(function*(){const{proxy:i,secureProxy:n}=this;let s;if(n){g("Creating `tls.Socket`: %o",i);s=o.default.connect(i)}else{g("Creating `net.Socket`: %o",i);s=a.default.connect(i)}const c=Object.assign({},i.headers);const p=`${r.host}:${r.port}`;let d=`CONNECT ${p} HTTP/1.1\r\n`;if(i.auth){c["Proxy-Authorization"]=`Basic ${Buffer.from(i.auth).toString("base64")}`}let{host:v,port:y,secureEndpoint:b}=r;if(!isDefaultPort(y,b)){v+=`:${y}`}c.Host=v;c.Connection="close";for(const e of Object.keys(c)){d+=`${e}: ${c[e]}\r\n`}const E=h.default(s);s.write(`${d}\r\n`);const{statusCode:x,buffered:w}=yield E;if(x===200){e.once("socket",resume);if(r.secureEndpoint){const e=r.servername||r.host;if(!e){throw new Error('Could not determine "servername"')}g("Upgrading socket connection to TLS");return o.default.connect(Object.assign(Object.assign({},omit(r,"host","hostname","path","port")),{socket:s,servername:e}))}return s}s.destroy();const T=new a.default.Socket;T.readable=true;e.once("socket",(e=>{g("replaying proxy buffer for failed request");l.default(e.listenerCount("data")>0);e.push(w);e.push(null)}));return T}))}}r["default"]=HttpsProxyAgent;function resume(e){e.resume()}function isDefaultPort(e,r){return Boolean(!r&&e===80||r&&e===443)}function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}function omit(e,...r){const i={};let n;for(n in e){if(!r.includes(n)){i[n]=e[n]}}return i}},7219:function(e,r,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const s=n(i(5098));function createHttpsProxyAgent(e){return new s.default(e)}(function(e){e.HttpsProxyAgent=s.default;e.prototype=s.default.prototype})(createHttpsProxyAgent||(createHttpsProxyAgent={}));e.exports=createHttpsProxyAgent},595:function(e,r,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const s=n(i(8237));const a=s.default("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((r,i)=>{let n=0;const s=[];function read(){const r=e.read();if(r)ondata(r);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose);e.removeListener("readable",read)}function onclose(e){a("onclose had error %o",e)}function onend(){a("onend")}function onerror(e){cleanup();a("onerror %o",e);i(e)}function ondata(e){s.push(e);n+=e.length;const i=Buffer.concat(s,n);const o=i.indexOf("\r\n\r\n");if(o===-1){a("have not received end of HTTP headers yet...");read();return}const c=i.toString("ascii",0,i.indexOf("\r\n"));const l=+c.split(" ")[1];a("got proxy server response: %o",c);r({statusCode:l,buffered:i})}e.on("error",onerror);e.on("close",onclose);e.on("end",onend);read()}))}r["default"]=parseProxyResponse},2527:e=>{ + */var e={},r={},i="en",n={MMMM:["January","February","March","April","May","June","July","August","September","October","November","December"],MMM:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dddd:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ddd:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dd:["Su","Mo","Tu","We","Th","Fr","Sa"],A:["AM","PM"]},a={YYYY:function(e){return("000"+e.getFullYear()).slice(-4)},YY:function(e){return("0"+e.getFullYear()).slice(-2)},Y:function(e){return""+e.getFullYear()},MMMM:function(e){return this.res.MMMM[e.getMonth()]},MMM:function(e){return this.res.MMM[e.getMonth()]},MM:function(e){return("0"+(e.getMonth()+1)).slice(-2)},M:function(e){return""+(e.getMonth()+1)},DD:function(e){return("0"+e.getDate()).slice(-2)},D:function(e){return""+e.getDate()},HH:function(e){return("0"+e.getHours()).slice(-2)},H:function(e){return""+e.getHours()},A:function(e){return this.res.A[e.getHours()>11|0]},hh:function(e){return("0"+(e.getHours()%12||12)).slice(-2)},h:function(e){return""+(e.getHours()%12||12)},mm:function(e){return("0"+e.getMinutes()).slice(-2)},m:function(e){return""+e.getMinutes()},ss:function(e){return("0"+e.getSeconds()).slice(-2)},s:function(e){return""+e.getSeconds()},SSS:function(e){return("00"+e.getMilliseconds()).slice(-3)},SS:function(e){return("0"+(e.getMilliseconds()/10|0)).slice(-2)},S:function(e){return""+(e.getMilliseconds()/100|0)},dddd:function(e){return this.res.dddd[e.getDay()]},ddd:function(e){return this.res.ddd[e.getDay()]},dd:function(e){return this.res.dd[e.getDay()]},Z:function(e){var r=e.getTimezoneOffset()/.6|0;return(r>0?"-":"+")+("000"+Math.abs(r-(r%100*.4|0))).slice(-4)},post:function(e){return e},res:n},s={YYYY:function(e){return this.exec(/^\d{4}/,e)},Y:function(e){return this.exec(/^\d{1,4}/,e)},MMMM:function(e){var r=this.find(this.res.MMMM,e);r.value++;return r},MMM:function(e){var r=this.find(this.res.MMM,e);r.value++;return r},MM:function(e){return this.exec(/^\d\d/,e)},M:function(e){return this.exec(/^\d\d?/,e)},DD:function(e){return this.exec(/^\d\d/,e)},D:function(e){return this.exec(/^\d\d?/,e)},HH:function(e){return this.exec(/^\d\d/,e)},H:function(e){return this.exec(/^\d\d?/,e)},A:function(e){return this.find(this.res.A,e)},hh:function(e){return this.exec(/^\d\d/,e)},h:function(e){return this.exec(/^\d\d?/,e)},mm:function(e){return this.exec(/^\d\d/,e)},m:function(e){return this.exec(/^\d\d?/,e)},ss:function(e){return this.exec(/^\d\d/,e)},s:function(e){return this.exec(/^\d\d?/,e)},SSS:function(e){return this.exec(/^\d{1,3}/,e)},SS:function(e){var r=this.exec(/^\d\d?/,e);r.value*=10;return r},S:function(e){var r=this.exec(/^\d/,e);r.value*=100;return r},Z:function(e){var r=this.exec(/^[\+-]\d{2}[0-5]\d/,e);r.value=(r.value/100|0)*-60-r.value%100;return r},h12:function(e,r){return(e===12?0:e)+r*12},exec:function(e,r){var i=(e.exec(r)||[""])[0];return{value:i|0,length:i.length}},find:function(e,r){var i=-1,n=0;for(var a=0,s=e.length,o;an){i=a;n=o.length}}return{value:i,length:n}},pre:function(e){return e},res:n},extend=function(e,r,i,n){var a={},s;for(s in e){a[s]=e[s]}for(s in r||{}){if(!(!!i^!!a[s])){a[s]=r[s]}}if(n){a.res=n}return a},o={_formatter:a,_parser:s},c,l;o.compile=function(e){var r=/\[([^\[\]]|\[[^\[\]]*])*]|([A-Za-z])\2+|\.{3}|./g,i,n=[e];while(i=r.exec(e)){n[n.length]=i[0]}return n};o.format=function(e,r,i){var n=this||l,a=typeof r==="string"?n.compile(r):r,s=e.getTimezoneOffset(),o=n.addMinutes(e,i?s:0),c=n._formatter,p="";o.getTimezoneOffset=function(){return i?0:s};for(var d=1,h=a.length,g;d9999||n.M<1||n.M>12||n.D<1||n.D>a||n.H<0||n.H>23||n.m<0||n.m>59||n.s<0||n.s>59||n.S<0||n.S>999||n.Z<-720||n.Z>840)};o.transform=function(e,r,i,n){const a=this||l;return a.format(a.parse(e,r),i,n)};o.addYears=function(e,r){return(this||l).addMonths(e,r*12)};o.addMonths=function(e,r){var i=new Date(e.getTime());i.setMonth(i.getMonth()+r);return i};o.addDays=function(e,r){var i=new Date(e.getTime());i.setDate(i.getDate()+r);return i};o.addHours=function(e,r){return(this||l).addMinutes(e,r*60)};o.addMinutes=function(e,r){return(this||l).addSeconds(e,r*60)};o.addSeconds=function(e,r){return(this||l).addMilliseconds(e,r*1e3)};o.addMilliseconds=function(e,r){return new Date(e.getTime()+r)};o.subtract=function(e,r){var i=e.getTime()-r.getTime();return{toMilliseconds:function(){return i},toSeconds:function(){return i/1e3},toMinutes:function(){return i/6e4},toHours:function(){return i/36e5},toDays:function(){return i/864e5}}};o.isLeapYear=function(e){return!(e%4)&&!!(e%100)||!(e%400)};o.isSameDay=function(e,r){return e.toDateString()===r.toDateString()};o.locale=function(r,i){if(!e[r]){e[r]=i}};o.plugin=function(e,i){if(!r[e]){r[e]=i}};c=extend(o);l=extend(o);l.locale=function(p){var d=typeof p==="function"?p:l.locale[p];if(!d){return i}i=d(o);var h=e[i]||{};var g=extend(n,h.res,true);var v=extend(a,h.formatter,true,g);var y=extend(s,h.parser,true,g);l._formatter=c._formatter=v;l._parser=c._parser=y;for(var b in r){l.extend(r[b])}return i};l.extend=function(e){var r=extend(l._parser.res,e.res);var i=e.extender||{};l._formatter=extend(l._formatter,e.formatter,false,r);l._parser=extend(l._parser,e.parser,false,r);for(var n in i){if(!l[n]){l[n]=i[n]}}};l.plugin=function(e){var i=typeof e==="function"?e:l.plugin[e];if(i){l.extend(r[i(o,c)]||{})}};var p=l;return p}))},8222:(e,r,i)=>{r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage=localstorage();r.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(r){r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const i="color: "+this.color;r.splice(1,0,i,"color: inherit");let n=0;let a=0;r[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){a=n}}));r.splice(a,0,i)}r.log=console.debug||console.log||(()=>{});function save(e){try{if(e){r.storage.setItem("debug",e)}else{r.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=r.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=i(6243)(r);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,r,i)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=i(900);createDebug.destroy=destroy;Object.keys(e).forEach((r=>{createDebug[r]=e[r]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let r=0;for(let i=0;i{if(r==="%%"){return"%"}s++;const a=createDebug.formatters[n];if(typeof a==="function"){const n=e[s];r=a.call(i,n);e.splice(s,1);s--}return r}));createDebug.formatArgs.call(i,e);const o=i.log||createDebug.log;o.apply(i,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(i!==null){return i}if(n!==createDebug.namespaces){n=createDebug.namespaces;a=createDebug.enabled(e)}return a},set:e=>{i=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,r){const i=createDebug(this.namespace+(typeof r==="undefined"?":":r)+e);i.log=this.log;return i}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let r;const i=(typeof e==="string"?e:"").split(/[\s,]+/);const n=i.length;for(r=0;r"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let r;let i;for(r=0,i=createDebug.skips.length;r{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=i(8222)}else{e.exports=i(5332)}},5332:(e,r,i)=>{const n=i(6224);const a=i(3837);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.destroy=a.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");r.colors=[6,2,3,4,5,1];try{const e=i(9318);if(e&&(e.stderr||e).level>=2){r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}r.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,r)=>{const i=r.substring(6).toLowerCase().replace(/_([a-z])/g,((e,r)=>r.toUpperCase()));let n=process.env[r];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[i]=n;return e}),{});function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(r){const{namespace:i,useColors:n}=this;if(n){const n=this.color;const a="[3"+(n<8?n:"8;5;"+n);const s=` ${a};1m${i} `;r[0]=s+r[0].split("\n").join("\n"+s);r.push(a+"m+"+e.exports.humanize(this.diff)+"")}else{r[0]=getDate()+i+" "+r[0]}}function getDate(){if(r.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(a.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const i=Object.keys(r.inspectOpts);for(let n=0;ne.trim())).join(" ")};s.O=function(e){this.inspectOpts.colors=this.useColors;return a.inspect(e,this.inspectOpts)}},2042:(e,r,i)=>{"use strict";const n=i(1389);const a=["__proto__","prototype","constructor"];const isValidPath=e=>!e.some((e=>a.includes(e)));function getPathSegments(e){const r=e.split(".");const i=[];for(let e=0;e{var n=i(1642);var a=i(1205);var s=i(4124);var o=i(6121);var c=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]);var onuncork=function(e,r){if(e._corked)e.once("uncork",r);else r()};var autoDestroy=function(e,r){if(e._autoDestroy)e.destroy(r)};var destroyer=function(e,r){return function(i){if(i)autoDestroy(e,i.message==="premature close"?null:i);else if(r&&!e._ended)e.end()}};var end=function(e,r){if(!e)return r();if(e._writableState&&e._writableState.finished)return r();if(e._writableState)return e.end(r);e.end();r()};var noop=function(){};var toStreams2=function(e){return new n.Readable({objectMode:true,highWaterMark:16}).wrap(e)};var Duplexify=function(e,r,i){if(!(this instanceof Duplexify))return new Duplexify(e,r,i);n.Duplex.call(this,i);this._writable=null;this._readable=null;this._readable2=null;this._autoDestroy=!i||i.autoDestroy!==false;this._forwardDestroy=!i||i.destroy!==false;this._forwardEnd=!i||i.end!==false;this._corked=1;this._ondrain=null;this._drained=false;this._forwarding=false;this._unwrite=null;this._unread=null;this._ended=false;this.destroyed=false;if(e)this.setWritable(e);if(r)this.setReadable(r)};s(Duplexify,n.Duplex);Duplexify.obj=function(e,r,i){if(!i)i={};i.objectMode=true;i.highWaterMark=16;return new Duplexify(e,r,i)};Duplexify.prototype.cork=function(){if(++this._corked===1)this.emit("cork")};Duplexify.prototype.uncork=function(){if(this._corked&&--this._corked===0)this.emit("uncork")};Duplexify.prototype.setWritable=function(e){if(this._unwrite)this._unwrite();if(this.destroyed){if(e&&e.destroy)e.destroy();return}if(e===null||e===false){this.end();return}var r=this;var i=a(e,{writable:true,readable:false},destroyer(this,this._forwardEnd));var ondrain=function(){var e=r._ondrain;r._ondrain=null;if(e)e()};var clear=function(){r._writable.removeListener("drain",ondrain);i()};if(this._unwrite)process.nextTick(ondrain);this._writable=e;this._writable.on("drain",ondrain);this._unwrite=clear;this.uncork()};Duplexify.prototype.setReadable=function(e){if(this._unread)this._unread();if(this.destroyed){if(e&&e.destroy)e.destroy();return}if(e===null||e===false){this.push(null);this.resume();return}var r=this;var i=a(e,{writable:false,readable:true},destroyer(this));var onreadable=function(){r._forward()};var onend=function(){r.push(null)};var clear=function(){r._readable2.removeListener("readable",onreadable);r._readable2.removeListener("end",onend);i()};this._drained=true;this._readable=e;this._readable2=e._readableState?e:toStreams2(e);this._readable2.on("readable",onreadable);this._readable2.on("end",onend);this._unread=clear;this._forward()};Duplexify.prototype._read=function(){this._drained=true;this._forward()};Duplexify.prototype._forward=function(){if(this._forwarding||!this._readable2||!this._drained)return;this._forwarding=true;var e;while(this._drained&&(e=o(this._readable2))!==null){if(this.destroyed)continue;this._drained=this.push(e)}this._forwarding=false};Duplexify.prototype.destroy=function(e,r){if(!r)r=noop;if(this.destroyed)return r(null);this.destroyed=true;var i=this;process.nextTick((function(){i._destroy(e);r(null)}))};Duplexify.prototype._destroy=function(e){if(e){var r=this._ondrain;this._ondrain=null;if(r)r(e);else this.emit("error",e)}if(this._forwardDestroy){if(this._readable&&this._readable.destroy)this._readable.destroy();if(this._writable&&this._writable.destroy)this._writable.destroy()}this.emit("close")};Duplexify.prototype._write=function(e,r,i){if(this.destroyed)return;if(this._corked)return onuncork(this,this._write.bind(this,e,r,i));if(e===c)return this._finish(i);if(!this._writable)return i();if(this._writable.write(e)===false)this._ondrain=i;else if(!this.destroyed)i()};Duplexify.prototype._finish=function(e){var r=this;this.emit("preend");onuncork(this,(function(){end(r._forwardEnd&&r._writable,(function(){if(r._writableState.prefinished===false)r._writableState.prefinished=true;r.emit("prefinish");onuncork(r,e)}))}))};Duplexify.prototype.end=function(e,r,i){if(typeof e==="function")return this.end(null,null,e);if(typeof r==="function")return this.end(e,null,r);this._ended=true;if(e)this.write(e);if(!this._writableState.ending&&!this._writableState.destroyed)this.write(c);return n.Writable.prototype.end.call(this,i)};e.exports=Duplexify},1728:(e,r,i)=>{"use strict";var n=i(1867).Buffer;var a=i(528);var s=128,o=0,c=32,l=16,p=2,d=l|c|o<<6,h=p|o<<6;function base64Url(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function signatureAsBuffer(e){if(n.isBuffer(e)){return e}else if("string"===typeof e){return n.from(e,"base64")}throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function derToJose(e,r){e=signatureAsBuffer(e);var i=a(r);var o=i+1;var c=e.length;var l=0;if(e[l++]!==d){throw new Error('Could not find expected "seq"')}var p=e[l++];if(p===(s|1)){p=e[l++]}if(c-l=s;if(a){--n}return n}function joseToDer(e,r){e=signatureAsBuffer(e);var i=a(r);var o=e.length;if(o!==i*2){throw new TypeError('"'+r+'" signatures must be "'+i*2+'" bytes, saw "'+o+'"')}var c=countPadding(e,0,i);var l=countPadding(e,i,e.length);var p=i-c;var g=i-l;var v=1+1+p+1+1+g;var y=v{"use strict";function getParamSize(e){var r=(e/8|0)+(e%8===0?0:1);return r}var r={ES256:getParamSize(256),ES384:getParamSize(384),ES512:getParamSize(521)};function getParamBytesForAlg(e){var i=r[e];if(i){return i}throw new Error('Unknown algorithm "'+e+'"')}e.exports=getParamBytesForAlg},1205:(e,r,i)=>{var n=i(1223);var noop=function(){};var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,r,i){if(typeof r==="function")return eos(e,null,r);if(!r)r={};i=n(i||noop);var a=e._writableState;var s=e._readableState;var o=r.readable||r.readable!==false&&e.readable;var c=r.writable||r.writable!==false&&e.writable;var l=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){c=false;if(!o)i.call(e)};var onend=function(){o=false;if(!c)i.call(e)};var onexit=function(r){i.call(e,r?new Error("exited with error code: "+r):null)};var onerror=function(r){i.call(e,r)};var onclose=function(){process.nextTick(onclosenexttick)};var onclosenexttick=function(){if(l)return;if(o&&!(s&&(s.ended&&!s.destroyed)))return i.call(e,new Error("premature close"));if(c&&!(a&&(a.ended&&!a.destroyed)))return i.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(c&&!a){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(r.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){l=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},5771:(e,r,i)=>{var n=i(5477);var a=i(2077);e.exports=decode;function decode(e){if(typeof e!=="string"){throw new TypeError("Expected a String")}return e.replace(/&(#?[^;\W]+;?)/g,(function(e,r){var i;if(i=/^#(\d+);?$/.exec(r)){return n.ucs2.encode([parseInt(i[1],10)])}else if(i=/^#[Xx]([A-Fa-f0-9]+);?/.exec(r)){return n.ucs2.encode([parseInt(i[1],16)])}else{var s=/;$/.test(r);var o=s?r.replace(/;$/,""):r;var c=a[o]||s&&a[r];if(typeof c==="number"){return n.ucs2.encode([c])}else if(typeof c==="string"){return c}else{return"&"+r}}}))}},6521:(e,r,i)=>{var n=i(5477);var a=i(3123);e.exports=encode;function encode(e,r){if(typeof e!=="string"){throw new TypeError("Expected a String")}if(!r)r={};var i=true;if(r.named)i=false;if(r.numeric!==undefined)i=r.numeric;var s=r.special||{'"':true,"'":true,"<":true,">":true,"&":true};var o=n.ucs2.decode(e);var c=[];for(var l=0;l=127||s[d])&&!i){c.push("&"+(/;$/.test(h)?h:h+";"))}else if(p<32||p>=127||s[d]){c.push("&#"+p+";")}else{c.push(d)}}return c.join("")}},1151:(e,r,i)=>{r.encode=i(6521);r.decode=i(5771)},4697:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const i=new WeakMap;const n=new WeakMap;function pd(e){const r=i.get(e);console.assert(r!=null,"'this' is expected an Event object, but got",e);return r}function setCancelFlag(e){if(e.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}return}if(!e.event.cancelable){return}e.canceled=true;if(typeof e.event.preventDefault==="function"){e.event.preventDefault()}}function Event(e,r){i.set(this,{eventTarget:e,event:r,eventPhase:2,currentTarget:e,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:r.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const n=Object.keys(r);for(let e=0;e0){const e=new Array(arguments.length);for(let r=0;r{"use strict";var r=Object.prototype.hasOwnProperty;var i=Object.prototype.toString;var n=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=function isArray(e){if(typeof Array.isArray==="function"){return Array.isArray(e)}return i.call(e)==="[object Array]"};var o=function isPlainObject(e){if(!e||i.call(e)!=="[object Object]"){return false}var n=r.call(e,"constructor");var a=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!a){return false}var s;for(s in e){}return typeof s==="undefined"||r.call(e,s)};var c=function setProperty(e,r){if(n&&r.name==="__proto__"){n(e,r.name,{enumerable:true,configurable:true,value:r.newValue,writable:true})}else{e[r.name]=r.newValue}};var l=function getProperty(e,i){if(i==="__proto__"){if(!r.call(e,i)){return void 0}else if(a){return a(e,i).value}}return e[i]};e.exports=function extend(){var e,r,i,n,a,p;var d=arguments[0];var h=1;var g=arguments.length;var v=false;if(typeof d==="boolean"){v=d;d=arguments[1]||{};h=2}if(d==null||typeof d!=="object"&&typeof d!=="function"){d={}}for(;h=i-1){a.push(String.fromCharCode.apply(null,n.subarray(0,s)));if(!o)return a.join("");e=e.subarray(r);s=r=0}o=e[r++];if(0===(o&128))n[s++]=o;else if(192===(o&224)){var c=e[r++]&63;n[s++]=(o&31)<<6|c}else if(224===(o&240)){c=e[r++]&63;var l=e[r++]&63;n[s++]=(o&31)<<12|c<<6|l}else if(240===(o&248)){c=e[r++]&63;l=e[r++]&63;var p=e[r++]&63;o=(o&7)<<18|c<<12|l<<6|p;65535>>10&1023|55296,o=56320|o&1023);n[s++]=o}}}if(e.TextEncoder&&e.TextDecoder)return!1;var r=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(m.prototype,"encoding",{value:"utf-8"});m.prototype.encode=function(e,r){r=void 0===r?{stream:!1}:r;if(r.stream)throw Error("Failed to encode: the 'stream' option is unsupported.");r=0;for(var i=e.length,n=0,a=Math.max(32,i+(i>>>1)+7),s=new Uint8Array(a>>>3<<3);r=o){if(r=o)continue}n+4>s.length&&(a+=8,a*=1+r/e.length*2,a=a>>>3<<3,c=new Uint8Array(a),c.set(s),s=c);if(0===(o&4294967168))s[n++]=o;else{if(0===(o&4294965248))s[n++]=o>>>6&31|192;else if(0===(o&4294901760))s[n++]=o>>>12&15|224,s[n++]=o>>>6&63|128;else if(0===(o&4292870144))s[n++]=o>>>18&7|240,s[n++]=o>>>12&63|128,s[n++]=o>>>6&63|128;else continue;s[n++]=o&63|128}}return s.slice?s.slice(0,n):s.subarray(0,n)};Object.defineProperty(k.prototype,"encoding",{value:"utf-8"});Object.defineProperty(k.prototype,"fatal",{value:!1});Object.defineProperty(k.prototype,"ignoreBOM",{value:!1});var i=q;"function"===typeof Buffer&&Buffer.from?i=t:"function"===typeof Blob&&"function"===typeof URL&&"function"===typeof URL.createObjectURL&&(i=u);k.prototype.decode=function(e,r){r=void 0===r?{stream:!1}:r;if(r.stream)throw Error("Failed to decode: the 'stream' option is unsupported.");e=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e);return i(e)};e.TextEncoder=m;e.TextDecoder=k})("undefined"!==typeof window?window:"undefined"!==typeof global?global:this)},6863:(e,r,i)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=i(7147);var a=n.realpath;var s=n.realpathSync;var o=process.version;var c=/^v[0-5]\./.test(o);var l=i(1734);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,r,i){if(c){return a(e,r,i)}if(typeof r==="function"){i=r;r=null}a(e,r,(function(n,a){if(newError(n)){l.realpath(e,r,i)}else{i(n,a)}}))}function realpathSync(e,r){if(c){return s(e,r)}try{return s(e,r)}catch(i){if(newError(i)){return l.realpathSync(e,r)}else{throw i}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=a;n.realpathSync=s}},1734:(e,r,i)=>{var n=i(1017);var a=process.platform==="win32";var s=i(7147);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var r=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){r.message=e.message;e=r;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var r="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(r);else console.error(r)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var c=n.normalize;if(a){var l=/(.*?)(?:[\/\\]+|$)/g}else{var l=/(.*?)(?:[\/]+|$)/g}if(a){var p=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var p=/^[\/]*/}r.realpathSync=function realpathSync(e,r){e=n.resolve(e);if(r&&Object.prototype.hasOwnProperty.call(r,e)){return r[e]}var i=e,o={},c={};var d;var h;var g;var v;start();function start(){var r=p.exec(e);d=r[0].length;h=r[0];g=r[0];v="";if(a&&!c[g]){s.lstatSync(g);c[g]=true}}while(d=e.length){if(r)r[o]=e;return i(null,e)}l.lastIndex=h;var n=l.exec(e);y=g;g+=n[0];v=y+n[1];h=l.lastIndex;if(d[v]||r&&r[v]===v){return process.nextTick(LOOP)}if(r&&Object.prototype.hasOwnProperty.call(r,v)){return gotResolvedLink(r[v])}return s.lstat(v,gotStat)}function gotStat(e,n){if(e)return i(e);if(!n.isSymbolicLink()){d[v]=true;if(r)r[v]=v;return process.nextTick(LOOP)}if(!a){var o=n.dev.toString(32)+":"+n.ino.toString(32);if(c.hasOwnProperty(o)){return gotTarget(null,c[o],v)}}s.stat(v,(function(e){if(e)return i(e);s.readlink(v,(function(e,r){if(!a)c[o]=r;gotTarget(e,r)}))}))}function gotTarget(e,a,s){if(e)return i(e);var o=n.resolve(y,a);if(r)r[s]=o;gotResolvedLink(o)}function gotResolvedLink(r){e=n.resolve(r,e.slice(h));start()}}},6129:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GaxiosError=void 0;class GaxiosError extends Error{constructor(e,r,i){super(e);this.response=i;this.config=r;this.code=i.status.toString()}}r.GaxiosError=GaxiosError},8133:function(e,r,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.Gaxios=void 0;const a=n(i(8171));const s=i(5687);const o=n(i(467));const c=n(i(3477));const l=n(i(1554));const p=i(7310);const d=i(6129);const h=i(1052);const g=hasFetch()?window.fetch:o.default;function hasWindow(){return typeof window!=="undefined"&&!!window}function hasFetch(){return hasWindow()&&!!window.fetch}function hasBuffer(){return typeof Buffer!=="undefined"}function hasHeader(e,r){return!!getHeader(e,r)}function getHeader(e,r){r=r.toLowerCase();for(const i of Object.keys((e===null||e===void 0?void 0:e.headers)||{})){if(r===i.toLowerCase()){return e.headers[i]}}return undefined}let v;function loadProxy(){const e=process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy;if(e){v=i(7219)}return e}loadProxy();function skipProxy(e){var r;const i=(r=process.env.NO_PROXY)!==null&&r!==void 0?r:process.env.no_proxy;if(!i){return false}const n=i.split(",");const a=new p.URL(e);return!!n.find((e=>{if(e.startsWith("*.")||e.startsWith(".")){e=e.replace(/^\*\./,".");return a.hostname.endsWith(e)}else{return e===a.origin||e===a.hostname}}))}function getProxy(e){if(skipProxy(e)){return undefined}else{return loadProxy()}}class Gaxios{constructor(e){this.agentCache=new Map;this.defaults=e||{}}async request(e={}){e=this.validateOpts(e);return this._request(e)}async _defaultAdapter(e){const r=e.fetchImplementation||g;const i=await r(e.url,e);const n=await this.getResponseData(e,i);return this.translateResponse(e,i,n)}async _request(e={}){try{let r;if(e.adapter){r=await e.adapter(e,this._defaultAdapter.bind(this))}else{r=await this._defaultAdapter(e)}if(!e.validateStatus(r.status)){throw new d.GaxiosError(`Request failed with status code ${r.status}`,e,r)}return r}catch(r){const i=r;i.config=e;const{shouldRetry:n,config:a}=await h.getRetryConfig(r);if(n&&a){i.config.retryConfig.currentRetryAttempt=a.retryConfig.currentRetryAttempt;return this._request(i.config)}throw i}}async getResponseData(e,r){switch(e.responseType){case"stream":return r.body;case"json":{let e=await r.text();try{e=JSON.parse(e)}catch(e){}return e}case"arraybuffer":return r.arrayBuffer();case"blob":return r.blob();default:return r.text()}}validateOpts(e){const r=a.default(true,{},this.defaults,e);if(!r.url){throw new Error("URL is required.")}const i=r.baseUrl||r.baseURL;if(i){r.url=i+r.url}r.paramsSerializer=r.paramsSerializer||this.paramsSerializer;if(r.params&&Object.keys(r.params).length>0){let e=r.paramsSerializer(r.params);if(e.startsWith("?")){e=e.slice(1)}const i=r.url.includes("?")?"&":"?";r.url=r.url+i+e}if(typeof e.maxContentLength==="number"){r.size=e.maxContentLength}if(typeof e.maxRedirects==="number"){r.follow=e.maxRedirects}r.headers=r.headers||{};if(r.data){if(l.default.readable(r.data)){r.body=r.data}else if(hasBuffer()&&Buffer.isBuffer(r.data)){r.body=r.data;if(!hasHeader(r,"Content-Type")){r.headers["Content-Type"]="application/json"}}else if(typeof r.data==="object"){if(getHeader(r,"content-type")==="application/x-www-form-urlencoded"){r.body=r.paramsSerializer(r.data)}else{if(!hasHeader(r,"Content-Type")){r.headers["Content-Type"]="application/json"}r.body=JSON.stringify(r.data)}}else{r.body=r.data}}r.validateStatus=r.validateStatus||this.validateStatus;r.responseType=r.responseType||"json";if(!r.headers["Accept"]&&r.responseType==="json"){r.headers["Accept"]="application/json"}r.method=r.method||"GET";const n=getProxy(r.url);if(n){if(this.agentCache.has(n)){r.agent=this.agentCache.get(n)}else{if(r.cert&&r.key){const e=new p.URL(n);r.agent=new v({port:e.port,host:e.host,protocol:e.protocol,cert:r.cert,key:r.key})}else{r.agent=new v(n)}this.agentCache.set(n,r.agent)}}else if(r.cert&&r.key){if(this.agentCache.has(r.key)){r.agent=this.agentCache.get(r.key)}else{r.agent=new s.Agent({cert:r.cert,key:r.key});this.agentCache.set(r.key,r.agent)}}return r}validateStatus(e){return e>=200&&e<300}paramsSerializer(e){return c.default.stringify(e)}translateResponse(e,r,i){const n={};r.headers.forEach(((e,r)=>{n[r]=e}));return{config:e,data:i,headers:n,status:r.status,statusText:r.statusText,request:{responseURL:r.url}}}}r.Gaxios=Gaxios},9555:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.request=r.instance=r.Gaxios=void 0;const n=i(8133);Object.defineProperty(r,"Gaxios",{enumerable:true,get:function(){return n.Gaxios}});var a=i(6129);Object.defineProperty(r,"GaxiosError",{enumerable:true,get:function(){return a.GaxiosError}});r.instance=new n.Gaxios;async function request(e){return r.instance.request(e)}r.request=request},1052:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getRetryConfig=void 0;async function getRetryConfig(e){var r;let i=getConfig(e);if(!e||!e.config||!i&&!e.config.retry){return{shouldRetry:false}}i=i||{};i.currentRetryAttempt=i.currentRetryAttempt||0;i.retry=i.retry===undefined||i.retry===null?3:i.retry;i.httpMethodsToRetry=i.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"];i.noResponseRetries=i.noResponseRetries===undefined||i.noResponseRetries===null?2:i.noResponseRetries;const n=[[100,199],[429,429],[500,599]];i.statusCodesToRetry=i.statusCodesToRetry||n;e.config.retryConfig=i;const a=i.shouldRetry||shouldRetryRequest;if(!await a(e)){return{shouldRetry:false,config:e.config}}const s=i.currentRetryAttempt?0:(r=i.retryDelay)!==null&&r!==void 0?r:100;const o=s+(Math.pow(2,i.currentRetryAttempt)-1)/2*1e3;e.config.retryConfig.currentRetryAttempt+=1;const c=new Promise((e=>{setTimeout(e,o)}));if(i.onRetryAttempt){i.onRetryAttempt(e)}await c;return{shouldRetry:true,config:e.config}}r.getRetryConfig=getRetryConfig;function shouldRetryRequest(e){const r=getConfig(e);if(e.name==="AbortError"){return false}if(!r||r.retry===0){return false}if(!e.response&&(r.currentRetryAttempt||0)>=r.noResponseRetries){return false}if(!e.config.method||r.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0){return false}if(e.response&&e.response.status){let i=false;for(const[n,a]of r.statusCodesToRetry){const r=e.response.status;if(r>=n&&r<=a){i=true;break}}if(!i){return false}}r.currentRetryAttempt=r.currentRetryAttempt||0;if(r.currentRetryAttempt>=r.retry){return false}return true}function getConfig(e){if(e&&e.config&&e.config.retryConfig){return e.config.retryConfig}return}},3563:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.requestTimeout=r.resetIsAvailableCache=r.isAvailable=r.project=r.instance=r.HEADERS=r.HEADER_VALUE=r.HEADER_NAME=r.SECONDARY_HOST_ADDRESS=r.HOST_ADDRESS=r.BASE_PATH=void 0;const n=i(9555);const a=i(5031);r.BASE_PATH="/computeMetadata/v1";r.HOST_ADDRESS="http://169.254.169.254";r.SECONDARY_HOST_ADDRESS="http://metadata.google.internal.";r.HEADER_NAME="Metadata-Flavor";r.HEADER_VALUE="Google";r.HEADERS=Object.freeze({[r.HEADER_NAME]:r.HEADER_VALUE});function getBaseUrl(e){if(!e){e=process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST||r.HOST_ADDRESS}if(!/^https?:\/\//.test(e)){e=`http://${e}`}return new URL(r.BASE_PATH,e).href}function validate(e){Object.keys(e).forEach((e=>{switch(e){case"params":case"property":case"headers":break;case"qs":throw new Error("'qs' is not a valid configuration option. Please use 'params' instead.");default:throw new Error(`'${e}' is not a valid configuration option.`)}}))}async function metadataAccessor(e,i,s=3,o=false){i=i||{};if(typeof i==="string"){i={property:i}}let c="";if(typeof i==="object"&&i.property){c="/"+i.property}validate(i);try{const l=o?fastFailMetadataRequest:n.request;const p=await l({url:`${getBaseUrl()}/${e}${c}`,headers:Object.assign({},r.HEADERS,i.headers),retryConfig:{noResponseRetries:s},params:i.params,responseType:"text",timeout:requestTimeout()});if(p.headers[r.HEADER_NAME.toLowerCase()]!==r.HEADER_VALUE){throw new Error(`Invalid response from metadata service: incorrect ${r.HEADER_NAME} header.`)}else if(!p.data){throw new Error("Invalid response from the metadata service")}if(typeof p.data==="string"){try{return a.parse(p.data)}catch(e){}}return p.data}catch(e){if(e.response&&e.response.status!==200){e.message=`Unsuccessful response status code. ${e.message}`}throw e}}async function fastFailMetadataRequest(e){const i={...e,url:e.url.replace(getBaseUrl(),getBaseUrl(r.SECONDARY_HOST_ADDRESS))};let a=false;const s=n.request(e).then((e=>{a=true;return e})).catch((e=>{if(a){return o}else{a=true;throw e}}));const o=n.request(i).then((e=>{a=true;return e})).catch((e=>{if(a){return s}else{a=true;throw e}}));return Promise.race([s,o])}function instance(e){return metadataAccessor("instance",e)}r.instance=instance;function project(e){return metadataAccessor("project",e)}r.project=project;function detectGCPAvailableRetries(){return process.env.DETECT_GCP_RETRIES?Number(process.env.DETECT_GCP_RETRIES):0}let s;async function isAvailable(){try{if(s===undefined){s=metadataAccessor("instance",undefined,detectGCPAvailableRetries(),!(process.env.GCE_METADATA_IP||process.env.GCE_METADATA_HOST))}await s;return true}catch(e){if(process.env.DEBUG_AUTH){console.info(e)}if(e.type==="request-timeout"){return false}if(e.response&&e.response.status===404){return false}else{if(!(e.response&&e.response.status===404)&&(!e.code||!["EHOSTDOWN","EHOSTUNREACH","ENETUNREACH","ENOENT","ENOTFOUND","ECONNREFUSED"].includes(e.code))){let r="UNKNOWN";if(e.code)r=e.code;process.emitWarning(`received unexpected error = ${e.message} code = ${r}`,"MetadataLookupWarning")}return false}}}r.isAvailable=isAvailable;function resetIsAvailableCache(){s=undefined}r.resetIsAvailableCache=resetIsAvailableCache;function requestTimeout(){return process.env.K_SERVICE||process.env.FUNCTION_NAME?0:3e3}r.requestTimeout=requestTimeout},1585:(e,r,i)=>{"use strict";const{PassThrough:n}=i(2781);e.exports=e=>{e={...e};const{array:r}=e;let{encoding:i}=e;const a=i==="buffer";let s=false;if(r){s=!(i||a)}else{i=i||"utf8"}if(a){i=null}const o=new n({objectMode:s});if(i){o.setEncoding(i)}let c=0;const l=[];o.on("data",(e=>{l.push(e);if(s){c=l.length}else{c+=e.length}}));o.getBufferedValue=()=>{if(r){return l}return a?Buffer.concat(l,c):l.join("")};o.getBufferedLength=()=>c;return o}},1766:(e,r,i)=>{"use strict";const{constants:n}=i(4300);const a=i(2781);const{promisify:s}=i(3837);const o=i(1585);const c=s(a.pipeline);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,r){if(!e){throw new Error("Expected a stream")}r={maxBuffer:Infinity,...r};const{maxBuffer:i}=r;const a=o(r);await new Promise(((r,s)=>{const rejectPromise=e=>{if(e&&a.getBufferedLength()<=n.MAX_LENGTH){e.bufferedData=a.getBufferedValue()}s(e)};(async()=>{try{await c(e,a);r()}catch(e){rejectPromise(e)}})();a.on("data",(()=>{if(a.getBufferedLength()>i){rejectPromise(new MaxBufferError)}}))}));return a.getBufferedValue()}e.exports=getStream;e.exports.buffer=(e,r)=>getStream(e,{...r,encoding:"buffer"});e.exports.array=(e,r)=>getStream(e,{...r,array:true});e.exports.MaxBufferError=MaxBufferError},7625:(e,r,i)=>{r.setopts=setopts;r.ownProp=ownProp;r.makeAbs=makeAbs;r.finish=finish;r.mark=mark;r.isIgnored=isIgnored;r.childrenIgnored=childrenIgnored;function ownProp(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var n=i(1017);var a=i(3973);var s=i(8714);var o=a.Minimatch;function alphasort(e,r){return e.localeCompare(r,"en")}function setupIgnores(e,r){e.ignore=r.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var r=null;if(e.slice(-3)==="/**"){var i=e.replace(/(\/\*\*)+$/,"");r=new o(i,{dot:true})}return{matcher:new o(e,{dot:true}),gmatcher:r}}function setopts(e,r,i){if(!i)i={};if(i.matchBase&&-1===r.indexOf("/")){if(i.noglobstar){throw new Error("base matching requires globstar")}r="**/"+r}e.silent=!!i.silent;e.pattern=r;e.strict=i.strict!==false;e.realpath=!!i.realpath;e.realpathCache=i.realpathCache||Object.create(null);e.follow=!!i.follow;e.dot=!!i.dot;e.mark=!!i.mark;e.nodir=!!i.nodir;if(e.nodir)e.mark=true;e.sync=!!i.sync;e.nounique=!!i.nounique;e.nonull=!!i.nonull;e.nosort=!!i.nosort;e.nocase=!!i.nocase;e.stat=!!i.stat;e.noprocess=!!i.noprocess;e.absolute=!!i.absolute;e.maxLength=i.maxLength||Infinity;e.cache=i.cache||Object.create(null);e.statCache=i.statCache||Object.create(null);e.symlinks=i.symlinks||Object.create(null);setupIgnores(e,i);e.changedCwd=false;var a=process.cwd();if(!ownProp(i,"cwd"))e.cwd=a;else{e.cwd=n.resolve(i.cwd);e.changedCwd=e.cwd!==a}e.root=i.root||n.resolve(e.cwd,"/");e.root=n.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=s(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!i.nomount;i.nonegate=true;i.nocomment=true;e.minimatch=new o(r,i);e.options=e.minimatch.options}function finish(e){var r=e.nounique;var i=r?[]:Object.create(null);for(var n=0,a=e.matches.length;n{e.exports=glob;var n=i(7147);var a=i(6863);var s=i(3973);var o=s.Minimatch;var c=i(4124);var l=i(2361).EventEmitter;var p=i(1017);var d=i(9491);var h=i(8714);var g=i(9010);var v=i(7625);var y=v.setopts;var b=v.ownProp;var x=i(2492);var E=i(3837);var w=v.childrenIgnored;var C=v.isIgnored;var T=i(1223);function glob(e,r,i){if(typeof r==="function")i=r,r={};if(!r)r={};if(r.sync){if(i)throw new TypeError("callback provided to sync glob");return g(e,r)}return new Glob(e,r,i)}glob.sync=g;var _=glob.GlobSync=g.GlobSync;glob.glob=glob;function extend(e,r){if(r===null||typeof r!=="object"){return e}var i=Object.keys(r);var n=i.length;while(n--){e[i[n]]=r[i[n]]}return e}glob.hasMagic=function(e,r){var i=extend({},r);i.noprocess=true;var n=new Glob(e,i);var a=n.minimatch.set;if(!e)return false;if(a.length>1)return true;for(var s=0;sthis.maxLength)return r();if(!this.stat&&b(this.cache,i)){var s=this.cache[i];if(Array.isArray(s))s="DIR";if(!a||s==="DIR")return r(null,s);if(a&&s==="FILE")return r()}var o;var c=this.statCache[i];if(c!==undefined){if(c===false)return r(null,c);else{var l=c.isDirectory()?"DIR":"FILE";if(a&&l==="FILE")return r();else return r(null,l,c)}}var p=this;var d=x("stat\0"+i,lstatcb_);if(d)n.lstat(i,d);function lstatcb_(a,s){if(s&&s.isSymbolicLink()){return n.stat(i,(function(n,a){if(n)p._stat2(e,i,null,s,r);else p._stat2(e,i,n,a,r)}))}else{p._stat2(e,i,a,s,r)}}};Glob.prototype._stat2=function(e,r,i,n,a){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR")){this.statCache[r]=false;return a()}var s=e.slice(-1)==="/";this.statCache[r]=n;if(r.slice(-1)==="/"&&n&&!n.isDirectory())return a(null,false,n);var o=true;if(n)o=n.isDirectory()?"DIR":"FILE";this.cache[r]=this.cache[r]||o;if(s&&o==="FILE")return a();return a(null,o,n)}},9010:(e,r,i)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var n=i(7147);var a=i(6863);var s=i(3973);var o=s.Minimatch;var c=i(1957).Glob;var l=i(3837);var p=i(1017);var d=i(9491);var h=i(8714);var g=i(7625);var v=g.setopts;var y=g.ownProp;var b=g.childrenIgnored;var x=g.isIgnored;function globSync(e,r){if(typeof r==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,r).found}function GlobSync(e,r){if(!e)throw new Error("must provide pattern");if(typeof r==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,r);v(this,e,r);if(this.noprocess)return this;var i=this.minimatch.set.length;this.matches=new Array(i);for(var n=0;nthis.maxLength)return false;if(!this.stat&&y(this.cache,r)){var a=this.cache[r];if(Array.isArray(a))a="DIR";if(!i||a==="DIR")return a;if(i&&a==="FILE")return false}var s;var o=this.statCache[r];if(!o){var c;try{c=n.lstatSync(r)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[r]=false;return false}}if(c&&c.isSymbolicLink()){try{o=n.statSync(r)}catch(e){o=c}}else{o=c}}this.statCache[r]=o;var a=true;if(o)a=o.isDirectory()?"DIR":"FILE";this.cache[r]=this.cache[r]||a;if(i&&a==="FILE")return false;return a};GlobSync.prototype._mark=function(e){return g.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return g.makeAbs(this,e)}},4627:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.AuthClient=void 0;const n=i(2361);const a=i(2649);class AuthClient extends n.EventEmitter{constructor(){super(...arguments);this.transporter=new a.DefaultTransporter;this.credentials={};this.eagerRefreshThresholdMillis=5*60*1e3;this.forceRefreshOnFailure=false}setCredentials(e){this.credentials=e}addSharedMetadataHeaders(e){if(!e["x-goog-user-project"]&&this.quotaProjectId){e["x-goog-user-project"]=this.quotaProjectId}return e}}r.AuthClient=AuthClient},1569:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.AwsClient=void 0;const n=i(1754);const a=i(7391);class AwsClient extends a.BaseExternalAccountClient{constructor(e,r){var i;super(e,r);this.environmentId=e.credential_source.environment_id;this.regionUrl=e.credential_source.region_url;this.securityCredentialsUrl=e.credential_source.url;this.regionalCredVerificationUrl=e.credential_source.regional_cred_verification_url;const n=(i=this.environmentId)===null||i===void 0?void 0:i.match(/^(aws)(\d+)$/);if(!n||!this.regionalCredVerificationUrl){throw new Error('No valid AWS "credential_source" provided')}else if(parseInt(n[2],10)!==1){throw new Error(`aws version "${n[2]}" is not supported in the current build.`)}this.awsRequestSigner=null;this.region=""}async retrieveSubjectToken(){if(!this.awsRequestSigner){this.region=await this.getAwsRegion();this.awsRequestSigner=new n.AwsRequestSigner((async()=>{if(process.env["AWS_ACCESS_KEY_ID"]&&process.env["AWS_SECRET_ACCESS_KEY"]){return{accessKeyId:process.env["AWS_ACCESS_KEY_ID"],secretAccessKey:process.env["AWS_SECRET_ACCESS_KEY"],token:process.env["AWS_SESSION_TOKEN"]}}const e=await this.getAwsRoleName();const r=await this.getAwsSecurityCredentials(e);return{accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,token:r.Token}}),this.region)}const e=await this.awsRequestSigner.getRequestOptions({url:this.regionalCredVerificationUrl.replace("{region}",this.region),method:"POST"});const r=[];const i=Object.assign({"x-goog-cloud-target-resource":this.audience},e.headers);for(const e in i){r.push({key:e,value:i[e]})}return encodeURIComponent(JSON.stringify({url:e.url,method:e.method,headers:r}))}async getAwsRegion(){if(process.env["AWS_REGION"]||process.env["AWS_DEFAULT_REGION"]){return process.env["AWS_REGION"]||process.env["AWS_DEFAULT_REGION"]}if(!this.regionUrl){throw new Error("Unable to determine AWS region due to missing "+'"options.credential_source.region_url"')}const e={url:this.regionUrl,method:"GET",responseType:"text"};const r=await this.transporter.request(e);return r.data.substr(0,r.data.length-1)}async getAwsRoleName(){if(!this.securityCredentialsUrl){throw new Error("Unable to determine AWS role name due to missing "+'"options.credential_source.url"')}const e={url:this.securityCredentialsUrl,method:"GET",responseType:"text"};const r=await this.transporter.request(e);return r.data}async getAwsSecurityCredentials(e){const r=await this.transporter.request({url:`${this.securityCredentialsUrl}/${e}`,responseType:"json"});return r.data}}r.AwsClient=AwsClient},1754:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.AwsRequestSigner=void 0;const n=i(8043);const a="AWS4-HMAC-SHA256";const s="aws4_request";class AwsRequestSigner{constructor(e,r){this.getCredentials=e;this.region=r;this.crypto=n.createCrypto()}async getRequestOptions(e){if(!e.url){throw new Error('"url" is required in "amzOptions"')}const r=typeof e.data==="object"?JSON.stringify(e.data):e.data;const i=e.url;const n=e.method||"GET";const a=e.body||r;const s=e.headers;const o=await this.getCredentials();const c=new URL(i);const l=await generateAuthenticationHeaderMap({crypto:this.crypto,host:c.host,canonicalUri:c.pathname,canonicalQuerystring:c.search.substr(1),method:n,region:this.region,securityCredentials:o,requestPayload:a,additionalAmzHeaders:s});const p=Object.assign(l.amzDate?{"x-amz-date":l.amzDate}:{},{Authorization:l.authorizationHeader,host:c.host},s||{});if(o.token){Object.assign(p,{"x-amz-security-token":o.token})}const d={url:i,method:n,headers:p};if(typeof a!=="undefined"){d.body=a}return d}}r.AwsRequestSigner=AwsRequestSigner;async function sign(e,r,i){return await e.signWithHmacSha256(r,i)}async function getSigningKey(e,r,i,n,a){const s=await sign(e,`AWS4${r}`,i);const o=await sign(e,s,n);const c=await sign(e,o,a);const l=await sign(e,c,"aws4_request");return l}async function generateAuthenticationHeaderMap(e){const r=e.additionalAmzHeaders||{};const i=e.requestPayload||"";const o=e.host.split(".")[0];const c=new Date;const l=c.toISOString().replace(/[-:]/g,"").replace(/\.[0-9]+/,"");const p=c.toISOString().replace(/[-]/g,"").replace(/T.*/,"");const d={};Object.keys(r).forEach((e=>{d[e.toLowerCase()]=r[e]}));if(e.securityCredentials.token){d["x-amz-security-token"]=e.securityCredentials.token}const h=Object.assign({host:e.host},d.date?{}:{"x-amz-date":l},d);let g="";const v=Object.keys(h).sort();v.forEach((e=>{g+=`${e}:${h[e]}\n`}));const y=v.join(";");const b=await e.crypto.sha256DigestHex(i);const x=`${e.method}\n`+`${e.canonicalUri}\n`+`${e.canonicalQuerystring}\n`+`${g}\n`+`${y}\n`+`${b}`;const E=`${p}/${e.region}/${o}/${s}`;const w=`${a}\n`+`${l}\n`+`${E}\n`+await e.crypto.sha256DigestHex(x);const C=await getSigningKey(e.crypto,e.securityCredentials.secretAccessKey,p,e.region,o);const T=await sign(e.crypto,C,w);const _=`${a} Credential=${e.securityCredentials.accessKeyId}/`+`${E}, SignedHeaders=${y}, `+`Signature=${n.fromArrayBufferToHex(T)}`;return{amzDate:d.date?undefined:l,authorizationHeader:_,canonicalQuerystring:e.canonicalQuerystring}}},7391:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.BaseExternalAccountClient=r.CLOUD_RESOURCE_MANAGER=r.EXTERNAL_ACCOUNT_TYPE=r.EXPIRATION_TIME_OFFSET=void 0;const n=i(2781);const a=i(4627);const s=i(6308);const o="urn:ietf:params:oauth:grant-type:token-exchange";const c="urn:ietf:params:oauth:token-type:access_token";const l="https://www.googleapis.com/auth/cloud-platform";const p="\\.googleapis\\.com$";const d="[^\\.\\s\\/\\\\]+";r.EXPIRATION_TIME_OFFSET=5*60*1e3;r.EXTERNAL_ACCOUNT_TYPE="external_account";r.CLOUD_RESOURCE_MANAGER="https://cloudresourcemanager.googleapis.com/v1/projects/";const h="//iam.googleapis.com/locations/[^/]+/workforcePools/[^/]+/providers/.+";class BaseExternalAccountClient extends a.AuthClient{constructor(e,i){super();if(e.type!==r.EXTERNAL_ACCOUNT_TYPE){throw new Error(`Expected "${r.EXTERNAL_ACCOUNT_TYPE}" type but `+`received "${e.type}"`)}this.clientAuth=e.client_id?{confidentialClientType:"basic",clientId:e.client_id,clientSecret:e.client_secret}:undefined;if(!this.validateGoogleAPIsUrl("sts",e.token_url)){throw new Error(`"${e.token_url}" is not a valid token url.`)}this.stsCredential=new s.StsCredentials(e.token_url,this.clientAuth);this.scopes=[l];this.cachedAccessToken=null;this.audience=e.audience;this.subjectTokenType=e.subject_token_type;this.quotaProjectId=e.quota_project_id;this.workforcePoolUserProject=e.workforce_pool_user_project;const n=new RegExp(h);if(this.workforcePoolUserProject&&!this.audience.match(n)){throw new Error("workforcePoolUserProject should not be set for non-workforce pool "+"credentials.")}if(typeof e.service_account_impersonation_url!=="undefined"&&!this.validateGoogleAPIsUrl("iamcredentials",e.service_account_impersonation_url)){throw new Error(`"${e.service_account_impersonation_url}" is `+"not a valid service account impersonation url.")}this.serviceAccountImpersonationUrl=e.service_account_impersonation_url;if(typeof(i===null||i===void 0?void 0:i.eagerRefreshThresholdMillis)!=="number"){this.eagerRefreshThresholdMillis=r.EXPIRATION_TIME_OFFSET}else{this.eagerRefreshThresholdMillis=i.eagerRefreshThresholdMillis}this.forceRefreshOnFailure=!!(i===null||i===void 0?void 0:i.forceRefreshOnFailure);this.projectId=null;this.projectNumber=this.getProjectNumber(this.audience)}getServiceAccountEmail(){var e;if(this.serviceAccountImpersonationUrl){const r=/serviceAccounts\/(?[^:]+):generateAccessToken$/;const i=r.exec(this.serviceAccountImpersonationUrl);return((e=i===null||i===void 0?void 0:i.groups)===null||e===void 0?void 0:e.email)||null}return null}setCredentials(e){super.setCredentials(e);this.cachedAccessToken=e}async getAccessToken(){if(!this.cachedAccessToken||this.isExpired(this.cachedAccessToken)){await this.refreshAccessTokenAsync()}return{token:this.cachedAccessToken.access_token,res:this.cachedAccessToken.res}}async getRequestHeaders(){const e=await this.getAccessToken();const r={Authorization:`Bearer ${e.token}`};return this.addSharedMetadataHeaders(r)}request(e,r){if(r){this.requestAsync(e).then((e=>r(null,e)),(e=>r(e,e.response)))}else{return this.requestAsync(e)}}async getProjectId(){const e=this.projectNumber||this.workforcePoolUserProject;if(this.projectId){return this.projectId}else if(e){const i=await this.getRequestHeaders();const n=await this.transporter.request({headers:i,url:`${r.CLOUD_RESOURCE_MANAGER}${e}`,responseType:"json"});this.projectId=n.data.projectId;return this.projectId}return null}async requestAsync(e,r=false){let i;try{const r=await this.getRequestHeaders();e.headers=e.headers||{};if(r&&r["x-goog-user-project"]){e.headers["x-goog-user-project"]=r["x-goog-user-project"]}if(r&&r.Authorization){e.headers.Authorization=r.Authorization}i=await this.transporter.request(e)}catch(i){const a=i.response;if(a){const i=a.status;const s=a.config.data instanceof n.Readable;const o=i===401||i===403;if(!r&&o&&!s&&this.forceRefreshOnFailure){await this.refreshAccessTokenAsync();return await this.requestAsync(e,true)}}throw i}return i}async refreshAccessTokenAsync(){const e=await this.retrieveSubjectToken();const r={grantType:o,audience:this.audience,requestedTokenType:c,subjectToken:e,subjectTokenType:this.subjectTokenType,scope:this.serviceAccountImpersonationUrl?[l]:this.getScopesArray()};const i=!this.clientAuth&&this.workforcePoolUserProject?{userProject:this.workforcePoolUserProject}:undefined;const n=await this.stsCredential.exchangeToken(r,undefined,i);if(this.serviceAccountImpersonationUrl){this.cachedAccessToken=await this.getImpersonatedAccessToken(n.access_token)}else if(n.expires_in){this.cachedAccessToken={access_token:n.access_token,expiry_date:(new Date).getTime()+n.expires_in*1e3,res:n.res}}else{this.cachedAccessToken={access_token:n.access_token,res:n.res}}this.credentials={};Object.assign(this.credentials,this.cachedAccessToken);delete this.credentials.res;this.emit("tokens",{refresh_token:null,expiry_date:this.cachedAccessToken.expiry_date,access_token:this.cachedAccessToken.access_token,token_type:"Bearer",id_token:null});return this.cachedAccessToken}getProjectNumber(e){const r=e.match(/\/projects\/([^/]+)/);if(!r){return null}return r[1]}async getImpersonatedAccessToken(e){const r={url:this.serviceAccountImpersonationUrl,method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},data:{scope:this.getScopesArray()},responseType:"json"};const i=await this.transporter.request(r);const n=i.data;return{access_token:n.accessToken,expiry_date:new Date(n.expireTime).getTime(),res:i}}isExpired(e){const r=(new Date).getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:false}getScopesArray(){if(typeof this.scopes==="string"){return[this.scopes]}else if(typeof this.scopes==="undefined"){return[l]}else{return this.scopes}}validateGoogleAPIsUrl(e,r){let i;try{i=new URL(r)}catch(e){return false}const n=i.hostname;if(i.protocol!=="https:"){return false}const a=[new RegExp("^"+d+"\\."+e+p),new RegExp("^"+e+p),new RegExp("^"+e+"\\."+d+p),new RegExp("^"+d+"\\-"+e+p)];for(const e of a){if(n.match(e)){return true}}return false}}r.BaseExternalAccountClient=BaseExternalAccountClient},6875:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Compute=void 0;const n=i(7265);const a=i(3563);const s=i(3936);class Compute extends s.OAuth2Client{constructor(e={}){super(e);this.credentials={expiry_date:1,refresh_token:"compute-placeholder"};this.serviceAccountEmail=e.serviceAccountEmail||"default";this.scopes=n(e.scopes)}async refreshTokenNoCache(e){const r=`service-accounts/${this.serviceAccountEmail}/token`;let i;try{const e={property:r};if(this.scopes.length>0){e.params={scopes:this.scopes.join(",")}}i=await a.instance(e)}catch(e){e.message=`Could not refresh access token: ${e.message}`;this.wrapError(e);throw e}const n=i;if(i&&i.expires_in){n.expiry_date=(new Date).getTime()+i.expires_in*1e3;delete n.expires_in}this.emit("tokens",n);return{tokens:n,res:null}}async fetchIdToken(e){const r=`service-accounts/${this.serviceAccountEmail}/identity`+`?format=full&audience=${e}`;let i;try{const e={property:r};i=await a.instance(e)}catch(e){e.message=`Could not fetch ID token: ${e.message}`;throw e}return i}wrapError(e){const r=e.response;if(r&&r.status){e.code=r.status.toString();if(r.status===403){e.message="A Forbidden error was returned while attempting to retrieve an access "+"token for the Compute Engine built-in service account. This may be because the Compute "+"Engine instance does not have the correct permission scopes specified: "+e.message}else if(r.status===404){e.message="A Not Found error was returned while attempting to retrieve an access"+"token for the Compute Engine built-in service account. This may be because the Compute "+"Engine instance does not have any permission scopes specified: "+e.message}}}}r.Compute=Compute},6270:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.DownscopedClient=r.EXPIRATION_TIME_OFFSET=r.MAX_ACCESS_BOUNDARY_RULES_COUNT=void 0;const n=i(2781);const a=i(4627);const s=i(6308);const o="urn:ietf:params:oauth:grant-type:token-exchange";const c="urn:ietf:params:oauth:token-type:access_token";const l="urn:ietf:params:oauth:token-type:access_token";const p="https://sts.googleapis.com/v1/token";r.MAX_ACCESS_BOUNDARY_RULES_COUNT=10;r.EXPIRATION_TIME_OFFSET=5*60*1e3;class DownscopedClient extends a.AuthClient{constructor(e,i,n,a){super();this.authClient=e;this.credentialAccessBoundary=i;if(i.accessBoundary.accessBoundaryRules.length===0){throw new Error("At least one access boundary rule needs to be defined.")}else if(i.accessBoundary.accessBoundaryRules.length>r.MAX_ACCESS_BOUNDARY_RULES_COUNT){throw new Error("The provided access boundary has more than "+`${r.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`)}for(const e of i.accessBoundary.accessBoundaryRules){if(e.availablePermissions.length===0){throw new Error("At least one permission should be defined in access boundary rules.")}}this.stsCredential=new s.StsCredentials(p);this.cachedDownscopedAccessToken=null;if(typeof(n===null||n===void 0?void 0:n.eagerRefreshThresholdMillis)!=="number"){this.eagerRefreshThresholdMillis=r.EXPIRATION_TIME_OFFSET}else{this.eagerRefreshThresholdMillis=n.eagerRefreshThresholdMillis}this.forceRefreshOnFailure=!!(n===null||n===void 0?void 0:n.forceRefreshOnFailure);this.quotaProjectId=a}setCredentials(e){if(!e.expiry_date){throw new Error("The access token expiry_date field is missing in the provided "+"credentials.")}super.setCredentials(e);this.cachedDownscopedAccessToken=e}async getAccessToken(){if(!this.cachedDownscopedAccessToken||this.isExpired(this.cachedDownscopedAccessToken)){await this.refreshAccessTokenAsync()}return{token:this.cachedDownscopedAccessToken.access_token,expirationTime:this.cachedDownscopedAccessToken.expiry_date,res:this.cachedDownscopedAccessToken.res}}async getRequestHeaders(){const e=await this.getAccessToken();const r={Authorization:`Bearer ${e.token}`};return this.addSharedMetadataHeaders(r)}request(e,r){if(r){this.requestAsync(e).then((e=>r(null,e)),(e=>r(e,e.response)))}else{return this.requestAsync(e)}}async requestAsync(e,r=false){let i;try{const r=await this.getRequestHeaders();e.headers=e.headers||{};if(r&&r["x-goog-user-project"]){e.headers["x-goog-user-project"]=r["x-goog-user-project"]}if(r&&r.Authorization){e.headers.Authorization=r.Authorization}i=await this.transporter.request(e)}catch(i){const a=i.response;if(a){const i=a.status;const s=a.config.data instanceof n.Readable;const o=i===401||i===403;if(!r&&o&&!s&&this.forceRefreshOnFailure){await this.refreshAccessTokenAsync();return await this.requestAsync(e,true)}}throw i}return i}async refreshAccessTokenAsync(){var e;const r=(await this.authClient.getAccessToken()).token;const i={grantType:o,requestedTokenType:c,subjectToken:r,subjectTokenType:l};const n=await this.stsCredential.exchangeToken(i,undefined,this.credentialAccessBoundary);const a=((e=this.authClient.credentials)===null||e===void 0?void 0:e.expiry_date)||null;const s=n.expires_in?(new Date).getTime()+n.expires_in*1e3:a;this.cachedDownscopedAccessToken={access_token:n.access_token,expiry_date:s,res:n.res};this.credentials={};Object.assign(this.credentials,this.cachedDownscopedAccessToken);delete this.credentials.res;this.emit("tokens",{refresh_token:null,expiry_date:this.cachedDownscopedAccessToken.expiry_date,access_token:this.cachedDownscopedAccessToken.access_token,token_type:"Bearer",id_token:null});return this.cachedDownscopedAccessToken}isExpired(e){const r=(new Date).getTime();return e.expiry_date?r>=e.expiry_date-this.eagerRefreshThresholdMillis:false}}r.DownscopedClient=DownscopedClient},1380:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getEnv=r.clear=r.GCPEnv=void 0;const n=i(3563);var a;(function(e){e["APP_ENGINE"]="APP_ENGINE";e["KUBERNETES_ENGINE"]="KUBERNETES_ENGINE";e["CLOUD_FUNCTIONS"]="CLOUD_FUNCTIONS";e["COMPUTE_ENGINE"]="COMPUTE_ENGINE";e["CLOUD_RUN"]="CLOUD_RUN";e["NONE"]="NONE"})(a=r.GCPEnv||(r.GCPEnv={}));let s;function clear(){s=undefined}r.clear=clear;async function getEnv(){if(s){return s}s=getEnvMemoized();return s}r.getEnv=getEnv;async function getEnvMemoized(){let e=a.NONE;if(isAppEngine()){e=a.APP_ENGINE}else if(isCloudFunction()){e=a.CLOUD_FUNCTIONS}else if(await isComputeEngine()){if(await isKubernetesEngine()){e=a.KUBERNETES_ENGINE}else if(isCloudRun()){e=a.CLOUD_RUN}else{e=a.COMPUTE_ENGINE}}else{e=a.NONE}return e}function isAppEngine(){return!!(process.env.GAE_SERVICE||process.env.GAE_MODULE_NAME)}function isCloudFunction(){return!!(process.env.FUNCTION_NAME||process.env.FUNCTION_TARGET)}function isCloudRun(){return!!process.env.K_CONFIGURATION}async function isKubernetesEngine(){try{await n.instance("attributes/cluster-name");return true}catch(e){return false}}async function isComputeEngine(){return n.isAvailable()}},4381:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ExternalAccountClient=void 0;const n=i(7391);const a=i(117);const s=i(1569);class ExternalAccountClient{constructor(){throw new Error("ExternalAccountClients should be initialized via: "+"ExternalAccountClient.fromJSON(), "+"directly via explicit constructors, eg. "+"new AwsClient(options), new IdentityPoolClient(options) or via "+"new GoogleAuth(options).getClient()")}static fromJSON(e,r){var i;if(e&&e.type===n.EXTERNAL_ACCOUNT_TYPE){if((i=e.credential_source)===null||i===void 0?void 0:i.environment_id){return new s.AwsClient(e,r)}else{return new a.IdentityPoolClient(e,r)}}else{return null}}}r.ExternalAccountClient=ExternalAccountClient},695:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GoogleAuth=r.CLOUD_SDK_CLIENT_ID=void 0;const n=i(2081);const a=i(7147);const s=i(3563);const o=i(2037);const c=i(1017);const l=i(8043);const p=i(2649);const d=i(6875);const h=i(298);const g=i(1380);const v=i(3959);const y=i(8790);const b=i(4381);const x=i(7391);r.CLOUD_SDK_CLIENT_ID="764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com";class GoogleAuth{constructor(e){this.checkIsGCE=undefined;this.jsonContent=null;this.cachedCredential=null;e=e||{};this._cachedProjectId=e.projectId||null;this.keyFilename=e.keyFilename||e.keyFile;this.scopes=e.scopes;this.jsonContent=e.credentials||null;this.clientOptions=e.clientOptions}get isGCE(){return this.checkIsGCE}setGapicJWTValues(e){e.defaultServicePath=this.defaultServicePath;e.useJWTAccessWithScope=this.useJWTAccessWithScope;e.defaultScopes=this.defaultScopes}getProjectId(e){if(e){this.getProjectIdAsync().then((r=>e(null,r)),e)}else{return this.getProjectIdAsync()}}getProjectIdAsync(){if(this._cachedProjectId){return Promise.resolve(this._cachedProjectId)}if(!this._getDefaultProjectIdPromise){this._getDefaultProjectIdPromise=new Promise((async(e,r)=>{try{const r=this.getProductionProjectId()||await this.getFileProjectId()||await this.getDefaultServiceProjectId()||await this.getGCEProjectId()||await this.getExternalAccountClientProjectId();this._cachedProjectId=r;if(!r){throw new Error("Unable to detect a Project Id in the current environment. \n"+"To learn more about authentication and Google APIs, visit: \n"+"https://cloud.google.com/docs/authentication/getting-started")}e(r)}catch(e){r(e)}}))}return this._getDefaultProjectIdPromise}getAnyScopes(){return this.scopes||this.defaultScopes}getApplicationDefault(e={},r){let i;if(typeof e==="function"){r=e}else{i=e}if(r){this.getApplicationDefaultAsync(i).then((e=>r(null,e.credential,e.projectId)),r)}else{return this.getApplicationDefaultAsync(i)}}async getApplicationDefaultAsync(e={}){if(this.cachedCredential){return{credential:this.cachedCredential,projectId:await this.getProjectIdAsync()}}let r;let i;r=await this._tryGetApplicationCredentialsFromEnvironmentVariable(e);if(r){if(r instanceof v.JWT){r.scopes=this.scopes}else if(r instanceof x.BaseExternalAccountClient){r.scopes=this.getAnyScopes()}this.cachedCredential=r;i=await this.getProjectId();return{credential:r,projectId:i}}r=await this._tryGetApplicationCredentialsFromWellKnownFile(e);if(r){if(r instanceof v.JWT){r.scopes=this.scopes}else if(r instanceof x.BaseExternalAccountClient){r.scopes=this.getAnyScopes()}this.cachedCredential=r;i=await this.getProjectId();return{credential:r,projectId:i}}let n;try{n=await this._checkIsGCE()}catch(e){e.message=`Unexpected error determining execution environment: ${e.message}`;throw e}if(!n){throw new Error("Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.")}e.scopes=this.getAnyScopes();this.cachedCredential=new d.Compute(e);i=await this.getProjectId();return{projectId:i,credential:this.cachedCredential}}async _checkIsGCE(){if(this.checkIsGCE===undefined){this.checkIsGCE=await s.isAvailable()}return this.checkIsGCE}async _tryGetApplicationCredentialsFromEnvironmentVariable(e){const r=process.env["GOOGLE_APPLICATION_CREDENTIALS"]||process.env["google_application_credentials"];if(!r||r.length===0){return null}try{return this._getApplicationCredentialsFromFilePath(r,e)}catch(e){e.message=`Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${e.message}`;throw e}}async _tryGetApplicationCredentialsFromWellKnownFile(e){let r=null;if(this._isWindows()){r=process.env["APPDATA"]}else{const e=process.env["HOME"];if(e){r=c.join(e,".config")}}if(r){r=c.join(r,"gcloud","application_default_credentials.json");if(!a.existsSync(r)){r=null}}if(!r){return null}const i=await this._getApplicationCredentialsFromFilePath(r,e);return i}async _getApplicationCredentialsFromFilePath(e,r={}){if(!e||e.length===0){throw new Error("The file path is invalid.")}try{e=a.realpathSync(e);if(!a.lstatSync(e).isFile()){throw new Error}}catch(r){r.message=`The file at ${e} does not exist, or it is not a file. ${r.message}`;throw r}const i=a.createReadStream(e);return this.fromStream(i,r)}fromJSON(e,r){let i;if(!e){throw new Error("Must pass in a JSON object containing the Google auth settings.")}r=r||{};if(e.type==="authorized_user"){i=new y.UserRefreshClient(r);i.fromJSON(e)}else if(e.type===x.EXTERNAL_ACCOUNT_TYPE){i=b.ExternalAccountClient.fromJSON(e,r);i.scopes=this.getAnyScopes()}else{r.scopes=this.scopes;i=new v.JWT(r);this.setGapicJWTValues(i);i.fromJSON(e)}return i}_cacheClientFromJSON(e,r){let i;r=r||{};if(e.type==="authorized_user"){i=new y.UserRefreshClient(r);i.fromJSON(e)}else if(e.type===x.EXTERNAL_ACCOUNT_TYPE){i=b.ExternalAccountClient.fromJSON(e,r);i.scopes=this.getAnyScopes()}else{r.scopes=this.scopes;i=new v.JWT(r);this.setGapicJWTValues(i);i.fromJSON(e)}this.jsonContent=e;this.cachedCredential=i;return this.cachedCredential}fromStream(e,r={},i){let n={};if(typeof r==="function"){i=r}else{n=r}if(i){this.fromStreamAsync(e,n).then((e=>i(null,e)),i)}else{return this.fromStreamAsync(e,n)}}fromStreamAsync(e,r){return new Promise(((i,n)=>{if(!e){throw new Error("Must pass in a stream containing the Google auth settings.")}let a="";e.setEncoding("utf8").on("error",n).on("data",(e=>a+=e)).on("end",(()=>{try{try{const e=JSON.parse(a);const n=this._cacheClientFromJSON(e,r);return i(n)}catch(e){if(!this.keyFilename)throw e;const r=new v.JWT({...this.clientOptions,keyFile:this.keyFilename});this.cachedCredential=r;this.setGapicJWTValues(r);return i(r)}}catch(e){return n(e)}}))}))}fromAPIKey(e,r){r=r||{};const i=new v.JWT(r);i.fromAPIKey(e);return i}_isWindows(){const e=o.platform();if(e&&e.length>=3){if(e.substring(0,3).toLowerCase()==="win"){return true}}return false}async getDefaultServiceProjectId(){return new Promise((e=>{n.exec("gcloud config config-helper --format json",((r,i)=>{if(!r&&i){try{const r=JSON.parse(i).configuration.properties.core.project;e(r);return}catch(e){}}e(null)}))}))}getProductionProjectId(){return process.env["GCLOUD_PROJECT"]||process.env["GOOGLE_CLOUD_PROJECT"]||process.env["gcloud_project"]||process.env["google_cloud_project"]}async getFileProjectId(){if(this.cachedCredential){return this.cachedCredential.projectId}if(this.keyFilename){const e=await this.getClient();if(e&&e.projectId){return e.projectId}}const e=await this._tryGetApplicationCredentialsFromEnvironmentVariable();if(e){return e.projectId}else{return null}}async getExternalAccountClientProjectId(){if(!this.jsonContent||this.jsonContent.type!==x.EXTERNAL_ACCOUNT_TYPE){return null}const e=await this.getClient();return await e.getProjectId()}async getGCEProjectId(){try{const e=await s.project("project-id");return e}catch(e){return null}}getCredentials(e){if(e){this.getCredentialsAsync().then((r=>e(null,r)),e)}else{return this.getCredentialsAsync()}}async getCredentialsAsync(){await this.getClient();if(this.jsonContent){const e={client_email:this.jsonContent.client_email,private_key:this.jsonContent.private_key};return e}const e=await this._checkIsGCE();if(!e){throw new Error("Unknown error.")}const r=await s.instance({property:"service-accounts/",params:{recursive:"true"}});if(!r||!r.default||!r.default.email){throw new Error("Failure from metadata server.")}return{client_email:r.default.email}}async getClient(e){if(e){throw new Error("Passing options to getClient is forbidden in v5.0.0. Use new GoogleAuth(opts) instead.")}if(!this.cachedCredential){if(this.jsonContent){this._cacheClientFromJSON(this.jsonContent,this.clientOptions)}else if(this.keyFilename){const e=c.resolve(this.keyFilename);const r=a.createReadStream(e);await this.fromStreamAsync(r,this.clientOptions)}else{await this.getApplicationDefaultAsync(this.clientOptions)}}return this.cachedCredential}async getIdTokenClient(e){const r=await this.getClient();if(!("fetchIdToken"in r)){throw new Error("Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.")}return new h.IdTokenClient({targetAudience:e,idTokenProvider:r})}async getAccessToken(){const e=await this.getClient();return(await e.getAccessToken()).token}async getRequestHeaders(e){const r=await this.getClient();return r.getRequestHeaders(e)}async authorizeRequest(e){e=e||{};const r=e.url||e.uri;const i=await this.getClient();const n=await i.getRequestHeaders(r);e.headers=Object.assign(e.headers||{},n);return e}async request(e){const r=await this.getClient();return r.request(e)}getEnv(){return g.getEnv()}async sign(e){const r=await this.getClient();const i=l.createCrypto();if(r instanceof v.JWT&&r.key){const n=await i.sign(r.key,e);return n}if(r instanceof x.BaseExternalAccountClient&&r.getServiceAccountEmail()){return this.signBlob(i,r.getServiceAccountEmail(),e)}const n=await this.getProjectId();if(!n){throw new Error("Cannot sign data without a project ID.")}const a=await this.getCredentials();if(!a.client_email){throw new Error("Cannot sign data without `client_email`.")}return this.signBlob(i,a.client_email,e)}async signBlob(e,r,i){const n="https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/"+`${r}:signBlob`;const a=await this.request({method:"POST",url:n,data:{payload:e.encodeBase64StringUtf8(i)}});return a.data.signedBlob}}r.GoogleAuth=GoogleAuth;GoogleAuth.DefaultTransporter=p.DefaultTransporter},9735:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.IAMAuth=void 0;class IAMAuth{constructor(e,r){this.selector=e;this.token=r;this.selector=e;this.token=r}getRequestHeaders(){return{"x-goog-iam-authority-selector":this.selector,"x-goog-iam-authorization-token":this.token}}}r.IAMAuth=IAMAuth},117:(e,r,i)=>{"use strict";var n,a,s;Object.defineProperty(r,"__esModule",{value:true});r.IdentityPoolClient=void 0;const o=i(7147);const c=i(3837);const l=i(7391);const p=c.promisify((n=o.readFile)!==null&&n!==void 0?n:()=>{});const d=c.promisify((a=o.realpath)!==null&&a!==void 0?a:()=>{});const h=c.promisify((s=o.lstat)!==null&&s!==void 0?s:()=>{});class IdentityPoolClient extends l.BaseExternalAccountClient{constructor(e,r){var i,n;super(e,r);this.file=e.credential_source.file;this.url=e.credential_source.url;this.headers=e.credential_source.headers;if(!this.file&&!this.url){throw new Error('No valid Identity Pool "credential_source" provided')}this.formatType=((i=e.credential_source.format)===null||i===void 0?void 0:i.type)||"text";this.formatSubjectTokenFieldName=(n=e.credential_source.format)===null||n===void 0?void 0:n.subject_token_field_name;if(this.formatType!=="json"&&this.formatType!=="text"){throw new Error(`Invalid credential_source format "${this.formatType}"`)}if(this.formatType==="json"&&!this.formatSubjectTokenFieldName){throw new Error("Missing subject_token_field_name for JSON credential_source format")}}async retrieveSubjectToken(){if(this.file){return await this.getTokenFromFile(this.file,this.formatType,this.formatSubjectTokenFieldName)}return await this.getTokenFromUrl(this.url,this.formatType,this.formatSubjectTokenFieldName,this.headers)}async getTokenFromFile(e,r,i){try{e=await d(e);if(!(await h(e)).isFile()){throw new Error}}catch(r){r.message=`The file at ${e} does not exist, or it is not a file. ${r.message}`;throw r}let n;const a=await p(e,{encoding:"utf8"});if(r==="text"){n=a}else if(r==="json"&&i){const e=JSON.parse(a);n=e[i]}if(!n){throw new Error("Unable to parse the subject_token from the credential_source file")}return n}async getTokenFromUrl(e,r,i,n){const a={url:e,method:"GET",headers:n,responseType:r};let s;if(r==="text"){const e=await this.transporter.request(a);s=e.data}else if(r==="json"&&i){const e=await this.transporter.request(a);s=e.data[i]}if(!s){throw new Error("Unable to parse the subject_token from the credential_source URL")}return s}}r.IdentityPoolClient=IdentityPoolClient},298:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.IdTokenClient=void 0;const n=i(3936);class IdTokenClient extends n.OAuth2Client{constructor(e){super();this.targetAudience=e.targetAudience;this.idTokenProvider=e.idTokenProvider}async getRequestMetadataAsync(e){if(!this.credentials.id_token||(this.credentials.expiry_date||0){"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Impersonated=void 0;const n=i(3936);class Impersonated extends n.OAuth2Client{constructor(e={}){var r,i,a,s,o,c;super(e);this.credentials={expiry_date:1,refresh_token:"impersonated-placeholder"};this.sourceClient=(r=e.sourceClient)!==null&&r!==void 0?r:new n.OAuth2Client;this.targetPrincipal=(i=e.targetPrincipal)!==null&&i!==void 0?i:"";this.delegates=(a=e.delegates)!==null&&a!==void 0?a:[];this.targetScopes=(s=e.targetScopes)!==null&&s!==void 0?s:[];this.lifetime=(o=e.lifetime)!==null&&o!==void 0?o:3600;this.endpoint=(c=e.endpoint)!==null&&c!==void 0?c:"https://iamcredentials.googleapis.com"}async refreshToken(e){var r,i,n,a,s,o;try{await this.sourceClient.getAccessToken();const e="projects/-/serviceAccounts/"+this.targetPrincipal;const r=`${this.endpoint}/v1/${e}:generateAccessToken`;const i={delegates:this.delegates,scope:this.targetScopes,lifetime:this.lifetime+"s"};const n=await this.sourceClient.request({url:r,data:i,method:"POST"});const a=n.data;this.credentials.access_token=a.accessToken;this.credentials.expiry_date=Date.parse(a.expireTime);return{tokens:this.credentials,res:n}}catch(e){const c=(n=(i=(r=e===null||e===void 0?void 0:e.response)===null||r===void 0?void 0:r.data)===null||i===void 0?void 0:i.error)===null||n===void 0?void 0:n.status;const l=(o=(s=(a=e===null||e===void 0?void 0:e.response)===null||a===void 0?void 0:a.data)===null||s===void 0?void 0:s.error)===null||o===void 0?void 0:o.message;if(c&&l){e.message=`${c}: unable to impersonate: ${l}`;throw e}else{e.message=`unable to impersonate: ${e}`;throw e}}}}r.Impersonated=Impersonated},8740:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.JWTAccess=void 0;const n=i(4636);const a=i(7129);const s={alg:"RS256",typ:"JWT"};class JWTAccess{constructor(e,r,i,n){this.cache=new a({max:500,maxAge:60*60*1e3});this.email=e;this.key=r;this.keyId=i;this.eagerRefreshThresholdMillis=n!==null&&n!==void 0?n:5*60*1e3}getCachedKey(e,r){let i=e;if(r&&Array.isArray(r)&&r.length){i=e?`${e}_${r.join("_")}`:`${r.join("_")}`}else if(typeof r==="string"){i=e?`${e}_${r}`:r}if(!i){throw Error("Scopes or url must be provided")}return i}getRequestHeaders(e,r,i){const a=this.getCachedKey(e,i);const o=this.cache.get(a);const c=Date.now();if(o&&o.expiration-c>this.eagerRefreshThresholdMillis){return o.headers}const l=Math.floor(Date.now()/1e3);const p=JWTAccess.getExpirationTime(l);let d;if(Array.isArray(i)){i=i.join(" ")}if(i){d={iss:this.email,sub:this.email,scope:i,exp:p,iat:l}}else{d={iss:this.email,sub:this.email,aud:e,exp:p,iat:l}}if(r){for(const e in d){if(r[e]){throw new Error(`The '${e}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`)}}}const h=this.keyId?{...s,kid:this.keyId}:s;const g=Object.assign(d,r);const v=n.sign({header:h,payload:g,secret:this.key});const y={Authorization:`Bearer ${v}`};this.cache.set(a,{expiration:p*1e3,headers:y});return y}static getExpirationTime(e){const r=e+3600;return r}fromJSON(e){if(!e){throw new Error("Must pass in a JSON object containing the service account auth settings.")}if(!e.client_email){throw new Error("The incoming JSON object does not contain a client_email field")}if(!e.private_key){throw new Error("The incoming JSON object does not contain a private_key field")}this.email=e.client_email;this.key=e.private_key;this.keyId=e.private_key_id;this.projectId=e.project_id}fromStream(e,r){if(r){this.fromStreamAsync(e).then((()=>r()),r)}else{return this.fromStreamAsync(e)}}fromStreamAsync(e){return new Promise(((r,i)=>{if(!e){i(new Error("Must pass in a stream containing the service account auth settings."))}let n="";e.setEncoding("utf8").on("data",(e=>n+=e)).on("error",i).on("end",(()=>{try{const e=JSON.parse(n);this.fromJSON(e);r()}catch(e){i(e)}}))}))}}r.JWTAccess=JWTAccess},3959:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.JWT=void 0;const n=i(6031);const a=i(8740);const s=i(3936);class JWT extends s.OAuth2Client{constructor(e,r,i,n,a,s){const o=e&&typeof e==="object"?e:{email:e,keyFile:r,key:i,keyId:s,scopes:n,subject:a};super({eagerRefreshThresholdMillis:o.eagerRefreshThresholdMillis,forceRefreshOnFailure:o.forceRefreshOnFailure});this.email=o.email;this.keyFile=o.keyFile;this.key=o.key;this.keyId=o.keyId;this.scopes=o.scopes;this.subject=o.subject;this.additionalClaims=o.additionalClaims;this.credentials={refresh_token:"jwt-placeholder",expiry_date:1}}createScoped(e){return new JWT({email:this.email,keyFile:this.keyFile,key:this.key,keyId:this.keyId,scopes:e,subject:this.subject,additionalClaims:this.additionalClaims})}async getRequestMetadataAsync(e){e=this.defaultServicePath?`https://${this.defaultServicePath}/`:e;const r=!this.hasUserScopes()&&e||this.useJWTAccessWithScope&&this.hasAnyScopes();if(!this.apiKey&&r){if(this.additionalClaims&&this.additionalClaims.target_audience){const{tokens:e}=await this.refreshToken();return{headers:this.addSharedMetadataHeaders({Authorization:`Bearer ${e.id_token}`})}}else{if(!this.access){this.access=new a.JWTAccess(this.email,this.key,this.keyId,this.eagerRefreshThresholdMillis)}let r;if(this.hasUserScopes()){r=this.scopes}else if(!e){r=this.defaultScopes}const i=await this.access.getRequestHeaders(e!==null&&e!==void 0?e:undefined,this.additionalClaims,this.useJWTAccessWithScope?r:undefined);return{headers:this.addSharedMetadataHeaders(i)}}}else if(this.hasAnyScopes()||this.apiKey){return super.getRequestMetadataAsync(e)}else{return{headers:{}}}}async fetchIdToken(e){const r=new n.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes||this.defaultScopes,keyFile:this.keyFile,key:this.key,additionalClaims:{target_audience:e}});await r.getToken({forceRefresh:true});if(!r.idToken){throw new Error("Unknown error: Failed to fetch ID token")}return r.idToken}hasUserScopes(){if(!this.scopes){return false}return this.scopes.length>0}hasAnyScopes(){if(this.scopes&&this.scopes.length>0)return true;if(this.defaultScopes&&this.defaultScopes.length>0)return true;return false}authorize(e){if(e){this.authorizeAsync().then((r=>e(null,r)),e)}else{return this.authorizeAsync()}}async authorizeAsync(){const e=await this.refreshToken();if(!e){throw new Error("No result returned")}this.credentials=e.tokens;this.credentials.refresh_token="jwt-placeholder";this.key=this.gtoken.key;this.email=this.gtoken.iss;return e.tokens}async refreshTokenNoCache(e){const r=this.createGToken();const i=await r.getToken({forceRefresh:this.isTokenExpiring()});const n={access_token:i.access_token,token_type:"Bearer",expiry_date:r.expiresAt,id_token:r.idToken};this.emit("tokens",n);return{res:null,tokens:n}}createGToken(){if(!this.gtoken){this.gtoken=new n.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes||this.defaultScopes,keyFile:this.keyFile,key:this.key,additionalClaims:this.additionalClaims})}return this.gtoken}fromJSON(e){if(!e){throw new Error("Must pass in a JSON object containing the service account auth settings.")}if(!e.client_email){throw new Error("The incoming JSON object does not contain a client_email field")}if(!e.private_key){throw new Error("The incoming JSON object does not contain a private_key field")}this.email=e.client_email;this.key=e.private_key;this.keyId=e.private_key_id;this.projectId=e.project_id;this.quotaProjectId=e.quota_project_id}fromStream(e,r){if(r){this.fromStreamAsync(e).then((()=>r()),r)}else{return this.fromStreamAsync(e)}}fromStreamAsync(e){return new Promise(((r,i)=>{if(!e){throw new Error("Must pass in a stream containing the service account auth settings.")}let n="";e.setEncoding("utf8").on("error",i).on("data",(e=>n+=e)).on("end",(()=>{try{const e=JSON.parse(n);this.fromJSON(e);r()}catch(e){i(e)}}))}))}fromAPIKey(e){if(typeof e!=="string"){throw new Error("Must provide an API Key string.")}this.apiKey=e}async getCredentials(){if(this.key){return{private_key:this.key,client_email:this.email}}else if(this.keyFile){const e=this.createGToken();const r=await e.getCredentials(this.keyFile);return{private_key:r.privateKey,client_email:r.clientEmail}}throw new Error("A key or a keyFile must be provided to getCredentials.")}}r.JWT=JWT},4524:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.LoginTicket=void 0;class LoginTicket{constructor(e,r){this.envelope=e;this.payload=r}getEnvelope(){return this.envelope}getPayload(){return this.payload}getUserId(){const e=this.getPayload();if(e&&e.sub){return e.sub}return null}getAttributes(){return{envelope:this.getEnvelope(),payload:this.getPayload()}}}r.LoginTicket=LoginTicket},3936:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.OAuth2Client=r.CertificateFormat=r.CodeChallengeMethod=void 0;const n=i(3477);const a=i(2781);const s=i(1728);const o=i(8043);const c=i(4627);const l=i(4524);var p;(function(e){e["Plain"]="plain";e["S256"]="S256"})(p=r.CodeChallengeMethod||(r.CodeChallengeMethod={}));var d;(function(e){e["PEM"]="PEM";e["JWK"]="JWK"})(d=r.CertificateFormat||(r.CertificateFormat={}));class OAuth2Client extends c.AuthClient{constructor(e,r,i){super();this.certificateCache={};this.certificateExpiry=null;this.certificateCacheFormat=d.PEM;this.refreshTokenPromises=new Map;const n=e&&typeof e==="object"?e:{clientId:e,clientSecret:r,redirectUri:i};this._clientId=n.clientId;this._clientSecret=n.clientSecret;this.redirectUri=n.redirectUri;this.eagerRefreshThresholdMillis=n.eagerRefreshThresholdMillis||5*60*1e3;this.forceRefreshOnFailure=!!n.forceRefreshOnFailure}generateAuthUrl(e={}){if(e.code_challenge_method&&!e.code_challenge){throw new Error("If a code_challenge_method is provided, code_challenge must be included.")}e.response_type=e.response_type||"code";e.client_id=e.client_id||this._clientId;e.redirect_uri=e.redirect_uri||this.redirectUri;if(e.scope instanceof Array){e.scope=e.scope.join(" ")}const r=OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_;return r+"?"+n.stringify(e)}generateCodeVerifier(){throw new Error("generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.")}async generateCodeVerifierAsync(){const e=o.createCrypto();const r=e.randomBytesBase64(96);const i=r.replace(/\+/g,"~").replace(/=/g,"_").replace(/\//g,"-");const n=await e.sha256DigestBase64(i);const a=n.split("=")[0].replace(/\+/g,"-").replace(/\//g,"_");return{codeVerifier:i,codeChallenge:a}}getToken(e,r){const i=typeof e==="string"?{code:e}:e;if(r){this.getTokenAsync(i).then((e=>r(null,e.tokens,e.res)),(e=>r(e,null,e.response)))}else{return this.getTokenAsync(i)}}async getTokenAsync(e){const r=OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_;const i={code:e.code,client_id:e.client_id||this._clientId,client_secret:this._clientSecret,redirect_uri:e.redirect_uri||this.redirectUri,grant_type:"authorization_code",code_verifier:e.codeVerifier};const a=await this.transporter.request({method:"POST",url:r,data:n.stringify(i),headers:{"Content-Type":"application/x-www-form-urlencoded"}});const s=a.data;if(a.data&&a.data.expires_in){s.expiry_date=(new Date).getTime()+a.data.expires_in*1e3;delete s.expires_in}this.emit("tokens",s);return{tokens:s,res:a}}async refreshToken(e){if(!e){return this.refreshTokenNoCache(e)}if(this.refreshTokenPromises.has(e)){return this.refreshTokenPromises.get(e)}const r=this.refreshTokenNoCache(e).then((r=>{this.refreshTokenPromises.delete(e);return r}),(r=>{this.refreshTokenPromises.delete(e);throw r}));this.refreshTokenPromises.set(e,r);return r}async refreshTokenNoCache(e){if(!e){throw new Error("No refresh token is set.")}const r=OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_;const i={refresh_token:e,client_id:this._clientId,client_secret:this._clientSecret,grant_type:"refresh_token"};const a=await this.transporter.request({method:"POST",url:r,data:n.stringify(i),headers:{"Content-Type":"application/x-www-form-urlencoded"}});const s=a.data;if(a.data&&a.data.expires_in){s.expiry_date=(new Date).getTime()+a.data.expires_in*1e3;delete s.expires_in}this.emit("tokens",s);return{tokens:s,res:a}}refreshAccessToken(e){if(e){this.refreshAccessTokenAsync().then((r=>e(null,r.credentials,r.res)),e)}else{return this.refreshAccessTokenAsync()}}async refreshAccessTokenAsync(){const e=await this.refreshToken(this.credentials.refresh_token);const r=e.tokens;r.refresh_token=this.credentials.refresh_token;this.credentials=r;return{credentials:this.credentials,res:e.res}}getAccessToken(e){if(e){this.getAccessTokenAsync().then((r=>e(null,r.token,r.res)),e)}else{return this.getAccessTokenAsync()}}async getAccessTokenAsync(){const e=!this.credentials.access_token||this.isTokenExpiring();if(e){if(!this.credentials.refresh_token){if(this.refreshHandler){const e=await this.processAndValidateRefreshHandler();if(e===null||e===void 0?void 0:e.access_token){this.setCredentials(e);return{token:this.credentials.access_token}}}else{throw new Error("No refresh token or refresh handler callback is set.")}}const e=await this.refreshAccessTokenAsync();if(!e.credentials||e.credentials&&!e.credentials.access_token){throw new Error("Could not refresh access token.")}return{token:e.credentials.access_token,res:e.res}}else{return{token:this.credentials.access_token}}}async getRequestHeaders(e){const r=(await this.getRequestMetadataAsync(e)).headers;return r}async getRequestMetadataAsync(e){const r=this.credentials;if(!r.access_token&&!r.refresh_token&&!this.apiKey&&!this.refreshHandler){throw new Error("No access, refresh token, API key or refresh handler callback is set.")}if(r.access_token&&!this.isTokenExpiring()){r.token_type=r.token_type||"Bearer";const e={Authorization:r.token_type+" "+r.access_token};return{headers:this.addSharedMetadataHeaders(e)}}if(this.refreshHandler){const e=await this.processAndValidateRefreshHandler();if(e===null||e===void 0?void 0:e.access_token){this.setCredentials(e);const r={Authorization:"Bearer "+this.credentials.access_token};return{headers:this.addSharedMetadataHeaders(r)}}}if(this.apiKey){return{headers:{"X-Goog-Api-Key":this.apiKey}}}let i=null;let n=null;try{i=await this.refreshToken(r.refresh_token);n=i.tokens}catch(e){const r=e;if(r.response&&(r.response.status===403||r.response.status===404)){r.message=`Could not refresh access token: ${r.message}`}throw r}const a=this.credentials;a.token_type=a.token_type||"Bearer";n.refresh_token=a.refresh_token;this.credentials=n;const s={Authorization:a.token_type+" "+n.access_token};return{headers:this.addSharedMetadataHeaders(s),res:i.res}}static getRevokeTokenUrl(e){const r=n.stringify({token:e});return`${OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_}?${r}`}revokeToken(e,r){const i={url:OAuth2Client.getRevokeTokenUrl(e),method:"POST"};if(r){this.transporter.request(i).then((e=>r(null,e)),r)}else{return this.transporter.request(i)}}revokeCredentials(e){if(e){this.revokeCredentialsAsync().then((r=>e(null,r)),e)}else{return this.revokeCredentialsAsync()}}async revokeCredentialsAsync(){const e=this.credentials.access_token;this.credentials={};if(e){return this.revokeToken(e)}else{throw new Error("No access token to revoke.")}}request(e,r){if(r){this.requestAsync(e).then((e=>r(null,e)),(e=>r(e,e.response)))}else{return this.requestAsync(e)}}async requestAsync(e,r=false){let i;try{const r=await this.getRequestMetadataAsync(e.url);e.headers=e.headers||{};if(r.headers&&r.headers["x-goog-user-project"]){e.headers["x-goog-user-project"]=r.headers["x-goog-user-project"]}if(r.headers&&r.headers.Authorization){e.headers.Authorization=r.headers.Authorization}if(this.apiKey){e.headers["X-Goog-Api-Key"]=this.apiKey}i=await this.transporter.request(e)}catch(i){const n=i.response;if(n){const i=n.status;const s=this.credentials&&this.credentials.access_token&&this.credentials.refresh_token&&(!this.credentials.expiry_date||this.forceRefreshOnFailure);const o=this.credentials&&this.credentials.access_token&&!this.credentials.refresh_token&&(!this.credentials.expiry_date||this.forceRefreshOnFailure)&&this.refreshHandler;const c=n.config.data instanceof a.Readable;const l=i===401||i===403;if(!r&&l&&!c&&s){await this.refreshAccessTokenAsync();return this.requestAsync(e,true)}else if(!r&&l&&!c&&o){const r=await this.processAndValidateRefreshHandler();if(r===null||r===void 0?void 0:r.access_token){this.setCredentials(r)}return this.requestAsync(e,true)}}throw i}return i}verifyIdToken(e,r){if(r&&typeof r!=="function"){throw new Error("This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.")}if(r){this.verifyIdTokenAsync(e).then((e=>r(null,e)),r)}else{return this.verifyIdTokenAsync(e)}}async verifyIdTokenAsync(e){if(!e.idToken){throw new Error("The verifyIdToken method requires an ID Token")}const r=await this.getFederatedSignonCertsAsync();const i=await this.verifySignedJwtWithCertsAsync(e.idToken,r.certs,e.audience,OAuth2Client.ISSUERS_,e.maxExpiry);return i}async getTokenInfo(e){const{data:r}=await this.transporter.request({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:`Bearer ${e}`},url:OAuth2Client.GOOGLE_TOKEN_INFO_URL});const i=Object.assign({expiry_date:(new Date).getTime()+r.expires_in*1e3,scopes:r.scope.split(" ")},r);delete i.expires_in;delete i.scope;return i}getFederatedSignonCerts(e){if(e){this.getFederatedSignonCertsAsync().then((r=>e(null,r.certs,r.res)),e)}else{return this.getFederatedSignonCertsAsync()}}async getFederatedSignonCertsAsync(){const e=(new Date).getTime();const r=o.hasBrowserCrypto()?d.JWK:d.PEM;if(this.certificateExpiry&&ee(null,r.pubkeys,r.res)),e)}else{return this.getIapPublicKeysAsync()}}async getIapPublicKeysAsync(){let e;const r=OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_;try{e=await this.transporter.request({url:r})}catch(e){e.message=`Failed to retrieve verification certificates: ${e.message}`;throw e}return{pubkeys:e.data,res:e}}verifySignedJwtWithCerts(){throw new Error("verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.")}async verifySignedJwtWithCertsAsync(e,r,i,n,a){const c=o.createCrypto();if(!a){a=OAuth2Client.MAX_TOKEN_LIFETIME_SECS_}const p=e.split(".");if(p.length!==3){throw new Error("Wrong number of segments in token: "+e)}const d=p[0]+"."+p[1];let h=p[2];let g;let v;try{g=JSON.parse(c.decodeBase64StringUtf8(p[0]))}catch(e){e.message=`Can't parse token envelope: ${p[0]}': ${e.message}`;throw e}if(!g){throw new Error("Can't parse token envelope: "+p[0])}try{v=JSON.parse(c.decodeBase64StringUtf8(p[1]))}catch(e){e.message=`Can't parse token payload '${p[0]}`;throw e}if(!v){throw new Error("Can't parse token payload: "+p[1])}if(!Object.prototype.hasOwnProperty.call(r,g.kid)){throw new Error("No pem found for envelope: "+JSON.stringify(g))}const y=r[g.kid];if(g.alg==="ES256"){h=s.joseToDer(h,"ES256").toString("base64")}const b=await c.verify(y,d,h);if(!b){throw new Error("Invalid token signature: "+e)}if(!v.iat){throw new Error("No issue time in token: "+JSON.stringify(v))}if(!v.exp){throw new Error("No expiration time in token: "+JSON.stringify(v))}const x=Number(v.iat);if(isNaN(x))throw new Error("iat field using invalid format");const E=Number(v.exp);if(isNaN(E))throw new Error("exp field using invalid format");const w=(new Date).getTime()/1e3;if(E>=w+a){throw new Error("Expiration time too far in future: "+JSON.stringify(v))}const C=x-OAuth2Client.CLOCK_SKEW_SECS_;const T=E+OAuth2Client.CLOCK_SKEW_SECS_;if(wT){throw new Error("Token used too late, "+w+" > "+T+": "+JSON.stringify(v))}if(n&&n.indexOf(v.iss)<0){throw new Error("Invalid issuer, expected one of ["+n+"], but got "+v.iss)}if(typeof i!=="undefined"&&i!==null){const e=v.aud;let r=false;if(i.constructor===Array){r=i.indexOf(e)>-1}else{r=e===i}if(!r){throw new Error("Wrong recipient, payload audience != requiredAudience")}}return new l.LoginTicket(g,v)}async processAndValidateRefreshHandler(){if(this.refreshHandler){const e=await this.refreshHandler();if(!e.access_token){throw new Error("No access token is returned by the refreshHandler callback.")}return e}return}isTokenExpiring(){const e=this.credentials.expiry_date;return e?e<=(new Date).getTime()+this.eagerRefreshThresholdMillis:false}}r.OAuth2Client=OAuth2Client;OAuth2Client.GOOGLE_TOKEN_INFO_URL="https://oauth2.googleapis.com/tokeninfo";OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_="https://accounts.google.com/o/oauth2/v2/auth";OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_="https://oauth2.googleapis.com/token";OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_="https://oauth2.googleapis.com/revoke";OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_="https://www.googleapis.com/oauth2/v1/certs";OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_="https://www.googleapis.com/oauth2/v3/certs";OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_="https://www.gstatic.com/iap/verify/public_key";OAuth2Client.CLOCK_SKEW_SECS_=300;OAuth2Client.MAX_TOKEN_LIFETIME_SECS_=86400;OAuth2Client.ISSUERS_=["accounts.google.com","https://accounts.google.com"]},9510:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getErrorFromOAuthErrorResponse=r.OAuthClientAuthHandler=void 0;const n=i(3477);const a=i(8043);const s=["PUT","POST","PATCH"];class OAuthClientAuthHandler{constructor(e){this.clientAuthentication=e;this.crypto=a.createCrypto()}applyClientAuthenticationOptions(e,r){this.injectAuthenticatedHeaders(e,r);if(!r){this.injectAuthenticatedRequestBody(e)}}injectAuthenticatedHeaders(e,r){var i;if(r){e.headers=e.headers||{};Object.assign(e.headers,{Authorization:`Bearer ${r}}`})}else if(((i=this.clientAuthentication)===null||i===void 0?void 0:i.confidentialClientType)==="basic"){e.headers=e.headers||{};const r=this.clientAuthentication.clientId;const i=this.clientAuthentication.clientSecret||"";const n=this.crypto.encodeBase64StringUtf8(`${r}:${i}`);Object.assign(e.headers,{Authorization:`Basic ${n}`})}}injectAuthenticatedRequestBody(e){var r;if(((r=this.clientAuthentication)===null||r===void 0?void 0:r.confidentialClientType)==="request-body"){const r=(e.method||"GET").toUpperCase();if(s.indexOf(r)!==-1){let r;const i=e.headers||{};for(const e in i){if(e.toLowerCase()==="content-type"&&i[e]){r=i[e].toLowerCase();break}}if(r==="application/x-www-form-urlencoded"){e.data=e.data||"";const r=n.parse(e.data);Object.assign(r,{client_id:this.clientAuthentication.clientId,client_secret:this.clientAuthentication.clientSecret||""});e.data=n.stringify(r)}else if(r==="application/json"){e.data=e.data||{};Object.assign(e.data,{client_id:this.clientAuthentication.clientId,client_secret:this.clientAuthentication.clientSecret||""})}else{throw new Error(`${r} content-types are not supported with `+`${this.clientAuthentication.confidentialClientType} `+"client authentication")}}else{throw new Error(`${r} HTTP method does not support `+`${this.clientAuthentication.confidentialClientType} `+"client authentication")}}}}r.OAuthClientAuthHandler=OAuthClientAuthHandler;function getErrorFromOAuthErrorResponse(e,r){const i=e.error;const n=e.error_description;const a=e.error_uri;let s=`Error code ${i}`;if(typeof n!=="undefined"){s+=`: ${n}`}if(typeof a!=="undefined"){s+=` - ${a}`}const o=new Error(s);if(r){const e=Object.keys(r);if(r.stack){e.push("stack")}e.forEach((e=>{if(e!=="message"){Object.defineProperty(o,e,{value:r[e],writable:false,enumerable:true})}}))}return o}r.getErrorFromOAuthErrorResponse=getErrorFromOAuthErrorResponse},8790:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.UserRefreshClient=void 0;const n=i(3936);class UserRefreshClient extends n.OAuth2Client{constructor(e,r,i,n,a){const s=e&&typeof e==="object"?e:{clientId:e,clientSecret:r,refreshToken:i,eagerRefreshThresholdMillis:n,forceRefreshOnFailure:a};super({clientId:s.clientId,clientSecret:s.clientSecret,eagerRefreshThresholdMillis:s.eagerRefreshThresholdMillis,forceRefreshOnFailure:s.forceRefreshOnFailure});this._refreshToken=s.refreshToken;this.credentials.refresh_token=s.refreshToken}async refreshTokenNoCache(e){return super.refreshTokenNoCache(this._refreshToken)}fromJSON(e){if(!e){throw new Error("Must pass in a JSON object containing the user refresh token")}if(e.type!=="authorized_user"){throw new Error('The incoming JSON object does not have the "authorized_user" type')}if(!e.client_id){throw new Error("The incoming JSON object does not contain a client_id field")}if(!e.client_secret){throw new Error("The incoming JSON object does not contain a client_secret field")}if(!e.refresh_token){throw new Error("The incoming JSON object does not contain a refresh_token field")}this._clientId=e.client_id;this._clientSecret=e.client_secret;this._refreshToken=e.refresh_token;this.credentials.refresh_token=e.refresh_token;this.quotaProjectId=e.quota_project_id}fromStream(e,r){if(r){this.fromStreamAsync(e).then((()=>r()),r)}else{return this.fromStreamAsync(e)}}async fromStreamAsync(e){return new Promise(((r,i)=>{if(!e){return i(new Error("Must pass in a stream containing the user refresh token."))}let n="";e.setEncoding("utf8").on("error",i).on("data",(e=>n+=e)).on("end",(()=>{try{const e=JSON.parse(n);this.fromJSON(e);return r()}catch(e){return i(e)}}))}))}}r.UserRefreshClient=UserRefreshClient},6308:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.StsCredentials=void 0;const n=i(3477);const a=i(2649);const s=i(9510);class StsCredentials extends s.OAuthClientAuthHandler{constructor(e,r){super(r);this.tokenExchangeEndpoint=e;this.transporter=new a.DefaultTransporter}async exchangeToken(e,r,i){var a,o,c;const l={grant_type:e.grantType,resource:e.resource,audience:e.audience,scope:(a=e.scope)===null||a===void 0?void 0:a.join(" "),requested_token_type:e.requestedTokenType,subject_token:e.subjectToken,subject_token_type:e.subjectTokenType,actor_token:(o=e.actingParty)===null||o===void 0?void 0:o.actorToken,actor_token_type:(c=e.actingParty)===null||c===void 0?void 0:c.actorTokenType,options:i&&JSON.stringify(i)};Object.keys(l).forEach((e=>{if(typeof l[e]==="undefined"){delete l[e]}}));const p={"Content-Type":"application/x-www-form-urlencoded"};Object.assign(p,r||{});const d={url:this.tokenExchangeEndpoint,method:"POST",headers:p,data:n.stringify(l),responseType:"json"};this.applyClientAuthenticationOptions(d);try{const e=await this.transporter.request(d);const r=e.data;r.res=e;return r}catch(e){if(e.response){throw s.getErrorFromOAuthErrorResponse(e.response.data,e)}throw e}}}r.StsCredentials=StsCredentials},4693:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.BrowserCrypto=void 0;const n=i(6463);if(typeof process==="undefined"&&typeof TextEncoder==="undefined"){i(1917)}const a=i(8043);class BrowserCrypto{constructor(){if(typeof window==="undefined"||window.crypto===undefined||window.crypto.subtle===undefined){throw new Error("SubtleCrypto not found. Make sure it's an https:// website.")}}async sha256DigestBase64(e){const r=(new TextEncoder).encode(e);const i=await window.crypto.subtle.digest("SHA-256",r);return n.fromByteArray(new Uint8Array(i))}randomBytesBase64(e){const r=new Uint8Array(e);window.crypto.getRandomValues(r);return n.fromByteArray(r)}static padBase64(e){while(e.length%4!==0){e+="="}return e}async verify(e,r,i){const a={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};const s=(new TextEncoder).encode(r);const o=n.toByteArray(BrowserCrypto.padBase64(i));const c=await window.crypto.subtle.importKey("jwk",e,a,true,["verify"]);const l=await window.crypto.subtle.verify(a,c,o,s);return l}async sign(e,r){const i={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};const a=(new TextEncoder).encode(r);const s=await window.crypto.subtle.importKey("jwk",e,i,true,["sign"]);const o=await window.crypto.subtle.sign(i,s,a);return n.fromByteArray(new Uint8Array(o))}decodeBase64StringUtf8(e){const r=n.toByteArray(BrowserCrypto.padBase64(e));const i=(new TextDecoder).decode(r);return i}encodeBase64StringUtf8(e){const r=(new TextEncoder).encode(e);const i=n.fromByteArray(r);return i}async sha256DigestHex(e){const r=(new TextEncoder).encode(e);const i=await window.crypto.subtle.digest("SHA-256",r);return a.fromArrayBufferToHex(i)}async signWithHmacSha256(e,r){const i=typeof e==="string"?e:String.fromCharCode(...new Uint16Array(e));const n=new TextEncoder;const a=await window.crypto.subtle.importKey("raw",n.encode(i),{name:"HMAC",hash:{name:"SHA-256"}},false,["sign"]);return window.crypto.subtle.sign("HMAC",a,n.encode(r))}}r.BrowserCrypto=BrowserCrypto},8043:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fromArrayBufferToHex=r.hasBrowserCrypto=r.createCrypto=void 0;const n=i(4693);const a=i(757);function createCrypto(){if(hasBrowserCrypto()){return new n.BrowserCrypto}return new a.NodeCrypto}r.createCrypto=createCrypto;function hasBrowserCrypto(){return typeof window!=="undefined"&&typeof window.crypto!=="undefined"&&typeof window.crypto.subtle!=="undefined"}r.hasBrowserCrypto=hasBrowserCrypto;function fromArrayBufferToHex(e){const r=Array.from(new Uint8Array(e));return r.map((e=>e.toString(16).padStart(2,"0"))).join("")}r.fromArrayBufferToHex=fromArrayBufferToHex},757:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.NodeCrypto=void 0;const n=i(6113);class NodeCrypto{async sha256DigestBase64(e){return n.createHash("sha256").update(e).digest("base64")}randomBytesBase64(e){return n.randomBytes(e).toString("base64")}async verify(e,r,i){const a=n.createVerify("sha256");a.update(r);a.end();return a.verify(e,i,"base64")}async sign(e,r){const i=n.createSign("RSA-SHA256");i.update(r);i.end();return i.sign(e,"base64")}decodeBase64StringUtf8(e){return Buffer.from(e,"base64").toString("utf-8")}encodeBase64StringUtf8(e){return Buffer.from(e,"utf-8").toString("base64")}async sha256DigestHex(e){return n.createHash("sha256").update(e).digest("hex")}async signWithHmacSha256(e,r){const i=typeof e==="string"?e:toBuffer(e);return toArrayBuffer(n.createHmac("sha256",i).update(r).digest())}}r.NodeCrypto=NodeCrypto;function toArrayBuffer(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function toBuffer(e){return Buffer.from(e)}},810:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GoogleAuth=r.auth=void 0;const n=i(695);Object.defineProperty(r,"GoogleAuth",{enumerable:true,get:function(){return n.GoogleAuth}});var a=i(6875);Object.defineProperty(r,"Compute",{enumerable:true,get:function(){return a.Compute}});var s=i(1380);Object.defineProperty(r,"GCPEnv",{enumerable:true,get:function(){return s.GCPEnv}});var o=i(9735);Object.defineProperty(r,"IAMAuth",{enumerable:true,get:function(){return o.IAMAuth}});var c=i(298);Object.defineProperty(r,"IdTokenClient",{enumerable:true,get:function(){return c.IdTokenClient}});var l=i(8740);Object.defineProperty(r,"JWTAccess",{enumerable:true,get:function(){return l.JWTAccess}});var p=i(3959);Object.defineProperty(r,"JWT",{enumerable:true,get:function(){return p.JWT}});var d=i(1103);Object.defineProperty(r,"Impersonated",{enumerable:true,get:function(){return d.Impersonated}});var h=i(3936);Object.defineProperty(r,"CodeChallengeMethod",{enumerable:true,get:function(){return h.CodeChallengeMethod}});Object.defineProperty(r,"OAuth2Client",{enumerable:true,get:function(){return h.OAuth2Client}});var g=i(4524);Object.defineProperty(r,"LoginTicket",{enumerable:true,get:function(){return g.LoginTicket}});var v=i(8790);Object.defineProperty(r,"UserRefreshClient",{enumerable:true,get:function(){return v.UserRefreshClient}});var y=i(1569);Object.defineProperty(r,"AwsClient",{enumerable:true,get:function(){return y.AwsClient}});var b=i(117);Object.defineProperty(r,"IdentityPoolClient",{enumerable:true,get:function(){return b.IdentityPoolClient}});var x=i(4381);Object.defineProperty(r,"ExternalAccountClient",{enumerable:true,get:function(){return x.ExternalAccountClient}});var E=i(7391);Object.defineProperty(r,"BaseExternalAccountClient",{enumerable:true,get:function(){return E.BaseExternalAccountClient}});var w=i(6270);Object.defineProperty(r,"DownscopedClient",{enumerable:true,get:function(){return w.DownscopedClient}});var C=i(2649);Object.defineProperty(r,"DefaultTransporter",{enumerable:true,get:function(){return C.DefaultTransporter}});const T=new n.GoogleAuth;r.auth=T},6608:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.validate=void 0;function validate(e){const r=[{invalid:"uri",expected:"url"},{invalid:"json",expected:"data"},{invalid:"qs",expected:"params"}];for(const i of r){if(e[i.invalid]){const e=`'${i.invalid}' is not a valid configuration option. Please use '${i.expected}' instead. This library is using Axios for requests. Please see https://github.com/axios/axios to learn more about the valid request options.`;throw new Error(e)}}}r.validate=validate},2649:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.DefaultTransporter=void 0;const n=i(9555);const a=i(6608);const s=i(1402);const o="google-api-nodejs-client";class DefaultTransporter{configure(e={}){e.headers=e.headers||{};if(typeof window==="undefined"){const r=e.headers["User-Agent"];if(!r){e.headers["User-Agent"]=DefaultTransporter.USER_AGENT}else if(!r.includes(`${o}/`)){e.headers["User-Agent"]=`${r} ${DefaultTransporter.USER_AGENT}`}const i=`auth/${s.version}`;if(e.headers["x-goog-api-client"]&&!e.headers["x-goog-api-client"].includes(i)){e.headers["x-goog-api-client"]=`${e.headers["x-goog-api-client"]} ${i}`}else if(!e.headers["x-goog-api-client"]){const r=process.version.replace(/^v/,"");e.headers["x-goog-api-client"]=`gl-node/${r} ${i}`}}return e}request(e,r){e=this.configure(e);try{a.validate(e)}catch(e){if(r){return r(e)}else{throw e}}if(r){n.request(e).then((e=>{r(null,e)}),(e=>{r(this.processError(e))}))}else{return n.request(e).catch((e=>{throw this.processError(e)}))}}processError(e){const r=e.response;const i=e;const n=r?r.data:null;if(r&&n&&n.error&&r.status!==200){if(typeof n.error==="string"){i.message=n.error;i.code=r.status.toString()}else if(Array.isArray(n.error.errors)){i.message=n.error.errors.map((e=>e.message)).join("\n");i.code=n.error.code;i.errors=n.error.errors}else{i.message=n.error.message;i.code=n.error.code||r.status}}else if(r&&r.status>=400){i.message=n;i.code=r.status.toString()}return i}}r.DefaultTransporter=DefaultTransporter;DefaultTransporter.USER_AGENT=`${o}/${s.version}`},7265:e=>{"use strict";const arrify=e=>{if(e===null||e===undefined){return[]}if(Array.isArray(e)){return e}if(typeof e==="string"){return[e]}if(typeof e[Symbol.iterator]==="function"){return[...e]}return[e]};e.exports=arrify},2098:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getPem=void 0;const n=i(7147);const a=i(7655);const s=i(3837);const o=s.promisify(n.readFile);function getPem(e,r){if(r){getPemAsync(e).then((e=>r(null,e))).catch((e=>r(e,null)))}else{return getPemAsync(e)}}r.getPem=getPem;function getPemAsync(e){return o(e,{encoding:"base64"}).then((e=>convertToPem(e)))}function convertToPem(e){const r=a.util.decode64(e);const i=a.asn1.fromDer(r);const n=a.pkcs12.pkcs12FromAsn1(i,"notasecret");const s=n.getBags({friendlyName:"privatekey"});if(s.friendlyName){const e=s.friendlyName[0].key;const r=a.pki.privateKeyToPem(e);return r.replace(/\r\n/g,"\n")}else{throw new Error("Unable to get friendly name.")}}},7356:e=>{"use strict";e.exports=clone;var r=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var i={__proto__:r(e)};else var i=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(e,r))}));return i}},7758:(e,r,i)=>{var n=i(7147);var a=i(263);var s=i(3086);var o=i(7356);var c=i(3837);var l;var p;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){l=Symbol.for("graceful-fs.queue");p=Symbol.for("graceful-fs.previous")}else{l="___graceful-fs.queue";p="___graceful-fs.previous"}function noop(){}function publishQueue(e,r){Object.defineProperty(e,l,{get:function(){return r}})}var d=noop;if(c.debuglog)d=c.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))d=function(){var e=c.format.apply(c,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[l]){var h=global[l]||[];publishQueue(n,h);n.close=function(e){function close(r,i){return e.call(n,r,(function(e){if(!e){retry()}if(typeof i==="function")i.apply(this,arguments)}))}Object.defineProperty(close,p,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(r){e.apply(n,arguments);retry()}Object.defineProperty(closeSync,p,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){d(n[l]);i(9491).equal(n[l].length,0)}))}}if(!global[l]){publishQueue(global,n[l])}e.exports=patch(o(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){a(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var r=e.readFile;e.readFile=readFile;function readFile(e,i,n){if(typeof i==="function")n=i,i=null;return go$readFile(e,i,n);function go$readFile(e,i,n){return r(e,i,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$readFile,[e,i,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}))}}var i=e.writeFile;e.writeFile=writeFile;function writeFile(e,r,n,a){if(typeof n==="function")a=n,n=null;return go$writeFile(e,r,n,a);function go$writeFile(e,r,n,a){return i(e,r,n,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$writeFile,[e,r,n,a]]);else{if(typeof a==="function")a.apply(this,arguments);retry()}}))}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,r,i,a){if(typeof i==="function")a=i,i=null;return go$appendFile(e,r,i,a);function go$appendFile(e,r,i,a){return n(e,r,i,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,r,i,a]]);else{if(typeof a==="function")a.apply(this,arguments);retry()}}))}}var o=e.copyFile;if(o)e.copyFile=copyFile;function copyFile(e,r,i,n){if(typeof i==="function"){n=i;i=0}return o(e,r,i,(function(a){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([o,[e,r,i,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}))}var c=e.readdir;e.readdir=readdir;function readdir(e,r,i){var n=[e];if(typeof r!=="function"){n.push(r)}else{i=r}n.push(go$readdir$cb);return go$readdir(n);function go$readdir$cb(e,r){if(r&&r.sort)r.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[n]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}}}function go$readdir(r){return c.apply(e,r)}if(process.version.substr(0,4)==="v0.8"){var l=s(e);ReadStream=l.ReadStream;WriteStream=l.WriteStream}var p=e.ReadStream;if(p){ReadStream.prototype=Object.create(p.prototype);ReadStream.prototype.open=ReadStream$open}var d=e.WriteStream;if(d){WriteStream.prototype=Object.create(d.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var h=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});var g=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return g},set:function(e){g=e},enumerable:true,configurable:true});function ReadStream(e,r){if(this instanceof ReadStream)return p.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(r,i){if(r){if(e.autoClose)e.destroy();e.emit("error",r)}else{e.fd=i;e.emit("open",i);e.read()}}))}function WriteStream(e,r){if(this instanceof WriteStream)return d.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(r,i){if(r){e.destroy();e.emit("error",r)}else{e.fd=i;e.emit("open",i)}}))}function createReadStream(r,i){return new e.ReadStream(r,i)}function createWriteStream(r,i){return new e.WriteStream(r,i)}var v=e.open;e.open=open;function open(e,r,i,n){if(typeof i==="function")n=i,i=null;return go$open(e,r,i,n);function go$open(e,r,i,n){return v(e,r,i,(function(a,s){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$open,[e,r,i,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}))}}return e}function enqueue(e){d("ENQUEUE",e[0].name,e[1]);n[l].push(e)}function retry(){var e=n[l].shift();if(e){d("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},3086:(e,r,i)=>{var n=i(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(r,i){if(!(this instanceof ReadStream))return new ReadStream(r,i);n.call(this);var a=this;this.path=r;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;i=i||{};var s=Object.keys(i);for(var o=0,c=s.length;othis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){a._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,r){if(e){a.emit("error",e);a.readable=false;return}a.fd=r;a.emit("open",r);a._read()}))}function WriteStream(r,i){if(!(this instanceof WriteStream))return new WriteStream(r,i);n.call(this);this.path=r;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var a=Object.keys(i);for(var s=0,o=a.length;s= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:(e,r,i)=>{var n=i(2057);var a=process.cwd;var s=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=a.call(process);return s};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var c=process.chdir;process.chdir=function(e){s=null;c.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,c)}e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,r,i){if(i)process.nextTick(i)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,r,i,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(o==="win32"){e.rename=function(r){return function(i,n,a){var s=Date.now();var o=0;r(i,n,(function CB(c){if(c&&(c.code==="EACCES"||c.code==="EPERM")&&Date.now()-s<6e4){setTimeout((function(){e.stat(n,(function(e,s){if(e&&e.code==="ENOENT")r(i,n,CB);else a(c)}))}),o);if(o<100)o+=10;return}if(a)a(c)}))}}(e.rename)}e.read=function(r){function read(i,n,a,s,o,c){var l;if(c&&typeof c==="function"){var p=0;l=function(d,h,g){if(d&&d.code==="EAGAIN"&&p<10){p++;return r.call(e,i,n,a,s,o,l)}c.apply(this,arguments)}}return r.call(e,i,n,a,s,o,l)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,r);return read}(e.read);e.readSync=function(r){return function(i,n,a,s,o){var c=0;while(true){try{return r.call(e,i,n,a,s,o)}catch(e){if(e.code==="EAGAIN"&&c<10){c++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(r,i,a){e.open(r,n.O_WRONLY|n.O_SYMLINK,i,(function(r,n){if(r){if(a)a(r);return}e.fchmod(n,i,(function(r){e.close(n,(function(e){if(a)a(r||e)}))}))}))};e.lchmodSync=function(r,i){var a=e.openSync(r,n.O_WRONLY|n.O_SYMLINK,i);var s=true;var o;try{o=e.fchmodSync(a,i);s=false}finally{if(s){try{e.closeSync(a)}catch(e){}}else{e.closeSync(a)}}return o}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")){e.lutimes=function(r,i,a,s){e.open(r,n.O_SYMLINK,(function(r,n){if(r){if(s)s(r);return}e.futimes(n,i,a,(function(r){e.close(n,(function(e){if(s)s(r||e)}))}))}))};e.lutimesSync=function(r,i,a){var s=e.openSync(r,n.O_SYMLINK);var o;var c=true;try{o=e.futimesSync(s,i,a);c=false}finally{if(c){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return o}}else{e.lutimes=function(e,r,i,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(r){if(!r)return r;return function(i,n,a){return r.call(e,i,n,(function(e){if(chownErOk(e))e=null;if(a)a.apply(this,arguments)}))}}function chmodFixSync(r){if(!r)return r;return function(i,n){try{return r.call(e,i,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(r){if(!r)return r;return function(i,n,a,s){return r.call(e,i,n,a,(function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)}))}}function chownFixSync(r){if(!r)return r;return function(i,n,a){try{return r.call(e,i,n,a)}catch(e){if(!chownErOk(e))throw e}}}function statFix(r){if(!r)return r;return function(i,n,a){if(typeof n==="function"){a=n;n=null}function callback(e,r){if(r){if(r.uid<0)r.uid+=4294967296;if(r.gid<0)r.gid+=4294967296}if(a)a.apply(this,arguments)}return n?r.call(e,i,n,callback):r.call(e,i,callback)}}function statFixSync(r){if(!r)return r;return function(i,n){var a=n?r.call(e,i,n):r.call(e,i);if(a.uid<0)a.uid+=4294967296;if(a.gid<0)a.gid+=4294967296;return a}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var r=!process.getuid||process.getuid()!==0;if(r){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},6031:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GoogleToken=void 0;const n=i(7147);const a=i(9555);const s=i(4636);const o=i(1017);const c=i(3837);const l=n.readFile?c.promisify(n.readFile):async()=>{throw new ErrorWithCode("use key rather than keyFile.","MISSING_CREDENTIALS")};const p="https://www.googleapis.com/oauth2/v4/token";const d="https://accounts.google.com/o/oauth2/revoke?token=";class ErrorWithCode extends Error{constructor(e,r){super(e);this.code=r}}let h;class GoogleToken{constructor(e){this.configure(e)}get accessToken(){return this.rawToken?this.rawToken.access_token:undefined}get idToken(){return this.rawToken?this.rawToken.id_token:undefined}get tokenType(){return this.rawToken?this.rawToken.token_type:undefined}get refreshToken(){return this.rawToken?this.rawToken.refresh_token:undefined}hasExpired(){const e=(new Date).getTime();if(this.rawToken&&this.expiresAt){return e>=this.expiresAt}else{return true}}isTokenExpiring(){var e;const r=(new Date).getTime();const i=(e=this.eagerRefreshThresholdMillis)!==null&&e!==void 0?e:0;if(this.rawToken&&this.expiresAt){return this.expiresAt<=r+i}else{return true}}getToken(e,r={}){if(typeof e==="object"){r=e;e=undefined}r=Object.assign({forceRefresh:false},r);if(e){const i=e;this.getTokenAsync(r).then((e=>i(null,e)),e);return}return this.getTokenAsync(r)}async getCredentials(e){const r=o.extname(e);switch(r){case".json":{const r=await l(e,"utf8");const i=JSON.parse(r);const n=i.private_key;const a=i.client_email;if(!n||!a){throw new ErrorWithCode("private_key and client_email are required.","MISSING_CREDENTIALS")}return{privateKey:n,clientEmail:a}}case".der":case".crt":case".pem":{const r=await l(e,"utf8");return{privateKey:r}}case".p12":case".pfx":{if(!h){h=(await Promise.resolve().then((()=>i(2098)))).getPem}const r=await h(e);return{privateKey:r}}default:throw new ErrorWithCode("Unknown certificate type. Type is determined based on file extension. "+"Current supported extensions are *.json, *.pem, and *.p12.","UNKNOWN_CERTIFICATE_TYPE")}}async getTokenAsync(e){if(this.inFlightRequest&&!e.forceRefresh){return this.inFlightRequest}try{return await(this.inFlightRequest=this.getTokenAsyncInner(e))}finally{this.inFlightRequest=undefined}}async getTokenAsyncInner(e){if(this.isTokenExpiring()===false&&e.forceRefresh===false){return Promise.resolve(this.rawToken)}if(!this.key&&!this.keyFile){throw new Error("No key or keyFile set.")}if(!this.key&&this.keyFile){const e=await this.getCredentials(this.keyFile);this.key=e.privateKey;this.iss=e.clientEmail||this.iss;if(!e.clientEmail){this.ensureEmail()}}return this.requestToken()}ensureEmail(){if(!this.iss){throw new ErrorWithCode("email is required.","MISSING_CREDENTIALS")}}revokeToken(e){if(e){this.revokeTokenAsync().then((()=>e()),e);return}return this.revokeTokenAsync()}async revokeTokenAsync(){if(!this.accessToken){throw new Error("No token to revoke.")}const e=d+this.accessToken;await a.request({url:e});this.configure({email:this.iss,sub:this.sub,key:this.key,keyFile:this.keyFile,scope:this.scope,additionalClaims:this.additionalClaims})}configure(e={}){this.keyFile=e.keyFile;this.key=e.key;this.rawToken=undefined;this.iss=e.email||e.iss;this.sub=e.sub;this.additionalClaims=e.additionalClaims;if(typeof e.scope==="object"){this.scope=e.scope.join(" ")}else{this.scope=e.scope}this.eagerRefreshThresholdMillis=e.eagerRefreshThresholdMillis}async requestToken(){const e=Math.floor((new Date).getTime()/1e3);const r=this.additionalClaims||{};const i=Object.assign({iss:this.iss,scope:this.scope,aud:p,exp:e+3600,iat:e,sub:this.sub},r);const n=s.sign({header:{alg:"RS256"},payload:i,secret:this.key});try{const r=await a.request({method:"POST",url:p,data:{grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:n},headers:{"Content-Type":"application/x-www-form-urlencoded"},responseType:"json"});this.rawToken=r.data;this.expiresAt=r.data.expires_in===null||r.data.expires_in===undefined?undefined:(e+r.data.expires_in)*1e3;return this.rawToken}catch(e){this.rawToken=undefined;this.tokenExpires=undefined;const r=e.response&&e.response.data?e.response.data:{};if(r.error){const i=r.error_description?`: ${r.error_description}`:"";e.message=`${r.error}${i}`}throw e}}}r.GoogleToken=GoogleToken},1621:e=>{"use strict";e.exports=(e,r=process.argv)=>{const i=e.startsWith("-")?"":e.length===1?"-":"--";const n=r.indexOf(i+e);const a=r.indexOf("--");return n!==-1&&(a===-1||n{"use strict";var r=new Int32Array([0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697]);e.exports={calculate:function(e,i){if(!Buffer.isBuffer(e))e=Buffer.from(e);var n=(i|0)^-1;for(var a=0;a>>8;return(n^-1)>>>0}}},3562:(e,r,i)=>{"use strict";var n;try{n=i(1301)}catch(e){n=i(4933)}var a=i(6113);var{PassThrough:s}=i(2781);e.exports=function(e){e=e||{};var r=e.crc32c!==false;var i=e.md5!==false;var o={};if(i)o.md5=a.createHash("md5");var onData=function(e,a,s){if(r)o.crc32c=n.calculate(e,o.crc32c||0);if(i)o.md5.update(e);s(null,e)};var onFlush=function(e){if(r)o.crc32c=Buffer.from([o.crc32c]).toString("base64");if(i)o.md5=o.md5.digest("base64");e()};var c=new s({transform:onData,flush:onFlush});c.test=function(e,r){return o[e]===r};return c}},5098:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const s=a(i(1808));const o=a(i(4404));const c=a(i(7310));const l=a(i(9491));const p=a(i(8237));const d=i(9690);const h=a(i(595));const g=p.default("https-proxy-agent:agent");class HttpsProxyAgent extends d.Agent{constructor(e){let r;if(typeof e==="string"){r=c.default.parse(e)}else{r=e}if(!r){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}g("creating new HttpsProxyAgent instance: %o",r);super(r);const i=Object.assign({},r);this.secureProxy=r.secureProxy||isHTTPS(i.protocol);i.host=i.hostname||i.host;if(typeof i.port==="string"){i.port=parseInt(i.port,10)}if(!i.port&&i.host){i.port=this.secureProxy?443:80}if(this.secureProxy&&!("ALPNProtocols"in i)){i.ALPNProtocols=["http 1.1"]}if(i.host&&i.path){delete i.path;delete i.pathname}this.proxy=i}callback(e,r){return n(this,void 0,void 0,(function*(){const{proxy:i,secureProxy:n}=this;let a;if(n){g("Creating `tls.Socket`: %o",i);a=o.default.connect(i)}else{g("Creating `net.Socket`: %o",i);a=s.default.connect(i)}const c=Object.assign({},i.headers);const p=`${r.host}:${r.port}`;let d=`CONNECT ${p} HTTP/1.1\r\n`;if(i.auth){c["Proxy-Authorization"]=`Basic ${Buffer.from(i.auth).toString("base64")}`}let{host:v,port:y,secureEndpoint:b}=r;if(!isDefaultPort(y,b)){v+=`:${y}`}c.Host=v;c.Connection="close";for(const e of Object.keys(c)){d+=`${e}: ${c[e]}\r\n`}const x=h.default(a);a.write(`${d}\r\n`);const{statusCode:E,buffered:w}=yield x;if(E===200){e.once("socket",resume);if(r.secureEndpoint){const e=r.servername||r.host;if(!e){throw new Error('Could not determine "servername"')}g("Upgrading socket connection to TLS");return o.default.connect(Object.assign(Object.assign({},omit(r,"host","hostname","path","port")),{socket:a,servername:e}))}return a}a.destroy();const C=new s.default.Socket;C.readable=true;e.once("socket",(e=>{g("replaying proxy buffer for failed request");l.default(e.listenerCount("data")>0);e.push(w);e.push(null)}));return C}))}}r["default"]=HttpsProxyAgent;function resume(e){e.resume()}function isDefaultPort(e,r){return Boolean(!r&&e===80||r&&e===443)}function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}function omit(e,...r){const i={};let n;for(n in e){if(!r.includes(n)){i[n]=e[n]}}return i}},7219:function(e,r,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=n(i(5098));function createHttpsProxyAgent(e){return new a.default(e)}(function(e){e.HttpsProxyAgent=a.default;e.prototype=a.default.prototype})(createHttpsProxyAgent||(createHttpsProxyAgent={}));e.exports=createHttpsProxyAgent},595:function(e,r,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const a=n(i(8237));const s=a.default("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((r,i)=>{let n=0;const a=[];function read(){const r=e.read();if(r)ondata(r);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose);e.removeListener("readable",read)}function onclose(e){s("onclose had error %o",e)}function onend(){s("onend")}function onerror(e){cleanup();s("onerror %o",e);i(e)}function ondata(e){a.push(e);n+=e.length;const i=Buffer.concat(a,n);const o=i.indexOf("\r\n\r\n");if(o===-1){s("have not received end of HTTP headers yet...");read();return}const c=i.toString("ascii",0,i.indexOf("\r\n"));const l=+c.split(" ")[1];s("got proxy server response: %o",c);r({statusCode:l,buffered:i})}e.on("error",onerror);e.on("close",onclose);e.on("end",onend);read()}))}r["default"]=parseProxyResponse},2527:e=>{ /** * @preserve * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013) @@ -133,13 +133,7 @@ * @author Austin Appleby * @see http://sites.google.com/site/murmurhash/ */ -(function(){var r;function MurmurHash3(e,i){var n=this instanceof MurmurHash3?this:r;n.reset(i);if(typeof e==="string"&&e.length>0){n.hash(e)}if(n!==this){return n}}MurmurHash3.prototype.hash=function(e){var r,i,n,s,a;a=e.length;this.len+=a;i=this.k1;n=0;switch(this.rem){case 0:i^=a>n?e.charCodeAt(n++)&65535:0;case 1:i^=a>n?(e.charCodeAt(n++)&65535)<<8:0;case 2:i^=a>n?(e.charCodeAt(n++)&65535)<<16:0;case 3:i^=a>n?(e.charCodeAt(n)&255)<<24:0;i^=a>n?(e.charCodeAt(n++)&65280)>>8:0}this.rem=a+this.rem&3;a-=this.rem;if(a>0){r=this.h1;while(1){i=i*11601+(i&65535)*3432906752&4294967295;i=i<<15|i>>>17;i=i*13715+(i&65535)*461832192&4294967295;r^=i;r=r<<13|r>>>19;r=r*5+3864292196&4294967295;if(n>=a){break}i=e.charCodeAt(n++)&65535^(e.charCodeAt(n++)&65535)<<8^(e.charCodeAt(n++)&65535)<<16;s=e.charCodeAt(n++);i^=(s&255)<<24^(s&65280)>>8}i=0;switch(this.rem){case 3:i^=(e.charCodeAt(n+2)&65535)<<16;case 2:i^=(e.charCodeAt(n+1)&65535)<<8;case 1:i^=e.charCodeAt(n)&65535}this.h1=r}this.k1=i;return this};MurmurHash3.prototype.result=function(){var e,r;e=this.k1;r=this.h1;if(e>0){e=e*11601+(e&65535)*3432906752&4294967295;e=e<<15|e>>>17;e=e*13715+(e&65535)*461832192&4294967295;r^=e}r^=this.len;r^=r>>>16;r=r*51819+(r&65535)*2246770688&4294967295;r^=r>>>13;r=r*44597+(r&65535)*3266445312&4294967295;r^=r>>>16;return r>>>0};MurmurHash3.prototype.reset=function(e){this.h1=typeof e==="number"?e:0;this.rem=this.k1=this.len=0;return this};r=new MurmurHash3;if(true){e.exports=MurmurHash3}else{}})()},2492:(e,r,i)=>{var n=i(2940);var s=Object.create(null);var a=i(1223);e.exports=n(inflight);function inflight(e,r){if(s[e]){s[e].push(r);return null}else{s[e]=[r];return makeres(e)}}function makeres(e){return a((function RES(){var r=s[e];var i=r.length;var n=slice(arguments);try{for(var a=0;ai){r.splice(0,i);process.nextTick((function(){RES.apply(null,n)}))}else{delete s[e]}}}))}function slice(e){var r=e.length;var i=[];for(var n=0;n{try{var n=i(3837);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(r){e.exports=i(8544)}},8544:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,r){if(r){e.super_=r;e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,r){if(r){e.super_=r;var TempCtor=function(){};TempCtor.prototype=r.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},1389:e=>{"use strict";e.exports=e=>{const r=typeof e;return e!==null&&(r==="object"||r==="function")}},3287:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true}); -/*! - * is-plain-object - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var r,i;if(isObject(e)===false)return false;r=e.constructor;if(r===undefined)return true;i=r.prototype;if(isObject(i)===false)return false;if(i.hasOwnProperty("isPrototypeOf")===false){return false}return true}r.isPlainObject=isPlainObject},1554:e=>{"use strict";const isStream=e=>e!==null&&typeof e==="object"&&typeof e.pipe==="function";isStream.writable=e=>isStream(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object";isStream.readable=e=>isStream(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object";isStream.duplex=e=>isStream.writable(e)&&isStream.readable(e);isStream.transform=e=>isStream.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object";e.exports=isStream},657:e=>{e.exports=isTypedArray;isTypedArray.strict=isStrictTypedArray;isTypedArray.loose=isLooseTypedArray;var r=Object.prototype.toString;var i={"[object Int8Array]":true,"[object Int16Array]":true,"[object Int32Array]":true,"[object Uint8Array]":true,"[object Uint8ClampedArray]":true,"[object Uint16Array]":true,"[object Uint32Array]":true,"[object Float32Array]":true,"[object Float64Array]":true};function isTypedArray(e){return isStrictTypedArray(e)||isLooseTypedArray(e)}function isStrictTypedArray(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function isLooseTypedArray(e){return i[r.call(e)]}},5031:(e,r,i)=>{var n=i(8574).stringify;var s=i(9099);e.exports=function(e){return{parse:s(e),stringify:n}};e.exports.parse=s();e.exports.stringify=n},9099:(e,r,i)=>{var n=null;const s=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/;const a=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var json_parse=function(e){"use strict";var r={strict:false,storeAsString:false,alwaysParseAsBig:false,useNativeBigInt:false,protoAction:"error",constructorAction:"error"};if(e!==undefined&&e!==null){if(e.strict===true){r.strict=true}if(e.storeAsString===true){r.storeAsString=true}r.alwaysParseAsBig=e.alwaysParseAsBig===true?e.alwaysParseAsBig:false;r.useNativeBigInt=e.useNativeBigInt===true?e.useNativeBigInt:false;if(typeof e.constructorAction!=="undefined"){if(e.constructorAction==="error"||e.constructorAction==="ignore"||e.constructorAction==="preserve"){r.constructorAction=e.constructorAction}else{throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${e.constructorAction}`)}}if(typeof e.protoAction!=="undefined"){if(e.protoAction==="error"||e.protoAction==="ignore"||e.protoAction==="preserve"){r.protoAction=e.protoAction}else{throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${e.protoAction}`)}}}var o,c,l={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},p,error=function(e){throw{name:"SyntaxError",message:e,at:o,text:p}},next=function(e){if(e&&e!==c){error("Expected '"+e+"' instead of '"+c+"'")}c=p.charAt(o);o+=1;return c},number=function(){var e,s="";if(c==="-"){s="-";next("-")}while(c>="0"&&c<="9"){s+=c;next()}if(c==="."){s+=".";while(next()&&c>="0"&&c<="9"){s+=c}}if(c==="e"||c==="E"){s+=c;next();if(c==="-"||c==="+"){s+=c;next()}while(c>="0"&&c<="9"){s+=c;next()}}e=+s;if(!isFinite(e)){error("Bad number")}else{if(n==null)n=i(7558);if(s.length>15)return r.storeAsString?s:r.useNativeBigInt?BigInt(s):new n(s);else return!r.alwaysParseAsBig?e:r.useNativeBigInt?BigInt(e):new n(e)}},string=function(){var e,r,i="",n;if(c==='"'){var s=o;while(next()){if(c==='"'){if(o-1>s)i+=p.substring(s,o-1);next();return i}if(c==="\\"){if(o-1>s)i+=p.substring(s,o-1);next();if(c==="u"){n=0;for(r=0;r<4;r+=1){e=parseInt(next(),16);if(!isFinite(e)){break}n=n*16+e}i+=String.fromCharCode(n)}else if(typeof l[c]==="string"){i+=l[c]}else{break}s=o}}}error("Bad string")},white=function(){while(c&&c<=" "){next()}},word=function(){switch(c){case"t":next("t");next("r");next("u");next("e");return true;case"f":next("f");next("a");next("l");next("s");next("e");return false;case"n":next("n");next("u");next("l");next("l");return null}error("Unexpected '"+c+"'")},d,array=function(){var e=[];if(c==="["){next("[");white();if(c==="]"){next("]");return e}while(c){e.push(d());white();if(c==="]"){next("]");return e}next(",");white()}}error("Bad array")},object=function(){var e,i=Object.create(null);if(c==="{"){next("{");white();if(c==="}"){next("}");return i}while(c){e=string();white();next(":");if(r.strict===true&&Object.hasOwnProperty.call(i,e)){error('Duplicate key "'+e+'"')}if(s.test(e)===true){if(r.protoAction==="error"){error("Object contains forbidden prototype property")}else if(r.protoAction==="ignore"){d()}else{i[e]=d()}}else if(a.test(e)===true){if(r.constructorAction==="error"){error("Object contains forbidden constructor property")}else if(r.constructorAction==="ignore"){d()}else{i[e]=d()}}else{i[e]=d()}white();if(c==="}"){next("}");return i}next(",");white()}}error("Bad object")};d=function(){white();switch(c){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return c>="0"&&c<="9"?number():word()}};return function(e,r){var i;p=e+"";o=0;c=" ";i=d();white();if(c){error("Syntax error")}return typeof r==="function"?function walk(e,i){var n,s,a=e[i];if(a&&typeof a==="object"){Object.keys(a).forEach((function(e){s=walk(a,e);if(s!==undefined){a[e]=s}else{delete a[e]}}))}return r.call(e,i,a)}({"":i},""):i}};e.exports=json_parse},8574:(e,r,i)=>{var n=i(7558);var s=e.exports;(function(){"use strict";function f(e){return e<10?"0"+e:e}var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i,a,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},c;function quote(e){r.lastIndex=0;return r.test(e)?'"'+e.replace(r,(function(e){var r=o[e];return typeof r==="string"?r:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function str(e,r){var s,o,l,p,d=i,h,g=r[e],v=g!=null&&(g instanceof n||n.isBigNumber(g));if(g&&typeof g==="object"&&typeof g.toJSON==="function"){g=g.toJSON(e)}if(typeof c==="function"){g=c.call(r,e,g)}switch(typeof g){case"string":if(v){return g}else{return quote(g)}case"number":return isFinite(g)?String(g):"null";case"boolean":case"null":case"bigint":return String(g);case"object":if(!g){return"null"}i+=a;h=[];if(Object.prototype.toString.apply(g)==="[object Array]"){p=g.length;for(s=0;s{var n=i(9239);var s=i(1867).Buffer;var a=i(6113);var o=i(1728);var c=i(3837);var l='"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".';var p="secret must be a string or buffer";var d="key must be a string or a buffer";var h="key must be a string, a buffer or an object";var g=typeof a.createPublicKey==="function";if(g){d+=" or a KeyObject";p+="or a KeyObject"}function checkIsPublicKey(e){if(s.isBuffer(e)){return}if(typeof e==="string"){return}if(!g){throw typeError(d)}if(typeof e!=="object"){throw typeError(d)}if(typeof e.type!=="string"){throw typeError(d)}if(typeof e.asymmetricKeyType!=="string"){throw typeError(d)}if(typeof e.export!=="function"){throw typeError(d)}}function checkIsPrivateKey(e){if(s.isBuffer(e)){return}if(typeof e==="string"){return}if(typeof e==="object"){return}throw typeError(h)}function checkIsSecretKey(e){if(s.isBuffer(e)){return}if(typeof e==="string"){return e}if(!g){throw typeError(p)}if(typeof e!=="object"){throw typeError(p)}if(e.type!=="secret"){throw typeError(p)}if(typeof e.export!=="function"){throw typeError(p)}}function fromBase64(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function toBase64(e){e=e.toString();var r=4-e.length%4;if(r!==4){for(var i=0;i{var n=i(3334);var s=i(5522);var a=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];r.ALGORITHMS=a;r.sign=n.sign;r.verify=s.verify;r.decode=s.decode;r.isValid=s.isValid;r.createSign=function createSign(e){return new n(e)};r.createVerify=function createVerify(e){return new s(e)}},1868:(e,r,i)=>{var n=i(1867).Buffer;var s=i(2781);var a=i(3837);function DataStream(e){this.buffer=null;this.writable=true;this.readable=true;if(!e){this.buffer=n.alloc(0);return this}if(typeof e.pipe==="function"){this.buffer=n.alloc(0);e.pipe(this);return this}if(e.length||typeof e==="object"){this.buffer=e;this.writable=false;process.nextTick(function(){this.emit("end",e);this.readable=false;this.emit("close")}.bind(this));return this}throw new TypeError("Unexpected data type ("+typeof e+")")}a.inherits(DataStream,s);DataStream.prototype.write=function write(e){this.buffer=n.concat([this.buffer,n.from(e)]);this.emit("data",e)};DataStream.prototype.end=function end(e){if(e)this.write(e);this.emit("end",e);this.emit("close");this.writable=false;this.readable=false};e.exports=DataStream},3334:(e,r,i)=>{var n=i(1867).Buffer;var s=i(1868);var a=i(6010);var o=i(2781);var c=i(5292);var l=i(3837);function base64url(e,r){return n.from(e,r).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function jwsSecuredInput(e,r,i){i=i||"utf8";var n=base64url(c(e),"binary");var s=base64url(c(r),i);return l.format("%s.%s",n,s)}function jwsSign(e){var r=e.header;var i=e.payload;var n=e.secret||e.privateKey;var s=e.encoding;var o=a(r.alg);var c=jwsSecuredInput(r,i,s);var p=o.sign(c,n);return l.format("%s.%s",c,p)}function SignStream(e){var r=e.secret||e.privateKey||e.key;var i=new s(r);this.readable=true;this.header=e.header;this.encoding=e.encoding;this.secret=this.privateKey=this.key=i;this.payload=new s(e.payload);this.secret.once("close",function(){if(!this.payload.writable&&this.readable)this.sign()}.bind(this));this.payload.once("close",function(){if(!this.secret.writable&&this.readable)this.sign()}.bind(this))}l.inherits(SignStream,o);SignStream.prototype.sign=function sign(){try{var e=jwsSign({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});this.emit("done",e);this.emit("data",e);this.emit("end");this.readable=false;return e}catch(e){this.readable=false;this.emit("error",e);this.emit("close")}};SignStream.sign=jwsSign;e.exports=SignStream},5292:(e,r,i)=>{var n=i(4300).Buffer;e.exports=function toString(e){if(typeof e==="string")return e;if(typeof e==="number"||n.isBuffer(e))return e.toString();return JSON.stringify(e)}},5522:(e,r,i)=>{var n=i(1867).Buffer;var s=i(1868);var a=i(6010);var o=i(2781);var c=i(5292);var l=i(3837);var p=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function safeJsonParse(e){if(isObject(e))return e;try{return JSON.parse(e)}catch(e){return undefined}}function headerFromJWS(e){var r=e.split(".",1)[0];return safeJsonParse(n.from(r,"base64").toString("binary"))}function securedInputFromJWS(e){return e.split(".",2).join(".")}function signatureFromJWS(e){return e.split(".")[2]}function payloadFromJWS(e,r){r=r||"utf8";var i=e.split(".")[1];return n.from(i,"base64").toString(r)}function isValidJws(e){return p.test(e)&&!!headerFromJWS(e)}function jwsVerify(e,r,i){if(!r){var n=new Error("Missing algorithm parameter for jws.verify");n.code="MISSING_ALGORITHM";throw n}e=c(e);var s=signatureFromJWS(e);var o=securedInputFromJWS(e);var l=a(r);return l.verify(o,s,i)}function jwsDecode(e,r){r=r||{};e=c(e);if(!isValidJws(e))return null;var i=headerFromJWS(e);if(!i)return null;var n=payloadFromJWS(e);if(i.typ==="JWT"||r.json)n=JSON.parse(n,r.encoding);return{header:i,payload:n,signature:signatureFromJWS(e)}}function VerifyStream(e){e=e||{};var r=e.secret||e.publicKey||e.key;var i=new s(r);this.readable=true;this.algorithm=e.algorithm;this.encoding=e.encoding;this.secret=this.publicKey=this.key=i;this.signature=new s(e.signature);this.secret.once("close",function(){if(!this.signature.writable&&this.readable)this.verify()}.bind(this));this.signature.once("close",function(){if(!this.secret.writable&&this.readable)this.verify()}.bind(this))}l.inherits(VerifyStream,o);VerifyStream.prototype.verify=function verify(){try{var e=jwsVerify(this.signature.buffer,this.algorithm,this.key.buffer);var r=jwsDecode(this.signature.buffer,this.encoding);this.emit("done",e,r);this.emit("data",e);this.emit("end");this.readable=false;return e}catch(e){this.readable=false;this.emit("error",e);this.emit("close")}};VerifyStream.decode=jwsDecode;VerifyStream.isValid=isValidJws;VerifyStream.verify=jwsVerify;e.exports=VerifyStream},7129:(e,r,i)=>{"use strict";const n=i(665);const s=Symbol("max");const a=Symbol("length");const o=Symbol("lengthCalculator");const c=Symbol("allowStale");const l=Symbol("maxAge");const p=Symbol("dispose");const d=Symbol("noDisposeOnSet");const h=Symbol("lruList");const g=Symbol("cache");const v=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const r=this[s]=e.max||Infinity;const i=e.length||naiveLength;this[o]=typeof i!=="function"?naiveLength:i;this[c]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0;this[p]=e.dispose;this[d]=e.noDisposeOnSet||false;this[v]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[s]=e||Infinity;trim(this)}get max(){return this[s]}set allowStale(e){this[c]=!!e}get allowStale(){return this[c]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[l]=e;trim(this)}get maxAge(){return this[l]}set lengthCalculator(e){if(typeof e!=="function")e=naiveLength;if(e!==this[o]){this[o]=e;this[a]=0;this[h].forEach((e=>{e.length=this[o](e.value,e.key);this[a]+=e.length}))}trim(this)}get lengthCalculator(){return this[o]}get length(){return this[a]}get itemCount(){return this[h].length}rforEach(e,r){r=r||this;for(let i=this[h].tail;i!==null;){const n=i.prev;forEachStep(this,e,i,r);i=n}}forEach(e,r){r=r||this;for(let i=this[h].head;i!==null;){const n=i.next;forEachStep(this,e,i,r);i=n}}keys(){return this[h].toArray().map((e=>e.key))}values(){return this[h].toArray().map((e=>e.value))}reset(){if(this[p]&&this[h]&&this[h].length){this[h].forEach((e=>this[p](e.key,e.value)))}this[g]=new Map;this[h]=new n;this[a]=0}dump(){return this[h].map((e=>isStale(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[h]}set(e,r,i){i=i||this[l];if(i&&typeof i!=="number")throw new TypeError("maxAge must be a number");const n=i?Date.now():0;const c=this[o](r,e);if(this[g].has(e)){if(c>this[s]){del(this,this[g].get(e));return false}const o=this[g].get(e);const l=o.value;if(this[p]){if(!this[d])this[p](e,l.value)}l.now=n;l.maxAge=i;l.value=r;this[a]+=c-l.length;l.length=c;this.get(e);trim(this);return true}const v=new Entry(e,r,c,n,i);if(v.length>this[s]){if(this[p])this[p](e,r);return false}this[a]+=v.length;this[h].unshift(v);this[g].set(e,this[h].head);trim(this);return true}has(e){if(!this[g].has(e))return false;const r=this[g].get(e).value;return!isStale(this,r)}get(e){return get(this,e,true)}peek(e){return get(this,e,false)}pop(){const e=this[h].tail;if(!e)return null;del(this,e);return e.value}del(e){del(this,this[g].get(e))}load(e){this.reset();const r=Date.now();for(let i=e.length-1;i>=0;i--){const n=e[i];const s=n.e||0;if(s===0)this.set(n.k,n.v);else{const e=s-r;if(e>0){this.set(n.k,n.v,e)}}}}prune(){this[g].forEach(((e,r)=>get(this,r,false)))}}const get=(e,r,i)=>{const n=e[g].get(r);if(n){const r=n.value;if(isStale(e,r)){del(e,n);if(!e[c])return undefined}else{if(i){if(e[v])n.value.now=Date.now();e[h].unshiftNode(n)}}return r.value}};const isStale=(e,r)=>{if(!r||!r.maxAge&&!e[l])return false;const i=Date.now()-r.now;return r.maxAge?i>r.maxAge:e[l]&&i>e[l]};const trim=e=>{if(e[a]>e[s]){for(let r=e[h].tail;e[a]>e[s]&&r!==null;){const i=r.prev;del(e,r);r=i}}};const del=(e,r)=>{if(r){const i=r.value;if(e[p])e[p](i.key,i.value);e[a]-=i.length;e[g].delete(i.key);e[h].removeNode(r)}};class Entry{constructor(e,r,i,n,s){this.key=e;this.value=r;this.length=i;this.now=n;this.maxAge=s||0}}const forEachStep=(e,r,i,n)=>{let s=i.value;if(isStale(e,s)){del(e,i);if(!e[c])s=undefined}if(s)r.call(n,s.value,s.key,e)};e.exports=LRUCache},9126:(e,r,i)=>{"use strict";const n=i(7147);const s=i(1017);const{promisify:a}=i(3837);const o=i(3689);const c=o.satisfies(process.version,">=10.12.0");const checkPath=e=>{if(process.platform==="win32"){const r=/[<>:"|?*]/.test(e.replace(s.parse(e).root,""));if(r){const r=new Error(`Path contains invalid characters: ${e}`);r.code="EINVAL";throw r}}};const processOptions=e=>{const r={mode:511,fs:n};return{...r,...e}};const permissionError=e=>{const r=new Error(`operation not permitted, mkdir '${e}'`);r.code="EPERM";r.errno=-4048;r.path=e;r.syscall="mkdir";return r};const makeDir=async(e,r)=>{checkPath(e);r=processOptions(r);const i=a(r.fs.mkdir);const o=a(r.fs.stat);if(c&&r.fs.mkdir===n.mkdir){const n=s.resolve(e);await i(n,{mode:r.mode,recursive:true});return n}const make=async e=>{try{await i(e,r.mode);return e}catch(r){if(r.code==="EPERM"){throw r}if(r.code==="ENOENT"){if(s.dirname(e)===e){throw permissionError(e)}if(r.message.includes("null bytes")){throw r}await make(s.dirname(e));return make(e)}try{const r=await o(e);if(!r.isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw r}return e}};return make(s.resolve(e))};e.exports=makeDir;e.exports.sync=(e,r)=>{checkPath(e);r=processOptions(r);if(c&&r.fs.mkdirSync===n.mkdirSync){const i=s.resolve(e);n.mkdirSync(i,{mode:r.mode,recursive:true});return i}const make=e=>{try{r.fs.mkdirSync(e,r.mode)}catch(i){if(i.code==="EPERM"){throw i}if(i.code==="ENOENT"){if(s.dirname(e)===e){throw permissionError(e)}if(i.message.includes("null bytes")){throw i}make(s.dirname(e));return make(e)}try{if(!r.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw i}}return e};return make(s.resolve(e))}},3689:(e,r)=>{r=e.exports=SemVer;var i;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){i=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{i=function(){}}r.SEMVER_SPEC_VERSION="2.0.0";var n=256;var s=Number.MAX_SAFE_INTEGER||9007199254740991;var a=16;var o=r.re=[];var c=r.src=[];var l=r.tokens={};var p=0;function tok(e){l[e]=p++}tok("NUMERICIDENTIFIER");c[l.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");c[l.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");c[l.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");c[l.MAINVERSION]="("+c[l.NUMERICIDENTIFIER]+")\\."+"("+c[l.NUMERICIDENTIFIER]+")\\."+"("+c[l.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");c[l.MAINVERSIONLOOSE]="("+c[l.NUMERICIDENTIFIERLOOSE]+")\\."+"("+c[l.NUMERICIDENTIFIERLOOSE]+")\\."+"("+c[l.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");c[l.PRERELEASEIDENTIFIER]="(?:"+c[l.NUMERICIDENTIFIER]+"|"+c[l.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");c[l.PRERELEASEIDENTIFIERLOOSE]="(?:"+c[l.NUMERICIDENTIFIERLOOSE]+"|"+c[l.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");c[l.PRERELEASE]="(?:-("+c[l.PRERELEASEIDENTIFIER]+"(?:\\."+c[l.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");c[l.PRERELEASELOOSE]="(?:-?("+c[l.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+c[l.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");c[l.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");c[l.BUILD]="(?:\\+("+c[l.BUILDIDENTIFIER]+"(?:\\."+c[l.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");c[l.FULLPLAIN]="v?"+c[l.MAINVERSION]+c[l.PRERELEASE]+"?"+c[l.BUILD]+"?";c[l.FULL]="^"+c[l.FULLPLAIN]+"$";tok("LOOSEPLAIN");c[l.LOOSEPLAIN]="[v=\\s]*"+c[l.MAINVERSIONLOOSE]+c[l.PRERELEASELOOSE]+"?"+c[l.BUILD]+"?";tok("LOOSE");c[l.LOOSE]="^"+c[l.LOOSEPLAIN]+"$";tok("GTLT");c[l.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");c[l.XRANGEIDENTIFIERLOOSE]=c[l.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");c[l.XRANGEIDENTIFIER]=c[l.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");c[l.XRANGEPLAIN]="[v=\\s]*("+c[l.XRANGEIDENTIFIER]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIER]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIER]+")"+"(?:"+c[l.PRERELEASE]+")?"+c[l.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");c[l.XRANGEPLAINLOOSE]="[v=\\s]*("+c[l.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+c[l.PRERELEASELOOSE]+")?"+c[l.BUILD]+"?"+")?)?";tok("XRANGE");c[l.XRANGE]="^"+c[l.GTLT]+"\\s*"+c[l.XRANGEPLAIN]+"$";tok("XRANGELOOSE");c[l.XRANGELOOSE]="^"+c[l.GTLT]+"\\s*"+c[l.XRANGEPLAINLOOSE]+"$";tok("COERCE");c[l.COERCE]="(^|[^\\d])"+"(\\d{1,"+a+"})"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");o[l.COERCERTL]=new RegExp(c[l.COERCE],"g");tok("LONETILDE");c[l.LONETILDE]="(?:~>?)";tok("TILDETRIM");c[l.TILDETRIM]="(\\s*)"+c[l.LONETILDE]+"\\s+";o[l.TILDETRIM]=new RegExp(c[l.TILDETRIM],"g");var d="$1~";tok("TILDE");c[l.TILDE]="^"+c[l.LONETILDE]+c[l.XRANGEPLAIN]+"$";tok("TILDELOOSE");c[l.TILDELOOSE]="^"+c[l.LONETILDE]+c[l.XRANGEPLAINLOOSE]+"$";tok("LONECARET");c[l.LONECARET]="(?:\\^)";tok("CARETTRIM");c[l.CARETTRIM]="(\\s*)"+c[l.LONECARET]+"\\s+";o[l.CARETTRIM]=new RegExp(c[l.CARETTRIM],"g");var h="$1^";tok("CARET");c[l.CARET]="^"+c[l.LONECARET]+c[l.XRANGEPLAIN]+"$";tok("CARETLOOSE");c[l.CARETLOOSE]="^"+c[l.LONECARET]+c[l.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");c[l.COMPARATORLOOSE]="^"+c[l.GTLT]+"\\s*("+c[l.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");c[l.COMPARATOR]="^"+c[l.GTLT]+"\\s*("+c[l.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");c[l.COMPARATORTRIM]="(\\s*)"+c[l.GTLT]+"\\s*("+c[l.LOOSEPLAIN]+"|"+c[l.XRANGEPLAIN]+")";o[l.COMPARATORTRIM]=new RegExp(c[l.COMPARATORTRIM],"g");var g="$1$2$3";tok("HYPHENRANGE");c[l.HYPHENRANGE]="^\\s*("+c[l.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+c[l.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");c[l.HYPHENRANGELOOSE]="^\\s*("+c[l.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+c[l.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");c[l.STAR]="(<|>)?=?\\s*\\*";for(var v=0;vn){return null}var i=r.loose?o[l.LOOSE]:o[l.FULL];if(!i.test(e)){return null}try{return new SemVer(e,r)}catch(e){return null}}r.valid=valid;function valid(e,r){var i=parse(e,r);return i?i.version:null}r.clean=clean;function clean(e,r){var i=parse(e.trim().replace(/^[=v]+/,""),r);return i?i.version:null}r.SemVer=SemVer;function SemVer(e,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===r.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,r)}i("SemVer",e,r);this.options=r;this.loose=!!r.loose;var a=e.trim().match(r.loose?o[l.LOOSE]:o[l.FULL]);if(!a){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+a[1];this.minor=+a[2];this.patch=+a[3];if(this.major>s||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>s||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>s||this.patch<0){throw new TypeError("Invalid patch version")}if(!a[4]){this.prerelease=[]}else{this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var r=+e;if(r>=0&&r=0){if(typeof this.prerelease[i]==="number"){this.prerelease[i]++;i=-2}}if(i===-1){this.prerelease.push(0)}}if(r){if(this.prerelease[0]===r){if(isNaN(this.prerelease[1])){this.prerelease=[r,0]}}else{this.prerelease=[r,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};r.inc=inc;function inc(e,r,i,n){if(typeof i==="string"){n=i;i=undefined}try{return new SemVer(e,i).inc(r,n).version}catch(e){return null}}r.diff=diff;function diff(e,r){if(eq(e,r)){return null}else{var i=parse(e);var n=parse(r);var s="";if(i.prerelease.length||n.prerelease.length){s="pre";var a="prerelease"}for(var o in i){if(o==="major"||o==="minor"||o==="patch"){if(i[o]!==n[o]){return s+o}}}return a}}r.compareIdentifiers=compareIdentifiers;var y=/^[0-9]+$/;function compareIdentifiers(e,r){var i=y.test(e);var n=y.test(r);if(i&&n){e=+e;r=+r}return e===r?0:i&&!n?-1:n&&!i?1:e0}r.lt=lt;function lt(e,r,i){return compare(e,r,i)<0}r.eq=eq;function eq(e,r,i){return compare(e,r,i)===0}r.neq=neq;function neq(e,r,i){return compare(e,r,i)!==0}r.gte=gte;function gte(e,r,i){return compare(e,r,i)>=0}r.lte=lte;function lte(e,r,i){return compare(e,r,i)<=0}r.cmp=cmp;function cmp(e,r,i,n){switch(r){case"===":if(typeof e==="object")e=e.version;if(typeof i==="object")i=i.version;return e===i;case"!==":if(typeof e==="object")e=e.version;if(typeof i==="object")i=i.version;return e!==i;case"":case"=":case"==":return eq(e,i,n);case"!=":return neq(e,i,n);case">":return gt(e,i,n);case">=":return gte(e,i,n);case"<":return lt(e,i,n);case"<=":return lte(e,i,n);default:throw new TypeError("Invalid operator: "+r)}}r.Comparator=Comparator;function Comparator(e,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!r.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,r)}i("comparator",e,r);this.options=r;this.loose=!!r.loose;this.parse(e);if(this.semver===b){this.value=""}else{this.value=this.operator+this.semver.version}i("comp",this)}var b={};Comparator.prototype.parse=function(e){var r=this.options.loose?o[l.COMPARATORLOOSE]:o[l.COMPARATOR];var i=e.match(r);if(!i){throw new TypeError("Invalid comparator: "+e)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=b}else{this.semver=new SemVer(i[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){i("Comparator.test",e,this.options.loose);if(this.semver===b||e===b){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,r){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}var i;if(this.operator===""){if(this.value===""){return true}i=new Range(e.value,r);return satisfies(this.value,i,r)}else if(e.operator===""){if(e.value===""){return true}i=new Range(this.value,r);return satisfies(e.semver,i,r)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var a=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var c=cmp(this.semver,"<",e.semver,r)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var l=cmp(this.semver,">",e.semver,r)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||s||a&&o||c||l};r.Range=Range;function Range(e,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease){return e}else{return new Range(e.raw,r)}}if(e instanceof Comparator){return new Range(e.value,r)}if(!(this instanceof Range)){return new Range(e,r)}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var r=this.options.loose;e=e.trim();var n=r?o[l.HYPHENRANGELOOSE]:o[l.HYPHENRANGE];e=e.replace(n,hyphenReplace);i("hyphen replace",e);e=e.replace(o[l.COMPARATORTRIM],g);i("comparator trim",e,o[l.COMPARATORTRIM]);e=e.replace(o[l.TILDETRIM],d);e=e.replace(o[l.CARETTRIM],h);e=e.split(/\s+/).join(" ");var s=r?o[l.COMPARATORLOOSE]:o[l.COMPARATOR];var a=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){a=a.filter((function(e){return!!e.match(s)}))}a=a.map((function(e){return new Comparator(e,this.options)}),this);return a};Range.prototype.intersects=function(e,r){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(i){return isSatisfiable(i,r)&&e.set.some((function(e){return isSatisfiable(e,r)&&i.every((function(i){return e.every((function(e){return i.intersects(e,r)}))}))}))}))};function isSatisfiable(e,r){var i=true;var n=e.slice();var s=n.pop();while(i&&n.length){i=n.every((function(e){return s.intersects(e,r)}));s=n.pop()}return i}r.toComparators=toComparators;function toComparators(e,r){return new Range(e,r).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,r){i("comp",e,r);e=replaceCarets(e,r);i("caret",e);e=replaceTildes(e,r);i("tildes",e);e=replaceXRanges(e,r);i("xrange",e);e=replaceStars(e,r);i("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,r){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,r)})).join(" ")}function replaceTilde(e,r){var n=r.loose?o[l.TILDELOOSE]:o[l.TILDE];return e.replace(n,(function(r,n,s,a,o){i("tilde",e,r,n,s,a,o);var c;if(isX(n)){c=""}else if(isX(s)){c=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(a)){c=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0"}else if(o){i("replaceTilde pr",o);c=">="+n+"."+s+"."+a+"-"+o+" <"+n+"."+(+s+1)+".0"}else{c=">="+n+"."+s+"."+a+" <"+n+"."+(+s+1)+".0"}i("tilde return",c);return c}))}function replaceCarets(e,r){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,r)})).join(" ")}function replaceCaret(e,r){i("caret",e,r);var n=r.loose?o[l.CARETLOOSE]:o[l.CARET];return e.replace(n,(function(r,n,s,a,o){i("caret",e,r,n,s,a,o);var c;if(isX(n)){c=""}else if(isX(s)){c=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(a)){if(n==="0"){c=">="+n+"."+s+".0 <"+n+"."+(+s+1)+".0"}else{c=">="+n+"."+s+".0 <"+(+n+1)+".0.0"}}else if(o){i("replaceCaret pr",o);if(n==="0"){if(s==="0"){c=">="+n+"."+s+"."+a+"-"+o+" <"+n+"."+s+"."+(+a+1)}else{c=">="+n+"."+s+"."+a+"-"+o+" <"+n+"."+(+s+1)+".0"}}else{c=">="+n+"."+s+"."+a+"-"+o+" <"+(+n+1)+".0.0"}}else{i("no pr");if(n==="0"){if(s==="0"){c=">="+n+"."+s+"."+a+" <"+n+"."+s+"."+(+a+1)}else{c=">="+n+"."+s+"."+a+" <"+n+"."+(+s+1)+".0"}}else{c=">="+n+"."+s+"."+a+" <"+(+n+1)+".0.0"}}i("caret return",c);return c}))}function replaceXRanges(e,r){i("replaceXRanges",e,r);return e.split(/\s+/).map((function(e){return replaceXRange(e,r)})).join(" ")}function replaceXRange(e,r){e=e.trim();var n=r.loose?o[l.XRANGELOOSE]:o[l.XRANGE];return e.replace(n,(function(n,s,a,o,c,l){i("xRange",e,n,s,a,o,c,l);var p=isX(a);var d=p||isX(o);var h=d||isX(c);var g=h;if(s==="="&&g){s=""}l=r.includePrerelease?"-0":"";if(p){if(s===">"||s==="<"){n="<0.0.0-0"}else{n="*"}}else if(s&&g){if(d){o=0}c=0;if(s===">"){s=">=";if(d){a=+a+1;o=0;c=0}else{o=+o+1;c=0}}else if(s==="<="){s="<";if(d){a=+a+1}else{o=+o+1}}n=s+a+"."+o+"."+c+l}else if(d){n=">="+a+".0.0"+l+" <"+(+a+1)+".0.0"+l}else if(h){n=">="+a+"."+o+".0"+l+" <"+a+"."+(+o+1)+".0"+l}i("xRange return",n);return n}))}function replaceStars(e,r){i("replaceStars",e,r);return e.trim().replace(o[l.STAR],"")}function hyphenReplace(e,r,i,n,s,a,o,c,l,p,d,h,g){if(isX(i)){r=""}else if(isX(n)){r=">="+i+".0.0"}else if(isX(s)){r=">="+i+"."+n+".0"}else{r=">="+r}if(isX(l)){c=""}else if(isX(p)){c="<"+(+l+1)+".0.0"}else if(isX(d)){c="<"+l+"."+(+p+1)+".0"}else if(h){c="<="+l+"."+p+"."+d+"-"+h}else{c="<="+c}return(r+" "+c).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var r=0;r0){var a=e[s].semver;if(a.major===r.major&&a.minor===r.minor&&a.patch===r.patch){return true}}}return false}return true}r.satisfies=satisfies;function satisfies(e,r,i){try{r=new Range(r,i)}catch(e){return false}return r.test(e)}r.maxSatisfying=maxSatisfying;function maxSatisfying(e,r,i){var n=null;var s=null;try{var a=new Range(r,i)}catch(e){return null}e.forEach((function(e){if(a.test(e)){if(!n||s.compare(e)===-1){n=e;s=new SemVer(n,i)}}}));return n}r.minSatisfying=minSatisfying;function minSatisfying(e,r,i){var n=null;var s=null;try{var a=new Range(r,i)}catch(e){return null}e.forEach((function(e){if(a.test(e)){if(!n||s.compare(e)===1){n=e;s=new SemVer(n,i)}}}));return n}r.minVersion=minVersion;function minVersion(e,r){e=new Range(e,r);var i=new SemVer("0.0.0");if(e.test(i)){return i}i=new SemVer("0.0.0-0");if(e.test(i)){return i}i=null;for(var n=0;n":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!i||gt(i,r)){i=r}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(i&&e.test(i)){return i}return null}r.validRange=validRange;function validRange(e,r){try{return new Range(e,r).range||"*"}catch(e){return null}}r.ltr=ltr;function ltr(e,r,i){return outside(e,r,"<",i)}r.gtr=gtr;function gtr(e,r,i){return outside(e,r,">",i)}r.outside=outside;function outside(e,r,i,n){e=new SemVer(e,n);r=new Range(r,n);var s,a,o,c,l;switch(i){case">":s=gt;a=lte;o=lt;c=">";l=">=";break;case"<":s=lt;a=gte;o=gt;c="<";l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,r,n)){return false}for(var p=0;p=0.0.0")}h=h||e;g=g||e;if(s(e.semver,h.semver,n)){h=e}else if(o(e.semver,g.semver,n)){g=e}}));if(h.operator===c||h.operator===l){return false}if((!g.operator||g.operator===c)&&a(e,g.semver)){return false}else if(g.operator===l&&o(e,g.semver)){return false}}return true}r.prerelease=prerelease;function prerelease(e,r){var i=parse(e,r);return i&&i.prerelease.length?i.prerelease:null}r.intersects=intersects;function intersects(e,r,i){e=new Range(e,i);r=new Range(r,i);return e.intersects(r)}r.coerce=coerce;function coerce(e,r){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}r=r||{};var i=null;if(!r.rtl){i=e.match(o[l.COERCE])}else{var n;while((n=o[l.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length)){if(!i||n.index+n[0].length!==i.index+i[0].length){i=n}o[l.COERCERTL].lastIndex=n.index+n[1].length+n[2].length}o[l.COERCERTL].lastIndex=-1}if(i===null){return null}return parse(i[2]+"."+(i[3]||"0")+"."+(i[4]||"0"),r)}},7426:(e,r,i)=>{ +(function(){var r;function MurmurHash3(e,i){var n=this instanceof MurmurHash3?this:r;n.reset(i);if(typeof e==="string"&&e.length>0){n.hash(e)}if(n!==this){return n}}MurmurHash3.prototype.hash=function(e){var r,i,n,a,s;s=e.length;this.len+=s;i=this.k1;n=0;switch(this.rem){case 0:i^=s>n?e.charCodeAt(n++)&65535:0;case 1:i^=s>n?(e.charCodeAt(n++)&65535)<<8:0;case 2:i^=s>n?(e.charCodeAt(n++)&65535)<<16:0;case 3:i^=s>n?(e.charCodeAt(n)&255)<<24:0;i^=s>n?(e.charCodeAt(n++)&65280)>>8:0}this.rem=s+this.rem&3;s-=this.rem;if(s>0){r=this.h1;while(1){i=i*11601+(i&65535)*3432906752&4294967295;i=i<<15|i>>>17;i=i*13715+(i&65535)*461832192&4294967295;r^=i;r=r<<13|r>>>19;r=r*5+3864292196&4294967295;if(n>=s){break}i=e.charCodeAt(n++)&65535^(e.charCodeAt(n++)&65535)<<8^(e.charCodeAt(n++)&65535)<<16;a=e.charCodeAt(n++);i^=(a&255)<<24^(a&65280)>>8}i=0;switch(this.rem){case 3:i^=(e.charCodeAt(n+2)&65535)<<16;case 2:i^=(e.charCodeAt(n+1)&65535)<<8;case 1:i^=e.charCodeAt(n)&65535}this.h1=r}this.k1=i;return this};MurmurHash3.prototype.result=function(){var e,r;e=this.k1;r=this.h1;if(e>0){e=e*11601+(e&65535)*3432906752&4294967295;e=e<<15|e>>>17;e=e*13715+(e&65535)*461832192&4294967295;r^=e}r^=this.len;r^=r>>>16;r=r*51819+(r&65535)*2246770688&4294967295;r^=r>>>13;r=r*44597+(r&65535)*3266445312&4294967295;r^=r>>>16;return r>>>0};MurmurHash3.prototype.reset=function(e){this.h1=typeof e==="number"?e:0;this.rem=this.k1=this.len=0;return this};r=new MurmurHash3;if(true){e.exports=MurmurHash3}else{}})()},2492:(e,r,i)=>{var n=i(2940);var a=Object.create(null);var s=i(1223);e.exports=n(inflight);function inflight(e,r){if(a[e]){a[e].push(r);return null}else{a[e]=[r];return makeres(e)}}function makeres(e){return s((function RES(){var r=a[e];var i=r.length;var n=slice(arguments);try{for(var s=0;si){r.splice(0,i);process.nextTick((function(){RES.apply(null,n)}))}else{delete a[e]}}}))}function slice(e){var r=e.length;var i=[];for(var n=0;n{try{var n=i(3837);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(r){e.exports=i(8544)}},8544:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,r){if(r){e.super_=r;e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,r){if(r){e.super_=r;var TempCtor=function(){};TempCtor.prototype=r.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},1389:e=>{"use strict";e.exports=e=>{const r=typeof e;return e!==null&&(r==="object"||r==="function")}},1554:e=>{"use strict";const isStream=e=>e!==null&&typeof e==="object"&&typeof e.pipe==="function";isStream.writable=e=>isStream(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object";isStream.readable=e=>isStream(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object";isStream.duplex=e=>isStream.writable(e)&&isStream.readable(e);isStream.transform=e=>isStream.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object";e.exports=isStream},657:e=>{e.exports=isTypedArray;isTypedArray.strict=isStrictTypedArray;isTypedArray.loose=isLooseTypedArray;var r=Object.prototype.toString;var i={"[object Int8Array]":true,"[object Int16Array]":true,"[object Int32Array]":true,"[object Uint8Array]":true,"[object Uint8ClampedArray]":true,"[object Uint16Array]":true,"[object Uint32Array]":true,"[object Float32Array]":true,"[object Float64Array]":true};function isTypedArray(e){return isStrictTypedArray(e)||isLooseTypedArray(e)}function isStrictTypedArray(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function isLooseTypedArray(e){return i[r.call(e)]}},5031:(e,r,i)=>{var n=i(8574).stringify;var a=i(9099);e.exports=function(e){return{parse:a(e),stringify:n}};e.exports.parse=a();e.exports.stringify=n},9099:(e,r,i)=>{var n=null;const a=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/;const s=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var json_parse=function(e){"use strict";var r={strict:false,storeAsString:false,alwaysParseAsBig:false,useNativeBigInt:false,protoAction:"error",constructorAction:"error"};if(e!==undefined&&e!==null){if(e.strict===true){r.strict=true}if(e.storeAsString===true){r.storeAsString=true}r.alwaysParseAsBig=e.alwaysParseAsBig===true?e.alwaysParseAsBig:false;r.useNativeBigInt=e.useNativeBigInt===true?e.useNativeBigInt:false;if(typeof e.constructorAction!=="undefined"){if(e.constructorAction==="error"||e.constructorAction==="ignore"||e.constructorAction==="preserve"){r.constructorAction=e.constructorAction}else{throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${e.constructorAction}`)}}if(typeof e.protoAction!=="undefined"){if(e.protoAction==="error"||e.protoAction==="ignore"||e.protoAction==="preserve"){r.protoAction=e.protoAction}else{throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${e.protoAction}`)}}}var o,c,l={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},p,error=function(e){throw{name:"SyntaxError",message:e,at:o,text:p}},next=function(e){if(e&&e!==c){error("Expected '"+e+"' instead of '"+c+"'")}c=p.charAt(o);o+=1;return c},number=function(){var e,a="";if(c==="-"){a="-";next("-")}while(c>="0"&&c<="9"){a+=c;next()}if(c==="."){a+=".";while(next()&&c>="0"&&c<="9"){a+=c}}if(c==="e"||c==="E"){a+=c;next();if(c==="-"||c==="+"){a+=c;next()}while(c>="0"&&c<="9"){a+=c;next()}}e=+a;if(!isFinite(e)){error("Bad number")}else{if(n==null)n=i(7558);if(a.length>15)return r.storeAsString?a:r.useNativeBigInt?BigInt(a):new n(a);else return!r.alwaysParseAsBig?e:r.useNativeBigInt?BigInt(e):new n(e)}},string=function(){var e,r,i="",n;if(c==='"'){var a=o;while(next()){if(c==='"'){if(o-1>a)i+=p.substring(a,o-1);next();return i}if(c==="\\"){if(o-1>a)i+=p.substring(a,o-1);next();if(c==="u"){n=0;for(r=0;r<4;r+=1){e=parseInt(next(),16);if(!isFinite(e)){break}n=n*16+e}i+=String.fromCharCode(n)}else if(typeof l[c]==="string"){i+=l[c]}else{break}a=o}}}error("Bad string")},white=function(){while(c&&c<=" "){next()}},word=function(){switch(c){case"t":next("t");next("r");next("u");next("e");return true;case"f":next("f");next("a");next("l");next("s");next("e");return false;case"n":next("n");next("u");next("l");next("l");return null}error("Unexpected '"+c+"'")},d,array=function(){var e=[];if(c==="["){next("[");white();if(c==="]"){next("]");return e}while(c){e.push(d());white();if(c==="]"){next("]");return e}next(",");white()}}error("Bad array")},object=function(){var e,i=Object.create(null);if(c==="{"){next("{");white();if(c==="}"){next("}");return i}while(c){e=string();white();next(":");if(r.strict===true&&Object.hasOwnProperty.call(i,e)){error('Duplicate key "'+e+'"')}if(a.test(e)===true){if(r.protoAction==="error"){error("Object contains forbidden prototype property")}else if(r.protoAction==="ignore"){d()}else{i[e]=d()}}else if(s.test(e)===true){if(r.constructorAction==="error"){error("Object contains forbidden constructor property")}else if(r.constructorAction==="ignore"){d()}else{i[e]=d()}}else{i[e]=d()}white();if(c==="}"){next("}");return i}next(",");white()}}error("Bad object")};d=function(){white();switch(c){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return c>="0"&&c<="9"?number():word()}};return function(e,r){var i;p=e+"";o=0;c=" ";i=d();white();if(c){error("Syntax error")}return typeof r==="function"?function walk(e,i){var n,a,s=e[i];if(s&&typeof s==="object"){Object.keys(s).forEach((function(e){a=walk(s,e);if(a!==undefined){s[e]=a}else{delete s[e]}}))}return r.call(e,i,s)}({"":i},""):i}};e.exports=json_parse},8574:(e,r,i)=>{var n=i(7558);var a=e.exports;(function(){"use strict";function f(e){return e<10?"0"+e:e}var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i,s,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},c;function quote(e){r.lastIndex=0;return r.test(e)?'"'+e.replace(r,(function(e){var r=o[e];return typeof r==="string"?r:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function str(e,r){var a,o,l,p,d=i,h,g=r[e],v=g!=null&&(g instanceof n||n.isBigNumber(g));if(g&&typeof g==="object"&&typeof g.toJSON==="function"){g=g.toJSON(e)}if(typeof c==="function"){g=c.call(r,e,g)}switch(typeof g){case"string":if(v){return g}else{return quote(g)}case"number":return isFinite(g)?String(g):"null";case"boolean":case"null":case"bigint":return String(g);case"object":if(!g){return"null"}i+=s;h=[];if(Object.prototype.toString.apply(g)==="[object Array]"){p=g.length;for(a=0;a{var n=i(9239);var a=i(1867).Buffer;var s=i(6113);var o=i(1728);var c=i(3837);var l='"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".';var p="secret must be a string or buffer";var d="key must be a string or a buffer";var h="key must be a string, a buffer or an object";var g=typeof s.createPublicKey==="function";if(g){d+=" or a KeyObject";p+="or a KeyObject"}function checkIsPublicKey(e){if(a.isBuffer(e)){return}if(typeof e==="string"){return}if(!g){throw typeError(d)}if(typeof e!=="object"){throw typeError(d)}if(typeof e.type!=="string"){throw typeError(d)}if(typeof e.asymmetricKeyType!=="string"){throw typeError(d)}if(typeof e.export!=="function"){throw typeError(d)}}function checkIsPrivateKey(e){if(a.isBuffer(e)){return}if(typeof e==="string"){return}if(typeof e==="object"){return}throw typeError(h)}function checkIsSecretKey(e){if(a.isBuffer(e)){return}if(typeof e==="string"){return e}if(!g){throw typeError(p)}if(typeof e!=="object"){throw typeError(p)}if(e.type!=="secret"){throw typeError(p)}if(typeof e.export!=="function"){throw typeError(p)}}function fromBase64(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function toBase64(e){e=e.toString();var r=4-e.length%4;if(r!==4){for(var i=0;i{var n=i(3334);var a=i(5522);var s=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];r.ALGORITHMS=s;r.sign=n.sign;r.verify=a.verify;r.decode=a.decode;r.isValid=a.isValid;r.createSign=function createSign(e){return new n(e)};r.createVerify=function createVerify(e){return new a(e)}},1868:(e,r,i)=>{var n=i(1867).Buffer;var a=i(2781);var s=i(3837);function DataStream(e){this.buffer=null;this.writable=true;this.readable=true;if(!e){this.buffer=n.alloc(0);return this}if(typeof e.pipe==="function"){this.buffer=n.alloc(0);e.pipe(this);return this}if(e.length||typeof e==="object"){this.buffer=e;this.writable=false;process.nextTick(function(){this.emit("end",e);this.readable=false;this.emit("close")}.bind(this));return this}throw new TypeError("Unexpected data type ("+typeof e+")")}s.inherits(DataStream,a);DataStream.prototype.write=function write(e){this.buffer=n.concat([this.buffer,n.from(e)]);this.emit("data",e)};DataStream.prototype.end=function end(e){if(e)this.write(e);this.emit("end",e);this.emit("close");this.writable=false;this.readable=false};e.exports=DataStream},3334:(e,r,i)=>{var n=i(1867).Buffer;var a=i(1868);var s=i(6010);var o=i(2781);var c=i(5292);var l=i(3837);function base64url(e,r){return n.from(e,r).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function jwsSecuredInput(e,r,i){i=i||"utf8";var n=base64url(c(e),"binary");var a=base64url(c(r),i);return l.format("%s.%s",n,a)}function jwsSign(e){var r=e.header;var i=e.payload;var n=e.secret||e.privateKey;var a=e.encoding;var o=s(r.alg);var c=jwsSecuredInput(r,i,a);var p=o.sign(c,n);return l.format("%s.%s",c,p)}function SignStream(e){var r=e.secret||e.privateKey||e.key;var i=new a(r);this.readable=true;this.header=e.header;this.encoding=e.encoding;this.secret=this.privateKey=this.key=i;this.payload=new a(e.payload);this.secret.once("close",function(){if(!this.payload.writable&&this.readable)this.sign()}.bind(this));this.payload.once("close",function(){if(!this.secret.writable&&this.readable)this.sign()}.bind(this))}l.inherits(SignStream,o);SignStream.prototype.sign=function sign(){try{var e=jwsSign({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});this.emit("done",e);this.emit("data",e);this.emit("end");this.readable=false;return e}catch(e){this.readable=false;this.emit("error",e);this.emit("close")}};SignStream.sign=jwsSign;e.exports=SignStream},5292:(e,r,i)=>{var n=i(4300).Buffer;e.exports=function toString(e){if(typeof e==="string")return e;if(typeof e==="number"||n.isBuffer(e))return e.toString();return JSON.stringify(e)}},5522:(e,r,i)=>{var n=i(1867).Buffer;var a=i(1868);var s=i(6010);var o=i(2781);var c=i(5292);var l=i(3837);var p=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function safeJsonParse(e){if(isObject(e))return e;try{return JSON.parse(e)}catch(e){return undefined}}function headerFromJWS(e){var r=e.split(".",1)[0];return safeJsonParse(n.from(r,"base64").toString("binary"))}function securedInputFromJWS(e){return e.split(".",2).join(".")}function signatureFromJWS(e){return e.split(".")[2]}function payloadFromJWS(e,r){r=r||"utf8";var i=e.split(".")[1];return n.from(i,"base64").toString(r)}function isValidJws(e){return p.test(e)&&!!headerFromJWS(e)}function jwsVerify(e,r,i){if(!r){var n=new Error("Missing algorithm parameter for jws.verify");n.code="MISSING_ALGORITHM";throw n}e=c(e);var a=signatureFromJWS(e);var o=securedInputFromJWS(e);var l=s(r);return l.verify(o,a,i)}function jwsDecode(e,r){r=r||{};e=c(e);if(!isValidJws(e))return null;var i=headerFromJWS(e);if(!i)return null;var n=payloadFromJWS(e);if(i.typ==="JWT"||r.json)n=JSON.parse(n,r.encoding);return{header:i,payload:n,signature:signatureFromJWS(e)}}function VerifyStream(e){e=e||{};var r=e.secret||e.publicKey||e.key;var i=new a(r);this.readable=true;this.algorithm=e.algorithm;this.encoding=e.encoding;this.secret=this.publicKey=this.key=i;this.signature=new a(e.signature);this.secret.once("close",function(){if(!this.signature.writable&&this.readable)this.verify()}.bind(this));this.signature.once("close",function(){if(!this.secret.writable&&this.readable)this.verify()}.bind(this))}l.inherits(VerifyStream,o);VerifyStream.prototype.verify=function verify(){try{var e=jwsVerify(this.signature.buffer,this.algorithm,this.key.buffer);var r=jwsDecode(this.signature.buffer,this.encoding);this.emit("done",e,r);this.emit("data",e);this.emit("end");this.readable=false;return e}catch(e){this.readable=false;this.emit("error",e);this.emit("close")}};VerifyStream.decode=jwsDecode;VerifyStream.isValid=isValidJws;VerifyStream.verify=jwsVerify;e.exports=VerifyStream},7129:(e,r,i)=>{"use strict";const n=i(665);const a=Symbol("max");const s=Symbol("length");const o=Symbol("lengthCalculator");const c=Symbol("allowStale");const l=Symbol("maxAge");const p=Symbol("dispose");const d=Symbol("noDisposeOnSet");const h=Symbol("lruList");const g=Symbol("cache");const v=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const r=this[a]=e.max||Infinity;const i=e.length||naiveLength;this[o]=typeof i!=="function"?naiveLength:i;this[c]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0;this[p]=e.dispose;this[d]=e.noDisposeOnSet||false;this[v]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[a]=e||Infinity;trim(this)}get max(){return this[a]}set allowStale(e){this[c]=!!e}get allowStale(){return this[c]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[l]=e;trim(this)}get maxAge(){return this[l]}set lengthCalculator(e){if(typeof e!=="function")e=naiveLength;if(e!==this[o]){this[o]=e;this[s]=0;this[h].forEach((e=>{e.length=this[o](e.value,e.key);this[s]+=e.length}))}trim(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[h].length}rforEach(e,r){r=r||this;for(let i=this[h].tail;i!==null;){const n=i.prev;forEachStep(this,e,i,r);i=n}}forEach(e,r){r=r||this;for(let i=this[h].head;i!==null;){const n=i.next;forEachStep(this,e,i,r);i=n}}keys(){return this[h].toArray().map((e=>e.key))}values(){return this[h].toArray().map((e=>e.value))}reset(){if(this[p]&&this[h]&&this[h].length){this[h].forEach((e=>this[p](e.key,e.value)))}this[g]=new Map;this[h]=new n;this[s]=0}dump(){return this[h].map((e=>isStale(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[h]}set(e,r,i){i=i||this[l];if(i&&typeof i!=="number")throw new TypeError("maxAge must be a number");const n=i?Date.now():0;const c=this[o](r,e);if(this[g].has(e)){if(c>this[a]){del(this,this[g].get(e));return false}const o=this[g].get(e);const l=o.value;if(this[p]){if(!this[d])this[p](e,l.value)}l.now=n;l.maxAge=i;l.value=r;this[s]+=c-l.length;l.length=c;this.get(e);trim(this);return true}const v=new Entry(e,r,c,n,i);if(v.length>this[a]){if(this[p])this[p](e,r);return false}this[s]+=v.length;this[h].unshift(v);this[g].set(e,this[h].head);trim(this);return true}has(e){if(!this[g].has(e))return false;const r=this[g].get(e).value;return!isStale(this,r)}get(e){return get(this,e,true)}peek(e){return get(this,e,false)}pop(){const e=this[h].tail;if(!e)return null;del(this,e);return e.value}del(e){del(this,this[g].get(e))}load(e){this.reset();const r=Date.now();for(let i=e.length-1;i>=0;i--){const n=e[i];const a=n.e||0;if(a===0)this.set(n.k,n.v);else{const e=a-r;if(e>0){this.set(n.k,n.v,e)}}}}prune(){this[g].forEach(((e,r)=>get(this,r,false)))}}const get=(e,r,i)=>{const n=e[g].get(r);if(n){const r=n.value;if(isStale(e,r)){del(e,n);if(!e[c])return undefined}else{if(i){if(e[v])n.value.now=Date.now();e[h].unshiftNode(n)}}return r.value}};const isStale=(e,r)=>{if(!r||!r.maxAge&&!e[l])return false;const i=Date.now()-r.now;return r.maxAge?i>r.maxAge:e[l]&&i>e[l]};const trim=e=>{if(e[s]>e[a]){for(let r=e[h].tail;e[s]>e[a]&&r!==null;){const i=r.prev;del(e,r);r=i}}};const del=(e,r)=>{if(r){const i=r.value;if(e[p])e[p](i.key,i.value);e[s]-=i.length;e[g].delete(i.key);e[h].removeNode(r)}};class Entry{constructor(e,r,i,n,a){this.key=e;this.value=r;this.length=i;this.now=n;this.maxAge=a||0}}const forEachStep=(e,r,i,n)=>{let a=i.value;if(isStale(e,a)){del(e,i);if(!e[c])a=undefined}if(a)r.call(n,a.value,a.key,e)};e.exports=LRUCache},9126:(e,r,i)=>{"use strict";const n=i(7147);const a=i(1017);const{promisify:s}=i(3837);const o=i(3689);const c=o.satisfies(process.version,">=10.12.0");const checkPath=e=>{if(process.platform==="win32"){const r=/[<>:"|?*]/.test(e.replace(a.parse(e).root,""));if(r){const r=new Error(`Path contains invalid characters: ${e}`);r.code="EINVAL";throw r}}};const processOptions=e=>{const r={mode:511,fs:n};return{...r,...e}};const permissionError=e=>{const r=new Error(`operation not permitted, mkdir '${e}'`);r.code="EPERM";r.errno=-4048;r.path=e;r.syscall="mkdir";return r};const makeDir=async(e,r)=>{checkPath(e);r=processOptions(r);const i=s(r.fs.mkdir);const o=s(r.fs.stat);if(c&&r.fs.mkdir===n.mkdir){const n=a.resolve(e);await i(n,{mode:r.mode,recursive:true});return n}const make=async e=>{try{await i(e,r.mode);return e}catch(r){if(r.code==="EPERM"){throw r}if(r.code==="ENOENT"){if(a.dirname(e)===e){throw permissionError(e)}if(r.message.includes("null bytes")){throw r}await make(a.dirname(e));return make(e)}try{const r=await o(e);if(!r.isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw r}return e}};return make(a.resolve(e))};e.exports=makeDir;e.exports.sync=(e,r)=>{checkPath(e);r=processOptions(r);if(c&&r.fs.mkdirSync===n.mkdirSync){const i=a.resolve(e);n.mkdirSync(i,{mode:r.mode,recursive:true});return i}const make=e=>{try{r.fs.mkdirSync(e,r.mode)}catch(i){if(i.code==="EPERM"){throw i}if(i.code==="ENOENT"){if(a.dirname(e)===e){throw permissionError(e)}if(i.message.includes("null bytes")){throw i}make(a.dirname(e));return make(e)}try{if(!r.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw i}}return e};return make(a.resolve(e))}},3689:(e,r)=>{r=e.exports=SemVer;var i;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){i=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{i=function(){}}r.SEMVER_SPEC_VERSION="2.0.0";var n=256;var a=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=r.re=[];var c=r.src=[];var l=r.tokens={};var p=0;function tok(e){l[e]=p++}tok("NUMERICIDENTIFIER");c[l.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");c[l.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");c[l.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");c[l.MAINVERSION]="("+c[l.NUMERICIDENTIFIER]+")\\."+"("+c[l.NUMERICIDENTIFIER]+")\\."+"("+c[l.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");c[l.MAINVERSIONLOOSE]="("+c[l.NUMERICIDENTIFIERLOOSE]+")\\."+"("+c[l.NUMERICIDENTIFIERLOOSE]+")\\."+"("+c[l.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");c[l.PRERELEASEIDENTIFIER]="(?:"+c[l.NUMERICIDENTIFIER]+"|"+c[l.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");c[l.PRERELEASEIDENTIFIERLOOSE]="(?:"+c[l.NUMERICIDENTIFIERLOOSE]+"|"+c[l.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");c[l.PRERELEASE]="(?:-("+c[l.PRERELEASEIDENTIFIER]+"(?:\\."+c[l.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");c[l.PRERELEASELOOSE]="(?:-?("+c[l.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+c[l.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");c[l.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");c[l.BUILD]="(?:\\+("+c[l.BUILDIDENTIFIER]+"(?:\\."+c[l.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");c[l.FULLPLAIN]="v?"+c[l.MAINVERSION]+c[l.PRERELEASE]+"?"+c[l.BUILD]+"?";c[l.FULL]="^"+c[l.FULLPLAIN]+"$";tok("LOOSEPLAIN");c[l.LOOSEPLAIN]="[v=\\s]*"+c[l.MAINVERSIONLOOSE]+c[l.PRERELEASELOOSE]+"?"+c[l.BUILD]+"?";tok("LOOSE");c[l.LOOSE]="^"+c[l.LOOSEPLAIN]+"$";tok("GTLT");c[l.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");c[l.XRANGEIDENTIFIERLOOSE]=c[l.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");c[l.XRANGEIDENTIFIER]=c[l.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");c[l.XRANGEPLAIN]="[v=\\s]*("+c[l.XRANGEIDENTIFIER]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIER]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIER]+")"+"(?:"+c[l.PRERELEASE]+")?"+c[l.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");c[l.XRANGEPLAINLOOSE]="[v=\\s]*("+c[l.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+c[l.PRERELEASELOOSE]+")?"+c[l.BUILD]+"?"+")?)?";tok("XRANGE");c[l.XRANGE]="^"+c[l.GTLT]+"\\s*"+c[l.XRANGEPLAIN]+"$";tok("XRANGELOOSE");c[l.XRANGELOOSE]="^"+c[l.GTLT]+"\\s*"+c[l.XRANGEPLAINLOOSE]+"$";tok("COERCE");c[l.COERCE]="(^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");o[l.COERCERTL]=new RegExp(c[l.COERCE],"g");tok("LONETILDE");c[l.LONETILDE]="(?:~>?)";tok("TILDETRIM");c[l.TILDETRIM]="(\\s*)"+c[l.LONETILDE]+"\\s+";o[l.TILDETRIM]=new RegExp(c[l.TILDETRIM],"g");var d="$1~";tok("TILDE");c[l.TILDE]="^"+c[l.LONETILDE]+c[l.XRANGEPLAIN]+"$";tok("TILDELOOSE");c[l.TILDELOOSE]="^"+c[l.LONETILDE]+c[l.XRANGEPLAINLOOSE]+"$";tok("LONECARET");c[l.LONECARET]="(?:\\^)";tok("CARETTRIM");c[l.CARETTRIM]="(\\s*)"+c[l.LONECARET]+"\\s+";o[l.CARETTRIM]=new RegExp(c[l.CARETTRIM],"g");var h="$1^";tok("CARET");c[l.CARET]="^"+c[l.LONECARET]+c[l.XRANGEPLAIN]+"$";tok("CARETLOOSE");c[l.CARETLOOSE]="^"+c[l.LONECARET]+c[l.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");c[l.COMPARATORLOOSE]="^"+c[l.GTLT]+"\\s*("+c[l.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");c[l.COMPARATOR]="^"+c[l.GTLT]+"\\s*("+c[l.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");c[l.COMPARATORTRIM]="(\\s*)"+c[l.GTLT]+"\\s*("+c[l.LOOSEPLAIN]+"|"+c[l.XRANGEPLAIN]+")";o[l.COMPARATORTRIM]=new RegExp(c[l.COMPARATORTRIM],"g");var g="$1$2$3";tok("HYPHENRANGE");c[l.HYPHENRANGE]="^\\s*("+c[l.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+c[l.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");c[l.HYPHENRANGELOOSE]="^\\s*("+c[l.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+c[l.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");c[l.STAR]="(<|>)?=?\\s*\\*";for(var v=0;vn){return null}var i=r.loose?o[l.LOOSE]:o[l.FULL];if(!i.test(e)){return null}try{return new SemVer(e,r)}catch(e){return null}}r.valid=valid;function valid(e,r){var i=parse(e,r);return i?i.version:null}r.clean=clean;function clean(e,r){var i=parse(e.trim().replace(/^[=v]+/,""),r);return i?i.version:null}r.SemVer=SemVer;function SemVer(e,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===r.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,r)}i("SemVer",e,r);this.options=r;this.loose=!!r.loose;var s=e.trim().match(r.loose?o[l.LOOSE]:o[l.FULL]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>a||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>a||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>a||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var r=+e;if(r>=0&&r=0){if(typeof this.prerelease[i]==="number"){this.prerelease[i]++;i=-2}}if(i===-1){this.prerelease.push(0)}}if(r){if(this.prerelease[0]===r){if(isNaN(this.prerelease[1])){this.prerelease=[r,0]}}else{this.prerelease=[r,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};r.inc=inc;function inc(e,r,i,n){if(typeof i==="string"){n=i;i=undefined}try{return new SemVer(e,i).inc(r,n).version}catch(e){return null}}r.diff=diff;function diff(e,r){if(eq(e,r)){return null}else{var i=parse(e);var n=parse(r);var a="";if(i.prerelease.length||n.prerelease.length){a="pre";var s="prerelease"}for(var o in i){if(o==="major"||o==="minor"||o==="patch"){if(i[o]!==n[o]){return a+o}}}return s}}r.compareIdentifiers=compareIdentifiers;var y=/^[0-9]+$/;function compareIdentifiers(e,r){var i=y.test(e);var n=y.test(r);if(i&&n){e=+e;r=+r}return e===r?0:i&&!n?-1:n&&!i?1:e0}r.lt=lt;function lt(e,r,i){return compare(e,r,i)<0}r.eq=eq;function eq(e,r,i){return compare(e,r,i)===0}r.neq=neq;function neq(e,r,i){return compare(e,r,i)!==0}r.gte=gte;function gte(e,r,i){return compare(e,r,i)>=0}r.lte=lte;function lte(e,r,i){return compare(e,r,i)<=0}r.cmp=cmp;function cmp(e,r,i,n){switch(r){case"===":if(typeof e==="object")e=e.version;if(typeof i==="object")i=i.version;return e===i;case"!==":if(typeof e==="object")e=e.version;if(typeof i==="object")i=i.version;return e!==i;case"":case"=":case"==":return eq(e,i,n);case"!=":return neq(e,i,n);case">":return gt(e,i,n);case">=":return gte(e,i,n);case"<":return lt(e,i,n);case"<=":return lte(e,i,n);default:throw new TypeError("Invalid operator: "+r)}}r.Comparator=Comparator;function Comparator(e,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!r.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,r)}i("comparator",e,r);this.options=r;this.loose=!!r.loose;this.parse(e);if(this.semver===b){this.value=""}else{this.value=this.operator+this.semver.version}i("comp",this)}var b={};Comparator.prototype.parse=function(e){var r=this.options.loose?o[l.COMPARATORLOOSE]:o[l.COMPARATOR];var i=e.match(r);if(!i){throw new TypeError("Invalid comparator: "+e)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=b}else{this.semver=new SemVer(i[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){i("Comparator.test",e,this.options.loose);if(this.semver===b||e===b){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,r){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}var i;if(this.operator===""){if(this.value===""){return true}i=new Range(e.value,r);return satisfies(this.value,i,r)}else if(e.operator===""){if(e.value===""){return true}i=new Range(this.value,r);return satisfies(e.semver,i,r)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var a=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var c=cmp(this.semver,"<",e.semver,r)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var l=cmp(this.semver,">",e.semver,r)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||a||s&&o||c||l};r.Range=Range;function Range(e,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease){return e}else{return new Range(e.raw,r)}}if(e instanceof Comparator){return new Range(e.value,r)}if(!(this instanceof Range)){return new Range(e,r)}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var r=this.options.loose;e=e.trim();var n=r?o[l.HYPHENRANGELOOSE]:o[l.HYPHENRANGE];e=e.replace(n,hyphenReplace);i("hyphen replace",e);e=e.replace(o[l.COMPARATORTRIM],g);i("comparator trim",e,o[l.COMPARATORTRIM]);e=e.replace(o[l.TILDETRIM],d);e=e.replace(o[l.CARETTRIM],h);e=e.split(/\s+/).join(" ");var a=r?o[l.COMPARATORLOOSE]:o[l.COMPARATOR];var s=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter((function(e){return!!e.match(a)}))}s=s.map((function(e){return new Comparator(e,this.options)}),this);return s};Range.prototype.intersects=function(e,r){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(i){return isSatisfiable(i,r)&&e.set.some((function(e){return isSatisfiable(e,r)&&i.every((function(i){return e.every((function(e){return i.intersects(e,r)}))}))}))}))};function isSatisfiable(e,r){var i=true;var n=e.slice();var a=n.pop();while(i&&n.length){i=n.every((function(e){return a.intersects(e,r)}));a=n.pop()}return i}r.toComparators=toComparators;function toComparators(e,r){return new Range(e,r).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,r){i("comp",e,r);e=replaceCarets(e,r);i("caret",e);e=replaceTildes(e,r);i("tildes",e);e=replaceXRanges(e,r);i("xrange",e);e=replaceStars(e,r);i("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,r){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,r)})).join(" ")}function replaceTilde(e,r){var n=r.loose?o[l.TILDELOOSE]:o[l.TILDE];return e.replace(n,(function(r,n,a,s,o){i("tilde",e,r,n,a,s,o);var c;if(isX(n)){c=""}else if(isX(a)){c=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){c=">="+n+"."+a+".0 <"+n+"."+(+a+1)+".0"}else if(o){i("replaceTilde pr",o);c=">="+n+"."+a+"."+s+"-"+o+" <"+n+"."+(+a+1)+".0"}else{c=">="+n+"."+a+"."+s+" <"+n+"."+(+a+1)+".0"}i("tilde return",c);return c}))}function replaceCarets(e,r){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,r)})).join(" ")}function replaceCaret(e,r){i("caret",e,r);var n=r.loose?o[l.CARETLOOSE]:o[l.CARET];return e.replace(n,(function(r,n,a,s,o){i("caret",e,r,n,a,s,o);var c;if(isX(n)){c=""}else if(isX(a)){c=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){c=">="+n+"."+a+".0 <"+n+"."+(+a+1)+".0"}else{c=">="+n+"."+a+".0 <"+(+n+1)+".0.0"}}else if(o){i("replaceCaret pr",o);if(n==="0"){if(a==="0"){c=">="+n+"."+a+"."+s+"-"+o+" <"+n+"."+a+"."+(+s+1)}else{c=">="+n+"."+a+"."+s+"-"+o+" <"+n+"."+(+a+1)+".0"}}else{c=">="+n+"."+a+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{i("no pr");if(n==="0"){if(a==="0"){c=">="+n+"."+a+"."+s+" <"+n+"."+a+"."+(+s+1)}else{c=">="+n+"."+a+"."+s+" <"+n+"."+(+a+1)+".0"}}else{c=">="+n+"."+a+"."+s+" <"+(+n+1)+".0.0"}}i("caret return",c);return c}))}function replaceXRanges(e,r){i("replaceXRanges",e,r);return e.split(/\s+/).map((function(e){return replaceXRange(e,r)})).join(" ")}function replaceXRange(e,r){e=e.trim();var n=r.loose?o[l.XRANGELOOSE]:o[l.XRANGE];return e.replace(n,(function(n,a,s,o,c,l){i("xRange",e,n,a,s,o,c,l);var p=isX(s);var d=p||isX(o);var h=d||isX(c);var g=h;if(a==="="&&g){a=""}l=r.includePrerelease?"-0":"";if(p){if(a===">"||a==="<"){n="<0.0.0-0"}else{n="*"}}else if(a&&g){if(d){o=0}c=0;if(a===">"){a=">=";if(d){s=+s+1;o=0;c=0}else{o=+o+1;c=0}}else if(a==="<="){a="<";if(d){s=+s+1}else{o=+o+1}}n=a+s+"."+o+"."+c+l}else if(d){n=">="+s+".0.0"+l+" <"+(+s+1)+".0.0"+l}else if(h){n=">="+s+"."+o+".0"+l+" <"+s+"."+(+o+1)+".0"+l}i("xRange return",n);return n}))}function replaceStars(e,r){i("replaceStars",e,r);return e.trim().replace(o[l.STAR],"")}function hyphenReplace(e,r,i,n,a,s,o,c,l,p,d,h,g){if(isX(i)){r=""}else if(isX(n)){r=">="+i+".0.0"}else if(isX(a)){r=">="+i+"."+n+".0"}else{r=">="+r}if(isX(l)){c=""}else if(isX(p)){c="<"+(+l+1)+".0.0"}else if(isX(d)){c="<"+l+"."+(+p+1)+".0"}else if(h){c="<="+l+"."+p+"."+d+"-"+h}else{c="<="+c}return(r+" "+c).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var r=0;r0){var s=e[a].semver;if(s.major===r.major&&s.minor===r.minor&&s.patch===r.patch){return true}}}return false}return true}r.satisfies=satisfies;function satisfies(e,r,i){try{r=new Range(r,i)}catch(e){return false}return r.test(e)}r.maxSatisfying=maxSatisfying;function maxSatisfying(e,r,i){var n=null;var a=null;try{var s=new Range(r,i)}catch(e){return null}e.forEach((function(e){if(s.test(e)){if(!n||a.compare(e)===-1){n=e;a=new SemVer(n,i)}}}));return n}r.minSatisfying=minSatisfying;function minSatisfying(e,r,i){var n=null;var a=null;try{var s=new Range(r,i)}catch(e){return null}e.forEach((function(e){if(s.test(e)){if(!n||a.compare(e)===1){n=e;a=new SemVer(n,i)}}}));return n}r.minVersion=minVersion;function minVersion(e,r){e=new Range(e,r);var i=new SemVer("0.0.0");if(e.test(i)){return i}i=new SemVer("0.0.0-0");if(e.test(i)){return i}i=null;for(var n=0;n":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!i||gt(i,r)){i=r}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(i&&e.test(i)){return i}return null}r.validRange=validRange;function validRange(e,r){try{return new Range(e,r).range||"*"}catch(e){return null}}r.ltr=ltr;function ltr(e,r,i){return outside(e,r,"<",i)}r.gtr=gtr;function gtr(e,r,i){return outside(e,r,">",i)}r.outside=outside;function outside(e,r,i,n){e=new SemVer(e,n);r=new Range(r,n);var a,s,o,c,l;switch(i){case">":a=gt;s=lte;o=lt;c=">";l=">=";break;case"<":a=lt;s=gte;o=gt;c="<";l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,r,n)){return false}for(var p=0;p=0.0.0")}h=h||e;g=g||e;if(a(e.semver,h.semver,n)){h=e}else if(o(e.semver,g.semver,n)){g=e}}));if(h.operator===c||h.operator===l){return false}if((!g.operator||g.operator===c)&&s(e,g.semver)){return false}else if(g.operator===l&&o(e,g.semver)){return false}}return true}r.prerelease=prerelease;function prerelease(e,r){var i=parse(e,r);return i&&i.prerelease.length?i.prerelease:null}r.intersects=intersects;function intersects(e,r,i){e=new Range(e,i);r=new Range(r,i);return e.intersects(r)}r.coerce=coerce;function coerce(e,r){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}r=r||{};var i=null;if(!r.rtl){i=e.match(o[l.COERCE])}else{var n;while((n=o[l.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length)){if(!i||n.index+n[0].length!==i.index+i[0].length){i=n}o[l.COERCERTL].lastIndex=n.index+n[1].length+n[2].length}o[l.COERCERTL].lastIndex=-1}if(i===null){return null}return parse(i[2]+"."+(i[3]||"0")+"."+(i[4]||"0"),r)}},7426:(e,r,i)=>{ /*! * mime-db * Copyright(c) 2014 Jonathan Ong @@ -151,9 +145,9 @@ e.exports=i(3765)},3583:(e,r,i)=>{"use strict"; * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed - */var n=i(7426);var s=i(1017).extname;var a=/^\s*([^;\s]*)(?:;|\s|$)/;var o=/^text\//i;r.charset=charset;r.charsets={lookup:charset};r.contentType=contentType;r.extension=extension;r.extensions=Object.create(null);r.lookup=lookup;r.types=Object.create(null);populateMaps(r.extensions,r.types);function charset(e){if(!e||typeof e!=="string"){return false}var r=a.exec(e);var i=r&&n[r[1].toLowerCase()];if(i&&i.charset){return i.charset}if(r&&o.test(r[1])){return"UTF-8"}return false}function contentType(e){if(!e||typeof e!=="string"){return false}var i=e.indexOf("/")===-1?r.lookup(e):e;if(!i){return false}if(i.indexOf("charset")===-1){var n=r.charset(i);if(n)i+="; charset="+n.toLowerCase()}return i}function extension(e){if(!e||typeof e!=="string"){return false}var i=a.exec(e);var n=i&&r.extensions[i[1].toLowerCase()];if(!n||!n.length){return false}return n[0]}function lookup(e){if(!e||typeof e!=="string"){return false}var i=s("x."+e).toLowerCase().substr(1);if(!i){return false}return r.types[i]||false}function populateMaps(e,r){var i=["nginx","apache",undefined,"iana"];Object.keys(n).forEach((function forEachMimeType(s){var a=n[s];var o=a.extensions;if(!o||!o.length){return}e[s]=o;for(var c=0;cd||p===d&&r[l].substr(0,12)==="application/")){continue}}r[l]=s}}))}},6038:e=>{"use strict";function Mime(){this._types=Object.create(null);this._extensions=Object.create(null);for(let e=0;e{"use strict";let n=i(6038);e.exports=new n(i(3114),i(8809))},8809:e=>{e.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},3114:e=>{e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},3973:(e,r,i)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var n={sep:"/"};try{n=i(1017)}catch(e){}var s=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var a=i(3717);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var c="[^/]";var l=c+"*?";var p="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var d="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,r){e[r]=true;return e}),{})}var g=/\/+/;minimatch.filter=filter;function filter(e,r){r=r||{};return function(i,n,s){return minimatch(i,e,r)}}function ext(e,r){e=e||{};r=r||{};var i={};Object.keys(r).forEach((function(e){i[e]=r[e]}));Object.keys(e).forEach((function(r){i[r]=e[r]}));return i}minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var r=minimatch;var i=function minimatch(i,n,s){return r.minimatch(i,n,ext(e,s))};i.Minimatch=function Minimatch(i,n){return new r.Minimatch(i,ext(e,n))};return i};Minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return Minimatch;return minimatch.defaults(e).Minimatch};function minimatch(e,r,i){if(typeof r!=="string"){throw new TypeError("glob pattern string required")}if(!i)i={};if(!i.nocomment&&r.charAt(0)==="#"){return false}if(r.trim()==="")return e==="";return new Minimatch(r,i).match(e)}function Minimatch(e,r){if(!(this instanceof Minimatch)){return new Minimatch(e,r)}if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!r)r={};e=e.trim();if(n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=r;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var e=this.pattern;var r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var i=this.globSet=this.braceExpand();if(r.debug)this.debug=console.error;this.debug(this.pattern,i);i=this.globParts=i.map((function(e){return e.split(g)}));this.debug(this.pattern,i);i=i.map((function(e,r,i){return e.map(this.parse,this)}),this);this.debug(this.pattern,i);i=i.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,i);this.set=i}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var r=false;var i=this.options;var n=0;if(i.nonegate)return;for(var s=0,a=e.length;s1024*64){throw new TypeError("pattern is too long")}var i=this.options;if(!i.noglobstar&&e==="**")return s;if(e==="")return"";var n="";var a=!!i.nocase;var p=false;var d=[];var g=[];var y;var b=false;var E=-1;var x=-1;var w=e.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var T=this;function clearStateChar(){if(y){switch(y){case"*":n+=l;a=true;break;case"?":n+=c;a=true;break;default:n+="\\"+y;break}T.debug("clearStateChar %j %j",y,n);y=false}}for(var _=0,C=e.length,R;_-1;L--){var D=g[L];var U=n.slice(0,D.reStart);var G=n.slice(D.reStart,D.reEnd-8);var F=n.slice(D.reEnd-8,D.reEnd);var V=n.slice(D.reEnd);F+=V;var H=U.split("(").length-1;var K=V;for(_=0;_=0;o--){a=e[o];if(a)break}for(o=0;o>> no match, partial?",e,h,r,g);if(h===c)return true}return false}var y;if(typeof p==="string"){if(n.nocase){y=d.toLowerCase()===p.toLowerCase()}else{y=d===p}this.debug("string match",p,d,y)}else{y=d.match(p);this.debug("pattern match",p,d,y)}if(!y)return false}if(a===c&&o===l){return true}else if(a===c){return i}else if(o===l){var b=a===c-1&&e[a]==="";return b}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},900:e=>{var r=1e3;var i=r*60;var n=i*60;var s=n*24;var a=s*7;var o=s*365.25;e.exports=function(e,r){r=r||{};var i=typeof e;if(i==="string"&&e.length>0){return parse(e)}else if(i==="number"&&isFinite(e)){return r.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c){return}var l=parseFloat(c[1]);var p=(c[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return l*o;case"weeks":case"week":case"w":return l*a;case"days":case"day":case"d":return l*s;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*i;case"seconds":case"second":case"secs":case"sec":case"s":return l*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return undefined}}function fmtShort(e){var a=Math.abs(e);if(a>=s){return Math.round(e/s)+"d"}if(a>=n){return Math.round(e/n)+"h"}if(a>=i){return Math.round(e/i)+"m"}if(a>=r){return Math.round(e/r)+"s"}return e+"ms"}function fmtLong(e){var a=Math.abs(e);if(a>=s){return plural(e,a,s,"day")}if(a>=n){return plural(e,a,n,"hour")}if(a>=i){return plural(e,a,i,"minute")}if(a>=r){return plural(e,a,r,"second")}return e+" ms"}function plural(e,r,i,n){var s=r>=i*1.5;return Math.round(e/i)+" "+n+(s?"s":"")}},467:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(i(2781));var s=_interopDefault(i(3685));var a=_interopDefault(i(7310));var o=_interopDefault(i(5687));var c=_interopDefault(i(9796));const l=n.Readable;const p=Symbol("buffer");const d=Symbol("type");class Blob{constructor(){this[d]="";const e=arguments[0];const r=arguments[1];const i=[];let n=0;if(e){const r=e;const s=Number(r.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},s=i.size;let a=s===undefined?0:s;var o=i.timeout;let c=o===undefined?0:o;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof n);else{e=Buffer.from(String(e))}this[g]={body:e,disturbed:false,error:null};this.size=a;this.timeout=c;if(e instanceof n){e.on("error",(function(e){const i=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${r.url}: ${e.message}`,"system",e);r[g].error=i}))}}Body.prototype={get body(){return this[g].body},get bodyUsed(){return this[g].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(r){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[p]:r})}))},json(){var e=this;return consumeBody.call(this).then((function(r){try{return JSON.parse(r.toString())}catch(r){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${r.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(r){return convertBody(r,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const r of Object.getOwnPropertyNames(Body.prototype)){if(!(r in e)){const i=Object.getOwnPropertyDescriptor(Body.prototype,r);Object.defineProperty(e,r,i)}}};function consumeBody(){var e=this;if(this[g].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[g].disturbed=true;if(this[g].error){return Body.Promise.reject(this[g].error)}let r=this.body;if(r===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(r)){r=r.stream()}if(Buffer.isBuffer(r)){return Body.Promise.resolve(r)}if(!(r instanceof n)){return Body.Promise.resolve(Buffer.alloc(0))}let i=[];let s=0;let a=false;return new Body.Promise((function(n,o){let c;if(e.timeout){c=setTimeout((function(){a=true;o(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}r.on("error",(function(r){if(r.name==="AbortError"){a=true;o(r)}else{o(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${r.message}`,"system",r))}}));r.on("data",(function(r){if(a||r===null){return}if(e.size&&s+r.length>e.size){a=true;o(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}s+=r.length;i.push(r)}));r.on("end",(function(){if(a){return}clearTimeout(c);try{n(Buffer.concat(i,s))}catch(r){o(new FetchError(`Could not create Buffer from response body for ${e.url}: ${r.message}`,"system",r))}}))}))}function convertBody(e,r){if(typeof h!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const i=r.get("content-type");let n="utf-8";let s,a;if(i){s=/charset=([^;]*)/i.exec(i)}a=e.slice(0,1024).toString();if(!s&&a){s=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[E]=Object.create(null);if(e instanceof Headers){const r=e.raw();const i=Object.keys(r);for(const e of i){for(const i of r[e]){this.append(e,i)}}return}if(e==null);else if(typeof e==="object"){const r=e[Symbol.iterator];if(r!=null){if(typeof r!=="function"){throw new TypeError("Header pairs must be iterable")}const i=[];for(const r of e){if(typeof r!=="object"||typeof r[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}i.push(Array.from(r))}for(const e of i){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const r of Object.keys(e)){const i=e[r];this.append(r,i)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const r=find(this[E],e);if(r===undefined){return null}return this[E][r].join(", ")}forEach(e){let r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let i=getHeaders(this);let n=0;while(n1&&arguments[1]!==undefined?arguments[1]:"key+value";const i=Object.keys(e[E]).sort();return i.map(r==="key"?function(e){return e.toLowerCase()}:r==="value"?function(r){return e[E][r].join(", ")}:function(r){return[r.toLowerCase(),e[E][r].join(", ")]})}const x=Symbol("internal");function createHeadersIterator(e,r){const i=Object.create(w);i[x]={target:e,kind:r,index:0};return i}const w=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==w){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[x];const r=e.target,i=e.kind,n=e.index;const s=getHeaders(r,i);const a=s.length;if(n>=a){return{value:undefined,done:true}}this[x].index=n+1;return{value:s[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(w,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const r=Object.assign({__proto__:null},e[E]);const i=find(e[E],"Host");if(i!==undefined){r[i]=r[i][0]}return r}function createHeadersLenient(e){const r=new Headers;for(const i of Object.keys(e)){if(y.test(i)){continue}if(Array.isArray(e[i])){for(const n of e[i]){if(b.test(n)){continue}if(r[E][i]===undefined){r[E][i]=[n]}else{r[E][i].push(n)}}}else if(!b.test(e[i])){r[E][i]=[e[i]]}}return r}const T=Symbol("Response internals");const _=s.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,r);const i=r.status||200;const n=new Headers(r.headers);if(e!=null&&!n.has("Content-Type")){const r=extractContentType(e);if(r){n.append("Content-Type",r)}}this[T]={url:r.url,status:i,statusText:r.statusText||_[i],headers:n,counter:r.counter}}get url(){return this[T].url||""}get status(){return this[T].status}get ok(){return this[T].status>=200&&this[T].status<300}get redirected(){return this[T].counter>0}get statusText(){return this[T].statusText}get headers(){return this[T].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const C=Symbol("Request internals");const R=a.parse;const I=a.format;const O="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[C]==="object"}function isAbortSignal(e){const r=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(r&&r.constructor.name==="AbortSignal")}class Request{constructor(e){let r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let i;if(!isRequest(e)){if(e&&e.href){i=R(e.href)}else{i=R(`${e}`)}e={}}else{i=R(e.url)}let n=r.method||e.method||"GET";n=n.toUpperCase();if((r.body!=null||isRequest(e)&&e.body!==null)&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let s=r.body!=null?r.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,s,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const a=new Headers(r.headers||e.headers||{});if(s!=null&&!a.has("Content-Type")){const e=extractContentType(s);if(e){a.append("Content-Type",e)}}let o=isRequest(e)?e.signal:null;if("signal"in r)o=r.signal;if(o!=null&&!isAbortSignal(o)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[C]={method:n,redirect:r.redirect||e.redirect||"follow",headers:a,parsedURL:i,signal:o};this.follow=r.follow!==undefined?r.follow:e.follow!==undefined?e.follow:20;this.compress=r.compress!==undefined?r.compress:e.compress!==undefined?e.compress:true;this.counter=r.counter||e.counter||0;this.agent=r.agent||e.agent}get method(){return this[C].method}get url(){return I(this[C].parsedURL)}get headers(){return this[C].headers}get redirect(){return this[C].redirect}get signal(){return this[C].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const r=e[C].parsedURL;const i=new Headers(e[C].headers);if(!i.has("Accept")){i.set("Accept","*/*")}if(!r.protocol||!r.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(r.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof n.Readable&&!O){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let s=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){s="0"}if(e.body!=null){const r=getTotalBytes(e);if(typeof r==="number"){s=String(r)}}if(s){i.set("Content-Length",s)}if(!i.has("User-Agent")){i.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!i.has("Accept-Encoding")){i.set("Accept-Encoding","gzip,deflate")}let a=e.agent;if(typeof a==="function"){a=a(r)}if(!i.has("Connection")&&!a){i.set("Connection","close")}return Object.assign({},r,{method:e.method,headers:exportNodeCompatibleHeaders(i),agent:a})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const P=n.PassThrough;const N=a.resolve;function fetch(e,r){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(i,a){const l=new Request(e,r);const p=getNodeRequestOptions(l);const d=(p.protocol==="https:"?o:s).request;const h=l.signal;let g=null;const v=function abort(){let e=new AbortError("The user aborted a request.");a(e);if(l.body&&l.body instanceof n.Readable){l.body.destroy(e)}if(!g||!g.body)return;g.body.emit("error",e)};if(h&&h.aborted){v();return}const y=function abortAndFinalize(){v();finalize()};const b=d(p);let E;if(h){h.addEventListener("abort",y)}function finalize(){b.abort();if(h)h.removeEventListener("abort",y);clearTimeout(E)}if(l.timeout){b.once("socket",(function(e){E=setTimeout((function(){a(new FetchError(`network timeout at: ${l.url}`,"request-timeout"));finalize()}),l.timeout)}))}b.on("error",(function(e){a(new FetchError(`request to ${l.url} failed, reason: ${e.message}`,"system",e));finalize()}));b.on("response",(function(e){clearTimeout(E);const r=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=r.get("Location");const s=n===null?null:N(l.url,n);switch(l.redirect){case"error":a(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${l.url}`,"no-redirect"));finalize();return;case"manual":if(s!==null){try{r.set("Location",s)}catch(e){a(e)}}break;case"follow":if(s===null){break}if(l.counter>=l.follow){a(new FetchError(`maximum redirect reached at: ${l.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(l.headers),follow:l.follow,counter:l.counter+1,agent:l.agent,compress:l.compress,method:l.method,body:l.body,signal:l.signal,timeout:l.timeout,size:l.size};if(e.statusCode!==303&&l.body&&getTotalBytes(l)===null){a(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&l.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}i(fetch(new Request(s,n)));finalize();return}}e.once("end",(function(){if(h)h.removeEventListener("abort",y)}));let n=e.pipe(new P);const s={url:l.url,status:e.statusCode,statusText:e.statusMessage,headers:r,size:l.size,timeout:l.timeout,counter:l.counter};const o=r.get("Content-Encoding");if(!l.compress||l.method==="HEAD"||o===null||e.statusCode===204||e.statusCode===304){g=new Response(n,s);i(g);return}const p={flush:c.Z_SYNC_FLUSH,finishFlush:c.Z_SYNC_FLUSH};if(o=="gzip"||o=="x-gzip"){n=n.pipe(c.createGunzip(p));g=new Response(n,s);i(g);return}if(o=="deflate"||o=="x-deflate"){const r=e.pipe(new P);r.once("data",(function(e){if((e[0]&15)===8){n=n.pipe(c.createInflate())}else{n=n.pipe(c.createInflateRaw())}g=new Response(n,s);i(g)}));return}if(o=="br"&&typeof c.createBrotliDecompress==="function"){n=n.pipe(c.createBrotliDecompress());g=new Response(n,s);i(g);return}g=new Response(n,s);i(g)}));writeToStream(b,l)}))}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=r=fetch;Object.defineProperty(r,"__esModule",{value:true});r["default"]=r;r.Headers=Headers;r.Request=Request;r.Response=Response;r.FetchError=FetchError},7994:(e,r,i)=>{var n=i(9177);i(7088);i(873);i(8339);e.exports=n.aes=n.aes||{};n.aes.startEncrypting=function(e,r,i,n){var s=_createCipher({key:e,output:i,decrypt:false,mode:n});s.start(r);return s};n.aes.createEncryptionCipher=function(e,r){return _createCipher({key:e,output:null,decrypt:false,mode:r})};n.aes.startDecrypting=function(e,r,i,n){var s=_createCipher({key:e,output:i,decrypt:true,mode:n});s.start(r);return s};n.aes.createDecryptionCipher=function(e,r){return _createCipher({key:e,output:null,decrypt:true,mode:r})};n.aes.Algorithm=function(e,r){if(!s){initialize()}var i=this;i.name=e;i.mode=new r({blockSize:16,cipher:{encrypt:function(e,r){return _updateBlock(i._w,e,r,false)},decrypt:function(e,r){return _updateBlock(i._w,e,r,true)}}});i._init=false};n.aes.Algorithm.prototype.initialize=function(e){if(this._init){return}var r=e.key;var i;if(typeof r==="string"&&(r.length===16||r.length===24||r.length===32)){r=n.util.createBuffer(r)}else if(n.util.isArray(r)&&(r.length===16||r.length===24||r.length===32)){i=r;r=n.util.createBuffer();for(var s=0;s>>2;for(var s=0;s>8^v&255^99;o[i]=v;c[v]=i;y=e[v];a=e[i];h=e[a];g=e[h];b=y<<24^v<<16^v<<8^(v^y);E=(a^h^g)<<24^(i^g)<<16^(i^h^g)<<8^(i^a^g);for(var x=0;x<4;++x){p[x][i]=b;d[x][v]=E;b=b<<24|b>>>8;E=E<<24|E>>>8}if(i===0){i=n=1}else{i=a^e[e[e[a^g]]];n^=e[e[n]]}}}function _expandKey(e,r){var i=e.slice(0);var n,s=1;var c=i.length;var p=c+6+1;var h=a*p;for(var g=c;g>>16&255]<<24^o[n>>>8&255]<<16^o[n&255]<<8^o[n>>>24]^l[s]<<24;s++}else if(c>6&&g%c===4){n=o[n>>>24]<<24^o[n>>>16&255]<<16^o[n>>>8&255]<<8^o[n&255]}i[g]=i[g-c]^n}if(r){var v;var y=d[0];var b=d[1];var E=d[2];var x=d[3];var w=i.slice(0);h=i.length;for(var g=0,T=h-a;g>>24]]^b[o[v>>>16&255]]^E[o[v>>>8&255]]^x[o[v&255]]}}}i=w}return i}function _updateBlock(e,r,i,n){var s=e.length/4-1;var a,l,h,g,v;if(n){a=d[0];l=d[1];h=d[2];g=d[3];v=c}else{a=p[0];l=p[1];h=p[2];g=p[3];v=o}var y,b,E,x,w,T,_;y=r[0]^e[0];b=r[n?3:1]^e[1];E=r[2]^e[2];x=r[n?1:3]^e[3];var C=3;for(var R=1;R>>24]^l[b>>>16&255]^h[E>>>8&255]^g[x&255]^e[++C];T=a[b>>>24]^l[E>>>16&255]^h[x>>>8&255]^g[y&255]^e[++C];_=a[E>>>24]^l[x>>>16&255]^h[y>>>8&255]^g[b&255]^e[++C];x=a[x>>>24]^l[y>>>16&255]^h[b>>>8&255]^g[E&255]^e[++C];y=w;b=T;E=_}i[0]=v[y>>>24]<<24^v[b>>>16&255]<<16^v[E>>>8&255]<<8^v[x&255]^e[++C];i[n?3:1]=v[b>>>24]<<24^v[E>>>16&255]<<16^v[x>>>8&255]<<8^v[y&255]^e[++C];i[2]=v[E>>>24]<<24^v[x>>>16&255]<<16^v[y>>>8&255]<<8^v[b&255]^e[++C];i[n?1:3]=v[x>>>24]<<24^v[y>>>16&255]<<16^v[b>>>8&255]<<8^v[E&255]^e[++C]}function _createCipher(e){e=e||{};var r=(e.mode||"CBC").toUpperCase();var i="AES-"+r;var s;if(e.decrypt){s=n.cipher.createDecipher(i,e.key)}else{s=n.cipher.createCipher(i,e.key)}var a=s.start;s.start=function(e,r){var i=null;if(r instanceof n.util.ByteBuffer){i=r;r={}}r=r||{};r.output=i;r.iv=e;a.call(s,r)};return s}},1449:(e,r,i)=>{var n=i(9177);i(7994);i(9167);var s=e.exports=n.tls;s.CipherSuites["TLS_RSA_WITH_AES_128_CBC_SHA"]={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=s.BulkCipherAlgorithm.aes;e.cipher_type=s.CipherType.block;e.enc_key_length=16;e.block_length=16;e.fixed_iv_length=16;e.record_iv_length=16;e.mac_algorithm=s.MACAlgorithm.hmac_sha1;e.mac_length=20;e.mac_key_length=20},initConnectionState:initConnectionState};s.CipherSuites["TLS_RSA_WITH_AES_256_CBC_SHA"]={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=s.BulkCipherAlgorithm.aes;e.cipher_type=s.CipherType.block;e.enc_key_length=32;e.block_length=16;e.fixed_iv_length=16;e.record_iv_length=16;e.mac_algorithm=s.MACAlgorithm.hmac_sha1;e.mac_length=20;e.mac_key_length=20},initConnectionState:initConnectionState};function initConnectionState(e,r,i){var a=r.entity===n.tls.ConnectionEnd.client;e.read.cipherState={init:false,cipher:n.cipher.createDecipher("AES-CBC",a?i.keys.server_write_key:i.keys.client_write_key),iv:a?i.keys.server_write_IV:i.keys.client_write_IV};e.write.cipherState={init:false,cipher:n.cipher.createCipher("AES-CBC",a?i.keys.client_write_key:i.keys.server_write_key),iv:a?i.keys.client_write_IV:i.keys.server_write_IV};e.read.cipherFunction=decrypt_aes_cbc_sha1;e.write.cipherFunction=encrypt_aes_cbc_sha1;e.read.macLength=e.write.macLength=i.mac_length;e.read.macFunction=e.write.macFunction=s.hmac_sha1}function encrypt_aes_cbc_sha1(e,r){var i=false;var a=r.macFunction(r.macKey,r.sequenceNumber,e);e.fragment.putBytes(a);r.updateSequenceNumber();var o;if(e.version.minor===s.Versions.TLS_1_0.minor){o=r.cipherState.init?null:r.cipherState.iv}else{o=n.random.getBytesSync(16)}r.cipherState.init=true;var c=r.cipherState.cipher;c.start({iv:o});if(e.version.minor>=s.Versions.TLS_1_1.minor){c.output.putBytes(o)}c.update(e.fragment);if(c.finish(encrypt_aes_cbc_sha1_padding)){e.fragment=c.output;e.length=e.fragment.length();i=true}return i}function encrypt_aes_cbc_sha1_padding(e,r,i){if(!i){var n=e-r.length()%e;r.fillWithByte(n-1,n)}return true}function decrypt_aes_cbc_sha1_padding(e,r,i){var n=true;if(i){var s=r.length();var a=r.last();for(var o=s-1-a;o=c){e.fragment=o.output.getBytes(p-c);l=o.output.getBytes(c)}else{e.fragment=o.output.getBytes()}e.fragment=n.util.createBuffer(e.fragment);e.length=e.fragment.length();var d=r.macFunction(r.macKey,r.sequenceNumber,e);r.updateSequenceNumber();i=compareMacs(r.macKey,l,d)&&i;return i}function compareMacs(e,r,i){var s=n.hmac.create();s.start("SHA1",e);s.update(r);r=s.digest().getBytes();s.start(null,null);s.update(i);i=s.digest().getBytes();return r===i}},9414:(e,r,i)=>{var n=i(9177);i(9549);var s=n.asn1;r.privateKeyValidator={name:"PrivateKeyInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"PrivateKeyInfo.version",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.OCTETSTRING,constructed:false,capture:"privateKey"}]};r.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"publicKeyOid"}]},{tagClass:s.Class.UNIVERSAL,type:s.Type.BITSTRING,constructed:false,composed:true,captureBitStringValue:"ed25519PublicKey"}]}},9549:(e,r,i)=>{var n=i(9177);i(8339);i(1925);var s=e.exports=n.asn1=n.asn1||{};s.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192};s.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30};s.create=function(e,r,i,a,o){if(n.util.isArray(a)){var c=[];for(var l=0;lr){var n=new Error("Too few bytes to parse DER.");n.available=e.length();n.remaining=r;n.requested=i;throw n}}var _getValueLength=function(e,r){var i=e.getByte();r--;if(i===128){return undefined}var n;var s=i&128;if(!s){n=i}else{var a=i&127;_checkBufferLength(e,r,a);n=e.getInt(a<<3)}if(n<0){throw new Error("Negative length: "+n)}return n};s.fromDer=function(e,r){if(r===undefined){r={strict:true,decodeBitStrings:true}}if(typeof r==="boolean"){r={strict:r,decodeBitStrings:true}}if(!("strict"in r)){r.strict=true}if(!("decodeBitStrings"in r)){r.decodeBitStrings=true}if(typeof e==="string"){e=n.util.createBuffer(e)}return _fromDer(e,e.length(),0,r)};function _fromDer(e,r,i,n){var a;_checkBufferLength(e,r,2);var o=e.getByte();r--;var c=o&192;var l=o&31;a=e.length();var p=_getValueLength(e,r);r-=a-e.length();if(p!==undefined&&p>r){if(n.strict){var d=new Error("Too few bytes to read ASN.1 value.");d.available=e.length();d.remaining=r;d.requested=p;throw d}p=r}var h;var g;var v=(o&32)===32;if(v){h=[];if(p===undefined){for(;;){_checkBufferLength(e,r,2);if(e.bytes(2)===String.fromCharCode(0,0)){e.getBytes(2);r-=2;break}a=e.length();h.push(_fromDer(e,r,i+1,n));r-=a-e.length()}}else{while(p>0){a=e.length();h.push(_fromDer(e,p,i+1,n));r-=a-e.length();p-=a-e.length()}}}if(h===undefined&&c===s.Class.UNIVERSAL&&l===s.Type.BITSTRING){g=e.bytes(p)}if(h===undefined&&n.decodeBitStrings&&c===s.Class.UNIVERSAL&&l===s.Type.BITSTRING&&p>1){var y=e.read;var b=r;var E=0;if(l===s.Type.BITSTRING){_checkBufferLength(e,r,1);E=e.getByte();r--}if(E===0){try{a=e.length();var x={verbose:n.verbose,strict:true,decodeBitStrings:true};var w=_fromDer(e,r,i+1,x);var T=a-e.length();r-=T;if(l==s.Type.BITSTRING){T++}var _=w.tagClass;if(T===p&&(_===s.Class.UNIVERSAL||_===s.Class.CONTEXT_SPECIFIC)){h=[w]}}catch(e){}}if(h===undefined){e.read=y;r=b}}if(h===undefined){if(p===undefined){if(n.strict){throw new Error("Non-constructed ASN.1 object of indefinite length.")}p=r}if(l===s.Type.BMPSTRING){h="";for(;p>0;p-=2){_checkBufferLength(e,r,2);h+=String.fromCharCode(e.getInt16());r-=2}}else{h=e.getBytes(p)}}var C=g===undefined?null:{bitStringContents:g};return s.create(c,l,v,h,C)}s.toDer=function(e){var r=n.util.createBuffer();var i=e.tagClass|e.type;var a=n.util.createBuffer();var o=false;if("bitStringContents"in e){o=true;if(e.original){o=s.equals(e,e.original)}}if(o){a.putBytes(e.bitStringContents)}else if(e.composed){if(e.constructed){i|=32}else{a.putByte(0)}for(var c=0;c1&&(e.value.charCodeAt(0)===0&&(e.value.charCodeAt(1)&128)===0||e.value.charCodeAt(0)===255&&(e.value.charCodeAt(1)&128)===128)){a.putBytes(e.value.substr(1))}else{a.putBytes(e.value)}}}r.putByte(i);if(a.length()<=127){r.putByte(a.length()&127)}else{var l=a.length();var p="";do{p+=String.fromCharCode(l&255);l=l>>>8}while(l>0);r.putByte(p.length|128);for(var c=p.length-1;c>=0;--c){r.putByte(p.charCodeAt(c))}}r.putBuffer(a);return r};s.oidToDer=function(e){var r=e.split(".");var i=n.util.createBuffer();i.putByte(40*parseInt(r[0],10)+parseInt(r[1],10));var s,a,o,c;for(var l=2;l>>7;if(!s){c|=128}a.push(c);s=false}while(o>0);for(var p=a.length-1;p>=0;--p){i.putByte(a[p])}}return i};s.derToOid=function(e){var r;if(typeof e==="string"){e=n.util.createBuffer(e)}var i=e.getByte();r=Math.floor(i/40)+"."+i%40;var s=0;while(e.length()>0){i=e.getByte();s=s<<7;if(i&128){s+=i&127}else{r+="."+(s+i);s=0}}return r};s.utcTimeToDate=function(e){var r=new Date;var i=parseInt(e.substr(0,2),10);i=i>=50?1900+i:2e3+i;var n=parseInt(e.substr(2,2),10)-1;var s=parseInt(e.substr(4,2),10);var a=parseInt(e.substr(6,2),10);var o=parseInt(e.substr(8,2),10);var c=0;if(e.length>11){var l=e.charAt(10);var p=10;if(l!=="+"&&l!=="-"){c=parseInt(e.substr(10,2),10);p+=2}}r.setUTCFullYear(i,n,s);r.setUTCHours(a,o,c,0);if(p){l=e.charAt(p);if(l==="+"||l==="-"){var d=parseInt(e.substr(p+1,2),10);var h=parseInt(e.substr(p+4,2),10);var g=d*60+h;g*=6e4;if(l==="+"){r.setTime(+r-g)}else{r.setTime(+r+g)}}}return r};s.generalizedTimeToDate=function(e){var r=new Date;var i=parseInt(e.substr(0,4),10);var n=parseInt(e.substr(4,2),10)-1;var s=parseInt(e.substr(6,2),10);var a=parseInt(e.substr(8,2),10);var o=parseInt(e.substr(10,2),10);var c=parseInt(e.substr(12,2),10);var l=0;var p=0;var d=false;if(e.charAt(e.length-1)==="Z"){d=true}var h=e.length-5,g=e.charAt(h);if(g==="+"||g==="-"){var v=parseInt(e.substr(h+1,2),10);var y=parseInt(e.substr(h+4,2),10);p=v*60+y;p*=6e4;if(g==="+"){p*=-1}d=true}if(e.charAt(14)==="."){l=parseFloat(e.substr(14),10)*1e3}if(d){r.setUTCFullYear(i,n,s);r.setUTCHours(a,o,c,l);r.setTime(+r+p)}else{r.setFullYear(i,n,s);r.setHours(a,o,c,l)}return r};s.dateToUtcTime=function(e){if(typeof e==="string"){return e}var r="";var i=[];i.push((""+e.getUTCFullYear()).substr(2));i.push(""+(e.getUTCMonth()+1));i.push(""+e.getUTCDate());i.push(""+e.getUTCHours());i.push(""+e.getUTCMinutes());i.push(""+e.getUTCSeconds());for(var n=0;n=-128&&e<128){return r.putSignedInt(e,8)}if(e>=-32768&&e<32768){return r.putSignedInt(e,16)}if(e>=-8388608&&e<8388608){return r.putSignedInt(e,24)}if(e>=-2147483648&&e<2147483648){return r.putSignedInt(e,32)}var i=new Error("Integer too large; max is 32-bits.");i.integer=e;throw i};s.derToInteger=function(e){if(typeof e==="string"){e=n.util.createBuffer(e)}var r=e.length()*8;if(r>32){throw new Error("Integer too large; max is 32-bits.")}return e.getSignedInt(r)};s.validate=function(e,r,i,a){var o=false;if((e.tagClass===r.tagClass||typeof r.tagClass==="undefined")&&(e.type===r.type||typeof r.type==="undefined")){if(e.constructed===r.constructed||typeof r.constructed==="undefined"){o=true;if(r.value&&n.util.isArray(r.value)){var c=0;for(var l=0;o&&l0){o+="\n"}var c="";for(var l=0;l1){o+="0x"+n.util.bytesToHex(e.value.slice(1))}else{o+="(none)"}if(e.value.length>0){var g=e.value.charCodeAt(0);if(g==1){o+=" (1 unused bit shown)"}else if(g>1){o+=" ("+g+" unused bits shown)"}}}else if(e.type===s.Type.OCTETSTRING){if(!a.test(e.value)){o+="("+e.value+") "}o+="0x"+n.util.bytesToHex(e.value)}else if(e.type===s.Type.UTF8){o+=n.util.decodeUtf8(e.value)}else if(e.type===s.Type.PRINTABLESTRING||e.type===s.Type.IA5String){o+=e.value}else if(a.test(e.value)){o+="0x"+n.util.bytesToHex(e.value)}else if(e.value.length===0){o+="[null]"}else{o+=e.value}}return o}},2300:e=>{var r={};e.exports=r;var i={};r.encode=function(e,r,i){if(typeof r!=="string"){throw new TypeError('"alphabet" must be a string.')}if(i!==undefined&&typeof i!=="number"){throw new TypeError('"maxline" must be a number.')}var n="";if(!(e instanceof Uint8Array)){n=_encodeWithByteBuffer(e,r)}else{var s=0;var a=r.length;var o=r.charAt(0);var c=[0];for(s=0;s0){c.push(p%a);p=p/a|0}}for(s=0;e[s]===0&&s=0;--s){n+=r[c[s]]}}if(i){var d=new RegExp(".{1,"+i+"}","g");n=n.match(d).join("\r\n")}return n};r.decode=function(e,r){if(typeof e!=="string"){throw new TypeError('"input" must be a string.')}if(typeof r!=="string"){throw new TypeError('"alphabet" must be a string.')}var n=i[r];if(!n){n=i[r]=[];for(var s=0;s>=8}while(d>0){c.push(d&255);d>>=8}}for(var h=0;e[h]===o&&h0){a.push(c%n);c=c/n|0}}var l="";for(i=0;e.at(i)===0&&i=0;--i){l+=r[a[i]]}return l}},7088:(e,r,i)=>{var n=i(9177);i(8339);e.exports=n.cipher=n.cipher||{};n.cipher.algorithms=n.cipher.algorithms||{};n.cipher.createCipher=function(e,r){var i=e;if(typeof i==="string"){i=n.cipher.getAlgorithm(i);if(i){i=i()}}if(!i){throw new Error("Unsupported algorithm: "+e)}return new n.cipher.BlockCipher({algorithm:i,key:r,decrypt:false})};n.cipher.createDecipher=function(e,r){var i=e;if(typeof i==="string"){i=n.cipher.getAlgorithm(i);if(i){i=i()}}if(!i){throw new Error("Unsupported algorithm: "+e)}return new n.cipher.BlockCipher({algorithm:i,key:r,decrypt:true})};n.cipher.registerAlgorithm=function(e,r){e=e.toUpperCase();n.cipher.algorithms[e]=r};n.cipher.getAlgorithm=function(e){e=e.toUpperCase();if(e in n.cipher.algorithms){return n.cipher.algorithms[e]}return null};var s=n.cipher.BlockCipher=function(e){this.algorithm=e.algorithm;this.mode=this.algorithm.mode;this.blockSize=this.mode.blockSize;this._finish=false;this._input=null;this.output=null;this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt;this._decrypt=e.decrypt;this.algorithm.initialize(e)};s.prototype.start=function(e){e=e||{};var r={};for(var i in e){r[i]=e[i]}r.decrypt=this._decrypt;this._finish=false;this._input=n.util.createBuffer();this.output=e.output||n.util.createBuffer();this.mode.start(r)};s.prototype.update=function(e){if(e){this._input.putBuffer(e)}while(!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish){}this._input.compact()};s.prototype.finish=function(e){if(e&&(this.mode.name==="ECB"||this.mode.name==="CBC")){this.mode.pad=function(r){return e(this.blockSize,r,false)};this.mode.unpad=function(r){return e(this.blockSize,r,true)}}var r={};r.decrypt=this._decrypt;r.overflow=this._input.length()%this.blockSize;if(!this._decrypt&&this.mode.pad){if(!this.mode.pad(this._input,r)){return false}}this._finish=true;this.update();if(this._decrypt&&this.mode.unpad){if(!this.mode.unpad(this.output,r)){return false}}if(this.mode.afterFinish){if(!this.mode.afterFinish(this.output,r)){return false}}return true}},873:(e,r,i)=>{var n=i(9177);i(8339);n.cipher=n.cipher||{};var s=e.exports=n.cipher.modes=n.cipher.modes||{};s.ecb=function(e){e=e||{};this.name="ECB";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=new Array(this._ints);this._outBlock=new Array(this._ints)};s.ecb.prototype.start=function(e){};s.ecb.prototype.encrypt=function(e,r,i){if(e.length()0)){return true}for(var n=0;n0)){return true}for(var n=0;n0){return false}var i=e.length();var n=e.at(i-1);if(n>this.blockSize<<2){return false}e.truncate(n);return true};s.cbc=function(e){e=e||{};this.name="CBC";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=new Array(this._ints);this._outBlock=new Array(this._ints)};s.cbc.prototype.start=function(e){if(e.iv===null){if(!this._prev){throw new Error("Invalid IV parameter.")}this._iv=this._prev.slice(0)}else if(!("iv"in e)){throw new Error("Invalid IV parameter.")}else{this._iv=transformIV(e.iv,this.blockSize);this._prev=this._iv.slice(0)}};s.cbc.prototype.encrypt=function(e,r,i){if(e.length()0)){return true}for(var n=0;n0)){return true}for(var n=0;n0){return false}var i=e.length();var n=e.at(i-1);if(n>this.blockSize<<2){return false}e.truncate(n);return true};s.cfb=function(e){e=e||{};this.name="CFB";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=null;this._outBlock=new Array(this._ints);this._partialBlock=new Array(this._ints);this._partialOutput=n.util.createBuffer();this._partialBytes=0};s.cfb.prototype.start=function(e){if(!("iv"in e)){throw new Error("Invalid IV parameter.")}this._iv=transformIV(e.iv,this.blockSize);this._inBlock=this._iv.slice(0);this._partialBytes=0};s.cfb.prototype.encrypt=function(e,r,i){var n=e.length();if(n===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&n>=this.blockSize){for(var s=0;s0){a=this.blockSize-a}this._partialOutput.clear();for(var s=0;s0){e.read-=this.blockSize}else{for(var s=0;s0){this._partialOutput.getBytes(this._partialBytes)}if(a>0&&!i){r.putBytes(this._partialOutput.getBytes(a-this._partialBytes));this._partialBytes=a;return true}r.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=0};s.cfb.prototype.decrypt=function(e,r,i){var n=e.length();if(n===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&n>=this.blockSize){for(var s=0;s0){a=this.blockSize-a}this._partialOutput.clear();for(var s=0;s0){e.read-=this.blockSize}else{for(var s=0;s0){this._partialOutput.getBytes(this._partialBytes)}if(a>0&&!i){r.putBytes(this._partialOutput.getBytes(a-this._partialBytes));this._partialBytes=a;return true}r.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=0};s.ofb=function(e){e=e||{};this.name="OFB";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=null;this._outBlock=new Array(this._ints);this._partialOutput=n.util.createBuffer();this._partialBytes=0};s.ofb.prototype.start=function(e){if(!("iv"in e)){throw new Error("Invalid IV parameter.")}this._iv=transformIV(e.iv,this.blockSize);this._inBlock=this._iv.slice(0);this._partialBytes=0};s.ofb.prototype.encrypt=function(e,r,i){var n=e.length();if(e.length()===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&n>=this.blockSize){for(var s=0;s0){a=this.blockSize-a}this._partialOutput.clear();for(var s=0;s0){e.read-=this.blockSize}else{for(var s=0;s0){this._partialOutput.getBytes(this._partialBytes)}if(a>0&&!i){r.putBytes(this._partialOutput.getBytes(a-this._partialBytes));this._partialBytes=a;return true}r.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=0};s.ofb.prototype.decrypt=s.ofb.prototype.encrypt;s.ctr=function(e){e=e||{};this.name="CTR";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=null;this._outBlock=new Array(this._ints);this._partialOutput=n.util.createBuffer();this._partialBytes=0};s.ctr.prototype.start=function(e){if(!("iv"in e)){throw new Error("Invalid IV parameter.")}this._iv=transformIV(e.iv,this.blockSize);this._inBlock=this._iv.slice(0);this._partialBytes=0};s.ctr.prototype.encrypt=function(e,r,i){var n=e.length();if(n===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&n>=this.blockSize){for(var s=0;s0){a=this.blockSize-a}this._partialOutput.clear();for(var s=0;s0){e.read-=this.blockSize}if(this._partialBytes>0){this._partialOutput.getBytes(this._partialBytes)}if(a>0&&!i){r.putBytes(this._partialOutput.getBytes(a-this._partialBytes));this._partialBytes=a;return true}r.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=0}inc32(this._inBlock)};s.ctr.prototype.decrypt=s.ctr.prototype.encrypt;s.gcm=function(e){e=e||{};this.name="GCM";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=new Array(this._ints);this._outBlock=new Array(this._ints);this._partialOutput=n.util.createBuffer();this._partialBytes=0;this._R=3774873600};s.gcm.prototype.start=function(e){if(!("iv"in e)){throw new Error("Invalid IV parameter.")}var r=n.util.createBuffer(e.iv);this._cipherLength=0;var i;if("additionalData"in e){i=n.util.createBuffer(e.additionalData)}else{i=n.util.createBuffer()}if("tagLength"in e){this._tagLength=e.tagLength}else{this._tagLength=128}this._tag=null;if(e.decrypt){this._tag=n.util.createBuffer(e.tag).getBytes();if(this._tag.length!==this._tagLength/8){throw new Error("Authentication tag does not match tag length.")}}this._hashBlock=new Array(this._ints);this.tag=null;this._hashSubkey=new Array(this._ints);this.cipher.encrypt([0,0,0,0],this._hashSubkey);this.componentBits=4;this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var s=r.length();if(s===12){this._j0=[r.getInt32(),r.getInt32(),r.getInt32(),1]}else{this._j0=[0,0,0,0];while(r.length()>0){this._j0=this.ghash(this._hashSubkey,this._j0,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()])}this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(from64To32(s*8)))}this._inBlock=this._j0.slice(0);inc32(this._inBlock);this._partialBytes=0;i=n.util.createBuffer(i);this._aDataLength=from64To32(i.length()*8);var a=i.length()%this.blockSize;if(a){i.fillWithByte(0,this.blockSize-a)}this._s=[0,0,0,0];while(i.length()>0){this._s=this.ghash(this._hashSubkey,this._s,[i.getInt32(),i.getInt32(),i.getInt32(),i.getInt32()])}};s.gcm.prototype.encrypt=function(e,r,i){var n=e.length();if(n===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&n>=this.blockSize){for(var s=0;s0){a=this.blockSize-a}this._partialOutput.clear();for(var s=0;s0){this._partialOutput.getBytes(this._partialBytes)}if(a>0&&!i){e.read-=this.blockSize;r.putBytes(this._partialOutput.getBytes(a-this._partialBytes));this._partialBytes=a;return true}r.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock);inc32(this._inBlock)};s.gcm.prototype.decrypt=function(e,r,i){var n=e.length();if(n0)){return true}this.cipher.encrypt(this._inBlock,this._outBlock);inc32(this._inBlock);this._hashBlock[0]=e.getInt32();this._hashBlock[1]=e.getInt32();this._hashBlock[2]=e.getInt32();this._hashBlock[3]=e.getInt32();this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var s=0;s0;--n){r[n]=e[n]>>>1|(e[n-1]&1)<<31}r[0]=e[0]>>>1;if(i){r[0]^=this._R}};s.gcm.prototype.tableMultiply=function(e){var r=[0,0,0,0];for(var i=0;i<32;++i){var n=i/8|0;var s=e[n]>>>(7-i%8)*4&15;var a=this._m[i][s];r[0]^=a[0];r[1]^=a[1];r[2]^=a[2];r[3]^=a[3]}return r};s.gcm.prototype.ghash=function(e,r,i){r[0]^=i[0];r[1]^=i[1];r[2]^=i[2];r[3]^=i[3];return this.tableMultiply(r)};s.gcm.prototype.generateHashTable=function(e,r){var i=8/r;var n=4*i;var s=16*i;var a=new Array(s);for(var o=0;o>>1;var s=new Array(i);s[n]=e.slice(0);var a=n>>>1;while(a>0){this.pow(s[2*a],s[a]=[]);a>>=1}a=2;while(a4){var i=e;e=n.util.createBuffer();for(var s=0;s{var n=i(9177);i(7088);i(873);i(8339);e.exports=n.des=n.des||{};n.des.startEncrypting=function(e,r,i,n){var s=_createCipher({key:e,output:i,decrypt:false,mode:n||(r===null?"ECB":"CBC")});s.start(r);return s};n.des.createEncryptionCipher=function(e,r){return _createCipher({key:e,output:null,decrypt:false,mode:r})};n.des.startDecrypting=function(e,r,i,n){var s=_createCipher({key:e,output:i,decrypt:true,mode:n||(r===null?"ECB":"CBC")});s.start(r);return s};n.des.createDecryptionCipher=function(e,r){return _createCipher({key:e,output:null,decrypt:true,mode:r})};n.des.Algorithm=function(e,r){var i=this;i.name=e;i.mode=new r({blockSize:8,cipher:{encrypt:function(e,r){return _updateBlock(i._keys,e,r,false)},decrypt:function(e,r){return _updateBlock(i._keys,e,r,true)}}});i._init=false};n.des.Algorithm.prototype.initialize=function(e){if(this._init){return}var r=n.util.createBuffer(e.key);if(this.name.indexOf("3DES")===0){if(r.length()!==24){throw new Error("Invalid Triple-DES key size: "+r.length()*8)}}this._keys=_createKeys(r);this._init=true};registerAlgorithm("DES-ECB",n.cipher.modes.ecb);registerAlgorithm("DES-CBC",n.cipher.modes.cbc);registerAlgorithm("DES-CFB",n.cipher.modes.cfb);registerAlgorithm("DES-OFB",n.cipher.modes.ofb);registerAlgorithm("DES-CTR",n.cipher.modes.ctr);registerAlgorithm("3DES-ECB",n.cipher.modes.ecb);registerAlgorithm("3DES-CBC",n.cipher.modes.cbc);registerAlgorithm("3DES-CFB",n.cipher.modes.cfb);registerAlgorithm("3DES-OFB",n.cipher.modes.ofb);registerAlgorithm("3DES-CTR",n.cipher.modes.ctr);function registerAlgorithm(e,r){var factory=function(){return new n.des.Algorithm(e,r)};n.cipher.registerAlgorithm(e,factory)}var s=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756];var a=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344];var o=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584];var c=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928];var l=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080];var p=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312];var d=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154];var h=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function _createKeys(e){var r=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],i=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],n=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],s=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],a=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],o=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],c=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],l=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],p=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],d=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],h=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],g=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],v=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],y=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261];var b=e.length()>8?3:1;var E=[];var x=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0];var w=0,T;for(var _=0;_>>4^R)&252645135;R^=T;C^=T<<4;T=(R>>>-16^C)&65535;C^=T;R^=T<<-16;T=(C>>>2^R)&858993459;R^=T;C^=T<<2;T=(R>>>-16^C)&65535;C^=T;R^=T<<-16;T=(C>>>1^R)&1431655765;R^=T;C^=T<<1;T=(R>>>8^C)&16711935;C^=T;R^=T<<8;T=(C>>>1^R)&1431655765;R^=T;C^=T<<1;T=C<<8|R>>>20&240;C=R<<24|R<<8&16711680|R>>>8&65280|R>>>24&240;R=T;for(var I=0;I>>26;R=R<<2|R>>>26}else{C=C<<1|C>>>27;R=R<<1|R>>>27}C&=-15;R&=-15;var O=r[C>>>28]|i[C>>>24&15]|n[C>>>20&15]|s[C>>>16&15]|a[C>>>12&15]|o[C>>>8&15]|c[C>>>4&15];var P=l[R>>>28]|p[R>>>24&15]|d[R>>>20&15]|h[R>>>16&15]|g[R>>>12&15]|v[R>>>8&15]|y[R>>>4&15];T=(P>>>16^O)&65535;E[w++]=O^T;E[w++]=P^T<<16}}return E}function _updateBlock(e,r,i,n){var g=e.length===32?3:9;var v;if(g===3){v=n?[30,-2,-2]:[0,32,2]}else{v=n?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2]}var y;var b=r[0];var E=r[1];y=(b>>>4^E)&252645135;E^=y;b^=y<<4;y=(b>>>16^E)&65535;E^=y;b^=y<<16;y=(E>>>2^b)&858993459;b^=y;E^=y<<2;y=(E>>>8^b)&16711935;b^=y;E^=y<<8;y=(b>>>1^E)&1431655765;E^=y;b^=y<<1;b=b<<1|b>>>31;E=E<<1|E>>>31;for(var x=0;x>>4|E<<28)^e[_+1];y=b;b=E;E=y^(a[C>>>24&63]|c[C>>>16&63]|p[C>>>8&63]|h[C&63]|s[R>>>24&63]|o[R>>>16&63]|l[R>>>8&63]|d[R&63])}y=b;b=E;E=y}b=b>>>1|b<<31;E=E>>>1|E<<31;y=(b>>>1^E)&1431655765;E^=y;b^=y<<1;y=(E>>>8^b)&16711935;b^=y;E^=y<<8;y=(E>>>2^b)&858993459;b^=y;E^=y<<2;y=(b>>>16^E)&65535;E^=y;b^=y<<16;y=(b>>>4^E)&252645135;E^=y;b^=y<<4;i[0]=b;i[1]=E}function _createCipher(e){e=e||{};var r=(e.mode||"CBC").toUpperCase();var i="DES-"+r;var s;if(e.decrypt){s=n.cipher.createDecipher(i,e.key)}else{s=n.cipher.createCipher(i,e.key)}var a=s.start;s.start=function(e,r){var i=null;if(r instanceof n.util.ByteBuffer){i=r;r={}}r=r||{};r.output=i;r.iv=e;a.call(s,r)};return s}},0:(e,r,i)=>{var n=i(9177);i(7052);i(7821);i(9542);i(8339);var s=i(9414);var a=s.publicKeyValidator;var o=s.privateKeyValidator;if(typeof c==="undefined"){var c=n.jsbn.BigInteger}var l=n.util.ByteBuffer;var p=typeof Buffer==="undefined"?Uint8Array:Buffer;n.pki=n.pki||{};e.exports=n.pki.ed25519=n.ed25519=n.ed25519||{};var d=n.ed25519;d.constants={};d.constants.PUBLIC_KEY_BYTE_LENGTH=32;d.constants.PRIVATE_KEY_BYTE_LENGTH=64;d.constants.SEED_BYTE_LENGTH=32;d.constants.SIGN_BYTE_LENGTH=64;d.constants.HASH_BYTE_LENGTH=64;d.generateKeyPair=function(e){e=e||{};var r=e.seed;if(r===undefined){r=n.random.getBytesSync(d.constants.SEED_BYTE_LENGTH)}else if(typeof r==="string"){if(r.length!==d.constants.SEED_BYTE_LENGTH){throw new TypeError('"seed" must be '+d.constants.SEED_BYTE_LENGTH+" bytes in length.")}}else if(!(r instanceof Uint8Array)){throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.')}r=messageToNativeBuffer({message:r,encoding:"binary"});var i=new p(d.constants.PUBLIC_KEY_BYTE_LENGTH);var s=new p(d.constants.PRIVATE_KEY_BYTE_LENGTH);for(var a=0;a<32;++a){s[a]=r[a]}crypto_sign_keypair(i,s);return{publicKey:i,privateKey:s}};d.privateKeyFromAsn1=function(e){var r={};var i=[];var s=n.asn1.validate(e,o,r,i);if(!s){var a=new Error("Invalid Key.");a.errors=i;throw a}var c=n.asn1.derToOid(r.privateKeyOid);var l=n.oids.EdDSA25519;if(c!==l){throw new Error('Invalid OID "'+c+'"; OID must be "'+l+'".')}var p=r.privateKey;var d=messageToNativeBuffer({message:n.asn1.fromDer(p).value,encoding:"binary"});return{privateKeyBytes:d}};d.publicKeyFromAsn1=function(e){var r={};var i=[];var s=n.asn1.validate(e,a,r,i);if(!s){var o=new Error("Invalid Key.");o.errors=i;throw o}var c=n.asn1.derToOid(r.publicKeyOid);var l=n.oids.EdDSA25519;if(c!==l){throw new Error('Invalid OID "'+c+'"; OID must be "'+l+'".')}var p=r.ed25519PublicKey;if(p.length!==d.constants.PUBLIC_KEY_BYTE_LENGTH){throw new Error("Key length is invalid.")}return messageToNativeBuffer({message:p,encoding:"binary"})};d.publicKeyFromPrivateKey=function(e){e=e||{};var r=messageToNativeBuffer({message:e.privateKey,encoding:"binary"});if(r.length!==d.constants.PRIVATE_KEY_BYTE_LENGTH){throw new TypeError('"options.privateKey" must have a byte length of '+d.constants.PRIVATE_KEY_BYTE_LENGTH)}var i=new p(d.constants.PUBLIC_KEY_BYTE_LENGTH);for(var n=0;n=0};function messageToNativeBuffer(e){var r=e.message;if(r instanceof Uint8Array||r instanceof p){return r}var i=e.encoding;if(r===undefined){if(e.md){r=e.md.digest().getBytes();i="binary"}else{throw new TypeError('"options.message" or "options.md" not specified.')}}if(typeof r==="string"&&!i){throw new TypeError('"options.encoding" must be "binary" or "utf8".')}if(typeof r==="string"){if(typeof Buffer!=="undefined"){return Buffer.from(r,i)}r=new l(r,i)}else if(!(r instanceof l)){throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge '+'ByteBuffer, or a string with "options.encoding" specifying its '+"encoding.")}var n=new p(r.length());for(var s=0;s=32;--n){i=0;for(s=n-32,a=n-12;s>8;r[s]-=i*256}r[s]+=i;r[n]=0}i=0;for(s=0;s<32;++s){r[s]+=i-(r[31]>>4)*x[s];i=r[s]>>8;r[s]&=255}for(s=0;s<32;++s){r[s]-=i*x[s]}for(n=0;n<32;++n){r[n+1]+=r[n]>>8;e[n]=r[n]&255}}function reduce(e){var r=new Float64Array(64);for(var i=0;i<64;++i){r[i]=e[i];e[i]=0}modL(e,r)}function add(e,r){var i=gf(),n=gf(),s=gf(),a=gf(),o=gf(),c=gf(),l=gf(),p=gf(),d=gf();Z(i,e[1],e[0]);Z(d,r[1],r[0]);M(i,i,d);A(n,e[0],e[1]);A(d,r[0],r[1]);M(n,n,d);M(s,e[3],r[3]);M(s,s,y);M(a,e[2],r[2]);A(a,a,a);Z(o,n,i);Z(c,a,s);A(l,a,s);A(p,n,i);M(e[0],o,c);M(e[1],p,l);M(e[2],l,c);M(e[3],o,p)}function cswap(e,r,i){for(var n=0;n<4;++n){sel25519(e[n],r[n],i)}}function pack(e,r){var i=gf(),n=gf(),s=gf();inv25519(s,r[2]);M(i,r[0],s);M(n,r[1],s);pack25519(e,n);e[31]^=par25519(i)<<7}function pack25519(e,r){var i,n,s;var a=gf(),o=gf();for(i=0;i<16;++i){o[i]=r[i]}car25519(o);car25519(o);car25519(o);for(n=0;n<2;++n){a[0]=o[0]-65517;for(i=1;i<15;++i){a[i]=o[i]-65535-(a[i-1]>>16&1);a[i-1]&=65535}a[15]=o[15]-32767-(a[14]>>16&1);s=a[15]>>16&1;a[14]&=65535;sel25519(o,a,1-s)}for(i=0;i<16;i++){e[2*i]=o[i]&255;e[2*i+1]=o[i]>>8}}function unpackneg(e,r){var i=gf(),n=gf(),s=gf(),a=gf(),o=gf(),c=gf(),l=gf();set25519(e[2],g);unpack25519(e[1],r);S(s,e[1]);M(a,s,v);Z(s,s,e[2]);A(a,e[2],a);S(o,a);S(c,o);M(l,c,o);M(i,l,s);M(i,i,a);pow2523(i,i);M(i,i,s);M(i,i,a);M(i,i,a);M(e[0],i,a);S(n,e[0]);M(n,n,a);if(neq25519(n,s)){M(e[0],e[0],w)}S(n,e[0]);M(n,n,a);if(neq25519(n,s)){return-1}if(par25519(e[0])===r[31]>>7){Z(e[0],h,e[0])}M(e[3],e[0],e[1]);return 0}function unpack25519(e,r){var i;for(i=0;i<16;++i){e[i]=r[2*i]+(r[2*i+1]<<8)}e[15]&=32767}function pow2523(e,r){var i=gf();var n;for(n=0;n<16;++n){i[n]=r[n]}for(n=250;n>=0;--n){S(i,i);if(n!==1){M(i,i,r)}}for(n=0;n<16;++n){e[n]=i[n]}}function neq25519(e,r){var i=new p(32);var n=new p(32);pack25519(i,e);pack25519(n,r);return crypto_verify_32(i,0,n,0)}function crypto_verify_32(e,r,i,n){return vn(e,r,i,n,32)}function vn(e,r,i,n,s){var a,o=0;for(a=0;a>>8)-1}function par25519(e){var r=new p(32);pack25519(r,e);return r[0]&1}function scalarmult(e,r,i){var n,s;set25519(e[0],h);set25519(e[1],g);set25519(e[2],g);set25519(e[3],h);for(s=255;s>=0;--s){n=i[s/8|0]>>(s&7)&1;cswap(e,r,n);add(r,e);add(e,e);cswap(e,r,n)}}function scalarbase(e,r){var i=[gf(),gf(),gf(),gf()];set25519(i[0],b);set25519(i[1],E);set25519(i[2],g);M(i[3],b,E);scalarmult(e,i,r)}function set25519(e,r){var i;for(i=0;i<16;i++){e[i]=r[i]|0}}function inv25519(e,r){var i=gf();var n;for(n=0;n<16;++n){i[n]=r[n]}for(n=253;n>=0;--n){S(i,i);if(n!==2&&n!==4){M(i,i,r)}}for(n=0;n<16;++n){e[n]=i[n]}}function car25519(e){var r,i,n=1;for(r=0;r<16;++r){i=e[r]+n+65535;n=Math.floor(i/65536);e[r]=i-n*65536}e[0]+=n-1+37*(n-1)}function sel25519(e,r,i){var n,s=~(i-1);for(var a=0;a<16;++a){n=s&(e[a]^r[a]);e[a]^=n;r[a]^=n}}function gf(e){var r,i=new Float64Array(16);if(e){for(r=0;r{e.exports={options:{usePureJavaScript:false}}},5104:(e,r,i)=>{var n=i(9177);i(6231);i(8339);var s=e.exports=n.hmac=n.hmac||{};s.create=function(){var e=null;var r=null;var i=null;var s=null;var a={};a.start=function(a,o){if(a!==null){if(typeof a==="string"){a=a.toLowerCase();if(a in n.md.algorithms){r=n.md.algorithms[a].create()}else{throw new Error('Unknown hash algorithm "'+a+'"')}}else{r=a}}if(o===null){o=e}else{if(typeof o==="string"){o=n.util.createBuffer(o)}else if(n.util.isArray(o)){var c=o;o=n.util.createBuffer();for(var l=0;lr.blockLength){r.start();r.update(o.bytes());o=r.digest()}i=n.util.createBuffer();s=n.util.createBuffer();p=o.length();for(var l=0;l{e.exports=i(9177);i(7994);i(1449);i(9549);i(7088);i(7157);i(0);i(5104);i(5173);i(9994);i(1145);i(3339);i(1611);i(154);i(7014);i(466);i(4829);i(6924);i(6861);i(4467);i(4376);i(7821);i(9965);i(4280);i(9167);i(8339)},7052:(e,r,i)=>{var n=i(9177);e.exports=n.jsbn=n.jsbn||{};var s;var a=0xdeadbeefcafe;var o=(a&16777215)==15715070;function BigInteger(e,r,i){this.data=[];if(e!=null)if("number"==typeof e)this.fromNumber(e,r,i);else if(r==null&&"string"!=typeof e)this.fromString(e,256);else this.fromString(e,r)}n.jsbn.BigInteger=BigInteger;function nbi(){return new BigInteger(null)}function am1(e,r,i,n,s,a){while(--a>=0){var o=r*this.data[e++]+i.data[n]+s;s=Math.floor(o/67108864);i.data[n++]=o&67108863}return s}function am2(e,r,i,n,s,a){var o=r&32767,c=r>>15;while(--a>=0){var l=this.data[e]&32767;var p=this.data[e++]>>15;var d=c*l+p*o;l=o*l+((d&32767)<<15)+i.data[n]+(s&1073741823);s=(l>>>30)+(d>>>15)+c*p+(s>>>30);i.data[n++]=l&1073741823}return s}function am3(e,r,i,n,s,a){var o=r&16383,c=r>>14;while(--a>=0){var l=this.data[e]&16383;var p=this.data[e++]>>14;var d=c*l+p*o;l=o*l+((d&16383)<<14)+i.data[n]+s;s=(l>>28)+(d>>14)+c*p;i.data[n++]=l&268435455}return s}if(typeof navigator==="undefined"){BigInteger.prototype.am=am3;s=28}else if(o&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;s=30}else if(o&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;s=26}else{BigInteger.prototype.am=am3;s=28}BigInteger.prototype.DB=s;BigInteger.prototype.DM=(1<=0;--r)e.data[r]=this.data[r];e.t=this.t;e.s=this.s}function bnpFromInt(e){this.t=1;this.s=e<0?-1:0;if(e>0)this.data[0]=e;else if(e<-1)this.data[0]=e+this.DV;else this.t=0}function nbv(e){var r=nbi();r.fromInt(e);return r}function bnpFromString(e,r){var i;if(r==16)i=4;else if(r==8)i=3;else if(r==256)i=8;else if(r==2)i=1;else if(r==32)i=5;else if(r==4)i=2;else{this.fromRadix(e,r);return}this.t=0;this.s=0;var n=e.length,s=false,a=0;while(--n>=0){var o=i==8?e[n]&255:intAt(e,n);if(o<0){if(e.charAt(n)=="-")s=true;continue}s=false;if(a==0)this.data[this.t++]=o;else if(a+i>this.DB){this.data[this.t-1]|=(o&(1<>this.DB-a}else this.data[this.t-1]|=o<=this.DB)a-=this.DB}if(i==8&&(e[0]&128)!=0){this.s=-1;if(a>0)this.data[this.t-1]|=(1<0&&this.data[this.t-1]==e)--this.t}function bnToString(e){if(this.s<0)return"-"+this.negate().toString(e);var r;if(e==16)r=4;else if(e==8)r=3;else if(e==2)r=1;else if(e==32)r=5;else if(e==4)r=2;else return this.toRadix(e);var i=(1<0){if(c>c)>0){s=true;a=int2char(n)}while(o>=0){if(c>(c+=this.DB-r)}else{n=this.data[o]>>(c-=r)&i;if(c<=0){c+=this.DB;--o}}if(n>0)s=true;if(s)a+=int2char(n)}}return s?a:"0"}function bnNegate(){var e=nbi();BigInteger.ZERO.subTo(this,e);return e}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(e){var r=this.s-e.s;if(r!=0)return r;var i=this.t;r=i-e.t;if(r!=0)return this.s<0?-r:r;while(--i>=0)if((r=this.data[i]-e.data[i])!=0)return r;return 0}function nbits(e){var r=1,i;if((i=e>>>16)!=0){e=i;r+=16}if((i=e>>8)!=0){e=i;r+=8}if((i=e>>4)!=0){e=i;r+=4}if((i=e>>2)!=0){e=i;r+=2}if((i=e>>1)!=0){e=i;r+=1}return r}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this.data[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(e,r){var i;for(i=this.t-1;i>=0;--i)r.data[i+e]=this.data[i];for(i=e-1;i>=0;--i)r.data[i]=0;r.t=this.t+e;r.s=this.s}function bnpDRShiftTo(e,r){for(var i=e;i=0;--c){r.data[c+a+1]=this.data[c]>>n|o;o=(this.data[c]&s)<=0;--c)r.data[c]=0;r.data[a]=o;r.t=this.t+a+1;r.s=this.s;r.clamp()}function bnpRShiftTo(e,r){r.s=this.s;var i=Math.floor(e/this.DB);if(i>=this.t){r.t=0;return}var n=e%this.DB;var s=this.DB-n;var a=(1<>n;for(var o=i+1;o>n}if(n>0)r.data[this.t-i-1]|=(this.s&a)<>=this.DB}if(e.t>=this.DB}n+=this.s}else{n+=this.s;while(i>=this.DB}n-=e.s}r.s=n<0?-1:0;if(n<-1)r.data[i++]=this.DV+n;else if(n>0)r.data[i++]=n;r.t=i;r.clamp()}function bnpMultiplyTo(e,r){var i=this.abs(),n=e.abs();var s=i.t;r.t=s+n.t;while(--s>=0)r.data[s]=0;for(s=0;s=0)e.data[i]=0;for(i=0;i=r.DV){e.data[i+r.t]-=r.DV;e.data[i+r.t+1]=1}}if(e.t>0)e.data[e.t-1]+=r.am(i,r.data[i],e,2*i,0,1);e.s=0;e.clamp()}function bnpDivRemTo(e,r,i){var n=e.abs();if(n.t<=0)return;var s=this.abs();if(s.t0){n.lShiftTo(l,a);s.lShiftTo(l,i)}else{n.copyTo(a);s.copyTo(i)}var p=a.t;var d=a.data[p-1];if(d==0)return;var h=d*(1<1?a.data[p-2]>>this.F2:0);var g=this.FV/h,v=(1<=0){i.data[i.t++]=1;i.subTo(x,i)}BigInteger.ONE.dlShiftTo(p,x);x.subTo(a,a);while(a.t=0){var w=i.data[--b]==d?this.DM:Math.floor(i.data[b]*g+(i.data[b-1]+y)*v);if((i.data[b]+=a.am(0,w,i,E,0,p))0)i.rShiftTo(l,i);if(o<0)BigInteger.ZERO.subTo(i,i)}function bnMod(e){var r=nbi();this.abs().divRemTo(e,null,r);if(this.s<0&&r.compareTo(BigInteger.ZERO)>0)e.subTo(r,r);return r}function Classic(e){this.m=e}function cConvert(e){if(e.s<0||e.compareTo(this.m)>=0)return e.mod(this.m);else return e}function cRevert(e){return e}function cReduce(e){e.divRemTo(this.m,null,e)}function cMulTo(e,r,i){e.multiplyTo(r,i);this.reduce(i)}function cSqrTo(e,r){e.squareTo(r);this.reduce(r)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1)return 0;var e=this.data[0];if((e&1)==0)return 0;var r=e&3;r=r*(2-(e&15)*r)&15;r=r*(2-(e&255)*r)&255;r=r*(2-((e&65535)*r&65535))&65535;r=r*(2-e*r%this.DV)%this.DV;return r>0?this.DV-r:-r}function Montgomery(e){this.m=e;this.mp=e.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<0)this.m.subTo(r,r);return r}function montRevert(e){var r=nbi();e.copyTo(r);this.reduce(r);return r}function montReduce(e){while(e.t<=this.mt2)e.data[e.t++]=0;for(var r=0;r>15)*this.mpl&this.um)<<15)&e.DM;i=r+this.m.t;e.data[i]+=this.m.am(0,n,e,r,0,this.m.t);while(e.data[i]>=e.DV){e.data[i]-=e.DV;e.data[++i]++}}e.clamp();e.drShiftTo(this.m.t,e);if(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function montSqrTo(e,r){e.squareTo(r);this.reduce(r)}function montMulTo(e,r,i){e.multiplyTo(r,i);this.reduce(i)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return(this.t>0?this.data[0]&1:this.s)==0}function bnpExp(e,r){if(e>4294967295||e<1)return BigInteger.ONE;var i=nbi(),n=nbi(),s=r.convert(this),a=nbits(e)-1;s.copyTo(i);while(--a>=0){r.sqrTo(i,n);if((e&1<0)r.mulTo(n,s,i);else{var o=i;i=n;n=o}}return r.revert(i)}function bnModPowInt(e,r){var i;if(e<256||r.isEven())i=new Classic(r);else i=new Montgomery(r);return this.exp(e,i)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnClone(){var e=nbi();this.copyTo(e);return e}function bnIntValue(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this.data[0];else if(this.t==0)return 0;return(this.data[1]&(1<<32-this.DB)-1)<>24}function bnShortValue(){return this.t==0?this.s:this.data[0]<<16>>16}function bnpChunkSize(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this.data[0]<=0)return 0;else return 1}function bnpToRadix(e){if(e==null)e=10;if(this.signum()==0||e<2||e>36)return"0";var r=this.chunkSize(e);var i=Math.pow(e,r);var n=nbv(i),s=nbi(),a=nbi(),o="";this.divRemTo(n,s,a);while(s.signum()>0){o=(i+a.intValue()).toString(e).substr(1)+o;s.divRemTo(n,s,a)}return a.intValue().toString(e)+o}function bnpFromRadix(e,r){this.fromInt(0);if(r==null)r=10;var i=this.chunkSize(r);var n=Math.pow(r,i),s=false,a=0,o=0;for(var c=0;c=i){this.dMultiply(n);this.dAddOffset(o,0);a=0;o=0}}if(a>0){this.dMultiply(Math.pow(r,a));this.dAddOffset(o,0)}if(s)BigInteger.ZERO.subTo(this,this)}function bnpFromNumber(e,r,i){if("number"==typeof r){if(e<2)this.fromInt(1);else{this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(BigInteger.ONE.shiftLeft(e-1),op_or,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(r)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(BigInteger.ONE.shiftLeft(e-1),this)}}}else{var n=new Array,s=e&7;n.length=(e>>3)+1;r.nextBytes(n);if(s>0)n[0]&=(1<0){if(i>i)!=(this.s&this.DM)>>i)r[s++]=n|this.s<=0){if(i<8){n=(this.data[e]&(1<>(i+=this.DB-8)}else{n=this.data[e]>>(i-=8)&255;if(i<=0){i+=this.DB;--e}}if((n&128)!=0)n|=-256;if(s==0&&(this.s&128)!=(n&128))++s;if(s>0||n!=this.s)r[s++]=n}}return r}function bnEquals(e){return this.compareTo(e)==0}function bnMin(e){return this.compareTo(e)<0?this:e}function bnMax(e){return this.compareTo(e)>0?this:e}function bnpBitwiseTo(e,r,i){var n,s,a=Math.min(e.t,this.t);for(n=0;n>=16;r+=16}if((e&255)==0){e>>=8;r+=8}if((e&15)==0){e>>=4;r+=4}if((e&3)==0){e>>=2;r+=2}if((e&1)==0)++r;return r}function bnGetLowestSetBit(){for(var e=0;e=this.t)return this.s!=0;return(this.data[r]&1<>=this.DB}if(e.t>=this.DB}n+=this.s}else{n+=this.s;while(i>=this.DB}n+=e.s}r.s=n<0?-1:0;if(n>0)r.data[i++]=n;else if(n<-1)r.data[i++]=this.DV+n;r.t=i;r.clamp()}function bnAdd(e){var r=nbi();this.addTo(e,r);return r}function bnSubtract(e){var r=nbi();this.subTo(e,r);return r}function bnMultiply(e){var r=nbi();this.multiplyTo(e,r);return r}function bnDivide(e){var r=nbi();this.divRemTo(e,r,null);return r}function bnRemainder(e){var r=nbi();this.divRemTo(e,null,r);return r}function bnDivideAndRemainder(e){var r=nbi(),i=nbi();this.divRemTo(e,r,i);return new Array(r,i)}function bnpDMultiply(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(e,r){if(e==0)return;while(this.t<=r)this.data[this.t++]=0;this.data[r]+=e;while(this.data[r]>=this.DV){this.data[r]-=this.DV;if(++r>=this.t)this.data[this.t++]=0;++this.data[r]}}function NullExp(){}function nNop(e){return e}function nMulTo(e,r,i){e.multiplyTo(r,i)}function nSqrTo(e,r){e.squareTo(r)}NullExp.prototype.convert=nNop;NullExp.prototype.revert=nNop;NullExp.prototype.mulTo=nMulTo;NullExp.prototype.sqrTo=nSqrTo;function bnPow(e){return this.exp(e,new NullExp)}function bnpMultiplyLowerTo(e,r,i){var n=Math.min(this.t+e.t,r);i.s=0;i.t=n;while(n>0)i.data[--n]=0;var s;for(s=i.t-this.t;n=0)i.data[n]=0;for(n=Math.max(r-this.t,0);n2*this.m.t)return e.mod(this.m);else if(e.compareTo(this.m)<0)return e;else{var r=nbi();e.copyTo(r);this.reduce(r);return r}}function barrettRevert(e){return e}function barrettReduce(e){e.drShiftTo(this.m.t-1,this.r2);if(e.t>this.m.t+1){e.t=this.m.t+1;e.clamp()}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function barrettSqrTo(e,r){e.squareTo(r);this.reduce(r)}function barrettMulTo(e,r,i){e.multiplyTo(r,i);this.reduce(i)}Barrett.prototype.convert=barrettConvert;Barrett.prototype.revert=barrettRevert;Barrett.prototype.reduce=barrettReduce;Barrett.prototype.mulTo=barrettMulTo;Barrett.prototype.sqrTo=barrettSqrTo;function bnModPow(e,r){var i=e.bitLength(),n,s=nbv(1),a;if(i<=0)return s;else if(i<18)n=1;else if(i<48)n=3;else if(i<144)n=4;else if(i<768)n=5;else n=6;if(i<8)a=new Classic(r);else if(r.isEven())a=new Barrett(r);else a=new Montgomery(r);var o=new Array,c=3,l=n-1,p=(1<1){var d=nbi();a.sqrTo(o[1],d);while(c<=p){o[c]=nbi();a.mulTo(d,o[c-2],o[c]);c+=2}}var h=e.t-1,g,v=true,y=nbi(),b;i=nbits(e.data[h])-1;while(h>=0){if(i>=l)g=e.data[h]>>i-l&p;else{g=(e.data[h]&(1<0)g|=e.data[h-1]>>this.DB+i-l}c=n;while((g&1)==0){g>>=1;--c}if((i-=c)<0){i+=this.DB;--h}if(v){o[g].copyTo(s);v=false}else{while(c>1){a.sqrTo(s,y);a.sqrTo(y,s);c-=2}if(c>0)a.sqrTo(s,y);else{b=s;s=y;y=b}a.mulTo(y,o[g],s)}while(h>=0&&(e.data[h]&1<0){r.rShiftTo(a,r);i.rShiftTo(a,i)}while(r.signum()>0){if((s=r.getLowestSetBit())>0)r.rShiftTo(s,r);if((s=i.getLowestSetBit())>0)i.rShiftTo(s,i);if(r.compareTo(i)>=0){r.subTo(i,r);r.rShiftTo(1,r)}else{i.subTo(r,i);i.rShiftTo(1,i)}}if(a>0)i.lShiftTo(a,i);return i}function bnpModInt(e){if(e<=0)return 0;var r=this.DV%e,i=this.s<0?e-1:0;if(this.t>0)if(r==0)i=this.data[0]%e;else for(var n=this.t-1;n>=0;--n)i=(r*i+this.data[n])%e;return i}function bnModInverse(e){var r=e.isEven();if(this.isEven()&&r||e.signum()==0)return BigInteger.ZERO;var i=e.clone(),n=this.clone();var s=nbv(1),a=nbv(0),o=nbv(0),c=nbv(1);while(i.signum()!=0){while(i.isEven()){i.rShiftTo(1,i);if(r){if(!s.isEven()||!a.isEven()){s.addTo(this,s);a.subTo(e,a)}s.rShiftTo(1,s)}else if(!a.isEven())a.subTo(e,a);a.rShiftTo(1,a)}while(n.isEven()){n.rShiftTo(1,n);if(r){if(!o.isEven()||!c.isEven()){o.addTo(this,o);c.subTo(e,c)}o.rShiftTo(1,o)}else if(!c.isEven())c.subTo(e,c);c.rShiftTo(1,c)}if(i.compareTo(n)>=0){i.subTo(n,i);if(r)s.subTo(o,s);a.subTo(c,a)}else{n.subTo(i,n);if(r)o.subTo(s,o);c.subTo(a,c)}}if(n.compareTo(BigInteger.ONE)!=0)return BigInteger.ZERO;if(c.compareTo(e)>=0)return c.subtract(e);if(c.signum()<0)c.addTo(e,c);else return c;if(c.signum()<0)return c.add(e);else return c}var g=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509];var v=(1<<26)/g[g.length-1];function bnIsProbablePrime(e){var r,i=this.abs();if(i.t==1&&i.data[0]<=g[g.length-1]){for(r=0;r=0);var c=a.modPow(n,this);if(c.compareTo(BigInteger.ONE)!=0&&c.compareTo(r)!=0){var l=1;while(l++{var n=i(9177);i(8339);i(7821);i(7052);e.exports=n.kem=n.kem||{};var s=n.jsbn.BigInteger;n.kem.rsa={};n.kem.rsa.create=function(e,r){r=r||{};var i=r.prng||n.random;var a={};a.encrypt=function(r,a){var o=Math.ceil(r.n.bitLength()/8);var c;do{c=new s(n.util.bytesToHex(i.getBytesSync(o)),16).mod(r.n)}while(c.compareTo(s.ONE)<=0);c=n.util.hexToBytes(c.toString(16));var l=o-c.length;if(l>0){c=n.util.fillString(String.fromCharCode(0),l)+c}var p=r.encrypt(c,"NONE");var d=e.generate(c,a);return{encapsulation:p,key:d}};a.decrypt=function(r,i,n){var s=r.decrypt(i,"NONE");return e.generate(s,n)};return a};n.kem.kdf1=function(e,r){_createKDF(this,e,0,r||e.digestLength)};n.kem.kdf2=function(e,r){_createKDF(this,e,1,r||e.digestLength)};function _createKDF(e,r,i,s){e.generate=function(e,a){var o=new n.util.ByteBuffer;var c=Math.ceil(a/s)+i;var l=new n.util.ByteBuffer;for(var p=i;p{var n=i(9177);i(8339);e.exports=n.log=n.log||{};n.log.levels=["none","error","warning","info","debug","verbose","max"];var s={};var a=[];var o=null;n.log.LEVEL_LOCKED=1<<1;n.log.NO_LEVEL_CHECK=1<<2;n.log.INTERPOLATE=1<<3;for(var c=0;c{e.exports=i(6231);i(6594);i(279);i(4086);i(9542)},6231:(e,r,i)=>{var n=i(9177);e.exports=n.md=n.md||{};n.md.algorithms=n.md.algorithms||{}},6594:(e,r,i)=>{var n=i(9177);i(6231);i(8339);var s=e.exports=n.md5=n.md5||{};n.md.md5=n.md.algorithms.md5=s;s.create=function(){if(!p){_init()}var e=null;var r=n.util.createBuffer();var i=new Array(16);var s={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};s.start=function(){s.messageLength=0;s.fullMessageLength=s.messageLength64=[];var i=s.messageLengthSize/4;for(var a=0;a>>0,c>>>0];for(var l=s.fullMessageLength.length-1;l>=0;--l){s.fullMessageLength[l]+=c[1];c[1]=c[0]+(s.fullMessageLength[l]/4294967296>>>0);s.fullMessageLength[l]=s.fullMessageLength[l]>>>0;c[0]=c[1]/4294967296>>>0}r.putBytes(a);_update(e,i,r);if(r.read>2048||r.length()===0){r.compact()}return s};s.digest=function(){var o=n.util.createBuffer();o.putBytes(r.bytes());var c=s.fullMessageLength[s.fullMessageLength.length-1]+s.messageLengthSize;var l=c&s.blockLength-1;o.putBytes(a.substr(0,s.blockLength-l));var p,d=0;for(var h=s.fullMessageLength.length-1;h>=0;--h){p=s.fullMessageLength[h]*8+d;d=p/4294967296>>>0;o.putInt32Le(p>>>0)}var g={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3};_update(g,i,o);var v=n.util.createBuffer();v.putInt32Le(g.h0);v.putInt32Le(g.h1);v.putInt32Le(g.h2);v.putInt32Le(g.h3);return v};return s};var a=null;var o=null;var c=null;var l=null;var p=false;function _init(){a=String.fromCharCode(128);a+=n.util.fillString(String.fromCharCode(0),64);o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9];c=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21];l=new Array(64);for(var e=0;e<64;++e){l[e]=Math.floor(Math.abs(Math.sin(e+1))*4294967296)}p=true}function _update(e,r,i){var n,s,a,p,d,h,g,v;var y=i.length();while(y>=64){s=e.h0;a=e.h1;p=e.h2;d=e.h3;for(v=0;v<16;++v){r[v]=i.getInt32Le();h=d^a&(p^d);n=s+h+l[v]+r[v];g=c[v];s=d;d=p;p=a;a+=n<>>32-g}for(;v<32;++v){h=p^d&(a^p);n=s+h+l[v]+r[o[v]];g=c[v];s=d;d=p;p=a;a+=n<>>32-g}for(;v<48;++v){h=a^p^d;n=s+h+l[v]+r[o[v]];g=c[v];s=d;d=p;p=a;a+=n<>>32-g}for(;v<64;++v){h=p^(a|~d);n=s+h+l[v]+r[o[v]];g=c[v];s=d;d=p;p=a;a+=n<>>32-g}e.h0=e.h0+s|0;e.h1=e.h1+a|0;e.h2=e.h2+p|0;e.h3=e.h3+d|0;y-=64}}},7973:(e,r,i)=>{var n=i(9177);i(3339);e.exports=n.mgf=n.mgf||{};n.mgf.mgf1=n.mgf1},3339:(e,r,i)=>{var n=i(9177);i(8339);n.mgf=n.mgf||{};var s=e.exports=n.mgf.mgf1=n.mgf1=n.mgf1||{};s.create=function(e){var r={generate:function(r,i){var s=new n.util.ByteBuffer;var a=Math.ceil(i/e.digestLength);for(var o=0;o{var n=i(9177);n.pki=n.pki||{};var s=e.exports=n.pki.oids=n.oids=n.oids||{};function _IN(e,r){s[e]=r;s[r]=e}function _I_(e,r){s[e]=r}_IN("1.2.840.113549.1.1.1","rsaEncryption");_IN("1.2.840.113549.1.1.4","md5WithRSAEncryption");_IN("1.2.840.113549.1.1.5","sha1WithRSAEncryption");_IN("1.2.840.113549.1.1.7","RSAES-OAEP");_IN("1.2.840.113549.1.1.8","mgf1");_IN("1.2.840.113549.1.1.9","pSpecified");_IN("1.2.840.113549.1.1.10","RSASSA-PSS");_IN("1.2.840.113549.1.1.11","sha256WithRSAEncryption");_IN("1.2.840.113549.1.1.12","sha384WithRSAEncryption");_IN("1.2.840.113549.1.1.13","sha512WithRSAEncryption");_IN("1.3.101.112","EdDSA25519");_IN("1.2.840.10040.4.3","dsa-with-sha1");_IN("1.3.14.3.2.7","desCBC");_IN("1.3.14.3.2.26","sha1");_IN("1.3.14.3.2.29","sha1WithRSASignature");_IN("2.16.840.1.101.3.4.2.1","sha256");_IN("2.16.840.1.101.3.4.2.2","sha384");_IN("2.16.840.1.101.3.4.2.3","sha512");_IN("1.2.840.113549.2.5","md5");_IN("1.2.840.113549.1.7.1","data");_IN("1.2.840.113549.1.7.2","signedData");_IN("1.2.840.113549.1.7.3","envelopedData");_IN("1.2.840.113549.1.7.4","signedAndEnvelopedData");_IN("1.2.840.113549.1.7.5","digestedData");_IN("1.2.840.113549.1.7.6","encryptedData");_IN("1.2.840.113549.1.9.1","emailAddress");_IN("1.2.840.113549.1.9.2","unstructuredName");_IN("1.2.840.113549.1.9.3","contentType");_IN("1.2.840.113549.1.9.4","messageDigest");_IN("1.2.840.113549.1.9.5","signingTime");_IN("1.2.840.113549.1.9.6","counterSignature");_IN("1.2.840.113549.1.9.7","challengePassword");_IN("1.2.840.113549.1.9.8","unstructuredAddress");_IN("1.2.840.113549.1.9.14","extensionRequest");_IN("1.2.840.113549.1.9.20","friendlyName");_IN("1.2.840.113549.1.9.21","localKeyId");_IN("1.2.840.113549.1.9.22.1","x509Certificate");_IN("1.2.840.113549.1.12.10.1.1","keyBag");_IN("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag");_IN("1.2.840.113549.1.12.10.1.3","certBag");_IN("1.2.840.113549.1.12.10.1.4","crlBag");_IN("1.2.840.113549.1.12.10.1.5","secretBag");_IN("1.2.840.113549.1.12.10.1.6","safeContentsBag");_IN("1.2.840.113549.1.5.13","pkcs5PBES2");_IN("1.2.840.113549.1.5.12","pkcs5PBKDF2");_IN("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4");_IN("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4");_IN("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC");_IN("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC");_IN("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC");_IN("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC");_IN("1.2.840.113549.2.7","hmacWithSHA1");_IN("1.2.840.113549.2.8","hmacWithSHA224");_IN("1.2.840.113549.2.9","hmacWithSHA256");_IN("1.2.840.113549.2.10","hmacWithSHA384");_IN("1.2.840.113549.2.11","hmacWithSHA512");_IN("1.2.840.113549.3.7","des-EDE3-CBC");_IN("2.16.840.1.101.3.4.1.2","aes128-CBC");_IN("2.16.840.1.101.3.4.1.22","aes192-CBC");_IN("2.16.840.1.101.3.4.1.42","aes256-CBC");_IN("2.5.4.3","commonName");_IN("2.5.4.4","surname");_IN("2.5.4.5","serialNumber");_IN("2.5.4.6","countryName");_IN("2.5.4.7","localityName");_IN("2.5.4.8","stateOrProvinceName");_IN("2.5.4.9","streetAddress");_IN("2.5.4.10","organizationName");_IN("2.5.4.11","organizationalUnitName");_IN("2.5.4.12","title");_IN("2.5.4.13","description");_IN("2.5.4.15","businessCategory");_IN("2.5.4.17","postalCode");_IN("2.5.4.42","givenName");_IN("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName");_IN("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName");_IN("2.16.840.1.113730.1.1","nsCertType");_IN("2.16.840.1.113730.1.13","nsComment");_I_("2.5.29.1","authorityKeyIdentifier");_I_("2.5.29.2","keyAttributes");_I_("2.5.29.3","certificatePolicies");_I_("2.5.29.4","keyUsageRestriction");_I_("2.5.29.5","policyMapping");_I_("2.5.29.6","subtreesConstraint");_I_("2.5.29.7","subjectAltName");_I_("2.5.29.8","issuerAltName");_I_("2.5.29.9","subjectDirectoryAttributes");_I_("2.5.29.10","basicConstraints");_I_("2.5.29.11","nameConstraints");_I_("2.5.29.12","policyConstraints");_I_("2.5.29.13","basicConstraints");_IN("2.5.29.14","subjectKeyIdentifier");_IN("2.5.29.15","keyUsage");_I_("2.5.29.16","privateKeyUsagePeriod");_IN("2.5.29.17","subjectAltName");_IN("2.5.29.18","issuerAltName");_IN("2.5.29.19","basicConstraints");_I_("2.5.29.20","cRLNumber");_I_("2.5.29.21","cRLReason");_I_("2.5.29.22","expirationDate");_I_("2.5.29.23","instructionCode");_I_("2.5.29.24","invalidityDate");_I_("2.5.29.25","cRLDistributionPoints");_I_("2.5.29.26","issuingDistributionPoint");_I_("2.5.29.27","deltaCRLIndicator");_I_("2.5.29.28","issuingDistributionPoint");_I_("2.5.29.29","certificateIssuer");_I_("2.5.29.30","nameConstraints");_IN("2.5.29.31","cRLDistributionPoints");_IN("2.5.29.32","certificatePolicies");_I_("2.5.29.33","policyMappings");_I_("2.5.29.34","policyConstraints");_IN("2.5.29.35","authorityKeyIdentifier");_I_("2.5.29.36","policyConstraints");_IN("2.5.29.37","extKeyUsage");_I_("2.5.29.46","freshestCRL");_I_("2.5.29.54","inhibitAnyPolicy");_IN("1.3.6.1.4.1.11129.2.4.2","timestampList");_IN("1.3.6.1.5.5.7.1.1","authorityInfoAccess");_IN("1.3.6.1.5.5.7.3.1","serverAuth");_IN("1.3.6.1.5.5.7.3.2","clientAuth");_IN("1.3.6.1.5.5.7.3.3","codeSigning");_IN("1.3.6.1.5.5.7.3.4","emailProtection");_IN("1.3.6.1.5.5.7.3.8","timeStamping")},1281:(e,r,i)=>{var n=i(9177);i(7994);i(9549);i(7157);i(6231);i(1925);i(1611);i(154);i(7821);i(9965);i(3921);i(8339);if(typeof s==="undefined"){var s=n.jsbn.BigInteger}var a=n.asn1;var o=n.pki=n.pki||{};e.exports=o.pbe=n.pbe=n.pbe||{};var c=o.oids;var l={name:"EncryptedPrivateKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:false,capture:"encryptedData"}]};var p={name:"PBES2Algorithms",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"PBES2Algorithms.params.salt",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:false,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,optional:true,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,optional:true,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:false,capture:"encIv"}]}]};var d={name:"pkcs-12PbeParams",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"pkcs-12PbeParams.salt",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:false,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,capture:"iterations"}]};o.encryptPrivateKeyInfo=function(e,r,i){i=i||{};i.saltSize=i.saltSize||8;i.count=i.count||2048;i.algorithm=i.algorithm||"aes128";i.prfAlgorithm=i.prfAlgorithm||"sha1";var s=n.random.getBytesSync(i.saltSize);var l=i.count;var p=a.integerToDer(l);var d;var h;var g;if(i.algorithm.indexOf("aes")===0||i.algorithm==="des"){var v,y,b;switch(i.algorithm){case"aes128":d=16;v=16;y=c["aes128-CBC"];b=n.aes.createEncryptionCipher;break;case"aes192":d=24;v=16;y=c["aes192-CBC"];b=n.aes.createEncryptionCipher;break;case"aes256":d=32;v=16;y=c["aes256-CBC"];b=n.aes.createEncryptionCipher;break;case"des":d=8;v=8;y=c["desCBC"];b=n.des.createEncryptionCipher;break;default:var E=new Error("Cannot encrypt private key. Unknown encryption algorithm.");E.algorithm=i.algorithm;throw E}var x="hmacWith"+i.prfAlgorithm.toUpperCase();var w=prfAlgorithmToMessageDigest(x);var T=n.pkcs5.pbkdf2(r,s,l,d,w);var _=n.random.getBytesSync(v);var C=b(T);C.start(_);C.update(a.toDer(e));C.finish();g=C.output.getBytes();var R=createPbkdf2Params(s,p,d,x);h=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.OID,false,a.oidToDer(c["pkcs5PBES2"]).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.OID,false,a.oidToDer(c["pkcs5PBKDF2"]).getBytes()),R]),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.OID,false,a.oidToDer(y).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,false,_)])])])}else if(i.algorithm==="3des"){d=24;var I=new n.util.ByteBuffer(s);var T=o.pbe.generatePkcs12Key(r,I,1,l,d);var _=o.pbe.generatePkcs12Key(r,I,2,l,d);var C=n.des.createEncryptionCipher(T);C.start(_);C.update(a.toDer(e));C.finish();g=C.output.getBytes();h=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.OID,false,a.oidToDer(c["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,false,s),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,false,p.getBytes())])])}else{var E=new Error("Cannot encrypt private key. Unknown encryption algorithm.");E.algorithm=i.algorithm;throw E}var O=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[h,a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,false,g)]);return O};o.decryptPrivateKeyInfo=function(e,r){var i=null;var s={};var c=[];if(!a.validate(e,l,s,c)){var p=new Error("Cannot read encrypted private key. "+"ASN.1 object is not a supported EncryptedPrivateKeyInfo.");p.errors=c;throw p}var d=a.derToOid(s.encryptionOid);var h=o.pbe.getCipher(d,s.encryptionParams,r);var g=n.util.createBuffer(s.encryptedData);h.update(g);if(h.finish()){i=a.fromDer(h.output)}return i};o.encryptedPrivateKeyToPem=function(e,r){var i={type:"ENCRYPTED PRIVATE KEY",body:a.toDer(e).getBytes()};return n.pem.encode(i,{maxline:r})};o.encryptedPrivateKeyFromPem=function(e){var r=n.pem.decode(e)[0];if(r.type!=="ENCRYPTED PRIVATE KEY"){var i=new Error("Could not convert encrypted private key from PEM; "+'PEM header type is "ENCRYPTED PRIVATE KEY".');i.headerType=r.type;throw i}if(r.procType&&r.procType.type==="ENCRYPTED"){throw new Error("Could not convert encrypted private key from PEM; "+"PEM is encrypted.")}return a.fromDer(r.body)};o.encryptRsaPrivateKey=function(e,r,i){i=i||{};if(!i.legacy){var s=o.wrapRsaPrivateKey(o.privateKeyToAsn1(e));s=o.encryptPrivateKeyInfo(s,r,i);return o.encryptedPrivateKeyToPem(s)}var c;var l;var p;var d;switch(i.algorithm){case"aes128":c="AES-128-CBC";p=16;l=n.random.getBytesSync(16);d=n.aes.createEncryptionCipher;break;case"aes192":c="AES-192-CBC";p=24;l=n.random.getBytesSync(16);d=n.aes.createEncryptionCipher;break;case"aes256":c="AES-256-CBC";p=32;l=n.random.getBytesSync(16);d=n.aes.createEncryptionCipher;break;case"3des":c="DES-EDE3-CBC";p=24;l=n.random.getBytesSync(8);d=n.des.createEncryptionCipher;break;case"des":c="DES-CBC";p=8;l=n.random.getBytesSync(8);d=n.des.createEncryptionCipher;break;default:var h=new Error("Could not encrypt RSA private key; unsupported "+'encryption algorithm "'+i.algorithm+'".');h.algorithm=i.algorithm;throw h}var g=n.pbe.opensslDeriveBytes(r,l.substr(0,8),p);var v=d(g);v.start(l);v.update(a.toDer(o.privateKeyToAsn1(e)));v.finish();var y={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:c,parameters:n.util.bytesToHex(l).toUpperCase()},body:v.output.getBytes()};return n.pem.encode(y)};o.decryptRsaPrivateKey=function(e,r){var i=null;var s=n.pem.decode(e)[0];if(s.type!=="ENCRYPTED PRIVATE KEY"&&s.type!=="PRIVATE KEY"&&s.type!=="RSA PRIVATE KEY"){var c=new Error("Could not convert private key from PEM; PEM header type "+'is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');c.headerType=c;throw c}if(s.procType&&s.procType.type==="ENCRYPTED"){var l;var p;switch(s.dekInfo.algorithm){case"DES-CBC":l=8;p=n.des.createDecryptionCipher;break;case"DES-EDE3-CBC":l=24;p=n.des.createDecryptionCipher;break;case"AES-128-CBC":l=16;p=n.aes.createDecryptionCipher;break;case"AES-192-CBC":l=24;p=n.aes.createDecryptionCipher;break;case"AES-256-CBC":l=32;p=n.aes.createDecryptionCipher;break;case"RC2-40-CBC":l=5;p=function(e){return n.rc2.createDecryptionCipher(e,40)};break;case"RC2-64-CBC":l=8;p=function(e){return n.rc2.createDecryptionCipher(e,64)};break;case"RC2-128-CBC":l=16;p=function(e){return n.rc2.createDecryptionCipher(e,128)};break;default:var c=new Error("Could not decrypt private key; unsupported "+'encryption algorithm "'+s.dekInfo.algorithm+'".');c.algorithm=s.dekInfo.algorithm;throw c}var d=n.util.hexToBytes(s.dekInfo.parameters);var h=n.pbe.opensslDeriveBytes(r,d.substr(0,8),l);var g=p(h);g.start(d);g.update(n.util.createBuffer(s.body));if(g.finish()){i=g.output.getBytes()}else{return i}}else{i=s.body}if(s.type==="ENCRYPTED PRIVATE KEY"){i=o.decryptPrivateKeyInfo(a.fromDer(i),r)}else{i=a.fromDer(i)}if(i!==null){i=o.privateKeyFromAsn1(i)}return i};o.pbe.generatePkcs12Key=function(e,r,i,s,a,o){var c,l;if(typeof o==="undefined"||o===null){if(!("sha1"in n.md)){throw new Error('"sha1" hash algorithm unavailable.')}o=n.md.sha1.create()}var p=o.digestLength;var d=o.blockLength;var h=new n.util.ByteBuffer;var g=new n.util.ByteBuffer;if(e!==null&&e!==undefined){for(l=0;l=0;l--){L=L>>8;L+=P.at(l)+j.at(l);j.setAt(l,L&255)}B.putBuffer(j)}_=B;h.putBuffer(I)}h.truncate(h.length()-a);return h};o.pbe.getCipher=function(e,r,i){switch(e){case o.oids["pkcs5PBES2"]:return o.pbe.getCipherForPBES2(e,r,i);case o.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case o.oids["pbewithSHAAnd40BitRC2-CBC"]:return o.pbe.getCipherForPKCS12PBE(e,r,i);default:var n=new Error("Cannot read encrypted PBE data block. Unsupported OID.");n.oid=e;n.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"];throw n}};o.pbe.getCipherForPBES2=function(e,r,i){var s={};var c=[];if(!a.validate(r,p,s,c)){var l=new Error("Cannot read password-based-encryption algorithm "+"parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");l.errors=c;throw l}e=a.derToOid(s.kdfOid);if(e!==o.oids["pkcs5PBKDF2"]){var l=new Error("Cannot read encrypted private key. "+"Unsupported key derivation function OID.");l.oid=e;l.supportedOids=["pkcs5PBKDF2"];throw l}e=a.derToOid(s.encOid);if(e!==o.oids["aes128-CBC"]&&e!==o.oids["aes192-CBC"]&&e!==o.oids["aes256-CBC"]&&e!==o.oids["des-EDE3-CBC"]&&e!==o.oids["desCBC"]){var l=new Error("Cannot read encrypted private key. "+"Unsupported encryption scheme OID.");l.oid=e;l.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"];throw l}var d=s.kdfSalt;var h=n.util.createBuffer(s.kdfIterationCount);h=h.getInt(h.length()<<3);var g;var v;switch(o.oids[e]){case"aes128-CBC":g=16;v=n.aes.createDecryptionCipher;break;case"aes192-CBC":g=24;v=n.aes.createDecryptionCipher;break;case"aes256-CBC":g=32;v=n.aes.createDecryptionCipher;break;case"des-EDE3-CBC":g=24;v=n.des.createDecryptionCipher;break;case"desCBC":g=8;v=n.des.createDecryptionCipher;break}var y=prfOidToMessageDigest(s.prfOid);var b=n.pkcs5.pbkdf2(i,d,h,g,y);var E=s.encIv;var x=v(b);x.start(E);return x};o.pbe.getCipherForPKCS12PBE=function(e,r,i){var s={};var c=[];if(!a.validate(r,d,s,c)){var l=new Error("Cannot read password-based-encryption algorithm "+"parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");l.errors=c;throw l}var p=n.util.createBuffer(s.salt);var h=n.util.createBuffer(s.iterations);h=h.getInt(h.length()<<3);var g,v,y;switch(e){case o.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:g=24;v=8;y=n.des.startDecrypting;break;case o.oids["pbewithSHAAnd40BitRC2-CBC"]:g=5;v=8;y=function(e,r){var i=n.rc2.createDecryptionCipher(e,40);i.start(r,null);return i};break;default:var l=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");l.oid=e;throw l}var b=prfOidToMessageDigest(s.prfOid);var E=o.pbe.generatePkcs12Key(i,p,1,h,g,b);b.start();var x=o.pbe.generatePkcs12Key(i,p,2,h,v,b);return y(E,x)};o.pbe.opensslDeriveBytes=function(e,r,i,s){if(typeof s==="undefined"||s===null){if(!("md5"in n.md)){throw new Error('"md5" hash algorithm unavailable.')}s=n.md.md5.create()}if(r===null){r=""}var a=[hash(s,e+r)];for(var o=16,c=1;o{var n=i(9177);i(5104);i(6231);i(8339);var s=n.pkcs5=n.pkcs5||{};var a;if(n.util.isNodejs&&!n.options.usePureJavaScript){a=i(6113)}e.exports=n.pbkdf2=s.pbkdf2=function(e,r,i,s,o,c){if(typeof o==="function"){c=o;o=null}if(n.util.isNodejs&&!n.options.usePureJavaScript&&a.pbkdf2&&(o===null||typeof o!=="object")&&(a.pbkdf2Sync.length>4||(!o||o==="sha1"))){if(typeof o!=="string"){o="sha1"}e=Buffer.from(e,"binary");r=Buffer.from(r,"binary");if(!c){if(a.pbkdf2Sync.length===4){return a.pbkdf2Sync(e,r,i,s).toString("binary")}return a.pbkdf2Sync(e,r,i,s,o).toString("binary")}if(a.pbkdf2Sync.length===4){return a.pbkdf2(e,r,i,s,(function(e,r){if(e){return c(e)}c(null,r.toString("binary"))}))}return a.pbkdf2(e,r,i,s,o,(function(e,r){if(e){return c(e)}c(null,r.toString("binary"))}))}if(typeof o==="undefined"||o===null){o="sha1"}if(typeof o==="string"){if(!(o in n.md.algorithms)){throw new Error("Unknown hash algorithm: "+o)}o=n.md[o].create()}var l=o.digestLength;if(s>4294967295*l){var p=new Error("Derived key is too long.");if(c){return c(p)}throw p}var d=Math.ceil(s/l);var h=s-(d-1)*l;var g=n.hmac.create();g.start(o,e);var v="";var y,b,E;if(!c){for(var x=1;x<=d;++x){g.start(null,null);g.update(r);g.update(n.util.int32ToBytes(x));y=E=g.digest().getBytes();for(var w=2;w<=i;++w){g.start(null,null);g.update(E);b=g.digest().getBytes();y=n.util.xorBytes(y,b,l);E=b}v+=xd){return c(null,v)}g.start(null,null);g.update(r);g.update(n.util.int32ToBytes(x));y=E=g.digest().getBytes();w=2;inner()}function inner(){if(w<=i){g.start(null,null);g.update(E);b=g.digest().getBytes();y=n.util.xorBytes(y,b,l);E=b;++w;return n.util.setImmediate(inner)}v+=x{var n=i(9177);i(8339);var s=e.exports=n.pem=n.pem||{};s.encode=function(e,r){r=r||{};var i="-----BEGIN "+e.type+"-----\r\n";var s;if(e.procType){s={name:"Proc-Type",values:[String(e.procType.version),e.procType.type]};i+=foldHeader(s)}if(e.contentDomain){s={name:"Content-Domain",values:[e.contentDomain]};i+=foldHeader(s)}if(e.dekInfo){s={name:"DEK-Info",values:[e.dekInfo.algorithm]};if(e.dekInfo.parameters){s.values.push(e.dekInfo.parameters)}i+=foldHeader(s)}if(e.headers){for(var a=0;a65&&a!==-1){var o=r[a];if(o===","){++a;r=r.substr(0,a)+"\r\n "+r.substr(a)}else{r=r.substr(0,a)+"\r\n"+o+r.substr(a+1)}s=n-a-1;a=-1;++n}else if(r[n]===" "||r[n]==="\t"||r[n]===","){a=n}}return r}function ltrim(e){return e.replace(/^\s+/,"")}},7014:(e,r,i)=>{var n=i(9177);i(8339);i(7821);i(279);var s=e.exports=n.pkcs1=n.pkcs1||{};s.encode_rsa_oaep=function(e,r,i){var s;var a;var o;var c;if(typeof i==="string"){s=i;a=arguments[3]||undefined;o=arguments[4]||undefined}else if(i){s=i.label||undefined;a=i.seed||undefined;o=i.md||undefined;if(i.mgf1&&i.mgf1.md){c=i.mgf1.md}}if(!o){o=n.md.sha1.create()}else{o.start()}if(!c){c=o}var l=Math.ceil(e.n.bitLength()/8);var p=l-2*o.digestLength-2;if(r.length>p){var d=new Error("RSAES-OAEP input message length is too long.");d.length=r.length;d.maxLength=p;throw d}if(!s){s=""}o.update(s,"raw");var h=o.digest();var g="";var v=p-r.length;for(var y=0;y>24&255,o>>16&255,o>>8&255,o&255);i.start();i.update(e+c);s+=i.digest().getBytes()}return s.substring(0,r)}},466:(e,r,i)=>{var n=i(9177);i(9549);i(5104);i(1925);i(266);i(1281);i(7821);i(3921);i(279);i(8339);i(8180);var s=n.asn1;var a=n.pki;var o=e.exports=n.pkcs12=n.pkcs12||{};var c={name:"ContentInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"ContentInfo.contentType",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"contentType"},{name:"ContentInfo.content",tagClass:s.Class.CONTEXT_SPECIFIC,constructed:true,captureAsn1:"content"}]};var l={name:"PFX",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"PFX.version",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,capture:"version"},c,{name:"PFX.macData",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,optional:true,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:s.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:s.Class.UNIVERSAL,type:s.Type.OCTETSTRING,constructed:false,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:s.Class.UNIVERSAL,type:s.Type.OCTETSTRING,constructed:false,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,optional:true,capture:"macIterations"}]}]};var p={name:"SafeBag",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"SafeBag.bagId",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:s.Class.CONTEXT_SPECIFIC,constructed:true,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:s.Class.UNIVERSAL,type:s.Type.SET,constructed:true,optional:true,capture:"bagAttributes"}]};var d={name:"Attribute",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"Attribute.attrId",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"oid"},{name:"Attribute.attrValues",tagClass:s.Class.UNIVERSAL,type:s.Type.SET,constructed:true,capture:"values"}]};var h={name:"CertBag",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"CertBag.certId",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"certId"},{name:"CertBag.certValue",tagClass:s.Class.CONTEXT_SPECIFIC,constructed:true,value:[{name:"CertBag.certValue[0]",tagClass:s.Class.UNIVERSAL,type:s.Class.OCTETSTRING,constructed:false,capture:"cert"}]}]};function _getBagsByAttribute(e,r,i,n){var s=[];for(var a=0;a=0){s.push(c)}}}return s}o.pkcs12FromAsn1=function(e,r,i){if(typeof r==="string"){i=r;r=true}else if(r===undefined){r=true}var c={};var p=[];if(!s.validate(e,l,c,p)){var d=new Error("Cannot read PKCS#12 PFX. "+"ASN.1 object is not an PKCS#12 PFX.");d.errors=d;throw d}var h={version:c.version.charCodeAt(0),safeContents:[],getBags:function(e){var r={};var i;if("localKeyId"in e){i=e.localKeyId}else if("localKeyIdHex"in e){i=n.util.hexToBytes(e.localKeyIdHex)}if(i===undefined&&!("friendlyName"in e)&&"bagType"in e){r[e.bagType]=_getBagsByAttribute(h.safeContents,null,null,e.bagType)}if(i!==undefined){r.localKeyId=_getBagsByAttribute(h.safeContents,"localKeyId",i,e.bagType)}if("friendlyName"in e){r.friendlyName=_getBagsByAttribute(h.safeContents,"friendlyName",e.friendlyName,e.bagType)}return r},getBagsByFriendlyName:function(e,r){return _getBagsByAttribute(h.safeContents,"friendlyName",e,r)},getBagsByLocalKeyId:function(e,r){return _getBagsByAttribute(h.safeContents,"localKeyId",e,r)}};if(c.version.charCodeAt(0)!==3){var d=new Error("PKCS#12 PFX of version other than 3 not supported.");d.version=c.version.charCodeAt(0);throw d}if(s.derToOid(c.contentType)!==a.oids.data){var d=new Error("Only PKCS#12 PFX in password integrity mode supported.");d.oid=s.derToOid(c.contentType);throw d}var g=c.content.value[0];if(g.tagClass!==s.Class.UNIVERSAL||g.type!==s.Type.OCTETSTRING){throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.")}g=_decodePkcs7Data(g);if(c.mac){var v=null;var y=0;var b=s.derToOid(c.macAlgorithm);switch(b){case a.oids.sha1:v=n.md.sha1.create();y=20;break;case a.oids.sha256:v=n.md.sha256.create();y=32;break;case a.oids.sha384:v=n.md.sha384.create();y=48;break;case a.oids.sha512:v=n.md.sha512.create();y=64;break;case a.oids.md5:v=n.md.md5.create();y=16;break}if(v===null){throw new Error("PKCS#12 uses unsupported MAC algorithm: "+b)}var E=new n.util.ByteBuffer(c.macSalt);var x="macIterations"in c?parseInt(n.util.bytesToHex(c.macIterations),16):1;var w=o.generateKey(i,E,3,x,y,v);var T=n.hmac.create();T.start(v,w);T.update(g.value);var _=T.getMac();if(_.getBytes()!==c.macDigest){throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}}_decodeAuthenticatedSafe(h,g.value,r,i);return h};function _decodePkcs7Data(e){if(e.composed||e.constructed){var r=n.util.createBuffer();for(var i=0;i0){p=s.create(s.Class.UNIVERSAL,s.Type.SET,true,g)}var v=[];var y=[];if(r!==null){if(n.util.isArray(r)){y=r}else{y=[r]}}var b=[];for(var E=0;E0){var _=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,b);var C=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.OID,false,s.oidToDer(a.oids.data).getBytes()),s.create(s.Class.CONTEXT_SPECIFIC,0,true,[s.create(s.Class.UNIVERSAL,s.Type.OCTETSTRING,false,s.toDer(_).getBytes())])]);v.push(C)}var R=null;if(e!==null){var I=a.wrapRsaPrivateKey(a.privateKeyToAsn1(e));if(i===null){R=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.OID,false,s.oidToDer(a.oids.keyBag).getBytes()),s.create(s.Class.CONTEXT_SPECIFIC,0,true,[I]),p])}else{R=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.OID,false,s.oidToDer(a.oids.pkcs8ShroudedKeyBag).getBytes()),s.create(s.Class.CONTEXT_SPECIFIC,0,true,[a.encryptPrivateKeyInfo(I,i,c)]),p])}var O=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[R]);var P=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.OID,false,s.oidToDer(a.oids.data).getBytes()),s.create(s.Class.CONTEXT_SPECIFIC,0,true,[s.create(s.Class.UNIVERSAL,s.Type.OCTETSTRING,false,s.toDer(O).getBytes())])]);v.push(P)}var N=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,v);var B;if(c.useMac){var h=n.md.sha1.create();var j=new n.util.ByteBuffer(n.random.getBytes(c.saltSize));var L=c.count;var e=o.generateKey(i,j,3,L,20);var D=n.hmac.create();D.start(h,e);D.update(s.toDer(N).getBytes());var U=D.getMac();B=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.OID,false,s.oidToDer(a.oids.sha1).getBytes()),s.create(s.Class.UNIVERSAL,s.Type.NULL,false,"")]),s.create(s.Class.UNIVERSAL,s.Type.OCTETSTRING,false,U.getBytes())]),s.create(s.Class.UNIVERSAL,s.Type.OCTETSTRING,false,j.getBytes()),s.create(s.Class.UNIVERSAL,s.Type.INTEGER,false,s.integerToDer(L).getBytes())])}return s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.INTEGER,false,s.integerToDer(3).getBytes()),s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.OID,false,s.oidToDer(a.oids.data).getBytes()),s.create(s.Class.CONTEXT_SPECIFIC,0,true,[s.create(s.Class.UNIVERSAL,s.Type.OCTETSTRING,false,s.toDer(N).getBytes())])]),B])};o.generateKey=n.pbe.generatePkcs12Key},4829:(e,r,i)=>{var n=i(9177);i(7994);i(9549);i(7157);i(1925);i(154);i(266);i(7821);i(8339);i(8180);var s=n.asn1;var a=e.exports=n.pkcs7=n.pkcs7||{};a.messageFromPem=function(e){var r=n.pem.decode(e)[0];if(r.type!=="PKCS7"){var i=new Error("Could not convert PKCS#7 message from PEM; PEM "+'header type is not "PKCS#7".');i.headerType=r.type;throw i}if(r.procType&&r.procType.type==="ENCRYPTED"){throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.")}var o=s.fromDer(r.body);return a.messageFromAsn1(o)};a.messageToPem=function(e,r){var i={type:"PKCS7",body:s.toDer(e.toAsn1()).getBytes()};return n.pem.encode(i,{maxline:r})};a.messageFromAsn1=function(e){var r={};var i=[];if(!s.validate(e,a.asn1.contentInfoValidator,r,i)){var o=new Error("Cannot read PKCS#7 message. "+"ASN.1 object is not an PKCS#7 ContentInfo.");o.errors=i;throw o}var c=s.derToOid(r.contentType);var l;switch(c){case n.pki.oids.envelopedData:l=a.createEnvelopedData();break;case n.pki.oids.encryptedData:l=a.createEncryptedData();break;case n.pki.oids.signedData:l=a.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+c+" is not (yet) supported.")}l.fromAsn1(r.content.value[0]);return l};a.createSignedData=function(){var e=null;e={type:n.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(r){_fromAsn1(e,r,a.asn1.signedDataValidator);e.certificates=[];e.crls=[];e.digestAlgorithmIdentifiers=[];e.contentInfo=null;e.signerInfos=[];if(e.rawCapture.certificates){var i=e.rawCapture.certificates.value;for(var s=0;s0){o.value[0].value.push(s.create(s.Class.CONTEXT_SPECIFIC,0,true,r))}if(a.length>0){o.value[0].value.push(s.create(s.Class.CONTEXT_SPECIFIC,1,true,a))}o.value[0].value.push(s.create(s.Class.UNIVERSAL,s.Type.SET,true,e.signerInfos));return s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.OID,false,s.oidToDer(e.type).getBytes()),o])},addSigner:function(r){var i=r.issuer;var s=r.serialNumber;if(r.certificate){var a=r.certificate;if(typeof a==="string"){a=n.pki.certificateFromPem(a)}i=a.issuer.attributes;s=a.serialNumber}var o=r.key;if(!o){throw new Error("Could not add PKCS#7 signer; no private key specified.")}if(typeof o==="string"){o=n.pki.privateKeyFromPem(o)}var c=r.digestAlgorithm||n.pki.oids.sha1;switch(c){case n.pki.oids.sha1:case n.pki.oids.sha256:case n.pki.oids.sha384:case n.pki.oids.sha512:case n.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+c)}var l=r.authenticatedAttributes||[];if(l.length>0){var p=false;var d=false;for(var h=0;h0){var i=s.create(s.Class.CONTEXT_SPECIFIC,1,true,[]);for(var a=0;a=i&&o{var n=i(9177);i(9549);i(8339);var s=n.asn1;var a=e.exports=n.pkcs7asn1=n.pkcs7asn1||{};n.pkcs7=n.pkcs7||{};n.pkcs7.asn1=a;var o={name:"ContentInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"ContentInfo.ContentType",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"contentType"},{name:"ContentInfo.content",tagClass:s.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,captureAsn1:"content"}]};a.contentInfoValidator=o;var c={name:"EncryptedContentInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"EncryptedContentInfo.contentType",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:s.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:s.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};a.envelopedDataValidator={name:"EnvelopedData",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"EnvelopedData.Version",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:s.Class.UNIVERSAL,type:s.Type.SET,constructed:true,captureAsn1:"recipientInfos"}].concat(c)};a.encryptedDataValidator={name:"EncryptedData",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"EncryptedData.Version",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,capture:"version"}].concat(c)};var l={name:"SignerInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"SignerInfo.version",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false},{name:"SignerInfo.issuerAndSerialNumber",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:s.Class.UNIVERSAL,constructed:false,captureAsn1:"digestParameter",optional:true}]},{name:"SignerInfo.authenticatedAttributes",tagClass:s.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:s.Class.UNIVERSAL,type:s.Type.OCTETSTRING,constructed:false,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:s.Class.CONTEXT_SPECIFIC,type:1,constructed:true,optional:true,capture:"unauthenticatedAttributes"}]};a.signedDataValidator={name:"SignedData",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"SignedData.Version",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:s.Class.UNIVERSAL,type:s.Type.SET,constructed:true,captureAsn1:"digestAlgorithms"},o,{name:"SignedData.Certificates",tagClass:s.Class.CONTEXT_SPECIFIC,type:0,optional:true,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:s.Class.CONTEXT_SPECIFIC,type:1,optional:true,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:s.Class.UNIVERSAL,type:s.Type.SET,capture:"signerInfos",optional:true,value:[l]}]};a.recipientInfoValidator={name:"RecipientInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"RecipientInfo.version",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:s.Class.UNIVERSAL,constructed:false,captureAsn1:"encParameter",optional:true}]},{name:"RecipientInfo.encryptedKey",tagClass:s.Class.UNIVERSAL,type:s.Type.OCTETSTRING,constructed:false,capture:"encKey"}]}},6924:(e,r,i)=>{var n=i(9177);i(9549);i(1925);i(1281);i(154);i(1611);i(466);i(4376);i(3921);i(8339);i(8180);var s=n.asn1;var a=e.exports=n.pki=n.pki||{};a.pemToDer=function(e){var r=n.pem.decode(e)[0];if(r.procType&&r.procType.type==="ENCRYPTED"){throw new Error("Could not convert PEM to DER; PEM is encrypted.")}return n.util.createBuffer(r.body)};a.privateKeyFromPem=function(e){var r=n.pem.decode(e)[0];if(r.type!=="PRIVATE KEY"&&r.type!=="RSA PRIVATE KEY"){var i=new Error("Could not convert private key from PEM; PEM "+'header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');i.headerType=r.type;throw i}if(r.procType&&r.procType.type==="ENCRYPTED"){throw new Error("Could not convert private key from PEM; PEM is encrypted.")}var o=s.fromDer(r.body);return a.privateKeyFromAsn1(o)};a.privateKeyToPem=function(e,r){var i={type:"RSA PRIVATE KEY",body:s.toDer(a.privateKeyToAsn1(e)).getBytes()};return n.pem.encode(i,{maxline:r})};a.privateKeyInfoToPem=function(e,r){var i={type:"PRIVATE KEY",body:s.toDer(e).getBytes()};return n.pem.encode(i,{maxline:r})}},6861:(e,r,i)=>{var n=i(9177);i(8339);i(7052);i(7821);(function(){if(n.prime){e.exports=n.prime;return}var r=e.exports=n.prime=n.prime||{};var i=n.jsbn.BigInteger;var s=[6,4,2,4,2,4,6,2];var a=new i(null);a.fromInt(30);var op_or=function(e,r){return e|r};r.generateProbablePrime=function(e,r,i){if(typeof r==="function"){i=r;r={}}r=r||{};var s=r.algorithm||"PRIMEINC";if(typeof s==="string"){s={name:s}}s.options=s.options||{};var a=r.prng||n.random;var o={nextBytes:function(e){var r=a.getBytesSync(e.length);for(var i=0;ir){e=generateRandom(r,i)}if(e.isProbablePrime(o)){return l(null,e)}e.dAddOffset(s[a++%8],0)}while(c<0||+new Date-pe){o=generateRandom(e,r)}var v=o.toString(16);s.target.postMessage({hex:v,workLoad:l});o.dAddOffset(p,0)}}}function generateRandom(e,r){var n=new i(e,r);var s=e-1;if(!n.testBit(s)){n.bitwiseTo(i.ONE.shiftLeft(s),op_or,n)}n.dAddOffset(31-n.mod(a).byteValue(),0);return n}function getMillerRabinTests(e){if(e<=100)return 27;if(e<=150)return 18;if(e<=200)return 15;if(e<=250)return 12;if(e<=300)return 9;if(e<=350)return 8;if(e<=400)return 7;if(e<=500)return 6;if(e<=600)return 5;if(e<=800)return 4;if(e<=1250)return 3;return 2}})()},4467:(e,r,i)=>{var n=i(9177);i(8339);var s=null;if(n.util.isNodejs&&!n.options.usePureJavaScript&&!process.versions["node-webkit"]){s=i(6113)}var a=e.exports=n.prng=n.prng||{};a.create=function(e){var r={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""};var i=e.md;var a=new Array(32);for(var o=0;o<32;++o){a[o]=i.create()}r.pools=a;r.pool=0;r.generate=function(e,i){if(!i){return r.generateSync(e)}var s=r.plugin.cipher;var a=r.plugin.increment;var o=r.plugin.formatKey;var c=r.plugin.formatSeed;var l=n.util.createBuffer();r.key=null;generate();function generate(p){if(p){return i(p)}if(l.length()>=e){return i(null,l.getBytes(e))}if(r.generated>1048575){r.key=null}if(r.key===null){return n.util.nextTick((function(){_reseed(generate)}))}var d=s(r.key,r.seed);r.generated+=d.length;l.putBytes(d);r.key=o(s(r.key,a(r.seed)));r.seed=c(s(r.key,r.seed));n.util.setImmediate(generate)}};r.generateSync=function(e){var i=r.plugin.cipher;var s=r.plugin.increment;var a=r.plugin.formatKey;var o=r.plugin.formatSeed;r.key=null;var c=n.util.createBuffer();while(c.length()1048575){r.key=null}if(r.key===null){_reseedSync()}var l=i(r.key,r.seed);r.generated+=l.length;c.putBytes(l);r.key=a(i(r.key,s(r.seed)));r.seed=o(i(r.key,r.seed))}return c.getBytes(e)};function _reseed(e){if(r.pools[0].messageLength>=32){_seed();return e()}var i=32-r.pools[0].messageLength<<5;r.seedFile(i,(function(i,n){if(i){return e(i)}r.collect(n);_seed();e()}))}function _reseedSync(){if(r.pools[0].messageLength>=32){return _seed()}var e=32-r.pools[0].messageLength<<5;r.collect(r.seedFileSync(e));_seed()}function _seed(){r.reseeds=r.reseeds===4294967295?0:r.reseeds+1;var e=r.plugin.md.create();e.update(r.keyBytes);var i=1;for(var n=0;n<32;++n){if(r.reseeds%i===0){e.update(r.pools[n].digest().getBytes());r.pools[n].start()}i=i<<1}r.keyBytes=e.digest().getBytes();e.start();e.update(r.keyBytes);var s=e.digest().getBytes();r.key=r.plugin.formatKey(r.keyBytes);r.seed=r.plugin.formatSeed(s);r.generated=0}function defaultSeedFile(e){var r=null;var i=n.util.globalScope;var s=i.crypto||i.msCrypto;if(s&&s.getRandomValues){r=function(e){return s.getRandomValues(e)}}var a=n.util.createBuffer();if(r){while(a.length()>16);d+=(p&32767)<<16;d+=p>>15;d=(d&2147483647)+(d>>31);g=d&4294967295;for(var l=0;l<3;++l){h=g>>>(l<<3);h^=Math.floor(Math.random()*256);a.putByte(h&255)}}}return a.getBytes(e)}if(s){r.seedFile=function(e,r){s.randomBytes(e,(function(e,i){if(e){return r(e)}r(null,i.toString())}))};r.seedFileSync=function(e){return s.randomBytes(e).toString()}}else{r.seedFile=function(e,r){try{r(null,defaultSeedFile(e))}catch(e){r(e)}};r.seedFileSync=defaultSeedFile}r.collect=function(e){var i=e.length;for(var n=0;n>s&255)}r.collect(n)};r.registerWorker=function(e){if(e===self){r.seedFile=function(e,r){function listener(e){var i=e.data;if(i.forge&&i.forge.prng){self.removeEventListener("message",listener);r(i.forge.prng.err,i.forge.prng.bytes)}}self.addEventListener("message",listener);self.postMessage({forge:{prng:{needed:e}}})}}else{var listener=function(i){var n=i.data;if(n.forge&&n.forge.prng){r.seedFile(n.forge.prng.needed,(function(r,i){e.postMessage({forge:{prng:{err:r,bytes:i}}})}))}};e.addEventListener("message",listener)}};return r}},4376:(e,r,i)=>{var n=i(9177);i(7821);i(8339);var s=e.exports=n.pss=n.pss||{};s.create=function(e){if(arguments.length===3){e={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]}}var r=e.md;var i=e.mgf;var s=r.digestLength;var a=e.salt||null;if(typeof a==="string"){a=n.util.createBuffer(a)}var o;if("saltLength"in e){o=e.saltLength}else if(a!==null){o=a.length()}else{throw new Error("Salt length not specified or specific salt not given.")}if(a!==null&&a.length()!==o){throw new Error("Given salt length does not match length of given salt.")}var c=e.prng||n.random;var l={};l.encode=function(e,l){var p;var d=l-1;var h=Math.ceil(d/8);var g=e.digest().getBytes();if(h>8*h-d&255;_=String.fromCharCode(_.charCodeAt(0)&~C)+_.substr(1);return _+b+String.fromCharCode(188)};l.verify=function(e,a,c){var l;var p=c-1;var d=Math.ceil(p/8);a=a.substr(-d);if(d>8*d-p&255;if((g.charCodeAt(0)&y)!==0){throw new Error("Bits beyond keysize not zero as expected.")}var b=i.generate(v,h);var E="";for(l=0;l{var n=i(9177);i(7994);i(4086);i(4467);i(8339);(function(){if(n.random&&n.random.getBytes){e.exports=n.random;return}(function(r){var i={};var s=new Array(4);var a=n.util.createBuffer();i.formatKey=function(e){var r=n.util.createBuffer(e);e=new Array(4);e[0]=r.getInt32();e[1]=r.getInt32();e[2]=r.getInt32();e[3]=r.getInt32();return n.aes._expandKey(e,false)};i.formatSeed=function(e){var r=n.util.createBuffer(e);e=new Array(4);e[0]=r.getInt32();e[1]=r.getInt32();e[2]=r.getInt32();e[3]=r.getInt32();return e};i.cipher=function(e,r){n.aes._updateBlock(e,r,s,false);a.putInt32(s[0]);a.putInt32(s[1]);a.putInt32(s[2]);a.putInt32(s[3]);return a.getBytes()};i.increment=function(e){++e[3];return e};i.md=n.md.sha256;function spawnPrng(){var e=n.prng.create(i);e.getBytes=function(r,i){return e.generate(r,i)};e.getBytesSync=function(r){return e.generate(r)};return e}var o=spawnPrng();var c=null;var l=n.util.globalScope;var p=l.crypto||l.msCrypto;if(p&&p.getRandomValues){c=function(e){return p.getRandomValues(e)}}if(n.options.usePureJavaScript||!n.util.isNodejs&&!c){if(typeof window==="undefined"||window.document===undefined){}o.collectInt(+new Date,32);if(typeof navigator!=="undefined"){var d="";for(var h in navigator){try{if(typeof navigator[h]=="string"){d+=navigator[h]}}catch(e){}}o.collect(d);d=null}if(r){r().mousemove((function(e){o.collectInt(e.clientX,16);o.collectInt(e.clientY,16)}));r().keypress((function(e){o.collectInt(e.charCode,8)}))}}if(!n.random){n.random=o}else{for(var h in o){n.random[h]=o[h]}}n.random.createInstance=spawnPrng;e.exports=n.random})(typeof jQuery!=="undefined"?jQuery:null)})()},9965:(e,r,i)=>{var n=i(9177);i(8339);var s=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173];var a=[1,2,3,5];var rol=function(e,r){return e<>16-r};var ror=function(e,r){return(e&65535)>>r|e<<16-r&65535};e.exports=n.rc2=n.rc2||{};n.rc2.expandKey=function(e,r){if(typeof e==="string"){e=n.util.createBuffer(e)}r=r||128;var i=e;var a=e.length();var o=r;var c=Math.ceil(o/8);var l=255>>(o&7);var p;for(p=a;p<128;p++){i.putByte(s[i.at(p-1)+i.at(p-a)&255])}i.setAt(128-c,s[i.at(128-c)&l]);for(p=127-c;p>=0;p--){i.setAt(p,s[i.at(p+1)^i.at(p+c)])}return i};var createCipher=function(e,r,i){var s=false,o=null,c=null,l=null;var p,d;var h,g,v=[];e=n.rc2.expandKey(e,r);for(h=0;h<64;h++){v.push(e.getInt16Le())}if(i){p=function(e){for(h=0;h<4;h++){e[h]+=v[g]+(e[(h+3)%4]&e[(h+2)%4])+(~e[(h+3)%4]&e[(h+1)%4]);e[h]=rol(e[h],a[h]);g++}};d=function(e){for(h=0;h<4;h++){e[h]+=v[e[(h+3)%4]&63]}}}else{p=function(e){for(h=3;h>=0;h--){e[h]=ror(e[h],a[h]);e[h]-=v[g]+(e[(h+3)%4]&e[(h+2)%4])+(~e[(h+3)%4]&e[(h+1)%4]);g--}};d=function(e){for(h=3;h>=0;h--){e[h]-=v[e[(h+3)%4]&63]}}}var runPlan=function(e){var r=[];for(h=0;h<4;h++){var n=o.getInt16Le();if(l!==null){if(i){n^=l.getInt16Le()}else{l.putInt16Le(n)}}r.push(n&65535)}g=i?0:63;for(var s=0;s=8){runPlan([[5,p],[1,d],[6,p],[1,d],[5,p]])}},finish:function(e){var r=true;if(i){if(e){r=e(8,o,!i)}else{var n=o.length()===8?8:8-o.length();o.fillWithByte(n,n)}}if(r){s=true;y.update()}if(!i){r=o.length()===0;if(r){if(e){r=e(8,c,!i)}else{var a=c.length();var l=c.at(a-1);if(l>a){r=false}else{c.truncate(l)}}}}return r}};return y};n.rc2.startEncrypting=function(e,r,i){var s=n.rc2.createEncryptionCipher(e,128);s.start(r,i);return s};n.rc2.createEncryptionCipher=function(e,r){return createCipher(e,r,true)};n.rc2.startDecrypting=function(e,r,i){var s=n.rc2.createDecryptionCipher(e,128);s.start(r,i);return s};n.rc2.createDecryptionCipher=function(e,r){return createCipher(e,r,false)}},3921:(e,r,i)=>{var n=i(9177);i(9549);i(7052);i(1925);i(7014);i(6861);i(7821);i(8339);if(typeof s==="undefined"){var s=n.jsbn.BigInteger}var a=n.util.isNodejs?i(6113):null;var o=n.asn1;var c=n.util;n.pki=n.pki||{};e.exports=n.pki.rsa=n.rsa=n.rsa||{};var l=n.pki;var p=[6,4,2,4,2,4,6,2];var d={name:"PrivateKeyInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"PrivateKeyInfo.version",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.OCTETSTRING,constructed:false,capture:"privateKey"}]};var h={name:"RSAPrivateKey",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"RSAPrivateKey.version",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyCoefficient"}]};var g={name:"RSAPublicKey",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"RSAPublicKey.modulus",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"publicKeyExponent"}]};var v=n.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:o.Class.UNIVERSAL,type:o.Type.BITSTRING,constructed:false,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,optional:true,captureAsn1:"rsaPublicKey"}]}]};var emsaPkcs1v15encode=function(e){var r;if(e.algorithm in l.oids){r=l.oids[e.algorithm]}else{var i=new Error("Unknown message digest algorithm.");i.algorithm=e.algorithm;throw i}var n=o.oidToDer(r).getBytes();var s=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[]);var a=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[]);a.value.push(o.create(o.Class.UNIVERSAL,o.Type.OID,false,n));a.value.push(o.create(o.Class.UNIVERSAL,o.Type.NULL,false,""));var c=o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,false,e.digest().getBytes());s.value.push(a);s.value.push(c);return o.toDer(s).getBytes()};var _modPow=function(e,r,i){if(i){return e.modPow(r.e,r.n)}if(!r.p||!r.q){return e.modPow(r.d,r.n)}if(!r.dP){r.dP=r.d.mod(r.p.subtract(s.ONE))}if(!r.dQ){r.dQ=r.d.mod(r.q.subtract(s.ONE))}if(!r.qInv){r.qInv=r.q.modInverse(r.p)}var a;do{a=new s(n.util.bytesToHex(n.random.getBytes(r.n.bitLength()/8)),16)}while(a.compareTo(r.n)>=0||!a.gcd(r.n).equals(s.ONE));e=e.multiply(a.modPow(r.e,r.n)).mod(r.n);var o=e.mod(r.p).modPow(r.dP,r.p);var c=e.mod(r.q).modPow(r.dQ,r.q);while(o.compareTo(c)<0){o=o.add(r.p)}var l=o.subtract(c).multiply(r.qInv).mod(r.p).multiply(r.q).add(c);l=l.multiply(a.modInverse(r.n)).mod(r.n);return l};l.rsa.encrypt=function(e,r,i){var a=i;var o;var c=Math.ceil(r.n.bitLength()/8);if(i!==false&&i!==true){a=i===2;o=_encodePkcs1_v1_5(e,r,i)}else{o=n.util.createBuffer();o.putBytes(e)}var l=new s(o.toHex(),16);var p=_modPow(l,r,a);var d=p.toString(16);var h=n.util.createBuffer();var g=c-Math.ceil(d.length/2);while(g>0){h.putByte(0);--g}h.putBytes(n.util.hexToBytes(d));return h.getBytes()};l.rsa.decrypt=function(e,r,i,a){var o=Math.ceil(r.n.bitLength()/8);if(e.length!==o){var c=new Error("Encrypted message length is invalid.");c.length=e.length;c.expected=o;throw c}var l=new s(n.util.createBuffer(e).toHex(),16);if(l.compareTo(r.n)>=0){throw new Error("Encrypted message is invalid.")}var p=_modPow(l,r,i);var d=p.toString(16);var h=n.util.createBuffer();var g=o-Math.ceil(d.length/2);while(g>0){h.putByte(0);--g}h.putBytes(n.util.hexToBytes(d));if(a!==false){return _decodePkcs1_v1_5(h.getBytes(),r,i)}return h.getBytes()};l.rsa.createKeyPairGenerationState=function(e,r,i){if(typeof e==="string"){e=parseInt(e,10)}e=e||2048;i=i||{};var a=i.prng||n.random;var o={nextBytes:function(e){var r=a.getBytesSync(e.length);for(var i=0;i>1,pBits:e-(e>>1),pqState:0,num:null,keys:null};l.e.fromInt(l.eInt)}else{throw new Error("Invalid key generation algorithm: "+c)}return l};l.rsa.stepKeyPairGenerationState=function(e,r){if(!("algorithm"in e)){e.algorithm="PRIMEINC"}var i=new s(null);i.fromInt(30);var n=0;var op_or=function(e,r){return e|r};var a=+new Date;var o;var c=0;while(e.keys===null&&(r<=0||cd){e.pqState=0}else if(e.num.isProbablePrime(_getMillerRabinTests(e.num.bitLength()))){++e.pqState}else{e.num.dAddOffset(p[n++%8],0)}}else if(e.pqState===2){e.pqState=e.num.subtract(s.ONE).gcd(e.e).compareTo(s.ONE)===0?3:0}else if(e.pqState===3){e.pqState=0;if(e.p===null){e.p=e.num}else{e.q=e.num}if(e.p!==null&&e.q!==null){++e.state}e.num=null}}else if(e.state===1){if(e.p.compareTo(e.q)<0){e.num=e.p;e.p=e.q;e.q=e.num}++e.state}else if(e.state===2){e.p1=e.p.subtract(s.ONE);e.q1=e.q.subtract(s.ONE);e.phi=e.p1.multiply(e.q1);++e.state}else if(e.state===3){if(e.phi.gcd(e.e).compareTo(s.ONE)===0){++e.state}else{e.p=null;e.q=null;e.state=0}}else if(e.state===4){e.n=e.p.multiply(e.q);if(e.n.bitLength()===e.bits){++e.state}else{e.q=null;e.state=0}}else if(e.state===5){var g=e.e.modInverse(e.phi);e.keys={privateKey:l.rsa.setPrivateKey(e.n,e.e,g,e.p,e.q,g.mod(e.p1),g.mod(e.q1),e.q.modInverse(e.p)),publicKey:l.rsa.setPublicKey(e.n,e.e)}}o=+new Date;c+=o-a;a=o}return e.keys!==null};l.rsa.generateKeyPair=function(e,r,i,s){if(arguments.length===1){if(typeof e==="object"){i=e;e=undefined}else if(typeof e==="function"){s=e;e=undefined}}else if(arguments.length===2){if(typeof e==="number"){if(typeof r==="function"){s=r;r=undefined}else if(typeof r!=="number"){i=r;r=undefined}}else{i=e;s=r;e=undefined;r=undefined}}else if(arguments.length===3){if(typeof r==="number"){if(typeof i==="function"){s=i;i=undefined}}else{s=i;i=r;r=undefined}}i=i||{};if(e===undefined){e=i.bits||2048}if(r===undefined){r=i.e||65537}if(!n.options.usePureJavaScript&&!i.prng&&e>=256&&e<=16384&&(r===65537||r===3)){if(s){if(_detectNodeCrypto("generateKeyPair")){return a.generateKeyPair("rsa",{modulusLength:e,publicExponent:r,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},(function(e,r,i){if(e){return s(e)}s(null,{privateKey:l.privateKeyFromPem(i),publicKey:l.publicKeyFromPem(r)})}))}if(_detectSubtleCrypto("generateKey")&&_detectSubtleCrypto("exportKey")){return c.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:_intToUint8Array(r),hash:{name:"SHA-256"}},true,["sign","verify"]).then((function(e){return c.globalScope.crypto.subtle.exportKey("pkcs8",e.privateKey)})).then(undefined,(function(e){s(e)})).then((function(e){if(e){var r=l.privateKeyFromAsn1(o.fromDer(n.util.createBuffer(e)));s(null,{privateKey:r,publicKey:l.setRsaPublicKey(r.n,r.e)})}}))}if(_detectSubtleMsCrypto("generateKey")&&_detectSubtleMsCrypto("exportKey")){var p=c.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:_intToUint8Array(r),hash:{name:"SHA-256"}},true,["sign","verify"]);p.oncomplete=function(e){var r=e.target.result;var i=c.globalScope.msCrypto.subtle.exportKey("pkcs8",r.privateKey);i.oncomplete=function(e){var r=e.target.result;var i=l.privateKeyFromAsn1(o.fromDer(n.util.createBuffer(r)));s(null,{privateKey:i,publicKey:l.setRsaPublicKey(i.n,i.e)})};i.onerror=function(e){s(e)}};p.onerror=function(e){s(e)};return}}else{if(_detectNodeCrypto("generateKeyPairSync")){var d=a.generateKeyPairSync("rsa",{modulusLength:e,publicExponent:r,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:l.privateKeyFromPem(d.privateKey),publicKey:l.publicKeyFromPem(d.publicKey)}}}}var h=l.rsa.createKeyPairGenerationState(e,r,i);if(!s){l.rsa.stepKeyPairGenerationState(h,0);return h.keys}_generateKeyPair(h,i,s)};l.setRsaPublicKey=l.rsa.setPublicKey=function(e,r){var i={n:e,e:r};i.encrypt=function(e,r,s){if(typeof r==="string"){r=r.toUpperCase()}else if(r===undefined){r="RSAES-PKCS1-V1_5"}if(r==="RSAES-PKCS1-V1_5"){r={encode:function(e,r,i){return _encodePkcs1_v1_5(e,r,2).getBytes()}}}else if(r==="RSA-OAEP"||r==="RSAES-OAEP"){r={encode:function(e,r){return n.pkcs1.encode_rsa_oaep(r,e,s)}}}else if(["RAW","NONE","NULL",null].indexOf(r)!==-1){r={encode:function(e){return e}}}else if(typeof r==="string"){throw new Error('Unsupported encryption scheme: "'+r+'".')}var a=r.encode(e,i,true);return l.rsa.encrypt(a,i,true)};i.verify=function(e,r,n){if(typeof n==="string"){n=n.toUpperCase()}else if(n===undefined){n="RSASSA-PKCS1-V1_5"}if(n==="RSASSA-PKCS1-V1_5"){n={verify:function(e,r){r=_decodePkcs1_v1_5(r,i,true);var n=o.fromDer(r);return e===n.value[1].value}}}else if(n==="NONE"||n==="NULL"||n===null){n={verify:function(e,r){r=_decodePkcs1_v1_5(r,i,true);return e===r}}}var s=l.rsa.decrypt(r,i,true,false);return n.verify(e,s,i.n.bitLength())};return i};l.setRsaPrivateKey=l.rsa.setPrivateKey=function(e,r,i,s,a,o,c,p){var d={n:e,e:r,d:i,p:s,q:a,dP:o,dQ:c,qInv:p};d.decrypt=function(e,r,i){if(typeof r==="string"){r=r.toUpperCase()}else if(r===undefined){r="RSAES-PKCS1-V1_5"}var s=l.rsa.decrypt(e,d,false,false);if(r==="RSAES-PKCS1-V1_5"){r={decode:_decodePkcs1_v1_5}}else if(r==="RSA-OAEP"||r==="RSAES-OAEP"){r={decode:function(e,r){return n.pkcs1.decode_rsa_oaep(r,e,i)}}}else if(["RAW","NONE","NULL",null].indexOf(r)!==-1){r={decode:function(e){return e}}}else{throw new Error('Unsupported encryption scheme: "'+r+'".')}return r.decode(s,d,false)};d.sign=function(e,r){var i=false;if(typeof r==="string"){r=r.toUpperCase()}if(r===undefined||r==="RSASSA-PKCS1-V1_5"){r={encode:emsaPkcs1v15encode};i=1}else if(r==="NONE"||r==="NULL"||r===null){r={encode:function(){return e}};i=1}var n=r.encode(e,d.n.bitLength());return l.rsa.encrypt(n,d,i)};return d};l.wrapRsaPrivateKey=function(e){return o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,o.integerToDer(0).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.OID,false,o.oidToDer(l.oids.rsaEncryption).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.NULL,false,"")]),o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,false,o.toDer(e).getBytes())])};l.privateKeyFromAsn1=function(e){var r={};var i=[];if(o.validate(e,d,r,i)){e=o.fromDer(n.util.createBuffer(r.privateKey))}r={};i=[];if(!o.validate(e,h,r,i)){var a=new Error("Cannot read private key. "+"ASN.1 object does not contain an RSAPrivateKey.");a.errors=i;throw a}var c,p,g,v,y,b,E,x;c=n.util.createBuffer(r.privateKeyModulus).toHex();p=n.util.createBuffer(r.privateKeyPublicExponent).toHex();g=n.util.createBuffer(r.privateKeyPrivateExponent).toHex();v=n.util.createBuffer(r.privateKeyPrime1).toHex();y=n.util.createBuffer(r.privateKeyPrime2).toHex();b=n.util.createBuffer(r.privateKeyExponent1).toHex();E=n.util.createBuffer(r.privateKeyExponent2).toHex();x=n.util.createBuffer(r.privateKeyCoefficient).toHex();return l.setRsaPrivateKey(new s(c,16),new s(p,16),new s(g,16),new s(v,16),new s(y,16),new s(b,16),new s(E,16),new s(x,16))};l.privateKeyToAsn1=l.privateKeyToRSAPrivateKey=function(e){return o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,o.integerToDer(0).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.n)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.e)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.d)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.p)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.q)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.dP)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.dQ)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.qInv))])};l.publicKeyFromAsn1=function(e){var r={};var i=[];if(o.validate(e,v,r,i)){var a=o.derToOid(r.publicKeyOid);if(a!==l.oids.rsaEncryption){var c=new Error("Cannot read public key. Unknown OID.");c.oid=a;throw c}e=r.rsaPublicKey}i=[];if(!o.validate(e,g,r,i)){var c=new Error("Cannot read public key. "+"ASN.1 object does not contain an RSAPublicKey.");c.errors=i;throw c}var p=n.util.createBuffer(r.publicKeyModulus).toHex();var d=n.util.createBuffer(r.publicKeyExponent).toHex();return l.setRsaPublicKey(new s(p,16),new s(d,16))};l.publicKeyToAsn1=l.publicKeyToSubjectPublicKeyInfo=function(e){return o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.OID,false,o.oidToDer(l.oids.rsaEncryption).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.NULL,false,"")]),o.create(o.Class.UNIVERSAL,o.Type.BITSTRING,false,[l.publicKeyToRSAPublicKey(e)])])};l.publicKeyToRSAPublicKey=function(e){return o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.n)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.e))])};function _encodePkcs1_v1_5(e,r,i){var s=n.util.createBuffer();var a=Math.ceil(r.n.bitLength()/8);if(e.length>a-11){var o=new Error("Message is too long for PKCS#1 v1.5 padding.");o.length=e.length;o.max=a-11;throw o}s.putByte(0);s.putByte(i);var c=a-3-e.length;var l;if(i===0||i===1){l=i===0?0:255;for(var p=0;p0){var d=0;var h=n.random.getBytes(c);for(var p=0;p1){if(o.getByte()!==255){--o.read;break}++p}}else if(l===2){p=0;while(o.length()>1){if(o.getByte()===0){--o.read;break}++p}}var h=o.getByte();if(h!==0||p!==a-3-o.length()){throw new Error("Encryption block is invalid.")}return o.getBytes()}function _generateKeyPair(e,r,i){if(typeof r==="function"){i=r;r={}}r=r||{};var a={algorithm:{name:r.algorithm||"PRIMEINC",options:{workers:r.workers||2,workLoad:r.workLoad||100,workerScript:r.workerScript}}};if("prng"in r){a.prng=r.prng}generate();function generate(){getPrime(e.pBits,(function(r,n){if(r){return i(r)}e.p=n;if(e.q!==null){return finish(r,e.q)}getPrime(e.qBits,finish)}))}function getPrime(e,r){n.prime.generateProbablePrime(e,a,r)}function finish(r,n){if(r){return i(r)}e.q=n;if(e.p.compareTo(e.q)<0){var a=e.p;e.p=e.q;e.q=a}if(e.p.subtract(s.ONE).gcd(e.e).compareTo(s.ONE)!==0){e.p=null;generate();return}if(e.q.subtract(s.ONE).gcd(e.e).compareTo(s.ONE)!==0){e.q=null;getPrime(e.qBits,finish);return}e.p1=e.p.subtract(s.ONE);e.q1=e.q.subtract(s.ONE);e.phi=e.p1.multiply(e.q1);if(e.phi.gcd(e.e).compareTo(s.ONE)!==0){e.p=e.q=null;generate();return}e.n=e.p.multiply(e.q);if(e.n.bitLength()!==e.bits){e.q=null;getPrime(e.qBits,finish);return}var o=e.e.modInverse(e.phi);e.keys={privateKey:l.rsa.setPrivateKey(e.n,e.e,o,e.p,e.q,o.mod(e.p1),o.mod(e.q1),e.q.modInverse(e.p)),publicKey:l.rsa.setPublicKey(e.n,e.e)};i(null,e.keys)}}function _bnToBytes(e){var r=e.toString(16);if(r[0]>="8"){r="00"+r}var i=n.util.hexToBytes(r);if(i.length>1&&(i.charCodeAt(0)===0&&(i.charCodeAt(1)&128)===0||i.charCodeAt(0)===255&&(i.charCodeAt(1)&128)===128)){return i.substr(1)}return i}function _getMillerRabinTests(e){if(e<=100)return 27;if(e<=150)return 18;if(e<=200)return 15;if(e<=250)return 12;if(e<=300)return 9;if(e<=350)return 8;if(e<=400)return 7;if(e<=500)return 6;if(e<=600)return 5;if(e<=800)return 4;if(e<=1250)return 3;return 2}function _detectNodeCrypto(e){return n.util.isNodejs&&typeof a[e]==="function"}function _detectSubtleCrypto(e){return typeof c.globalScope!=="undefined"&&typeof c.globalScope.crypto==="object"&&typeof c.globalScope.crypto.subtle==="object"&&typeof c.globalScope.crypto.subtle[e]==="function"}function _detectSubtleMsCrypto(e){return typeof c.globalScope!=="undefined"&&typeof c.globalScope.msCrypto==="object"&&typeof c.globalScope.msCrypto.subtle==="object"&&typeof c.globalScope.msCrypto.subtle[e]==="function"}function _intToUint8Array(e){var r=n.util.hexToBytes(e.toString(16));var i=new Uint8Array(r.length);for(var s=0;s{var n=i(9177);i(6231);i(8339);var s=e.exports=n.sha1=n.sha1||{};n.md.sha1=n.md.algorithms.sha1=s;s.create=function(){if(!o){_init()}var e=null;var r=n.util.createBuffer();var i=new Array(80);var s={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};s.start=function(){s.messageLength=0;s.fullMessageLength=s.messageLength64=[];var i=s.messageLengthSize/4;for(var a=0;a>>0,c>>>0];for(var l=s.fullMessageLength.length-1;l>=0;--l){s.fullMessageLength[l]+=c[1];c[1]=c[0]+(s.fullMessageLength[l]/4294967296>>>0);s.fullMessageLength[l]=s.fullMessageLength[l]>>>0;c[0]=c[1]/4294967296>>>0}r.putBytes(a);_update(e,i,r);if(r.read>2048||r.length()===0){r.compact()}return s};s.digest=function(){var o=n.util.createBuffer();o.putBytes(r.bytes());var c=s.fullMessageLength[s.fullMessageLength.length-1]+s.messageLengthSize;var l=c&s.blockLength-1;o.putBytes(a.substr(0,s.blockLength-l));var p,d;var h=s.fullMessageLength[0]*8;for(var g=0;g>>0;h+=d;o.putInt32(h>>>0);h=p>>>0}o.putInt32(h);var v={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4};_update(v,i,o);var y=n.util.createBuffer();y.putInt32(v.h0);y.putInt32(v.h1);y.putInt32(v.h2);y.putInt32(v.h3);y.putInt32(v.h4);return y};return s};var a=null;var o=false;function _init(){a=String.fromCharCode(128);a+=n.util.fillString(String.fromCharCode(0),64);o=true}function _update(e,r,i){var n,s,a,o,c,l,p,d;var h=i.length();while(h>=64){s=e.h0;a=e.h1;o=e.h2;c=e.h3;l=e.h4;for(d=0;d<16;++d){n=i.getInt32();r[d]=n;p=c^a&(o^c);n=(s<<5|s>>>27)+p+l+1518500249+n;l=c;c=o;o=(a<<30|a>>>2)>>>0;a=s;s=n}for(;d<20;++d){n=r[d-3]^r[d-8]^r[d-14]^r[d-16];n=n<<1|n>>>31;r[d]=n;p=c^a&(o^c);n=(s<<5|s>>>27)+p+l+1518500249+n;l=c;c=o;o=(a<<30|a>>>2)>>>0;a=s;s=n}for(;d<32;++d){n=r[d-3]^r[d-8]^r[d-14]^r[d-16];n=n<<1|n>>>31;r[d]=n;p=a^o^c;n=(s<<5|s>>>27)+p+l+1859775393+n;l=c;c=o;o=(a<<30|a>>>2)>>>0;a=s;s=n}for(;d<40;++d){n=r[d-6]^r[d-16]^r[d-28]^r[d-32];n=n<<2|n>>>30;r[d]=n;p=a^o^c;n=(s<<5|s>>>27)+p+l+1859775393+n;l=c;c=o;o=(a<<30|a>>>2)>>>0;a=s;s=n}for(;d<60;++d){n=r[d-6]^r[d-16]^r[d-28]^r[d-32];n=n<<2|n>>>30;r[d]=n;p=a&o|c&(a^o);n=(s<<5|s>>>27)+p+l+2400959708+n;l=c;c=o;o=(a<<30|a>>>2)>>>0;a=s;s=n}for(;d<80;++d){n=r[d-6]^r[d-16]^r[d-28]^r[d-32];n=n<<2|n>>>30;r[d]=n;p=a^o^c;n=(s<<5|s>>>27)+p+l+3395469782+n;l=c;c=o;o=(a<<30|a>>>2)>>>0;a=s;s=n}e.h0=e.h0+s|0;e.h1=e.h1+a|0;e.h2=e.h2+o|0;e.h3=e.h3+c|0;e.h4=e.h4+l|0;h-=64}}},4086:(e,r,i)=>{var n=i(9177);i(6231);i(8339);var s=e.exports=n.sha256=n.sha256||{};n.md.sha256=n.md.algorithms.sha256=s;s.create=function(){if(!o){_init()}var e=null;var r=n.util.createBuffer();var i=new Array(64);var s={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};s.start=function(){s.messageLength=0;s.fullMessageLength=s.messageLength64=[];var i=s.messageLengthSize/4;for(var a=0;a>>0,c>>>0];for(var l=s.fullMessageLength.length-1;l>=0;--l){s.fullMessageLength[l]+=c[1];c[1]=c[0]+(s.fullMessageLength[l]/4294967296>>>0);s.fullMessageLength[l]=s.fullMessageLength[l]>>>0;c[0]=c[1]/4294967296>>>0}r.putBytes(a);_update(e,i,r);if(r.read>2048||r.length()===0){r.compact()}return s};s.digest=function(){var o=n.util.createBuffer();o.putBytes(r.bytes());var c=s.fullMessageLength[s.fullMessageLength.length-1]+s.messageLengthSize;var l=c&s.blockLength-1;o.putBytes(a.substr(0,s.blockLength-l));var p,d;var h=s.fullMessageLength[0]*8;for(var g=0;g>>0;h+=d;o.putInt32(h>>>0);h=p>>>0}o.putInt32(h);var v={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};_update(v,i,o);var y=n.util.createBuffer();y.putInt32(v.h0);y.putInt32(v.h1);y.putInt32(v.h2);y.putInt32(v.h3);y.putInt32(v.h4);y.putInt32(v.h5);y.putInt32(v.h6);y.putInt32(v.h7);return y};return s};var a=null;var o=false;var c=null;function _init(){a=String.fromCharCode(128);a+=n.util.fillString(String.fromCharCode(0),64);c=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];o=true}function _update(e,r,i){var n,s,a,o,l,p,d,h,g,v,y,b,E,x,w;var T=i.length();while(T>=64){for(d=0;d<16;++d){r[d]=i.getInt32()}for(;d<64;++d){n=r[d-2];n=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10;s=r[d-15];s=(s>>>7|s<<25)^(s>>>18|s<<14)^s>>>3;r[d]=n+r[d-7]+s+r[d-16]|0}h=e.h0;g=e.h1;v=e.h2;y=e.h3;b=e.h4;E=e.h5;x=e.h6;w=e.h7;for(d=0;d<64;++d){o=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7);l=x^b&(E^x);a=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10);p=h&g|v&(h^g);n=w+o+l+c[d]+r[d];s=a+p;w=x;x=E;E=b;b=y+n>>>0;y=v;v=g;g=h;h=n+s>>>0}e.h0=e.h0+h|0;e.h1=e.h1+g|0;e.h2=e.h2+v|0;e.h3=e.h3+y|0;e.h4=e.h4+b|0;e.h5=e.h5+E|0;e.h6=e.h6+x|0;e.h7=e.h7+w|0;T-=64}}},9542:(e,r,i)=>{var n=i(9177);i(6231);i(8339);var s=e.exports=n.sha512=n.sha512||{};n.md.sha512=n.md.algorithms.sha512=s;var a=n.sha384=n.sha512.sha384=n.sha512.sha384||{};a.create=function(){return s.create("SHA-384")};n.md.sha384=n.md.algorithms.sha384=a;n.sha512.sha256=n.sha512.sha256||{create:function(){return s.create("SHA-512/256")}};n.md["sha512/256"]=n.md.algorithms["sha512/256"]=n.sha512.sha256;n.sha512.sha224=n.sha512.sha224||{create:function(){return s.create("SHA-512/224")}};n.md["sha512/224"]=n.md.algorithms["sha512/224"]=n.sha512.sha224;s.create=function(e){if(!c){_init()}if(typeof e==="undefined"){e="SHA-512"}if(!(e in p)){throw new Error("Invalid SHA-512 algorithm: "+e)}var r=p[e];var i=null;var s=n.util.createBuffer();var a=new Array(80);for(var l=0;l<80;++l){a[l]=new Array(2)}var d=64;switch(e){case"SHA-384":d=48;break;case"SHA-512/256":d=32;break;case"SHA-512/224":d=28;break}var h={algorithm:e.replace("-","").toLowerCase(),blockLength:128,digestLength:d,messageLength:0,fullMessageLength:null,messageLengthSize:16};h.start=function(){h.messageLength=0;h.fullMessageLength=h.messageLength128=[];var e=h.messageLengthSize/4;for(var a=0;a>>0,o>>>0];for(var c=h.fullMessageLength.length-1;c>=0;--c){h.fullMessageLength[c]+=o[1];o[1]=o[0]+(h.fullMessageLength[c]/4294967296>>>0);h.fullMessageLength[c]=h.fullMessageLength[c]>>>0;o[0]=o[1]/4294967296>>>0}s.putBytes(e);_update(i,a,s);if(s.read>2048||s.length()===0){s.compact()}return h};h.digest=function(){var r=n.util.createBuffer();r.putBytes(s.bytes());var c=h.fullMessageLength[h.fullMessageLength.length-1]+h.messageLengthSize;var l=c&h.blockLength-1;r.putBytes(o.substr(0,h.blockLength-l));var p,d;var g=h.fullMessageLength[0]*8;for(var v=0;v>>0;g+=d;r.putInt32(g>>>0);g=p>>>0}r.putInt32(g);var y=new Array(i.length);for(var v=0;v=128){for(G=0;G<16;++G){r[G][0]=i.getInt32()>>>0;r[G][1]=i.getInt32()>>>0}for(;G<80;++G){H=r[G-2];F=H[0];V=H[1];n=((F>>>19|V<<13)^(V>>>29|F<<3)^F>>>6)>>>0;s=((F<<13|V>>>19)^(V<<3|F>>>29)^(F<<26|V>>>6))>>>0;$=r[G-15];F=$[0];V=$[1];a=((F>>>1|V<<31)^(F>>>8|V<<24)^F>>>7)>>>0;o=((F<<31|V>>>1)^(F<<24|V>>>8)^(F<<25|V>>>7))>>>0;K=r[G-7];z=r[G-16];V=s+K[1]+o+z[1];r[G][0]=n+K[0]+a+z[0]+(V/4294967296>>>0)>>>0;r[G][1]=V>>>0}E=e[0][0];x=e[0][1];w=e[1][0];T=e[1][1];_=e[2][0];C=e[2][1];R=e[3][0];I=e[3][1];O=e[4][0];P=e[4][1];N=e[5][0];B=e[5][1];j=e[6][0];L=e[6][1];D=e[7][0];U=e[7][1];for(G=0;G<80;++G){d=((O>>>14|P<<18)^(O>>>18|P<<14)^(P>>>9|O<<23))>>>0;h=((O<<18|P>>>14)^(O<<14|P>>>18)^(P<<23|O>>>9))>>>0;g=(j^O&(N^j))>>>0;v=(L^P&(B^L))>>>0;c=((E>>>28|x<<4)^(x>>>2|E<<30)^(x>>>7|E<<25))>>>0;p=((E<<4|x>>>28)^(x<<30|E>>>2)^(x<<25|E>>>7))>>>0;y=(E&w|_&(E^w))>>>0;b=(x&T|C&(x^T))>>>0;V=U+h+v+l[G][1]+r[G][1];n=D+d+g+l[G][0]+r[G][0]+(V/4294967296>>>0)>>>0;s=V>>>0;V=p+b;a=c+y+(V/4294967296>>>0)>>>0;o=V>>>0;D=j;U=L;j=N;L=B;N=O;B=P;V=I+s;O=R+n+(V/4294967296>>>0)>>>0;P=V>>>0;R=_;I=C;_=w;C=T;w=E;T=x;V=s+o;E=n+a+(V/4294967296>>>0)>>>0;x=V>>>0}V=e[0][1]+x;e[0][0]=e[0][0]+E+(V/4294967296>>>0)>>>0;e[0][1]=V>>>0;V=e[1][1]+T;e[1][0]=e[1][0]+w+(V/4294967296>>>0)>>>0;e[1][1]=V>>>0;V=e[2][1]+C;e[2][0]=e[2][0]+_+(V/4294967296>>>0)>>>0;e[2][1]=V>>>0;V=e[3][1]+I;e[3][0]=e[3][0]+R+(V/4294967296>>>0)>>>0;e[3][1]=V>>>0;V=e[4][1]+P;e[4][0]=e[4][0]+O+(V/4294967296>>>0)>>>0;e[4][1]=V>>>0;V=e[5][1]+B;e[5][0]=e[5][0]+N+(V/4294967296>>>0)>>>0;e[5][1]=V>>>0;V=e[6][1]+L;e[6][0]=e[6][0]+j+(V/4294967296>>>0)>>>0;e[6][1]=V>>>0;V=e[7][1]+U;e[7][0]=e[7][0]+D+(V/4294967296>>>0)>>>0;e[7][1]=V>>>0;W-=128}}},4280:(e,r,i)=>{var n=i(9177);i(7994);i(5104);i(6594);i(279);i(8339);var s=e.exports=n.ssh=n.ssh||{};s.privateKeyToPutty=function(e,r,i){i=i||"";r=r||"";var s="ssh-rsa";var a=r===""?"none":"aes256-cbc";var o="PuTTY-User-Key-File-2: "+s+"\r\n";o+="Encryption: "+a+"\r\n";o+="Comment: "+i+"\r\n";var c=n.util.createBuffer();_addStringToBuffer(c,s);_addBigIntegerToBuffer(c,e.e);_addBigIntegerToBuffer(c,e.n);var l=n.util.encode64(c.bytes(),64);var p=Math.floor(l.length/66)+1;o+="Public-Lines: "+p+"\r\n";o+=l;var d=n.util.createBuffer();_addBigIntegerToBuffer(d,e.d);_addBigIntegerToBuffer(d,e.p);_addBigIntegerToBuffer(d,e.q);_addBigIntegerToBuffer(d,e.qInv);var h;if(!r){h=n.util.encode64(d.bytes(),64)}else{var g=d.length()+16-1;g-=g%16;var v=_sha1(d.bytes());v.truncate(v.length()-g+d.length());d.putBuffer(v);var y=n.util.createBuffer();y.putBuffer(_sha1("\0\0\0\0",r));y.putBuffer(_sha1("\0\0\0",r));var b=n.aes.createEncryptionCipher(y.truncate(8),"CBC");b.start(n.util.createBuffer().fillWithByte(0,16));b.update(d.copy());b.finish();var E=b.output;E.truncate(16);h=n.util.encode64(E.bytes(),64)}p=Math.floor(h.length/66)+1;o+="\r\nPrivate-Lines: "+p+"\r\n";o+=h;var x=_sha1("putty-private-key-file-mac-key",r);var w=n.util.createBuffer();_addStringToBuffer(w,s);_addStringToBuffer(w,a);_addStringToBuffer(w,i);w.putInt32(c.length());w.putBuffer(c);w.putInt32(d.length());w.putBuffer(d);var T=n.hmac.create();T.start("sha1",x);T.update(w.bytes());o+="\r\nPrivate-MAC: "+T.digest().toHex()+"\r\n";return o};s.publicKeyToOpenSSH=function(e,r){var i="ssh-rsa";r=r||"";var s=n.util.createBuffer();_addStringToBuffer(s,i);_addBigIntegerToBuffer(s,e.e);_addBigIntegerToBuffer(s,e.n);return i+" "+n.util.encode64(s.bytes())+" "+r};s.privateKeyToOpenSSH=function(e,r){if(!r){return n.pki.privateKeyToPem(e)}return n.pki.encryptRsaPrivateKey(e,r,{legacy:true,algorithm:"aes128"})};s.getPublicKeyFingerprint=function(e,r){r=r||{};var i=r.md||n.md.md5.create();var s="ssh-rsa";var a=n.util.createBuffer();_addStringToBuffer(a,s);_addBigIntegerToBuffer(a,e.e);_addBigIntegerToBuffer(a,e.n);i.start();i.update(a.getBytes());var o=i.digest();if(r.encoding==="hex"){var c=o.toHex();if(r.delimiter){return c.match(/.{2}/g).join(r.delimiter)}return c}else if(r.encoding==="binary"){return o.getBytes()}else if(r.encoding){throw new Error('Unknown encoding "'+r.encoding+'".')}return o};function _addBigIntegerToBuffer(e,r){var i=r.toString(16);if(i[0]>="8"){i="00"+i}var s=n.util.hexToBytes(i);e.putInt32(s.length);e.putBytes(s)}function _addStringToBuffer(e,r){e.putInt32(r.length);e.putString(r)}function _sha1(){var e=n.md.sha1.create();var r=arguments.length;for(var i=0;i{var n=i(9177);i(9549);i(5104);i(6594);i(154);i(6924);i(7821);i(279);i(8339);var prf_TLS1=function(e,r,i,s){var a=n.util.createBuffer();var o=e.length>>1;var c=o+(e.length&1);var l=e.substr(0,c);var p=e.substr(o,c);var d=n.util.createBuffer();var h=n.hmac.create();i=r+i;var g=Math.ceil(s/16);var v=Math.ceil(s/20);h.start("MD5",l);var y=n.util.createBuffer();d.putBytes(i);for(var b=0;b0){s.queue(e,s.createAlert(e,{level:s.Alert.Level.warning,description:s.Alert.Description.no_renegotiation}));s.flush(e)}e.process()};s.parseHelloMessage=function(e,r,i){var a=null;var o=e.entity===s.ConnectionEnd.client;if(i<38){e.error(e,{message:o?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.illegal_parameter}})}else{var c=r.fragment;var l=c.length();a={version:{major:c.getByte(),minor:c.getByte()},random:n.util.createBuffer(c.getBytes(32)),session_id:readVector(c,1),extensions:[]};if(o){a.cipher_suite=c.getBytes(2);a.compression_method=c.getByte()}else{a.cipher_suites=readVector(c,2);a.compression_methods=readVector(c,1)}l=i-(l-c.length());if(l>0){var p=readVector(c,2);while(p.length()>0){a.extensions.push({type:[p.getByte(),p.getByte()],data:readVector(p,2)})}if(!o){for(var d=0;d0){var v=g.getByte();if(v!==0){break}e.session.extensions.server_name.serverNameList.push(readVector(g,2).getBytes())}}}}}if(e.session.version){if(a.version.major!==e.session.version.major||a.version.minor!==e.session.version.minor){return e.error(e,{message:"TLS version change is disallowed during renegotiation.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.protocol_version}})}}if(o){e.session.cipherSuite=s.getCipherSuite(a.cipher_suite)}else{var y=n.util.createBuffer(a.cipher_suites.bytes());while(y.length()>0){e.session.cipherSuite=s.getCipherSuite(y.getBytes(2));if(e.session.cipherSuite!==null){break}}}if(e.session.cipherSuite===null){return e.error(e,{message:"No cipher suites in common.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.handshake_failure},cipherSuite:n.util.bytesToHex(a.cipher_suite)})}if(o){e.session.compressionMethod=a.compression_method}else{e.session.compressionMethod=s.CompressionMethod.none}}return a};s.createSecurityParameters=function(e,r){var i=e.entity===s.ConnectionEnd.client;var n=r.random.bytes();var a=i?e.session.sp.client_random:n;var o=i?n:s.createRandom().getBytes();e.session.sp={entity:e.entity,prf_algorithm:s.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:e.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:a,server_random:o}};s.handleServerHello=function(e,r,i){var n=s.parseHelloMessage(e,r,i);if(e.fail){return}if(n.version.minor<=e.version.minor){e.version.minor=n.version.minor}else{return e.error(e,{message:"Incompatible TLS version.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.protocol_version}})}e.session.version=e.version;var a=n.session_id.bytes();if(a.length>0&&a===e.session.id){e.expect=d;e.session.resuming=true;e.session.sp.server_random=n.random.bytes()}else{e.expect=o;e.session.resuming=false;s.createSecurityParameters(e,n)}e.session.id=a;e.process()};s.handleClientHello=function(e,r,i){var a=s.parseHelloMessage(e,r,i);if(e.fail){return}var o=a.session_id.bytes();var c=null;if(e.sessionCache){c=e.sessionCache.getSession(o);if(c===null){o=""}else if(c.version.major!==a.version.major||c.version.minor>a.version.minor){c=null;o=""}}if(o.length===0){o=n.random.getBytes(32)}e.session.id=o;e.session.clientHelloVersion=a.version;e.session.sp={};if(c){e.version=e.session.version=c.version;e.session.sp=c.sp}else{var l;for(var p=1;p0){l=readVector(o.certificate_list,3);p=n.asn1.fromDer(l);l=n.pki.certificateFromAsn1(p,true);d.push(l)}}catch(r){return e.error(e,{message:"Could not parse certificate list.",cause:r,send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.bad_certificate}})}var h=e.entity===s.ConnectionEnd.client;if((h||e.verifyClient===true)&&d.length===0){e.error(e,{message:h?"No server certificate provided.":"No client certificate provided.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.illegal_parameter}})}else if(d.length===0){e.expect=h?c:E}else{if(h){e.session.serverCertificate=d[0]}else{e.session.clientCertificate=d[0]}if(s.verifyCertificateChain(e,d)){e.expect=h?c:E}}e.process()};s.handleServerKeyExchange=function(e,r,i){if(i>0){return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.unsupported_certificate}})}e.expect=l;e.process()};s.handleClientKeyExchange=function(e,r,i){if(i<48){return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.unsupported_certificate}})}var a=r.fragment;var o={enc_pre_master_secret:readVector(a,2).getBytes()};var c=null;if(e.getPrivateKey){try{c=e.getPrivateKey(e,e.session.serverCertificate);c=n.pki.privateKeyFromPem(c)}catch(r){e.error(e,{message:"Could not get private key.",cause:r,send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.internal_error}})}}if(c===null){return e.error(e,{message:"No private key set.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.internal_error}})}try{var l=e.session.sp;l.pre_master_secret=c.decrypt(o.enc_pre_master_secret);var p=e.session.clientHelloVersion;if(p.major!==l.pre_master_secret.charCodeAt(0)||p.minor!==l.pre_master_secret.charCodeAt(1)){throw new Error("TLS version rollback attack detected.")}}catch(e){l.pre_master_secret=n.random.getBytes(48)}e.expect=w;if(e.session.clientCertificate!==null){e.expect=x}e.process()};s.handleCertificateRequest=function(e,r,i){if(i<3){return e.error(e,{message:"Invalid CertificateRequest. Message too short.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.illegal_parameter}})}var n=r.fragment;var a={certificate_types:readVector(n,1),certificate_authorities:readVector(n,2)};e.session.certificateRequest=a;e.expect=p;e.process()};s.handleCertificateVerify=function(e,r,i){if(i<2){return e.error(e,{message:"Invalid CertificateVerify. Message too short.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.illegal_parameter}})}var a=r.fragment;a.read-=4;var o=a.bytes();a.read+=4;var c={signature:readVector(a,2).getBytes()};var l=n.util.createBuffer();l.putBuffer(e.session.md5.digest());l.putBuffer(e.session.sha1.digest());l=l.getBytes();try{var p=e.session.clientCertificate;if(!p.publicKey.verify(l,c.signature,"NONE")){throw new Error("CertificateVerify signature does not match.")}e.session.md5.update(o);e.session.sha1.update(o)}catch(r){return e.error(e,{message:"Bad signature in CertificateVerify.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.handshake_failure}})}e.expect=w;e.process()};s.handleServerHelloDone=function(e,r,i){if(i>0){return e.error(e,{message:"Invalid ServerHelloDone message. Invalid length.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.record_overflow}})}if(e.serverCertificate===null){var a={message:"No server certificate provided. Not enough security.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.insufficient_security}};var o=0;var c=e.verify(e,a.alert.description,o,[]);if(c!==true){if(c||c===0){if(typeof c==="object"&&!n.util.isArray(c)){if(c.message){a.message=c.message}if(c.alert){a.alert.description=c.alert}}else if(typeof c==="number"){a.alert.description=c}}return e.error(e,a)}}if(e.session.certificateRequest!==null){r=s.createRecord(e,{type:s.ContentType.handshake,data:s.createCertificate(e)});s.queue(e,r)}r=s.createRecord(e,{type:s.ContentType.handshake,data:s.createClientKeyExchange(e)});s.queue(e,r);e.expect=v;var callback=function(e,r){if(e.session.certificateRequest!==null&&e.session.clientCertificate!==null){s.queue(e,s.createRecord(e,{type:s.ContentType.handshake,data:s.createCertificateVerify(e,r)}))}s.queue(e,s.createRecord(e,{type:s.ContentType.change_cipher_spec,data:s.createChangeCipherSpec()}));e.state.pending=s.createConnectionState(e);e.state.current.write=e.state.pending.write;s.queue(e,s.createRecord(e,{type:s.ContentType.handshake,data:s.createFinished(e)}));e.expect=d;s.flush(e);e.process()};if(e.session.certificateRequest===null||e.session.clientCertificate===null){return callback(e,null)}s.getClientSignature(e,callback)};s.handleChangeCipherSpec=function(e,r){if(r.fragment.getByte()!==1){return e.error(e,{message:"Invalid ChangeCipherSpec message received.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.illegal_parameter}})}var i=e.entity===s.ConnectionEnd.client;if(e.session.resuming&&i||!e.session.resuming&&!i){e.state.pending=s.createConnectionState(e)}e.state.current.read=e.state.pending.read;if(!e.session.resuming&&i||e.session.resuming&&!i){e.state.pending=null}e.expect=i?h:T;e.process()};s.handleFinished=function(e,r,i){var a=r.fragment;a.read-=4;var o=a.bytes();a.read+=4;var c=r.fragment.getBytes();a=n.util.createBuffer();a.putBuffer(e.session.md5.digest());a.putBuffer(e.session.sha1.digest());var l=e.entity===s.ConnectionEnd.client;var p=l?"server finished":"client finished";var d=e.session.sp;var h=12;var v=prf_TLS1;a=v(d.master_secret,p,a.getBytes(),h);if(a.getBytes()!==c){return e.error(e,{message:"Invalid verify_data in Finished message.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.decrypt_error}})}e.session.md5.update(o);e.session.sha1.update(o);if(e.session.resuming&&l||!e.session.resuming&&!l){s.queue(e,s.createRecord(e,{type:s.ContentType.change_cipher_spec,data:s.createChangeCipherSpec()}));e.state.current.write=e.state.pending.write;e.state.pending=null;s.queue(e,s.createRecord(e,{type:s.ContentType.handshake,data:s.createFinished(e)}))}e.expect=l?g:_;e.handshaking=false;++e.handshakes;e.peerCertificate=l?e.session.serverCertificate:e.session.clientCertificate;s.flush(e);e.isConnected=true;e.connected(e);e.process()};s.handleAlert=function(e,r){var i=r.fragment;var n={level:i.getByte(),description:i.getByte()};var a;switch(n.description){case s.Alert.Description.close_notify:a="Connection closed.";break;case s.Alert.Description.unexpected_message:a="Unexpected message.";break;case s.Alert.Description.bad_record_mac:a="Bad record MAC.";break;case s.Alert.Description.decryption_failed:a="Decryption failed.";break;case s.Alert.Description.record_overflow:a="Record overflow.";break;case s.Alert.Description.decompression_failure:a="Decompression failed.";break;case s.Alert.Description.handshake_failure:a="Handshake failure.";break;case s.Alert.Description.bad_certificate:a="Bad certificate.";break;case s.Alert.Description.unsupported_certificate:a="Unsupported certificate.";break;case s.Alert.Description.certificate_revoked:a="Certificate revoked.";break;case s.Alert.Description.certificate_expired:a="Certificate expired.";break;case s.Alert.Description.certificate_unknown:a="Certificate unknown.";break;case s.Alert.Description.illegal_parameter:a="Illegal parameter.";break;case s.Alert.Description.unknown_ca:a="Unknown certificate authority.";break;case s.Alert.Description.access_denied:a="Access denied.";break;case s.Alert.Description.decode_error:a="Decode error.";break;case s.Alert.Description.decrypt_error:a="Decrypt error.";break;case s.Alert.Description.export_restriction:a="Export restriction.";break;case s.Alert.Description.protocol_version:a="Unsupported protocol version.";break;case s.Alert.Description.insufficient_security:a="Insufficient security.";break;case s.Alert.Description.internal_error:a="Internal error.";break;case s.Alert.Description.user_canceled:a="User canceled.";break;case s.Alert.Description.no_renegotiation:a="Renegotiation not supported.";break;default:a="Unknown error.";break}if(n.description===s.Alert.Description.close_notify){return e.close()}e.error(e,{message:a,send:false,origin:e.entity===s.ConnectionEnd.client?"server":"client",alert:n});e.process()};s.handleHandshake=function(e,r){var i=r.fragment;var a=i.getByte();var o=i.getInt24();if(o>i.length()){e.fragmented=r;r.fragment=n.util.createBuffer();i.read-=4;return e.process()}e.fragmented=null;i.read-=4;var c=i.bytes(o+4);i.read+=4;if(a in K[e.entity][e.expect]){if(e.entity===s.ConnectionEnd.server&&!e.open&&!e.fail){e.handshaking=true;e.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:n.md.md5.create(),sha1:n.md.sha1.create()}}if(a!==s.HandshakeType.hello_request&&a!==s.HandshakeType.certificate_verify&&a!==s.HandshakeType.finished){e.session.md5.update(c);e.session.sha1.update(c)}K[e.entity][e.expect][a](e,r,o)}else{s.handleUnexpected(e,r)}};s.handleApplicationData=function(e,r){e.data.putBuffer(r.fragment);e.dataReady(e);e.process()};s.handleHeartbeat=function(e,r){var i=r.fragment;var a=i.getByte();var o=i.getInt16();var c=i.getBytes(o);if(a===s.HeartbeatMessageType.heartbeat_request){if(e.handshaking||o>c.length){return e.process()}s.queue(e,s.createRecord(e,{type:s.ContentType.heartbeat,data:s.createHeartbeat(s.HeartbeatMessageType.heartbeat_response,c)}));s.flush(e)}else if(a===s.HeartbeatMessageType.heartbeat_response){if(c!==e.expectedHeartbeatPayload){return e.process()}if(e.heartbeatReceived){e.heartbeatReceived(e,n.util.createBuffer(c))}}e.process()};var a=0;var o=1;var c=2;var l=3;var p=4;var d=5;var h=6;var g=7;var v=8;var y=0;var b=1;var E=2;var x=3;var w=4;var T=5;var _=6;var C=7;var R=s.handleUnexpected;var I=s.handleChangeCipherSpec;var O=s.handleAlert;var P=s.handleHandshake;var N=s.handleApplicationData;var B=s.handleHeartbeat;var j=[];j[s.ConnectionEnd.client]=[[R,O,P,R,B],[R,O,P,R,B],[R,O,P,R,B],[R,O,P,R,B],[R,O,P,R,B],[I,O,R,R,B],[R,O,P,R,B],[R,O,P,N,B],[R,O,P,R,B]];j[s.ConnectionEnd.server]=[[R,O,P,R,B],[R,O,P,R,B],[R,O,P,R,B],[R,O,P,R,B],[I,O,R,R,B],[R,O,P,R,B],[R,O,P,N,B],[R,O,P,R,B]];var L=s.handleHelloRequest;var D=s.handleServerHello;var U=s.handleCertificate;var G=s.handleServerKeyExchange;var F=s.handleCertificateRequest;var V=s.handleServerHelloDone;var H=s.handleFinished;var K=[];K[s.ConnectionEnd.client]=[[R,R,D,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R],[L,R,R,R,R,R,R,R,R,R,R,U,G,F,V,R,R,R,R,R,R],[L,R,R,R,R,R,R,R,R,R,R,R,G,F,V,R,R,R,R,R,R],[L,R,R,R,R,R,R,R,R,R,R,R,R,F,V,R,R,R,R,R,R],[L,R,R,R,R,R,R,R,R,R,R,R,R,R,V,R,R,R,R,R,R],[L,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R],[L,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,H],[L,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R],[L,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R]];var $=s.handleClientHello;var z=s.handleClientKeyExchange;var W=s.handleCertificateVerify;K[s.ConnectionEnd.server]=[[R,$,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R],[R,R,R,R,R,R,R,R,R,R,R,U,R,R,R,R,R,R,R,R,R],[R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,z,R,R,R,R],[R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,W,R,R,R,R,R],[R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R],[R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,H],[R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R],[R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R]];s.generateKeys=function(e,r){var i=prf_TLS1;var n=r.client_random+r.server_random;if(!e.session.resuming){r.master_secret=i(r.pre_master_secret,"master secret",n,48).bytes();r.pre_master_secret=null}n=r.server_random+r.client_random;var a=2*r.mac_key_length+2*r.enc_key_length;var o=e.version.major===s.Versions.TLS_1_0.major&&e.version.minor===s.Versions.TLS_1_0.minor;if(o){a+=2*r.fixed_iv_length}var c=i(r.master_secret,"key expansion",n,a);var l={client_write_MAC_key:c.getBytes(r.mac_key_length),server_write_MAC_key:c.getBytes(r.mac_key_length),client_write_key:c.getBytes(r.enc_key_length),server_write_key:c.getBytes(r.enc_key_length)};if(o){l.client_write_IV=c.getBytes(r.fixed_iv_length);l.server_write_IV=c.getBytes(r.fixed_iv_length)}return l};s.createConnectionState=function(e){var r=e.entity===s.ConnectionEnd.client;var createMode=function(){var e={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(e){return true},compressionState:null,compressFunction:function(e){return true},updateSequenceNumber:function(){if(e.sequenceNumber[1]===4294967295){e.sequenceNumber[1]=0;++e.sequenceNumber[0]}else{++e.sequenceNumber[1]}}};return e};var i={read:createMode(),write:createMode()};i.read.update=function(e,r){if(!i.read.cipherFunction(r,i.read)){e.error(e,{message:"Could not decrypt record or bad MAC.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.bad_record_mac}})}else if(!i.read.compressFunction(e,r,i.read)){e.error(e,{message:"Could not decompress record.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.decompression_failure}})}return!e.fail};i.write.update=function(e,r){if(!i.write.compressFunction(e,r,i.write)){e.error(e,{message:"Could not compress record.",send:false,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.internal_error}})}else if(!i.write.cipherFunction(r,i.write)){e.error(e,{message:"Could not encrypt record.",send:false,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.internal_error}})}return!e.fail};if(e.session){var n=e.session.sp;e.session.cipherSuite.initSecurityParameters(n);n.keys=s.generateKeys(e,n);i.read.macKey=r?n.keys.server_write_MAC_key:n.keys.client_write_MAC_key;i.write.macKey=r?n.keys.client_write_MAC_key:n.keys.server_write_MAC_key;e.session.cipherSuite.initConnectionState(i,e,n);switch(n.compression_algorithm){case s.CompressionMethod.none:break;case s.CompressionMethod.deflate:i.read.compressFunction=inflate;i.write.compressFunction=deflate;break;default:throw new Error("Unsupported compression algorithm.")}}return i};s.createRandom=function(){var e=new Date;var r=+e+e.getTimezoneOffset()*6e4;var i=n.util.createBuffer();i.putInt32(r);i.putBytes(n.random.getBytes(28));return i};s.createRecord=function(e,r){if(!r.data){return null}var i={type:r.type,version:{major:e.version.major,minor:e.version.minor},length:r.data.length(),fragment:r.data};return i};s.createAlert=function(e,r){var i=n.util.createBuffer();i.putByte(r.level);i.putByte(r.description);return s.createRecord(e,{type:s.ContentType.alert,data:i})};s.createClientHello=function(e){e.session.clientHelloVersion={major:e.version.major,minor:e.version.minor};var r=n.util.createBuffer();for(var i=0;i0){v+=2}var y=e.session.id;var b=y.length+1+2+4+28+2+o+1+l+v;var E=n.util.createBuffer();E.putByte(s.HandshakeType.client_hello);E.putInt24(b);E.putByte(e.version.major);E.putByte(e.version.minor);E.putBytes(e.session.sp.client_random);writeVector(E,1,n.util.createBuffer(y));writeVector(E,2,r);writeVector(E,1,c);if(v>0){writeVector(E,2,p)}return E};s.createServerHello=function(e){var r=e.session.id;var i=r.length+1+2+4+28+2+1;var a=n.util.createBuffer();a.putByte(s.HandshakeType.server_hello);a.putInt24(i);a.putByte(e.version.major);a.putByte(e.version.minor);a.putBytes(e.session.sp.server_random);writeVector(a,1,n.util.createBuffer(r));a.putByte(e.session.cipherSuite.id[0]);a.putByte(e.session.cipherSuite.id[1]);a.putByte(e.session.compressionMethod);return a};s.createCertificate=function(e){var r=e.entity===s.ConnectionEnd.client;var i=null;if(e.getCertificate){var a;if(r){a=e.session.certificateRequest}else{a=e.session.extensions.server_name.serverNameList}i=e.getCertificate(e,a)}var o=n.util.createBuffer();if(i!==null){try{if(!n.util.isArray(i)){i=[i]}var c=null;for(var l=0;l0){i.putByte(s.HandshakeType.server_key_exchange);i.putInt24(r)}return i};s.getClientSignature=function(e,r){var i=n.util.createBuffer();i.putBuffer(e.session.md5.digest());i.putBuffer(e.session.sha1.digest());i=i.getBytes();e.getSignature=e.getSignature||function(e,r,i){var a=null;if(e.getPrivateKey){try{a=e.getPrivateKey(e,e.session.clientCertificate);a=n.pki.privateKeyFromPem(a)}catch(r){e.error(e,{message:"Could not get private key.",cause:r,send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.internal_error}})}}if(a===null){e.error(e,{message:"No private key set.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.internal_error}})}else{r=a.sign(r,null)}i(e,r)};e.getSignature(e,i,r)};s.createCertificateVerify=function(e,r){var i=r.length+2;var a=n.util.createBuffer();a.putByte(s.HandshakeType.certificate_verify);a.putInt24(i);a.putInt16(r.length);a.putBytes(r);return a};s.createCertificateRequest=function(e){var r=n.util.createBuffer();r.putByte(1);var i=n.util.createBuffer();for(var a in e.caStore.certs){var o=e.caStore.certs[a];var c=n.pki.distinguishedNameToAsn1(o.subject);var l=n.asn1.toDer(c);i.putInt16(l.length());i.putBuffer(l)}var p=1+r.length()+2+i.length();var d=n.util.createBuffer();d.putByte(s.HandshakeType.certificate_request);d.putInt24(p);writeVector(d,1,r);writeVector(d,2,i);return d};s.createServerHelloDone=function(e){var r=n.util.createBuffer();r.putByte(s.HandshakeType.server_hello_done);r.putInt24(0);return r};s.createChangeCipherSpec=function(){var e=n.util.createBuffer();e.putByte(1);return e};s.createFinished=function(e){var r=n.util.createBuffer();r.putBuffer(e.session.md5.digest());r.putBuffer(e.session.sha1.digest());var i=e.entity===s.ConnectionEnd.client;var a=e.session.sp;var o=12;var c=prf_TLS1;var l=i?"client finished":"server finished";r=c(a.master_secret,l,r.getBytes(),o);var p=n.util.createBuffer();p.putByte(s.HandshakeType.finished);p.putInt24(r.length());p.putBuffer(r);return p};s.createHeartbeat=function(e,r,i){if(typeof i==="undefined"){i=r.length}var s=n.util.createBuffer();s.putByte(e);s.putInt16(i);s.putBytes(r);var a=s.length();var o=Math.max(16,a-i-3);s.putBytes(n.random.getBytes(o));return s};s.queue=function(e,r){if(!r){return}if(r.fragment.length()===0){if(r.type===s.ContentType.handshake||r.type===s.ContentType.alert||r.type===s.ContentType.change_cipher_spec){return}}if(r.type===s.ContentType.handshake){var i=r.fragment.bytes();e.session.md5.update(i);e.session.sha1.update(i);i=null}var a;if(r.fragment.length()<=s.MaxFragment){a=[r]}else{a=[];var o=r.fragment.bytes();while(o.length>s.MaxFragment){a.push(s.createRecord(e,{type:r.type,data:n.util.createBuffer(o.slice(0,s.MaxFragment))}));o=o.slice(s.MaxFragment)}if(o.length>0){a.push(s.createRecord(e,{type:r.type,data:n.util.createBuffer(o)}))}}for(var c=0;c0){s=i.order[0]}if(s!==null&&s in i.cache){r=i.cache[s];delete i.cache[s];for(var a in i.order){if(i.order[a]===s){i.order.splice(a,1);break}}}return r};i.setSession=function(e,r){if(i.order.length===i.capacity){var s=i.order.shift();delete i.cache[s]}var s=n.util.bytesToHex(e);i.order.push(s);i.cache[s]=r}}return i};s.createConnection=function(e){var r=null;if(e.caStore){if(n.util.isArray(e.caStore)){r=n.pki.createCaStore(e.caStore)}else{r=e.caStore}}else{r=n.pki.createCaStore()}var i=e.cipherSuites||null;if(i===null){i=[];for(var o in s.CipherSuites){i.push(s.CipherSuites[o])}}var c=e.server||false?s.ConnectionEnd.server:s.ConnectionEnd.client;var l=e.sessionCache?s.createSessionCache(e.sessionCache):null;var p={version:{major:s.Version.major,minor:s.Version.minor},entity:c,sessionId:e.sessionId,caStore:r,sessionCache:l,cipherSuites:i,connected:e.connected,virtualHost:e.virtualHost||null,verifyClient:e.verifyClient||false,verify:e.verify||function(e,r,i,n){return r},verifyOptions:e.verifyOptions||{},getCertificate:e.getCertificate||null,getPrivateKey:e.getPrivateKey||null,getSignature:e.getSignature||null,input:n.util.createBuffer(),tlsData:n.util.createBuffer(),data:n.util.createBuffer(),tlsDataReady:e.tlsDataReady,dataReady:e.dataReady,heartbeatReceived:e.heartbeatReceived,closed:e.closed,error:function(r,i){i.origin=i.origin||(r.entity===s.ConnectionEnd.client?"client":"server");if(i.send){s.queue(r,s.createAlert(r,i.alert));s.flush(r)}var n=i.fatal!==false;if(n){r.fail=true}e.error(r,i);if(n){r.close(false)}},deflate:e.deflate||null,inflate:e.inflate||null};p.reset=function(e){p.version={major:s.Version.major,minor:s.Version.minor};p.record=null;p.session=null;p.peerCertificate=null;p.state={pending:null,current:null};p.expect=p.entity===s.ConnectionEnd.client?a:y;p.fragmented=null;p.records=[];p.open=false;p.handshakes=0;p.handshaking=false;p.isConnected=false;p.fail=!(e||typeof e==="undefined");p.input.clear();p.tlsData.clear();p.data.clear();p.state.current=s.createConnectionState(p)};p.reset();var _update=function(e,r){var i=r.type-s.ContentType.change_cipher_spec;var n=j[e.entity][e.expect];if(i in n){n[i](e,r)}else{s.handleUnexpected(e,r)}};var _readRecordHeader=function(e){var r=0;var i=e.input;var a=i.length();if(a<5){r=5-a}else{e.record={type:i.getByte(),version:{major:i.getByte(),minor:i.getByte()},length:i.getInt16(),fragment:n.util.createBuffer(),ready:false};var o=e.record.version.major===e.version.major;if(o&&e.session&&e.session.version){o=e.record.version.minor===e.version.minor}if(!o){e.error(e,{message:"Incompatible TLS version.",send:true,alert:{level:s.Alert.Level.fatal,description:s.Alert.Description.protocol_version}})}}return r};var _readRecord=function(e){var r=0;var i=e.input;var n=i.length();if(n0){if(p.sessionCache){r=p.sessionCache.getSession(e)}if(r===null){e=""}}if(e.length===0&&p.sessionCache){r=p.sessionCache.getSession();if(r!==null){e=r.id}}p.session={id:e,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:n.md.md5.create(),sha1:n.md.sha1.create()};if(r){p.version=r.version;p.session.sp=r.sp}p.session.sp.client_random=s.createRandom().getBytes();p.open=true;s.queue(p,s.createRecord(p,{type:s.ContentType.handshake,data:s.createClientHello(p)}));s.flush(p)}};p.process=function(e){var r=0;if(e){p.input.putBytes(e)}if(!p.fail){if(p.record!==null&&p.record.ready&&p.record.fragment.isEmpty()){p.record=null}if(p.record===null){r=_readRecordHeader(p)}if(!p.fail&&p.record!==null&&!p.record.ready){r=_readRecord(p)}if(!p.fail&&p.record!==null&&p.record.ready){_update(p,p.record)}}return r};p.prepare=function(e){s.queue(p,s.createRecord(p,{type:s.ContentType.application_data,data:n.util.createBuffer(e)}));return s.flush(p)};p.prepareHeartbeatRequest=function(e,r){if(e instanceof n.util.ByteBuffer){e=e.bytes()}if(typeof r==="undefined"){r=e.length}p.expectedHeartbeatPayload=e;s.queue(p,s.createRecord(p,{type:s.ContentType.heartbeat,data:s.createHeartbeat(s.HeartbeatMessageType.heartbeat_request,e,r)}));return s.flush(p)};p.close=function(e){if(!p.fail&&p.sessionCache&&p.session){var r={id:p.session.id,version:p.session.version,sp:p.session.sp};r.sp.keys=null;p.sessionCache.setSession(r.id,r)}if(p.open){p.open=false;p.input.clear();if(p.isConnected||p.handshaking){p.isConnected=p.handshaking=false;s.queue(p,s.createAlert(p,{level:s.Alert.Level.warning,description:s.Alert.Description.close_notify}));s.flush(p)}p.closed(p)}p.reset(e)};return p};e.exports=n.tls=n.tls||{};for(var Y in s){if(typeof s[Y]!=="function"){n.tls[Y]=s[Y]}}n.tls.prf_tls1=prf_TLS1;n.tls.hmac_sha1=hmac_sha1;n.tls.createSessionCache=s.createSessionCache;n.tls.createConnection=s.createConnection},8339:(e,r,i)=>{var n=i(9177);var s=i(2300);var a=e.exports=n.util=n.util||{};(function(){if(typeof process!=="undefined"&&process.nextTick&&!process.browser){a.nextTick=process.nextTick;if(typeof setImmediate==="function"){a.setImmediate=setImmediate}else{a.setImmediate=a.nextTick}return}if(typeof setImmediate==="function"){a.setImmediate=function(){return setImmediate.apply(undefined,arguments)};a.nextTick=function(e){return setImmediate(e)};return}a.setImmediate=function(e){setTimeout(e,0)};if(typeof window!=="undefined"&&typeof window.postMessage==="function"){var e="forge.setImmediate";var r=[];a.setImmediate=function(i){r.push(i);if(r.length===1){window.postMessage(e,"*")}};function handler(i){if(i.source===window&&i.data===e){i.stopPropagation();var n=r.slice();r.length=0;n.forEach((function(e){e()}))}}window.addEventListener("message",handler,true)}if(typeof MutationObserver!=="undefined"){var i=Date.now();var n=true;var s=document.createElement("div");var r=[];new MutationObserver((function(){var e=r.slice();r.length=0;e.forEach((function(e){e()}))})).observe(s,{attributes:true});var o=a.setImmediate;a.setImmediate=function(e){if(Date.now()-i>15){i=Date.now();o(e)}else{r.push(e);if(r.length===1){s.setAttribute("a",n=!n)}}}}a.nextTick=a.setImmediate})();a.isNodejs=typeof process!=="undefined"&&process.versions&&process.versions.node;a.globalScope=function(){if(a.isNodejs){return global}return typeof self==="undefined"?window:self}();a.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};a.isArrayBuffer=function(e){return typeof ArrayBuffer!=="undefined"&&e instanceof ArrayBuffer};a.isArrayBufferView=function(e){return e&&a.isArrayBuffer(e.buffer)&&e.byteLength!==undefined};function _checkBitsParam(e){if(!(e===8||e===16||e===24||e===32)){throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}}a.ByteBuffer=ByteStringBuffer;function ByteStringBuffer(e){this.data="";this.read=0;if(typeof e==="string"){this.data=e}else if(a.isArrayBuffer(e)||a.isArrayBufferView(e)){if(typeof Buffer!=="undefined"&&e instanceof Buffer){this.data=e.toString("binary")}else{var r=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,r)}catch(e){for(var i=0;io){this.data.substr(0,1);this._constructedStringLength=0}};a.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read};a.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0};a.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))};a.ByteStringBuffer.prototype.fillWithByte=function(e,r){e=String.fromCharCode(e);var i=this.data;while(r>0){if(r&1){i+=e}r>>>=1;if(r>0){e+=e}}this.data=i;this._optimizeConstructedString(r);return this};a.ByteStringBuffer.prototype.putBytes=function(e){this.data+=e;this._optimizeConstructedString(e.length);return this};a.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(a.encodeUtf8(e))};a.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};a.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};a.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};a.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255))};a.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))};a.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))};a.ByteStringBuffer.prototype.putInt=function(e,r){_checkBitsParam(r);var i="";do{r-=8;i+=String.fromCharCode(e>>r&255)}while(r>0);return this.putBytes(i)};a.ByteStringBuffer.prototype.putSignedInt=function(e,r){if(e<0){e+=2<0);return r};a.ByteStringBuffer.prototype.getSignedInt=function(e){var r=this.getInt(e);var i=2<=i){r-=i<<1}return r};a.ByteStringBuffer.prototype.getBytes=function(e){var r;if(e){e=Math.min(this.length(),e);r=this.data.slice(this.read,this.read+e);this.read+=e}else if(e===0){r=""}else{r=this.read===0?this.data:this.data.slice(this.read);this.clear()}return r};a.ByteStringBuffer.prototype.bytes=function(e){return typeof e==="undefined"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)};a.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)};a.ByteStringBuffer.prototype.setAt=function(e,r){this.data=this.data.substr(0,this.read+e)+String.fromCharCode(r)+this.data.substr(this.read+e+1);return this};a.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)};a.ByteStringBuffer.prototype.copy=function(){var e=a.createBuffer(this.data);e.read=this.read;return e};a.ByteStringBuffer.prototype.compact=function(){if(this.read>0){this.data=this.data.slice(this.read);this.read=0}return this};a.ByteStringBuffer.prototype.clear=function(){this.data="";this.read=0;return this};a.ByteStringBuffer.prototype.truncate=function(e){var r=Math.max(0,this.length()-e);this.data=this.data.substr(this.read,r);this.read=0;return this};a.ByteStringBuffer.prototype.toHex=function(){var e="";for(var r=this.read;r=e){return this}r=Math.max(r||this.growSize,e);var i=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength);var n=new Uint8Array(this.length()+r);n.set(i);this.data=new DataView(n.buffer);return this};a.DataBuffer.prototype.putByte=function(e){this.accommodate(1);this.data.setUint8(this.write++,e);return this};a.DataBuffer.prototype.fillWithByte=function(e,r){this.accommodate(r);for(var i=0;i>8&65535);this.data.setInt8(this.write,e>>16&255);this.write+=3;return this};a.DataBuffer.prototype.putInt32=function(e){this.accommodate(4);this.data.setInt32(this.write,e);this.write+=4;return this};a.DataBuffer.prototype.putInt16Le=function(e){this.accommodate(2);this.data.setInt16(this.write,e,true);this.write+=2;return this};a.DataBuffer.prototype.putInt24Le=function(e){this.accommodate(3);this.data.setInt8(this.write,e>>16&255);this.data.setInt16(this.write,e>>8&65535,true);this.write+=3;return this};a.DataBuffer.prototype.putInt32Le=function(e){this.accommodate(4);this.data.setInt32(this.write,e,true);this.write+=4;return this};a.DataBuffer.prototype.putInt=function(e,r){_checkBitsParam(r);this.accommodate(r/8);do{r-=8;this.data.setInt8(this.write++,e>>r&255)}while(r>0);return this};a.DataBuffer.prototype.putSignedInt=function(e,r){_checkBitsParam(r);this.accommodate(r/8);if(e<0){e+=2<0);return r};a.DataBuffer.prototype.getSignedInt=function(e){var r=this.getInt(e);var i=2<=i){r-=i<<1}return r};a.DataBuffer.prototype.getBytes=function(e){var r;if(e){e=Math.min(this.length(),e);r=this.data.slice(this.read,this.read+e);this.read+=e}else if(e===0){r=""}else{r=this.read===0?this.data:this.data.slice(this.read);this.clear()}return r};a.DataBuffer.prototype.bytes=function(e){return typeof e==="undefined"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)};a.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)};a.DataBuffer.prototype.setAt=function(e,r){this.data.setUint8(e,r);return this};a.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)};a.DataBuffer.prototype.copy=function(){return new a.DataBuffer(this)};a.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read);var r=new Uint8Array(e.byteLength);r.set(e);this.data=new DataView(r);this.write-=this.read;this.read=0}return this};a.DataBuffer.prototype.clear=function(){this.data=new DataView(new ArrayBuffer(0));this.read=this.write=0;return this};a.DataBuffer.prototype.truncate=function(e){this.write=Math.max(0,this.length()-e);this.read=Math.min(this.read,this.write);return this};a.DataBuffer.prototype.toHex=function(){var e="";for(var r=this.read;r0){if(r&1){i+=e}r>>>=1;if(r>0){e+=e}}return i};a.xorBytes=function(e,r,i){var n="";var s="";var a="";var o=0;var c=0;for(;i>0;--i,++o){s=e.charCodeAt(o)^r.charCodeAt(o);if(c>=10){n+=a;a="";c=0}a+=String.fromCharCode(s);++c}n+=a;return n};a.hexToBytes=function(e){var r="";var i=0;if(e.length&1==1){i=1;r+=String.fromCharCode(parseInt(e[0],16))}for(;i>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var l=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];var p="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";a.encode64=function(e,r){var i="";var n="";var s,a,o;var l=0;while(l>2);i+=c.charAt((s&3)<<4|a>>4);if(isNaN(a)){i+="=="}else{i+=c.charAt((a&15)<<2|o>>6);i+=isNaN(o)?"=":c.charAt(o&63)}if(r&&i.length>r){n+=i.substr(0,r)+"\r\n";i=i.substr(r)}}n+=i;return n};a.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");var r="";var i,n,s,a;var o=0;while(o>4);if(s!==64){r+=String.fromCharCode((n&15)<<4|s>>2);if(a!==64){r+=String.fromCharCode((s&3)<<6|a)}}}return r};a.encodeUtf8=function(e){return unescape(encodeURIComponent(e))};a.decodeUtf8=function(e){return decodeURIComponent(escape(e))};a.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:s.encode,decode:s.decode}};a.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)};a.binary.raw.decode=function(e,r,i){var n=r;if(!n){n=new Uint8Array(e.length)}i=i||0;var s=i;for(var a=0;a>2);i+=c.charAt((s&3)<<4|a>>4);if(isNaN(a)){i+="=="}else{i+=c.charAt((a&15)<<2|o>>6);i+=isNaN(o)?"=":c.charAt(o&63)}if(r&&i.length>r){n+=i.substr(0,r)+"\r\n";i=i.substr(r)}}n+=i;return n};a.binary.base64.decode=function(e,r,i){var n=r;if(!n){n=new Uint8Array(Math.ceil(e.length/4)*3)}e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");i=i||0;var s,a,o,c;var p=0,d=i;while(p>4;if(o!==64){n[d++]=(a&15)<<4|o>>2;if(c!==64){n[d++]=(o&3)<<6|c}}}return r?d-i:n.subarray(0,d)};a.binary.base58.encode=function(e,r){return a.binary.baseN.encode(e,p,r)};a.binary.base58.decode=function(e,r){return a.binary.baseN.decode(e,p,r)};a.text={utf8:{},utf16:{}};a.text.utf8.encode=function(e,r,i){e=a.encodeUtf8(e);var n=r;if(!n){n=new Uint8Array(e.length)}i=i||0;var s=i;for(var o=0;o0){a.push(n)}o=r.lastIndex;var c=i[0][1];switch(c){case"s":case"o":if(s")}break;case"%":a.push("%");break;default:a.push("<%"+c+"?>")}}a.push(e.substring(o));return a.join("")};a.formatNumber=function(e,r,i,n){var s=e,a=isNaN(r=Math.abs(r))?2:r;var o=i===undefined?",":i;var c=n===undefined?".":n,l=s<0?"-":"";var p=parseInt(s=Math.abs(+s||0).toFixed(a),10)+"";var d=p.length>3?p.length%3:0;return l+(d?p.substr(0,d)+c:"")+p.substr(d).replace(/(\d{3})(?=\d)/g,"$1"+c)+(a?o+Math.abs(s-p).toFixed(a).slice(2):"")};a.formatSize=function(e){if(e>=1073741824){e=a.formatNumber(e/1073741824,2,".","")+" GiB"}else if(e>=1048576){e=a.formatNumber(e/1048576,2,".","")+" MiB"}else if(e>=1024){e=a.formatNumber(e/1024,0)+" KiB"}else{e=a.formatNumber(e,0)+" bytes"}return e};a.bytesFromIP=function(e){if(e.indexOf(".")!==-1){return a.bytesFromIPv4(e)}if(e.indexOf(":")!==-1){return a.bytesFromIPv6(e)}return null};a.bytesFromIPv4=function(e){e=e.split(".");if(e.length!==4){return null}var r=a.createBuffer();for(var i=0;ii[n].end-i[n].start){n=i.length-1}}}r.push(o)}if(i.length>0){var p=i[n];if(p.end-p.start>0){r.splice(p.start,p.end-p.start+1,"");if(p.start===0){r.unshift("")}if(p.end===7){r.push("")}}}return r.join(":")};a.estimateCores=function(e,r){if(typeof e==="function"){r=e;e={}}e=e||{};if("cores"in a&&!e.update){return r(null,a.cores)}if(typeof navigator!=="undefined"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0){a.cores=navigator.hardwareConcurrency;return r(null,a.cores)}if(typeof Worker==="undefined"){a.cores=1;return r(null,a.cores)}if(typeof Blob==="undefined"){a.cores=2;return r(null,a.cores)}var i=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",(function(e){var r=Date.now();var i=r+4;while(Date.now()c.st&&s.sts.st&&c.st{var n=i(9177);i(7994);i(9549);i(7157);i(6231);i(7973);i(1925);i(154);i(4376);i(3921);i(8339);var s=n.asn1;var a=e.exports=n.pki=n.pki||{};var o=a.oids;var c={};c["CN"]=o["commonName"];c["commonName"]="CN";c["C"]=o["countryName"];c["countryName"]="C";c["L"]=o["localityName"];c["localityName"]="L";c["ST"]=o["stateOrProvinceName"];c["stateOrProvinceName"]="ST";c["O"]=o["organizationName"];c["organizationName"]="O";c["OU"]=o["organizationalUnitName"];c["organizationalUnitName"]="OU";c["E"]=o["emailAddress"];c["emailAddress"]="E";var l=n.pki.rsa.publicKeyValidator;var p={name:"Certificate",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.TBSCertificate",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:s.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:s.Class.UNIVERSAL,optional:true,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:s.Class.UNIVERSAL,type:s.Type.UTCTIME,constructed:false,optional:true,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:s.Class.UNIVERSAL,type:s.Type.GENERALIZEDTIME,constructed:false,optional:true,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:s.Class.UNIVERSAL,type:s.Type.UTCTIME,constructed:false,optional:true,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:s.Class.UNIVERSAL,type:s.Type.GENERALIZEDTIME,constructed:false,optional:true,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,captureAsn1:"certSubject"},l,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:s.Class.CONTEXT_SPECIFIC,type:1,constructed:true,optional:true,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:s.Class.UNIVERSAL,type:s.Type.BITSTRING,constructed:false,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:s.Class.CONTEXT_SPECIFIC,type:2,constructed:true,optional:true,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:s.Class.UNIVERSAL,type:s.Type.BITSTRING,constructed:false,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:s.Class.CONTEXT_SPECIFIC,type:3,constructed:true,captureAsn1:"certExtensions",optional:true}]},{name:"Certificate.signatureAlgorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:s.Class.UNIVERSAL,optional:true,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:s.Class.UNIVERSAL,type:s.Type.BITSTRING,constructed:false,captureBitStringValue:"certSignature"}]};var d={name:"rsapss",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"rsapss.hashAlgorithm",tagClass:s.Class.CONTEXT_SPECIFIC,type:0,constructed:true,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:s.Class.UNIVERSAL,type:s.Class.SEQUENCE,constructed:true,optional:true,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:s.Class.CONTEXT_SPECIFIC,type:1,constructed:true,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:s.Class.UNIVERSAL,type:s.Class.SEQUENCE,constructed:true,optional:true,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:s.Class.CONTEXT_SPECIFIC,type:2,optional:true,value:[{name:"rsapss.saltLength.saltLength",tagClass:s.Class.UNIVERSAL,type:s.Class.INTEGER,constructed:false,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:s.Class.CONTEXT_SPECIFIC,type:3,optional:true,value:[{name:"rsapss.trailer.trailer",tagClass:s.Class.UNIVERSAL,type:s.Class.INTEGER,constructed:false,capture:"trailer"}]}]};var h={name:"CertificationRequestInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,captureAsn1:"certificationRequestInfoSubject"},l,{name:"CertificationRequestInfo.attributes",tagClass:s.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false},{name:"CertificationRequestInfo.attributes.value",tagClass:s.Class.UNIVERSAL,type:s.Type.SET,constructed:true}]}]}]};var g={name:"CertificationRequest",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,captureAsn1:"csr",value:[h,{name:"CertificationRequest.signatureAlgorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:s.Class.UNIVERSAL,optional:true,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:s.Class.UNIVERSAL,type:s.Type.BITSTRING,constructed:false,captureBitStringValue:"csrSignature"}]};a.RDNAttributesAsArray=function(e,r){var i=[];var n,a,l;for(var p=0;p2){throw new Error("Cannot read notBefore/notAfter validity times; more "+"than two times were provided in the certificate.")}if(g.length<2){throw new Error("Cannot read notBefore/notAfter validity times; they "+"were not provided as either UTCTime or GeneralizedTime.")}d.validity.notBefore=g[0];d.validity.notAfter=g[1];d.tbsCertificate=i.tbsCertificate;if(r){d.md=_createSignatureDigest({signatureOid:d.signatureOid,type:"certificate"});var v=s.toDer(d.tbsCertificate);d.md.update(v.getBytes())}var y=n.md.sha1.create();var b=s.toDer(i.certIssuer);y.update(b.getBytes());d.issuer.getField=function(e){return _getAttribute(d.issuer,e)};d.issuer.addField=function(e){_fillMissingFields([e]);d.issuer.attributes.push(e)};d.issuer.attributes=a.RDNAttributesAsArray(i.certIssuer);if(i.certIssuerUniqueId){d.issuer.uniqueId=i.certIssuerUniqueId}d.issuer.hash=y.digest().toHex();var E=n.md.sha1.create();var x=s.toDer(i.certSubject);E.update(x.getBytes());d.subject.getField=function(e){return _getAttribute(d.subject,e)};d.subject.addField=function(e){_fillMissingFields([e]);d.subject.attributes.push(e)};d.subject.attributes=a.RDNAttributesAsArray(i.certSubject);if(i.certSubjectUniqueId){d.subject.uniqueId=i.certSubjectUniqueId}d.subject.hash=E.digest().toHex();if(i.certExtensions){d.extensions=a.certificateExtensionsFromAsn1(i.certExtensions)}else{d.extensions=[]}d.publicKey=a.publicKeyFromAsn1(i.subjectPublicKeyInfo);return d};a.certificateExtensionsFromAsn1=function(e){var r=[];for(var i=0;i1){a=i.value.charCodeAt(1);c=i.value.length>2?i.value.charCodeAt(2):0}r.digitalSignature=(a&128)===128;r.nonRepudiation=(a&64)===64;r.keyEncipherment=(a&32)===32;r.dataEncipherment=(a&16)===16;r.keyAgreement=(a&8)===8;r.keyCertSign=(a&4)===4;r.cRLSign=(a&2)===2;r.encipherOnly=(a&1)===1;r.decipherOnly=(c&128)===128}else if(r.name==="basicConstraints"){var i=s.fromDer(r.value);if(i.value.length>0&&i.value[0].type===s.Type.BOOLEAN){r.cA=i.value[0].value.charCodeAt(0)!==0}else{r.cA=false}var l=null;if(i.value.length>0&&i.value[0].type===s.Type.INTEGER){l=i.value[0].value}else if(i.value.length>1){l=i.value[1].value}if(l!==null){r.pathLenConstraint=s.derToInteger(l)}}else if(r.name==="extKeyUsage"){var i=s.fromDer(r.value);for(var p=0;p1){a=i.value.charCodeAt(1)}r.client=(a&128)===128;r.server=(a&64)===64;r.email=(a&32)===32;r.objsign=(a&16)===16;r.reserved=(a&8)===8;r.sslCA=(a&4)===4;r.emailCA=(a&2)===2;r.objCA=(a&1)===1}else if(r.name==="subjectAltName"||r.name==="issuerAltName"){r.altNames=[];var h;var i=s.fromDer(r.value);for(var g=0;g128){throw new Error('Invalid "nsComment" content.')}e.value=s.create(s.Class.UNIVERSAL,s.Type.IA5STRING,false,e.comment)}else if(e.name==="subjectKeyIdentifier"&&r.cert){var b=r.cert.generateSubjectKeyIdentifier();e.subjectKeyIdentifier=b.toHex();e.value=s.create(s.Class.UNIVERSAL,s.Type.OCTETSTRING,false,b.getBytes())}else if(e.name==="authorityKeyIdentifier"&&r.cert){e.value=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[]);var h=e.value.value;if(e.keyIdentifier){var E=e.keyIdentifier===true?r.cert.generateSubjectKeyIdentifier().getBytes():e.keyIdentifier;h.push(s.create(s.Class.CONTEXT_SPECIFIC,0,false,E))}if(e.authorityCertIssuer){var x=[s.create(s.Class.CONTEXT_SPECIFIC,4,true,[_dnToAsn1(e.authorityCertIssuer===true?r.cert.issuer:e.authorityCertIssuer)])];h.push(s.create(s.Class.CONTEXT_SPECIFIC,1,true,x))}if(e.serialNumber){var w=n.util.hexToBytes(e.serialNumber===true?r.cert.serialNumber:e.serialNumber);h.push(s.create(s.Class.CONTEXT_SPECIFIC,2,false,w))}}else if(e.name==="cRLDistributionPoints"){e.value=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[]);var h=e.value.value;var T=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[]);var _=s.create(s.Class.CONTEXT_SPECIFIC,0,true,[]);var v;for(var y=0;y=v&&e0){o.value.push(a.certificateExtensionsToAsn1(e.extensions))}return o};a.getCertificationRequestInfo=function(e){var r=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.INTEGER,false,s.integerToDer(e.version).getBytes()),_dnToAsn1(e.subject),a.publicKeyToAsn1(e.publicKey),_CRIAttributesToAsn1(e)]);return r};a.distinguishedNameToAsn1=function(e){return _dnToAsn1(e)};a.certificateToAsn1=function(e){var r=e.tbsCertificate||a.getTBSCertificate(e);return s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[r,s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.OID,false,s.oidToDer(e.signatureOid).getBytes()),_signatureParametersToAsn1(e.signatureOid,e.signatureParameters)]),s.create(s.Class.UNIVERSAL,s.Type.BITSTRING,false,String.fromCharCode(0)+e.signature)])};a.certificateExtensionsToAsn1=function(e){var r=s.create(s.Class.CONTEXT_SPECIFIC,3,true,[]);var i=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[]);r.value.push(i);for(var n=0;nd.validity.notAfter){l={message:"Certificate is not valid yet or has expired.",error:a.certificateError.certificate_expired,notBefore:d.validity.notBefore,notAfter:d.validity.notAfter,now:o}}}if(l===null){h=r[0]||e.getIssuer(d);if(h===null){if(d.isIssuer(d)){g=true;h=d}}if(h){var v=h;if(!n.util.isArray(v)){v=[v]}var y=false;while(!y&&v.length>0){h=v.shift();try{y=h.verify(d)}catch(e){}}if(!y){l={message:"Certificate signature is invalid.",error:a.certificateError.bad_certificate}}}if(l===null&&(!h||g)&&!e.hasCertificate(d)){l={message:"Certificate is not trusted.",error:a.certificateError.unknown_ca}}}if(l===null&&h&&!d.isIssuer(h)){l={message:"Certificate issuer is invalid.",error:a.certificateError.bad_certificate}}if(l===null){var b={keyUsage:true,basicConstraints:true};for(var E=0;l===null&&Ew.pathLenConstraint){l={message:"Certificate basicConstraints pathLenConstraint violated.",error:a.certificateError.bad_certificate}}}}var C=l===null?true:l.error;var R=i.verify?i.verify(C,p,s):C;if(R===true){l=null}else{if(C===true){l={message:"The application rejected the certificate.",error:a.certificateError.bad_certificate}}if(R||R===0){if(typeof R==="object"&&!n.util.isArray(R)){if(R.message){l.message=R.message}if(R.error){l.error=R.error}}else if(typeof R==="string"){l.error=R}}throw l}c=false;++p}while(r.length>0);return true}},1223:(e,r,i)=>{var n=i(2940);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";f.onceError=r+" shouldn't be called more than once";f.called=false;return f}},7684:(e,r,i)=>{"use strict";const n=i(5185);const pLimit=e=>{if(!((Number.isInteger(e)||e===Infinity)&&e>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const r=new n;let i=0;const next=()=>{i--;if(r.size>0){r.dequeue()()}};const run=async(e,r,...n)=>{i++;const s=(async()=>e(...n))();r(s);try{await s}catch{}next()};const enqueue=(n,s,...a)=>{r.enqueue(run.bind(null,n,s,...a));(async()=>{await Promise.resolve();if(i0){r.dequeue()()}})()};const generator=(e,...r)=>new Promise((i=>{enqueue(e,i,...r)}));Object.defineProperties(generator,{activeCount:{get:()=>i},pendingCount:{get:()=>r.size},clearQueue:{value:()=>{r.clear()}}});return generator};e.exports=pLimit},8714:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var r=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var i=r.exec(e);var n=i[1]||"";var s=Boolean(n&&n.charAt(1)!==":");return Boolean(i[2]||s)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},8341:(e,r,i)=>{var n=i(1223);var s=i(1205);var a=i(7147);var noop=function(){};var o=/^v?\.0/.test(process.version);var isFn=function(e){return typeof e==="function"};var isFS=function(e){if(!o)return false;if(!a)return false;return(e instanceof(a.ReadStream||noop)||e instanceof(a.WriteStream||noop))&&isFn(e.close)};var isRequest=function(e){return e.setHeader&&isFn(e.abort)};var destroyer=function(e,r,i,a){a=n(a);var o=false;e.on("close",(function(){o=true}));s(e,{readable:r,writable:i},(function(e){if(e)return a(e);o=true;a()}));var c=false;return function(r){if(o)return;if(c)return;c=true;if(isFS(e))return e.close(noop);if(isRequest(e))return e.abort();if(isFn(e.destroy))return e.destroy();a(r||new Error("stream was destroyed"))}};var call=function(e){e()};var pipe=function(e,r){return e.pipe(r)};var pump=function(){var e=Array.prototype.slice.call(arguments);var r=isFn(e[e.length-1]||noop)&&e.pop()||noop;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var i;var n=e.map((function(s,a){var o=a0;return destroyer(s,o,c,(function(e){if(!i)i=e;if(e)n.forEach(call);if(o)return;n.forEach(call);r(i)}))}));return e.reduce(pipe)};e.exports=pump},212:(e,r,i)=>{var n=i(8341);var s=i(4124);var a=i(6599);var toArray=function(e){if(!e.length)return[];return Array.isArray(e[0])?e[0]:Array.prototype.slice.call(e)};var define=function(e){var Pumpify=function(){var r=toArray(arguments);if(!(this instanceof Pumpify))return new Pumpify(r);a.call(this,null,null,e);if(r.length)this.setPipeline(r)};s(Pumpify,a);Pumpify.prototype.setPipeline=function(){var e=toArray(arguments);var r=this;var i=false;var s=e[0];var a=e[e.length-1];a=a.readable?a:null;s=s.writable?s:null;var onclose=function(){e[0].emit("error",new Error("stream was destroyed"))};this.on("close",onclose);this.on("prefinish",(function(){if(!i)r.cork()}));n(e,(function(e){r.removeListener("close",onclose);if(e)return r.destroy(e.message==="premature close"?null:e);i=true;if(r._autoDestroy===false)r._autoDestroy=true;r.uncork()}));if(this.destroyed)return onclose();this.setWritable(s);this.setReadable(a)};return Pumpify};e.exports=define({autoDestroy:false,destroy:false});e.exports.obj=define({autoDestroy:false,destroy:false,objectMode:true,highWaterMark:16});e.exports.ctor=define},7214:e=>{"use strict";const r={};function createErrorType(e,i,n){if(!n){n=Error}function getMessage(e,r,n){if(typeof i==="string"){return i}else{return i(e,r,n)}}class NodeError extends n{constructor(e,r,i){super(getMessage(e,r,i))}}NodeError.prototype.name=n.name;NodeError.prototype.code=e;r[e]=NodeError}function oneOf(e,r){if(Array.isArray(e)){const i=e.length;e=e.map((e=>String(e)));if(i>2){return`one of ${r} ${e.slice(0,i-1).join(", ")}, or `+e[i-1]}else if(i===2){return`one of ${r} ${e[0]} or ${e[1]}`}else{return`of ${r} ${e[0]}`}}else{return`of ${r} ${String(e)}`}}function startsWith(e,r,i){return e.substr(!i||i<0?0:+i,r.length)===r}function endsWith(e,r,i){if(i===undefined||i>e.length){i=e.length}return e.substring(i-r.length,i)===r}function includes(e,r,i){if(typeof i!=="number"){i=0}if(i+r.length>e.length){return false}else{return e.indexOf(r,i)!==-1}}createErrorType("ERR_INVALID_OPT_VALUE",(function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'}),TypeError);createErrorType("ERR_INVALID_ARG_TYPE",(function(e,r,i){let n;if(typeof r==="string"&&startsWith(r,"not ")){n="must not be";r=r.replace(/^not /,"")}else{n="must be"}let s;if(endsWith(e," argument")){s=`The ${e} ${n} ${oneOf(r,"type")}`}else{const i=includes(e,".")?"property":"argument";s=`The "${e}" ${i} ${n} ${oneOf(r,"type")}`}s+=`. Received type ${typeof i}`;return s}),TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"}));createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"}));createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");e.exports.q=r},1359:(e,r,i)=>{"use strict";var n=Object.keys||function(e){var r=[];for(var i in e){r.push(i)}return r};e.exports=Duplex;var s=i(1433);var a=i(6993);i(4124)(Duplex,s);{var o=n(a.prototype);for(var c=0;c{"use strict";e.exports=PassThrough;var n=i(4415);i(4124)(PassThrough,n);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);n.call(this,e)}PassThrough.prototype._transform=function(e,r,i){i(null,e)}},1433:(e,r,i)=>{"use strict";e.exports=Readable;var n;Readable.ReadableState=ReadableState;var s=i(2361).EventEmitter;var a=function EElistenerCount(e,r){return e.listeners(r).length};var o=i(2387);var c=i(4300).Buffer;var l=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof l}var p=i(3837);var d;if(p&&p.debuglog){d=p.debuglog("stream")}else{d=function debug(){}}var h=i(6522);var g=i(7049);var v=i(9948),y=v.getHighWaterMark;var b=i(7214).q,E=b.ERR_INVALID_ARG_TYPE,x=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,T=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var _;var C;var R;i(4124)(Readable,o);var I=g.errorOrDestroy;var O=["error","close","destroy","pause","resume"];function prependListener(e,r,i){if(typeof e.prependListener==="function")return e.prependListener(r,i);if(!e._events||!e._events[r])e.on(r,i);else if(Array.isArray(e._events[r]))e._events[r].unshift(i);else e._events[r]=[i,e._events[r]]}function ReadableState(e,r,s){n=n||i(1359);e=e||{};if(typeof s!=="boolean")s=r instanceof n;this.objectMode=!!e.objectMode;if(s)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=y(this,e,"readableHighWaterMark",s);this.buffer=new h;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.paused=true;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!_)_=i(4841).s;this.decoder=new _(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||i(1359);if(!(this instanceof Readable))return new Readable(e);var r=this instanceof n;this._readableState=new ReadableState(e,this,r);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}o.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:false,get:function get(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function set(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=g.destroy;Readable.prototype._undestroy=g.undestroy;Readable.prototype._destroy=function(e,r){r(e)};Readable.prototype.push=function(e,r){var i=this._readableState;var n;if(!i.objectMode){if(typeof e==="string"){r=r||i.defaultEncoding;if(r!==i.encoding){e=c.from(e,r);r=""}n=true}}else{n=true}return readableAddChunk(this,e,r,false,n)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,r,i,n,s){d("readableAddChunk",r);var a=e._readableState;if(r===null){a.reading=false;onEofChunk(e,a)}else{var o;if(!s)o=chunkInvalid(a,r);if(o){I(e,o)}else if(a.objectMode||r&&r.length>0){if(typeof r!=="string"&&!a.objectMode&&Object.getPrototypeOf(r)!==c.prototype){r=_uint8ArrayToBuffer(r)}if(n){if(a.endEmitted)I(e,new T);else addChunk(e,a,r,true)}else if(a.ended){I(e,new x)}else if(a.destroyed){return false}else{a.reading=false;if(a.decoder&&!i){r=a.decoder.write(r);if(a.objectMode||r.length!==0)addChunk(e,a,r,false);else maybeReadMore(e,a)}else{addChunk(e,a,r,false)}}}else if(!n){a.reading=false;maybeReadMore(e,a)}}return!a.ended&&(a.length=P){e=P}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,r){if(e<=0||r.length===0&&r.ended)return 0;if(r.objectMode)return 1;if(e!==e){if(r.flowing&&r.length)return r.buffer.head.data.length;else return r.length}if(e>r.highWaterMark)r.highWaterMark=computeNewHighWaterMark(e);if(e<=r.length)return e;if(!r.ended){r.needReadable=true;return 0}return r.length}Readable.prototype.read=function(e){d("read",e);e=parseInt(e,10);var r=this._readableState;var i=e;if(e!==0)r.emittedReadable=false;if(e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended)){d("read: emitReadable",r.length,r.ended);if(r.length===0&&r.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,r);if(e===0&&r.ended){if(r.length===0)endReadable(this);return null}var n=r.needReadable;d("need readable",n);if(r.length===0||r.length-e0)s=fromList(e,r);else s=null;if(s===null){r.needReadable=r.length<=r.highWaterMark;e=0}else{r.length-=e;r.awaitDrain=0}if(r.length===0){if(!r.ended)r.needReadable=true;if(i!==e&&r.ended)endReadable(this)}if(s!==null)this.emit("data",s);return s};function onEofChunk(e,r){d("onEofChunk");if(r.ended)return;if(r.decoder){var i=r.decoder.end();if(i&&i.length){r.buffer.push(i);r.length+=r.objectMode?1:i.length}}r.ended=true;if(r.sync){emitReadable(e)}else{r.needReadable=false;if(!r.emittedReadable){r.emittedReadable=true;emitReadable_(e)}}}function emitReadable(e){var r=e._readableState;d("emitReadable",r.needReadable,r.emittedReadable);r.needReadable=false;if(!r.emittedReadable){d("emitReadable",r.flowing);r.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var r=e._readableState;d("emitReadable_",r.destroyed,r.length,r.ended);if(!r.destroyed&&(r.length||r.ended)){e.emit("readable");r.emittedReadable=false}r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark;flow(e)}function maybeReadMore(e,r){if(!r.readingMore){r.readingMore=true;process.nextTick(maybeReadMore_,e,r)}}function maybeReadMore_(e,r){while(!r.reading&&!r.ended&&(r.length1&&indexOf(n.pipes,e)!==-1)&&!l){d("false write response, pause",n.awaitDrain);n.awaitDrain++}i.pause()}}function onerror(r){d("onerror",r);unpipe();e.removeListener("error",onerror);if(a(e,"error")===0)I(e,r)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){d("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){d("unpipe");i.unpipe(e)}e.emit("pipe",i);if(!n.flowing){d("pipe resume");i.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var r=e._readableState;d("pipeOnDrain",r.awaitDrain);if(r.awaitDrain)r.awaitDrain--;if(r.awaitDrain===0&&a(e,"data")){r.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var r=this._readableState;var i={hasUnpiped:false};if(r.pipesCount===0)return this;if(r.pipesCount===1){if(e&&e!==r.pipes)return this;if(!e)e=r.pipes;r.pipes=null;r.pipesCount=0;r.flowing=false;if(e)e.emit("unpipe",this,i);return this}if(!e){var n=r.pipes;var s=r.pipesCount;r.pipes=null;r.pipesCount=0;r.flowing=false;for(var a=0;a0;if(n.flowing!==false)this.resume()}else if(e==="readable"){if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.flowing=false;n.emittedReadable=false;d("on readable",n.length,n.reading);if(n.length){emitReadable(this)}else if(!n.reading){process.nextTick(nReadingNextTick,this)}}}return i};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(e,r){var i=o.prototype.removeListener.call(this,e,r);if(e==="readable"){process.nextTick(updateReadableListening,this)}return i};Readable.prototype.removeAllListeners=function(e){var r=o.prototype.removeAllListeners.apply(this,arguments);if(e==="readable"||e===undefined){process.nextTick(updateReadableListening,this)}return r};function updateReadableListening(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0;if(r.resumeScheduled&&!r.paused){r.flowing=true}else if(e.listenerCount("data")>0){e.resume()}}function nReadingNextTick(e){d("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){d("resume");e.flowing=!e.readableListening;resume(this,e)}e.paused=false;return this};function resume(e,r){if(!r.resumeScheduled){r.resumeScheduled=true;process.nextTick(resume_,e,r)}}function resume_(e,r){d("resume",r.reading);if(!r.reading){e.read(0)}r.resumeScheduled=false;e.emit("resume");flow(e);if(r.flowing&&!r.reading)e.read(0)}Readable.prototype.pause=function(){d("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){d("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var r=e._readableState;d("flow",r.flowing);while(r.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var r=this;var i=this._readableState;var n=false;e.on("end",(function(){d("wrapped end");if(i.decoder&&!i.ended){var e=i.decoder.end();if(e&&e.length)r.push(e)}r.push(null)}));e.on("data",(function(s){d("wrapped data");if(i.decoder)s=i.decoder.write(s);if(i.objectMode&&(s===null||s===undefined))return;else if(!i.objectMode&&(!s||!s.length))return;var a=r.push(s);if(!a){n=true;e.pause()}}));for(var s in e){if(this[s]===undefined&&typeof e[s]==="function"){this[s]=function methodWrap(r){return function methodWrapReturnFunction(){return e[r].apply(e,arguments)}}(s)}}for(var a=0;a=r.length){if(r.decoder)i=r.buffer.join("");else if(r.buffer.length===1)i=r.buffer.first();else i=r.buffer.concat(r.length);r.buffer.clear()}else{i=r.buffer.consume(e,r.decoder)}return i}function endReadable(e){var r=e._readableState;d("endReadable",r.endEmitted);if(!r.endEmitted){r.ended=true;process.nextTick(endReadableNT,r,e)}}function endReadableNT(e,r){d("endReadableNT",e.endEmitted,e.length);if(!e.endEmitted&&e.length===0){e.endEmitted=true;r.readable=false;r.emit("end");if(e.autoDestroy){var i=r._writableState;if(!i||i.autoDestroy&&i.finished){r.destroy()}}}}if(typeof Symbol==="function"){Readable.from=function(e,r){if(R===undefined){R=i(9082)}return R(Readable,e,r)}}function indexOf(e,r){for(var i=0,n=e.length;i{"use strict";e.exports=Transform;var n=i(7214).q,s=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0;var l=i(1359);i(4124)(Transform,l);function afterTransform(e,r){var i=this._transformState;i.transforming=false;var n=i.writecb;if(n===null){return this.emit("error",new a)}i.writechunk=null;i.writecb=null;if(r!=null)this.push(r);n(e);var s=this._readableState;s.reading=false;if(s.needReadable||s.length{"use strict";e.exports=Writable;function WriteReq(e,r,i){this.chunk=e;this.encoding=r;this.callback=i;this.next=null}function CorkedRequest(e){var r=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(r,e)}}var n;Writable.WritableState=WritableState;var s={deprecate:i(7127)};var a=i(2387);var o=i(4300).Buffer;var c=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return o.from(e)}function _isUint8Array(e){return o.isBuffer(e)||e instanceof c}var l=i(7049);var p=i(9948),d=p.getHighWaterMark;var h=i(7214).q,g=h.ERR_INVALID_ARG_TYPE,v=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,b=h.ERR_STREAM_CANNOT_PIPE,E=h.ERR_STREAM_DESTROYED,x=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,T=h.ERR_UNKNOWN_ENCODING;var _=l.errorOrDestroy;i(4124)(Writable,a);function nop(){}function WritableState(e,r,s){n=n||i(1359);e=e||{};if(typeof s!=="boolean")s=r instanceof n;this.objectMode=!!e.objectMode;if(s)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=d(this,e,"writableHighWaterMark",s);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var a=e.decodeStrings===false;this.decodeStrings=!a;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(r,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var r=[];while(e){r.push(e);e=e.next}return r};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:s.deprecate((function writableStateBufferGetter(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var C;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){C=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(C.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{C=function realHasInstance(e){return e instanceof this}}function Writable(e){n=n||i(1359);var r=this instanceof n;if(!r&&!C.call(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,r);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}a.call(this)}Writable.prototype.pipe=function(){_(this,new b)};function writeAfterEnd(e,r){var i=new w;_(e,i);process.nextTick(r,i)}function validChunk(e,r,i,n){var s;if(i===null){s=new x}else if(typeof i!=="string"&&!r.objectMode){s=new g("chunk",["string","Buffer"],i)}if(s){_(e,s);process.nextTick(n,s);return false}return true}Writable.prototype.write=function(e,r,i){var n=this._writableState;var s=false;var a=!n.objectMode&&_isUint8Array(e);if(a&&!o.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof r==="function"){i=r;r=null}if(a)r="buffer";else if(!r)r=n.defaultEncoding;if(typeof i!=="function")i=nop;if(n.ending)writeAfterEnd(this,i);else if(a||validChunk(this,n,e,i)){n.pendingcb++;s=writeOrBuffer(this,n,a,e,r,i)}return s};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new T(e);this._writableState.defaultEncoding=e;return this};Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:false,get:function get(){return this._writableState&&this._writableState.getBuffer()}});function decodeChunk(e,r,i){if(!e.objectMode&&e.decodeStrings!==false&&typeof r==="string"){r=o.from(r,i)}return r}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function get(){return this._writableState.highWaterMark}});function writeOrBuffer(e,r,i,n,s,a){if(!i){var o=decodeChunk(r,n,s);if(n!==o){i=true;s="buffer";n=o}}var c=r.objectMode?1:n.length;r.length+=c;var l=r.length{"use strict";var n;function _defineProperty(e,r,i){if(r in e){Object.defineProperty(e,r,{value:i,enumerable:true,configurable:true,writable:true})}else{e[r]=i}return e}var s=i(6080);var a=Symbol("lastResolve");var o=Symbol("lastReject");var c=Symbol("error");var l=Symbol("ended");var p=Symbol("lastPromise");var d=Symbol("handlePromise");var h=Symbol("stream");function createIterResult(e,r){return{value:e,done:r}}function readAndResolve(e){var r=e[a];if(r!==null){var i=e[h].read();if(i!==null){e[p]=null;e[a]=null;e[o]=null;r(createIterResult(i,false))}}}function onReadable(e){process.nextTick(readAndResolve,e)}function wrapForNext(e,r){return function(i,n){e.then((function(){if(r[l]){i(createIterResult(undefined,true));return}r[d](i,n)}),n)}}var g=Object.getPrototypeOf((function(){}));var v=Object.setPrototypeOf((n={get stream(){return this[h]},next:function next(){var e=this;var r=this[c];if(r!==null){return Promise.reject(r)}if(this[l]){return Promise.resolve(createIterResult(undefined,true))}if(this[h].destroyed){return new Promise((function(r,i){process.nextTick((function(){if(e[c]){i(e[c])}else{r(createIterResult(undefined,true))}}))}))}var i=this[p];var n;if(i){n=new Promise(wrapForNext(i,this))}else{var s=this[h].read();if(s!==null){return Promise.resolve(createIterResult(s,false))}n=new Promise(this[d])}this[p]=n;return n}},_defineProperty(n,Symbol.asyncIterator,(function(){return this})),_defineProperty(n,"return",(function _return(){var e=this;return new Promise((function(r,i){e[h].destroy(null,(function(e){if(e){i(e);return}r(createIterResult(undefined,true))}))}))})),n),g);var y=function createReadableStreamAsyncIterator(e){var r;var i=Object.create(v,(r={},_defineProperty(r,h,{value:e,writable:true}),_defineProperty(r,a,{value:null,writable:true}),_defineProperty(r,o,{value:null,writable:true}),_defineProperty(r,c,{value:null,writable:true}),_defineProperty(r,l,{value:e._readableState.endEmitted,writable:true}),_defineProperty(r,d,{value:function value(e,r){var n=i[h].read();if(n){i[p]=null;i[a]=null;i[o]=null;e(createIterResult(n,false))}else{i[a]=e;i[o]=r}},writable:true}),r));i[p]=null;s(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var r=i[o];if(r!==null){i[p]=null;i[a]=null;i[o]=null;r(e)}i[c]=e;return}var n=i[a];if(n!==null){i[p]=null;i[a]=null;i[o]=null;n(createIterResult(undefined,true))}i[l]=true}));e.on("readable",onReadable.bind(null,i));return i};e.exports=y},6522:(e,r,i)=>{"use strict";function ownKeys(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(r)n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}));i.push.apply(i,n)}return i}function _objectSpread(e){for(var r=1;r0)this.tail.next=r;else this.head=r;this.tail=r;++this.length}},{key:"unshift",value:function unshift(e){var r={data:e,next:this.head};if(this.length===0)this.tail=r;this.head=r;++this.length}},{key:"shift",value:function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e}},{key:"clear",value:function clear(){this.head=this.tail=null;this.length=0}},{key:"join",value:function join(e){if(this.length===0)return"";var r=this.head;var i=""+r.data;while(r=r.next){i+=e+r.data}return i}},{key:"concat",value:function concat(e){if(this.length===0)return s.alloc(0);var r=s.allocUnsafe(e>>>0);var i=this.head;var n=0;while(i){copyBuffer(i.data,r,n);n+=i.data.length;i=i.next}return r}},{key:"consume",value:function consume(e,r){var i;if(es.length?s.length:e;if(a===s.length)n+=s;else n+=s.slice(0,e);e-=a;if(e===0){if(a===s.length){++i;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=s.slice(a)}break}++i}this.length-=i;return n}},{key:"_getBuffer",value:function _getBuffer(e){var r=s.allocUnsafe(e);var i=this.head;var n=1;i.data.copy(r);e-=i.data.length;while(i=i.next){var a=i.data;var o=e>a.length?a.length:e;a.copy(r,r.length-e,0,o);e-=o;if(e===0){if(o===a.length){++n;if(i.next)this.head=i.next;else this.head=this.tail=null}else{this.head=i;i.data=a.slice(o)}break}++n}this.length-=n;return r}},{key:c,value:function value(e,r){return o(this,_objectSpread({},r,{depth:0,customInspect:false}))}}]);return BufferList}()},7049:e=>{"use strict";function destroy(e,r){var i=this;var n=this._readableState&&this._readableState.destroyed;var s=this._writableState&&this._writableState.destroyed;if(n||s){if(r){r(e)}else if(e){if(!this._writableState){process.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;process.nextTick(emitErrorNT,this,e)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!r&&e){if(!i._writableState){process.nextTick(emitErrorAndCloseNT,i,e)}else if(!i._writableState.errorEmitted){i._writableState.errorEmitted=true;process.nextTick(emitErrorAndCloseNT,i,e)}else{process.nextTick(emitCloseNT,i)}}else if(r){process.nextTick(emitCloseNT,i);r(e)}else{process.nextTick(emitCloseNT,i)}}));return this}function emitErrorAndCloseNT(e,r){emitErrorNT(e,r);emitCloseNT(e)}function emitCloseNT(e){if(e._writableState&&!e._writableState.emitClose)return;if(e._readableState&&!e._readableState.emitClose)return;e.emit("close")}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,r){e.emit("error",r)}function errorOrDestroy(e,r){var i=e._readableState;var n=e._writableState;if(i&&i.autoDestroy||n&&n.autoDestroy)e.destroy(r);else e.emit("error",r)}e.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},6080:(e,r,i)=>{"use strict";var n=i(7214).q.ERR_STREAM_PREMATURE_CLOSE;function once(e){var r=false;return function(){if(r)return;r=true;for(var i=arguments.length,n=new Array(i),s=0;s{"use strict";function asyncGeneratorStep(e,r,i,n,s,a,o){try{var c=e[a](o);var l=c.value}catch(e){i(e);return}if(c.done){r(l)}else{Promise.resolve(l).then(n,s)}}function _asyncToGenerator(e){return function(){var r=this,i=arguments;return new Promise((function(n,s){var a=e.apply(r,i);function _next(e){asyncGeneratorStep(a,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(a,n,s,_next,_throw,"throw",e)}_next(undefined)}))}}function ownKeys(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(r)n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}));i.push.apply(i,n)}return i}function _objectSpread(e){for(var r=1;r{"use strict";var n;function once(e){var r=false;return function(){if(r)return;r=true;e.apply(void 0,arguments)}}var s=i(7214).q,a=s.ERR_MISSING_ARGS,o=s.ERR_STREAM_DESTROYED;function noop(e){if(e)throw e}function isRequest(e){return e.setHeader&&typeof e.abort==="function"}function destroyer(e,r,s,a){a=once(a);var c=false;e.on("close",(function(){c=true}));if(n===undefined)n=i(6080);n(e,{readable:r,writable:s},(function(e){if(e)return a(e);c=true;a()}));var l=false;return function(r){if(c)return;if(l)return;l=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();a(r||new o("pipe"))}}function call(e){e()}function pipe(e,r){return e.pipe(r)}function popCallback(e){if(!e.length)return noop;if(typeof e[e.length-1]!=="function")return noop;return e.pop()}function pipeline(){for(var e=arguments.length,r=new Array(e),i=0;i0;return destroyer(e,a,c,(function(e){if(!s)s=e;if(e)o.forEach(call);if(a)return;o.forEach(call);n(s)}))}));return r.reduce(pipe)}e.exports=pipeline},9948:(e,r,i)=>{"use strict";var n=i(7214).q.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,r,i){return e.highWaterMark!=null?e.highWaterMark:r?e[i]:null}function getHighWaterMark(e,r,i,s){var a=highWaterMarkFrom(r,s,i);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var o=s?i:"highWaterMark";throw new n(o,a)}return Math.floor(a)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},2387:(e,r,i)=>{e.exports=i(2781)},1642:(e,r,i)=>{var n=i(2781);if(process.env.READABLE_STREAM==="disable"&&n){e.exports=n.Readable;Object.assign(e.exports,n);e.exports.Stream=n}else{r=e.exports=i(1433);r.Stream=n||r;r.Readable=r;r.Writable=i(6993);r.Duplex=i(1359);r.Transform=i(4415);r.PassThrough=i(1542);r.finished=i(6080);r.pipeline=i(6989)}},3515:(e,r,i)=>{"use strict";var{PassThrough:n}=i(2781);var s=i(8237)("retry-request");var a=i(8171);var o={objectMode:false,retries:2,maxRetryDelay:64,retryDelayMultiplier:2,totalTimeout:600,noResponseRetries:2,currentRetryAttempt:0,shouldRetryFn:function(e){var r=[[100,199],[429,429],[500,599]];var i=e.statusCode;s(`Response status: ${i}`);var n;while(n=r.shift()){if(i>=n[0]&&i<=n[1]){return true}}}};function retryRequest(e,r,c){var l=typeof arguments[arguments.length-1]!=="function";if(typeof r==="function"){c=r}var p=r&&typeof r.currentRetryAttempt==="number";r=a({},o,r);if(typeof r.request==="undefined"){try{r.request=i(8418)}catch(e){throw new Error("A request library must be provided to retry-request.")}}var d=r.currentRetryAttempt;var h=0;var g=false;var v;var y;var b;var E;var x={abort:function(){if(E&&E.abort){E.abort()}}};if(l){v=new n({objectMode:r.objectMode});v.abort=resetStreams}var w=Date.now();if(d>0){retryAfterDelay(d)}else{makeRequest()}if(l){return v}else{return x}function resetStreams(){b=null;if(y){y.abort&&y.abort();y.cancel&&y.cancel();if(y.destroy){y.destroy()}else if(y.end){y.end()}}}function makeRequest(){d++;s(`Current retry attempt: ${d}`);if(l){g=false;b=new n({objectMode:r.objectMode});y=r.request(e);setImmediate((function(){v.emit("request")}));y.on("error",(function(e){if(g){return}g=true;onResponse(e)})).on("response",(function(e,r){if(g){return}g=true;onResponse(null,e,r)})).on("complete",v.emit.bind(v,"complete"));y.pipe(b)}else{E=r.request(e,onResponse)}}function retryAfterDelay(e){if(l){resetStreams()}var i=getNextRetryDelay({maxRetryDelay:r.maxRetryDelay,retryDelayMultiplier:r.retryDelayMultiplier,retryNumber:e,timeOfFirstRequest:w,totalTimeout:r.totalTimeout});s(`Next retry delay: ${i}`);setTimeout(makeRequest,i)}function onResponse(e,i,n){if(e){h++;if(h<=r.noResponseRetries){retryAfterDelay(h)}else{if(l){v.emit("error",e);v.end()}else{c(e,i,n)}}return}var s=p?d:d-1;if(s{e.exports=i(6244)},6244:(e,r,i)=>{var n=i(5369);r.operation=function(e){var i=r.timeouts(e);return new n(i,{forever:e&&(e.forever||e.retries===Infinity),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};r.timeouts=function(e){if(e instanceof Array){return[].concat(e)}var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var i in e){r[i]=e[i]}if(r.minTimeout>r.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var n=[];for(var s=0;s{function RetryOperation(e,r){if(typeof r==="boolean"){r={forever:r}}this._originalTimeouts=JSON.parse(JSON.stringify(e));this._timeouts=e;this._options=r||{};this._maxRetryTime=r&&r.maxRetryTime||Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationTimeout=null;this._operationTimeoutCb=null;this._timeout=null;this._operationStart=null;this._timer=null;if(this._options.forever){this._cachedTimeouts=this._timeouts.slice(0)}}e.exports=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1;this._timeouts=this._originalTimeouts.slice(0)};RetryOperation.prototype.stop=function(){if(this._timeout){clearTimeout(this._timeout)}if(this._timer){clearTimeout(this._timer)}this._timeouts=[];this._cachedTimeouts=null};RetryOperation.prototype.retry=function(e){if(this._timeout){clearTimeout(this._timeout)}if(!e){return false}var r=(new Date).getTime();if(e&&r-this._operationStart>=this._maxRetryTime){this._errors.push(e);this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(e);var i=this._timeouts.shift();if(i===undefined){if(this._cachedTimeouts){this._errors.splice(0,this._errors.length-1);i=this._cachedTimeouts.slice(-1)}else{return false}}var n=this;this._timer=setTimeout((function(){n._attempts++;if(n._operationTimeoutCb){n._timeout=setTimeout((function(){n._operationTimeoutCb(n._attempts)}),n._operationTimeout);if(n._options.unref){n._timeout.unref()}}n._fn(n._attempts)}),i);if(this._options.unref){this._timer.unref()}return true};RetryOperation.prototype.attempt=function(e,r){this._fn=e;if(r){if(r.timeout){this._operationTimeout=r.timeout}if(r.cb){this._operationTimeoutCb=r.cb}}var i=this;if(this._operationTimeoutCb){this._timeout=setTimeout((function(){i._operationTimeoutCb()}),i._operationTimeout)}this._operationStart=(new Date).getTime();this._fn(this._attempts)};RetryOperation.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated");this.attempt(e)};RetryOperation.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated");this.attempt(e)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0){return null}var e={};var r=null;var i=0;for(var n=0;n=i){r=s;i=o}}return r}},4959:(e,r,i)=>{const n=i(9491);const s=i(1017);const a=i(7147);let o=undefined;try{o=i(1957)}catch(e){}const c={nosort:true,silent:true};let l=0;const p=process.platform==="win32";const defaults=e=>{const r=["unlink","chmod","stat","lstat","rmdir","readdir"];r.forEach((r=>{e[r]=e[r]||a[r];r=r+"Sync";e[r]=e[r]||a[r]}));e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||c};const rimraf=(e,r,i)=>{if(typeof r==="function"){i=r;r={}}n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n.equal(typeof i,"function","rimraf: callback function required");n(r,"rimraf: invalid options argument provided");n.equal(typeof r,"object","rimraf: options should be object");defaults(r);let s=0;let a=null;let c=0;const next=e=>{a=a||e;if(--c===0)i(a)};const afterGlob=(e,n)=>{if(e)return i(e);c=n.length;if(c===0)return i();n.forEach((e=>{const CB=i=>{if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&srimraf_(e,r,CB)),s*100)}if(i.code==="EMFILE"&&lrimraf_(e,r,CB)),l++)}if(i.code==="ENOENT")i=null}l=0;next(i)};rimraf_(e,r,CB)}))};if(r.disableGlob||!o.hasMagic(e))return afterGlob(null,[e]);r.lstat(e,((i,n)=>{if(!i)return afterGlob(null,[e]);o(e,r.glob,afterGlob)}))};const rimraf_=(e,r,i)=>{n(e);n(r);n(typeof i==="function");r.lstat(e,((n,s)=>{if(n&&n.code==="ENOENT")return i(null);if(n&&n.code==="EPERM"&&p)fixWinEPERM(e,r,n,i);if(s&&s.isDirectory())return rmdir(e,r,n,i);r.unlink(e,(n=>{if(n){if(n.code==="ENOENT")return i(null);if(n.code==="EPERM")return p?fixWinEPERM(e,r,n,i):rmdir(e,r,n,i);if(n.code==="EISDIR")return rmdir(e,r,n,i)}return i(n)}))}))};const fixWinEPERM=(e,r,i,s)=>{n(e);n(r);n(typeof s==="function");r.chmod(e,438,(n=>{if(n)s(n.code==="ENOENT"?null:i);else r.stat(e,((n,a)=>{if(n)s(n.code==="ENOENT"?null:i);else if(a.isDirectory())rmdir(e,r,i,s);else r.unlink(e,s)}))}))};const fixWinEPERMSync=(e,r,i)=>{n(e);n(r);try{r.chmodSync(e,438)}catch(e){if(e.code==="ENOENT")return;else throw i}let s;try{s=r.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw i}if(s.isDirectory())rmdirSync(e,r,i);else r.unlinkSync(e)};const rmdir=(e,r,i,s)=>{n(e);n(r);n(typeof s==="function");r.rmdir(e,(n=>{if(n&&(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"))rmkids(e,r,s);else if(n&&n.code==="ENOTDIR")s(i);else s(n)}))};const rmkids=(e,r,i)=>{n(e);n(r);n(typeof i==="function");r.readdir(e,((n,a)=>{if(n)return i(n);let o=a.length;if(o===0)return r.rmdir(e,i);let c;a.forEach((n=>{rimraf(s.join(e,n),r,(n=>{if(c)return;if(n)return i(c=n);if(--o===0)r.rmdir(e,i)}))}))}))};const rimrafSync=(e,r)=>{r=r||{};defaults(r);n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n(r,"rimraf: missing options");n.equal(typeof r,"object","rimraf: options should be object");let i;if(r.disableGlob||!o.hasMagic(e)){i=[e]}else{try{r.lstatSync(e);i=[e]}catch(n){i=o.sync(e,r.glob)}}if(!i.length)return;for(let e=0;e{n(e);n(r);try{r.rmdirSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw i;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")rmkidsSync(e,r)}};const rmkidsSync=(e,r)=>{n(e);n(r);r.readdirSync(e).forEach((i=>rimrafSync(s.join(e,i),r)));const i=p?100:1;let a=0;do{let n=true;try{const s=r.rmdirSync(e,r);n=false;return s}finally{if(++a{var n=i(4300);var s=n.Buffer;function copyProps(e,r){for(var i in e){r[i]=e[i]}}if(s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow){e.exports=n}else{copyProps(n,r);r.Buffer=SafeBuffer}function SafeBuffer(e,r,i){return s(e,r,i)}copyProps(s,SafeBuffer);SafeBuffer.from=function(e,r,i){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return s(e,r,i)};SafeBuffer.alloc=function(e,r,i){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=s(e);if(r!==undefined){if(typeof i==="string"){n.fill(r,i)}else{n.fill(r)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return s(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},1532:(e,r,i)=>{const n=Symbol("SemVer ANY");class Comparator{static get ANY(){return n}constructor(e,r){r=s(r);if(e instanceof Comparator){if(e.loose===!!r.loose){return e}else{e=e.value}}l("comparator",e,r);this.options=r;this.loose=!!r.loose;this.parse(e);if(this.semver===n){this.value=""}else{this.value=this.operator+this.semver.version}l("comp",this)}parse(e){const r=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR];const i=e.match(r);if(!i){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=n}else{this.semver=new p(i[2],this.options.loose)}}toString(){return this.value}test(e){l("Comparator.test",e,this.options.loose);if(this.semver===n||e===n){return true}if(typeof e==="string"){try{e=new p(e,this.options)}catch(e){return false}}return c(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new d(e.value,r).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new d(this.value,r).test(e.semver)}const i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const n=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const s=this.semver.version===e.semver.version;const a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const o=c(this.semver,"<",e.semver,r)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const l=c(this.semver,">",e.semver,r)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||n||s&&a||o||l}}e.exports=Comparator;const s=i(785);const{re:a,t:o}=i(9523);const c=i(4359);const l=i(427);const p=i(8088);const d=i(9828)},9828:(e,r,i)=>{class Range{constructor(e,r){r=a(r);if(e instanceof Range){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease){return e}else{return new Range(e.raw,r)}}if(e instanceof o){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0)this.set=[e];else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const r=Object.keys(this.options).join(",");const i=`parseRange:${r}:${e}`;const n=s.get(i);if(n)return n;const a=this.options.loose;const l=a?p[d.HYPHENRANGELOOSE]:p[d.HYPHENRANGE];e=e.replace(l,hyphenReplace(this.options.includePrerelease));c("hyphen replace",e);e=e.replace(p[d.COMPARATORTRIM],h);c("comparator trim",e,p[d.COMPARATORTRIM]);e=e.replace(p[d.TILDETRIM],g);e=e.replace(p[d.CARETTRIM],v);e=e.split(/\s+/).join(" ");const y=a?p[d.COMPARATORLOOSE]:p[d.COMPARATOR];const b=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options))).filter(this.options.loose?e=>!!e.match(y):()=>true).map((e=>new o(e,this.options)));const E=b.length;const x=new Map;for(const e of b){if(isNullSet(e))return[e];x.set(e.value,e)}if(x.size>1&&x.has(""))x.delete("");const w=[...x.values()];s.set(i,w);return w}intersects(e,r){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((i=>isSatisfiable(i,r)&&e.set.some((e=>isSatisfiable(e,r)&&i.every((i=>e.every((e=>i.intersects(e,r)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new l(e,this.options)}catch(e){return false}}for(let r=0;re.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,r)=>{let i=true;const n=e.slice();let s=n.pop();while(i&&n.length){i=n.every((e=>s.intersects(e,r)));s=n.pop()}return i};const parseComparator=(e,r)=>{c("comp",e,r);e=replaceCarets(e,r);c("caret",e);e=replaceTildes(e,r);c("tildes",e);e=replaceXRanges(e,r);c("xrange",e);e=replaceStars(e,r);c("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,r)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,r))).join(" ");const replaceTilde=(e,r)=>{const i=r.loose?p[d.TILDELOOSE]:p[d.TILDE];return e.replace(i,((r,i,n,s,a)=>{c("tilde",e,r,i,n,s,a);let o;if(isX(i)){o=""}else if(isX(n)){o=`>=${i}.0.0 <${+i+1}.0.0-0`}else if(isX(s)){o=`>=${i}.${n}.0 <${i}.${+n+1}.0-0`}else if(a){c("replaceTilde pr",a);o=`>=${i}.${n}.${s}-${a} <${i}.${+n+1}.0-0`}else{o=`>=${i}.${n}.${s} <${i}.${+n+1}.0-0`}c("tilde return",o);return o}))};const replaceCarets=(e,r)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,r))).join(" ");const replaceCaret=(e,r)=>{c("caret",e,r);const i=r.loose?p[d.CARETLOOSE]:p[d.CARET];const n=r.includePrerelease?"-0":"";return e.replace(i,((r,i,s,a,o)=>{c("caret",e,r,i,s,a,o);let l;if(isX(i)){l=""}else if(isX(s)){l=`>=${i}.0.0${n} <${+i+1}.0.0-0`}else if(isX(a)){if(i==="0"){l=`>=${i}.${s}.0${n} <${i}.${+s+1}.0-0`}else{l=`>=${i}.${s}.0${n} <${+i+1}.0.0-0`}}else if(o){c("replaceCaret pr",o);if(i==="0"){if(s==="0"){l=`>=${i}.${s}.${a}-${o} <${i}.${s}.${+a+1}-0`}else{l=`>=${i}.${s}.${a}-${o} <${i}.${+s+1}.0-0`}}else{l=`>=${i}.${s}.${a}-${o} <${+i+1}.0.0-0`}}else{c("no pr");if(i==="0"){if(s==="0"){l=`>=${i}.${s}.${a}${n} <${i}.${s}.${+a+1}-0`}else{l=`>=${i}.${s}.${a}${n} <${i}.${+s+1}.0-0`}}else{l=`>=${i}.${s}.${a} <${+i+1}.0.0-0`}}c("caret return",l);return l}))};const replaceXRanges=(e,r)=>{c("replaceXRanges",e,r);return e.split(/\s+/).map((e=>replaceXRange(e,r))).join(" ")};const replaceXRange=(e,r)=>{e=e.trim();const i=r.loose?p[d.XRANGELOOSE]:p[d.XRANGE];return e.replace(i,((i,n,s,a,o,l)=>{c("xRange",e,i,n,s,a,o,l);const p=isX(s);const d=p||isX(a);const h=d||isX(o);const g=h;if(n==="="&&g){n=""}l=r.includePrerelease?"-0":"";if(p){if(n===">"||n==="<"){i="<0.0.0-0"}else{i="*"}}else if(n&&g){if(d){a=0}o=0;if(n===">"){n=">=";if(d){s=+s+1;a=0;o=0}else{a=+a+1;o=0}}else if(n==="<="){n="<";if(d){s=+s+1}else{a=+a+1}}if(n==="<")l="-0";i=`${n+s}.${a}.${o}${l}`}else if(d){i=`>=${s}.0.0${l} <${+s+1}.0.0-0`}else if(h){i=`>=${s}.${a}.0${l} <${s}.${+a+1}.0-0`}c("xRange return",i);return i}))};const replaceStars=(e,r)=>{c("replaceStars",e,r);return e.trim().replace(p[d.STAR],"")};const replaceGTE0=(e,r)=>{c("replaceGTE0",e,r);return e.trim().replace(p[r.includePrerelease?d.GTE0PRE:d.GTE0],"")};const hyphenReplace=e=>(r,i,n,s,a,o,c,l,p,d,h,g,v)=>{if(isX(n)){i=""}else if(isX(s)){i=`>=${n}.0.0${e?"-0":""}`}else if(isX(a)){i=`>=${n}.${s}.0${e?"-0":""}`}else if(o){i=`>=${i}`}else{i=`>=${i}${e?"-0":""}`}if(isX(p)){l=""}else if(isX(d)){l=`<${+p+1}.0.0-0`}else if(isX(h)){l=`<${p}.${+d+1}.0-0`}else if(g){l=`<=${p}.${d}.${h}-${g}`}else if(e){l=`<${p}.${d}.${+h+1}-0`}else{l=`<=${l}`}return`${i} ${l}`.trim()};const testSet=(e,r,i)=>{for(let i=0;i0){const n=e[i].semver;if(n.major===r.major&&n.minor===r.minor&&n.patch===r.patch){return true}}}return false}return true}},8088:(e,r,i)=>{const n=i(427);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:a}=i(2293);const{re:o,t:c}=i(9523);const l=i(785);const{compareIdentifiers:p}=i(2463);class SemVer{constructor(e,r){r=l(r);if(e instanceof SemVer){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid Version: ${e}`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}n("SemVer",e,r);this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;const i=e.trim().match(r.loose?o[c.LOOSE]:o[c.FULL]);if(!i){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>a||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>a||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>a||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const r=+e;if(r>=0&&r=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(r){if(this.prerelease[0]===r){if(isNaN(this.prerelease[1])){this.prerelease=[r,0]}}else{this.prerelease=[r,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},8848:(e,r,i)=>{const n=i(5925);const clean=(e,r)=>{const i=n(e.trim().replace(/^[=v]+/,""),r);return i?i.version:null};e.exports=clean},4359:(e,r,i)=>{const n=i(1898);const s=i(6017);const a=i(4123);const o=i(5930);const c=i(194);const l=i(7520);const cmp=(e,r,i,p)=>{switch(r){case"===":if(typeof e==="object")e=e.version;if(typeof i==="object")i=i.version;return e===i;case"!==":if(typeof e==="object")e=e.version;if(typeof i==="object")i=i.version;return e!==i;case"":case"=":case"==":return n(e,i,p);case"!=":return s(e,i,p);case">":return a(e,i,p);case">=":return o(e,i,p);case"<":return c(e,i,p);case"<=":return l(e,i,p);default:throw new TypeError(`Invalid operator: ${r}`)}};e.exports=cmp},3466:(e,r,i)=>{const n=i(8088);const s=i(5925);const{re:a,t:o}=i(9523);const coerce=(e,r)=>{if(e instanceof n){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}r=r||{};let i=null;if(!r.rtl){i=e.match(a[o.COERCE])}else{let r;while((r=a[o.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length)){if(!i||r.index+r[0].length!==i.index+i[0].length){i=r}a[o.COERCERTL].lastIndex=r.index+r[1].length+r[2].length}a[o.COERCERTL].lastIndex=-1}if(i===null)return null;return s(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,r)};e.exports=coerce},2156:(e,r,i)=>{const n=i(8088);const compareBuild=(e,r,i)=>{const s=new n(e,i);const a=new n(r,i);return s.compare(a)||s.compareBuild(a)};e.exports=compareBuild},2804:(e,r,i)=>{const n=i(4309);const compareLoose=(e,r)=>n(e,r,true);e.exports=compareLoose},4309:(e,r,i)=>{const n=i(8088);const compare=(e,r,i)=>new n(e,i).compare(new n(r,i));e.exports=compare},4297:(e,r,i)=>{const n=i(5925);const s=i(1898);const diff=(e,r)=>{if(s(e,r)){return null}else{const i=n(e);const s=n(r);const a=i.prerelease.length||s.prerelease.length;const o=a?"pre":"";const c=a?"prerelease":"";for(const e in i){if(e==="major"||e==="minor"||e==="patch"){if(i[e]!==s[e]){return o+e}}}return c}};e.exports=diff},1898:(e,r,i)=>{const n=i(4309);const eq=(e,r,i)=>n(e,r,i)===0;e.exports=eq},4123:(e,r,i)=>{const n=i(4309);const gt=(e,r,i)=>n(e,r,i)>0;e.exports=gt},5930:(e,r,i)=>{const n=i(4309);const gte=(e,r,i)=>n(e,r,i)>=0;e.exports=gte},929:(e,r,i)=>{const n=i(8088);const inc=(e,r,i,s)=>{if(typeof i==="string"){s=i;i=undefined}try{return new n(e,i).inc(r,s).version}catch(e){return null}};e.exports=inc},194:(e,r,i)=>{const n=i(4309);const lt=(e,r,i)=>n(e,r,i)<0;e.exports=lt},7520:(e,r,i)=>{const n=i(4309);const lte=(e,r,i)=>n(e,r,i)<=0;e.exports=lte},6688:(e,r,i)=>{const n=i(8088);const major=(e,r)=>new n(e,r).major;e.exports=major},8447:(e,r,i)=>{const n=i(8088);const minor=(e,r)=>new n(e,r).minor;e.exports=minor},6017:(e,r,i)=>{const n=i(4309);const neq=(e,r,i)=>n(e,r,i)!==0;e.exports=neq},5925:(e,r,i)=>{const{MAX_LENGTH:n}=i(2293);const{re:s,t:a}=i(9523);const o=i(8088);const c=i(785);const parse=(e,r)=>{r=c(r);if(e instanceof o){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}const i=r.loose?s[a.LOOSE]:s[a.FULL];if(!i.test(e)){return null}try{return new o(e,r)}catch(e){return null}};e.exports=parse},2866:(e,r,i)=>{const n=i(8088);const patch=(e,r)=>new n(e,r).patch;e.exports=patch},4016:(e,r,i)=>{const n=i(5925);const prerelease=(e,r)=>{const i=n(e,r);return i&&i.prerelease.length?i.prerelease:null};e.exports=prerelease},6417:(e,r,i)=>{const n=i(4309);const rcompare=(e,r,i)=>n(r,e,i);e.exports=rcompare},8701:(e,r,i)=>{const n=i(2156);const rsort=(e,r)=>e.sort(((e,i)=>n(i,e,r)));e.exports=rsort},6055:(e,r,i)=>{const n=i(9828);const satisfies=(e,r,i)=>{try{r=new n(r,i)}catch(e){return false}return r.test(e)};e.exports=satisfies},1426:(e,r,i)=>{const n=i(2156);const sort=(e,r)=>e.sort(((e,i)=>n(e,i,r)));e.exports=sort},9601:(e,r,i)=>{const n=i(5925);const valid=(e,r)=>{const i=n(e,r);return i?i.version:null};e.exports=valid},1383:(e,r,i)=>{const n=i(9523);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i(2293).SEMVER_SPEC_VERSION,SemVer:i(8088),compareIdentifiers:i(2463).compareIdentifiers,rcompareIdentifiers:i(2463).rcompareIdentifiers,parse:i(5925),valid:i(9601),clean:i(8848),inc:i(929),diff:i(4297),major:i(6688),minor:i(8447),patch:i(2866),prerelease:i(4016),compare:i(4309),rcompare:i(6417),compareLoose:i(2804),compareBuild:i(2156),sort:i(1426),rsort:i(8701),gt:i(4123),lt:i(194),eq:i(1898),neq:i(6017),gte:i(5930),lte:i(7520),cmp:i(4359),coerce:i(3466),Comparator:i(1532),Range:i(9828),satisfies:i(6055),toComparators:i(2706),maxSatisfying:i(579),minSatisfying:i(832),minVersion:i(4179),validRange:i(1741),outside:i(420),gtr:i(9380),ltr:i(3323),intersects:i(7008),simplifyRange:i(5297),subset:i(7863)}},2293:e=>{const r="2.0.0";const i=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;e.exports={SEMVER_SPEC_VERSION:r,MAX_LENGTH:i,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:s}},427:e=>{const r=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r},2463:e=>{const r=/^[0-9]+$/;const compareIdentifiers=(e,i)=>{const n=r.test(e);const s=r.test(i);if(n&&s){e=+e;i=+i}return e===i?0:n&&!s?-1:s&&!n?1:ecompareIdentifiers(r,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},785:e=>{const r=["includePrerelease","loose","rtl"];const parseOptions=e=>!e?{}:typeof e!=="object"?{loose:true}:r.filter((r=>e[r])).reduce(((e,r)=>{e[r]=true;return e}),{});e.exports=parseOptions},9523:(e,r,i)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=i(2293);const s=i(427);r=e.exports={};const a=r.re=[];const o=r.src=[];const c=r.t={};let l=0;const createToken=(e,r,i)=>{const n=l++;s(n,r);c[e]=n;o[n]=r;a[n]=new RegExp(r,i?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${o[c.NUMERICIDENTIFIER]})\\.`+`(${o[c.NUMERICIDENTIFIER]})\\.`+`(${o[c.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${o[c.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[c.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[c.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${o[c.NUMERICIDENTIFIER]}|${o[c.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${o[c.NUMERICIDENTIFIERLOOSE]}|${o[c.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${o[c.PRERELEASEIDENTIFIER]}(?:\\.${o[c.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${o[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[c.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${o[c.BUILDIDENTIFIER]}(?:\\.${o[c.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${o[c.MAINVERSION]}${o[c.PRERELEASE]}?${o[c.BUILD]}?`);createToken("FULL",`^${o[c.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${o[c.MAINVERSIONLOOSE]}${o[c.PRERELEASELOOSE]}?${o[c.BUILD]}?`);createToken("LOOSE",`^${o[c.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${o[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${o[c.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${o[c.XRANGEIDENTIFIER]})`+`(?:\\.(${o[c.XRANGEIDENTIFIER]})`+`(?:\\.(${o[c.XRANGEIDENTIFIER]})`+`(?:${o[c.PRERELEASE]})?${o[c.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${o[c.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})`+`(?:${o[c.PRERELEASELOOSE]})?${o[c.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${n}})`+`(?:\\.(\\d{1,${n}}))?`+`(?:\\.(\\d{1,${n}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",o[c.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${o[c.LONETILDE]}\\s+`,true);r.tildeTrimReplace="$1~";createToken("TILDE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${o[c.LONECARET]}\\s+`,true);r.caretTrimReplace="$1^";createToken("CARET",`^${o[c.LONECARET]}${o[c.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${o[c.LONECARET]}${o[c.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${o[c.GTLT]}\\s*(${o[c.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]}|${o[c.XRANGEPLAIN]})`,true);r.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${o[c.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${o[c.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${o[c.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${o[c.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0.0.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},9380:(e,r,i)=>{const n=i(420);const gtr=(e,r,i)=>n(e,r,">",i);e.exports=gtr},7008:(e,r,i)=>{const n=i(9828);const intersects=(e,r,i)=>{e=new n(e,i);r=new n(r,i);return e.intersects(r)};e.exports=intersects},3323:(e,r,i)=>{const n=i(420);const ltr=(e,r,i)=>n(e,r,"<",i);e.exports=ltr},579:(e,r,i)=>{const n=i(8088);const s=i(9828);const maxSatisfying=(e,r,i)=>{let a=null;let o=null;let c=null;try{c=new s(r,i)}catch(e){return null}e.forEach((e=>{if(c.test(e)){if(!a||o.compare(e)===-1){a=e;o=new n(a,i)}}}));return a};e.exports=maxSatisfying},832:(e,r,i)=>{const n=i(8088);const s=i(9828);const minSatisfying=(e,r,i)=>{let a=null;let o=null;let c=null;try{c=new s(r,i)}catch(e){return null}e.forEach((e=>{if(c.test(e)){if(!a||o.compare(e)===1){a=e;o=new n(a,i)}}}));return a};e.exports=minSatisfying},4179:(e,r,i)=>{const n=i(8088);const s=i(9828);const a=i(4123);const minVersion=(e,r)=>{e=new s(e,r);let i=new n("0.0.0");if(e.test(i)){return i}i=new n("0.0.0-0");if(e.test(i)){return i}i=null;for(let r=0;r{const r=new n(e.semver.version);switch(e.operator){case">":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!o||a(r,o)){o=r}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(o&&(!i||a(i,o)))i=o}if(i&&e.test(i)){return i}return null};e.exports=minVersion},420:(e,r,i)=>{const n=i(8088);const s=i(1532);const{ANY:a}=s;const o=i(9828);const c=i(6055);const l=i(4123);const p=i(194);const d=i(7520);const h=i(5930);const outside=(e,r,i,g)=>{e=new n(e,g);r=new o(r,g);let v,y,b,E,x;switch(i){case">":v=l;y=d;b=p;E=">";x=">=";break;case"<":v=p;y=h;b=l;E="<";x="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(c(e,r,g)){return false}for(let i=0;i{if(e.semver===a){e=new s(">=0.0.0")}o=o||e;c=c||e;if(v(e.semver,o.semver,g)){o=e}else if(b(e.semver,c.semver,g)){c=e}}));if(o.operator===E||o.operator===x){return false}if((!c.operator||c.operator===E)&&y(e,c.semver)){return false}else if(c.operator===x&&b(e,c.semver)){return false}}return true};e.exports=outside},5297:(e,r,i)=>{const n=i(6055);const s=i(4309);e.exports=(e,r,i)=>{const a=[];let o=null;let c=null;const l=e.sort(((e,r)=>s(e,r,i)));for(const e of l){const s=n(e,r,i);if(s){c=e;if(!o)o=e}else{if(c){a.push([o,c])}c=null;o=null}}if(o)a.push([o,null]);const p=[];for(const[e,r]of a){if(e===r)p.push(e);else if(!r&&e===l[0])p.push("*");else if(!r)p.push(`>=${e}`);else if(e===l[0])p.push(`<=${r}`);else p.push(`${e} - ${r}`)}const d=p.join(" || ");const h=typeof r.raw==="string"?r.raw:String(r);return d.length{const n=i(9828);const s=i(1532);const{ANY:a}=s;const o=i(6055);const c=i(4309);const subset=(e,r,i={})=>{if(e===r)return true;e=new n(e,i);r=new n(r,i);let s=false;e:for(const n of e.set){for(const e of r.set){const r=simpleSubset(n,e,i);s=s||r!==null;if(r)continue e}if(s)return false}return true};const simpleSubset=(e,r,i)=>{if(e===r)return true;if(e.length===1&&e[0].semver===a){if(r.length===1&&r[0].semver===a)return true;else if(i.includePrerelease)e=[new s(">=0.0.0-0")];else e=[new s(">=0.0.0")]}if(r.length===1&&r[0].semver===a){if(i.includePrerelease)return true;else r=[new s(">=0.0.0")]}const n=new Set;let l,p;for(const r of e){if(r.operator===">"||r.operator===">=")l=higherGT(l,r,i);else if(r.operator==="<"||r.operator==="<=")p=lowerLT(p,r,i);else n.add(r.semver)}if(n.size>1)return null;let d;if(l&&p){d=c(l.semver,p.semver,i);if(d>0)return null;else if(d===0&&(l.operator!==">="||p.operator!=="<="))return null}for(const e of n){if(l&&!o(e,String(l),i))return null;if(p&&!o(e,String(p),i))return null;for(const n of r){if(!o(e,String(n),i))return false}return true}let h,g;let v,y;let b=p&&!i.includePrerelease&&p.semver.prerelease.length?p.semver:false;let E=l&&!i.includePrerelease&&l.semver.prerelease.length?l.semver:false;if(b&&b.prerelease.length===1&&p.operator==="<"&&b.prerelease[0]===0){b=false}for(const e of r){y=y||e.operator===">"||e.operator===">=";v=v||e.operator==="<"||e.operator==="<=";if(l){if(E){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch){E=false}}if(e.operator===">"||e.operator===">="){h=higherGT(l,e,i);if(h===e&&h!==l)return false}else if(l.operator===">="&&!o(l.semver,String(e),i))return false}if(p){if(b){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch){b=false}}if(e.operator==="<"||e.operator==="<="){g=lowerLT(p,e,i);if(g===e&&g!==p)return false}else if(p.operator==="<="&&!o(p.semver,String(e),i))return false}if(!e.operator&&(p||l)&&d!==0)return false}if(l&&v&&!p&&d!==0)return false;if(p&&y&&!l&&d!==0)return false;if(E||b)return false;return true};const higherGT=(e,r,i)=>{if(!e)return r;const n=c(e.semver,r.semver,i);return n>0?e:n<0?r:r.operator===">"&&e.operator===">="?r:e};const lowerLT=(e,r,i)=>{if(!e)return r;const n=c(e.semver,r.semver,i);return n<0?e:n>0?r:r.operator==="<"&&e.operator==="<="?r:e};e.exports=subset},2706:(e,r,i)=>{const n=i(9828);const toComparators=(e,r)=>new n(e,r).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},1741:(e,r,i)=>{const n=i(9828);const validRange=(e,r)=>{try{return new n(e,r).range||"*"}catch(e){return null}};e.exports=validRange},4931:(e,r,i)=>{var n=i(9491);var s=i(3710);var a=/^win/i.test(process.platform);var o=i(2361);if(typeof o!=="function"){o=o.EventEmitter}var c;if(process.__signal_exit_emitter__){c=process.__signal_exit_emitter__}else{c=process.__signal_exit_emitter__=new o;c.count=0;c.emitted={}}if(!c.infinite){c.setMaxListeners(Infinity);c.infinite=true}e.exports=function(e,r){n.equal(typeof e,"function","a callback must be provided for exit handler");if(p===false){load()}var i="exit";if(r&&r.alwaysLast){i="afterexit"}var remove=function(){c.removeListener(i,e);if(c.listeners("exit").length===0&&c.listeners("afterexit").length===0){unload()}};c.on(i,e);return remove};e.exports.unload=unload;function unload(){if(!p){return}p=false;s.forEach((function(e){try{process.removeListener(e,l[e])}catch(e){}}));process.emit=h;process.reallyExit=d;c.count-=1}function emit(e,r,i){if(c.emitted[e]){return}c.emitted[e]=true;c.emit(e,r,i)}var l={};s.forEach((function(e){l[e]=function listener(){var r=process.listeners(e);if(r.length===c.count){unload();emit("exit",null,e);emit("afterexit",null,e);if(a&&e==="SIGHUP"){e="SIGINT"}process.kill(process.pid,e)}}}));e.exports.signals=function(){return s};e.exports.load=load;var p=false;function load(){if(p){return}p=true;c.count+=1;s=s.filter((function(e){try{process.on(e,l[e]);return true}catch(e){return false}}));process.emit=processEmit;process.reallyExit=processReallyExit}var d=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);d.call(process,process.exitCode)}var h=process.emit;function processEmit(e,r){if(e==="exit"){if(r!==undefined){process.exitCode=r}var i=h.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return i}else{return h.apply(this,arguments)}}},3710:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},4480:e=>{e.exports=function walk(e){if(!e||typeof e!=="object")return e;if(isDate(e)||isRegex(e))return e;if(Array.isArray(e))return e.map(walk);return Object.keys(e).reduce((function(r,i){var n=i[0].toLowerCase()+i.slice(1).replace(/([A-Z]+)/g,(function(e,r){return"_"+r.toLowerCase()}));r[n]=walk(e[i]);return r}),{})};var isDate=function(e){return Object.prototype.toString.call(e)==="[object Date]"};var isRegex=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"}},9626:(e,r,i)=>{"use strict";var n=i(1099);function StreamEvents(e){e=e||this;var r={callthrough:true,calls:1};n(e,"_read",r,e.emit.bind(e,"reading"));n(e,"_write",r,e.emit.bind(e,"writing"));return e}e.exports=StreamEvents},6121:e=>{e.exports=shift;function shift(e){var r=e._readableState;if(!r)return null;return r.objectMode||typeof e._duplexState==="number"?e.read():e.read(getStateLength(r))}function getStateLength(e){if(e.buffer.length){if(e.buffer.head){return e.buffer.head.data.length}return e.buffer[0].length}return e.length}},4841:(e,r,i)=>{"use strict";var n=i(2279).Buffer;var s=n.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var r;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase();r=true}}}function normalizeEncoding(e){var r=_normalizeEncoding(e);if(typeof r!=="string"&&(n.isEncoding===s||!s(e)))throw new Error("Unknown encoding: "+e);return r||e}r.s=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var r;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;r=4;break;case"utf8":this.fillLast=utf8FillLast;r=4;break;case"base64":this.text=base64Text;this.end=base64End;r=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=n.allocUnsafe(r)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var r;var i;if(this.lastNeed){r=this.fillLast(e);if(r===undefined)return"";i=this.lastNeed;this.lastNeed=0}else{i=0}if(i>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,r,i){var n=r.length-1;if(n=0){if(s>0)e.lastNeed=s-1;return s}if(--n=0){if(s>0)e.lastNeed=s-2;return s}if(--n=0){if(s>0){if(s===2)s=0;else e.lastNeed=s-3}return s}return 0}function utf8CheckExtraBytes(e,r,i){if((r[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&r.length>2){if((r[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var r=this.lastTotal-this.lastNeed;var i=utf8CheckExtraBytes(this,e,r);if(i!==undefined)return i;if(this.lastNeed<=e.length){e.copy(this.lastChar,r,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,r,0,e.length);this.lastNeed-=e.length}function utf8Text(e,r){var i=utf8CheckIncomplete(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=i;var n=e.length-(i-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",r,n)}function utf8End(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed)return r+"�";return r}function utf16Text(e,r){if((e.length-r)%2===0){var i=e.toString("utf16le",r);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return i.slice(0,-1)}}return i}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",r,e.length-1)}function utf16End(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,i)}return r}function base64Text(e,r){var i=(e.length-r)%3;if(i===0)return e.toString("base64",r);this.lastNeed=3-i;this.lastTotal=3;if(i===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",r,e.length-i)}function base64End(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed)return r+this.lastChar.toString("base64",0,3-this.lastNeed);return r}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},2279:(e,r,i)=>{ + */var n=i(7426);var a=i(1017).extname;var s=/^\s*([^;\s]*)(?:;|\s|$)/;var o=/^text\//i;r.charset=charset;r.charsets={lookup:charset};r.contentType=contentType;r.extension=extension;r.extensions=Object.create(null);r.lookup=lookup;r.types=Object.create(null);populateMaps(r.extensions,r.types);function charset(e){if(!e||typeof e!=="string"){return false}var r=s.exec(e);var i=r&&n[r[1].toLowerCase()];if(i&&i.charset){return i.charset}if(r&&o.test(r[1])){return"UTF-8"}return false}function contentType(e){if(!e||typeof e!=="string"){return false}var i=e.indexOf("/")===-1?r.lookup(e):e;if(!i){return false}if(i.indexOf("charset")===-1){var n=r.charset(i);if(n)i+="; charset="+n.toLowerCase()}return i}function extension(e){if(!e||typeof e!=="string"){return false}var i=s.exec(e);var n=i&&r.extensions[i[1].toLowerCase()];if(!n||!n.length){return false}return n[0]}function lookup(e){if(!e||typeof e!=="string"){return false}var i=a("x."+e).toLowerCase().substr(1);if(!i){return false}return r.types[i]||false}function populateMaps(e,r){var i=["nginx","apache",undefined,"iana"];Object.keys(n).forEach((function forEachMimeType(a){var s=n[a];var o=s.extensions;if(!o||!o.length){return}e[a]=o;for(var c=0;cd||p===d&&r[l].substr(0,12)==="application/")){continue}}r[l]=a}}))}},6038:e=>{"use strict";function Mime(){this._types=Object.create(null);this._extensions=Object.create(null);for(let e=0;e{"use strict";let n=i(6038);e.exports=new n(i(3114),i(8809))},8809:e=>{e.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},3114:e=>{e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},3973:(e,r,i)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var n={sep:"/"};try{n=i(1017)}catch(e){}var a=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=i(3717);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var c="[^/]";var l=c+"*?";var p="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var d="(?:(?!(?:\\/|^)\\.).)*?";var h=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,r){e[r]=true;return e}),{})}var g=/\/+/;minimatch.filter=filter;function filter(e,r){r=r||{};return function(i,n,a){return minimatch(i,e,r)}}function ext(e,r){e=e||{};r=r||{};var i={};Object.keys(r).forEach((function(e){i[e]=r[e]}));Object.keys(e).forEach((function(r){i[r]=e[r]}));return i}minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var r=minimatch;var i=function minimatch(i,n,a){return r.minimatch(i,n,ext(e,a))};i.Minimatch=function Minimatch(i,n){return new r.Minimatch(i,ext(e,n))};return i};Minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return Minimatch;return minimatch.defaults(e).Minimatch};function minimatch(e,r,i){if(typeof r!=="string"){throw new TypeError("glob pattern string required")}if(!i)i={};if(!i.nocomment&&r.charAt(0)==="#"){return false}if(r.trim()==="")return e==="";return new Minimatch(r,i).match(e)}function Minimatch(e,r){if(!(this instanceof Minimatch)){return new Minimatch(e,r)}if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!r)r={};e=e.trim();if(n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=r;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var e=this.pattern;var r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var i=this.globSet=this.braceExpand();if(r.debug)this.debug=console.error;this.debug(this.pattern,i);i=this.globParts=i.map((function(e){return e.split(g)}));this.debug(this.pattern,i);i=i.map((function(e,r,i){return e.map(this.parse,this)}),this);this.debug(this.pattern,i);i=i.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,i);this.set=i}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var r=false;var i=this.options;var n=0;if(i.nonegate)return;for(var a=0,s=e.length;a1024*64){throw new TypeError("pattern is too long")}var i=this.options;if(!i.noglobstar&&e==="**")return a;if(e==="")return"";var n="";var s=!!i.nocase;var p=false;var d=[];var g=[];var y;var b=false;var x=-1;var E=-1;var w=e.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var C=this;function clearStateChar(){if(y){switch(y){case"*":n+=l;s=true;break;case"?":n+=c;s=true;break;default:n+="\\"+y;break}C.debug("clearStateChar %j %j",y,n);y=false}}for(var T=0,_=e.length,I;T<_&&(I=e.charAt(T));T++){this.debug("%s\t%s %s %j",e,T,n,I);if(p&&h[I]){n+="\\"+I;p=false;continue}switch(I){case"/":return false;case"\\":clearStateChar();p=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,T,n,I);if(b){this.debug(" in class");if(I==="!"&&T===E+1)I="^";n+=I;continue}C.debug("call clearStateChar %j",y);clearStateChar();y=I;if(i.noext)clearStateChar();continue;case"(":if(b){n+="(";continue}if(!y){n+="\\(";continue}d.push({type:y,start:T-1,reStart:n.length,open:o[y].open,close:o[y].close});n+=y==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",y,n);y=false;continue;case")":if(b||!d.length){n+="\\)";continue}clearStateChar();s=true;var R=d.pop();n+=R.close;if(R.type==="!"){g.push(R)}R.reEnd=n.length;continue;case"|":if(b||!d.length||p){n+="\\|";p=false;continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(b){n+="\\"+I;continue}b=true;E=T;x=n.length;n+=I;continue;case"]":if(T===E+1||!b){n+="\\"+I;p=false;continue}if(b){var O=e.substring(E+1,T);try{RegExp("["+O+"]")}catch(e){var N=this.parse(O,v);n=n.substr(0,x)+"\\["+N[0]+"\\]";s=s||N[1];b=false;continue}}s=true;b=false;n+=I;continue;default:clearStateChar();if(p){p=false}else if(h[I]&&!(I==="^"&&b)){n+="\\"}n+=I}}if(b){O=e.substr(E+1);N=this.parse(O,v);n=n.substr(0,x)+"\\["+N[0];s=s||N[1]}for(R=d.pop();R;R=d.pop()){var B=n.slice(R.reStart+R.open.length);this.debug("setting tail",n,R);B=B.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,r,i){if(!i){i="\\"}return r+r+i+"|"}));this.debug("tail=%j\n %s",B,B,R,n);var P=R.type==="*"?l:R.type==="?"?c:"\\"+R.type;s=true;n=n.slice(0,R.reStart)+P+"\\("+B}clearStateChar();if(p){n+="\\\\"}var j=false;switch(n.charAt(0)){case".":case"[":case"(":j=true}for(var L=g.length-1;L>-1;L--){var D=g[L];var U=n.slice(0,D.reStart);var F=n.slice(D.reStart,D.reEnd-8);var V=n.slice(D.reEnd-8,D.reEnd);var G=n.slice(D.reEnd);V+=G;var H=U.split("(").length-1;var K=G;for(T=0;T=0;o--){s=e[o];if(s)break}for(o=0;o>> no match, partial?",e,h,r,g);if(h===c)return true}return false}var y;if(typeof p==="string"){if(n.nocase){y=d.toLowerCase()===p.toLowerCase()}else{y=d===p}this.debug("string match",p,d,y)}else{y=d.match(p);this.debug("pattern match",p,d,y)}if(!y)return false}if(s===c&&o===l){return true}else if(s===c){return i}else if(o===l){var b=s===c-1&&e[s]==="";return b}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},900:e=>{var r=1e3;var i=r*60;var n=i*60;var a=n*24;var s=a*7;var o=a*365.25;e.exports=function(e,r){r=r||{};var i=typeof e;if(i==="string"&&e.length>0){return parse(e)}else if(i==="number"&&isFinite(e)){return r.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c){return}var l=parseFloat(c[1]);var p=(c[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return l*o;case"weeks":case"week":case"w":return l*s;case"days":case"day":case"d":return l*a;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*i;case"seconds":case"second":case"secs":case"sec":case"s":return l*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=a){return Math.round(e/a)+"d"}if(s>=n){return Math.round(e/n)+"h"}if(s>=i){return Math.round(e/i)+"m"}if(s>=r){return Math.round(e/r)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=a){return plural(e,s,a,"day")}if(s>=n){return plural(e,s,n,"hour")}if(s>=i){return plural(e,s,i,"minute")}if(s>=r){return plural(e,s,r,"second")}return e+" ms"}function plural(e,r,i,n){var a=r>=i*1.5;return Math.round(e/i)+" "+n+(a?"s":"")}},467:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(i(2781));var a=_interopDefault(i(3685));var s=_interopDefault(i(7310));var o=_interopDefault(i(5687));var c=_interopDefault(i(9796));const l=n.Readable;const p=Symbol("buffer");const d=Symbol("type");class Blob{constructor(){this[d]="";const e=arguments[0];const r=arguments[1];const i=[];let n=0;if(e){const r=e;const a=Number(r.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},a=i.size;let s=a===undefined?0:a;var o=i.timeout;let c=o===undefined?0:o;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e));else if(Buffer.isBuffer(e));else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof n);else{e=Buffer.from(String(e))}this[g]={body:e,disturbed:false,error:null};this.size=s;this.timeout=c;if(e instanceof n){e.on("error",(function(e){const i=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${r.url}: ${e.message}`,"system",e);r[g].error=i}))}}Body.prototype={get body(){return this[g].body},get bodyUsed(){return this[g].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(r){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[p]:r})}))},json(){var e=this;return consumeBody.call(this).then((function(r){try{return JSON.parse(r.toString())}catch(r){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${r.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(e){return e.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then((function(r){return convertBody(r,e.headers)}))}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const r of Object.getOwnPropertyNames(Body.prototype)){if(!(r in e)){const i=Object.getOwnPropertyDescriptor(Body.prototype,r);Object.defineProperty(e,r,i)}}};function consumeBody(){var e=this;if(this[g].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[g].disturbed=true;if(this[g].error){return Body.Promise.reject(this[g].error)}let r=this.body;if(r===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(r)){r=r.stream()}if(Buffer.isBuffer(r)){return Body.Promise.resolve(r)}if(!(r instanceof n)){return Body.Promise.resolve(Buffer.alloc(0))}let i=[];let a=0;let s=false;return new Body.Promise((function(n,o){let c;if(e.timeout){c=setTimeout((function(){s=true;o(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)}r.on("error",(function(r){if(r.name==="AbortError"){s=true;o(r)}else{o(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${r.message}`,"system",r))}}));r.on("data",(function(r){if(s||r===null){return}if(e.size&&a+r.length>e.size){s=true;o(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}a+=r.length;i.push(r)}));r.on("end",(function(){if(s){return}clearTimeout(c);try{n(Buffer.concat(i,a))}catch(r){o(new FetchError(`Could not create Buffer from response body for ${e.url}: ${r.message}`,"system",r))}}))}))}function convertBody(e,r){if(typeof h!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const i=r.get("content-type");let n="utf-8";let a,s;if(i){a=/charset=([^;]*)/i.exec(i)}s=e.slice(0,1024).toString();if(!a&&s){a=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[x]=Object.create(null);if(e instanceof Headers){const r=e.raw();const i=Object.keys(r);for(const e of i){for(const i of r[e]){this.append(e,i)}}return}if(e==null);else if(typeof e==="object"){const r=e[Symbol.iterator];if(r!=null){if(typeof r!=="function"){throw new TypeError("Header pairs must be iterable")}const i=[];for(const r of e){if(typeof r!=="object"||typeof r[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}i.push(Array.from(r))}for(const e of i){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const r of Object.keys(e)){const i=e[r];this.append(r,i)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const r=find(this[x],e);if(r===undefined){return null}return this[x][r].join(", ")}forEach(e){let r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let i=getHeaders(this);let n=0;while(n1&&arguments[1]!==undefined?arguments[1]:"key+value";const i=Object.keys(e[x]).sort();return i.map(r==="key"?function(e){return e.toLowerCase()}:r==="value"?function(r){return e[x][r].join(", ")}:function(r){return[r.toLowerCase(),e[x][r].join(", ")]})}const E=Symbol("internal");function createHeadersIterator(e,r){const i=Object.create(w);i[E]={target:e,kind:r,index:0};return i}const w=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==w){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[E];const r=e.target,i=e.kind,n=e.index;const a=getHeaders(r,i);const s=a.length;if(n>=s){return{value:undefined,done:true}}this[E].index=n+1;return{value:a[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(w,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const r=Object.assign({__proto__:null},e[x]);const i=find(e[x],"Host");if(i!==undefined){r[i]=r[i][0]}return r}function createHeadersLenient(e){const r=new Headers;for(const i of Object.keys(e)){if(y.test(i)){continue}if(Array.isArray(e[i])){for(const n of e[i]){if(b.test(n)){continue}if(r[x][i]===undefined){r[x][i]=[n]}else{r[x][i].push(n)}}}else if(!b.test(e[i])){r[x][i]=[e[i]]}}return r}const C=Symbol("Response internals");const T=a.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,r);const i=r.status||200;const n=new Headers(r.headers);if(e!=null&&!n.has("Content-Type")){const r=extractContentType(e);if(r){n.append("Content-Type",r)}}this[C]={url:r.url,status:i,statusText:r.statusText||T[i],headers:n,counter:r.counter}}get url(){return this[C].url||""}get status(){return this[C].status}get ok(){return this[C].status>=200&&this[C].status<300}get redirected(){return this[C].counter>0}get statusText(){return this[C].statusText}get headers(){return this[C].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const _=Symbol("Request internals");const I=s.parse;const R=s.format;const O="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[_]==="object"}function isAbortSignal(e){const r=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(r&&r.constructor.name==="AbortSignal")}class Request{constructor(e){let r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let i;if(!isRequest(e)){if(e&&e.href){i=I(e.href)}else{i=I(`${e}`)}e={}}else{i=I(e.url)}let n=r.method||e.method||"GET";n=n.toUpperCase();if((r.body!=null||isRequest(e)&&e.body!==null)&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let a=r.body!=null?r.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,a,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const s=new Headers(r.headers||e.headers||{});if(a!=null&&!s.has("Content-Type")){const e=extractContentType(a);if(e){s.append("Content-Type",e)}}let o=isRequest(e)?e.signal:null;if("signal"in r)o=r.signal;if(o!=null&&!isAbortSignal(o)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[_]={method:n,redirect:r.redirect||e.redirect||"follow",headers:s,parsedURL:i,signal:o};this.follow=r.follow!==undefined?r.follow:e.follow!==undefined?e.follow:20;this.compress=r.compress!==undefined?r.compress:e.compress!==undefined?e.compress:true;this.counter=r.counter||e.counter||0;this.agent=r.agent||e.agent}get method(){return this[_].method}get url(){return R(this[_].parsedURL)}get headers(){return this[_].headers}get redirect(){return this[_].redirect}get signal(){return this[_].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const r=e[_].parsedURL;const i=new Headers(e[_].headers);if(!i.has("Accept")){i.set("Accept","*/*")}if(!r.protocol||!r.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(r.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof n.Readable&&!O){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let a=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){a="0"}if(e.body!=null){const r=getTotalBytes(e);if(typeof r==="number"){a=String(r)}}if(a){i.set("Content-Length",a)}if(!i.has("User-Agent")){i.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!i.has("Accept-Encoding")){i.set("Accept-Encoding","gzip,deflate")}let s=e.agent;if(typeof s==="function"){s=s(r)}if(!i.has("Connection")&&!s){i.set("Connection","close")}return Object.assign({},r,{method:e.method,headers:exportNodeCompatibleHeaders(i),agent:s})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const N=n.PassThrough;const B=s.resolve;function fetch(e,r){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise((function(i,s){const l=new Request(e,r);const p=getNodeRequestOptions(l);const d=(p.protocol==="https:"?o:a).request;const h=l.signal;let g=null;const v=function abort(){let e=new AbortError("The user aborted a request.");s(e);if(l.body&&l.body instanceof n.Readable){l.body.destroy(e)}if(!g||!g.body)return;g.body.emit("error",e)};if(h&&h.aborted){v();return}const y=function abortAndFinalize(){v();finalize()};const b=d(p);let x;if(h){h.addEventListener("abort",y)}function finalize(){b.abort();if(h)h.removeEventListener("abort",y);clearTimeout(x)}if(l.timeout){b.once("socket",(function(e){x=setTimeout((function(){s(new FetchError(`network timeout at: ${l.url}`,"request-timeout"));finalize()}),l.timeout)}))}b.on("error",(function(e){s(new FetchError(`request to ${l.url} failed, reason: ${e.message}`,"system",e));finalize()}));b.on("response",(function(e){clearTimeout(x);const r=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=r.get("Location");const a=n===null?null:B(l.url,n);switch(l.redirect){case"error":s(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${l.url}`,"no-redirect"));finalize();return;case"manual":if(a!==null){try{r.set("Location",a)}catch(e){s(e)}}break;case"follow":if(a===null){break}if(l.counter>=l.follow){s(new FetchError(`maximum redirect reached at: ${l.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(l.headers),follow:l.follow,counter:l.counter+1,agent:l.agent,compress:l.compress,method:l.method,body:l.body,signal:l.signal,timeout:l.timeout,size:l.size};if(e.statusCode!==303&&l.body&&getTotalBytes(l)===null){s(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&l.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}i(fetch(new Request(a,n)));finalize();return}}e.once("end",(function(){if(h)h.removeEventListener("abort",y)}));let n=e.pipe(new N);const a={url:l.url,status:e.statusCode,statusText:e.statusMessage,headers:r,size:l.size,timeout:l.timeout,counter:l.counter};const o=r.get("Content-Encoding");if(!l.compress||l.method==="HEAD"||o===null||e.statusCode===204||e.statusCode===304){g=new Response(n,a);i(g);return}const p={flush:c.Z_SYNC_FLUSH,finishFlush:c.Z_SYNC_FLUSH};if(o=="gzip"||o=="x-gzip"){n=n.pipe(c.createGunzip(p));g=new Response(n,a);i(g);return}if(o=="deflate"||o=="x-deflate"){const r=e.pipe(new N);r.once("data",(function(e){if((e[0]&15)===8){n=n.pipe(c.createInflate())}else{n=n.pipe(c.createInflateRaw())}g=new Response(n,a);i(g)}));return}if(o=="br"&&typeof c.createBrotliDecompress==="function"){n=n.pipe(c.createBrotliDecompress());g=new Response(n,a);i(g);return}g=new Response(n,a);i(g)}));writeToStream(b,l)}))}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=r=fetch;Object.defineProperty(r,"__esModule",{value:true});r["default"]=r;r.Headers=Headers;r.Request=Request;r.Response=Response;r.FetchError=FetchError},7994:(e,r,i)=>{var n=i(9177);i(7088);i(873);i(8339);e.exports=n.aes=n.aes||{};n.aes.startEncrypting=function(e,r,i,n){var a=_createCipher({key:e,output:i,decrypt:false,mode:n});a.start(r);return a};n.aes.createEncryptionCipher=function(e,r){return _createCipher({key:e,output:null,decrypt:false,mode:r})};n.aes.startDecrypting=function(e,r,i,n){var a=_createCipher({key:e,output:i,decrypt:true,mode:n});a.start(r);return a};n.aes.createDecryptionCipher=function(e,r){return _createCipher({key:e,output:null,decrypt:true,mode:r})};n.aes.Algorithm=function(e,r){if(!a){initialize()}var i=this;i.name=e;i.mode=new r({blockSize:16,cipher:{encrypt:function(e,r){return _updateBlock(i._w,e,r,false)},decrypt:function(e,r){return _updateBlock(i._w,e,r,true)}}});i._init=false};n.aes.Algorithm.prototype.initialize=function(e){if(this._init){return}var r=e.key;var i;if(typeof r==="string"&&(r.length===16||r.length===24||r.length===32)){r=n.util.createBuffer(r)}else if(n.util.isArray(r)&&(r.length===16||r.length===24||r.length===32)){i=r;r=n.util.createBuffer();for(var a=0;a>>2;for(var a=0;a>8^v&255^99;o[i]=v;c[v]=i;y=e[v];s=e[i];h=e[s];g=e[h];b=y<<24^v<<16^v<<8^(v^y);x=(s^h^g)<<24^(i^g)<<16^(i^h^g)<<8^(i^s^g);for(var E=0;E<4;++E){p[E][i]=b;d[E][v]=x;b=b<<24|b>>>8;x=x<<24|x>>>8}if(i===0){i=n=1}else{i=s^e[e[e[s^g]]];n^=e[e[n]]}}}function _expandKey(e,r){var i=e.slice(0);var n,a=1;var c=i.length;var p=c+6+1;var h=s*p;for(var g=c;g>>16&255]<<24^o[n>>>8&255]<<16^o[n&255]<<8^o[n>>>24]^l[a]<<24;a++}else if(c>6&&g%c===4){n=o[n>>>24]<<24^o[n>>>16&255]<<16^o[n>>>8&255]<<8^o[n&255]}i[g]=i[g-c]^n}if(r){var v;var y=d[0];var b=d[1];var x=d[2];var E=d[3];var w=i.slice(0);h=i.length;for(var g=0,C=h-s;g>>24]]^b[o[v>>>16&255]]^x[o[v>>>8&255]]^E[o[v&255]]}}}i=w}return i}function _updateBlock(e,r,i,n){var a=e.length/4-1;var s,l,h,g,v;if(n){s=d[0];l=d[1];h=d[2];g=d[3];v=c}else{s=p[0];l=p[1];h=p[2];g=p[3];v=o}var y,b,x,E,w,C,T;y=r[0]^e[0];b=r[n?3:1]^e[1];x=r[2]^e[2];E=r[n?1:3]^e[3];var _=3;for(var I=1;I>>24]^l[b>>>16&255]^h[x>>>8&255]^g[E&255]^e[++_];C=s[b>>>24]^l[x>>>16&255]^h[E>>>8&255]^g[y&255]^e[++_];T=s[x>>>24]^l[E>>>16&255]^h[y>>>8&255]^g[b&255]^e[++_];E=s[E>>>24]^l[y>>>16&255]^h[b>>>8&255]^g[x&255]^e[++_];y=w;b=C;x=T}i[0]=v[y>>>24]<<24^v[b>>>16&255]<<16^v[x>>>8&255]<<8^v[E&255]^e[++_];i[n?3:1]=v[b>>>24]<<24^v[x>>>16&255]<<16^v[E>>>8&255]<<8^v[y&255]^e[++_];i[2]=v[x>>>24]<<24^v[E>>>16&255]<<16^v[y>>>8&255]<<8^v[b&255]^e[++_];i[n?1:3]=v[E>>>24]<<24^v[y>>>16&255]<<16^v[b>>>8&255]<<8^v[x&255]^e[++_]}function _createCipher(e){e=e||{};var r=(e.mode||"CBC").toUpperCase();var i="AES-"+r;var a;if(e.decrypt){a=n.cipher.createDecipher(i,e.key)}else{a=n.cipher.createCipher(i,e.key)}var s=a.start;a.start=function(e,r){var i=null;if(r instanceof n.util.ByteBuffer){i=r;r={}}r=r||{};r.output=i;r.iv=e;s.call(a,r)};return a}},1449:(e,r,i)=>{var n=i(9177);i(7994);i(9167);var a=e.exports=n.tls;a.CipherSuites["TLS_RSA_WITH_AES_128_CBC_SHA"]={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=a.BulkCipherAlgorithm.aes;e.cipher_type=a.CipherType.block;e.enc_key_length=16;e.block_length=16;e.fixed_iv_length=16;e.record_iv_length=16;e.mac_algorithm=a.MACAlgorithm.hmac_sha1;e.mac_length=20;e.mac_key_length=20},initConnectionState:initConnectionState};a.CipherSuites["TLS_RSA_WITH_AES_256_CBC_SHA"]={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=a.BulkCipherAlgorithm.aes;e.cipher_type=a.CipherType.block;e.enc_key_length=32;e.block_length=16;e.fixed_iv_length=16;e.record_iv_length=16;e.mac_algorithm=a.MACAlgorithm.hmac_sha1;e.mac_length=20;e.mac_key_length=20},initConnectionState:initConnectionState};function initConnectionState(e,r,i){var s=r.entity===n.tls.ConnectionEnd.client;e.read.cipherState={init:false,cipher:n.cipher.createDecipher("AES-CBC",s?i.keys.server_write_key:i.keys.client_write_key),iv:s?i.keys.server_write_IV:i.keys.client_write_IV};e.write.cipherState={init:false,cipher:n.cipher.createCipher("AES-CBC",s?i.keys.client_write_key:i.keys.server_write_key),iv:s?i.keys.client_write_IV:i.keys.server_write_IV};e.read.cipherFunction=decrypt_aes_cbc_sha1;e.write.cipherFunction=encrypt_aes_cbc_sha1;e.read.macLength=e.write.macLength=i.mac_length;e.read.macFunction=e.write.macFunction=a.hmac_sha1}function encrypt_aes_cbc_sha1(e,r){var i=false;var s=r.macFunction(r.macKey,r.sequenceNumber,e);e.fragment.putBytes(s);r.updateSequenceNumber();var o;if(e.version.minor===a.Versions.TLS_1_0.minor){o=r.cipherState.init?null:r.cipherState.iv}else{o=n.random.getBytesSync(16)}r.cipherState.init=true;var c=r.cipherState.cipher;c.start({iv:o});if(e.version.minor>=a.Versions.TLS_1_1.minor){c.output.putBytes(o)}c.update(e.fragment);if(c.finish(encrypt_aes_cbc_sha1_padding)){e.fragment=c.output;e.length=e.fragment.length();i=true}return i}function encrypt_aes_cbc_sha1_padding(e,r,i){if(!i){var n=e-r.length()%e;r.fillWithByte(n-1,n)}return true}function decrypt_aes_cbc_sha1_padding(e,r,i){var n=true;if(i){var a=r.length();var s=r.last();for(var o=a-1-s;o=c){e.fragment=o.output.getBytes(p-c);l=o.output.getBytes(c)}else{e.fragment=o.output.getBytes()}e.fragment=n.util.createBuffer(e.fragment);e.length=e.fragment.length();var d=r.macFunction(r.macKey,r.sequenceNumber,e);r.updateSequenceNumber();i=compareMacs(r.macKey,l,d)&&i;return i}function compareMacs(e,r,i){var a=n.hmac.create();a.start("SHA1",e);a.update(r);r=a.digest().getBytes();a.start(null,null);a.update(i);i=a.digest().getBytes();return r===i}},9414:(e,r,i)=>{var n=i(9177);i(9549);var a=n.asn1;r.privateKeyValidator={name:"PrivateKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"PrivateKeyInfo.version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:false,capture:"privateKey"}]};r.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"publicKeyOid"}]},{tagClass:a.Class.UNIVERSAL,type:a.Type.BITSTRING,constructed:false,composed:true,captureBitStringValue:"ed25519PublicKey"}]}},9549:(e,r,i)=>{var n=i(9177);i(8339);i(1925);var a=e.exports=n.asn1=n.asn1||{};a.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192};a.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30};a.create=function(e,r,i,s,o){if(n.util.isArray(s)){var c=[];for(var l=0;lr){var n=new Error("Too few bytes to parse DER.");n.available=e.length();n.remaining=r;n.requested=i;throw n}}var _getValueLength=function(e,r){var i=e.getByte();r--;if(i===128){return undefined}var n;var a=i&128;if(!a){n=i}else{var s=i&127;_checkBufferLength(e,r,s);n=e.getInt(s<<3)}if(n<0){throw new Error("Negative length: "+n)}return n};a.fromDer=function(e,r){if(r===undefined){r={strict:true,decodeBitStrings:true}}if(typeof r==="boolean"){r={strict:r,decodeBitStrings:true}}if(!("strict"in r)){r.strict=true}if(!("decodeBitStrings"in r)){r.decodeBitStrings=true}if(typeof e==="string"){e=n.util.createBuffer(e)}return _fromDer(e,e.length(),0,r)};function _fromDer(e,r,i,n){var s;_checkBufferLength(e,r,2);var o=e.getByte();r--;var c=o&192;var l=o&31;s=e.length();var p=_getValueLength(e,r);r-=s-e.length();if(p!==undefined&&p>r){if(n.strict){var d=new Error("Too few bytes to read ASN.1 value.");d.available=e.length();d.remaining=r;d.requested=p;throw d}p=r}var h;var g;var v=(o&32)===32;if(v){h=[];if(p===undefined){for(;;){_checkBufferLength(e,r,2);if(e.bytes(2)===String.fromCharCode(0,0)){e.getBytes(2);r-=2;break}s=e.length();h.push(_fromDer(e,r,i+1,n));r-=s-e.length()}}else{while(p>0){s=e.length();h.push(_fromDer(e,p,i+1,n));r-=s-e.length();p-=s-e.length()}}}if(h===undefined&&c===a.Class.UNIVERSAL&&l===a.Type.BITSTRING){g=e.bytes(p)}if(h===undefined&&n.decodeBitStrings&&c===a.Class.UNIVERSAL&&l===a.Type.BITSTRING&&p>1){var y=e.read;var b=r;var x=0;if(l===a.Type.BITSTRING){_checkBufferLength(e,r,1);x=e.getByte();r--}if(x===0){try{s=e.length();var E={verbose:n.verbose,strict:true,decodeBitStrings:true};var w=_fromDer(e,r,i+1,E);var C=s-e.length();r-=C;if(l==a.Type.BITSTRING){C++}var T=w.tagClass;if(C===p&&(T===a.Class.UNIVERSAL||T===a.Class.CONTEXT_SPECIFIC)){h=[w]}}catch(e){}}if(h===undefined){e.read=y;r=b}}if(h===undefined){if(p===undefined){if(n.strict){throw new Error("Non-constructed ASN.1 object of indefinite length.")}p=r}if(l===a.Type.BMPSTRING){h="";for(;p>0;p-=2){_checkBufferLength(e,r,2);h+=String.fromCharCode(e.getInt16());r-=2}}else{h=e.getBytes(p)}}var _=g===undefined?null:{bitStringContents:g};return a.create(c,l,v,h,_)}a.toDer=function(e){var r=n.util.createBuffer();var i=e.tagClass|e.type;var s=n.util.createBuffer();var o=false;if("bitStringContents"in e){o=true;if(e.original){o=a.equals(e,e.original)}}if(o){s.putBytes(e.bitStringContents)}else if(e.composed){if(e.constructed){i|=32}else{s.putByte(0)}for(var c=0;c1&&(e.value.charCodeAt(0)===0&&(e.value.charCodeAt(1)&128)===0||e.value.charCodeAt(0)===255&&(e.value.charCodeAt(1)&128)===128)){s.putBytes(e.value.substr(1))}else{s.putBytes(e.value)}}}r.putByte(i);if(s.length()<=127){r.putByte(s.length()&127)}else{var l=s.length();var p="";do{p+=String.fromCharCode(l&255);l=l>>>8}while(l>0);r.putByte(p.length|128);for(var c=p.length-1;c>=0;--c){r.putByte(p.charCodeAt(c))}}r.putBuffer(s);return r};a.oidToDer=function(e){var r=e.split(".");var i=n.util.createBuffer();i.putByte(40*parseInt(r[0],10)+parseInt(r[1],10));var a,s,o,c;for(var l=2;l>>7;if(!a){c|=128}s.push(c);a=false}while(o>0);for(var p=s.length-1;p>=0;--p){i.putByte(s[p])}}return i};a.derToOid=function(e){var r;if(typeof e==="string"){e=n.util.createBuffer(e)}var i=e.getByte();r=Math.floor(i/40)+"."+i%40;var a=0;while(e.length()>0){i=e.getByte();a=a<<7;if(i&128){a+=i&127}else{r+="."+(a+i);a=0}}return r};a.utcTimeToDate=function(e){var r=new Date;var i=parseInt(e.substr(0,2),10);i=i>=50?1900+i:2e3+i;var n=parseInt(e.substr(2,2),10)-1;var a=parseInt(e.substr(4,2),10);var s=parseInt(e.substr(6,2),10);var o=parseInt(e.substr(8,2),10);var c=0;if(e.length>11){var l=e.charAt(10);var p=10;if(l!=="+"&&l!=="-"){c=parseInt(e.substr(10,2),10);p+=2}}r.setUTCFullYear(i,n,a);r.setUTCHours(s,o,c,0);if(p){l=e.charAt(p);if(l==="+"||l==="-"){var d=parseInt(e.substr(p+1,2),10);var h=parseInt(e.substr(p+4,2),10);var g=d*60+h;g*=6e4;if(l==="+"){r.setTime(+r-g)}else{r.setTime(+r+g)}}}return r};a.generalizedTimeToDate=function(e){var r=new Date;var i=parseInt(e.substr(0,4),10);var n=parseInt(e.substr(4,2),10)-1;var a=parseInt(e.substr(6,2),10);var s=parseInt(e.substr(8,2),10);var o=parseInt(e.substr(10,2),10);var c=parseInt(e.substr(12,2),10);var l=0;var p=0;var d=false;if(e.charAt(e.length-1)==="Z"){d=true}var h=e.length-5,g=e.charAt(h);if(g==="+"||g==="-"){var v=parseInt(e.substr(h+1,2),10);var y=parseInt(e.substr(h+4,2),10);p=v*60+y;p*=6e4;if(g==="+"){p*=-1}d=true}if(e.charAt(14)==="."){l=parseFloat(e.substr(14),10)*1e3}if(d){r.setUTCFullYear(i,n,a);r.setUTCHours(s,o,c,l);r.setTime(+r+p)}else{r.setFullYear(i,n,a);r.setHours(s,o,c,l)}return r};a.dateToUtcTime=function(e){if(typeof e==="string"){return e}var r="";var i=[];i.push((""+e.getUTCFullYear()).substr(2));i.push(""+(e.getUTCMonth()+1));i.push(""+e.getUTCDate());i.push(""+e.getUTCHours());i.push(""+e.getUTCMinutes());i.push(""+e.getUTCSeconds());for(var n=0;n=-128&&e<128){return r.putSignedInt(e,8)}if(e>=-32768&&e<32768){return r.putSignedInt(e,16)}if(e>=-8388608&&e<8388608){return r.putSignedInt(e,24)}if(e>=-2147483648&&e<2147483648){return r.putSignedInt(e,32)}var i=new Error("Integer too large; max is 32-bits.");i.integer=e;throw i};a.derToInteger=function(e){if(typeof e==="string"){e=n.util.createBuffer(e)}var r=e.length()*8;if(r>32){throw new Error("Integer too large; max is 32-bits.")}return e.getSignedInt(r)};a.validate=function(e,r,i,s){var o=false;if((e.tagClass===r.tagClass||typeof r.tagClass==="undefined")&&(e.type===r.type||typeof r.type==="undefined")){if(e.constructed===r.constructed||typeof r.constructed==="undefined"){o=true;if(r.value&&n.util.isArray(r.value)){var c=0;for(var l=0;o&&l0){o+="\n"}var c="";for(var l=0;l1){o+="0x"+n.util.bytesToHex(e.value.slice(1))}else{o+="(none)"}if(e.value.length>0){var g=e.value.charCodeAt(0);if(g==1){o+=" (1 unused bit shown)"}else if(g>1){o+=" ("+g+" unused bits shown)"}}}else if(e.type===a.Type.OCTETSTRING){if(!s.test(e.value)){o+="("+e.value+") "}o+="0x"+n.util.bytesToHex(e.value)}else if(e.type===a.Type.UTF8){o+=n.util.decodeUtf8(e.value)}else if(e.type===a.Type.PRINTABLESTRING||e.type===a.Type.IA5String){o+=e.value}else if(s.test(e.value)){o+="0x"+n.util.bytesToHex(e.value)}else if(e.value.length===0){o+="[null]"}else{o+=e.value}}return o}},2300:e=>{var r={};e.exports=r;var i={};r.encode=function(e,r,i){if(typeof r!=="string"){throw new TypeError('"alphabet" must be a string.')}if(i!==undefined&&typeof i!=="number"){throw new TypeError('"maxline" must be a number.')}var n="";if(!(e instanceof Uint8Array)){n=_encodeWithByteBuffer(e,r)}else{var a=0;var s=r.length;var o=r.charAt(0);var c=[0];for(a=0;a0){c.push(p%s);p=p/s|0}}for(a=0;e[a]===0&&a=0;--a){n+=r[c[a]]}}if(i){var d=new RegExp(".{1,"+i+"}","g");n=n.match(d).join("\r\n")}return n};r.decode=function(e,r){if(typeof e!=="string"){throw new TypeError('"input" must be a string.')}if(typeof r!=="string"){throw new TypeError('"alphabet" must be a string.')}var n=i[r];if(!n){n=i[r]=[];for(var a=0;a>=8}while(d>0){c.push(d&255);d>>=8}}for(var h=0;e[h]===o&&h0){s.push(c%n);c=c/n|0}}var l="";for(i=0;e.at(i)===0&&i=0;--i){l+=r[s[i]]}return l}},7088:(e,r,i)=>{var n=i(9177);i(8339);e.exports=n.cipher=n.cipher||{};n.cipher.algorithms=n.cipher.algorithms||{};n.cipher.createCipher=function(e,r){var i=e;if(typeof i==="string"){i=n.cipher.getAlgorithm(i);if(i){i=i()}}if(!i){throw new Error("Unsupported algorithm: "+e)}return new n.cipher.BlockCipher({algorithm:i,key:r,decrypt:false})};n.cipher.createDecipher=function(e,r){var i=e;if(typeof i==="string"){i=n.cipher.getAlgorithm(i);if(i){i=i()}}if(!i){throw new Error("Unsupported algorithm: "+e)}return new n.cipher.BlockCipher({algorithm:i,key:r,decrypt:true})};n.cipher.registerAlgorithm=function(e,r){e=e.toUpperCase();n.cipher.algorithms[e]=r};n.cipher.getAlgorithm=function(e){e=e.toUpperCase();if(e in n.cipher.algorithms){return n.cipher.algorithms[e]}return null};var a=n.cipher.BlockCipher=function(e){this.algorithm=e.algorithm;this.mode=this.algorithm.mode;this.blockSize=this.mode.blockSize;this._finish=false;this._input=null;this.output=null;this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt;this._decrypt=e.decrypt;this.algorithm.initialize(e)};a.prototype.start=function(e){e=e||{};var r={};for(var i in e){r[i]=e[i]}r.decrypt=this._decrypt;this._finish=false;this._input=n.util.createBuffer();this.output=e.output||n.util.createBuffer();this.mode.start(r)};a.prototype.update=function(e){if(e){this._input.putBuffer(e)}while(!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish){}this._input.compact()};a.prototype.finish=function(e){if(e&&(this.mode.name==="ECB"||this.mode.name==="CBC")){this.mode.pad=function(r){return e(this.blockSize,r,false)};this.mode.unpad=function(r){return e(this.blockSize,r,true)}}var r={};r.decrypt=this._decrypt;r.overflow=this._input.length()%this.blockSize;if(!this._decrypt&&this.mode.pad){if(!this.mode.pad(this._input,r)){return false}}this._finish=true;this.update();if(this._decrypt&&this.mode.unpad){if(!this.mode.unpad(this.output,r)){return false}}if(this.mode.afterFinish){if(!this.mode.afterFinish(this.output,r)){return false}}return true}},873:(e,r,i)=>{var n=i(9177);i(8339);n.cipher=n.cipher||{};var a=e.exports=n.cipher.modes=n.cipher.modes||{};a.ecb=function(e){e=e||{};this.name="ECB";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=new Array(this._ints);this._outBlock=new Array(this._ints)};a.ecb.prototype.start=function(e){};a.ecb.prototype.encrypt=function(e,r,i){if(e.length()0)){return true}for(var n=0;n0)){return true}for(var n=0;n0){return false}var i=e.length();var n=e.at(i-1);if(n>this.blockSize<<2){return false}e.truncate(n);return true};a.cbc=function(e){e=e||{};this.name="CBC";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=new Array(this._ints);this._outBlock=new Array(this._ints)};a.cbc.prototype.start=function(e){if(e.iv===null){if(!this._prev){throw new Error("Invalid IV parameter.")}this._iv=this._prev.slice(0)}else if(!("iv"in e)){throw new Error("Invalid IV parameter.")}else{this._iv=transformIV(e.iv,this.blockSize);this._prev=this._iv.slice(0)}};a.cbc.prototype.encrypt=function(e,r,i){if(e.length()0)){return true}for(var n=0;n0)){return true}for(var n=0;n0){return false}var i=e.length();var n=e.at(i-1);if(n>this.blockSize<<2){return false}e.truncate(n);return true};a.cfb=function(e){e=e||{};this.name="CFB";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=null;this._outBlock=new Array(this._ints);this._partialBlock=new Array(this._ints);this._partialOutput=n.util.createBuffer();this._partialBytes=0};a.cfb.prototype.start=function(e){if(!("iv"in e)){throw new Error("Invalid IV parameter.")}this._iv=transformIV(e.iv,this.blockSize);this._inBlock=this._iv.slice(0);this._partialBytes=0};a.cfb.prototype.encrypt=function(e,r,i){var n=e.length();if(n===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&n>=this.blockSize){for(var a=0;a0){s=this.blockSize-s}this._partialOutput.clear();for(var a=0;a0){e.read-=this.blockSize}else{for(var a=0;a0){this._partialOutput.getBytes(this._partialBytes)}if(s>0&&!i){r.putBytes(this._partialOutput.getBytes(s-this._partialBytes));this._partialBytes=s;return true}r.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=0};a.cfb.prototype.decrypt=function(e,r,i){var n=e.length();if(n===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&n>=this.blockSize){for(var a=0;a0){s=this.blockSize-s}this._partialOutput.clear();for(var a=0;a0){e.read-=this.blockSize}else{for(var a=0;a0){this._partialOutput.getBytes(this._partialBytes)}if(s>0&&!i){r.putBytes(this._partialOutput.getBytes(s-this._partialBytes));this._partialBytes=s;return true}r.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=0};a.ofb=function(e){e=e||{};this.name="OFB";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=null;this._outBlock=new Array(this._ints);this._partialOutput=n.util.createBuffer();this._partialBytes=0};a.ofb.prototype.start=function(e){if(!("iv"in e)){throw new Error("Invalid IV parameter.")}this._iv=transformIV(e.iv,this.blockSize);this._inBlock=this._iv.slice(0);this._partialBytes=0};a.ofb.prototype.encrypt=function(e,r,i){var n=e.length();if(e.length()===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&n>=this.blockSize){for(var a=0;a0){s=this.blockSize-s}this._partialOutput.clear();for(var a=0;a0){e.read-=this.blockSize}else{for(var a=0;a0){this._partialOutput.getBytes(this._partialBytes)}if(s>0&&!i){r.putBytes(this._partialOutput.getBytes(s-this._partialBytes));this._partialBytes=s;return true}r.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=0};a.ofb.prototype.decrypt=a.ofb.prototype.encrypt;a.ctr=function(e){e=e||{};this.name="CTR";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=null;this._outBlock=new Array(this._ints);this._partialOutput=n.util.createBuffer();this._partialBytes=0};a.ctr.prototype.start=function(e){if(!("iv"in e)){throw new Error("Invalid IV parameter.")}this._iv=transformIV(e.iv,this.blockSize);this._inBlock=this._iv.slice(0);this._partialBytes=0};a.ctr.prototype.encrypt=function(e,r,i){var n=e.length();if(n===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&n>=this.blockSize){for(var a=0;a0){s=this.blockSize-s}this._partialOutput.clear();for(var a=0;a0){e.read-=this.blockSize}if(this._partialBytes>0){this._partialOutput.getBytes(this._partialBytes)}if(s>0&&!i){r.putBytes(this._partialOutput.getBytes(s-this._partialBytes));this._partialBytes=s;return true}r.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=0}inc32(this._inBlock)};a.ctr.prototype.decrypt=a.ctr.prototype.encrypt;a.gcm=function(e){e=e||{};this.name="GCM";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=new Array(this._ints);this._outBlock=new Array(this._ints);this._partialOutput=n.util.createBuffer();this._partialBytes=0;this._R=3774873600};a.gcm.prototype.start=function(e){if(!("iv"in e)){throw new Error("Invalid IV parameter.")}var r=n.util.createBuffer(e.iv);this._cipherLength=0;var i;if("additionalData"in e){i=n.util.createBuffer(e.additionalData)}else{i=n.util.createBuffer()}if("tagLength"in e){this._tagLength=e.tagLength}else{this._tagLength=128}this._tag=null;if(e.decrypt){this._tag=n.util.createBuffer(e.tag).getBytes();if(this._tag.length!==this._tagLength/8){throw new Error("Authentication tag does not match tag length.")}}this._hashBlock=new Array(this._ints);this.tag=null;this._hashSubkey=new Array(this._ints);this.cipher.encrypt([0,0,0,0],this._hashSubkey);this.componentBits=4;this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var a=r.length();if(a===12){this._j0=[r.getInt32(),r.getInt32(),r.getInt32(),1]}else{this._j0=[0,0,0,0];while(r.length()>0){this._j0=this.ghash(this._hashSubkey,this._j0,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()])}this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(from64To32(a*8)))}this._inBlock=this._j0.slice(0);inc32(this._inBlock);this._partialBytes=0;i=n.util.createBuffer(i);this._aDataLength=from64To32(i.length()*8);var s=i.length()%this.blockSize;if(s){i.fillWithByte(0,this.blockSize-s)}this._s=[0,0,0,0];while(i.length()>0){this._s=this.ghash(this._hashSubkey,this._s,[i.getInt32(),i.getInt32(),i.getInt32(),i.getInt32()])}};a.gcm.prototype.encrypt=function(e,r,i){var n=e.length();if(n===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&n>=this.blockSize){for(var a=0;a0){s=this.blockSize-s}this._partialOutput.clear();for(var a=0;a0){this._partialOutput.getBytes(this._partialBytes)}if(s>0&&!i){e.read-=this.blockSize;r.putBytes(this._partialOutput.getBytes(s-this._partialBytes));this._partialBytes=s;return true}r.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock);inc32(this._inBlock)};a.gcm.prototype.decrypt=function(e,r,i){var n=e.length();if(n0)){return true}this.cipher.encrypt(this._inBlock,this._outBlock);inc32(this._inBlock);this._hashBlock[0]=e.getInt32();this._hashBlock[1]=e.getInt32();this._hashBlock[2]=e.getInt32();this._hashBlock[3]=e.getInt32();this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var a=0;a0;--n){r[n]=e[n]>>>1|(e[n-1]&1)<<31}r[0]=e[0]>>>1;if(i){r[0]^=this._R}};a.gcm.prototype.tableMultiply=function(e){var r=[0,0,0,0];for(var i=0;i<32;++i){var n=i/8|0;var a=e[n]>>>(7-i%8)*4&15;var s=this._m[i][a];r[0]^=s[0];r[1]^=s[1];r[2]^=s[2];r[3]^=s[3]}return r};a.gcm.prototype.ghash=function(e,r,i){r[0]^=i[0];r[1]^=i[1];r[2]^=i[2];r[3]^=i[3];return this.tableMultiply(r)};a.gcm.prototype.generateHashTable=function(e,r){var i=8/r;var n=4*i;var a=16*i;var s=new Array(a);for(var o=0;o>>1;var a=new Array(i);a[n]=e.slice(0);var s=n>>>1;while(s>0){this.pow(a[2*s],a[s]=[]);s>>=1}s=2;while(s4){var i=e;e=n.util.createBuffer();for(var a=0;a{var n=i(9177);i(7088);i(873);i(8339);e.exports=n.des=n.des||{};n.des.startEncrypting=function(e,r,i,n){var a=_createCipher({key:e,output:i,decrypt:false,mode:n||(r===null?"ECB":"CBC")});a.start(r);return a};n.des.createEncryptionCipher=function(e,r){return _createCipher({key:e,output:null,decrypt:false,mode:r})};n.des.startDecrypting=function(e,r,i,n){var a=_createCipher({key:e,output:i,decrypt:true,mode:n||(r===null?"ECB":"CBC")});a.start(r);return a};n.des.createDecryptionCipher=function(e,r){return _createCipher({key:e,output:null,decrypt:true,mode:r})};n.des.Algorithm=function(e,r){var i=this;i.name=e;i.mode=new r({blockSize:8,cipher:{encrypt:function(e,r){return _updateBlock(i._keys,e,r,false)},decrypt:function(e,r){return _updateBlock(i._keys,e,r,true)}}});i._init=false};n.des.Algorithm.prototype.initialize=function(e){if(this._init){return}var r=n.util.createBuffer(e.key);if(this.name.indexOf("3DES")===0){if(r.length()!==24){throw new Error("Invalid Triple-DES key size: "+r.length()*8)}}this._keys=_createKeys(r);this._init=true};registerAlgorithm("DES-ECB",n.cipher.modes.ecb);registerAlgorithm("DES-CBC",n.cipher.modes.cbc);registerAlgorithm("DES-CFB",n.cipher.modes.cfb);registerAlgorithm("DES-OFB",n.cipher.modes.ofb);registerAlgorithm("DES-CTR",n.cipher.modes.ctr);registerAlgorithm("3DES-ECB",n.cipher.modes.ecb);registerAlgorithm("3DES-CBC",n.cipher.modes.cbc);registerAlgorithm("3DES-CFB",n.cipher.modes.cfb);registerAlgorithm("3DES-OFB",n.cipher.modes.ofb);registerAlgorithm("3DES-CTR",n.cipher.modes.ctr);function registerAlgorithm(e,r){var factory=function(){return new n.des.Algorithm(e,r)};n.cipher.registerAlgorithm(e,factory)}var a=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756];var s=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344];var o=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584];var c=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928];var l=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080];var p=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312];var d=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154];var h=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function _createKeys(e){var r=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],i=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],n=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],a=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],s=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],o=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],c=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],l=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],p=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],d=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],h=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],g=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],v=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],y=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261];var b=e.length()>8?3:1;var x=[];var E=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0];var w=0,C;for(var T=0;T>>4^I)&252645135;I^=C;_^=C<<4;C=(I>>>-16^_)&65535;_^=C;I^=C<<-16;C=(_>>>2^I)&858993459;I^=C;_^=C<<2;C=(I>>>-16^_)&65535;_^=C;I^=C<<-16;C=(_>>>1^I)&1431655765;I^=C;_^=C<<1;C=(I>>>8^_)&16711935;_^=C;I^=C<<8;C=(_>>>1^I)&1431655765;I^=C;_^=C<<1;C=_<<8|I>>>20&240;_=I<<24|I<<8&16711680|I>>>8&65280|I>>>24&240;I=C;for(var R=0;R>>26;I=I<<2|I>>>26}else{_=_<<1|_>>>27;I=I<<1|I>>>27}_&=-15;I&=-15;var O=r[_>>>28]|i[_>>>24&15]|n[_>>>20&15]|a[_>>>16&15]|s[_>>>12&15]|o[_>>>8&15]|c[_>>>4&15];var N=l[I>>>28]|p[I>>>24&15]|d[I>>>20&15]|h[I>>>16&15]|g[I>>>12&15]|v[I>>>8&15]|y[I>>>4&15];C=(N>>>16^O)&65535;x[w++]=O^C;x[w++]=N^C<<16}}return x}function _updateBlock(e,r,i,n){var g=e.length===32?3:9;var v;if(g===3){v=n?[30,-2,-2]:[0,32,2]}else{v=n?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2]}var y;var b=r[0];var x=r[1];y=(b>>>4^x)&252645135;x^=y;b^=y<<4;y=(b>>>16^x)&65535;x^=y;b^=y<<16;y=(x>>>2^b)&858993459;b^=y;x^=y<<2;y=(x>>>8^b)&16711935;b^=y;x^=y<<8;y=(b>>>1^x)&1431655765;x^=y;b^=y<<1;b=b<<1|b>>>31;x=x<<1|x>>>31;for(var E=0;E>>4|x<<28)^e[T+1];y=b;b=x;x=y^(s[_>>>24&63]|c[_>>>16&63]|p[_>>>8&63]|h[_&63]|a[I>>>24&63]|o[I>>>16&63]|l[I>>>8&63]|d[I&63])}y=b;b=x;x=y}b=b>>>1|b<<31;x=x>>>1|x<<31;y=(b>>>1^x)&1431655765;x^=y;b^=y<<1;y=(x>>>8^b)&16711935;b^=y;x^=y<<8;y=(x>>>2^b)&858993459;b^=y;x^=y<<2;y=(b>>>16^x)&65535;x^=y;b^=y<<16;y=(b>>>4^x)&252645135;x^=y;b^=y<<4;i[0]=b;i[1]=x}function _createCipher(e){e=e||{};var r=(e.mode||"CBC").toUpperCase();var i="DES-"+r;var a;if(e.decrypt){a=n.cipher.createDecipher(i,e.key)}else{a=n.cipher.createCipher(i,e.key)}var s=a.start;a.start=function(e,r){var i=null;if(r instanceof n.util.ByteBuffer){i=r;r={}}r=r||{};r.output=i;r.iv=e;s.call(a,r)};return a}},0:(e,r,i)=>{var n=i(9177);i(7052);i(7821);i(9542);i(8339);var a=i(9414);var s=a.publicKeyValidator;var o=a.privateKeyValidator;if(typeof c==="undefined"){var c=n.jsbn.BigInteger}var l=n.util.ByteBuffer;var p=typeof Buffer==="undefined"?Uint8Array:Buffer;n.pki=n.pki||{};e.exports=n.pki.ed25519=n.ed25519=n.ed25519||{};var d=n.ed25519;d.constants={};d.constants.PUBLIC_KEY_BYTE_LENGTH=32;d.constants.PRIVATE_KEY_BYTE_LENGTH=64;d.constants.SEED_BYTE_LENGTH=32;d.constants.SIGN_BYTE_LENGTH=64;d.constants.HASH_BYTE_LENGTH=64;d.generateKeyPair=function(e){e=e||{};var r=e.seed;if(r===undefined){r=n.random.getBytesSync(d.constants.SEED_BYTE_LENGTH)}else if(typeof r==="string"){if(r.length!==d.constants.SEED_BYTE_LENGTH){throw new TypeError('"seed" must be '+d.constants.SEED_BYTE_LENGTH+" bytes in length.")}}else if(!(r instanceof Uint8Array)){throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.')}r=messageToNativeBuffer({message:r,encoding:"binary"});var i=new p(d.constants.PUBLIC_KEY_BYTE_LENGTH);var a=new p(d.constants.PRIVATE_KEY_BYTE_LENGTH);for(var s=0;s<32;++s){a[s]=r[s]}crypto_sign_keypair(i,a);return{publicKey:i,privateKey:a}};d.privateKeyFromAsn1=function(e){var r={};var i=[];var a=n.asn1.validate(e,o,r,i);if(!a){var s=new Error("Invalid Key.");s.errors=i;throw s}var c=n.asn1.derToOid(r.privateKeyOid);var l=n.oids.EdDSA25519;if(c!==l){throw new Error('Invalid OID "'+c+'"; OID must be "'+l+'".')}var p=r.privateKey;var d=messageToNativeBuffer({message:n.asn1.fromDer(p).value,encoding:"binary"});return{privateKeyBytes:d}};d.publicKeyFromAsn1=function(e){var r={};var i=[];var a=n.asn1.validate(e,s,r,i);if(!a){var o=new Error("Invalid Key.");o.errors=i;throw o}var c=n.asn1.derToOid(r.publicKeyOid);var l=n.oids.EdDSA25519;if(c!==l){throw new Error('Invalid OID "'+c+'"; OID must be "'+l+'".')}var p=r.ed25519PublicKey;if(p.length!==d.constants.PUBLIC_KEY_BYTE_LENGTH){throw new Error("Key length is invalid.")}return messageToNativeBuffer({message:p,encoding:"binary"})};d.publicKeyFromPrivateKey=function(e){e=e||{};var r=messageToNativeBuffer({message:e.privateKey,encoding:"binary"});if(r.length!==d.constants.PRIVATE_KEY_BYTE_LENGTH){throw new TypeError('"options.privateKey" must have a byte length of '+d.constants.PRIVATE_KEY_BYTE_LENGTH)}var i=new p(d.constants.PUBLIC_KEY_BYTE_LENGTH);for(var n=0;n=0};function messageToNativeBuffer(e){var r=e.message;if(r instanceof Uint8Array||r instanceof p){return r}var i=e.encoding;if(r===undefined){if(e.md){r=e.md.digest().getBytes();i="binary"}else{throw new TypeError('"options.message" or "options.md" not specified.')}}if(typeof r==="string"&&!i){throw new TypeError('"options.encoding" must be "binary" or "utf8".')}if(typeof r==="string"){if(typeof Buffer!=="undefined"){return Buffer.from(r,i)}r=new l(r,i)}else if(!(r instanceof l)){throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge '+'ByteBuffer, or a string with "options.encoding" specifying its '+"encoding.")}var n=new p(r.length());for(var a=0;a=32;--n){i=0;for(a=n-32,s=n-12;a>8;r[a]-=i*256}r[a]+=i;r[n]=0}i=0;for(a=0;a<32;++a){r[a]+=i-(r[31]>>4)*E[a];i=r[a]>>8;r[a]&=255}for(a=0;a<32;++a){r[a]-=i*E[a]}for(n=0;n<32;++n){r[n+1]+=r[n]>>8;e[n]=r[n]&255}}function reduce(e){var r=new Float64Array(64);for(var i=0;i<64;++i){r[i]=e[i];e[i]=0}modL(e,r)}function add(e,r){var i=gf(),n=gf(),a=gf(),s=gf(),o=gf(),c=gf(),l=gf(),p=gf(),d=gf();Z(i,e[1],e[0]);Z(d,r[1],r[0]);M(i,i,d);A(n,e[0],e[1]);A(d,r[0],r[1]);M(n,n,d);M(a,e[3],r[3]);M(a,a,y);M(s,e[2],r[2]);A(s,s,s);Z(o,n,i);Z(c,s,a);A(l,s,a);A(p,n,i);M(e[0],o,c);M(e[1],p,l);M(e[2],l,c);M(e[3],o,p)}function cswap(e,r,i){for(var n=0;n<4;++n){sel25519(e[n],r[n],i)}}function pack(e,r){var i=gf(),n=gf(),a=gf();inv25519(a,r[2]);M(i,r[0],a);M(n,r[1],a);pack25519(e,n);e[31]^=par25519(i)<<7}function pack25519(e,r){var i,n,a;var s=gf(),o=gf();for(i=0;i<16;++i){o[i]=r[i]}car25519(o);car25519(o);car25519(o);for(n=0;n<2;++n){s[0]=o[0]-65517;for(i=1;i<15;++i){s[i]=o[i]-65535-(s[i-1]>>16&1);s[i-1]&=65535}s[15]=o[15]-32767-(s[14]>>16&1);a=s[15]>>16&1;s[14]&=65535;sel25519(o,s,1-a)}for(i=0;i<16;i++){e[2*i]=o[i]&255;e[2*i+1]=o[i]>>8}}function unpackneg(e,r){var i=gf(),n=gf(),a=gf(),s=gf(),o=gf(),c=gf(),l=gf();set25519(e[2],g);unpack25519(e[1],r);S(a,e[1]);M(s,a,v);Z(a,a,e[2]);A(s,e[2],s);S(o,s);S(c,o);M(l,c,o);M(i,l,a);M(i,i,s);pow2523(i,i);M(i,i,a);M(i,i,s);M(i,i,s);M(e[0],i,s);S(n,e[0]);M(n,n,s);if(neq25519(n,a)){M(e[0],e[0],w)}S(n,e[0]);M(n,n,s);if(neq25519(n,a)){return-1}if(par25519(e[0])===r[31]>>7){Z(e[0],h,e[0])}M(e[3],e[0],e[1]);return 0}function unpack25519(e,r){var i;for(i=0;i<16;++i){e[i]=r[2*i]+(r[2*i+1]<<8)}e[15]&=32767}function pow2523(e,r){var i=gf();var n;for(n=0;n<16;++n){i[n]=r[n]}for(n=250;n>=0;--n){S(i,i);if(n!==1){M(i,i,r)}}for(n=0;n<16;++n){e[n]=i[n]}}function neq25519(e,r){var i=new p(32);var n=new p(32);pack25519(i,e);pack25519(n,r);return crypto_verify_32(i,0,n,0)}function crypto_verify_32(e,r,i,n){return vn(e,r,i,n,32)}function vn(e,r,i,n,a){var s,o=0;for(s=0;s>>8)-1}function par25519(e){var r=new p(32);pack25519(r,e);return r[0]&1}function scalarmult(e,r,i){var n,a;set25519(e[0],h);set25519(e[1],g);set25519(e[2],g);set25519(e[3],h);for(a=255;a>=0;--a){n=i[a/8|0]>>(a&7)&1;cswap(e,r,n);add(r,e);add(e,e);cswap(e,r,n)}}function scalarbase(e,r){var i=[gf(),gf(),gf(),gf()];set25519(i[0],b);set25519(i[1],x);set25519(i[2],g);M(i[3],b,x);scalarmult(e,i,r)}function set25519(e,r){var i;for(i=0;i<16;i++){e[i]=r[i]|0}}function inv25519(e,r){var i=gf();var n;for(n=0;n<16;++n){i[n]=r[n]}for(n=253;n>=0;--n){S(i,i);if(n!==2&&n!==4){M(i,i,r)}}for(n=0;n<16;++n){e[n]=i[n]}}function car25519(e){var r,i,n=1;for(r=0;r<16;++r){i=e[r]+n+65535;n=Math.floor(i/65536);e[r]=i-n*65536}e[0]+=n-1+37*(n-1)}function sel25519(e,r,i){var n,a=~(i-1);for(var s=0;s<16;++s){n=a&(e[s]^r[s]);e[s]^=n;r[s]^=n}}function gf(e){var r,i=new Float64Array(16);if(e){for(r=0;r{e.exports={options:{usePureJavaScript:false}}},5104:(e,r,i)=>{var n=i(9177);i(6231);i(8339);var a=e.exports=n.hmac=n.hmac||{};a.create=function(){var e=null;var r=null;var i=null;var a=null;var s={};s.start=function(s,o){if(s!==null){if(typeof s==="string"){s=s.toLowerCase();if(s in n.md.algorithms){r=n.md.algorithms[s].create()}else{throw new Error('Unknown hash algorithm "'+s+'"')}}else{r=s}}if(o===null){o=e}else{if(typeof o==="string"){o=n.util.createBuffer(o)}else if(n.util.isArray(o)){var c=o;o=n.util.createBuffer();for(var l=0;lr.blockLength){r.start();r.update(o.bytes());o=r.digest()}i=n.util.createBuffer();a=n.util.createBuffer();p=o.length();for(var l=0;l{e.exports=i(9177);i(7994);i(1449);i(9549);i(7088);i(7157);i(0);i(5104);i(5173);i(9994);i(1145);i(3339);i(1611);i(154);i(7014);i(466);i(4829);i(6924);i(6861);i(4467);i(4376);i(7821);i(9965);i(4280);i(9167);i(8339)},7052:(e,r,i)=>{var n=i(9177);e.exports=n.jsbn=n.jsbn||{};var a;var s=0xdeadbeefcafe;var o=(s&16777215)==15715070;function BigInteger(e,r,i){this.data=[];if(e!=null)if("number"==typeof e)this.fromNumber(e,r,i);else if(r==null&&"string"!=typeof e)this.fromString(e,256);else this.fromString(e,r)}n.jsbn.BigInteger=BigInteger;function nbi(){return new BigInteger(null)}function am1(e,r,i,n,a,s){while(--s>=0){var o=r*this.data[e++]+i.data[n]+a;a=Math.floor(o/67108864);i.data[n++]=o&67108863}return a}function am2(e,r,i,n,a,s){var o=r&32767,c=r>>15;while(--s>=0){var l=this.data[e]&32767;var p=this.data[e++]>>15;var d=c*l+p*o;l=o*l+((d&32767)<<15)+i.data[n]+(a&1073741823);a=(l>>>30)+(d>>>15)+c*p+(a>>>30);i.data[n++]=l&1073741823}return a}function am3(e,r,i,n,a,s){var o=r&16383,c=r>>14;while(--s>=0){var l=this.data[e]&16383;var p=this.data[e++]>>14;var d=c*l+p*o;l=o*l+((d&16383)<<14)+i.data[n]+a;a=(l>>28)+(d>>14)+c*p;i.data[n++]=l&268435455}return a}if(typeof navigator==="undefined"){BigInteger.prototype.am=am3;a=28}else if(o&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;a=30}else if(o&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;a=26}else{BigInteger.prototype.am=am3;a=28}BigInteger.prototype.DB=a;BigInteger.prototype.DM=(1<=0;--r)e.data[r]=this.data[r];e.t=this.t;e.s=this.s}function bnpFromInt(e){this.t=1;this.s=e<0?-1:0;if(e>0)this.data[0]=e;else if(e<-1)this.data[0]=e+this.DV;else this.t=0}function nbv(e){var r=nbi();r.fromInt(e);return r}function bnpFromString(e,r){var i;if(r==16)i=4;else if(r==8)i=3;else if(r==256)i=8;else if(r==2)i=1;else if(r==32)i=5;else if(r==4)i=2;else{this.fromRadix(e,r);return}this.t=0;this.s=0;var n=e.length,a=false,s=0;while(--n>=0){var o=i==8?e[n]&255:intAt(e,n);if(o<0){if(e.charAt(n)=="-")a=true;continue}a=false;if(s==0)this.data[this.t++]=o;else if(s+i>this.DB){this.data[this.t-1]|=(o&(1<>this.DB-s}else this.data[this.t-1]|=o<=this.DB)s-=this.DB}if(i==8&&(e[0]&128)!=0){this.s=-1;if(s>0)this.data[this.t-1]|=(1<0&&this.data[this.t-1]==e)--this.t}function bnToString(e){if(this.s<0)return"-"+this.negate().toString(e);var r;if(e==16)r=4;else if(e==8)r=3;else if(e==2)r=1;else if(e==32)r=5;else if(e==4)r=2;else return this.toRadix(e);var i=(1<0){if(c>c)>0){a=true;s=int2char(n)}while(o>=0){if(c>(c+=this.DB-r)}else{n=this.data[o]>>(c-=r)&i;if(c<=0){c+=this.DB;--o}}if(n>0)a=true;if(a)s+=int2char(n)}}return a?s:"0"}function bnNegate(){var e=nbi();BigInteger.ZERO.subTo(this,e);return e}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(e){var r=this.s-e.s;if(r!=0)return r;var i=this.t;r=i-e.t;if(r!=0)return this.s<0?-r:r;while(--i>=0)if((r=this.data[i]-e.data[i])!=0)return r;return 0}function nbits(e){var r=1,i;if((i=e>>>16)!=0){e=i;r+=16}if((i=e>>8)!=0){e=i;r+=8}if((i=e>>4)!=0){e=i;r+=4}if((i=e>>2)!=0){e=i;r+=2}if((i=e>>1)!=0){e=i;r+=1}return r}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this.data[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(e,r){var i;for(i=this.t-1;i>=0;--i)r.data[i+e]=this.data[i];for(i=e-1;i>=0;--i)r.data[i]=0;r.t=this.t+e;r.s=this.s}function bnpDRShiftTo(e,r){for(var i=e;i=0;--c){r.data[c+s+1]=this.data[c]>>n|o;o=(this.data[c]&a)<=0;--c)r.data[c]=0;r.data[s]=o;r.t=this.t+s+1;r.s=this.s;r.clamp()}function bnpRShiftTo(e,r){r.s=this.s;var i=Math.floor(e/this.DB);if(i>=this.t){r.t=0;return}var n=e%this.DB;var a=this.DB-n;var s=(1<>n;for(var o=i+1;o>n}if(n>0)r.data[this.t-i-1]|=(this.s&s)<>=this.DB}if(e.t>=this.DB}n+=this.s}else{n+=this.s;while(i>=this.DB}n-=e.s}r.s=n<0?-1:0;if(n<-1)r.data[i++]=this.DV+n;else if(n>0)r.data[i++]=n;r.t=i;r.clamp()}function bnpMultiplyTo(e,r){var i=this.abs(),n=e.abs();var a=i.t;r.t=a+n.t;while(--a>=0)r.data[a]=0;for(a=0;a=0)e.data[i]=0;for(i=0;i=r.DV){e.data[i+r.t]-=r.DV;e.data[i+r.t+1]=1}}if(e.t>0)e.data[e.t-1]+=r.am(i,r.data[i],e,2*i,0,1);e.s=0;e.clamp()}function bnpDivRemTo(e,r,i){var n=e.abs();if(n.t<=0)return;var a=this.abs();if(a.t0){n.lShiftTo(l,s);a.lShiftTo(l,i)}else{n.copyTo(s);a.copyTo(i)}var p=s.t;var d=s.data[p-1];if(d==0)return;var h=d*(1<1?s.data[p-2]>>this.F2:0);var g=this.FV/h,v=(1<=0){i.data[i.t++]=1;i.subTo(E,i)}BigInteger.ONE.dlShiftTo(p,E);E.subTo(s,s);while(s.t=0){var w=i.data[--b]==d?this.DM:Math.floor(i.data[b]*g+(i.data[b-1]+y)*v);if((i.data[b]+=s.am(0,w,i,x,0,p))0)i.rShiftTo(l,i);if(o<0)BigInteger.ZERO.subTo(i,i)}function bnMod(e){var r=nbi();this.abs().divRemTo(e,null,r);if(this.s<0&&r.compareTo(BigInteger.ZERO)>0)e.subTo(r,r);return r}function Classic(e){this.m=e}function cConvert(e){if(e.s<0||e.compareTo(this.m)>=0)return e.mod(this.m);else return e}function cRevert(e){return e}function cReduce(e){e.divRemTo(this.m,null,e)}function cMulTo(e,r,i){e.multiplyTo(r,i);this.reduce(i)}function cSqrTo(e,r){e.squareTo(r);this.reduce(r)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1)return 0;var e=this.data[0];if((e&1)==0)return 0;var r=e&3;r=r*(2-(e&15)*r)&15;r=r*(2-(e&255)*r)&255;r=r*(2-((e&65535)*r&65535))&65535;r=r*(2-e*r%this.DV)%this.DV;return r>0?this.DV-r:-r}function Montgomery(e){this.m=e;this.mp=e.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<0)this.m.subTo(r,r);return r}function montRevert(e){var r=nbi();e.copyTo(r);this.reduce(r);return r}function montReduce(e){while(e.t<=this.mt2)e.data[e.t++]=0;for(var r=0;r>15)*this.mpl&this.um)<<15)&e.DM;i=r+this.m.t;e.data[i]+=this.m.am(0,n,e,r,0,this.m.t);while(e.data[i]>=e.DV){e.data[i]-=e.DV;e.data[++i]++}}e.clamp();e.drShiftTo(this.m.t,e);if(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function montSqrTo(e,r){e.squareTo(r);this.reduce(r)}function montMulTo(e,r,i){e.multiplyTo(r,i);this.reduce(i)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return(this.t>0?this.data[0]&1:this.s)==0}function bnpExp(e,r){if(e>4294967295||e<1)return BigInteger.ONE;var i=nbi(),n=nbi(),a=r.convert(this),s=nbits(e)-1;a.copyTo(i);while(--s>=0){r.sqrTo(i,n);if((e&1<0)r.mulTo(n,a,i);else{var o=i;i=n;n=o}}return r.revert(i)}function bnModPowInt(e,r){var i;if(e<256||r.isEven())i=new Classic(r);else i=new Montgomery(r);return this.exp(e,i)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnClone(){var e=nbi();this.copyTo(e);return e}function bnIntValue(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this.data[0];else if(this.t==0)return 0;return(this.data[1]&(1<<32-this.DB)-1)<>24}function bnShortValue(){return this.t==0?this.s:this.data[0]<<16>>16}function bnpChunkSize(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this.data[0]<=0)return 0;else return 1}function bnpToRadix(e){if(e==null)e=10;if(this.signum()==0||e<2||e>36)return"0";var r=this.chunkSize(e);var i=Math.pow(e,r);var n=nbv(i),a=nbi(),s=nbi(),o="";this.divRemTo(n,a,s);while(a.signum()>0){o=(i+s.intValue()).toString(e).substr(1)+o;a.divRemTo(n,a,s)}return s.intValue().toString(e)+o}function bnpFromRadix(e,r){this.fromInt(0);if(r==null)r=10;var i=this.chunkSize(r);var n=Math.pow(r,i),a=false,s=0,o=0;for(var c=0;c=i){this.dMultiply(n);this.dAddOffset(o,0);s=0;o=0}}if(s>0){this.dMultiply(Math.pow(r,s));this.dAddOffset(o,0)}if(a)BigInteger.ZERO.subTo(this,this)}function bnpFromNumber(e,r,i){if("number"==typeof r){if(e<2)this.fromInt(1);else{this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(BigInteger.ONE.shiftLeft(e-1),op_or,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(r)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(BigInteger.ONE.shiftLeft(e-1),this)}}}else{var n=new Array,a=e&7;n.length=(e>>3)+1;r.nextBytes(n);if(a>0)n[0]&=(1<0){if(i>i)!=(this.s&this.DM)>>i)r[a++]=n|this.s<=0){if(i<8){n=(this.data[e]&(1<>(i+=this.DB-8)}else{n=this.data[e]>>(i-=8)&255;if(i<=0){i+=this.DB;--e}}if((n&128)!=0)n|=-256;if(a==0&&(this.s&128)!=(n&128))++a;if(a>0||n!=this.s)r[a++]=n}}return r}function bnEquals(e){return this.compareTo(e)==0}function bnMin(e){return this.compareTo(e)<0?this:e}function bnMax(e){return this.compareTo(e)>0?this:e}function bnpBitwiseTo(e,r,i){var n,a,s=Math.min(e.t,this.t);for(n=0;n>=16;r+=16}if((e&255)==0){e>>=8;r+=8}if((e&15)==0){e>>=4;r+=4}if((e&3)==0){e>>=2;r+=2}if((e&1)==0)++r;return r}function bnGetLowestSetBit(){for(var e=0;e=this.t)return this.s!=0;return(this.data[r]&1<>=this.DB}if(e.t>=this.DB}n+=this.s}else{n+=this.s;while(i>=this.DB}n+=e.s}r.s=n<0?-1:0;if(n>0)r.data[i++]=n;else if(n<-1)r.data[i++]=this.DV+n;r.t=i;r.clamp()}function bnAdd(e){var r=nbi();this.addTo(e,r);return r}function bnSubtract(e){var r=nbi();this.subTo(e,r);return r}function bnMultiply(e){var r=nbi();this.multiplyTo(e,r);return r}function bnDivide(e){var r=nbi();this.divRemTo(e,r,null);return r}function bnRemainder(e){var r=nbi();this.divRemTo(e,null,r);return r}function bnDivideAndRemainder(e){var r=nbi(),i=nbi();this.divRemTo(e,r,i);return new Array(r,i)}function bnpDMultiply(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(e,r){if(e==0)return;while(this.t<=r)this.data[this.t++]=0;this.data[r]+=e;while(this.data[r]>=this.DV){this.data[r]-=this.DV;if(++r>=this.t)this.data[this.t++]=0;++this.data[r]}}function NullExp(){}function nNop(e){return e}function nMulTo(e,r,i){e.multiplyTo(r,i)}function nSqrTo(e,r){e.squareTo(r)}NullExp.prototype.convert=nNop;NullExp.prototype.revert=nNop;NullExp.prototype.mulTo=nMulTo;NullExp.prototype.sqrTo=nSqrTo;function bnPow(e){return this.exp(e,new NullExp)}function bnpMultiplyLowerTo(e,r,i){var n=Math.min(this.t+e.t,r);i.s=0;i.t=n;while(n>0)i.data[--n]=0;var a;for(a=i.t-this.t;n=0)i.data[n]=0;for(n=Math.max(r-this.t,0);n2*this.m.t)return e.mod(this.m);else if(e.compareTo(this.m)<0)return e;else{var r=nbi();e.copyTo(r);this.reduce(r);return r}}function barrettRevert(e){return e}function barrettReduce(e){e.drShiftTo(this.m.t-1,this.r2);if(e.t>this.m.t+1){e.t=this.m.t+1;e.clamp()}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function barrettSqrTo(e,r){e.squareTo(r);this.reduce(r)}function barrettMulTo(e,r,i){e.multiplyTo(r,i);this.reduce(i)}Barrett.prototype.convert=barrettConvert;Barrett.prototype.revert=barrettRevert;Barrett.prototype.reduce=barrettReduce;Barrett.prototype.mulTo=barrettMulTo;Barrett.prototype.sqrTo=barrettSqrTo;function bnModPow(e,r){var i=e.bitLength(),n,a=nbv(1),s;if(i<=0)return a;else if(i<18)n=1;else if(i<48)n=3;else if(i<144)n=4;else if(i<768)n=5;else n=6;if(i<8)s=new Classic(r);else if(r.isEven())s=new Barrett(r);else s=new Montgomery(r);var o=new Array,c=3,l=n-1,p=(1<1){var d=nbi();s.sqrTo(o[1],d);while(c<=p){o[c]=nbi();s.mulTo(d,o[c-2],o[c]);c+=2}}var h=e.t-1,g,v=true,y=nbi(),b;i=nbits(e.data[h])-1;while(h>=0){if(i>=l)g=e.data[h]>>i-l&p;else{g=(e.data[h]&(1<0)g|=e.data[h-1]>>this.DB+i-l}c=n;while((g&1)==0){g>>=1;--c}if((i-=c)<0){i+=this.DB;--h}if(v){o[g].copyTo(a);v=false}else{while(c>1){s.sqrTo(a,y);s.sqrTo(y,a);c-=2}if(c>0)s.sqrTo(a,y);else{b=a;a=y;y=b}s.mulTo(y,o[g],a)}while(h>=0&&(e.data[h]&1<0){r.rShiftTo(s,r);i.rShiftTo(s,i)}while(r.signum()>0){if((a=r.getLowestSetBit())>0)r.rShiftTo(a,r);if((a=i.getLowestSetBit())>0)i.rShiftTo(a,i);if(r.compareTo(i)>=0){r.subTo(i,r);r.rShiftTo(1,r)}else{i.subTo(r,i);i.rShiftTo(1,i)}}if(s>0)i.lShiftTo(s,i);return i}function bnpModInt(e){if(e<=0)return 0;var r=this.DV%e,i=this.s<0?e-1:0;if(this.t>0)if(r==0)i=this.data[0]%e;else for(var n=this.t-1;n>=0;--n)i=(r*i+this.data[n])%e;return i}function bnModInverse(e){var r=e.isEven();if(this.isEven()&&r||e.signum()==0)return BigInteger.ZERO;var i=e.clone(),n=this.clone();var a=nbv(1),s=nbv(0),o=nbv(0),c=nbv(1);while(i.signum()!=0){while(i.isEven()){i.rShiftTo(1,i);if(r){if(!a.isEven()||!s.isEven()){a.addTo(this,a);s.subTo(e,s)}a.rShiftTo(1,a)}else if(!s.isEven())s.subTo(e,s);s.rShiftTo(1,s)}while(n.isEven()){n.rShiftTo(1,n);if(r){if(!o.isEven()||!c.isEven()){o.addTo(this,o);c.subTo(e,c)}o.rShiftTo(1,o)}else if(!c.isEven())c.subTo(e,c);c.rShiftTo(1,c)}if(i.compareTo(n)>=0){i.subTo(n,i);if(r)a.subTo(o,a);s.subTo(c,s)}else{n.subTo(i,n);if(r)o.subTo(a,o);c.subTo(s,c)}}if(n.compareTo(BigInteger.ONE)!=0)return BigInteger.ZERO;if(c.compareTo(e)>=0)return c.subtract(e);if(c.signum()<0)c.addTo(e,c);else return c;if(c.signum()<0)return c.add(e);else return c}var g=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509];var v=(1<<26)/g[g.length-1];function bnIsProbablePrime(e){var r,i=this.abs();if(i.t==1&&i.data[0]<=g[g.length-1]){for(r=0;r=0);var c=s.modPow(n,this);if(c.compareTo(BigInteger.ONE)!=0&&c.compareTo(r)!=0){var l=1;while(l++{var n=i(9177);i(8339);i(7821);i(7052);e.exports=n.kem=n.kem||{};var a=n.jsbn.BigInteger;n.kem.rsa={};n.kem.rsa.create=function(e,r){r=r||{};var i=r.prng||n.random;var s={};s.encrypt=function(r,s){var o=Math.ceil(r.n.bitLength()/8);var c;do{c=new a(n.util.bytesToHex(i.getBytesSync(o)),16).mod(r.n)}while(c.compareTo(a.ONE)<=0);c=n.util.hexToBytes(c.toString(16));var l=o-c.length;if(l>0){c=n.util.fillString(String.fromCharCode(0),l)+c}var p=r.encrypt(c,"NONE");var d=e.generate(c,s);return{encapsulation:p,key:d}};s.decrypt=function(r,i,n){var a=r.decrypt(i,"NONE");return e.generate(a,n)};return s};n.kem.kdf1=function(e,r){_createKDF(this,e,0,r||e.digestLength)};n.kem.kdf2=function(e,r){_createKDF(this,e,1,r||e.digestLength)};function _createKDF(e,r,i,a){e.generate=function(e,s){var o=new n.util.ByteBuffer;var c=Math.ceil(s/a)+i;var l=new n.util.ByteBuffer;for(var p=i;p{var n=i(9177);i(8339);e.exports=n.log=n.log||{};n.log.levels=["none","error","warning","info","debug","verbose","max"];var a={};var s=[];var o=null;n.log.LEVEL_LOCKED=1<<1;n.log.NO_LEVEL_CHECK=1<<2;n.log.INTERPOLATE=1<<3;for(var c=0;c{e.exports=i(6231);i(6594);i(279);i(4086);i(9542)},6231:(e,r,i)=>{var n=i(9177);e.exports=n.md=n.md||{};n.md.algorithms=n.md.algorithms||{}},6594:(e,r,i)=>{var n=i(9177);i(6231);i(8339);var a=e.exports=n.md5=n.md5||{};n.md.md5=n.md.algorithms.md5=a;a.create=function(){if(!p){_init()}var e=null;var r=n.util.createBuffer();var i=new Array(16);var a={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};a.start=function(){a.messageLength=0;a.fullMessageLength=a.messageLength64=[];var i=a.messageLengthSize/4;for(var s=0;s>>0,c>>>0];for(var l=a.fullMessageLength.length-1;l>=0;--l){a.fullMessageLength[l]+=c[1];c[1]=c[0]+(a.fullMessageLength[l]/4294967296>>>0);a.fullMessageLength[l]=a.fullMessageLength[l]>>>0;c[0]=c[1]/4294967296>>>0}r.putBytes(s);_update(e,i,r);if(r.read>2048||r.length()===0){r.compact()}return a};a.digest=function(){var o=n.util.createBuffer();o.putBytes(r.bytes());var c=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize;var l=c&a.blockLength-1;o.putBytes(s.substr(0,a.blockLength-l));var p,d=0;for(var h=a.fullMessageLength.length-1;h>=0;--h){p=a.fullMessageLength[h]*8+d;d=p/4294967296>>>0;o.putInt32Le(p>>>0)}var g={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3};_update(g,i,o);var v=n.util.createBuffer();v.putInt32Le(g.h0);v.putInt32Le(g.h1);v.putInt32Le(g.h2);v.putInt32Le(g.h3);return v};return a};var s=null;var o=null;var c=null;var l=null;var p=false;function _init(){s=String.fromCharCode(128);s+=n.util.fillString(String.fromCharCode(0),64);o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9];c=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21];l=new Array(64);for(var e=0;e<64;++e){l[e]=Math.floor(Math.abs(Math.sin(e+1))*4294967296)}p=true}function _update(e,r,i){var n,a,s,p,d,h,g,v;var y=i.length();while(y>=64){a=e.h0;s=e.h1;p=e.h2;d=e.h3;for(v=0;v<16;++v){r[v]=i.getInt32Le();h=d^s&(p^d);n=a+h+l[v]+r[v];g=c[v];a=d;d=p;p=s;s+=n<>>32-g}for(;v<32;++v){h=p^d&(s^p);n=a+h+l[v]+r[o[v]];g=c[v];a=d;d=p;p=s;s+=n<>>32-g}for(;v<48;++v){h=s^p^d;n=a+h+l[v]+r[o[v]];g=c[v];a=d;d=p;p=s;s+=n<>>32-g}for(;v<64;++v){h=p^(s|~d);n=a+h+l[v]+r[o[v]];g=c[v];a=d;d=p;p=s;s+=n<>>32-g}e.h0=e.h0+a|0;e.h1=e.h1+s|0;e.h2=e.h2+p|0;e.h3=e.h3+d|0;y-=64}}},7973:(e,r,i)=>{var n=i(9177);i(3339);e.exports=n.mgf=n.mgf||{};n.mgf.mgf1=n.mgf1},3339:(e,r,i)=>{var n=i(9177);i(8339);n.mgf=n.mgf||{};var a=e.exports=n.mgf.mgf1=n.mgf1=n.mgf1||{};a.create=function(e){var r={generate:function(r,i){var a=new n.util.ByteBuffer;var s=Math.ceil(i/e.digestLength);for(var o=0;o{var n=i(9177);n.pki=n.pki||{};var a=e.exports=n.pki.oids=n.oids=n.oids||{};function _IN(e,r){a[e]=r;a[r]=e}function _I_(e,r){a[e]=r}_IN("1.2.840.113549.1.1.1","rsaEncryption");_IN("1.2.840.113549.1.1.4","md5WithRSAEncryption");_IN("1.2.840.113549.1.1.5","sha1WithRSAEncryption");_IN("1.2.840.113549.1.1.7","RSAES-OAEP");_IN("1.2.840.113549.1.1.8","mgf1");_IN("1.2.840.113549.1.1.9","pSpecified");_IN("1.2.840.113549.1.1.10","RSASSA-PSS");_IN("1.2.840.113549.1.1.11","sha256WithRSAEncryption");_IN("1.2.840.113549.1.1.12","sha384WithRSAEncryption");_IN("1.2.840.113549.1.1.13","sha512WithRSAEncryption");_IN("1.3.101.112","EdDSA25519");_IN("1.2.840.10040.4.3","dsa-with-sha1");_IN("1.3.14.3.2.7","desCBC");_IN("1.3.14.3.2.26","sha1");_IN("1.3.14.3.2.29","sha1WithRSASignature");_IN("2.16.840.1.101.3.4.2.1","sha256");_IN("2.16.840.1.101.3.4.2.2","sha384");_IN("2.16.840.1.101.3.4.2.3","sha512");_IN("1.2.840.113549.2.5","md5");_IN("1.2.840.113549.1.7.1","data");_IN("1.2.840.113549.1.7.2","signedData");_IN("1.2.840.113549.1.7.3","envelopedData");_IN("1.2.840.113549.1.7.4","signedAndEnvelopedData");_IN("1.2.840.113549.1.7.5","digestedData");_IN("1.2.840.113549.1.7.6","encryptedData");_IN("1.2.840.113549.1.9.1","emailAddress");_IN("1.2.840.113549.1.9.2","unstructuredName");_IN("1.2.840.113549.1.9.3","contentType");_IN("1.2.840.113549.1.9.4","messageDigest");_IN("1.2.840.113549.1.9.5","signingTime");_IN("1.2.840.113549.1.9.6","counterSignature");_IN("1.2.840.113549.1.9.7","challengePassword");_IN("1.2.840.113549.1.9.8","unstructuredAddress");_IN("1.2.840.113549.1.9.14","extensionRequest");_IN("1.2.840.113549.1.9.20","friendlyName");_IN("1.2.840.113549.1.9.21","localKeyId");_IN("1.2.840.113549.1.9.22.1","x509Certificate");_IN("1.2.840.113549.1.12.10.1.1","keyBag");_IN("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag");_IN("1.2.840.113549.1.12.10.1.3","certBag");_IN("1.2.840.113549.1.12.10.1.4","crlBag");_IN("1.2.840.113549.1.12.10.1.5","secretBag");_IN("1.2.840.113549.1.12.10.1.6","safeContentsBag");_IN("1.2.840.113549.1.5.13","pkcs5PBES2");_IN("1.2.840.113549.1.5.12","pkcs5PBKDF2");_IN("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4");_IN("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4");_IN("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC");_IN("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC");_IN("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC");_IN("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC");_IN("1.2.840.113549.2.7","hmacWithSHA1");_IN("1.2.840.113549.2.8","hmacWithSHA224");_IN("1.2.840.113549.2.9","hmacWithSHA256");_IN("1.2.840.113549.2.10","hmacWithSHA384");_IN("1.2.840.113549.2.11","hmacWithSHA512");_IN("1.2.840.113549.3.7","des-EDE3-CBC");_IN("2.16.840.1.101.3.4.1.2","aes128-CBC");_IN("2.16.840.1.101.3.4.1.22","aes192-CBC");_IN("2.16.840.1.101.3.4.1.42","aes256-CBC");_IN("2.5.4.3","commonName");_IN("2.5.4.4","surname");_IN("2.5.4.5","serialNumber");_IN("2.5.4.6","countryName");_IN("2.5.4.7","localityName");_IN("2.5.4.8","stateOrProvinceName");_IN("2.5.4.9","streetAddress");_IN("2.5.4.10","organizationName");_IN("2.5.4.11","organizationalUnitName");_IN("2.5.4.12","title");_IN("2.5.4.13","description");_IN("2.5.4.15","businessCategory");_IN("2.5.4.17","postalCode");_IN("2.5.4.42","givenName");_IN("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName");_IN("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName");_IN("2.16.840.1.113730.1.1","nsCertType");_IN("2.16.840.1.113730.1.13","nsComment");_I_("2.5.29.1","authorityKeyIdentifier");_I_("2.5.29.2","keyAttributes");_I_("2.5.29.3","certificatePolicies");_I_("2.5.29.4","keyUsageRestriction");_I_("2.5.29.5","policyMapping");_I_("2.5.29.6","subtreesConstraint");_I_("2.5.29.7","subjectAltName");_I_("2.5.29.8","issuerAltName");_I_("2.5.29.9","subjectDirectoryAttributes");_I_("2.5.29.10","basicConstraints");_I_("2.5.29.11","nameConstraints");_I_("2.5.29.12","policyConstraints");_I_("2.5.29.13","basicConstraints");_IN("2.5.29.14","subjectKeyIdentifier");_IN("2.5.29.15","keyUsage");_I_("2.5.29.16","privateKeyUsagePeriod");_IN("2.5.29.17","subjectAltName");_IN("2.5.29.18","issuerAltName");_IN("2.5.29.19","basicConstraints");_I_("2.5.29.20","cRLNumber");_I_("2.5.29.21","cRLReason");_I_("2.5.29.22","expirationDate");_I_("2.5.29.23","instructionCode");_I_("2.5.29.24","invalidityDate");_I_("2.5.29.25","cRLDistributionPoints");_I_("2.5.29.26","issuingDistributionPoint");_I_("2.5.29.27","deltaCRLIndicator");_I_("2.5.29.28","issuingDistributionPoint");_I_("2.5.29.29","certificateIssuer");_I_("2.5.29.30","nameConstraints");_IN("2.5.29.31","cRLDistributionPoints");_IN("2.5.29.32","certificatePolicies");_I_("2.5.29.33","policyMappings");_I_("2.5.29.34","policyConstraints");_IN("2.5.29.35","authorityKeyIdentifier");_I_("2.5.29.36","policyConstraints");_IN("2.5.29.37","extKeyUsage");_I_("2.5.29.46","freshestCRL");_I_("2.5.29.54","inhibitAnyPolicy");_IN("1.3.6.1.4.1.11129.2.4.2","timestampList");_IN("1.3.6.1.5.5.7.1.1","authorityInfoAccess");_IN("1.3.6.1.5.5.7.3.1","serverAuth");_IN("1.3.6.1.5.5.7.3.2","clientAuth");_IN("1.3.6.1.5.5.7.3.3","codeSigning");_IN("1.3.6.1.5.5.7.3.4","emailProtection");_IN("1.3.6.1.5.5.7.3.8","timeStamping")},1281:(e,r,i)=>{var n=i(9177);i(7994);i(9549);i(7157);i(6231);i(1925);i(1611);i(154);i(7821);i(9965);i(3921);i(8339);if(typeof a==="undefined"){var a=n.jsbn.BigInteger}var s=n.asn1;var o=n.pki=n.pki||{};e.exports=o.pbe=n.pbe=n.pbe||{};var c=o.oids;var l={name:"EncryptedPrivateKeyInfo",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:s.Class.UNIVERSAL,type:s.Type.OCTETSTRING,constructed:false,capture:"encryptedData"}]};var p={name:"PBES2Algorithms",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"PBES2Algorithms.params.salt",tagClass:s.Class.UNIVERSAL,type:s.Type.OCTETSTRING,constructed:false,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,optional:true,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,optional:true,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:s.Class.UNIVERSAL,type:s.Type.OID,constructed:false,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:s.Class.UNIVERSAL,type:s.Type.OCTETSTRING,constructed:false,capture:"encIv"}]}]};var d={name:"pkcs-12PbeParams",tagClass:s.Class.UNIVERSAL,type:s.Type.SEQUENCE,constructed:true,value:[{name:"pkcs-12PbeParams.salt",tagClass:s.Class.UNIVERSAL,type:s.Type.OCTETSTRING,constructed:false,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:s.Class.UNIVERSAL,type:s.Type.INTEGER,constructed:false,capture:"iterations"}]};o.encryptPrivateKeyInfo=function(e,r,i){i=i||{};i.saltSize=i.saltSize||8;i.count=i.count||2048;i.algorithm=i.algorithm||"aes128";i.prfAlgorithm=i.prfAlgorithm||"sha1";var a=n.random.getBytesSync(i.saltSize);var l=i.count;var p=s.integerToDer(l);var d;var h;var g;if(i.algorithm.indexOf("aes")===0||i.algorithm==="des"){var v,y,b;switch(i.algorithm){case"aes128":d=16;v=16;y=c["aes128-CBC"];b=n.aes.createEncryptionCipher;break;case"aes192":d=24;v=16;y=c["aes192-CBC"];b=n.aes.createEncryptionCipher;break;case"aes256":d=32;v=16;y=c["aes256-CBC"];b=n.aes.createEncryptionCipher;break;case"des":d=8;v=8;y=c["desCBC"];b=n.des.createEncryptionCipher;break;default:var x=new Error("Cannot encrypt private key. Unknown encryption algorithm.");x.algorithm=i.algorithm;throw x}var E="hmacWith"+i.prfAlgorithm.toUpperCase();var w=prfAlgorithmToMessageDigest(E);var C=n.pkcs5.pbkdf2(r,a,l,d,w);var T=n.random.getBytesSync(v);var _=b(C);_.start(T);_.update(s.toDer(e));_.finish();g=_.output.getBytes();var I=createPbkdf2Params(a,p,d,E);h=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.OID,false,s.oidToDer(c["pkcs5PBES2"]).getBytes()),s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.OID,false,s.oidToDer(c["pkcs5PBKDF2"]).getBytes()),I]),s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.OID,false,s.oidToDer(y).getBytes()),s.create(s.Class.UNIVERSAL,s.Type.OCTETSTRING,false,T)])])])}else if(i.algorithm==="3des"){d=24;var R=new n.util.ByteBuffer(a);var C=o.pbe.generatePkcs12Key(r,R,1,l,d);var T=o.pbe.generatePkcs12Key(r,R,2,l,d);var _=n.des.createEncryptionCipher(C);_.start(T);_.update(s.toDer(e));_.finish();g=_.output.getBytes();h=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.OID,false,s.oidToDer(c["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[s.create(s.Class.UNIVERSAL,s.Type.OCTETSTRING,false,a),s.create(s.Class.UNIVERSAL,s.Type.INTEGER,false,p.getBytes())])])}else{var x=new Error("Cannot encrypt private key. Unknown encryption algorithm.");x.algorithm=i.algorithm;throw x}var O=s.create(s.Class.UNIVERSAL,s.Type.SEQUENCE,true,[h,s.create(s.Class.UNIVERSAL,s.Type.OCTETSTRING,false,g)]);return O};o.decryptPrivateKeyInfo=function(e,r){var i=null;var a={};var c=[];if(!s.validate(e,l,a,c)){var p=new Error("Cannot read encrypted private key. "+"ASN.1 object is not a supported EncryptedPrivateKeyInfo.");p.errors=c;throw p}var d=s.derToOid(a.encryptionOid);var h=o.pbe.getCipher(d,a.encryptionParams,r);var g=n.util.createBuffer(a.encryptedData);h.update(g);if(h.finish()){i=s.fromDer(h.output)}return i};o.encryptedPrivateKeyToPem=function(e,r){var i={type:"ENCRYPTED PRIVATE KEY",body:s.toDer(e).getBytes()};return n.pem.encode(i,{maxline:r})};o.encryptedPrivateKeyFromPem=function(e){var r=n.pem.decode(e)[0];if(r.type!=="ENCRYPTED PRIVATE KEY"){var i=new Error("Could not convert encrypted private key from PEM; "+'PEM header type is "ENCRYPTED PRIVATE KEY".');i.headerType=r.type;throw i}if(r.procType&&r.procType.type==="ENCRYPTED"){throw new Error("Could not convert encrypted private key from PEM; "+"PEM is encrypted.")}return s.fromDer(r.body)};o.encryptRsaPrivateKey=function(e,r,i){i=i||{};if(!i.legacy){var a=o.wrapRsaPrivateKey(o.privateKeyToAsn1(e));a=o.encryptPrivateKeyInfo(a,r,i);return o.encryptedPrivateKeyToPem(a)}var c;var l;var p;var d;switch(i.algorithm){case"aes128":c="AES-128-CBC";p=16;l=n.random.getBytesSync(16);d=n.aes.createEncryptionCipher;break;case"aes192":c="AES-192-CBC";p=24;l=n.random.getBytesSync(16);d=n.aes.createEncryptionCipher;break;case"aes256":c="AES-256-CBC";p=32;l=n.random.getBytesSync(16);d=n.aes.createEncryptionCipher;break;case"3des":c="DES-EDE3-CBC";p=24;l=n.random.getBytesSync(8);d=n.des.createEncryptionCipher;break;case"des":c="DES-CBC";p=8;l=n.random.getBytesSync(8);d=n.des.createEncryptionCipher;break;default:var h=new Error("Could not encrypt RSA private key; unsupported "+'encryption algorithm "'+i.algorithm+'".');h.algorithm=i.algorithm;throw h}var g=n.pbe.opensslDeriveBytes(r,l.substr(0,8),p);var v=d(g);v.start(l);v.update(s.toDer(o.privateKeyToAsn1(e)));v.finish();var y={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:c,parameters:n.util.bytesToHex(l).toUpperCase()},body:v.output.getBytes()};return n.pem.encode(y)};o.decryptRsaPrivateKey=function(e,r){var i=null;var a=n.pem.decode(e)[0];if(a.type!=="ENCRYPTED PRIVATE KEY"&&a.type!=="PRIVATE KEY"&&a.type!=="RSA PRIVATE KEY"){var c=new Error("Could not convert private key from PEM; PEM header type "+'is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');c.headerType=c;throw c}if(a.procType&&a.procType.type==="ENCRYPTED"){var l;var p;switch(a.dekInfo.algorithm){case"DES-CBC":l=8;p=n.des.createDecryptionCipher;break;case"DES-EDE3-CBC":l=24;p=n.des.createDecryptionCipher;break;case"AES-128-CBC":l=16;p=n.aes.createDecryptionCipher;break;case"AES-192-CBC":l=24;p=n.aes.createDecryptionCipher;break;case"AES-256-CBC":l=32;p=n.aes.createDecryptionCipher;break;case"RC2-40-CBC":l=5;p=function(e){return n.rc2.createDecryptionCipher(e,40)};break;case"RC2-64-CBC":l=8;p=function(e){return n.rc2.createDecryptionCipher(e,64)};break;case"RC2-128-CBC":l=16;p=function(e){return n.rc2.createDecryptionCipher(e,128)};break;default:var c=new Error("Could not decrypt private key; unsupported "+'encryption algorithm "'+a.dekInfo.algorithm+'".');c.algorithm=a.dekInfo.algorithm;throw c}var d=n.util.hexToBytes(a.dekInfo.parameters);var h=n.pbe.opensslDeriveBytes(r,d.substr(0,8),l);var g=p(h);g.start(d);g.update(n.util.createBuffer(a.body));if(g.finish()){i=g.output.getBytes()}else{return i}}else{i=a.body}if(a.type==="ENCRYPTED PRIVATE KEY"){i=o.decryptPrivateKeyInfo(s.fromDer(i),r)}else{i=s.fromDer(i)}if(i!==null){i=o.privateKeyFromAsn1(i)}return i};o.pbe.generatePkcs12Key=function(e,r,i,a,s,o){var c,l;if(typeof o==="undefined"||o===null){if(!("sha1"in n.md)){throw new Error('"sha1" hash algorithm unavailable.')}o=n.md.sha1.create()}var p=o.digestLength;var d=o.blockLength;var h=new n.util.ByteBuffer;var g=new n.util.ByteBuffer;if(e!==null&&e!==undefined){for(l=0;l=0;l--){L=L>>8;L+=N.at(l)+j.at(l);j.setAt(l,L&255)}P.putBuffer(j)}T=P;h.putBuffer(R)}h.truncate(h.length()-s);return h};o.pbe.getCipher=function(e,r,i){switch(e){case o.oids["pkcs5PBES2"]:return o.pbe.getCipherForPBES2(e,r,i);case o.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case o.oids["pbewithSHAAnd40BitRC2-CBC"]:return o.pbe.getCipherForPKCS12PBE(e,r,i);default:var n=new Error("Cannot read encrypted PBE data block. Unsupported OID.");n.oid=e;n.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"];throw n}};o.pbe.getCipherForPBES2=function(e,r,i){var a={};var c=[];if(!s.validate(r,p,a,c)){var l=new Error("Cannot read password-based-encryption algorithm "+"parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");l.errors=c;throw l}e=s.derToOid(a.kdfOid);if(e!==o.oids["pkcs5PBKDF2"]){var l=new Error("Cannot read encrypted private key. "+"Unsupported key derivation function OID.");l.oid=e;l.supportedOids=["pkcs5PBKDF2"];throw l}e=s.derToOid(a.encOid);if(e!==o.oids["aes128-CBC"]&&e!==o.oids["aes192-CBC"]&&e!==o.oids["aes256-CBC"]&&e!==o.oids["des-EDE3-CBC"]&&e!==o.oids["desCBC"]){var l=new Error("Cannot read encrypted private key. "+"Unsupported encryption scheme OID.");l.oid=e;l.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"];throw l}var d=a.kdfSalt;var h=n.util.createBuffer(a.kdfIterationCount);h=h.getInt(h.length()<<3);var g;var v;switch(o.oids[e]){case"aes128-CBC":g=16;v=n.aes.createDecryptionCipher;break;case"aes192-CBC":g=24;v=n.aes.createDecryptionCipher;break;case"aes256-CBC":g=32;v=n.aes.createDecryptionCipher;break;case"des-EDE3-CBC":g=24;v=n.des.createDecryptionCipher;break;case"desCBC":g=8;v=n.des.createDecryptionCipher;break}var y=prfOidToMessageDigest(a.prfOid);var b=n.pkcs5.pbkdf2(i,d,h,g,y);var x=a.encIv;var E=v(b);E.start(x);return E};o.pbe.getCipherForPKCS12PBE=function(e,r,i){var a={};var c=[];if(!s.validate(r,d,a,c)){var l=new Error("Cannot read password-based-encryption algorithm "+"parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");l.errors=c;throw l}var p=n.util.createBuffer(a.salt);var h=n.util.createBuffer(a.iterations);h=h.getInt(h.length()<<3);var g,v,y;switch(e){case o.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:g=24;v=8;y=n.des.startDecrypting;break;case o.oids["pbewithSHAAnd40BitRC2-CBC"]:g=5;v=8;y=function(e,r){var i=n.rc2.createDecryptionCipher(e,40);i.start(r,null);return i};break;default:var l=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");l.oid=e;throw l}var b=prfOidToMessageDigest(a.prfOid);var x=o.pbe.generatePkcs12Key(i,p,1,h,g,b);b.start();var E=o.pbe.generatePkcs12Key(i,p,2,h,v,b);return y(x,E)};o.pbe.opensslDeriveBytes=function(e,r,i,a){if(typeof a==="undefined"||a===null){if(!("md5"in n.md)){throw new Error('"md5" hash algorithm unavailable.')}a=n.md.md5.create()}if(r===null){r=""}var s=[hash(a,e+r)];for(var o=16,c=1;o{var n=i(9177);i(5104);i(6231);i(8339);var a=n.pkcs5=n.pkcs5||{};var s;if(n.util.isNodejs&&!n.options.usePureJavaScript){s=i(6113)}e.exports=n.pbkdf2=a.pbkdf2=function(e,r,i,a,o,c){if(typeof o==="function"){c=o;o=null}if(n.util.isNodejs&&!n.options.usePureJavaScript&&s.pbkdf2&&(o===null||typeof o!=="object")&&(s.pbkdf2Sync.length>4||(!o||o==="sha1"))){if(typeof o!=="string"){o="sha1"}e=Buffer.from(e,"binary");r=Buffer.from(r,"binary");if(!c){if(s.pbkdf2Sync.length===4){return s.pbkdf2Sync(e,r,i,a).toString("binary")}return s.pbkdf2Sync(e,r,i,a,o).toString("binary")}if(s.pbkdf2Sync.length===4){return s.pbkdf2(e,r,i,a,(function(e,r){if(e){return c(e)}c(null,r.toString("binary"))}))}return s.pbkdf2(e,r,i,a,o,(function(e,r){if(e){return c(e)}c(null,r.toString("binary"))}))}if(typeof o==="undefined"||o===null){o="sha1"}if(typeof o==="string"){if(!(o in n.md.algorithms)){throw new Error("Unknown hash algorithm: "+o)}o=n.md[o].create()}var l=o.digestLength;if(a>4294967295*l){var p=new Error("Derived key is too long.");if(c){return c(p)}throw p}var d=Math.ceil(a/l);var h=a-(d-1)*l;var g=n.hmac.create();g.start(o,e);var v="";var y,b,x;if(!c){for(var E=1;E<=d;++E){g.start(null,null);g.update(r);g.update(n.util.int32ToBytes(E));y=x=g.digest().getBytes();for(var w=2;w<=i;++w){g.start(null,null);g.update(x);b=g.digest().getBytes();y=n.util.xorBytes(y,b,l);x=b}v+=Ed){return c(null,v)}g.start(null,null);g.update(r);g.update(n.util.int32ToBytes(E));y=x=g.digest().getBytes();w=2;inner()}function inner(){if(w<=i){g.start(null,null);g.update(x);b=g.digest().getBytes();y=n.util.xorBytes(y,b,l);x=b;++w;return n.util.setImmediate(inner)}v+=E{var n=i(9177);i(8339);var a=e.exports=n.pem=n.pem||{};a.encode=function(e,r){r=r||{};var i="-----BEGIN "+e.type+"-----\r\n";var a;if(e.procType){a={name:"Proc-Type",values:[String(e.procType.version),e.procType.type]};i+=foldHeader(a)}if(e.contentDomain){a={name:"Content-Domain",values:[e.contentDomain]};i+=foldHeader(a)}if(e.dekInfo){a={name:"DEK-Info",values:[e.dekInfo.algorithm]};if(e.dekInfo.parameters){a.values.push(e.dekInfo.parameters)}i+=foldHeader(a)}if(e.headers){for(var s=0;s65&&s!==-1){var o=r[s];if(o===","){++s;r=r.substr(0,s)+"\r\n "+r.substr(s)}else{r=r.substr(0,s)+"\r\n"+o+r.substr(s+1)}a=n-s-1;s=-1;++n}else if(r[n]===" "||r[n]==="\t"||r[n]===","){s=n}}return r}function ltrim(e){return e.replace(/^\s+/,"")}},7014:(e,r,i)=>{var n=i(9177);i(8339);i(7821);i(279);var a=e.exports=n.pkcs1=n.pkcs1||{};a.encode_rsa_oaep=function(e,r,i){var a;var s;var o;var c;if(typeof i==="string"){a=i;s=arguments[3]||undefined;o=arguments[4]||undefined}else if(i){a=i.label||undefined;s=i.seed||undefined;o=i.md||undefined;if(i.mgf1&&i.mgf1.md){c=i.mgf1.md}}if(!o){o=n.md.sha1.create()}else{o.start()}if(!c){c=o}var l=Math.ceil(e.n.bitLength()/8);var p=l-2*o.digestLength-2;if(r.length>p){var d=new Error("RSAES-OAEP input message length is too long.");d.length=r.length;d.maxLength=p;throw d}if(!a){a=""}o.update(a,"raw");var h=o.digest();var g="";var v=p-r.length;for(var y=0;y>24&255,o>>16&255,o>>8&255,o&255);i.start();i.update(e+c);a+=i.digest().getBytes()}return a.substring(0,r)}},466:(e,r,i)=>{var n=i(9177);i(9549);i(5104);i(1925);i(266);i(1281);i(7821);i(3921);i(279);i(8339);i(8180);var a=n.asn1;var s=n.pki;var o=e.exports=n.pkcs12=n.pkcs12||{};var c={name:"ContentInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"ContentInfo.contentType",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"contentType"},{name:"ContentInfo.content",tagClass:a.Class.CONTEXT_SPECIFIC,constructed:true,captureAsn1:"content"}]};var l={name:"PFX",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"PFX.version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,capture:"version"},c,{name:"PFX.macData",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,optional:true,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:a.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:false,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:false,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,optional:true,capture:"macIterations"}]}]};var p={name:"SafeBag",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"SafeBag.bagId",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:a.Class.CONTEXT_SPECIFIC,constructed:true,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:a.Class.UNIVERSAL,type:a.Type.SET,constructed:true,optional:true,capture:"bagAttributes"}]};var d={name:"Attribute",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"Attribute.attrId",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"oid"},{name:"Attribute.attrValues",tagClass:a.Class.UNIVERSAL,type:a.Type.SET,constructed:true,capture:"values"}]};var h={name:"CertBag",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"CertBag.certId",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"certId"},{name:"CertBag.certValue",tagClass:a.Class.CONTEXT_SPECIFIC,constructed:true,value:[{name:"CertBag.certValue[0]",tagClass:a.Class.UNIVERSAL,type:a.Class.OCTETSTRING,constructed:false,capture:"cert"}]}]};function _getBagsByAttribute(e,r,i,n){var a=[];for(var s=0;s=0){a.push(c)}}}return a}o.pkcs12FromAsn1=function(e,r,i){if(typeof r==="string"){i=r;r=true}else if(r===undefined){r=true}var c={};var p=[];if(!a.validate(e,l,c,p)){var d=new Error("Cannot read PKCS#12 PFX. "+"ASN.1 object is not an PKCS#12 PFX.");d.errors=d;throw d}var h={version:c.version.charCodeAt(0),safeContents:[],getBags:function(e){var r={};var i;if("localKeyId"in e){i=e.localKeyId}else if("localKeyIdHex"in e){i=n.util.hexToBytes(e.localKeyIdHex)}if(i===undefined&&!("friendlyName"in e)&&"bagType"in e){r[e.bagType]=_getBagsByAttribute(h.safeContents,null,null,e.bagType)}if(i!==undefined){r.localKeyId=_getBagsByAttribute(h.safeContents,"localKeyId",i,e.bagType)}if("friendlyName"in e){r.friendlyName=_getBagsByAttribute(h.safeContents,"friendlyName",e.friendlyName,e.bagType)}return r},getBagsByFriendlyName:function(e,r){return _getBagsByAttribute(h.safeContents,"friendlyName",e,r)},getBagsByLocalKeyId:function(e,r){return _getBagsByAttribute(h.safeContents,"localKeyId",e,r)}};if(c.version.charCodeAt(0)!==3){var d=new Error("PKCS#12 PFX of version other than 3 not supported.");d.version=c.version.charCodeAt(0);throw d}if(a.derToOid(c.contentType)!==s.oids.data){var d=new Error("Only PKCS#12 PFX in password integrity mode supported.");d.oid=a.derToOid(c.contentType);throw d}var g=c.content.value[0];if(g.tagClass!==a.Class.UNIVERSAL||g.type!==a.Type.OCTETSTRING){throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.")}g=_decodePkcs7Data(g);if(c.mac){var v=null;var y=0;var b=a.derToOid(c.macAlgorithm);switch(b){case s.oids.sha1:v=n.md.sha1.create();y=20;break;case s.oids.sha256:v=n.md.sha256.create();y=32;break;case s.oids.sha384:v=n.md.sha384.create();y=48;break;case s.oids.sha512:v=n.md.sha512.create();y=64;break;case s.oids.md5:v=n.md.md5.create();y=16;break}if(v===null){throw new Error("PKCS#12 uses unsupported MAC algorithm: "+b)}var x=new n.util.ByteBuffer(c.macSalt);var E="macIterations"in c?parseInt(n.util.bytesToHex(c.macIterations),16):1;var w=o.generateKey(i,x,3,E,y,v);var C=n.hmac.create();C.start(v,w);C.update(g.value);var T=C.getMac();if(T.getBytes()!==c.macDigest){throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}}_decodeAuthenticatedSafe(h,g.value,r,i);return h};function _decodePkcs7Data(e){if(e.composed||e.constructed){var r=n.util.createBuffer();for(var i=0;i0){p=a.create(a.Class.UNIVERSAL,a.Type.SET,true,g)}var v=[];var y=[];if(r!==null){if(n.util.isArray(r)){y=r}else{y=[r]}}var b=[];for(var x=0;x0){var T=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,b);var _=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.OID,false,a.oidToDer(s.oids.data).getBytes()),a.create(a.Class.CONTEXT_SPECIFIC,0,true,[a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,false,a.toDer(T).getBytes())])]);v.push(_)}var I=null;if(e!==null){var R=s.wrapRsaPrivateKey(s.privateKeyToAsn1(e));if(i===null){I=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.OID,false,a.oidToDer(s.oids.keyBag).getBytes()),a.create(a.Class.CONTEXT_SPECIFIC,0,true,[R]),p])}else{I=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.OID,false,a.oidToDer(s.oids.pkcs8ShroudedKeyBag).getBytes()),a.create(a.Class.CONTEXT_SPECIFIC,0,true,[s.encryptPrivateKeyInfo(R,i,c)]),p])}var O=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[I]);var N=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.OID,false,a.oidToDer(s.oids.data).getBytes()),a.create(a.Class.CONTEXT_SPECIFIC,0,true,[a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,false,a.toDer(O).getBytes())])]);v.push(N)}var B=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,v);var P;if(c.useMac){var h=n.md.sha1.create();var j=new n.util.ByteBuffer(n.random.getBytes(c.saltSize));var L=c.count;var e=o.generateKey(i,j,3,L,20);var D=n.hmac.create();D.start(h,e);D.update(a.toDer(B).getBytes());var U=D.getMac();P=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.OID,false,a.oidToDer(s.oids.sha1).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.NULL,false,"")]),a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,false,U.getBytes())]),a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,false,j.getBytes()),a.create(a.Class.UNIVERSAL,a.Type.INTEGER,false,a.integerToDer(L).getBytes())])}return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,false,a.integerToDer(3).getBytes()),a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.OID,false,a.oidToDer(s.oids.data).getBytes()),a.create(a.Class.CONTEXT_SPECIFIC,0,true,[a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,false,a.toDer(B).getBytes())])]),P])};o.generateKey=n.pbe.generatePkcs12Key},4829:(e,r,i)=>{var n=i(9177);i(7994);i(9549);i(7157);i(1925);i(154);i(266);i(7821);i(8339);i(8180);var a=n.asn1;var s=e.exports=n.pkcs7=n.pkcs7||{};s.messageFromPem=function(e){var r=n.pem.decode(e)[0];if(r.type!=="PKCS7"){var i=new Error("Could not convert PKCS#7 message from PEM; PEM "+'header type is not "PKCS#7".');i.headerType=r.type;throw i}if(r.procType&&r.procType.type==="ENCRYPTED"){throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.")}var o=a.fromDer(r.body);return s.messageFromAsn1(o)};s.messageToPem=function(e,r){var i={type:"PKCS7",body:a.toDer(e.toAsn1()).getBytes()};return n.pem.encode(i,{maxline:r})};s.messageFromAsn1=function(e){var r={};var i=[];if(!a.validate(e,s.asn1.contentInfoValidator,r,i)){var o=new Error("Cannot read PKCS#7 message. "+"ASN.1 object is not an PKCS#7 ContentInfo.");o.errors=i;throw o}var c=a.derToOid(r.contentType);var l;switch(c){case n.pki.oids.envelopedData:l=s.createEnvelopedData();break;case n.pki.oids.encryptedData:l=s.createEncryptedData();break;case n.pki.oids.signedData:l=s.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+c+" is not (yet) supported.")}l.fromAsn1(r.content.value[0]);return l};s.createSignedData=function(){var e=null;e={type:n.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(r){_fromAsn1(e,r,s.asn1.signedDataValidator);e.certificates=[];e.crls=[];e.digestAlgorithmIdentifiers=[];e.contentInfo=null;e.signerInfos=[];if(e.rawCapture.certificates){var i=e.rawCapture.certificates.value;for(var a=0;a0){o.value[0].value.push(a.create(a.Class.CONTEXT_SPECIFIC,0,true,r))}if(s.length>0){o.value[0].value.push(a.create(a.Class.CONTEXT_SPECIFIC,1,true,s))}o.value[0].value.push(a.create(a.Class.UNIVERSAL,a.Type.SET,true,e.signerInfos));return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.OID,false,a.oidToDer(e.type).getBytes()),o])},addSigner:function(r){var i=r.issuer;var a=r.serialNumber;if(r.certificate){var s=r.certificate;if(typeof s==="string"){s=n.pki.certificateFromPem(s)}i=s.issuer.attributes;a=s.serialNumber}var o=r.key;if(!o){throw new Error("Could not add PKCS#7 signer; no private key specified.")}if(typeof o==="string"){o=n.pki.privateKeyFromPem(o)}var c=r.digestAlgorithm||n.pki.oids.sha1;switch(c){case n.pki.oids.sha1:case n.pki.oids.sha256:case n.pki.oids.sha384:case n.pki.oids.sha512:case n.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+c)}var l=r.authenticatedAttributes||[];if(l.length>0){var p=false;var d=false;for(var h=0;h0){var i=a.create(a.Class.CONTEXT_SPECIFIC,1,true,[]);for(var s=0;s=i&&o{var n=i(9177);i(9549);i(8339);var a=n.asn1;var s=e.exports=n.pkcs7asn1=n.pkcs7asn1||{};n.pkcs7=n.pkcs7||{};n.pkcs7.asn1=s;var o={name:"ContentInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"ContentInfo.ContentType",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"contentType"},{name:"ContentInfo.content",tagClass:a.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,captureAsn1:"content"}]};s.contentInfoValidator=o;var c={name:"EncryptedContentInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"EncryptedContentInfo.contentType",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:a.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:a.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};s.envelopedDataValidator={name:"EnvelopedData",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"EnvelopedData.Version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:a.Class.UNIVERSAL,type:a.Type.SET,constructed:true,captureAsn1:"recipientInfos"}].concat(c)};s.encryptedDataValidator={name:"EncryptedData",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"EncryptedData.Version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,capture:"version"}].concat(c)};var l={name:"SignerInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"SignerInfo.version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false},{name:"SignerInfo.issuerAndSerialNumber",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:a.Class.UNIVERSAL,constructed:false,captureAsn1:"digestParameter",optional:true}]},{name:"SignerInfo.authenticatedAttributes",tagClass:a.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:false,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:a.Class.CONTEXT_SPECIFIC,type:1,constructed:true,optional:true,capture:"unauthenticatedAttributes"}]};s.signedDataValidator={name:"SignedData",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"SignedData.Version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:a.Class.UNIVERSAL,type:a.Type.SET,constructed:true,captureAsn1:"digestAlgorithms"},o,{name:"SignedData.Certificates",tagClass:a.Class.CONTEXT_SPECIFIC,type:0,optional:true,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:a.Class.CONTEXT_SPECIFIC,type:1,optional:true,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:a.Class.UNIVERSAL,type:a.Type.SET,capture:"signerInfos",optional:true,value:[l]}]};s.recipientInfoValidator={name:"RecipientInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"RecipientInfo.version",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:a.Class.UNIVERSAL,constructed:false,captureAsn1:"encParameter",optional:true}]},{name:"RecipientInfo.encryptedKey",tagClass:a.Class.UNIVERSAL,type:a.Type.OCTETSTRING,constructed:false,capture:"encKey"}]}},6924:(e,r,i)=>{var n=i(9177);i(9549);i(1925);i(1281);i(154);i(1611);i(466);i(4376);i(3921);i(8339);i(8180);var a=n.asn1;var s=e.exports=n.pki=n.pki||{};s.pemToDer=function(e){var r=n.pem.decode(e)[0];if(r.procType&&r.procType.type==="ENCRYPTED"){throw new Error("Could not convert PEM to DER; PEM is encrypted.")}return n.util.createBuffer(r.body)};s.privateKeyFromPem=function(e){var r=n.pem.decode(e)[0];if(r.type!=="PRIVATE KEY"&&r.type!=="RSA PRIVATE KEY"){var i=new Error("Could not convert private key from PEM; PEM "+'header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');i.headerType=r.type;throw i}if(r.procType&&r.procType.type==="ENCRYPTED"){throw new Error("Could not convert private key from PEM; PEM is encrypted.")}var o=a.fromDer(r.body);return s.privateKeyFromAsn1(o)};s.privateKeyToPem=function(e,r){var i={type:"RSA PRIVATE KEY",body:a.toDer(s.privateKeyToAsn1(e)).getBytes()};return n.pem.encode(i,{maxline:r})};s.privateKeyInfoToPem=function(e,r){var i={type:"PRIVATE KEY",body:a.toDer(e).getBytes()};return n.pem.encode(i,{maxline:r})}},6861:(e,r,i)=>{var n=i(9177);i(8339);i(7052);i(7821);(function(){if(n.prime){e.exports=n.prime;return}var r=e.exports=n.prime=n.prime||{};var i=n.jsbn.BigInteger;var a=[6,4,2,4,2,4,6,2];var s=new i(null);s.fromInt(30);var op_or=function(e,r){return e|r};r.generateProbablePrime=function(e,r,i){if(typeof r==="function"){i=r;r={}}r=r||{};var a=r.algorithm||"PRIMEINC";if(typeof a==="string"){a={name:a}}a.options=a.options||{};var s=r.prng||n.random;var o={nextBytes:function(e){var r=s.getBytesSync(e.length);for(var i=0;ir){e=generateRandom(r,i)}if(e.isProbablePrime(o)){return l(null,e)}e.dAddOffset(a[s++%8],0)}while(c<0||+new Date-pe){o=generateRandom(e,r)}var v=o.toString(16);a.target.postMessage({hex:v,workLoad:l});o.dAddOffset(p,0)}}}function generateRandom(e,r){var n=new i(e,r);var a=e-1;if(!n.testBit(a)){n.bitwiseTo(i.ONE.shiftLeft(a),op_or,n)}n.dAddOffset(31-n.mod(s).byteValue(),0);return n}function getMillerRabinTests(e){if(e<=100)return 27;if(e<=150)return 18;if(e<=200)return 15;if(e<=250)return 12;if(e<=300)return 9;if(e<=350)return 8;if(e<=400)return 7;if(e<=500)return 6;if(e<=600)return 5;if(e<=800)return 4;if(e<=1250)return 3;return 2}})()},4467:(e,r,i)=>{var n=i(9177);i(8339);var a=null;if(n.util.isNodejs&&!n.options.usePureJavaScript&&!process.versions["node-webkit"]){a=i(6113)}var s=e.exports=n.prng=n.prng||{};s.create=function(e){var r={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""};var i=e.md;var s=new Array(32);for(var o=0;o<32;++o){s[o]=i.create()}r.pools=s;r.pool=0;r.generate=function(e,i){if(!i){return r.generateSync(e)}var a=r.plugin.cipher;var s=r.plugin.increment;var o=r.plugin.formatKey;var c=r.plugin.formatSeed;var l=n.util.createBuffer();r.key=null;generate();function generate(p){if(p){return i(p)}if(l.length()>=e){return i(null,l.getBytes(e))}if(r.generated>1048575){r.key=null}if(r.key===null){return n.util.nextTick((function(){_reseed(generate)}))}var d=a(r.key,r.seed);r.generated+=d.length;l.putBytes(d);r.key=o(a(r.key,s(r.seed)));r.seed=c(a(r.key,r.seed));n.util.setImmediate(generate)}};r.generateSync=function(e){var i=r.plugin.cipher;var a=r.plugin.increment;var s=r.plugin.formatKey;var o=r.plugin.formatSeed;r.key=null;var c=n.util.createBuffer();while(c.length()1048575){r.key=null}if(r.key===null){_reseedSync()}var l=i(r.key,r.seed);r.generated+=l.length;c.putBytes(l);r.key=s(i(r.key,a(r.seed)));r.seed=o(i(r.key,r.seed))}return c.getBytes(e)};function _reseed(e){if(r.pools[0].messageLength>=32){_seed();return e()}var i=32-r.pools[0].messageLength<<5;r.seedFile(i,(function(i,n){if(i){return e(i)}r.collect(n);_seed();e()}))}function _reseedSync(){if(r.pools[0].messageLength>=32){return _seed()}var e=32-r.pools[0].messageLength<<5;r.collect(r.seedFileSync(e));_seed()}function _seed(){r.reseeds=r.reseeds===4294967295?0:r.reseeds+1;var e=r.plugin.md.create();e.update(r.keyBytes);var i=1;for(var n=0;n<32;++n){if(r.reseeds%i===0){e.update(r.pools[n].digest().getBytes());r.pools[n].start()}i=i<<1}r.keyBytes=e.digest().getBytes();e.start();e.update(r.keyBytes);var a=e.digest().getBytes();r.key=r.plugin.formatKey(r.keyBytes);r.seed=r.plugin.formatSeed(a);r.generated=0}function defaultSeedFile(e){var r=null;var i=n.util.globalScope;var a=i.crypto||i.msCrypto;if(a&&a.getRandomValues){r=function(e){return a.getRandomValues(e)}}var s=n.util.createBuffer();if(r){while(s.length()>16);d+=(p&32767)<<16;d+=p>>15;d=(d&2147483647)+(d>>31);g=d&4294967295;for(var l=0;l<3;++l){h=g>>>(l<<3);h^=Math.floor(Math.random()*256);s.putByte(h&255)}}}return s.getBytes(e)}if(a){r.seedFile=function(e,r){a.randomBytes(e,(function(e,i){if(e){return r(e)}r(null,i.toString())}))};r.seedFileSync=function(e){return a.randomBytes(e).toString()}}else{r.seedFile=function(e,r){try{r(null,defaultSeedFile(e))}catch(e){r(e)}};r.seedFileSync=defaultSeedFile}r.collect=function(e){var i=e.length;for(var n=0;n>a&255)}r.collect(n)};r.registerWorker=function(e){if(e===self){r.seedFile=function(e,r){function listener(e){var i=e.data;if(i.forge&&i.forge.prng){self.removeEventListener("message",listener);r(i.forge.prng.err,i.forge.prng.bytes)}}self.addEventListener("message",listener);self.postMessage({forge:{prng:{needed:e}}})}}else{var listener=function(i){var n=i.data;if(n.forge&&n.forge.prng){r.seedFile(n.forge.prng.needed,(function(r,i){e.postMessage({forge:{prng:{err:r,bytes:i}}})}))}};e.addEventListener("message",listener)}};return r}},4376:(e,r,i)=>{var n=i(9177);i(7821);i(8339);var a=e.exports=n.pss=n.pss||{};a.create=function(e){if(arguments.length===3){e={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]}}var r=e.md;var i=e.mgf;var a=r.digestLength;var s=e.salt||null;if(typeof s==="string"){s=n.util.createBuffer(s)}var o;if("saltLength"in e){o=e.saltLength}else if(s!==null){o=s.length()}else{throw new Error("Salt length not specified or specific salt not given.")}if(s!==null&&s.length()!==o){throw new Error("Given salt length does not match length of given salt.")}var c=e.prng||n.random;var l={};l.encode=function(e,l){var p;var d=l-1;var h=Math.ceil(d/8);var g=e.digest().getBytes();if(h>8*h-d&255;T=String.fromCharCode(T.charCodeAt(0)&~_)+T.substr(1);return T+b+String.fromCharCode(188)};l.verify=function(e,s,c){var l;var p=c-1;var d=Math.ceil(p/8);s=s.substr(-d);if(d>8*d-p&255;if((g.charCodeAt(0)&y)!==0){throw new Error("Bits beyond keysize not zero as expected.")}var b=i.generate(v,h);var x="";for(l=0;l{var n=i(9177);i(7994);i(4086);i(4467);i(8339);(function(){if(n.random&&n.random.getBytes){e.exports=n.random;return}(function(r){var i={};var a=new Array(4);var s=n.util.createBuffer();i.formatKey=function(e){var r=n.util.createBuffer(e);e=new Array(4);e[0]=r.getInt32();e[1]=r.getInt32();e[2]=r.getInt32();e[3]=r.getInt32();return n.aes._expandKey(e,false)};i.formatSeed=function(e){var r=n.util.createBuffer(e);e=new Array(4);e[0]=r.getInt32();e[1]=r.getInt32();e[2]=r.getInt32();e[3]=r.getInt32();return e};i.cipher=function(e,r){n.aes._updateBlock(e,r,a,false);s.putInt32(a[0]);s.putInt32(a[1]);s.putInt32(a[2]);s.putInt32(a[3]);return s.getBytes()};i.increment=function(e){++e[3];return e};i.md=n.md.sha256;function spawnPrng(){var e=n.prng.create(i);e.getBytes=function(r,i){return e.generate(r,i)};e.getBytesSync=function(r){return e.generate(r)};return e}var o=spawnPrng();var c=null;var l=n.util.globalScope;var p=l.crypto||l.msCrypto;if(p&&p.getRandomValues){c=function(e){return p.getRandomValues(e)}}if(n.options.usePureJavaScript||!n.util.isNodejs&&!c){if(typeof window==="undefined"||window.document===undefined){}o.collectInt(+new Date,32);if(typeof navigator!=="undefined"){var d="";for(var h in navigator){try{if(typeof navigator[h]=="string"){d+=navigator[h]}}catch(e){}}o.collect(d);d=null}if(r){r().mousemove((function(e){o.collectInt(e.clientX,16);o.collectInt(e.clientY,16)}));r().keypress((function(e){o.collectInt(e.charCode,8)}))}}if(!n.random){n.random=o}else{for(var h in o){n.random[h]=o[h]}}n.random.createInstance=spawnPrng;e.exports=n.random})(typeof jQuery!=="undefined"?jQuery:null)})()},9965:(e,r,i)=>{var n=i(9177);i(8339);var a=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173];var s=[1,2,3,5];var rol=function(e,r){return e<>16-r};var ror=function(e,r){return(e&65535)>>r|e<<16-r&65535};e.exports=n.rc2=n.rc2||{};n.rc2.expandKey=function(e,r){if(typeof e==="string"){e=n.util.createBuffer(e)}r=r||128;var i=e;var s=e.length();var o=r;var c=Math.ceil(o/8);var l=255>>(o&7);var p;for(p=s;p<128;p++){i.putByte(a[i.at(p-1)+i.at(p-s)&255])}i.setAt(128-c,a[i.at(128-c)&l]);for(p=127-c;p>=0;p--){i.setAt(p,a[i.at(p+1)^i.at(p+c)])}return i};var createCipher=function(e,r,i){var a=false,o=null,c=null,l=null;var p,d;var h,g,v=[];e=n.rc2.expandKey(e,r);for(h=0;h<64;h++){v.push(e.getInt16Le())}if(i){p=function(e){for(h=0;h<4;h++){e[h]+=v[g]+(e[(h+3)%4]&e[(h+2)%4])+(~e[(h+3)%4]&e[(h+1)%4]);e[h]=rol(e[h],s[h]);g++}};d=function(e){for(h=0;h<4;h++){e[h]+=v[e[(h+3)%4]&63]}}}else{p=function(e){for(h=3;h>=0;h--){e[h]=ror(e[h],s[h]);e[h]-=v[g]+(e[(h+3)%4]&e[(h+2)%4])+(~e[(h+3)%4]&e[(h+1)%4]);g--}};d=function(e){for(h=3;h>=0;h--){e[h]-=v[e[(h+3)%4]&63]}}}var runPlan=function(e){var r=[];for(h=0;h<4;h++){var n=o.getInt16Le();if(l!==null){if(i){n^=l.getInt16Le()}else{l.putInt16Le(n)}}r.push(n&65535)}g=i?0:63;for(var a=0;a=8){runPlan([[5,p],[1,d],[6,p],[1,d],[5,p]])}},finish:function(e){var r=true;if(i){if(e){r=e(8,o,!i)}else{var n=o.length()===8?8:8-o.length();o.fillWithByte(n,n)}}if(r){a=true;y.update()}if(!i){r=o.length()===0;if(r){if(e){r=e(8,c,!i)}else{var s=c.length();var l=c.at(s-1);if(l>s){r=false}else{c.truncate(l)}}}}return r}};return y};n.rc2.startEncrypting=function(e,r,i){var a=n.rc2.createEncryptionCipher(e,128);a.start(r,i);return a};n.rc2.createEncryptionCipher=function(e,r){return createCipher(e,r,true)};n.rc2.startDecrypting=function(e,r,i){var a=n.rc2.createDecryptionCipher(e,128);a.start(r,i);return a};n.rc2.createDecryptionCipher=function(e,r){return createCipher(e,r,false)}},3921:(e,r,i)=>{var n=i(9177);i(9549);i(7052);i(1925);i(7014);i(6861);i(7821);i(8339);if(typeof a==="undefined"){var a=n.jsbn.BigInteger}var s=n.util.isNodejs?i(6113):null;var o=n.asn1;var c=n.util;n.pki=n.pki||{};e.exports=n.pki.rsa=n.rsa=n.rsa||{};var l=n.pki;var p=[6,4,2,4,2,4,6,2];var d={name:"PrivateKeyInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"PrivateKeyInfo.version",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.OCTETSTRING,constructed:false,capture:"privateKey"}]};var h={name:"RSAPrivateKey",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"RSAPrivateKey.version",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyCoefficient"}]};var g={name:"RSAPublicKey",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"RSAPublicKey.modulus",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"publicKeyExponent"}]};var v=n.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:o.Class.UNIVERSAL,type:o.Type.BITSTRING,constructed:false,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,optional:true,captureAsn1:"rsaPublicKey"}]}]};var emsaPkcs1v15encode=function(e){var r;if(e.algorithm in l.oids){r=l.oids[e.algorithm]}else{var i=new Error("Unknown message digest algorithm.");i.algorithm=e.algorithm;throw i}var n=o.oidToDer(r).getBytes();var a=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[]);var s=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[]);s.value.push(o.create(o.Class.UNIVERSAL,o.Type.OID,false,n));s.value.push(o.create(o.Class.UNIVERSAL,o.Type.NULL,false,""));var c=o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,false,e.digest().getBytes());a.value.push(s);a.value.push(c);return o.toDer(a).getBytes()};var _modPow=function(e,r,i){if(i){return e.modPow(r.e,r.n)}if(!r.p||!r.q){return e.modPow(r.d,r.n)}if(!r.dP){r.dP=r.d.mod(r.p.subtract(a.ONE))}if(!r.dQ){r.dQ=r.d.mod(r.q.subtract(a.ONE))}if(!r.qInv){r.qInv=r.q.modInverse(r.p)}var s;do{s=new a(n.util.bytesToHex(n.random.getBytes(r.n.bitLength()/8)),16)}while(s.compareTo(r.n)>=0||!s.gcd(r.n).equals(a.ONE));e=e.multiply(s.modPow(r.e,r.n)).mod(r.n);var o=e.mod(r.p).modPow(r.dP,r.p);var c=e.mod(r.q).modPow(r.dQ,r.q);while(o.compareTo(c)<0){o=o.add(r.p)}var l=o.subtract(c).multiply(r.qInv).mod(r.p).multiply(r.q).add(c);l=l.multiply(s.modInverse(r.n)).mod(r.n);return l};l.rsa.encrypt=function(e,r,i){var s=i;var o;var c=Math.ceil(r.n.bitLength()/8);if(i!==false&&i!==true){s=i===2;o=_encodePkcs1_v1_5(e,r,i)}else{o=n.util.createBuffer();o.putBytes(e)}var l=new a(o.toHex(),16);var p=_modPow(l,r,s);var d=p.toString(16);var h=n.util.createBuffer();var g=c-Math.ceil(d.length/2);while(g>0){h.putByte(0);--g}h.putBytes(n.util.hexToBytes(d));return h.getBytes()};l.rsa.decrypt=function(e,r,i,s){var o=Math.ceil(r.n.bitLength()/8);if(e.length!==o){var c=new Error("Encrypted message length is invalid.");c.length=e.length;c.expected=o;throw c}var l=new a(n.util.createBuffer(e).toHex(),16);if(l.compareTo(r.n)>=0){throw new Error("Encrypted message is invalid.")}var p=_modPow(l,r,i);var d=p.toString(16);var h=n.util.createBuffer();var g=o-Math.ceil(d.length/2);while(g>0){h.putByte(0);--g}h.putBytes(n.util.hexToBytes(d));if(s!==false){return _decodePkcs1_v1_5(h.getBytes(),r,i)}return h.getBytes()};l.rsa.createKeyPairGenerationState=function(e,r,i){if(typeof e==="string"){e=parseInt(e,10)}e=e||2048;i=i||{};var s=i.prng||n.random;var o={nextBytes:function(e){var r=s.getBytesSync(e.length);for(var i=0;i>1,pBits:e-(e>>1),pqState:0,num:null,keys:null};l.e.fromInt(l.eInt)}else{throw new Error("Invalid key generation algorithm: "+c)}return l};l.rsa.stepKeyPairGenerationState=function(e,r){if(!("algorithm"in e)){e.algorithm="PRIMEINC"}var i=new a(null);i.fromInt(30);var n=0;var op_or=function(e,r){return e|r};var s=+new Date;var o;var c=0;while(e.keys===null&&(r<=0||cd){e.pqState=0}else if(e.num.isProbablePrime(_getMillerRabinTests(e.num.bitLength()))){++e.pqState}else{e.num.dAddOffset(p[n++%8],0)}}else if(e.pqState===2){e.pqState=e.num.subtract(a.ONE).gcd(e.e).compareTo(a.ONE)===0?3:0}else if(e.pqState===3){e.pqState=0;if(e.p===null){e.p=e.num}else{e.q=e.num}if(e.p!==null&&e.q!==null){++e.state}e.num=null}}else if(e.state===1){if(e.p.compareTo(e.q)<0){e.num=e.p;e.p=e.q;e.q=e.num}++e.state}else if(e.state===2){e.p1=e.p.subtract(a.ONE);e.q1=e.q.subtract(a.ONE);e.phi=e.p1.multiply(e.q1);++e.state}else if(e.state===3){if(e.phi.gcd(e.e).compareTo(a.ONE)===0){++e.state}else{e.p=null;e.q=null;e.state=0}}else if(e.state===4){e.n=e.p.multiply(e.q);if(e.n.bitLength()===e.bits){++e.state}else{e.q=null;e.state=0}}else if(e.state===5){var g=e.e.modInverse(e.phi);e.keys={privateKey:l.rsa.setPrivateKey(e.n,e.e,g,e.p,e.q,g.mod(e.p1),g.mod(e.q1),e.q.modInverse(e.p)),publicKey:l.rsa.setPublicKey(e.n,e.e)}}o=+new Date;c+=o-s;s=o}return e.keys!==null};l.rsa.generateKeyPair=function(e,r,i,a){if(arguments.length===1){if(typeof e==="object"){i=e;e=undefined}else if(typeof e==="function"){a=e;e=undefined}}else if(arguments.length===2){if(typeof e==="number"){if(typeof r==="function"){a=r;r=undefined}else if(typeof r!=="number"){i=r;r=undefined}}else{i=e;a=r;e=undefined;r=undefined}}else if(arguments.length===3){if(typeof r==="number"){if(typeof i==="function"){a=i;i=undefined}}else{a=i;i=r;r=undefined}}i=i||{};if(e===undefined){e=i.bits||2048}if(r===undefined){r=i.e||65537}if(!n.options.usePureJavaScript&&!i.prng&&e>=256&&e<=16384&&(r===65537||r===3)){if(a){if(_detectNodeCrypto("generateKeyPair")){return s.generateKeyPair("rsa",{modulusLength:e,publicExponent:r,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},(function(e,r,i){if(e){return a(e)}a(null,{privateKey:l.privateKeyFromPem(i),publicKey:l.publicKeyFromPem(r)})}))}if(_detectSubtleCrypto("generateKey")&&_detectSubtleCrypto("exportKey")){return c.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:_intToUint8Array(r),hash:{name:"SHA-256"}},true,["sign","verify"]).then((function(e){return c.globalScope.crypto.subtle.exportKey("pkcs8",e.privateKey)})).then(undefined,(function(e){a(e)})).then((function(e){if(e){var r=l.privateKeyFromAsn1(o.fromDer(n.util.createBuffer(e)));a(null,{privateKey:r,publicKey:l.setRsaPublicKey(r.n,r.e)})}}))}if(_detectSubtleMsCrypto("generateKey")&&_detectSubtleMsCrypto("exportKey")){var p=c.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:_intToUint8Array(r),hash:{name:"SHA-256"}},true,["sign","verify"]);p.oncomplete=function(e){var r=e.target.result;var i=c.globalScope.msCrypto.subtle.exportKey("pkcs8",r.privateKey);i.oncomplete=function(e){var r=e.target.result;var i=l.privateKeyFromAsn1(o.fromDer(n.util.createBuffer(r)));a(null,{privateKey:i,publicKey:l.setRsaPublicKey(i.n,i.e)})};i.onerror=function(e){a(e)}};p.onerror=function(e){a(e)};return}}else{if(_detectNodeCrypto("generateKeyPairSync")){var d=s.generateKeyPairSync("rsa",{modulusLength:e,publicExponent:r,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:l.privateKeyFromPem(d.privateKey),publicKey:l.publicKeyFromPem(d.publicKey)}}}}var h=l.rsa.createKeyPairGenerationState(e,r,i);if(!a){l.rsa.stepKeyPairGenerationState(h,0);return h.keys}_generateKeyPair(h,i,a)};l.setRsaPublicKey=l.rsa.setPublicKey=function(e,r){var i={n:e,e:r};i.encrypt=function(e,r,a){if(typeof r==="string"){r=r.toUpperCase()}else if(r===undefined){r="RSAES-PKCS1-V1_5"}if(r==="RSAES-PKCS1-V1_5"){r={encode:function(e,r,i){return _encodePkcs1_v1_5(e,r,2).getBytes()}}}else if(r==="RSA-OAEP"||r==="RSAES-OAEP"){r={encode:function(e,r){return n.pkcs1.encode_rsa_oaep(r,e,a)}}}else if(["RAW","NONE","NULL",null].indexOf(r)!==-1){r={encode:function(e){return e}}}else if(typeof r==="string"){throw new Error('Unsupported encryption scheme: "'+r+'".')}var s=r.encode(e,i,true);return l.rsa.encrypt(s,i,true)};i.verify=function(e,r,n){if(typeof n==="string"){n=n.toUpperCase()}else if(n===undefined){n="RSASSA-PKCS1-V1_5"}if(n==="RSASSA-PKCS1-V1_5"){n={verify:function(e,r){r=_decodePkcs1_v1_5(r,i,true);var n=o.fromDer(r);return e===n.value[1].value}}}else if(n==="NONE"||n==="NULL"||n===null){n={verify:function(e,r){r=_decodePkcs1_v1_5(r,i,true);return e===r}}}var a=l.rsa.decrypt(r,i,true,false);return n.verify(e,a,i.n.bitLength())};return i};l.setRsaPrivateKey=l.rsa.setPrivateKey=function(e,r,i,a,s,o,c,p){var d={n:e,e:r,d:i,p:a,q:s,dP:o,dQ:c,qInv:p};d.decrypt=function(e,r,i){if(typeof r==="string"){r=r.toUpperCase()}else if(r===undefined){r="RSAES-PKCS1-V1_5"}var a=l.rsa.decrypt(e,d,false,false);if(r==="RSAES-PKCS1-V1_5"){r={decode:_decodePkcs1_v1_5}}else if(r==="RSA-OAEP"||r==="RSAES-OAEP"){r={decode:function(e,r){return n.pkcs1.decode_rsa_oaep(r,e,i)}}}else if(["RAW","NONE","NULL",null].indexOf(r)!==-1){r={decode:function(e){return e}}}else{throw new Error('Unsupported encryption scheme: "'+r+'".')}return r.decode(a,d,false)};d.sign=function(e,r){var i=false;if(typeof r==="string"){r=r.toUpperCase()}if(r===undefined||r==="RSASSA-PKCS1-V1_5"){r={encode:emsaPkcs1v15encode};i=1}else if(r==="NONE"||r==="NULL"||r===null){r={encode:function(){return e}};i=1}var n=r.encode(e,d.n.bitLength());return l.rsa.encrypt(n,d,i)};return d};l.wrapRsaPrivateKey=function(e){return o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,o.integerToDer(0).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.OID,false,o.oidToDer(l.oids.rsaEncryption).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.NULL,false,"")]),o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,false,o.toDer(e).getBytes())])};l.privateKeyFromAsn1=function(e){var r={};var i=[];if(o.validate(e,d,r,i)){e=o.fromDer(n.util.createBuffer(r.privateKey))}r={};i=[];if(!o.validate(e,h,r,i)){var s=new Error("Cannot read private key. "+"ASN.1 object does not contain an RSAPrivateKey.");s.errors=i;throw s}var c,p,g,v,y,b,x,E;c=n.util.createBuffer(r.privateKeyModulus).toHex();p=n.util.createBuffer(r.privateKeyPublicExponent).toHex();g=n.util.createBuffer(r.privateKeyPrivateExponent).toHex();v=n.util.createBuffer(r.privateKeyPrime1).toHex();y=n.util.createBuffer(r.privateKeyPrime2).toHex();b=n.util.createBuffer(r.privateKeyExponent1).toHex();x=n.util.createBuffer(r.privateKeyExponent2).toHex();E=n.util.createBuffer(r.privateKeyCoefficient).toHex();return l.setRsaPrivateKey(new a(c,16),new a(p,16),new a(g,16),new a(v,16),new a(y,16),new a(b,16),new a(x,16),new a(E,16))};l.privateKeyToAsn1=l.privateKeyToRSAPrivateKey=function(e){return o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,o.integerToDer(0).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.n)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.e)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.d)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.p)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.q)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.dP)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.dQ)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.qInv))])};l.publicKeyFromAsn1=function(e){var r={};var i=[];if(o.validate(e,v,r,i)){var s=o.derToOid(r.publicKeyOid);if(s!==l.oids.rsaEncryption){var c=new Error("Cannot read public key. Unknown OID.");c.oid=s;throw c}e=r.rsaPublicKey}i=[];if(!o.validate(e,g,r,i)){var c=new Error("Cannot read public key. "+"ASN.1 object does not contain an RSAPublicKey.");c.errors=i;throw c}var p=n.util.createBuffer(r.publicKeyModulus).toHex();var d=n.util.createBuffer(r.publicKeyExponent).toHex();return l.setRsaPublicKey(new a(p,16),new a(d,16))};l.publicKeyToAsn1=l.publicKeyToSubjectPublicKeyInfo=function(e){return o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.OID,false,o.oidToDer(l.oids.rsaEncryption).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.NULL,false,"")]),o.create(o.Class.UNIVERSAL,o.Type.BITSTRING,false,[l.publicKeyToRSAPublicKey(e)])])};l.publicKeyToRSAPublicKey=function(e){return o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.n)),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,_bnToBytes(e.e))])};function _encodePkcs1_v1_5(e,r,i){var a=n.util.createBuffer();var s=Math.ceil(r.n.bitLength()/8);if(e.length>s-11){var o=new Error("Message is too long for PKCS#1 v1.5 padding.");o.length=e.length;o.max=s-11;throw o}a.putByte(0);a.putByte(i);var c=s-3-e.length;var l;if(i===0||i===1){l=i===0?0:255;for(var p=0;p0){var d=0;var h=n.random.getBytes(c);for(var p=0;p1){if(o.getByte()!==255){--o.read;break}++p}}else if(l===2){p=0;while(o.length()>1){if(o.getByte()===0){--o.read;break}++p}}var h=o.getByte();if(h!==0||p!==s-3-o.length()){throw new Error("Encryption block is invalid.")}return o.getBytes()}function _generateKeyPair(e,r,i){if(typeof r==="function"){i=r;r={}}r=r||{};var s={algorithm:{name:r.algorithm||"PRIMEINC",options:{workers:r.workers||2,workLoad:r.workLoad||100,workerScript:r.workerScript}}};if("prng"in r){s.prng=r.prng}generate();function generate(){getPrime(e.pBits,(function(r,n){if(r){return i(r)}e.p=n;if(e.q!==null){return finish(r,e.q)}getPrime(e.qBits,finish)}))}function getPrime(e,r){n.prime.generateProbablePrime(e,s,r)}function finish(r,n){if(r){return i(r)}e.q=n;if(e.p.compareTo(e.q)<0){var s=e.p;e.p=e.q;e.q=s}if(e.p.subtract(a.ONE).gcd(e.e).compareTo(a.ONE)!==0){e.p=null;generate();return}if(e.q.subtract(a.ONE).gcd(e.e).compareTo(a.ONE)!==0){e.q=null;getPrime(e.qBits,finish);return}e.p1=e.p.subtract(a.ONE);e.q1=e.q.subtract(a.ONE);e.phi=e.p1.multiply(e.q1);if(e.phi.gcd(e.e).compareTo(a.ONE)!==0){e.p=e.q=null;generate();return}e.n=e.p.multiply(e.q);if(e.n.bitLength()!==e.bits){e.q=null;getPrime(e.qBits,finish);return}var o=e.e.modInverse(e.phi);e.keys={privateKey:l.rsa.setPrivateKey(e.n,e.e,o,e.p,e.q,o.mod(e.p1),o.mod(e.q1),e.q.modInverse(e.p)),publicKey:l.rsa.setPublicKey(e.n,e.e)};i(null,e.keys)}}function _bnToBytes(e){var r=e.toString(16);if(r[0]>="8"){r="00"+r}var i=n.util.hexToBytes(r);if(i.length>1&&(i.charCodeAt(0)===0&&(i.charCodeAt(1)&128)===0||i.charCodeAt(0)===255&&(i.charCodeAt(1)&128)===128)){return i.substr(1)}return i}function _getMillerRabinTests(e){if(e<=100)return 27;if(e<=150)return 18;if(e<=200)return 15;if(e<=250)return 12;if(e<=300)return 9;if(e<=350)return 8;if(e<=400)return 7;if(e<=500)return 6;if(e<=600)return 5;if(e<=800)return 4;if(e<=1250)return 3;return 2}function _detectNodeCrypto(e){return n.util.isNodejs&&typeof s[e]==="function"}function _detectSubtleCrypto(e){return typeof c.globalScope!=="undefined"&&typeof c.globalScope.crypto==="object"&&typeof c.globalScope.crypto.subtle==="object"&&typeof c.globalScope.crypto.subtle[e]==="function"}function _detectSubtleMsCrypto(e){return typeof c.globalScope!=="undefined"&&typeof c.globalScope.msCrypto==="object"&&typeof c.globalScope.msCrypto.subtle==="object"&&typeof c.globalScope.msCrypto.subtle[e]==="function"}function _intToUint8Array(e){var r=n.util.hexToBytes(e.toString(16));var i=new Uint8Array(r.length);for(var a=0;a{var n=i(9177);i(6231);i(8339);var a=e.exports=n.sha1=n.sha1||{};n.md.sha1=n.md.algorithms.sha1=a;a.create=function(){if(!o){_init()}var e=null;var r=n.util.createBuffer();var i=new Array(80);var a={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};a.start=function(){a.messageLength=0;a.fullMessageLength=a.messageLength64=[];var i=a.messageLengthSize/4;for(var s=0;s>>0,c>>>0];for(var l=a.fullMessageLength.length-1;l>=0;--l){a.fullMessageLength[l]+=c[1];c[1]=c[0]+(a.fullMessageLength[l]/4294967296>>>0);a.fullMessageLength[l]=a.fullMessageLength[l]>>>0;c[0]=c[1]/4294967296>>>0}r.putBytes(s);_update(e,i,r);if(r.read>2048||r.length()===0){r.compact()}return a};a.digest=function(){var o=n.util.createBuffer();o.putBytes(r.bytes());var c=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize;var l=c&a.blockLength-1;o.putBytes(s.substr(0,a.blockLength-l));var p,d;var h=a.fullMessageLength[0]*8;for(var g=0;g>>0;h+=d;o.putInt32(h>>>0);h=p>>>0}o.putInt32(h);var v={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4};_update(v,i,o);var y=n.util.createBuffer();y.putInt32(v.h0);y.putInt32(v.h1);y.putInt32(v.h2);y.putInt32(v.h3);y.putInt32(v.h4);return y};return a};var s=null;var o=false;function _init(){s=String.fromCharCode(128);s+=n.util.fillString(String.fromCharCode(0),64);o=true}function _update(e,r,i){var n,a,s,o,c,l,p,d;var h=i.length();while(h>=64){a=e.h0;s=e.h1;o=e.h2;c=e.h3;l=e.h4;for(d=0;d<16;++d){n=i.getInt32();r[d]=n;p=c^s&(o^c);n=(a<<5|a>>>27)+p+l+1518500249+n;l=c;c=o;o=(s<<30|s>>>2)>>>0;s=a;a=n}for(;d<20;++d){n=r[d-3]^r[d-8]^r[d-14]^r[d-16];n=n<<1|n>>>31;r[d]=n;p=c^s&(o^c);n=(a<<5|a>>>27)+p+l+1518500249+n;l=c;c=o;o=(s<<30|s>>>2)>>>0;s=a;a=n}for(;d<32;++d){n=r[d-3]^r[d-8]^r[d-14]^r[d-16];n=n<<1|n>>>31;r[d]=n;p=s^o^c;n=(a<<5|a>>>27)+p+l+1859775393+n;l=c;c=o;o=(s<<30|s>>>2)>>>0;s=a;a=n}for(;d<40;++d){n=r[d-6]^r[d-16]^r[d-28]^r[d-32];n=n<<2|n>>>30;r[d]=n;p=s^o^c;n=(a<<5|a>>>27)+p+l+1859775393+n;l=c;c=o;o=(s<<30|s>>>2)>>>0;s=a;a=n}for(;d<60;++d){n=r[d-6]^r[d-16]^r[d-28]^r[d-32];n=n<<2|n>>>30;r[d]=n;p=s&o|c&(s^o);n=(a<<5|a>>>27)+p+l+2400959708+n;l=c;c=o;o=(s<<30|s>>>2)>>>0;s=a;a=n}for(;d<80;++d){n=r[d-6]^r[d-16]^r[d-28]^r[d-32];n=n<<2|n>>>30;r[d]=n;p=s^o^c;n=(a<<5|a>>>27)+p+l+3395469782+n;l=c;c=o;o=(s<<30|s>>>2)>>>0;s=a;a=n}e.h0=e.h0+a|0;e.h1=e.h1+s|0;e.h2=e.h2+o|0;e.h3=e.h3+c|0;e.h4=e.h4+l|0;h-=64}}},4086:(e,r,i)=>{var n=i(9177);i(6231);i(8339);var a=e.exports=n.sha256=n.sha256||{};n.md.sha256=n.md.algorithms.sha256=a;a.create=function(){if(!o){_init()}var e=null;var r=n.util.createBuffer();var i=new Array(64);var a={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};a.start=function(){a.messageLength=0;a.fullMessageLength=a.messageLength64=[];var i=a.messageLengthSize/4;for(var s=0;s>>0,c>>>0];for(var l=a.fullMessageLength.length-1;l>=0;--l){a.fullMessageLength[l]+=c[1];c[1]=c[0]+(a.fullMessageLength[l]/4294967296>>>0);a.fullMessageLength[l]=a.fullMessageLength[l]>>>0;c[0]=c[1]/4294967296>>>0}r.putBytes(s);_update(e,i,r);if(r.read>2048||r.length()===0){r.compact()}return a};a.digest=function(){var o=n.util.createBuffer();o.putBytes(r.bytes());var c=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize;var l=c&a.blockLength-1;o.putBytes(s.substr(0,a.blockLength-l));var p,d;var h=a.fullMessageLength[0]*8;for(var g=0;g>>0;h+=d;o.putInt32(h>>>0);h=p>>>0}o.putInt32(h);var v={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};_update(v,i,o);var y=n.util.createBuffer();y.putInt32(v.h0);y.putInt32(v.h1);y.putInt32(v.h2);y.putInt32(v.h3);y.putInt32(v.h4);y.putInt32(v.h5);y.putInt32(v.h6);y.putInt32(v.h7);return y};return a};var s=null;var o=false;var c=null;function _init(){s=String.fromCharCode(128);s+=n.util.fillString(String.fromCharCode(0),64);c=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];o=true}function _update(e,r,i){var n,a,s,o,l,p,d,h,g,v,y,b,x,E,w;var C=i.length();while(C>=64){for(d=0;d<16;++d){r[d]=i.getInt32()}for(;d<64;++d){n=r[d-2];n=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10;a=r[d-15];a=(a>>>7|a<<25)^(a>>>18|a<<14)^a>>>3;r[d]=n+r[d-7]+a+r[d-16]|0}h=e.h0;g=e.h1;v=e.h2;y=e.h3;b=e.h4;x=e.h5;E=e.h6;w=e.h7;for(d=0;d<64;++d){o=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7);l=E^b&(x^E);s=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10);p=h&g|v&(h^g);n=w+o+l+c[d]+r[d];a=s+p;w=E;E=x;x=b;b=y+n>>>0;y=v;v=g;g=h;h=n+a>>>0}e.h0=e.h0+h|0;e.h1=e.h1+g|0;e.h2=e.h2+v|0;e.h3=e.h3+y|0;e.h4=e.h4+b|0;e.h5=e.h5+x|0;e.h6=e.h6+E|0;e.h7=e.h7+w|0;C-=64}}},9542:(e,r,i)=>{var n=i(9177);i(6231);i(8339);var a=e.exports=n.sha512=n.sha512||{};n.md.sha512=n.md.algorithms.sha512=a;var s=n.sha384=n.sha512.sha384=n.sha512.sha384||{};s.create=function(){return a.create("SHA-384")};n.md.sha384=n.md.algorithms.sha384=s;n.sha512.sha256=n.sha512.sha256||{create:function(){return a.create("SHA-512/256")}};n.md["sha512/256"]=n.md.algorithms["sha512/256"]=n.sha512.sha256;n.sha512.sha224=n.sha512.sha224||{create:function(){return a.create("SHA-512/224")}};n.md["sha512/224"]=n.md.algorithms["sha512/224"]=n.sha512.sha224;a.create=function(e){if(!c){_init()}if(typeof e==="undefined"){e="SHA-512"}if(!(e in p)){throw new Error("Invalid SHA-512 algorithm: "+e)}var r=p[e];var i=null;var a=n.util.createBuffer();var s=new Array(80);for(var l=0;l<80;++l){s[l]=new Array(2)}var d=64;switch(e){case"SHA-384":d=48;break;case"SHA-512/256":d=32;break;case"SHA-512/224":d=28;break}var h={algorithm:e.replace("-","").toLowerCase(),blockLength:128,digestLength:d,messageLength:0,fullMessageLength:null,messageLengthSize:16};h.start=function(){h.messageLength=0;h.fullMessageLength=h.messageLength128=[];var e=h.messageLengthSize/4;for(var s=0;s>>0,o>>>0];for(var c=h.fullMessageLength.length-1;c>=0;--c){h.fullMessageLength[c]+=o[1];o[1]=o[0]+(h.fullMessageLength[c]/4294967296>>>0);h.fullMessageLength[c]=h.fullMessageLength[c]>>>0;o[0]=o[1]/4294967296>>>0}a.putBytes(e);_update(i,s,a);if(a.read>2048||a.length()===0){a.compact()}return h};h.digest=function(){var r=n.util.createBuffer();r.putBytes(a.bytes());var c=h.fullMessageLength[h.fullMessageLength.length-1]+h.messageLengthSize;var l=c&h.blockLength-1;r.putBytes(o.substr(0,h.blockLength-l));var p,d;var g=h.fullMessageLength[0]*8;for(var v=0;v>>0;g+=d;r.putInt32(g>>>0);g=p>>>0}r.putInt32(g);var y=new Array(i.length);for(var v=0;v=128){for(F=0;F<16;++F){r[F][0]=i.getInt32()>>>0;r[F][1]=i.getInt32()>>>0}for(;F<80;++F){H=r[F-2];V=H[0];G=H[1];n=((V>>>19|G<<13)^(G>>>29|V<<3)^V>>>6)>>>0;a=((V<<13|G>>>19)^(G<<3|V>>>29)^(V<<26|G>>>6))>>>0;$=r[F-15];V=$[0];G=$[1];s=((V>>>1|G<<31)^(V>>>8|G<<24)^V>>>7)>>>0;o=((V<<31|G>>>1)^(V<<24|G>>>8)^(V<<25|G>>>7))>>>0;K=r[F-7];z=r[F-16];G=a+K[1]+o+z[1];r[F][0]=n+K[0]+s+z[0]+(G/4294967296>>>0)>>>0;r[F][1]=G>>>0}x=e[0][0];E=e[0][1];w=e[1][0];C=e[1][1];T=e[2][0];_=e[2][1];I=e[3][0];R=e[3][1];O=e[4][0];N=e[4][1];B=e[5][0];P=e[5][1];j=e[6][0];L=e[6][1];D=e[7][0];U=e[7][1];for(F=0;F<80;++F){d=((O>>>14|N<<18)^(O>>>18|N<<14)^(N>>>9|O<<23))>>>0;h=((O<<18|N>>>14)^(O<<14|N>>>18)^(N<<23|O>>>9))>>>0;g=(j^O&(B^j))>>>0;v=(L^N&(P^L))>>>0;c=((x>>>28|E<<4)^(E>>>2|x<<30)^(E>>>7|x<<25))>>>0;p=((x<<4|E>>>28)^(E<<30|x>>>2)^(E<<25|x>>>7))>>>0;y=(x&w|T&(x^w))>>>0;b=(E&C|_&(E^C))>>>0;G=U+h+v+l[F][1]+r[F][1];n=D+d+g+l[F][0]+r[F][0]+(G/4294967296>>>0)>>>0;a=G>>>0;G=p+b;s=c+y+(G/4294967296>>>0)>>>0;o=G>>>0;D=j;U=L;j=B;L=P;B=O;P=N;G=R+a;O=I+n+(G/4294967296>>>0)>>>0;N=G>>>0;I=T;R=_;T=w;_=C;w=x;C=E;G=a+o;x=n+s+(G/4294967296>>>0)>>>0;E=G>>>0}G=e[0][1]+E;e[0][0]=e[0][0]+x+(G/4294967296>>>0)>>>0;e[0][1]=G>>>0;G=e[1][1]+C;e[1][0]=e[1][0]+w+(G/4294967296>>>0)>>>0;e[1][1]=G>>>0;G=e[2][1]+_;e[2][0]=e[2][0]+T+(G/4294967296>>>0)>>>0;e[2][1]=G>>>0;G=e[3][1]+R;e[3][0]=e[3][0]+I+(G/4294967296>>>0)>>>0;e[3][1]=G>>>0;G=e[4][1]+N;e[4][0]=e[4][0]+O+(G/4294967296>>>0)>>>0;e[4][1]=G>>>0;G=e[5][1]+P;e[5][0]=e[5][0]+B+(G/4294967296>>>0)>>>0;e[5][1]=G>>>0;G=e[6][1]+L;e[6][0]=e[6][0]+j+(G/4294967296>>>0)>>>0;e[6][1]=G>>>0;G=e[7][1]+U;e[7][0]=e[7][0]+D+(G/4294967296>>>0)>>>0;e[7][1]=G>>>0;W-=128}}},4280:(e,r,i)=>{var n=i(9177);i(7994);i(5104);i(6594);i(279);i(8339);var a=e.exports=n.ssh=n.ssh||{};a.privateKeyToPutty=function(e,r,i){i=i||"";r=r||"";var a="ssh-rsa";var s=r===""?"none":"aes256-cbc";var o="PuTTY-User-Key-File-2: "+a+"\r\n";o+="Encryption: "+s+"\r\n";o+="Comment: "+i+"\r\n";var c=n.util.createBuffer();_addStringToBuffer(c,a);_addBigIntegerToBuffer(c,e.e);_addBigIntegerToBuffer(c,e.n);var l=n.util.encode64(c.bytes(),64);var p=Math.floor(l.length/66)+1;o+="Public-Lines: "+p+"\r\n";o+=l;var d=n.util.createBuffer();_addBigIntegerToBuffer(d,e.d);_addBigIntegerToBuffer(d,e.p);_addBigIntegerToBuffer(d,e.q);_addBigIntegerToBuffer(d,e.qInv);var h;if(!r){h=n.util.encode64(d.bytes(),64)}else{var g=d.length()+16-1;g-=g%16;var v=_sha1(d.bytes());v.truncate(v.length()-g+d.length());d.putBuffer(v);var y=n.util.createBuffer();y.putBuffer(_sha1("\0\0\0\0",r));y.putBuffer(_sha1("\0\0\0",r));var b=n.aes.createEncryptionCipher(y.truncate(8),"CBC");b.start(n.util.createBuffer().fillWithByte(0,16));b.update(d.copy());b.finish();var x=b.output;x.truncate(16);h=n.util.encode64(x.bytes(),64)}p=Math.floor(h.length/66)+1;o+="\r\nPrivate-Lines: "+p+"\r\n";o+=h;var E=_sha1("putty-private-key-file-mac-key",r);var w=n.util.createBuffer();_addStringToBuffer(w,a);_addStringToBuffer(w,s);_addStringToBuffer(w,i);w.putInt32(c.length());w.putBuffer(c);w.putInt32(d.length());w.putBuffer(d);var C=n.hmac.create();C.start("sha1",E);C.update(w.bytes());o+="\r\nPrivate-MAC: "+C.digest().toHex()+"\r\n";return o};a.publicKeyToOpenSSH=function(e,r){var i="ssh-rsa";r=r||"";var a=n.util.createBuffer();_addStringToBuffer(a,i);_addBigIntegerToBuffer(a,e.e);_addBigIntegerToBuffer(a,e.n);return i+" "+n.util.encode64(a.bytes())+" "+r};a.privateKeyToOpenSSH=function(e,r){if(!r){return n.pki.privateKeyToPem(e)}return n.pki.encryptRsaPrivateKey(e,r,{legacy:true,algorithm:"aes128"})};a.getPublicKeyFingerprint=function(e,r){r=r||{};var i=r.md||n.md.md5.create();var a="ssh-rsa";var s=n.util.createBuffer();_addStringToBuffer(s,a);_addBigIntegerToBuffer(s,e.e);_addBigIntegerToBuffer(s,e.n);i.start();i.update(s.getBytes());var o=i.digest();if(r.encoding==="hex"){var c=o.toHex();if(r.delimiter){return c.match(/.{2}/g).join(r.delimiter)}return c}else if(r.encoding==="binary"){return o.getBytes()}else if(r.encoding){throw new Error('Unknown encoding "'+r.encoding+'".')}return o};function _addBigIntegerToBuffer(e,r){var i=r.toString(16);if(i[0]>="8"){i="00"+i}var a=n.util.hexToBytes(i);e.putInt32(a.length);e.putBytes(a)}function _addStringToBuffer(e,r){e.putInt32(r.length);e.putString(r)}function _sha1(){var e=n.md.sha1.create();var r=arguments.length;for(var i=0;i{var n=i(9177);i(9549);i(5104);i(6594);i(154);i(6924);i(7821);i(279);i(8339);var prf_TLS1=function(e,r,i,a){var s=n.util.createBuffer();var o=e.length>>1;var c=o+(e.length&1);var l=e.substr(0,c);var p=e.substr(o,c);var d=n.util.createBuffer();var h=n.hmac.create();i=r+i;var g=Math.ceil(a/16);var v=Math.ceil(a/20);h.start("MD5",l);var y=n.util.createBuffer();d.putBytes(i);for(var b=0;b0){a.queue(e,a.createAlert(e,{level:a.Alert.Level.warning,description:a.Alert.Description.no_renegotiation}));a.flush(e)}e.process()};a.parseHelloMessage=function(e,r,i){var s=null;var o=e.entity===a.ConnectionEnd.client;if(i<38){e.error(e,{message:o?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.illegal_parameter}})}else{var c=r.fragment;var l=c.length();s={version:{major:c.getByte(),minor:c.getByte()},random:n.util.createBuffer(c.getBytes(32)),session_id:readVector(c,1),extensions:[]};if(o){s.cipher_suite=c.getBytes(2);s.compression_method=c.getByte()}else{s.cipher_suites=readVector(c,2);s.compression_methods=readVector(c,1)}l=i-(l-c.length());if(l>0){var p=readVector(c,2);while(p.length()>0){s.extensions.push({type:[p.getByte(),p.getByte()],data:readVector(p,2)})}if(!o){for(var d=0;d0){var v=g.getByte();if(v!==0){break}e.session.extensions.server_name.serverNameList.push(readVector(g,2).getBytes())}}}}}if(e.session.version){if(s.version.major!==e.session.version.major||s.version.minor!==e.session.version.minor){return e.error(e,{message:"TLS version change is disallowed during renegotiation.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.protocol_version}})}}if(o){e.session.cipherSuite=a.getCipherSuite(s.cipher_suite)}else{var y=n.util.createBuffer(s.cipher_suites.bytes());while(y.length()>0){e.session.cipherSuite=a.getCipherSuite(y.getBytes(2));if(e.session.cipherSuite!==null){break}}}if(e.session.cipherSuite===null){return e.error(e,{message:"No cipher suites in common.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.handshake_failure},cipherSuite:n.util.bytesToHex(s.cipher_suite)})}if(o){e.session.compressionMethod=s.compression_method}else{e.session.compressionMethod=a.CompressionMethod.none}}return s};a.createSecurityParameters=function(e,r){var i=e.entity===a.ConnectionEnd.client;var n=r.random.bytes();var s=i?e.session.sp.client_random:n;var o=i?n:a.createRandom().getBytes();e.session.sp={entity:e.entity,prf_algorithm:a.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:e.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:s,server_random:o}};a.handleServerHello=function(e,r,i){var n=a.parseHelloMessage(e,r,i);if(e.fail){return}if(n.version.minor<=e.version.minor){e.version.minor=n.version.minor}else{return e.error(e,{message:"Incompatible TLS version.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.protocol_version}})}e.session.version=e.version;var s=n.session_id.bytes();if(s.length>0&&s===e.session.id){e.expect=d;e.session.resuming=true;e.session.sp.server_random=n.random.bytes()}else{e.expect=o;e.session.resuming=false;a.createSecurityParameters(e,n)}e.session.id=s;e.process()};a.handleClientHello=function(e,r,i){var s=a.parseHelloMessage(e,r,i);if(e.fail){return}var o=s.session_id.bytes();var c=null;if(e.sessionCache){c=e.sessionCache.getSession(o);if(c===null){o=""}else if(c.version.major!==s.version.major||c.version.minor>s.version.minor){c=null;o=""}}if(o.length===0){o=n.random.getBytes(32)}e.session.id=o;e.session.clientHelloVersion=s.version;e.session.sp={};if(c){e.version=e.session.version=c.version;e.session.sp=c.sp}else{var l;for(var p=1;p0){l=readVector(o.certificate_list,3);p=n.asn1.fromDer(l);l=n.pki.certificateFromAsn1(p,true);d.push(l)}}catch(r){return e.error(e,{message:"Could not parse certificate list.",cause:r,send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.bad_certificate}})}var h=e.entity===a.ConnectionEnd.client;if((h||e.verifyClient===true)&&d.length===0){e.error(e,{message:h?"No server certificate provided.":"No client certificate provided.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.illegal_parameter}})}else if(d.length===0){e.expect=h?c:x}else{if(h){e.session.serverCertificate=d[0]}else{e.session.clientCertificate=d[0]}if(a.verifyCertificateChain(e,d)){e.expect=h?c:x}}e.process()};a.handleServerKeyExchange=function(e,r,i){if(i>0){return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.unsupported_certificate}})}e.expect=l;e.process()};a.handleClientKeyExchange=function(e,r,i){if(i<48){return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.unsupported_certificate}})}var s=r.fragment;var o={enc_pre_master_secret:readVector(s,2).getBytes()};var c=null;if(e.getPrivateKey){try{c=e.getPrivateKey(e,e.session.serverCertificate);c=n.pki.privateKeyFromPem(c)}catch(r){e.error(e,{message:"Could not get private key.",cause:r,send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.internal_error}})}}if(c===null){return e.error(e,{message:"No private key set.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.internal_error}})}try{var l=e.session.sp;l.pre_master_secret=c.decrypt(o.enc_pre_master_secret);var p=e.session.clientHelloVersion;if(p.major!==l.pre_master_secret.charCodeAt(0)||p.minor!==l.pre_master_secret.charCodeAt(1)){throw new Error("TLS version rollback attack detected.")}}catch(e){l.pre_master_secret=n.random.getBytes(48)}e.expect=w;if(e.session.clientCertificate!==null){e.expect=E}e.process()};a.handleCertificateRequest=function(e,r,i){if(i<3){return e.error(e,{message:"Invalid CertificateRequest. Message too short.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.illegal_parameter}})}var n=r.fragment;var s={certificate_types:readVector(n,1),certificate_authorities:readVector(n,2)};e.session.certificateRequest=s;e.expect=p;e.process()};a.handleCertificateVerify=function(e,r,i){if(i<2){return e.error(e,{message:"Invalid CertificateVerify. Message too short.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.illegal_parameter}})}var s=r.fragment;s.read-=4;var o=s.bytes();s.read+=4;var c={signature:readVector(s,2).getBytes()};var l=n.util.createBuffer();l.putBuffer(e.session.md5.digest());l.putBuffer(e.session.sha1.digest());l=l.getBytes();try{var p=e.session.clientCertificate;if(!p.publicKey.verify(l,c.signature,"NONE")){throw new Error("CertificateVerify signature does not match.")}e.session.md5.update(o);e.session.sha1.update(o)}catch(r){return e.error(e,{message:"Bad signature in CertificateVerify.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.handshake_failure}})}e.expect=w;e.process()};a.handleServerHelloDone=function(e,r,i){if(i>0){return e.error(e,{message:"Invalid ServerHelloDone message. Invalid length.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.record_overflow}})}if(e.serverCertificate===null){var s={message:"No server certificate provided. Not enough security.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.insufficient_security}};var o=0;var c=e.verify(e,s.alert.description,o,[]);if(c!==true){if(c||c===0){if(typeof c==="object"&&!n.util.isArray(c)){if(c.message){s.message=c.message}if(c.alert){s.alert.description=c.alert}}else if(typeof c==="number"){s.alert.description=c}}return e.error(e,s)}}if(e.session.certificateRequest!==null){r=a.createRecord(e,{type:a.ContentType.handshake,data:a.createCertificate(e)});a.queue(e,r)}r=a.createRecord(e,{type:a.ContentType.handshake,data:a.createClientKeyExchange(e)});a.queue(e,r);e.expect=v;var callback=function(e,r){if(e.session.certificateRequest!==null&&e.session.clientCertificate!==null){a.queue(e,a.createRecord(e,{type:a.ContentType.handshake,data:a.createCertificateVerify(e,r)}))}a.queue(e,a.createRecord(e,{type:a.ContentType.change_cipher_spec,data:a.createChangeCipherSpec()}));e.state.pending=a.createConnectionState(e);e.state.current.write=e.state.pending.write;a.queue(e,a.createRecord(e,{type:a.ContentType.handshake,data:a.createFinished(e)}));e.expect=d;a.flush(e);e.process()};if(e.session.certificateRequest===null||e.session.clientCertificate===null){return callback(e,null)}a.getClientSignature(e,callback)};a.handleChangeCipherSpec=function(e,r){if(r.fragment.getByte()!==1){return e.error(e,{message:"Invalid ChangeCipherSpec message received.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.illegal_parameter}})}var i=e.entity===a.ConnectionEnd.client;if(e.session.resuming&&i||!e.session.resuming&&!i){e.state.pending=a.createConnectionState(e)}e.state.current.read=e.state.pending.read;if(!e.session.resuming&&i||e.session.resuming&&!i){e.state.pending=null}e.expect=i?h:C;e.process()};a.handleFinished=function(e,r,i){var s=r.fragment;s.read-=4;var o=s.bytes();s.read+=4;var c=r.fragment.getBytes();s=n.util.createBuffer();s.putBuffer(e.session.md5.digest());s.putBuffer(e.session.sha1.digest());var l=e.entity===a.ConnectionEnd.client;var p=l?"server finished":"client finished";var d=e.session.sp;var h=12;var v=prf_TLS1;s=v(d.master_secret,p,s.getBytes(),h);if(s.getBytes()!==c){return e.error(e,{message:"Invalid verify_data in Finished message.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.decrypt_error}})}e.session.md5.update(o);e.session.sha1.update(o);if(e.session.resuming&&l||!e.session.resuming&&!l){a.queue(e,a.createRecord(e,{type:a.ContentType.change_cipher_spec,data:a.createChangeCipherSpec()}));e.state.current.write=e.state.pending.write;e.state.pending=null;a.queue(e,a.createRecord(e,{type:a.ContentType.handshake,data:a.createFinished(e)}))}e.expect=l?g:T;e.handshaking=false;++e.handshakes;e.peerCertificate=l?e.session.serverCertificate:e.session.clientCertificate;a.flush(e);e.isConnected=true;e.connected(e);e.process()};a.handleAlert=function(e,r){var i=r.fragment;var n={level:i.getByte(),description:i.getByte()};var s;switch(n.description){case a.Alert.Description.close_notify:s="Connection closed.";break;case a.Alert.Description.unexpected_message:s="Unexpected message.";break;case a.Alert.Description.bad_record_mac:s="Bad record MAC.";break;case a.Alert.Description.decryption_failed:s="Decryption failed.";break;case a.Alert.Description.record_overflow:s="Record overflow.";break;case a.Alert.Description.decompression_failure:s="Decompression failed.";break;case a.Alert.Description.handshake_failure:s="Handshake failure.";break;case a.Alert.Description.bad_certificate:s="Bad certificate.";break;case a.Alert.Description.unsupported_certificate:s="Unsupported certificate.";break;case a.Alert.Description.certificate_revoked:s="Certificate revoked.";break;case a.Alert.Description.certificate_expired:s="Certificate expired.";break;case a.Alert.Description.certificate_unknown:s="Certificate unknown.";break;case a.Alert.Description.illegal_parameter:s="Illegal parameter.";break;case a.Alert.Description.unknown_ca:s="Unknown certificate authority.";break;case a.Alert.Description.access_denied:s="Access denied.";break;case a.Alert.Description.decode_error:s="Decode error.";break;case a.Alert.Description.decrypt_error:s="Decrypt error.";break;case a.Alert.Description.export_restriction:s="Export restriction.";break;case a.Alert.Description.protocol_version:s="Unsupported protocol version.";break;case a.Alert.Description.insufficient_security:s="Insufficient security.";break;case a.Alert.Description.internal_error:s="Internal error.";break;case a.Alert.Description.user_canceled:s="User canceled.";break;case a.Alert.Description.no_renegotiation:s="Renegotiation not supported.";break;default:s="Unknown error.";break}if(n.description===a.Alert.Description.close_notify){return e.close()}e.error(e,{message:s,send:false,origin:e.entity===a.ConnectionEnd.client?"server":"client",alert:n});e.process()};a.handleHandshake=function(e,r){var i=r.fragment;var s=i.getByte();var o=i.getInt24();if(o>i.length()){e.fragmented=r;r.fragment=n.util.createBuffer();i.read-=4;return e.process()}e.fragmented=null;i.read-=4;var c=i.bytes(o+4);i.read+=4;if(s in K[e.entity][e.expect]){if(e.entity===a.ConnectionEnd.server&&!e.open&&!e.fail){e.handshaking=true;e.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:n.md.md5.create(),sha1:n.md.sha1.create()}}if(s!==a.HandshakeType.hello_request&&s!==a.HandshakeType.certificate_verify&&s!==a.HandshakeType.finished){e.session.md5.update(c);e.session.sha1.update(c)}K[e.entity][e.expect][s](e,r,o)}else{a.handleUnexpected(e,r)}};a.handleApplicationData=function(e,r){e.data.putBuffer(r.fragment);e.dataReady(e);e.process()};a.handleHeartbeat=function(e,r){var i=r.fragment;var s=i.getByte();var o=i.getInt16();var c=i.getBytes(o);if(s===a.HeartbeatMessageType.heartbeat_request){if(e.handshaking||o>c.length){return e.process()}a.queue(e,a.createRecord(e,{type:a.ContentType.heartbeat,data:a.createHeartbeat(a.HeartbeatMessageType.heartbeat_response,c)}));a.flush(e)}else if(s===a.HeartbeatMessageType.heartbeat_response){if(c!==e.expectedHeartbeatPayload){return e.process()}if(e.heartbeatReceived){e.heartbeatReceived(e,n.util.createBuffer(c))}}e.process()};var s=0;var o=1;var c=2;var l=3;var p=4;var d=5;var h=6;var g=7;var v=8;var y=0;var b=1;var x=2;var E=3;var w=4;var C=5;var T=6;var _=7;var I=a.handleUnexpected;var R=a.handleChangeCipherSpec;var O=a.handleAlert;var N=a.handleHandshake;var B=a.handleApplicationData;var P=a.handleHeartbeat;var j=[];j[a.ConnectionEnd.client]=[[I,O,N,I,P],[I,O,N,I,P],[I,O,N,I,P],[I,O,N,I,P],[I,O,N,I,P],[R,O,I,I,P],[I,O,N,I,P],[I,O,N,B,P],[I,O,N,I,P]];j[a.ConnectionEnd.server]=[[I,O,N,I,P],[I,O,N,I,P],[I,O,N,I,P],[I,O,N,I,P],[R,O,I,I,P],[I,O,N,I,P],[I,O,N,B,P],[I,O,N,I,P]];var L=a.handleHelloRequest;var D=a.handleServerHello;var U=a.handleCertificate;var F=a.handleServerKeyExchange;var V=a.handleCertificateRequest;var G=a.handleServerHelloDone;var H=a.handleFinished;var K=[];K[a.ConnectionEnd.client]=[[I,I,D,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I],[L,I,I,I,I,I,I,I,I,I,I,U,F,V,G,I,I,I,I,I,I],[L,I,I,I,I,I,I,I,I,I,I,I,F,V,G,I,I,I,I,I,I],[L,I,I,I,I,I,I,I,I,I,I,I,I,V,G,I,I,I,I,I,I],[L,I,I,I,I,I,I,I,I,I,I,I,I,I,G,I,I,I,I,I,I],[L,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I],[L,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,H],[L,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I],[L,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I]];var $=a.handleClientHello;var z=a.handleClientKeyExchange;var W=a.handleCertificateVerify;K[a.ConnectionEnd.server]=[[I,$,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I],[I,I,I,I,I,I,I,I,I,I,I,U,I,I,I,I,I,I,I,I,I],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,z,I,I,I,I],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,W,I,I,I,I,I],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,H],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I],[I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I]];a.generateKeys=function(e,r){var i=prf_TLS1;var n=r.client_random+r.server_random;if(!e.session.resuming){r.master_secret=i(r.pre_master_secret,"master secret",n,48).bytes();r.pre_master_secret=null}n=r.server_random+r.client_random;var s=2*r.mac_key_length+2*r.enc_key_length;var o=e.version.major===a.Versions.TLS_1_0.major&&e.version.minor===a.Versions.TLS_1_0.minor;if(o){s+=2*r.fixed_iv_length}var c=i(r.master_secret,"key expansion",n,s);var l={client_write_MAC_key:c.getBytes(r.mac_key_length),server_write_MAC_key:c.getBytes(r.mac_key_length),client_write_key:c.getBytes(r.enc_key_length),server_write_key:c.getBytes(r.enc_key_length)};if(o){l.client_write_IV=c.getBytes(r.fixed_iv_length);l.server_write_IV=c.getBytes(r.fixed_iv_length)}return l};a.createConnectionState=function(e){var r=e.entity===a.ConnectionEnd.client;var createMode=function(){var e={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(e){return true},compressionState:null,compressFunction:function(e){return true},updateSequenceNumber:function(){if(e.sequenceNumber[1]===4294967295){e.sequenceNumber[1]=0;++e.sequenceNumber[0]}else{++e.sequenceNumber[1]}}};return e};var i={read:createMode(),write:createMode()};i.read.update=function(e,r){if(!i.read.cipherFunction(r,i.read)){e.error(e,{message:"Could not decrypt record or bad MAC.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.bad_record_mac}})}else if(!i.read.compressFunction(e,r,i.read)){e.error(e,{message:"Could not decompress record.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.decompression_failure}})}return!e.fail};i.write.update=function(e,r){if(!i.write.compressFunction(e,r,i.write)){e.error(e,{message:"Could not compress record.",send:false,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.internal_error}})}else if(!i.write.cipherFunction(r,i.write)){e.error(e,{message:"Could not encrypt record.",send:false,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.internal_error}})}return!e.fail};if(e.session){var n=e.session.sp;e.session.cipherSuite.initSecurityParameters(n);n.keys=a.generateKeys(e,n);i.read.macKey=r?n.keys.server_write_MAC_key:n.keys.client_write_MAC_key;i.write.macKey=r?n.keys.client_write_MAC_key:n.keys.server_write_MAC_key;e.session.cipherSuite.initConnectionState(i,e,n);switch(n.compression_algorithm){case a.CompressionMethod.none:break;case a.CompressionMethod.deflate:i.read.compressFunction=inflate;i.write.compressFunction=deflate;break;default:throw new Error("Unsupported compression algorithm.")}}return i};a.createRandom=function(){var e=new Date;var r=+e+e.getTimezoneOffset()*6e4;var i=n.util.createBuffer();i.putInt32(r);i.putBytes(n.random.getBytes(28));return i};a.createRecord=function(e,r){if(!r.data){return null}var i={type:r.type,version:{major:e.version.major,minor:e.version.minor},length:r.data.length(),fragment:r.data};return i};a.createAlert=function(e,r){var i=n.util.createBuffer();i.putByte(r.level);i.putByte(r.description);return a.createRecord(e,{type:a.ContentType.alert,data:i})};a.createClientHello=function(e){e.session.clientHelloVersion={major:e.version.major,minor:e.version.minor};var r=n.util.createBuffer();for(var i=0;i0){v+=2}var y=e.session.id;var b=y.length+1+2+4+28+2+o+1+l+v;var x=n.util.createBuffer();x.putByte(a.HandshakeType.client_hello);x.putInt24(b);x.putByte(e.version.major);x.putByte(e.version.minor);x.putBytes(e.session.sp.client_random);writeVector(x,1,n.util.createBuffer(y));writeVector(x,2,r);writeVector(x,1,c);if(v>0){writeVector(x,2,p)}return x};a.createServerHello=function(e){var r=e.session.id;var i=r.length+1+2+4+28+2+1;var s=n.util.createBuffer();s.putByte(a.HandshakeType.server_hello);s.putInt24(i);s.putByte(e.version.major);s.putByte(e.version.minor);s.putBytes(e.session.sp.server_random);writeVector(s,1,n.util.createBuffer(r));s.putByte(e.session.cipherSuite.id[0]);s.putByte(e.session.cipherSuite.id[1]);s.putByte(e.session.compressionMethod);return s};a.createCertificate=function(e){var r=e.entity===a.ConnectionEnd.client;var i=null;if(e.getCertificate){var s;if(r){s=e.session.certificateRequest}else{s=e.session.extensions.server_name.serverNameList}i=e.getCertificate(e,s)}var o=n.util.createBuffer();if(i!==null){try{if(!n.util.isArray(i)){i=[i]}var c=null;for(var l=0;l0){i.putByte(a.HandshakeType.server_key_exchange);i.putInt24(r)}return i};a.getClientSignature=function(e,r){var i=n.util.createBuffer();i.putBuffer(e.session.md5.digest());i.putBuffer(e.session.sha1.digest());i=i.getBytes();e.getSignature=e.getSignature||function(e,r,i){var s=null;if(e.getPrivateKey){try{s=e.getPrivateKey(e,e.session.clientCertificate);s=n.pki.privateKeyFromPem(s)}catch(r){e.error(e,{message:"Could not get private key.",cause:r,send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.internal_error}})}}if(s===null){e.error(e,{message:"No private key set.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.internal_error}})}else{r=s.sign(r,null)}i(e,r)};e.getSignature(e,i,r)};a.createCertificateVerify=function(e,r){var i=r.length+2;var s=n.util.createBuffer();s.putByte(a.HandshakeType.certificate_verify);s.putInt24(i);s.putInt16(r.length);s.putBytes(r);return s};a.createCertificateRequest=function(e){var r=n.util.createBuffer();r.putByte(1);var i=n.util.createBuffer();for(var s in e.caStore.certs){var o=e.caStore.certs[s];var c=n.pki.distinguishedNameToAsn1(o.subject);var l=n.asn1.toDer(c);i.putInt16(l.length());i.putBuffer(l)}var p=1+r.length()+2+i.length();var d=n.util.createBuffer();d.putByte(a.HandshakeType.certificate_request);d.putInt24(p);writeVector(d,1,r);writeVector(d,2,i);return d};a.createServerHelloDone=function(e){var r=n.util.createBuffer();r.putByte(a.HandshakeType.server_hello_done);r.putInt24(0);return r};a.createChangeCipherSpec=function(){var e=n.util.createBuffer();e.putByte(1);return e};a.createFinished=function(e){var r=n.util.createBuffer();r.putBuffer(e.session.md5.digest());r.putBuffer(e.session.sha1.digest());var i=e.entity===a.ConnectionEnd.client;var s=e.session.sp;var o=12;var c=prf_TLS1;var l=i?"client finished":"server finished";r=c(s.master_secret,l,r.getBytes(),o);var p=n.util.createBuffer();p.putByte(a.HandshakeType.finished);p.putInt24(r.length());p.putBuffer(r);return p};a.createHeartbeat=function(e,r,i){if(typeof i==="undefined"){i=r.length}var a=n.util.createBuffer();a.putByte(e);a.putInt16(i);a.putBytes(r);var s=a.length();var o=Math.max(16,s-i-3);a.putBytes(n.random.getBytes(o));return a};a.queue=function(e,r){if(!r){return}if(r.fragment.length()===0){if(r.type===a.ContentType.handshake||r.type===a.ContentType.alert||r.type===a.ContentType.change_cipher_spec){return}}if(r.type===a.ContentType.handshake){var i=r.fragment.bytes();e.session.md5.update(i);e.session.sha1.update(i);i=null}var s;if(r.fragment.length()<=a.MaxFragment){s=[r]}else{s=[];var o=r.fragment.bytes();while(o.length>a.MaxFragment){s.push(a.createRecord(e,{type:r.type,data:n.util.createBuffer(o.slice(0,a.MaxFragment))}));o=o.slice(a.MaxFragment)}if(o.length>0){s.push(a.createRecord(e,{type:r.type,data:n.util.createBuffer(o)}))}}for(var c=0;c0){a=i.order[0]}if(a!==null&&a in i.cache){r=i.cache[a];delete i.cache[a];for(var s in i.order){if(i.order[s]===a){i.order.splice(s,1);break}}}return r};i.setSession=function(e,r){if(i.order.length===i.capacity){var a=i.order.shift();delete i.cache[a]}var a=n.util.bytesToHex(e);i.order.push(a);i.cache[a]=r}}return i};a.createConnection=function(e){var r=null;if(e.caStore){if(n.util.isArray(e.caStore)){r=n.pki.createCaStore(e.caStore)}else{r=e.caStore}}else{r=n.pki.createCaStore()}var i=e.cipherSuites||null;if(i===null){i=[];for(var o in a.CipherSuites){i.push(a.CipherSuites[o])}}var c=e.server||false?a.ConnectionEnd.server:a.ConnectionEnd.client;var l=e.sessionCache?a.createSessionCache(e.sessionCache):null;var p={version:{major:a.Version.major,minor:a.Version.minor},entity:c,sessionId:e.sessionId,caStore:r,sessionCache:l,cipherSuites:i,connected:e.connected,virtualHost:e.virtualHost||null,verifyClient:e.verifyClient||false,verify:e.verify||function(e,r,i,n){return r},verifyOptions:e.verifyOptions||{},getCertificate:e.getCertificate||null,getPrivateKey:e.getPrivateKey||null,getSignature:e.getSignature||null,input:n.util.createBuffer(),tlsData:n.util.createBuffer(),data:n.util.createBuffer(),tlsDataReady:e.tlsDataReady,dataReady:e.dataReady,heartbeatReceived:e.heartbeatReceived,closed:e.closed,error:function(r,i){i.origin=i.origin||(r.entity===a.ConnectionEnd.client?"client":"server");if(i.send){a.queue(r,a.createAlert(r,i.alert));a.flush(r)}var n=i.fatal!==false;if(n){r.fail=true}e.error(r,i);if(n){r.close(false)}},deflate:e.deflate||null,inflate:e.inflate||null};p.reset=function(e){p.version={major:a.Version.major,minor:a.Version.minor};p.record=null;p.session=null;p.peerCertificate=null;p.state={pending:null,current:null};p.expect=p.entity===a.ConnectionEnd.client?s:y;p.fragmented=null;p.records=[];p.open=false;p.handshakes=0;p.handshaking=false;p.isConnected=false;p.fail=!(e||typeof e==="undefined");p.input.clear();p.tlsData.clear();p.data.clear();p.state.current=a.createConnectionState(p)};p.reset();var _update=function(e,r){var i=r.type-a.ContentType.change_cipher_spec;var n=j[e.entity][e.expect];if(i in n){n[i](e,r)}else{a.handleUnexpected(e,r)}};var _readRecordHeader=function(e){var r=0;var i=e.input;var s=i.length();if(s<5){r=5-s}else{e.record={type:i.getByte(),version:{major:i.getByte(),minor:i.getByte()},length:i.getInt16(),fragment:n.util.createBuffer(),ready:false};var o=e.record.version.major===e.version.major;if(o&&e.session&&e.session.version){o=e.record.version.minor===e.version.minor}if(!o){e.error(e,{message:"Incompatible TLS version.",send:true,alert:{level:a.Alert.Level.fatal,description:a.Alert.Description.protocol_version}})}}return r};var _readRecord=function(e){var r=0;var i=e.input;var n=i.length();if(n0){if(p.sessionCache){r=p.sessionCache.getSession(e)}if(r===null){e=""}}if(e.length===0&&p.sessionCache){r=p.sessionCache.getSession();if(r!==null){e=r.id}}p.session={id:e,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:n.md.md5.create(),sha1:n.md.sha1.create()};if(r){p.version=r.version;p.session.sp=r.sp}p.session.sp.client_random=a.createRandom().getBytes();p.open=true;a.queue(p,a.createRecord(p,{type:a.ContentType.handshake,data:a.createClientHello(p)}));a.flush(p)}};p.process=function(e){var r=0;if(e){p.input.putBytes(e)}if(!p.fail){if(p.record!==null&&p.record.ready&&p.record.fragment.isEmpty()){p.record=null}if(p.record===null){r=_readRecordHeader(p)}if(!p.fail&&p.record!==null&&!p.record.ready){r=_readRecord(p)}if(!p.fail&&p.record!==null&&p.record.ready){_update(p,p.record)}}return r};p.prepare=function(e){a.queue(p,a.createRecord(p,{type:a.ContentType.application_data,data:n.util.createBuffer(e)}));return a.flush(p)};p.prepareHeartbeatRequest=function(e,r){if(e instanceof n.util.ByteBuffer){e=e.bytes()}if(typeof r==="undefined"){r=e.length}p.expectedHeartbeatPayload=e;a.queue(p,a.createRecord(p,{type:a.ContentType.heartbeat,data:a.createHeartbeat(a.HeartbeatMessageType.heartbeat_request,e,r)}));return a.flush(p)};p.close=function(e){if(!p.fail&&p.sessionCache&&p.session){var r={id:p.session.id,version:p.session.version,sp:p.session.sp};r.sp.keys=null;p.sessionCache.setSession(r.id,r)}if(p.open){p.open=false;p.input.clear();if(p.isConnected||p.handshaking){p.isConnected=p.handshaking=false;a.queue(p,a.createAlert(p,{level:a.Alert.Level.warning,description:a.Alert.Description.close_notify}));a.flush(p)}p.closed(p)}p.reset(e)};return p};e.exports=n.tls=n.tls||{};for(var Y in a){if(typeof a[Y]!=="function"){n.tls[Y]=a[Y]}}n.tls.prf_tls1=prf_TLS1;n.tls.hmac_sha1=hmac_sha1;n.tls.createSessionCache=a.createSessionCache;n.tls.createConnection=a.createConnection},8339:(e,r,i)=>{var n=i(9177);var a=i(2300);var s=e.exports=n.util=n.util||{};(function(){if(typeof process!=="undefined"&&process.nextTick&&!process.browser){s.nextTick=process.nextTick;if(typeof setImmediate==="function"){s.setImmediate=setImmediate}else{s.setImmediate=s.nextTick}return}if(typeof setImmediate==="function"){s.setImmediate=function(){return setImmediate.apply(undefined,arguments)};s.nextTick=function(e){return setImmediate(e)};return}s.setImmediate=function(e){setTimeout(e,0)};if(typeof window!=="undefined"&&typeof window.postMessage==="function"){var e="forge.setImmediate";var r=[];s.setImmediate=function(i){r.push(i);if(r.length===1){window.postMessage(e,"*")}};function handler(i){if(i.source===window&&i.data===e){i.stopPropagation();var n=r.slice();r.length=0;n.forEach((function(e){e()}))}}window.addEventListener("message",handler,true)}if(typeof MutationObserver!=="undefined"){var i=Date.now();var n=true;var a=document.createElement("div");var r=[];new MutationObserver((function(){var e=r.slice();r.length=0;e.forEach((function(e){e()}))})).observe(a,{attributes:true});var o=s.setImmediate;s.setImmediate=function(e){if(Date.now()-i>15){i=Date.now();o(e)}else{r.push(e);if(r.length===1){a.setAttribute("a",n=!n)}}}}s.nextTick=s.setImmediate})();s.isNodejs=typeof process!=="undefined"&&process.versions&&process.versions.node;s.globalScope=function(){if(s.isNodejs){return global}return typeof self==="undefined"?window:self}();s.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};s.isArrayBuffer=function(e){return typeof ArrayBuffer!=="undefined"&&e instanceof ArrayBuffer};s.isArrayBufferView=function(e){return e&&s.isArrayBuffer(e.buffer)&&e.byteLength!==undefined};function _checkBitsParam(e){if(!(e===8||e===16||e===24||e===32)){throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}}s.ByteBuffer=ByteStringBuffer;function ByteStringBuffer(e){this.data="";this.read=0;if(typeof e==="string"){this.data=e}else if(s.isArrayBuffer(e)||s.isArrayBufferView(e)){if(typeof Buffer!=="undefined"&&e instanceof Buffer){this.data=e.toString("binary")}else{var r=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,r)}catch(e){for(var i=0;io){this.data.substr(0,1);this._constructedStringLength=0}};s.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read};s.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0};s.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))};s.ByteStringBuffer.prototype.fillWithByte=function(e,r){e=String.fromCharCode(e);var i=this.data;while(r>0){if(r&1){i+=e}r>>>=1;if(r>0){e+=e}}this.data=i;this._optimizeConstructedString(r);return this};s.ByteStringBuffer.prototype.putBytes=function(e){this.data+=e;this._optimizeConstructedString(e.length);return this};s.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(s.encodeUtf8(e))};s.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};s.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};s.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};s.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255))};s.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))};s.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))};s.ByteStringBuffer.prototype.putInt=function(e,r){_checkBitsParam(r);var i="";do{r-=8;i+=String.fromCharCode(e>>r&255)}while(r>0);return this.putBytes(i)};s.ByteStringBuffer.prototype.putSignedInt=function(e,r){if(e<0){e+=2<0);return r};s.ByteStringBuffer.prototype.getSignedInt=function(e){var r=this.getInt(e);var i=2<=i){r-=i<<1}return r};s.ByteStringBuffer.prototype.getBytes=function(e){var r;if(e){e=Math.min(this.length(),e);r=this.data.slice(this.read,this.read+e);this.read+=e}else if(e===0){r=""}else{r=this.read===0?this.data:this.data.slice(this.read);this.clear()}return r};s.ByteStringBuffer.prototype.bytes=function(e){return typeof e==="undefined"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)};s.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)};s.ByteStringBuffer.prototype.setAt=function(e,r){this.data=this.data.substr(0,this.read+e)+String.fromCharCode(r)+this.data.substr(this.read+e+1);return this};s.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)};s.ByteStringBuffer.prototype.copy=function(){var e=s.createBuffer(this.data);e.read=this.read;return e};s.ByteStringBuffer.prototype.compact=function(){if(this.read>0){this.data=this.data.slice(this.read);this.read=0}return this};s.ByteStringBuffer.prototype.clear=function(){this.data="";this.read=0;return this};s.ByteStringBuffer.prototype.truncate=function(e){var r=Math.max(0,this.length()-e);this.data=this.data.substr(this.read,r);this.read=0;return this};s.ByteStringBuffer.prototype.toHex=function(){var e="";for(var r=this.read;r=e){return this}r=Math.max(r||this.growSize,e);var i=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength);var n=new Uint8Array(this.length()+r);n.set(i);this.data=new DataView(n.buffer);return this};s.DataBuffer.prototype.putByte=function(e){this.accommodate(1);this.data.setUint8(this.write++,e);return this};s.DataBuffer.prototype.fillWithByte=function(e,r){this.accommodate(r);for(var i=0;i>8&65535);this.data.setInt8(this.write,e>>16&255);this.write+=3;return this};s.DataBuffer.prototype.putInt32=function(e){this.accommodate(4);this.data.setInt32(this.write,e);this.write+=4;return this};s.DataBuffer.prototype.putInt16Le=function(e){this.accommodate(2);this.data.setInt16(this.write,e,true);this.write+=2;return this};s.DataBuffer.prototype.putInt24Le=function(e){this.accommodate(3);this.data.setInt8(this.write,e>>16&255);this.data.setInt16(this.write,e>>8&65535,true);this.write+=3;return this};s.DataBuffer.prototype.putInt32Le=function(e){this.accommodate(4);this.data.setInt32(this.write,e,true);this.write+=4;return this};s.DataBuffer.prototype.putInt=function(e,r){_checkBitsParam(r);this.accommodate(r/8);do{r-=8;this.data.setInt8(this.write++,e>>r&255)}while(r>0);return this};s.DataBuffer.prototype.putSignedInt=function(e,r){_checkBitsParam(r);this.accommodate(r/8);if(e<0){e+=2<0);return r};s.DataBuffer.prototype.getSignedInt=function(e){var r=this.getInt(e);var i=2<=i){r-=i<<1}return r};s.DataBuffer.prototype.getBytes=function(e){var r;if(e){e=Math.min(this.length(),e);r=this.data.slice(this.read,this.read+e);this.read+=e}else if(e===0){r=""}else{r=this.read===0?this.data:this.data.slice(this.read);this.clear()}return r};s.DataBuffer.prototype.bytes=function(e){return typeof e==="undefined"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)};s.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)};s.DataBuffer.prototype.setAt=function(e,r){this.data.setUint8(e,r);return this};s.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)};s.DataBuffer.prototype.copy=function(){return new s.DataBuffer(this)};s.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read);var r=new Uint8Array(e.byteLength);r.set(e);this.data=new DataView(r);this.write-=this.read;this.read=0}return this};s.DataBuffer.prototype.clear=function(){this.data=new DataView(new ArrayBuffer(0));this.read=this.write=0;return this};s.DataBuffer.prototype.truncate=function(e){this.write=Math.max(0,this.length()-e);this.read=Math.min(this.read,this.write);return this};s.DataBuffer.prototype.toHex=function(){var e="";for(var r=this.read;r0){if(r&1){i+=e}r>>>=1;if(r>0){e+=e}}return i};s.xorBytes=function(e,r,i){var n="";var a="";var s="";var o=0;var c=0;for(;i>0;--i,++o){a=e.charCodeAt(o)^r.charCodeAt(o);if(c>=10){n+=s;s="";c=0}s+=String.fromCharCode(a);++c}n+=s;return n};s.hexToBytes=function(e){var r="";var i=0;if(e.length&1==1){i=1;r+=String.fromCharCode(parseInt(e[0],16))}for(;i>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var l=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];var p="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";s.encode64=function(e,r){var i="";var n="";var a,s,o;var l=0;while(l>2);i+=c.charAt((a&3)<<4|s>>4);if(isNaN(s)){i+="=="}else{i+=c.charAt((s&15)<<2|o>>6);i+=isNaN(o)?"=":c.charAt(o&63)}if(r&&i.length>r){n+=i.substr(0,r)+"\r\n";i=i.substr(r)}}n+=i;return n};s.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");var r="";var i,n,a,s;var o=0;while(o>4);if(a!==64){r+=String.fromCharCode((n&15)<<4|a>>2);if(s!==64){r+=String.fromCharCode((a&3)<<6|s)}}}return r};s.encodeUtf8=function(e){return unescape(encodeURIComponent(e))};s.decodeUtf8=function(e){return decodeURIComponent(escape(e))};s.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:a.encode,decode:a.decode}};s.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)};s.binary.raw.decode=function(e,r,i){var n=r;if(!n){n=new Uint8Array(e.length)}i=i||0;var a=i;for(var s=0;s>2);i+=c.charAt((a&3)<<4|s>>4);if(isNaN(s)){i+="=="}else{i+=c.charAt((s&15)<<2|o>>6);i+=isNaN(o)?"=":c.charAt(o&63)}if(r&&i.length>r){n+=i.substr(0,r)+"\r\n";i=i.substr(r)}}n+=i;return n};s.binary.base64.decode=function(e,r,i){var n=r;if(!n){n=new Uint8Array(Math.ceil(e.length/4)*3)}e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");i=i||0;var a,s,o,c;var p=0,d=i;while(p>4;if(o!==64){n[d++]=(s&15)<<4|o>>2;if(c!==64){n[d++]=(o&3)<<6|c}}}return r?d-i:n.subarray(0,d)};s.binary.base58.encode=function(e,r){return s.binary.baseN.encode(e,p,r)};s.binary.base58.decode=function(e,r){return s.binary.baseN.decode(e,p,r)};s.text={utf8:{},utf16:{}};s.text.utf8.encode=function(e,r,i){e=s.encodeUtf8(e);var n=r;if(!n){n=new Uint8Array(e.length)}i=i||0;var a=i;for(var o=0;o0){s.push(n)}o=r.lastIndex;var c=i[0][1];switch(c){case"s":case"o":if(a")}break;case"%":s.push("%");break;default:s.push("<%"+c+"?>")}}s.push(e.substring(o));return s.join("")};s.formatNumber=function(e,r,i,n){var a=e,s=isNaN(r=Math.abs(r))?2:r;var o=i===undefined?",":i;var c=n===undefined?".":n,l=a<0?"-":"";var p=parseInt(a=Math.abs(+a||0).toFixed(s),10)+"";var d=p.length>3?p.length%3:0;return l+(d?p.substr(0,d)+c:"")+p.substr(d).replace(/(\d{3})(?=\d)/g,"$1"+c)+(s?o+Math.abs(a-p).toFixed(s).slice(2):"")};s.formatSize=function(e){if(e>=1073741824){e=s.formatNumber(e/1073741824,2,".","")+" GiB"}else if(e>=1048576){e=s.formatNumber(e/1048576,2,".","")+" MiB"}else if(e>=1024){e=s.formatNumber(e/1024,0)+" KiB"}else{e=s.formatNumber(e,0)+" bytes"}return e};s.bytesFromIP=function(e){if(e.indexOf(".")!==-1){return s.bytesFromIPv4(e)}if(e.indexOf(":")!==-1){return s.bytesFromIPv6(e)}return null};s.bytesFromIPv4=function(e){e=e.split(".");if(e.length!==4){return null}var r=s.createBuffer();for(var i=0;ii[n].end-i[n].start){n=i.length-1}}}r.push(o)}if(i.length>0){var p=i[n];if(p.end-p.start>0){r.splice(p.start,p.end-p.start+1,"");if(p.start===0){r.unshift("")}if(p.end===7){r.push("")}}}return r.join(":")};s.estimateCores=function(e,r){if(typeof e==="function"){r=e;e={}}e=e||{};if("cores"in s&&!e.update){return r(null,s.cores)}if(typeof navigator!=="undefined"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0){s.cores=navigator.hardwareConcurrency;return r(null,s.cores)}if(typeof Worker==="undefined"){s.cores=1;return r(null,s.cores)}if(typeof Blob==="undefined"){s.cores=2;return r(null,s.cores)}var i=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",(function(e){var r=Date.now();var i=r+4;while(Date.now()c.st&&a.sta.st&&c.st{var n=i(9177);i(7994);i(9549);i(7157);i(6231);i(7973);i(1925);i(154);i(4376);i(3921);i(8339);var a=n.asn1;var s=e.exports=n.pki=n.pki||{};var o=s.oids;var c={};c["CN"]=o["commonName"];c["commonName"]="CN";c["C"]=o["countryName"];c["countryName"]="C";c["L"]=o["localityName"];c["localityName"]="L";c["ST"]=o["stateOrProvinceName"];c["stateOrProvinceName"]="ST";c["O"]=o["organizationName"];c["organizationName"]="O";c["OU"]=o["organizationalUnitName"];c["organizationalUnitName"]="OU";c["E"]=o["emailAddress"];c["emailAddress"]="E";var l=n.pki.rsa.publicKeyValidator;var p={name:"Certificate",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.TBSCertificate",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:a.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:a.Class.UNIVERSAL,optional:true,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:a.Class.UNIVERSAL,type:a.Type.UTCTIME,constructed:false,optional:true,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:a.Class.UNIVERSAL,type:a.Type.GENERALIZEDTIME,constructed:false,optional:true,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:a.Class.UNIVERSAL,type:a.Type.UTCTIME,constructed:false,optional:true,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:a.Class.UNIVERSAL,type:a.Type.GENERALIZEDTIME,constructed:false,optional:true,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,captureAsn1:"certSubject"},l,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:a.Class.CONTEXT_SPECIFIC,type:1,constructed:true,optional:true,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:a.Class.UNIVERSAL,type:a.Type.BITSTRING,constructed:false,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:a.Class.CONTEXT_SPECIFIC,type:2,constructed:true,optional:true,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:a.Class.UNIVERSAL,type:a.Type.BITSTRING,constructed:false,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:a.Class.CONTEXT_SPECIFIC,type:3,constructed:true,captureAsn1:"certExtensions",optional:true}]},{name:"Certificate.signatureAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:a.Class.UNIVERSAL,optional:true,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:a.Class.UNIVERSAL,type:a.Type.BITSTRING,constructed:false,captureBitStringValue:"certSignature"}]};var d={name:"rsapss",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"rsapss.hashAlgorithm",tagClass:a.Class.CONTEXT_SPECIFIC,type:0,constructed:true,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:a.Class.UNIVERSAL,type:a.Class.SEQUENCE,constructed:true,optional:true,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:a.Class.CONTEXT_SPECIFIC,type:1,constructed:true,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:a.Class.UNIVERSAL,type:a.Class.SEQUENCE,constructed:true,optional:true,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:a.Class.CONTEXT_SPECIFIC,type:2,optional:true,value:[{name:"rsapss.saltLength.saltLength",tagClass:a.Class.UNIVERSAL,type:a.Class.INTEGER,constructed:false,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:a.Class.CONTEXT_SPECIFIC,type:3,optional:true,value:[{name:"rsapss.trailer.trailer",tagClass:a.Class.UNIVERSAL,type:a.Class.INTEGER,constructed:false,capture:"trailer"}]}]};var h={name:"CertificationRequestInfo",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:a.Class.UNIVERSAL,type:a.Type.INTEGER,constructed:false,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,captureAsn1:"certificationRequestInfoSubject"},l,{name:"CertificationRequestInfo.attributes",tagClass:a.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false},{name:"CertificationRequestInfo.attributes.value",tagClass:a.Class.UNIVERSAL,type:a.Type.SET,constructed:true}]}]}]};var g={name:"CertificationRequest",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,captureAsn1:"csr",value:[h,{name:"CertificationRequest.signatureAlgorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.SEQUENCE,constructed:true,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:a.Class.UNIVERSAL,type:a.Type.OID,constructed:false,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:a.Class.UNIVERSAL,optional:true,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:a.Class.UNIVERSAL,type:a.Type.BITSTRING,constructed:false,captureBitStringValue:"csrSignature"}]};s.RDNAttributesAsArray=function(e,r){var i=[];var n,s,l;for(var p=0;p2){throw new Error("Cannot read notBefore/notAfter validity times; more "+"than two times were provided in the certificate.")}if(g.length<2){throw new Error("Cannot read notBefore/notAfter validity times; they "+"were not provided as either UTCTime or GeneralizedTime.")}d.validity.notBefore=g[0];d.validity.notAfter=g[1];d.tbsCertificate=i.tbsCertificate;if(r){d.md=_createSignatureDigest({signatureOid:d.signatureOid,type:"certificate"});var v=a.toDer(d.tbsCertificate);d.md.update(v.getBytes())}var y=n.md.sha1.create();var b=a.toDer(i.certIssuer);y.update(b.getBytes());d.issuer.getField=function(e){return _getAttribute(d.issuer,e)};d.issuer.addField=function(e){_fillMissingFields([e]);d.issuer.attributes.push(e)};d.issuer.attributes=s.RDNAttributesAsArray(i.certIssuer);if(i.certIssuerUniqueId){d.issuer.uniqueId=i.certIssuerUniqueId}d.issuer.hash=y.digest().toHex();var x=n.md.sha1.create();var E=a.toDer(i.certSubject);x.update(E.getBytes());d.subject.getField=function(e){return _getAttribute(d.subject,e)};d.subject.addField=function(e){_fillMissingFields([e]);d.subject.attributes.push(e)};d.subject.attributes=s.RDNAttributesAsArray(i.certSubject);if(i.certSubjectUniqueId){d.subject.uniqueId=i.certSubjectUniqueId}d.subject.hash=x.digest().toHex();if(i.certExtensions){d.extensions=s.certificateExtensionsFromAsn1(i.certExtensions)}else{d.extensions=[]}d.publicKey=s.publicKeyFromAsn1(i.subjectPublicKeyInfo);return d};s.certificateExtensionsFromAsn1=function(e){var r=[];for(var i=0;i1){s=i.value.charCodeAt(1);c=i.value.length>2?i.value.charCodeAt(2):0}r.digitalSignature=(s&128)===128;r.nonRepudiation=(s&64)===64;r.keyEncipherment=(s&32)===32;r.dataEncipherment=(s&16)===16;r.keyAgreement=(s&8)===8;r.keyCertSign=(s&4)===4;r.cRLSign=(s&2)===2;r.encipherOnly=(s&1)===1;r.decipherOnly=(c&128)===128}else if(r.name==="basicConstraints"){var i=a.fromDer(r.value);if(i.value.length>0&&i.value[0].type===a.Type.BOOLEAN){r.cA=i.value[0].value.charCodeAt(0)!==0}else{r.cA=false}var l=null;if(i.value.length>0&&i.value[0].type===a.Type.INTEGER){l=i.value[0].value}else if(i.value.length>1){l=i.value[1].value}if(l!==null){r.pathLenConstraint=a.derToInteger(l)}}else if(r.name==="extKeyUsage"){var i=a.fromDer(r.value);for(var p=0;p1){s=i.value.charCodeAt(1)}r.client=(s&128)===128;r.server=(s&64)===64;r.email=(s&32)===32;r.objsign=(s&16)===16;r.reserved=(s&8)===8;r.sslCA=(s&4)===4;r.emailCA=(s&2)===2;r.objCA=(s&1)===1}else if(r.name==="subjectAltName"||r.name==="issuerAltName"){r.altNames=[];var h;var i=a.fromDer(r.value);for(var g=0;g128){throw new Error('Invalid "nsComment" content.')}e.value=a.create(a.Class.UNIVERSAL,a.Type.IA5STRING,false,e.comment)}else if(e.name==="subjectKeyIdentifier"&&r.cert){var b=r.cert.generateSubjectKeyIdentifier();e.subjectKeyIdentifier=b.toHex();e.value=a.create(a.Class.UNIVERSAL,a.Type.OCTETSTRING,false,b.getBytes())}else if(e.name==="authorityKeyIdentifier"&&r.cert){e.value=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[]);var h=e.value.value;if(e.keyIdentifier){var x=e.keyIdentifier===true?r.cert.generateSubjectKeyIdentifier().getBytes():e.keyIdentifier;h.push(a.create(a.Class.CONTEXT_SPECIFIC,0,false,x))}if(e.authorityCertIssuer){var E=[a.create(a.Class.CONTEXT_SPECIFIC,4,true,[_dnToAsn1(e.authorityCertIssuer===true?r.cert.issuer:e.authorityCertIssuer)])];h.push(a.create(a.Class.CONTEXT_SPECIFIC,1,true,E))}if(e.serialNumber){var w=n.util.hexToBytes(e.serialNumber===true?r.cert.serialNumber:e.serialNumber);h.push(a.create(a.Class.CONTEXT_SPECIFIC,2,false,w))}}else if(e.name==="cRLDistributionPoints"){e.value=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[]);var h=e.value.value;var C=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[]);var T=a.create(a.Class.CONTEXT_SPECIFIC,0,true,[]);var v;for(var y=0;y=v&&e0){o.value.push(s.certificateExtensionsToAsn1(e.extensions))}return o};s.getCertificationRequestInfo=function(e){var r=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.INTEGER,false,a.integerToDer(e.version).getBytes()),_dnToAsn1(e.subject),s.publicKeyToAsn1(e.publicKey),_CRIAttributesToAsn1(e)]);return r};s.distinguishedNameToAsn1=function(e){return _dnToAsn1(e)};s.certificateToAsn1=function(e){var r=e.tbsCertificate||s.getTBSCertificate(e);return a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[r,a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[a.create(a.Class.UNIVERSAL,a.Type.OID,false,a.oidToDer(e.signatureOid).getBytes()),_signatureParametersToAsn1(e.signatureOid,e.signatureParameters)]),a.create(a.Class.UNIVERSAL,a.Type.BITSTRING,false,String.fromCharCode(0)+e.signature)])};s.certificateExtensionsToAsn1=function(e){var r=a.create(a.Class.CONTEXT_SPECIFIC,3,true,[]);var i=a.create(a.Class.UNIVERSAL,a.Type.SEQUENCE,true,[]);r.value.push(i);for(var n=0;nd.validity.notAfter){l={message:"Certificate is not valid yet or has expired.",error:s.certificateError.certificate_expired,notBefore:d.validity.notBefore,notAfter:d.validity.notAfter,now:o}}}if(l===null){h=r[0]||e.getIssuer(d);if(h===null){if(d.isIssuer(d)){g=true;h=d}}if(h){var v=h;if(!n.util.isArray(v)){v=[v]}var y=false;while(!y&&v.length>0){h=v.shift();try{y=h.verify(d)}catch(e){}}if(!y){l={message:"Certificate signature is invalid.",error:s.certificateError.bad_certificate}}}if(l===null&&(!h||g)&&!e.hasCertificate(d)){l={message:"Certificate is not trusted.",error:s.certificateError.unknown_ca}}}if(l===null&&h&&!d.isIssuer(h)){l={message:"Certificate issuer is invalid.",error:s.certificateError.bad_certificate}}if(l===null){var b={keyUsage:true,basicConstraints:true};for(var x=0;l===null&&xw.pathLenConstraint){l={message:"Certificate basicConstraints pathLenConstraint violated.",error:s.certificateError.bad_certificate}}}}var _=l===null?true:l.error;var I=i.verify?i.verify(_,p,a):_;if(I===true){l=null}else{if(_===true){l={message:"The application rejected the certificate.",error:s.certificateError.bad_certificate}}if(I||I===0){if(typeof I==="object"&&!n.util.isArray(I)){if(I.message){l.message=I.message}if(I.error){l.error=I.error}}else if(typeof I==="string"){l.error=I}}throw l}c=false;++p}while(r.length>0);return true}},1223:(e,r,i)=>{var n=i(2940);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";f.onceError=r+" shouldn't be called more than once";f.called=false;return f}},7684:(e,r,i)=>{"use strict";const n=i(5185);const pLimit=e=>{if(!((Number.isInteger(e)||e===Infinity)&&e>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const r=new n;let i=0;const next=()=>{i--;if(r.size>0){r.dequeue()()}};const run=async(e,r,...n)=>{i++;const a=(async()=>e(...n))();r(a);try{await a}catch{}next()};const enqueue=(n,a,...s)=>{r.enqueue(run.bind(null,n,a,...s));(async()=>{await Promise.resolve();if(i0){r.dequeue()()}})()};const generator=(e,...r)=>new Promise((i=>{enqueue(e,i,...r)}));Object.defineProperties(generator,{activeCount:{get:()=>i},pendingCount:{get:()=>r.size},clearQueue:{value:()=>{r.clear()}}});return generator};e.exports=pLimit},8714:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var r=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var i=r.exec(e);var n=i[1]||"";var a=Boolean(n&&n.charAt(1)!==":");return Boolean(i[2]||a)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},8341:(e,r,i)=>{var n=i(1223);var a=i(1205);var s=i(7147);var noop=function(){};var o=/^v?\.0/.test(process.version);var isFn=function(e){return typeof e==="function"};var isFS=function(e){if(!o)return false;if(!s)return false;return(e instanceof(s.ReadStream||noop)||e instanceof(s.WriteStream||noop))&&isFn(e.close)};var isRequest=function(e){return e.setHeader&&isFn(e.abort)};var destroyer=function(e,r,i,s){s=n(s);var o=false;e.on("close",(function(){o=true}));a(e,{readable:r,writable:i},(function(e){if(e)return s(e);o=true;s()}));var c=false;return function(r){if(o)return;if(c)return;c=true;if(isFS(e))return e.close(noop);if(isRequest(e))return e.abort();if(isFn(e.destroy))return e.destroy();s(r||new Error("stream was destroyed"))}};var call=function(e){e()};var pipe=function(e,r){return e.pipe(r)};var pump=function(){var e=Array.prototype.slice.call(arguments);var r=isFn(e[e.length-1]||noop)&&e.pop()||noop;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var i;var n=e.map((function(a,s){var o=s0;return destroyer(a,o,c,(function(e){if(!i)i=e;if(e)n.forEach(call);if(o)return;n.forEach(call);r(i)}))}));return e.reduce(pipe)};e.exports=pump},212:(e,r,i)=>{var n=i(8341);var a=i(4124);var s=i(6599);var toArray=function(e){if(!e.length)return[];return Array.isArray(e[0])?e[0]:Array.prototype.slice.call(e)};var define=function(e){var Pumpify=function(){var r=toArray(arguments);if(!(this instanceof Pumpify))return new Pumpify(r);s.call(this,null,null,e);if(r.length)this.setPipeline(r)};a(Pumpify,s);Pumpify.prototype.setPipeline=function(){var e=toArray(arguments);var r=this;var i=false;var a=e[0];var s=e[e.length-1];s=s.readable?s:null;a=a.writable?a:null;var onclose=function(){e[0].emit("error",new Error("stream was destroyed"))};this.on("close",onclose);this.on("prefinish",(function(){if(!i)r.cork()}));n(e,(function(e){r.removeListener("close",onclose);if(e)return r.destroy(e.message==="premature close"?null:e);i=true;if(r._autoDestroy===false)r._autoDestroy=true;r.uncork()}));if(this.destroyed)return onclose();this.setWritable(a);this.setReadable(s)};return Pumpify};e.exports=define({autoDestroy:false,destroy:false});e.exports.obj=define({autoDestroy:false,destroy:false,objectMode:true,highWaterMark:16});e.exports.ctor=define},7214:e=>{"use strict";const r={};function createErrorType(e,i,n){if(!n){n=Error}function getMessage(e,r,n){if(typeof i==="string"){return i}else{return i(e,r,n)}}class NodeError extends n{constructor(e,r,i){super(getMessage(e,r,i))}}NodeError.prototype.name=n.name;NodeError.prototype.code=e;r[e]=NodeError}function oneOf(e,r){if(Array.isArray(e)){const i=e.length;e=e.map((e=>String(e)));if(i>2){return`one of ${r} ${e.slice(0,i-1).join(", ")}, or `+e[i-1]}else if(i===2){return`one of ${r} ${e[0]} or ${e[1]}`}else{return`of ${r} ${e[0]}`}}else{return`of ${r} ${String(e)}`}}function startsWith(e,r,i){return e.substr(!i||i<0?0:+i,r.length)===r}function endsWith(e,r,i){if(i===undefined||i>e.length){i=e.length}return e.substring(i-r.length,i)===r}function includes(e,r,i){if(typeof i!=="number"){i=0}if(i+r.length>e.length){return false}else{return e.indexOf(r,i)!==-1}}createErrorType("ERR_INVALID_OPT_VALUE",(function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'}),TypeError);createErrorType("ERR_INVALID_ARG_TYPE",(function(e,r,i){let n;if(typeof r==="string"&&startsWith(r,"not ")){n="must not be";r=r.replace(/^not /,"")}else{n="must be"}let a;if(endsWith(e," argument")){a=`The ${e} ${n} ${oneOf(r,"type")}`}else{const i=includes(e,".")?"property":"argument";a=`The "${e}" ${i} ${n} ${oneOf(r,"type")}`}a+=`. Received type ${typeof i}`;return a}),TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"}));createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"}));createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");e.exports.q=r},1359:(e,r,i)=>{"use strict";var n=Object.keys||function(e){var r=[];for(var i in e){r.push(i)}return r};e.exports=Duplex;var a=i(1433);var s=i(6993);i(4124)(Duplex,a);{var o=n(s.prototype);for(var c=0;c{"use strict";e.exports=PassThrough;var n=i(4415);i(4124)(PassThrough,n);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);n.call(this,e)}PassThrough.prototype._transform=function(e,r,i){i(null,e)}},1433:(e,r,i)=>{"use strict";e.exports=Readable;var n;Readable.ReadableState=ReadableState;var a=i(2361).EventEmitter;var s=function EElistenerCount(e,r){return e.listeners(r).length};var o=i(2387);var c=i(4300).Buffer;var l=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof l}var p=i(3837);var d;if(p&&p.debuglog){d=p.debuglog("stream")}else{d=function debug(){}}var h=i(6522);var g=i(7049);var v=i(9948),y=v.getHighWaterMark;var b=i(7214).q,x=b.ERR_INVALID_ARG_TYPE,E=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,C=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var T;var _;var I;i(4124)(Readable,o);var R=g.errorOrDestroy;var O=["error","close","destroy","pause","resume"];function prependListener(e,r,i){if(typeof e.prependListener==="function")return e.prependListener(r,i);if(!e._events||!e._events[r])e.on(r,i);else if(Array.isArray(e._events[r]))e._events[r].unshift(i);else e._events[r]=[i,e._events[r]]}function ReadableState(e,r,a){n=n||i(1359);e=e||{};if(typeof a!=="boolean")a=r instanceof n;this.objectMode=!!e.objectMode;if(a)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=y(this,e,"readableHighWaterMark",a);this.buffer=new h;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.paused=true;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!T)T=i(4841).s;this.decoder=new T(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||i(1359);if(!(this instanceof Readable))return new Readable(e);var r=this instanceof n;this._readableState=new ReadableState(e,this,r);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}o.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:false,get:function get(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function set(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=g.destroy;Readable.prototype._undestroy=g.undestroy;Readable.prototype._destroy=function(e,r){r(e)};Readable.prototype.push=function(e,r){var i=this._readableState;var n;if(!i.objectMode){if(typeof e==="string"){r=r||i.defaultEncoding;if(r!==i.encoding){e=c.from(e,r);r=""}n=true}}else{n=true}return readableAddChunk(this,e,r,false,n)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,r,i,n,a){d("readableAddChunk",r);var s=e._readableState;if(r===null){s.reading=false;onEofChunk(e,s)}else{var o;if(!a)o=chunkInvalid(s,r);if(o){R(e,o)}else if(s.objectMode||r&&r.length>0){if(typeof r!=="string"&&!s.objectMode&&Object.getPrototypeOf(r)!==c.prototype){r=_uint8ArrayToBuffer(r)}if(n){if(s.endEmitted)R(e,new C);else addChunk(e,s,r,true)}else if(s.ended){R(e,new E)}else if(s.destroyed){return false}else{s.reading=false;if(s.decoder&&!i){r=s.decoder.write(r);if(s.objectMode||r.length!==0)addChunk(e,s,r,false);else maybeReadMore(e,s)}else{addChunk(e,s,r,false)}}}else if(!n){s.reading=false;maybeReadMore(e,s)}}return!s.ended&&(s.length=N){e=N}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,r){if(e<=0||r.length===0&&r.ended)return 0;if(r.objectMode)return 1;if(e!==e){if(r.flowing&&r.length)return r.buffer.head.data.length;else return r.length}if(e>r.highWaterMark)r.highWaterMark=computeNewHighWaterMark(e);if(e<=r.length)return e;if(!r.ended){r.needReadable=true;return 0}return r.length}Readable.prototype.read=function(e){d("read",e);e=parseInt(e,10);var r=this._readableState;var i=e;if(e!==0)r.emittedReadable=false;if(e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended)){d("read: emitReadable",r.length,r.ended);if(r.length===0&&r.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,r);if(e===0&&r.ended){if(r.length===0)endReadable(this);return null}var n=r.needReadable;d("need readable",n);if(r.length===0||r.length-e0)a=fromList(e,r);else a=null;if(a===null){r.needReadable=r.length<=r.highWaterMark;e=0}else{r.length-=e;r.awaitDrain=0}if(r.length===0){if(!r.ended)r.needReadable=true;if(i!==e&&r.ended)endReadable(this)}if(a!==null)this.emit("data",a);return a};function onEofChunk(e,r){d("onEofChunk");if(r.ended)return;if(r.decoder){var i=r.decoder.end();if(i&&i.length){r.buffer.push(i);r.length+=r.objectMode?1:i.length}}r.ended=true;if(r.sync){emitReadable(e)}else{r.needReadable=false;if(!r.emittedReadable){r.emittedReadable=true;emitReadable_(e)}}}function emitReadable(e){var r=e._readableState;d("emitReadable",r.needReadable,r.emittedReadable);r.needReadable=false;if(!r.emittedReadable){d("emitReadable",r.flowing);r.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var r=e._readableState;d("emitReadable_",r.destroyed,r.length,r.ended);if(!r.destroyed&&(r.length||r.ended)){e.emit("readable");r.emittedReadable=false}r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark;flow(e)}function maybeReadMore(e,r){if(!r.readingMore){r.readingMore=true;process.nextTick(maybeReadMore_,e,r)}}function maybeReadMore_(e,r){while(!r.reading&&!r.ended&&(r.length1&&indexOf(n.pipes,e)!==-1)&&!l){d("false write response, pause",n.awaitDrain);n.awaitDrain++}i.pause()}}function onerror(r){d("onerror",r);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)R(e,r)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){d("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){d("unpipe");i.unpipe(e)}e.emit("pipe",i);if(!n.flowing){d("pipe resume");i.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var r=e._readableState;d("pipeOnDrain",r.awaitDrain);if(r.awaitDrain)r.awaitDrain--;if(r.awaitDrain===0&&s(e,"data")){r.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var r=this._readableState;var i={hasUnpiped:false};if(r.pipesCount===0)return this;if(r.pipesCount===1){if(e&&e!==r.pipes)return this;if(!e)e=r.pipes;r.pipes=null;r.pipesCount=0;r.flowing=false;if(e)e.emit("unpipe",this,i);return this}if(!e){var n=r.pipes;var a=r.pipesCount;r.pipes=null;r.pipesCount=0;r.flowing=false;for(var s=0;s0;if(n.flowing!==false)this.resume()}else if(e==="readable"){if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.flowing=false;n.emittedReadable=false;d("on readable",n.length,n.reading);if(n.length){emitReadable(this)}else if(!n.reading){process.nextTick(nReadingNextTick,this)}}}return i};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(e,r){var i=o.prototype.removeListener.call(this,e,r);if(e==="readable"){process.nextTick(updateReadableListening,this)}return i};Readable.prototype.removeAllListeners=function(e){var r=o.prototype.removeAllListeners.apply(this,arguments);if(e==="readable"||e===undefined){process.nextTick(updateReadableListening,this)}return r};function updateReadableListening(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0;if(r.resumeScheduled&&!r.paused){r.flowing=true}else if(e.listenerCount("data")>0){e.resume()}}function nReadingNextTick(e){d("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){d("resume");e.flowing=!e.readableListening;resume(this,e)}e.paused=false;return this};function resume(e,r){if(!r.resumeScheduled){r.resumeScheduled=true;process.nextTick(resume_,e,r)}}function resume_(e,r){d("resume",r.reading);if(!r.reading){e.read(0)}r.resumeScheduled=false;e.emit("resume");flow(e);if(r.flowing&&!r.reading)e.read(0)}Readable.prototype.pause=function(){d("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){d("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var r=e._readableState;d("flow",r.flowing);while(r.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var r=this;var i=this._readableState;var n=false;e.on("end",(function(){d("wrapped end");if(i.decoder&&!i.ended){var e=i.decoder.end();if(e&&e.length)r.push(e)}r.push(null)}));e.on("data",(function(a){d("wrapped data");if(i.decoder)a=i.decoder.write(a);if(i.objectMode&&(a===null||a===undefined))return;else if(!i.objectMode&&(!a||!a.length))return;var s=r.push(a);if(!s){n=true;e.pause()}}));for(var a in e){if(this[a]===undefined&&typeof e[a]==="function"){this[a]=function methodWrap(r){return function methodWrapReturnFunction(){return e[r].apply(e,arguments)}}(a)}}for(var s=0;s=r.length){if(r.decoder)i=r.buffer.join("");else if(r.buffer.length===1)i=r.buffer.first();else i=r.buffer.concat(r.length);r.buffer.clear()}else{i=r.buffer.consume(e,r.decoder)}return i}function endReadable(e){var r=e._readableState;d("endReadable",r.endEmitted);if(!r.endEmitted){r.ended=true;process.nextTick(endReadableNT,r,e)}}function endReadableNT(e,r){d("endReadableNT",e.endEmitted,e.length);if(!e.endEmitted&&e.length===0){e.endEmitted=true;r.readable=false;r.emit("end");if(e.autoDestroy){var i=r._writableState;if(!i||i.autoDestroy&&i.finished){r.destroy()}}}}if(typeof Symbol==="function"){Readable.from=function(e,r){if(I===undefined){I=i(9082)}return I(Readable,e,r)}}function indexOf(e,r){for(var i=0,n=e.length;i{"use strict";e.exports=Transform;var n=i(7214).q,a=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=n.ERR_TRANSFORM_WITH_LENGTH_0;var l=i(1359);i(4124)(Transform,l);function afterTransform(e,r){var i=this._transformState;i.transforming=false;var n=i.writecb;if(n===null){return this.emit("error",new s)}i.writechunk=null;i.writecb=null;if(r!=null)this.push(r);n(e);var a=this._readableState;a.reading=false;if(a.needReadable||a.length{"use strict";e.exports=Writable;function WriteReq(e,r,i){this.chunk=e;this.encoding=r;this.callback=i;this.next=null}function CorkedRequest(e){var r=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(r,e)}}var n;Writable.WritableState=WritableState;var a={deprecate:i(7127)};var s=i(2387);var o=i(4300).Buffer;var c=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return o.from(e)}function _isUint8Array(e){return o.isBuffer(e)||e instanceof c}var l=i(7049);var p=i(9948),d=p.getHighWaterMark;var h=i(7214).q,g=h.ERR_INVALID_ARG_TYPE,v=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,b=h.ERR_STREAM_CANNOT_PIPE,x=h.ERR_STREAM_DESTROYED,E=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,C=h.ERR_UNKNOWN_ENCODING;var T=l.errorOrDestroy;i(4124)(Writable,s);function nop(){}function WritableState(e,r,a){n=n||i(1359);e=e||{};if(typeof a!=="boolean")a=r instanceof n;this.objectMode=!!e.objectMode;if(a)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=d(this,e,"writableHighWaterMark",a);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var s=e.decodeStrings===false;this.decodeStrings=!s;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(r,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var r=[];while(e){r.push(e);e=e.next}return r};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:a.deprecate((function writableStateBufferGetter(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var _;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){_=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(_.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{_=function realHasInstance(e){return e instanceof this}}function Writable(e){n=n||i(1359);var r=this instanceof n;if(!r&&!_.call(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,r);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}s.call(this)}Writable.prototype.pipe=function(){T(this,new b)};function writeAfterEnd(e,r){var i=new w;T(e,i);process.nextTick(r,i)}function validChunk(e,r,i,n){var a;if(i===null){a=new E}else if(typeof i!=="string"&&!r.objectMode){a=new g("chunk",["string","Buffer"],i)}if(a){T(e,a);process.nextTick(n,a);return false}return true}Writable.prototype.write=function(e,r,i){var n=this._writableState;var a=false;var s=!n.objectMode&&_isUint8Array(e);if(s&&!o.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof r==="function"){i=r;r=null}if(s)r="buffer";else if(!r)r=n.defaultEncoding;if(typeof i!=="function")i=nop;if(n.ending)writeAfterEnd(this,i);else if(s||validChunk(this,n,e,i)){n.pendingcb++;a=writeOrBuffer(this,n,s,e,r,i)}return a};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new C(e);this._writableState.defaultEncoding=e;return this};Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:false,get:function get(){return this._writableState&&this._writableState.getBuffer()}});function decodeChunk(e,r,i){if(!e.objectMode&&e.decodeStrings!==false&&typeof r==="string"){r=o.from(r,i)}return r}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function get(){return this._writableState.highWaterMark}});function writeOrBuffer(e,r,i,n,a,s){if(!i){var o=decodeChunk(r,n,a);if(n!==o){i=true;a="buffer";n=o}}var c=r.objectMode?1:n.length;r.length+=c;var l=r.length{"use strict";var n;function _defineProperty(e,r,i){if(r in e){Object.defineProperty(e,r,{value:i,enumerable:true,configurable:true,writable:true})}else{e[r]=i}return e}var a=i(6080);var s=Symbol("lastResolve");var o=Symbol("lastReject");var c=Symbol("error");var l=Symbol("ended");var p=Symbol("lastPromise");var d=Symbol("handlePromise");var h=Symbol("stream");function createIterResult(e,r){return{value:e,done:r}}function readAndResolve(e){var r=e[s];if(r!==null){var i=e[h].read();if(i!==null){e[p]=null;e[s]=null;e[o]=null;r(createIterResult(i,false))}}}function onReadable(e){process.nextTick(readAndResolve,e)}function wrapForNext(e,r){return function(i,n){e.then((function(){if(r[l]){i(createIterResult(undefined,true));return}r[d](i,n)}),n)}}var g=Object.getPrototypeOf((function(){}));var v=Object.setPrototypeOf((n={get stream(){return this[h]},next:function next(){var e=this;var r=this[c];if(r!==null){return Promise.reject(r)}if(this[l]){return Promise.resolve(createIterResult(undefined,true))}if(this[h].destroyed){return new Promise((function(r,i){process.nextTick((function(){if(e[c]){i(e[c])}else{r(createIterResult(undefined,true))}}))}))}var i=this[p];var n;if(i){n=new Promise(wrapForNext(i,this))}else{var a=this[h].read();if(a!==null){return Promise.resolve(createIterResult(a,false))}n=new Promise(this[d])}this[p]=n;return n}},_defineProperty(n,Symbol.asyncIterator,(function(){return this})),_defineProperty(n,"return",(function _return(){var e=this;return new Promise((function(r,i){e[h].destroy(null,(function(e){if(e){i(e);return}r(createIterResult(undefined,true))}))}))})),n),g);var y=function createReadableStreamAsyncIterator(e){var r;var i=Object.create(v,(r={},_defineProperty(r,h,{value:e,writable:true}),_defineProperty(r,s,{value:null,writable:true}),_defineProperty(r,o,{value:null,writable:true}),_defineProperty(r,c,{value:null,writable:true}),_defineProperty(r,l,{value:e._readableState.endEmitted,writable:true}),_defineProperty(r,d,{value:function value(e,r){var n=i[h].read();if(n){i[p]=null;i[s]=null;i[o]=null;e(createIterResult(n,false))}else{i[s]=e;i[o]=r}},writable:true}),r));i[p]=null;a(e,(function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var r=i[o];if(r!==null){i[p]=null;i[s]=null;i[o]=null;r(e)}i[c]=e;return}var n=i[s];if(n!==null){i[p]=null;i[s]=null;i[o]=null;n(createIterResult(undefined,true))}i[l]=true}));e.on("readable",onReadable.bind(null,i));return i};e.exports=y},6522:(e,r,i)=>{"use strict";function ownKeys(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(r)n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}));i.push.apply(i,n)}return i}function _objectSpread(e){for(var r=1;r0)this.tail.next=r;else this.head=r;this.tail=r;++this.length}},{key:"unshift",value:function unshift(e){var r={data:e,next:this.head};if(this.length===0)this.tail=r;this.head=r;++this.length}},{key:"shift",value:function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e}},{key:"clear",value:function clear(){this.head=this.tail=null;this.length=0}},{key:"join",value:function join(e){if(this.length===0)return"";var r=this.head;var i=""+r.data;while(r=r.next){i+=e+r.data}return i}},{key:"concat",value:function concat(e){if(this.length===0)return a.alloc(0);var r=a.allocUnsafe(e>>>0);var i=this.head;var n=0;while(i){copyBuffer(i.data,r,n);n+=i.data.length;i=i.next}return r}},{key:"consume",value:function consume(e,r){var i;if(ea.length?a.length:e;if(s===a.length)n+=a;else n+=a.slice(0,e);e-=s;if(e===0){if(s===a.length){++i;if(r.next)this.head=r.next;else this.head=this.tail=null}else{this.head=r;r.data=a.slice(s)}break}++i}this.length-=i;return n}},{key:"_getBuffer",value:function _getBuffer(e){var r=a.allocUnsafe(e);var i=this.head;var n=1;i.data.copy(r);e-=i.data.length;while(i=i.next){var s=i.data;var o=e>s.length?s.length:e;s.copy(r,r.length-e,0,o);e-=o;if(e===0){if(o===s.length){++n;if(i.next)this.head=i.next;else this.head=this.tail=null}else{this.head=i;i.data=s.slice(o)}break}++n}this.length-=n;return r}},{key:c,value:function value(e,r){return o(this,_objectSpread({},r,{depth:0,customInspect:false}))}}]);return BufferList}()},7049:e=>{"use strict";function destroy(e,r){var i=this;var n=this._readableState&&this._readableState.destroyed;var a=this._writableState&&this._writableState.destroyed;if(n||a){if(r){r(e)}else if(e){if(!this._writableState){process.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;process.nextTick(emitErrorNT,this,e)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,(function(e){if(!r&&e){if(!i._writableState){process.nextTick(emitErrorAndCloseNT,i,e)}else if(!i._writableState.errorEmitted){i._writableState.errorEmitted=true;process.nextTick(emitErrorAndCloseNT,i,e)}else{process.nextTick(emitCloseNT,i)}}else if(r){process.nextTick(emitCloseNT,i);r(e)}else{process.nextTick(emitCloseNT,i)}}));return this}function emitErrorAndCloseNT(e,r){emitErrorNT(e,r);emitCloseNT(e)}function emitCloseNT(e){if(e._writableState&&!e._writableState.emitClose)return;if(e._readableState&&!e._readableState.emitClose)return;e.emit("close")}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,r){e.emit("error",r)}function errorOrDestroy(e,r){var i=e._readableState;var n=e._writableState;if(i&&i.autoDestroy||n&&n.autoDestroy)e.destroy(r);else e.emit("error",r)}e.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},6080:(e,r,i)=>{"use strict";var n=i(7214).q.ERR_STREAM_PREMATURE_CLOSE;function once(e){var r=false;return function(){if(r)return;r=true;for(var i=arguments.length,n=new Array(i),a=0;a{"use strict";function asyncGeneratorStep(e,r,i,n,a,s,o){try{var c=e[s](o);var l=c.value}catch(e){i(e);return}if(c.done){r(l)}else{Promise.resolve(l).then(n,a)}}function _asyncToGenerator(e){return function(){var r=this,i=arguments;return new Promise((function(n,a){var s=e.apply(r,i);function _next(e){asyncGeneratorStep(s,n,a,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,a,_next,_throw,"throw",e)}_next(undefined)}))}}function ownKeys(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(r)n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}));i.push.apply(i,n)}return i}function _objectSpread(e){for(var r=1;r{"use strict";var n;function once(e){var r=false;return function(){if(r)return;r=true;e.apply(void 0,arguments)}}var a=i(7214).q,s=a.ERR_MISSING_ARGS,o=a.ERR_STREAM_DESTROYED;function noop(e){if(e)throw e}function isRequest(e){return e.setHeader&&typeof e.abort==="function"}function destroyer(e,r,a,s){s=once(s);var c=false;e.on("close",(function(){c=true}));if(n===undefined)n=i(6080);n(e,{readable:r,writable:a},(function(e){if(e)return s(e);c=true;s()}));var l=false;return function(r){if(c)return;if(l)return;l=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();s(r||new o("pipe"))}}function call(e){e()}function pipe(e,r){return e.pipe(r)}function popCallback(e){if(!e.length)return noop;if(typeof e[e.length-1]!=="function")return noop;return e.pop()}function pipeline(){for(var e=arguments.length,r=new Array(e),i=0;i0;return destroyer(e,s,c,(function(e){if(!a)a=e;if(e)o.forEach(call);if(s)return;o.forEach(call);n(a)}))}));return r.reduce(pipe)}e.exports=pipeline},9948:(e,r,i)=>{"use strict";var n=i(7214).q.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,r,i){return e.highWaterMark!=null?e.highWaterMark:r?e[i]:null}function getHighWaterMark(e,r,i,a){var s=highWaterMarkFrom(r,a,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=a?i:"highWaterMark";throw new n(o,s)}return Math.floor(s)}return e.objectMode?16:16*1024}e.exports={getHighWaterMark:getHighWaterMark}},2387:(e,r,i)=>{e.exports=i(2781)},1642:(e,r,i)=>{var n=i(2781);if(process.env.READABLE_STREAM==="disable"&&n){e.exports=n.Readable;Object.assign(e.exports,n);e.exports.Stream=n}else{r=e.exports=i(1433);r.Stream=n||r;r.Readable=r;r.Writable=i(6993);r.Duplex=i(1359);r.Transform=i(4415);r.PassThrough=i(1542);r.finished=i(6080);r.pipeline=i(6989)}},3515:(e,r,i)=>{"use strict";var{PassThrough:n}=i(2781);var a=i(8237)("retry-request");var s=i(8171);var o={objectMode:false,retries:2,maxRetryDelay:64,retryDelayMultiplier:2,totalTimeout:600,noResponseRetries:2,currentRetryAttempt:0,shouldRetryFn:function(e){var r=[[100,199],[429,429],[500,599]];var i=e.statusCode;a(`Response status: ${i}`);var n;while(n=r.shift()){if(i>=n[0]&&i<=n[1]){return true}}}};function retryRequest(e,r,c){var l=typeof arguments[arguments.length-1]!=="function";if(typeof r==="function"){c=r}var p=r&&typeof r.currentRetryAttempt==="number";r=s({},o,r);if(typeof r.request==="undefined"){try{r.request=i(8418)}catch(e){throw new Error("A request library must be provided to retry-request.")}}var d=r.currentRetryAttempt;var h=0;var g=false;var v;var y;var b;var x;var E={abort:function(){if(x&&x.abort){x.abort()}}};if(l){v=new n({objectMode:r.objectMode});v.abort=resetStreams}var w=Date.now();if(d>0){retryAfterDelay(d)}else{makeRequest()}if(l){return v}else{return E}function resetStreams(){b=null;if(y){y.abort&&y.abort();y.cancel&&y.cancel();if(y.destroy){y.destroy()}else if(y.end){y.end()}}}function makeRequest(){d++;a(`Current retry attempt: ${d}`);if(l){g=false;b=new n({objectMode:r.objectMode});y=r.request(e);setImmediate((function(){v.emit("request")}));y.on("error",(function(e){if(g){return}g=true;onResponse(e)})).on("response",(function(e,r){if(g){return}g=true;onResponse(null,e,r)})).on("complete",v.emit.bind(v,"complete"));y.pipe(b)}else{x=r.request(e,onResponse)}}function retryAfterDelay(e){if(l){resetStreams()}var i=getNextRetryDelay({maxRetryDelay:r.maxRetryDelay,retryDelayMultiplier:r.retryDelayMultiplier,retryNumber:e,timeOfFirstRequest:w,totalTimeout:r.totalTimeout});a(`Next retry delay: ${i}`);setTimeout(makeRequest,i)}function onResponse(e,i,n){if(e){h++;if(h<=r.noResponseRetries){retryAfterDelay(h)}else{if(l){v.emit("error",e);v.end()}else{c(e,i,n)}}return}var a=p?d:d-1;if(a{e.exports=i(6244)},6244:(e,r,i)=>{var n=i(5369);r.operation=function(e){var i=r.timeouts(e);return new n(i,{forever:e&&(e.forever||e.retries===Infinity),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};r.timeouts=function(e){if(e instanceof Array){return[].concat(e)}var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var i in e){r[i]=e[i]}if(r.minTimeout>r.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var n=[];for(var a=0;a{function RetryOperation(e,r){if(typeof r==="boolean"){r={forever:r}}this._originalTimeouts=JSON.parse(JSON.stringify(e));this._timeouts=e;this._options=r||{};this._maxRetryTime=r&&r.maxRetryTime||Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationTimeout=null;this._operationTimeoutCb=null;this._timeout=null;this._operationStart=null;this._timer=null;if(this._options.forever){this._cachedTimeouts=this._timeouts.slice(0)}}e.exports=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1;this._timeouts=this._originalTimeouts.slice(0)};RetryOperation.prototype.stop=function(){if(this._timeout){clearTimeout(this._timeout)}if(this._timer){clearTimeout(this._timer)}this._timeouts=[];this._cachedTimeouts=null};RetryOperation.prototype.retry=function(e){if(this._timeout){clearTimeout(this._timeout)}if(!e){return false}var r=(new Date).getTime();if(e&&r-this._operationStart>=this._maxRetryTime){this._errors.push(e);this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(e);var i=this._timeouts.shift();if(i===undefined){if(this._cachedTimeouts){this._errors.splice(0,this._errors.length-1);i=this._cachedTimeouts.slice(-1)}else{return false}}var n=this;this._timer=setTimeout((function(){n._attempts++;if(n._operationTimeoutCb){n._timeout=setTimeout((function(){n._operationTimeoutCb(n._attempts)}),n._operationTimeout);if(n._options.unref){n._timeout.unref()}}n._fn(n._attempts)}),i);if(this._options.unref){this._timer.unref()}return true};RetryOperation.prototype.attempt=function(e,r){this._fn=e;if(r){if(r.timeout){this._operationTimeout=r.timeout}if(r.cb){this._operationTimeoutCb=r.cb}}var i=this;if(this._operationTimeoutCb){this._timeout=setTimeout((function(){i._operationTimeoutCb()}),i._operationTimeout)}this._operationStart=(new Date).getTime();this._fn(this._attempts)};RetryOperation.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated");this.attempt(e)};RetryOperation.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated");this.attempt(e)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0){return null}var e={};var r=null;var i=0;for(var n=0;n=i){r=a;i=o}}return r}},4959:(e,r,i)=>{const n=i(9491);const a=i(1017);const s=i(7147);let o=undefined;try{o=i(1957)}catch(e){}const c={nosort:true,silent:true};let l=0;const p=process.platform==="win32";const defaults=e=>{const r=["unlink","chmod","stat","lstat","rmdir","readdir"];r.forEach((r=>{e[r]=e[r]||s[r];r=r+"Sync";e[r]=e[r]||s[r]}));e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||c};const rimraf=(e,r,i)=>{if(typeof r==="function"){i=r;r={}}n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n.equal(typeof i,"function","rimraf: callback function required");n(r,"rimraf: invalid options argument provided");n.equal(typeof r,"object","rimraf: options should be object");defaults(r);let a=0;let s=null;let c=0;const next=e=>{s=s||e;if(--c===0)i(s)};const afterGlob=(e,n)=>{if(e)return i(e);c=n.length;if(c===0)return i();n.forEach((e=>{const CB=i=>{if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&arimraf_(e,r,CB)),a*100)}if(i.code==="EMFILE"&&lrimraf_(e,r,CB)),l++)}if(i.code==="ENOENT")i=null}l=0;next(i)};rimraf_(e,r,CB)}))};if(r.disableGlob||!o.hasMagic(e))return afterGlob(null,[e]);r.lstat(e,((i,n)=>{if(!i)return afterGlob(null,[e]);o(e,r.glob,afterGlob)}))};const rimraf_=(e,r,i)=>{n(e);n(r);n(typeof i==="function");r.lstat(e,((n,a)=>{if(n&&n.code==="ENOENT")return i(null);if(n&&n.code==="EPERM"&&p)fixWinEPERM(e,r,n,i);if(a&&a.isDirectory())return rmdir(e,r,n,i);r.unlink(e,(n=>{if(n){if(n.code==="ENOENT")return i(null);if(n.code==="EPERM")return p?fixWinEPERM(e,r,n,i):rmdir(e,r,n,i);if(n.code==="EISDIR")return rmdir(e,r,n,i)}return i(n)}))}))};const fixWinEPERM=(e,r,i,a)=>{n(e);n(r);n(typeof a==="function");r.chmod(e,438,(n=>{if(n)a(n.code==="ENOENT"?null:i);else r.stat(e,((n,s)=>{if(n)a(n.code==="ENOENT"?null:i);else if(s.isDirectory())rmdir(e,r,i,a);else r.unlink(e,a)}))}))};const fixWinEPERMSync=(e,r,i)=>{n(e);n(r);try{r.chmodSync(e,438)}catch(e){if(e.code==="ENOENT")return;else throw i}let a;try{a=r.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw i}if(a.isDirectory())rmdirSync(e,r,i);else r.unlinkSync(e)};const rmdir=(e,r,i,a)=>{n(e);n(r);n(typeof a==="function");r.rmdir(e,(n=>{if(n&&(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"))rmkids(e,r,a);else if(n&&n.code==="ENOTDIR")a(i);else a(n)}))};const rmkids=(e,r,i)=>{n(e);n(r);n(typeof i==="function");r.readdir(e,((n,s)=>{if(n)return i(n);let o=s.length;if(o===0)return r.rmdir(e,i);let c;s.forEach((n=>{rimraf(a.join(e,n),r,(n=>{if(c)return;if(n)return i(c=n);if(--o===0)r.rmdir(e,i)}))}))}))};const rimrafSync=(e,r)=>{r=r||{};defaults(r);n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n(r,"rimraf: missing options");n.equal(typeof r,"object","rimraf: options should be object");let i;if(r.disableGlob||!o.hasMagic(e)){i=[e]}else{try{r.lstatSync(e);i=[e]}catch(n){i=o.sync(e,r.glob)}}if(!i.length)return;for(let e=0;e{n(e);n(r);try{r.rmdirSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw i;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")rmkidsSync(e,r)}};const rmkidsSync=(e,r)=>{n(e);n(r);r.readdirSync(e).forEach((i=>rimrafSync(a.join(e,i),r)));const i=p?100:1;let s=0;do{let n=true;try{const a=r.rmdirSync(e,r);n=false;return a}finally{if(++s{var n=i(4300);var a=n.Buffer;function copyProps(e,r){for(var i in e){r[i]=e[i]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){e.exports=n}else{copyProps(n,r);r.Buffer=SafeBuffer}function SafeBuffer(e,r,i){return a(e,r,i)}copyProps(a,SafeBuffer);SafeBuffer.from=function(e,r,i){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return a(e,r,i)};SafeBuffer.alloc=function(e,r,i){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=a(e);if(r!==undefined){if(typeof i==="string"){n.fill(r,i)}else{n.fill(r)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return a(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},1532:(e,r,i)=>{const n=Symbol("SemVer ANY");class Comparator{static get ANY(){return n}constructor(e,r){r=a(r);if(e instanceof Comparator){if(e.loose===!!r.loose){return e}else{e=e.value}}l("comparator",e,r);this.options=r;this.loose=!!r.loose;this.parse(e);if(this.semver===n){this.value=""}else{this.value=this.operator+this.semver.version}l("comp",this)}parse(e){const r=this.options.loose?s[o.COMPARATORLOOSE]:s[o.COMPARATOR];const i=e.match(r);if(!i){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=n}else{this.semver=new p(i[2],this.options.loose)}}toString(){return this.value}test(e){l("Comparator.test",e,this.options.loose);if(this.semver===n||e===n){return true}if(typeof e==="string"){try{e=new p(e,this.options)}catch(e){return false}}return c(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new d(e.value,r).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new d(this.value,r).test(e.semver)}const i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const n=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const a=this.semver.version===e.semver.version;const s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const o=c(this.semver,"<",e.semver,r)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const l=c(this.semver,">",e.semver,r)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||n||a&&s||o||l}}e.exports=Comparator;const a=i(785);const{re:s,t:o}=i(9523);const c=i(4359);const l=i(427);const p=i(8088);const d=i(9828)},9828:(e,r,i)=>{class Range{constructor(e,r){r=s(r);if(e instanceof Range){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease){return e}else{return new Range(e.raw,r)}}if(e instanceof o){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0)this.set=[e];else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const r=Object.keys(this.options).join(",");const i=`parseRange:${r}:${e}`;const n=a.get(i);if(n)return n;const s=this.options.loose;const l=s?p[d.HYPHENRANGELOOSE]:p[d.HYPHENRANGE];e=e.replace(l,hyphenReplace(this.options.includePrerelease));c("hyphen replace",e);e=e.replace(p[d.COMPARATORTRIM],h);c("comparator trim",e,p[d.COMPARATORTRIM]);e=e.replace(p[d.TILDETRIM],g);e=e.replace(p[d.CARETTRIM],v);e=e.split(/\s+/).join(" ");const y=s?p[d.COMPARATORLOOSE]:p[d.COMPARATOR];const b=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options))).filter(this.options.loose?e=>!!e.match(y):()=>true).map((e=>new o(e,this.options)));const x=b.length;const E=new Map;for(const e of b){if(isNullSet(e))return[e];E.set(e.value,e)}if(E.size>1&&E.has(""))E.delete("");const w=[...E.values()];a.set(i,w);return w}intersects(e,r){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((i=>isSatisfiable(i,r)&&e.set.some((e=>isSatisfiable(e,r)&&i.every((i=>e.every((e=>i.intersects(e,r)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new l(e,this.options)}catch(e){return false}}for(let r=0;re.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,r)=>{let i=true;const n=e.slice();let a=n.pop();while(i&&n.length){i=n.every((e=>a.intersects(e,r)));a=n.pop()}return i};const parseComparator=(e,r)=>{c("comp",e,r);e=replaceCarets(e,r);c("caret",e);e=replaceTildes(e,r);c("tildes",e);e=replaceXRanges(e,r);c("xrange",e);e=replaceStars(e,r);c("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,r)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,r))).join(" ");const replaceTilde=(e,r)=>{const i=r.loose?p[d.TILDELOOSE]:p[d.TILDE];return e.replace(i,((r,i,n,a,s)=>{c("tilde",e,r,i,n,a,s);let o;if(isX(i)){o=""}else if(isX(n)){o=`>=${i}.0.0 <${+i+1}.0.0-0`}else if(isX(a)){o=`>=${i}.${n}.0 <${i}.${+n+1}.0-0`}else if(s){c("replaceTilde pr",s);o=`>=${i}.${n}.${a}-${s} <${i}.${+n+1}.0-0`}else{o=`>=${i}.${n}.${a} <${i}.${+n+1}.0-0`}c("tilde return",o);return o}))};const replaceCarets=(e,r)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,r))).join(" ");const replaceCaret=(e,r)=>{c("caret",e,r);const i=r.loose?p[d.CARETLOOSE]:p[d.CARET];const n=r.includePrerelease?"-0":"";return e.replace(i,((r,i,a,s,o)=>{c("caret",e,r,i,a,s,o);let l;if(isX(i)){l=""}else if(isX(a)){l=`>=${i}.0.0${n} <${+i+1}.0.0-0`}else if(isX(s)){if(i==="0"){l=`>=${i}.${a}.0${n} <${i}.${+a+1}.0-0`}else{l=`>=${i}.${a}.0${n} <${+i+1}.0.0-0`}}else if(o){c("replaceCaret pr",o);if(i==="0"){if(a==="0"){l=`>=${i}.${a}.${s}-${o} <${i}.${a}.${+s+1}-0`}else{l=`>=${i}.${a}.${s}-${o} <${i}.${+a+1}.0-0`}}else{l=`>=${i}.${a}.${s}-${o} <${+i+1}.0.0-0`}}else{c("no pr");if(i==="0"){if(a==="0"){l=`>=${i}.${a}.${s}${n} <${i}.${a}.${+s+1}-0`}else{l=`>=${i}.${a}.${s}${n} <${i}.${+a+1}.0-0`}}else{l=`>=${i}.${a}.${s} <${+i+1}.0.0-0`}}c("caret return",l);return l}))};const replaceXRanges=(e,r)=>{c("replaceXRanges",e,r);return e.split(/\s+/).map((e=>replaceXRange(e,r))).join(" ")};const replaceXRange=(e,r)=>{e=e.trim();const i=r.loose?p[d.XRANGELOOSE]:p[d.XRANGE];return e.replace(i,((i,n,a,s,o,l)=>{c("xRange",e,i,n,a,s,o,l);const p=isX(a);const d=p||isX(s);const h=d||isX(o);const g=h;if(n==="="&&g){n=""}l=r.includePrerelease?"-0":"";if(p){if(n===">"||n==="<"){i="<0.0.0-0"}else{i="*"}}else if(n&&g){if(d){s=0}o=0;if(n===">"){n=">=";if(d){a=+a+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(d){a=+a+1}else{s=+s+1}}if(n==="<")l="-0";i=`${n+a}.${s}.${o}${l}`}else if(d){i=`>=${a}.0.0${l} <${+a+1}.0.0-0`}else if(h){i=`>=${a}.${s}.0${l} <${a}.${+s+1}.0-0`}c("xRange return",i);return i}))};const replaceStars=(e,r)=>{c("replaceStars",e,r);return e.trim().replace(p[d.STAR],"")};const replaceGTE0=(e,r)=>{c("replaceGTE0",e,r);return e.trim().replace(p[r.includePrerelease?d.GTE0PRE:d.GTE0],"")};const hyphenReplace=e=>(r,i,n,a,s,o,c,l,p,d,h,g,v)=>{if(isX(n)){i=""}else if(isX(a)){i=`>=${n}.0.0${e?"-0":""}`}else if(isX(s)){i=`>=${n}.${a}.0${e?"-0":""}`}else if(o){i=`>=${i}`}else{i=`>=${i}${e?"-0":""}`}if(isX(p)){l=""}else if(isX(d)){l=`<${+p+1}.0.0-0`}else if(isX(h)){l=`<${p}.${+d+1}.0-0`}else if(g){l=`<=${p}.${d}.${h}-${g}`}else if(e){l=`<${p}.${d}.${+h+1}-0`}else{l=`<=${l}`}return`${i} ${l}`.trim()};const testSet=(e,r,i)=>{for(let i=0;i0){const n=e[i].semver;if(n.major===r.major&&n.minor===r.minor&&n.patch===r.patch){return true}}}return false}return true}},8088:(e,r,i)=>{const n=i(427);const{MAX_LENGTH:a,MAX_SAFE_INTEGER:s}=i(2293);const{re:o,t:c}=i(9523);const l=i(785);const{compareIdentifiers:p}=i(2463);class SemVer{constructor(e,r){r=l(r);if(e instanceof SemVer){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid Version: ${e}`)}if(e.length>a){throw new TypeError(`version is longer than ${a} characters`)}n("SemVer",e,r);this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;const i=e.trim().match(r.loose?o[c.LOOSE]:o[c.FULL]);if(!i){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>s||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>s||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>s||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const r=+e;if(r>=0&&r=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(r){if(this.prerelease[0]===r){if(isNaN(this.prerelease[1])){this.prerelease=[r,0]}}else{this.prerelease=[r,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},8848:(e,r,i)=>{const n=i(5925);const clean=(e,r)=>{const i=n(e.trim().replace(/^[=v]+/,""),r);return i?i.version:null};e.exports=clean},4359:(e,r,i)=>{const n=i(1898);const a=i(6017);const s=i(4123);const o=i(5930);const c=i(194);const l=i(7520);const cmp=(e,r,i,p)=>{switch(r){case"===":if(typeof e==="object")e=e.version;if(typeof i==="object")i=i.version;return e===i;case"!==":if(typeof e==="object")e=e.version;if(typeof i==="object")i=i.version;return e!==i;case"":case"=":case"==":return n(e,i,p);case"!=":return a(e,i,p);case">":return s(e,i,p);case">=":return o(e,i,p);case"<":return c(e,i,p);case"<=":return l(e,i,p);default:throw new TypeError(`Invalid operator: ${r}`)}};e.exports=cmp},3466:(e,r,i)=>{const n=i(8088);const a=i(5925);const{re:s,t:o}=i(9523);const coerce=(e,r)=>{if(e instanceof n){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}r=r||{};let i=null;if(!r.rtl){i=e.match(s[o.COERCE])}else{let r;while((r=s[o.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length)){if(!i||r.index+r[0].length!==i.index+i[0].length){i=r}s[o.COERCERTL].lastIndex=r.index+r[1].length+r[2].length}s[o.COERCERTL].lastIndex=-1}if(i===null)return null;return a(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,r)};e.exports=coerce},2156:(e,r,i)=>{const n=i(8088);const compareBuild=(e,r,i)=>{const a=new n(e,i);const s=new n(r,i);return a.compare(s)||a.compareBuild(s)};e.exports=compareBuild},2804:(e,r,i)=>{const n=i(4309);const compareLoose=(e,r)=>n(e,r,true);e.exports=compareLoose},4309:(e,r,i)=>{const n=i(8088);const compare=(e,r,i)=>new n(e,i).compare(new n(r,i));e.exports=compare},4297:(e,r,i)=>{const n=i(5925);const a=i(1898);const diff=(e,r)=>{if(a(e,r)){return null}else{const i=n(e);const a=n(r);const s=i.prerelease.length||a.prerelease.length;const o=s?"pre":"";const c=s?"prerelease":"";for(const e in i){if(e==="major"||e==="minor"||e==="patch"){if(i[e]!==a[e]){return o+e}}}return c}};e.exports=diff},1898:(e,r,i)=>{const n=i(4309);const eq=(e,r,i)=>n(e,r,i)===0;e.exports=eq},4123:(e,r,i)=>{const n=i(4309);const gt=(e,r,i)=>n(e,r,i)>0;e.exports=gt},5930:(e,r,i)=>{const n=i(4309);const gte=(e,r,i)=>n(e,r,i)>=0;e.exports=gte},929:(e,r,i)=>{const n=i(8088);const inc=(e,r,i,a)=>{if(typeof i==="string"){a=i;i=undefined}try{return new n(e,i).inc(r,a).version}catch(e){return null}};e.exports=inc},194:(e,r,i)=>{const n=i(4309);const lt=(e,r,i)=>n(e,r,i)<0;e.exports=lt},7520:(e,r,i)=>{const n=i(4309);const lte=(e,r,i)=>n(e,r,i)<=0;e.exports=lte},6688:(e,r,i)=>{const n=i(8088);const major=(e,r)=>new n(e,r).major;e.exports=major},8447:(e,r,i)=>{const n=i(8088);const minor=(e,r)=>new n(e,r).minor;e.exports=minor},6017:(e,r,i)=>{const n=i(4309);const neq=(e,r,i)=>n(e,r,i)!==0;e.exports=neq},5925:(e,r,i)=>{const{MAX_LENGTH:n}=i(2293);const{re:a,t:s}=i(9523);const o=i(8088);const c=i(785);const parse=(e,r)=>{r=c(r);if(e instanceof o){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}const i=r.loose?a[s.LOOSE]:a[s.FULL];if(!i.test(e)){return null}try{return new o(e,r)}catch(e){return null}};e.exports=parse},2866:(e,r,i)=>{const n=i(8088);const patch=(e,r)=>new n(e,r).patch;e.exports=patch},4016:(e,r,i)=>{const n=i(5925);const prerelease=(e,r)=>{const i=n(e,r);return i&&i.prerelease.length?i.prerelease:null};e.exports=prerelease},6417:(e,r,i)=>{const n=i(4309);const rcompare=(e,r,i)=>n(r,e,i);e.exports=rcompare},8701:(e,r,i)=>{const n=i(2156);const rsort=(e,r)=>e.sort(((e,i)=>n(i,e,r)));e.exports=rsort},6055:(e,r,i)=>{const n=i(9828);const satisfies=(e,r,i)=>{try{r=new n(r,i)}catch(e){return false}return r.test(e)};e.exports=satisfies},1426:(e,r,i)=>{const n=i(2156);const sort=(e,r)=>e.sort(((e,i)=>n(e,i,r)));e.exports=sort},9601:(e,r,i)=>{const n=i(5925);const valid=(e,r)=>{const i=n(e,r);return i?i.version:null};e.exports=valid},1383:(e,r,i)=>{const n=i(9523);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i(2293).SEMVER_SPEC_VERSION,SemVer:i(8088),compareIdentifiers:i(2463).compareIdentifiers,rcompareIdentifiers:i(2463).rcompareIdentifiers,parse:i(5925),valid:i(9601),clean:i(8848),inc:i(929),diff:i(4297),major:i(6688),minor:i(8447),patch:i(2866),prerelease:i(4016),compare:i(4309),rcompare:i(6417),compareLoose:i(2804),compareBuild:i(2156),sort:i(1426),rsort:i(8701),gt:i(4123),lt:i(194),eq:i(1898),neq:i(6017),gte:i(5930),lte:i(7520),cmp:i(4359),coerce:i(3466),Comparator:i(1532),Range:i(9828),satisfies:i(6055),toComparators:i(2706),maxSatisfying:i(579),minSatisfying:i(832),minVersion:i(4179),validRange:i(1741),outside:i(420),gtr:i(9380),ltr:i(3323),intersects:i(7008),simplifyRange:i(5297),subset:i(7863)}},2293:e=>{const r="2.0.0";const i=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const a=16;e.exports={SEMVER_SPEC_VERSION:r,MAX_LENGTH:i,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:a}},427:e=>{const r=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r},2463:e=>{const r=/^[0-9]+$/;const compareIdentifiers=(e,i)=>{const n=r.test(e);const a=r.test(i);if(n&&a){e=+e;i=+i}return e===i?0:n&&!a?-1:a&&!n?1:ecompareIdentifiers(r,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},785:e=>{const r=["includePrerelease","loose","rtl"];const parseOptions=e=>!e?{}:typeof e!=="object"?{loose:true}:r.filter((r=>e[r])).reduce(((e,r)=>{e[r]=true;return e}),{});e.exports=parseOptions},9523:(e,r,i)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=i(2293);const a=i(427);r=e.exports={};const s=r.re=[];const o=r.src=[];const c=r.t={};let l=0;const createToken=(e,r,i)=>{const n=l++;a(n,r);c[e]=n;o[n]=r;s[n]=new RegExp(r,i?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${o[c.NUMERICIDENTIFIER]})\\.`+`(${o[c.NUMERICIDENTIFIER]})\\.`+`(${o[c.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${o[c.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[c.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[c.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${o[c.NUMERICIDENTIFIER]}|${o[c.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${o[c.NUMERICIDENTIFIERLOOSE]}|${o[c.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${o[c.PRERELEASEIDENTIFIER]}(?:\\.${o[c.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${o[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[c.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${o[c.BUILDIDENTIFIER]}(?:\\.${o[c.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${o[c.MAINVERSION]}${o[c.PRERELEASE]}?${o[c.BUILD]}?`);createToken("FULL",`^${o[c.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${o[c.MAINVERSIONLOOSE]}${o[c.PRERELEASELOOSE]}?${o[c.BUILD]}?`);createToken("LOOSE",`^${o[c.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${o[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${o[c.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${o[c.XRANGEIDENTIFIER]})`+`(?:\\.(${o[c.XRANGEIDENTIFIER]})`+`(?:\\.(${o[c.XRANGEIDENTIFIER]})`+`(?:${o[c.PRERELEASE]})?${o[c.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${o[c.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})`+`(?:${o[c.PRERELEASELOOSE]})?${o[c.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${n}})`+`(?:\\.(\\d{1,${n}}))?`+`(?:\\.(\\d{1,${n}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",o[c.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${o[c.LONETILDE]}\\s+`,true);r.tildeTrimReplace="$1~";createToken("TILDE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${o[c.LONECARET]}\\s+`,true);r.caretTrimReplace="$1^";createToken("CARET",`^${o[c.LONECARET]}${o[c.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${o[c.LONECARET]}${o[c.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${o[c.GTLT]}\\s*(${o[c.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]}|${o[c.XRANGEPLAIN]})`,true);r.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${o[c.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${o[c.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${o[c.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${o[c.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0.0.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},9380:(e,r,i)=>{const n=i(420);const gtr=(e,r,i)=>n(e,r,">",i);e.exports=gtr},7008:(e,r,i)=>{const n=i(9828);const intersects=(e,r,i)=>{e=new n(e,i);r=new n(r,i);return e.intersects(r)};e.exports=intersects},3323:(e,r,i)=>{const n=i(420);const ltr=(e,r,i)=>n(e,r,"<",i);e.exports=ltr},579:(e,r,i)=>{const n=i(8088);const a=i(9828);const maxSatisfying=(e,r,i)=>{let s=null;let o=null;let c=null;try{c=new a(r,i)}catch(e){return null}e.forEach((e=>{if(c.test(e)){if(!s||o.compare(e)===-1){s=e;o=new n(s,i)}}}));return s};e.exports=maxSatisfying},832:(e,r,i)=>{const n=i(8088);const a=i(9828);const minSatisfying=(e,r,i)=>{let s=null;let o=null;let c=null;try{c=new a(r,i)}catch(e){return null}e.forEach((e=>{if(c.test(e)){if(!s||o.compare(e)===1){s=e;o=new n(s,i)}}}));return s};e.exports=minSatisfying},4179:(e,r,i)=>{const n=i(8088);const a=i(9828);const s=i(4123);const minVersion=(e,r)=>{e=new a(e,r);let i=new n("0.0.0");if(e.test(i)){return i}i=new n("0.0.0-0");if(e.test(i)){return i}i=null;for(let r=0;r{const r=new n(e.semver.version);switch(e.operator){case">":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!o||s(r,o)){o=r}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(o&&(!i||s(i,o)))i=o}if(i&&e.test(i)){return i}return null};e.exports=minVersion},420:(e,r,i)=>{const n=i(8088);const a=i(1532);const{ANY:s}=a;const o=i(9828);const c=i(6055);const l=i(4123);const p=i(194);const d=i(7520);const h=i(5930);const outside=(e,r,i,g)=>{e=new n(e,g);r=new o(r,g);let v,y,b,x,E;switch(i){case">":v=l;y=d;b=p;x=">";E=">=";break;case"<":v=p;y=h;b=l;x="<";E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(c(e,r,g)){return false}for(let i=0;i{if(e.semver===s){e=new a(">=0.0.0")}o=o||e;c=c||e;if(v(e.semver,o.semver,g)){o=e}else if(b(e.semver,c.semver,g)){c=e}}));if(o.operator===x||o.operator===E){return false}if((!c.operator||c.operator===x)&&y(e,c.semver)){return false}else if(c.operator===E&&b(e,c.semver)){return false}}return true};e.exports=outside},5297:(e,r,i)=>{const n=i(6055);const a=i(4309);e.exports=(e,r,i)=>{const s=[];let o=null;let c=null;const l=e.sort(((e,r)=>a(e,r,i)));for(const e of l){const a=n(e,r,i);if(a){c=e;if(!o)o=e}else{if(c){s.push([o,c])}c=null;o=null}}if(o)s.push([o,null]);const p=[];for(const[e,r]of s){if(e===r)p.push(e);else if(!r&&e===l[0])p.push("*");else if(!r)p.push(`>=${e}`);else if(e===l[0])p.push(`<=${r}`);else p.push(`${e} - ${r}`)}const d=p.join(" || ");const h=typeof r.raw==="string"?r.raw:String(r);return d.length{const n=i(9828);const a=i(1532);const{ANY:s}=a;const o=i(6055);const c=i(4309);const subset=(e,r,i={})=>{if(e===r)return true;e=new n(e,i);r=new n(r,i);let a=false;e:for(const n of e.set){for(const e of r.set){const r=simpleSubset(n,e,i);a=a||r!==null;if(r)continue e}if(a)return false}return true};const simpleSubset=(e,r,i)=>{if(e===r)return true;if(e.length===1&&e[0].semver===s){if(r.length===1&&r[0].semver===s)return true;else if(i.includePrerelease)e=[new a(">=0.0.0-0")];else e=[new a(">=0.0.0")]}if(r.length===1&&r[0].semver===s){if(i.includePrerelease)return true;else r=[new a(">=0.0.0")]}const n=new Set;let l,p;for(const r of e){if(r.operator===">"||r.operator===">=")l=higherGT(l,r,i);else if(r.operator==="<"||r.operator==="<=")p=lowerLT(p,r,i);else n.add(r.semver)}if(n.size>1)return null;let d;if(l&&p){d=c(l.semver,p.semver,i);if(d>0)return null;else if(d===0&&(l.operator!==">="||p.operator!=="<="))return null}for(const e of n){if(l&&!o(e,String(l),i))return null;if(p&&!o(e,String(p),i))return null;for(const n of r){if(!o(e,String(n),i))return false}return true}let h,g;let v,y;let b=p&&!i.includePrerelease&&p.semver.prerelease.length?p.semver:false;let x=l&&!i.includePrerelease&&l.semver.prerelease.length?l.semver:false;if(b&&b.prerelease.length===1&&p.operator==="<"&&b.prerelease[0]===0){b=false}for(const e of r){y=y||e.operator===">"||e.operator===">=";v=v||e.operator==="<"||e.operator==="<=";if(l){if(x){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===x.major&&e.semver.minor===x.minor&&e.semver.patch===x.patch){x=false}}if(e.operator===">"||e.operator===">="){h=higherGT(l,e,i);if(h===e&&h!==l)return false}else if(l.operator===">="&&!o(l.semver,String(e),i))return false}if(p){if(b){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch){b=false}}if(e.operator==="<"||e.operator==="<="){g=lowerLT(p,e,i);if(g===e&&g!==p)return false}else if(p.operator==="<="&&!o(p.semver,String(e),i))return false}if(!e.operator&&(p||l)&&d!==0)return false}if(l&&v&&!p&&d!==0)return false;if(p&&y&&!l&&d!==0)return false;if(x||b)return false;return true};const higherGT=(e,r,i)=>{if(!e)return r;const n=c(e.semver,r.semver,i);return n>0?e:n<0?r:r.operator===">"&&e.operator===">="?r:e};const lowerLT=(e,r,i)=>{if(!e)return r;const n=c(e.semver,r.semver,i);return n<0?e:n>0?r:r.operator==="<"&&e.operator==="<="?r:e};e.exports=subset},2706:(e,r,i)=>{const n=i(9828);const toComparators=(e,r)=>new n(e,r).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},1741:(e,r,i)=>{const n=i(9828);const validRange=(e,r)=>{try{return new n(e,r).range||"*"}catch(e){return null}};e.exports=validRange},4931:(e,r,i)=>{var n=i(9491);var a=i(3710);var s=/^win/i.test(process.platform);var o=i(2361);if(typeof o!=="function"){o=o.EventEmitter}var c;if(process.__signal_exit_emitter__){c=process.__signal_exit_emitter__}else{c=process.__signal_exit_emitter__=new o;c.count=0;c.emitted={}}if(!c.infinite){c.setMaxListeners(Infinity);c.infinite=true}e.exports=function(e,r){n.equal(typeof e,"function","a callback must be provided for exit handler");if(p===false){load()}var i="exit";if(r&&r.alwaysLast){i="afterexit"}var remove=function(){c.removeListener(i,e);if(c.listeners("exit").length===0&&c.listeners("afterexit").length===0){unload()}};c.on(i,e);return remove};e.exports.unload=unload;function unload(){if(!p){return}p=false;a.forEach((function(e){try{process.removeListener(e,l[e])}catch(e){}}));process.emit=h;process.reallyExit=d;c.count-=1}function emit(e,r,i){if(c.emitted[e]){return}c.emitted[e]=true;c.emit(e,r,i)}var l={};a.forEach((function(e){l[e]=function listener(){var r=process.listeners(e);if(r.length===c.count){unload();emit("exit",null,e);emit("afterexit",null,e);if(s&&e==="SIGHUP"){e="SIGINT"}process.kill(process.pid,e)}}}));e.exports.signals=function(){return a};e.exports.load=load;var p=false;function load(){if(p){return}p=true;c.count+=1;a=a.filter((function(e){try{process.on(e,l[e]);return true}catch(e){return false}}));process.emit=processEmit;process.reallyExit=processReallyExit}var d=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);d.call(process,process.exitCode)}var h=process.emit;function processEmit(e,r){if(e==="exit"){if(r!==undefined){process.exitCode=r}var i=h.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return i}else{return h.apply(this,arguments)}}},3710:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},4480:e=>{e.exports=function walk(e){if(!e||typeof e!=="object")return e;if(isDate(e)||isRegex(e))return e;if(Array.isArray(e))return e.map(walk);return Object.keys(e).reduce((function(r,i){var n=i[0].toLowerCase()+i.slice(1).replace(/([A-Z]+)/g,(function(e,r){return"_"+r.toLowerCase()}));r[n]=walk(e[i]);return r}),{})};var isDate=function(e){return Object.prototype.toString.call(e)==="[object Date]"};var isRegex=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"}},9626:(e,r,i)=>{"use strict";var n=i(1099);function StreamEvents(e){e=e||this;var r={callthrough:true,calls:1};n(e,"_read",r,e.emit.bind(e,"reading"));n(e,"_write",r,e.emit.bind(e,"writing"));return e}e.exports=StreamEvents},6121:e=>{e.exports=shift;function shift(e){var r=e._readableState;if(!r)return null;return r.objectMode||typeof e._duplexState==="number"?e.read():e.read(getStateLength(r))}function getStateLength(e){if(e.buffer.length){if(e.buffer.head){return e.buffer.head.data.length}return e.buffer[0].length}return e.length}},4841:(e,r,i)=>{"use strict";var n=i(2279).Buffer;var a=n.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var r;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase();r=true}}}function normalizeEncoding(e){var r=_normalizeEncoding(e);if(typeof r!=="string"&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return r||e}r.s=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var r;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;r=4;break;case"utf8":this.fillLast=utf8FillLast;r=4;break;case"base64":this.text=base64Text;this.end=base64End;r=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=n.allocUnsafe(r)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var r;var i;if(this.lastNeed){r=this.fillLast(e);if(r===undefined)return"";i=this.lastNeed;this.lastNeed=0}else{i=0}if(i>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,r,i){var n=r.length-1;if(n=0){if(a>0)e.lastNeed=a-1;return a}if(--n=0){if(a>0)e.lastNeed=a-2;return a}if(--n=0){if(a>0){if(a===2)a=0;else e.lastNeed=a-3}return a}return 0}function utf8CheckExtraBytes(e,r,i){if((r[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&r.length>2){if((r[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var r=this.lastTotal-this.lastNeed;var i=utf8CheckExtraBytes(this,e,r);if(i!==undefined)return i;if(this.lastNeed<=e.length){e.copy(this.lastChar,r,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,r,0,e.length);this.lastNeed-=e.length}function utf8Text(e,r){var i=utf8CheckIncomplete(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=i;var n=e.length-(i-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",r,n)}function utf8End(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed)return r+"�";return r}function utf16Text(e,r){if((e.length-r)%2===0){var i=e.toString("utf16le",r);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return i.slice(0,-1)}}return i}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",r,e.length-1)}function utf16End(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,i)}return r}function base64Text(e,r){var i=(e.length-r)%3;if(i===0)return e.toString("base64",r);this.lastNeed=3-i;this.lastTotal=3;if(i===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",r,e.length-i)}function base64End(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed)return r+this.lastChar.toString("base64",0,3-this.lastNeed);return r}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},2279:(e,r,i)=>{ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ -var n=i(4300);var s=n.Buffer;function copyProps(e,r){for(var i in e){r[i]=e[i]}}if(s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow){e.exports=n}else{copyProps(n,r);r.Buffer=SafeBuffer}function SafeBuffer(e,r,i){return s(e,r,i)}SafeBuffer.prototype=Object.create(s.prototype);copyProps(s,SafeBuffer);SafeBuffer.from=function(e,r,i){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return s(e,r,i)};SafeBuffer.alloc=function(e,r,i){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=s(e);if(r!==undefined){if(typeof i==="string"){n.fill(r,i)}else{n.fill(r)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return s(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},1099:e=>{"use strict";e.exports=function stubs(e,r,i,n){if(!e||!r||!e[r])throw new Error("You must provide an object and a key for an existing method");if(!n){n=i;i={}}n=n||function(){};i.callthrough=i.callthrough||false;i.calls=i.calls||0;var s=i.calls===0;var a=e[r].bind(e);e[r]=function(){var o=[].slice.call(arguments);var c;if(i.callthrough)c=a.apply(e,o);c=n.apply(e,o)||c;if(!s&&--i.calls===0)e[r]=a;return c}}},9318:(e,r,i)=>{"use strict";const n=i(2037);const s=i(6224);const a=i(1621);const{env:o}=process;let c;if(a("no-color")||a("no-colors")||a("color=false")||a("color=never")){c=0}else if(a("color")||a("colors")||a("color=true")||a("color=always")){c=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){c=1}else if(o.FORCE_COLOR==="false"){c=0}else{c=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,r){if(c===0){return 0}if(a("color=16m")||a("color=full")||a("color=truecolor")){return 3}if(a("color=256")){return 2}if(e&&!r&&c===undefined){return 0}const i=c||0;if(o.TERM==="dumb"){return i}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||o.CI_NAME==="codeship"){return 1}return i}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return i}function getSupportLevel(e){const r=supportsColor(e,e&&e.isTTY);return translateLevel(r)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},4920:(e,r)=>{"use strict"; +var n=i(4300);var a=n.Buffer;function copyProps(e,r){for(var i in e){r[i]=e[i]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){e.exports=n}else{copyProps(n,r);r.Buffer=SafeBuffer}function SafeBuffer(e,r,i){return a(e,r,i)}SafeBuffer.prototype=Object.create(a.prototype);copyProps(a,SafeBuffer);SafeBuffer.from=function(e,r,i){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return a(e,r,i)};SafeBuffer.alloc=function(e,r,i){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=a(e);if(r!==undefined){if(typeof i==="string"){n.fill(r,i)}else{n.fill(r)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return a(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},1099:e=>{"use strict";e.exports=function stubs(e,r,i,n){if(!e||!r||!e[r])throw new Error("You must provide an object and a key for an existing method");if(!n){n=i;i={}}n=n||function(){};i.callthrough=i.callthrough||false;i.calls=i.calls||0;var a=i.calls===0;var s=e[r].bind(e);e[r]=function(){var o=[].slice.call(arguments);var c;if(i.callthrough)c=s.apply(e,o);c=n.apply(e,o)||c;if(!a&&--i.calls===0)e[r]=s;return c}}},9318:(e,r,i)=>{"use strict";const n=i(2037);const a=i(6224);const s=i(1621);const{env:o}=process;let c;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){c=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){c=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){c=1}else if(o.FORCE_COLOR==="false"){c=0}else{c=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,r){if(c===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!r&&c===undefined){return 0}const i=c||0;if(o.TERM==="dumb"){return i}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||o.CI_NAME==="codeship"){return 1}return i}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return i}function getSupportLevel(e){const r=supportsColor(e,e&&e.isTTY);return translateLevel(r)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,a.isatty(1))),stderr:translateLevel(supportsColor(true,a.isatty(2)))}},4920:(e,r)=>{"use strict"; /** * @license * Copyright 2020 Google LLC @@ -185,7 +179,7 @@ var n=i(4300);var s=n.Buffer;function copyProps(e,r){for(var i in e){r[i]=e[i]}} * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */Object.defineProperty(r,"__esModule",{value:true});r.getAgent=r.pool=void 0;const n=i(3685);const s=i(5687);const a=i(7310);r.pool=new Map;function getAgent(e,o){const c=e.startsWith("http://");const l=o.proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.HTTPS_PROXY||process.env.https_proxy;const p=Object.assign({},o.pool);if(l){const e=c?i(2049):i(7219);const r={...a.parse(l),...p};return new e(r)}let d=c?"http":"https";if(o.forever){d+=":forever";if(!r.pool.has(d)){const e=c?n.Agent:s.Agent;r.pool.set(d,new e({...p,keepAlive:true}))}}return r.pool.get(d)}r.getAgent=getAgent},6886:(e,r,i)=>{"use strict"; + */Object.defineProperty(r,"__esModule",{value:true});r.getAgent=r.pool=void 0;const n=i(3685);const a=i(5687);const s=i(7310);r.pool=new Map;function getAgent(e,o){const c=e.startsWith("http://");const l=o.proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.HTTPS_PROXY||process.env.https_proxy;const p=Object.assign({},o.pool);if(l){const e=c?i(2049):i(7219);const r={...s.parse(l),...p};return new e(r)}let d=c?"http":"https";if(o.forever){d+=":forever";if(!r.pool.has(d)){const e=c?n.Agent:a.Agent;r.pool.set(d,new e({...p,keepAlive:true}))}}return r.pool.get(d)}r.getAgent=getAgent},6886:(e,r,i)=>{"use strict"; /** * @license * Copyright 2018 Google LLC @@ -201,7 +195,7 @@ var n=i(4300);var s=n.Buffer;function copyProps(e,r){for(var i in e){r[i]=e[i]}} * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */Object.defineProperty(r,"__esModule",{value:true});r.teenyRequest=r.RequestError=void 0;const n=i(467);const s=i(2781);const a=i(5840);const o=i(446);const c=i(4920);const l=i(9626);class RequestError extends Error{}r.RequestError=RequestError;function requestToFetchOptions(e){const r={method:e.method||"GET",...e.timeout&&{timeout:e.timeout},...typeof e.gzip==="boolean"&&{compress:e.gzip}};if(typeof e.json==="object"){e.headers=e.headers||{};e.headers["Content-Type"]="application/json";r.body=JSON.stringify(e.json)}else{if(Buffer.isBuffer(e.body)){r.body=e.body}else if(typeof e.body!=="string"){r.body=JSON.stringify(e.body)}else{r.body=e.body}}r.headers=e.headers;let n=e.uri||e.url;if(!n){throw new Error("Missing uri or url in reqOpts.")}if(e.useQuerystring===true||typeof e.qs==="object"){const r=i(3477);const s=r.stringify(e.qs);n=n+"?"+s}r.agent=o.getAgent(n,e);return{uri:n,options:r}}function fetchToRequestResponse(e,r){const i={};i.agent=e.agent||false;i.headers=e.headers||{};i.href=r.url;const n={};r.headers.forEach(((e,r)=>n[r]=e));const s=Object.assign(r.body,{statusCode:r.status,statusMessage:r.statusText,request:i,body:r.body,headers:n,toJSON:()=>({headers:n})});return s}function createMultipartStream(e,r){const i=`--${e}--`;const n=new s.PassThrough;for(const s of r){const r=`--${e}\r\nContent-Type: ${s["Content-Type"]}\r\n\r\n`;n.write(r);if(typeof s.body==="string"){n.write(s.body);n.write("\r\n")}else{s.body.pipe(n,{end:false});s.body.on("end",(()=>{n.write("\r\n");n.write(i);n.end()}))}}return n}function teenyRequest(e,r){const{uri:i,options:o}=requestToFetchOptions(e);const c=e.multipart;if(e.multipart&&c.length===2){if(!r){throw new Error("Multipart without callback is not implemented.")}const e=a.v4();o.headers["Content-Type"]=`multipart/related; boundary=${e}`;o.body=createMultipartStream(e,c);teenyRequest.stats.requestStarting();n.default(i,o).then((e=>{teenyRequest.stats.requestFinished();const i=e.headers.get("content-type");const n=fetchToRequestResponse(o,e);const s=n.body;if(i==="application/json"||i==="application/json; charset=utf-8"){e.json().then((e=>{n.body=e;r(null,n,e)}),(e=>{r(e,n,s)}));return}e.text().then((e=>{n.body=e;r(null,n,e)}),(e=>{r(e,n,s)}))}),(e=>{teenyRequest.stats.requestFinished();r(e,null,null)}));return}if(r===undefined){const e=l(new s.PassThrough);let r;e.once("reading",(()=>{if(r){r.pipe(e)}else{e.once("response",(()=>{r.pipe(e)}))}}));o.compress=false;teenyRequest.stats.requestStarting();n.default(i,o).then((i=>{teenyRequest.stats.requestFinished();r=i.body;r.on("error",(r=>{e.emit("error",r)}));const n=fetchToRequestResponse(o,i);e.emit("response",n)}),(r=>{teenyRequest.stats.requestFinished();e.emit("error",r)}));return e}teenyRequest.stats.requestStarting();n.default(i,o).then((e=>{teenyRequest.stats.requestFinished();const i=e.headers.get("content-type");const n=fetchToRequestResponse(o,e);const s=n.body;if(i==="application/json"||i==="application/json; charset=utf-8"){if(n.statusCode===204){r(null,n,s);return}e.json().then((e=>{n.body=e;r(null,n,e)}),(e=>{r(e,n,s)}));return}e.text().then((i=>{const n=fetchToRequestResponse(o,e);n.body=i;r(null,n,i)}),(e=>{r(e,n,s)}))}),(e=>{teenyRequest.stats.requestFinished();r(e,null,null)}));return}r.teenyRequest=teenyRequest;teenyRequest.defaults=e=>(r,i)=>{const n={...e,...r};if(i===undefined){return teenyRequest(n)}teenyRequest(n,i)};teenyRequest.stats=new c.TeenyStatistics;teenyRequest.resetStats=()=>{teenyRequest.stats=new c.TeenyStatistics(teenyRequest.stats.getOptions())}},1178:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function once(e,r,{signal:i}={}){return new Promise(((n,s)=>{function cleanup(){i===null||i===void 0?void 0:i.removeEventListener("abort",cleanup);e.removeListener(r,onEvent);e.removeListener("error",onError)}function onEvent(...e){cleanup();n(e)}function onError(e){cleanup();s(e)}i===null||i===void 0?void 0:i.addEventListener("abort",cleanup);e.on(r,onEvent);e.on("error",onError)}))}r["default"]=once},8949:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const a=s(i(1808));const o=s(i(4404));const c=s(i(7310));const l=s(i(8237));const p=s(i(1178));const d=i(9690);const h=(0,l.default)("http-proxy-agent");function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}class HttpProxyAgent extends d.Agent{constructor(e){let r;if(typeof e==="string"){r=c.default.parse(e)}else{r=e}if(!r){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}h("Creating new HttpProxyAgent instance: %o",r);super(r);const i=Object.assign({},r);this.secureProxy=r.secureProxy||isHTTPS(i.protocol);i.host=i.hostname||i.host;if(typeof i.port==="string"){i.port=parseInt(i.port,10)}if(!i.port&&i.host){i.port=this.secureProxy?443:80}if(i.host&&i.path){delete i.path;delete i.pathname}this.proxy=i}callback(e,r){return n(this,void 0,void 0,(function*(){const{proxy:i,secureProxy:n}=this;const s=c.default.parse(e.path);if(!s.protocol){s.protocol="http:"}if(!s.hostname){s.hostname=r.hostname||r.host||null}if(s.port==null&&typeof r.port){s.port=String(r.port)}if(s.port==="80"){s.port=""}e.path=c.default.format(s);if(i.auth){e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(i.auth).toString("base64")}`)}let l;if(n){h("Creating `tls.Socket`: %o",i);l=o.default.connect(i)}else{h("Creating `net.Socket`: %o",i);l=a.default.connect(i)}if(e._header){let r;let i;h("Regenerating stored HTTP header string for request");e._header=null;e._implicitHeader();if(e.output&&e.output.length>0){h("Patching connection write() output buffer with updated header");r=e.output[0];i=r.indexOf("\r\n\r\n")+4;e.output[0]=e._header+r.substring(i);h("Output buffer: %o",e.output)}else if(e.outputData&&e.outputData.length>0){h("Patching connection write() output buffer with updated header");r=e.outputData[0].data;i=r.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+r.substring(i);h("Output buffer: %o",e.outputData[0].data)}}yield(0,p.default)(l,"connect");return l}))}}r["default"]=HttpProxyAgent},2049:function(e,r,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const s=n(i(8949));function createHttpProxyAgent(e){return new s.default(e)}(function(e){e.HttpProxyAgent=s.default;e.prototype=s.default.prototype})(createHttpProxyAgent||(createHttpProxyAgent={}));e.exports=createHttpProxyAgent},8065:(e,r,i)=>{"use strict";const{promisify:n}=i(3837);const s=i(8517);e.exports.fileSync=s.fileSync;const a=n(((e,r)=>s.file(e,((e,i,s,a)=>e?r(e):r(undefined,{path:i,fd:s,cleanup:n(a)})))));e.exports.file=async e=>a(e);e.exports.withFile=async function withFile(r,i){const{path:n,fd:s,cleanup:a}=await e.exports.file(i);try{return await r({path:n,fd:s})}finally{await a()}};e.exports.dirSync=s.dirSync;const o=n(((e,r)=>s.dir(e,((e,i,s)=>e?r(e):r(undefined,{path:i,cleanup:n(s)})))));e.exports.dir=async e=>o(e);e.exports.withDir=async function withDir(r,i){const{path:n,cleanup:s}=await e.exports.dir(i);try{return await r({path:n})}finally{await s()}};e.exports.tmpNameSync=s.tmpNameSync;e.exports.tmpName=n(s.tmpName);e.exports.tmpdir=s.tmpdir;e.exports.setGracefulCleanup=s.setGracefulCleanup},8517:(e,r,i)=>{ + */Object.defineProperty(r,"__esModule",{value:true});r.teenyRequest=r.RequestError=void 0;const n=i(467);const a=i(2781);const s=i(5840);const o=i(446);const c=i(4920);const l=i(9626);class RequestError extends Error{}r.RequestError=RequestError;function requestToFetchOptions(e){const r={method:e.method||"GET",...e.timeout&&{timeout:e.timeout},...typeof e.gzip==="boolean"&&{compress:e.gzip}};if(typeof e.json==="object"){e.headers=e.headers||{};e.headers["Content-Type"]="application/json";r.body=JSON.stringify(e.json)}else{if(Buffer.isBuffer(e.body)){r.body=e.body}else if(typeof e.body!=="string"){r.body=JSON.stringify(e.body)}else{r.body=e.body}}r.headers=e.headers;let n=e.uri||e.url;if(!n){throw new Error("Missing uri or url in reqOpts.")}if(e.useQuerystring===true||typeof e.qs==="object"){const r=i(3477);const a=r.stringify(e.qs);n=n+"?"+a}r.agent=o.getAgent(n,e);return{uri:n,options:r}}function fetchToRequestResponse(e,r){const i={};i.agent=e.agent||false;i.headers=e.headers||{};i.href=r.url;const n={};r.headers.forEach(((e,r)=>n[r]=e));const a=Object.assign(r.body,{statusCode:r.status,statusMessage:r.statusText,request:i,body:r.body,headers:n,toJSON:()=>({headers:n})});return a}function createMultipartStream(e,r){const i=`--${e}--`;const n=new a.PassThrough;for(const a of r){const r=`--${e}\r\nContent-Type: ${a["Content-Type"]}\r\n\r\n`;n.write(r);if(typeof a.body==="string"){n.write(a.body);n.write("\r\n")}else{a.body.pipe(n,{end:false});a.body.on("end",(()=>{n.write("\r\n");n.write(i);n.end()}))}}return n}function teenyRequest(e,r){const{uri:i,options:o}=requestToFetchOptions(e);const c=e.multipart;if(e.multipart&&c.length===2){if(!r){throw new Error("Multipart without callback is not implemented.")}const e=s.v4();o.headers["Content-Type"]=`multipart/related; boundary=${e}`;o.body=createMultipartStream(e,c);teenyRequest.stats.requestStarting();n.default(i,o).then((e=>{teenyRequest.stats.requestFinished();const i=e.headers.get("content-type");const n=fetchToRequestResponse(o,e);const a=n.body;if(i==="application/json"||i==="application/json; charset=utf-8"){e.json().then((e=>{n.body=e;r(null,n,e)}),(e=>{r(e,n,a)}));return}e.text().then((e=>{n.body=e;r(null,n,e)}),(e=>{r(e,n,a)}))}),(e=>{teenyRequest.stats.requestFinished();r(e,null,null)}));return}if(r===undefined){const e=l(new a.PassThrough);let r;e.once("reading",(()=>{if(r){r.pipe(e)}else{e.once("response",(()=>{r.pipe(e)}))}}));o.compress=false;teenyRequest.stats.requestStarting();n.default(i,o).then((i=>{teenyRequest.stats.requestFinished();r=i.body;r.on("error",(r=>{e.emit("error",r)}));const n=fetchToRequestResponse(o,i);e.emit("response",n)}),(r=>{teenyRequest.stats.requestFinished();e.emit("error",r)}));return e}teenyRequest.stats.requestStarting();n.default(i,o).then((e=>{teenyRequest.stats.requestFinished();const i=e.headers.get("content-type");const n=fetchToRequestResponse(o,e);const a=n.body;if(i==="application/json"||i==="application/json; charset=utf-8"){if(n.statusCode===204){r(null,n,a);return}e.json().then((e=>{n.body=e;r(null,n,e)}),(e=>{r(e,n,a)}));return}e.text().then((i=>{const n=fetchToRequestResponse(o,e);n.body=i;r(null,n,i)}),(e=>{r(e,n,a)}))}),(e=>{teenyRequest.stats.requestFinished();r(e,null,null)}));return}r.teenyRequest=teenyRequest;teenyRequest.defaults=e=>(r,i)=>{const n={...e,...r};if(i===undefined){return teenyRequest(n)}teenyRequest(n,i)};teenyRequest.stats=new c.TeenyStatistics;teenyRequest.resetStats=()=>{teenyRequest.stats=new c.TeenyStatistics(teenyRequest.stats.getOptions())}},1178:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function once(e,r,{signal:i}={}){return new Promise(((n,a)=>{function cleanup(){i===null||i===void 0?void 0:i.removeEventListener("abort",cleanup);e.removeListener(r,onEvent);e.removeListener("error",onError)}function onEvent(...e){cleanup();n(e)}function onError(e){cleanup();a(e)}i===null||i===void 0?void 0:i.addEventListener("abort",cleanup);e.on(r,onEvent);e.on("error",onError)}))}r["default"]=once},8949:function(e,r,i){"use strict";var n=this&&this.__awaiter||function(e,r,i,n){function adopt(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,r||[])).next())}))};var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const s=a(i(1808));const o=a(i(4404));const c=a(i(7310));const l=a(i(8237));const p=a(i(1178));const d=i(9690);const h=(0,l.default)("http-proxy-agent");function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}class HttpProxyAgent extends d.Agent{constructor(e){let r;if(typeof e==="string"){r=c.default.parse(e)}else{r=e}if(!r){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}h("Creating new HttpProxyAgent instance: %o",r);super(r);const i=Object.assign({},r);this.secureProxy=r.secureProxy||isHTTPS(i.protocol);i.host=i.hostname||i.host;if(typeof i.port==="string"){i.port=parseInt(i.port,10)}if(!i.port&&i.host){i.port=this.secureProxy?443:80}if(i.host&&i.path){delete i.path;delete i.pathname}this.proxy=i}callback(e,r){return n(this,void 0,void 0,(function*(){const{proxy:i,secureProxy:n}=this;const a=c.default.parse(e.path);if(!a.protocol){a.protocol="http:"}if(!a.hostname){a.hostname=r.hostname||r.host||null}if(a.port==null&&typeof r.port){a.port=String(r.port)}if(a.port==="80"){a.port=""}e.path=c.default.format(a);if(i.auth){e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(i.auth).toString("base64")}`)}let l;if(n){h("Creating `tls.Socket`: %o",i);l=o.default.connect(i)}else{h("Creating `net.Socket`: %o",i);l=s.default.connect(i)}if(e._header){let r;let i;h("Regenerating stored HTTP header string for request");e._header=null;e._implicitHeader();if(e.output&&e.output.length>0){h("Patching connection write() output buffer with updated header");r=e.output[0];i=r.indexOf("\r\n\r\n")+4;e.output[0]=e._header+r.substring(i);h("Output buffer: %o",e.output)}else if(e.outputData&&e.outputData.length>0){h("Patching connection write() output buffer with updated header");r=e.outputData[0].data;i=r.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+r.substring(i);h("Output buffer: %o",e.outputData[0].data)}}yield(0,p.default)(l,"connect");return l}))}}r["default"]=HttpProxyAgent},2049:function(e,r,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=n(i(8949));function createHttpProxyAgent(e){return new a.default(e)}(function(e){e.HttpProxyAgent=a.default;e.prototype=a.default.prototype})(createHttpProxyAgent||(createHttpProxyAgent={}));e.exports=createHttpProxyAgent},8065:(e,r,i)=>{"use strict";const{promisify:n}=i(3837);const a=i(8517);e.exports.fileSync=a.fileSync;const s=n(((e,r)=>a.file(e,((e,i,a,s)=>e?r(e):r(undefined,{path:i,fd:a,cleanup:n(s)})))));e.exports.file=async e=>s(e);e.exports.withFile=async function withFile(r,i){const{path:n,fd:a,cleanup:s}=await e.exports.file(i);try{return await r({path:n,fd:a})}finally{await s()}};e.exports.dirSync=a.dirSync;const o=n(((e,r)=>a.dir(e,((e,i,a)=>e?r(e):r(undefined,{path:i,cleanup:n(a)})))));e.exports.dir=async e=>o(e);e.exports.withDir=async function withDir(r,i){const{path:n,cleanup:a}=await e.exports.dir(i);try{return await r({path:n})}finally{await a()}};e.exports.tmpNameSync=a.tmpNameSync;e.exports.tmpName=n(a.tmpName);e.exports.tmpdir=a.tmpdir;e.exports.setGracefulCleanup=a.setGracefulCleanup},8517:(e,r,i)=>{ /*! * Tmp * @@ -209,4 +203,4 @@ var n=i(4300);var s=n.Buffer;function copyProps(e,r){for(var i in e){r[i]=e[i]}} * * MIT Licensed */ -const n=i(7147);const s=i(2037);const a=i(1017);const o=i(6113);const c={fs:n.constants,os:s.constants};const l=i(4959);const p="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",d=/XXXXXX/,h=3,g=(c.O_CREAT||c.fs.O_CREAT)|(c.O_EXCL||c.fs.O_EXCL)|(c.O_RDWR||c.fs.O_RDWR),v=s.platform()==="win32",y=c.EBADF||c.os.errno.EBADF,b=c.ENOENT||c.os.errno.ENOENT,E=448,x=384,w="exit",T=[],_=n.rmdirSync.bind(n),C=l.sync;let R=false;function tmpName(e,r){const i=_parseArguments(e,r),s=i[0],a=i[1];try{_assertAndSanitizeOptions(s)}catch(e){return a(e)}let o=s.tries;(function _getUniqueName(){try{const e=_generateTmpName(s);n.stat(e,(function(r){if(!r){if(o-- >0)return _getUniqueName();return a(new Error("Could not get a unique tmp filename, max tries reached "+e))}a(null,e)}))}catch(e){a(e)}})()}function tmpNameSync(e){const r=_parseArguments(e),i=r[0];_assertAndSanitizeOptions(i);let s=i.tries;do{const e=_generateTmpName(i);try{n.statSync(e)}catch(r){return e}}while(s-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,r){const i=_parseArguments(e,r),s=i[0],a=i[1];tmpName(s,(function _tmpNameCreated(e,r){if(e)return a(e);n.open(r,g,s.mode||x,(function _fileCreated(e,i){if(e)return a(e);if(s.discardDescriptor){return n.close(i,(function _discardCallback(e){return a(e,r,undefined,_prepareTmpFileRemoveCallback(r,-1,s,false))}))}else{const e=s.discardDescriptor||s.detachDescriptor;a(null,r,i,_prepareTmpFileRemoveCallback(r,e?-1:i,s,false))}}))}))}function fileSync(e){const r=_parseArguments(e),i=r[0];const s=i.discardDescriptor||i.detachDescriptor;const a=tmpNameSync(i);var o=n.openSync(a,g,i.mode||x);if(i.discardDescriptor){n.closeSync(o);o=undefined}return{name:a,fd:o,removeCallback:_prepareTmpFileRemoveCallback(a,s?-1:o,i,true)}}function dir(e,r){const i=_parseArguments(e,r),s=i[0],a=i[1];tmpName(s,(function _tmpNameCreated(e,r){if(e)return a(e);n.mkdir(r,s.mode||E,(function _dirCreated(e){if(e)return a(e);a(null,r,_prepareTmpDirRemoveCallback(r,s,false))}))}))}function dirSync(e){const r=_parseArguments(e),i=r[0];const s=tmpNameSync(i);n.mkdirSync(s,i.mode||E);return{name:s,removeCallback:_prepareTmpDirRemoveCallback(s,i,true)}}function _removeFileAsync(e,r){const _handler=function(e){if(e&&!_isENOENT(e)){return r(e)}r()};if(0<=e[0])n.close(e[0],(function(){n.unlink(e[1],_handler)}));else n.unlink(e[1],_handler)}function _removeFileSync(e){let r=null;try{if(0<=e[0])n.closeSync(e[0])}catch(e){if(!_isEBADF(e)&&!_isENOENT(e))throw e}finally{try{n.unlinkSync(e[1])}catch(e){if(!_isENOENT(e))r=e}}if(r!==null){throw r}}function _prepareTmpFileRemoveCallback(e,r,i,n){const s=_prepareRemoveCallback(_removeFileSync,[r,e],n);const a=_prepareRemoveCallback(_removeFileAsync,[r,e],n,s);if(!i.keep)T.unshift(s);return n?s:a}function _prepareTmpDirRemoveCallback(e,r,i){const s=r.unsafeCleanup?l:n.rmdir.bind(n);const a=r.unsafeCleanup?C:_;const o=_prepareRemoveCallback(a,e,i);const c=_prepareRemoveCallback(s,e,i,o);if(!r.keep)T.unshift(o);return i?o:c}function _prepareRemoveCallback(e,r,i,n){let s=false;return function _cleanupCallback(a){if(!s){const o=n||_cleanupCallback;const c=T.indexOf(o);if(c>=0)T.splice(c,1);s=true;if(i||e===_||e===C){return e(r)}else{return e(r,a||function(){})}}}}function _garbageCollector(){if(!R)return;while(T.length){try{T[0]()}catch(e){}}}function _randomChars(e){let r=[],i=null;try{i=o.randomBytes(e)}catch(r){i=o.pseudoRandomBytes(e)}for(var n=0;n{e.exports=i(4219)},4219:(e,r,i)=>{"use strict";var n=i(1808);var s=i(4404);var a=i(3685);var o=i(5687);var c=i(2361);var l=i(9491);var p=i(3837);r.httpOverHttp=httpOverHttp;r.httpsOverHttp=httpsOverHttp;r.httpOverHttps=httpOverHttps;r.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var r=new TunnelingAgent(e);r.request=a.request;return r}function httpsOverHttp(e){var r=new TunnelingAgent(e);r.request=a.request;r.createSocket=createSecureSocket;r.defaultPort=443;return r}function httpOverHttps(e){var r=new TunnelingAgent(e);r.request=o.request;return r}function httpsOverHttps(e){var r=new TunnelingAgent(e);r.request=o.request;r.createSocket=createSecureSocket;r.defaultPort=443;return r}function TunnelingAgent(e){var r=this;r.options=e||{};r.proxyOptions=r.options.proxy||{};r.maxSockets=r.options.maxSockets||a.Agent.defaultMaxSockets;r.requests=[];r.sockets=[];r.on("free",(function onFree(e,i,n,s){var a=toOptions(i,n,s);for(var o=0,c=r.requests.length;o=this.maxSockets){s.requests.push(a);return}s.createSocket(a,(function(r){r.on("free",onFree);r.on("close",onCloseOrRemove);r.on("agentRemove",onCloseOrRemove);e.onSocket(r);function onFree(){s.emit("free",r,a)}function onCloseOrRemove(e){s.removeSocket(r);r.removeListener("free",onFree);r.removeListener("close",onCloseOrRemove);r.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,r){var i=this;var n={};i.sockets.push(n);var s=mergeOptions({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){s.localAddress=e.localAddress}if(s.proxyAuth){s.headers=s.headers||{};s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")}d("making CONNECT request");var a=i.request(s);a.useChunkedEncodingByDefault=false;a.once("response",onResponse);a.once("upgrade",onUpgrade);a.once("connect",onConnect);a.once("error",onError);a.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,r,i){process.nextTick((function(){onConnect(e,r,i)}))}function onConnect(s,o,c){a.removeAllListeners();o.removeAllListeners();if(s.statusCode!==200){d("tunneling socket could not be established, statusCode=%d",s.statusCode);o.destroy();var l=new Error("tunneling socket could not be established, "+"statusCode="+s.statusCode);l.code="ECONNRESET";e.request.emit("error",l);i.removeSocket(n);return}if(c.length>0){d("got illegal response body from proxy");o.destroy();var l=new Error("got illegal response body from proxy");l.code="ECONNRESET";e.request.emit("error",l);i.removeSocket(n);return}d("tunneling connection has established");i.sockets[i.sockets.indexOf(n)]=o;return r(o)}function onError(r){a.removeAllListeners();d("tunneling socket could not be established, cause=%s\n",r.message,r.stack);var s=new Error("tunneling socket could not be established, "+"cause="+r.message);s.code="ECONNRESET";e.request.emit("error",s);i.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var r=this.sockets.indexOf(e);if(r===-1){return}this.sockets.splice(r,1);var i=this.requests.shift();if(i){this.createSocket(i,(function(e){i.request.onSocket(e)}))}};function createSecureSocket(e,r){var i=this;TunnelingAgent.prototype.createSocket.call(i,e,(function(n){var a=e.request.getHeader("host");var o=mergeOptions({},i.options,{socket:n,servername:a?a.replace(/:.*$/,""):e.host});var c=s.connect(0,o);i.sockets[i.sockets.indexOf(n)]=c;r(c)}))}function toOptions(e,r,i){if(typeof e==="string"){return{host:e,port:r,localAddress:i}}return e}function mergeOptions(e){for(var r=1,i=arguments.length;r{var n=i(657).strict;e.exports=function typedarrayToBuffer(e){if(n(e)){var r=Buffer.from(e.buffer);if(e.byteLength!==e.buffer.byteLength){r=r.slice(e.byteOffset,e.byteOffset+e.byteLength)}return r}else{return Buffer.from(e)}}},5184:(e,r,i)=>{"use strict";const n=i(7332);e.exports=()=>n(32)},5030:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}r.getUserAgent=getUserAgent},7127:(e,r,i)=>{e.exports=i(3837).deprecate},5840:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(r,"v3",{enumerable:true,get:function(){return s.default}});Object.defineProperty(r,"v4",{enumerable:true,get:function(){return a.default}});Object.defineProperty(r,"v5",{enumerable:true,get:function(){return o.default}});Object.defineProperty(r,"NIL",{enumerable:true,get:function(){return c.default}});Object.defineProperty(r,"version",{enumerable:true,get:function(){return l.default}});Object.defineProperty(r,"validate",{enumerable:true,get:function(){return p.default}});Object.defineProperty(r,"stringify",{enumerable:true,get:function(){return d.default}});Object.defineProperty(r,"parse",{enumerable:true,get:function(){return h.default}});var n=_interopRequireDefault(i(8628));var s=_interopRequireDefault(i(6409));var a=_interopRequireDefault(i(5122));var o=_interopRequireDefault(i(9120));var c=_interopRequireDefault(i(5350));var l=_interopRequireDefault(i(1595));var p=_interopRequireDefault(i(6900));var d=_interopRequireDefault(i(8950));var h=_interopRequireDefault(i(2746));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},4569:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var s=md5;r["default"]=s},5350:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var i="00000000-0000-0000-0000-000000000000";r["default"]=i},2746:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(6900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let r;const i=new Uint8Array(16);i[0]=(r=parseInt(e.slice(0,8),16))>>>24;i[1]=r>>>16&255;i[2]=r>>>8&255;i[3]=r&255;i[4]=(r=parseInt(e.slice(9,13),16))>>>8;i[5]=r&255;i[6]=(r=parseInt(e.slice(14,18),16))>>>8;i[7]=r&255;i[8]=(r=parseInt(e.slice(19,23),16))>>>8;i[9]=r&255;i[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255;i[11]=r/4294967296&255;i[12]=r>>>24&255;i[13]=r>>>16&255;i[14]=r>>>8&255;i[15]=r&255;return i}var s=parse;r["default"]=s},814:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;r["default"]=i},807:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=rng;var n=_interopRequireDefault(i(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=new Uint8Array(256);let a=s.length;function rng(){if(a>s.length-16){n.default.randomFillSync(s);a=0}return s.slice(a,a+=16)}},5274:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var s=sha1;r["default"]=s},8950:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(6900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function stringify(e,r=0){const i=(s[e[r+0]]+s[e[r+1]]+s[e[r+2]]+s[e[r+3]]+"-"+s[e[r+4]]+s[e[r+5]]+"-"+s[e[r+6]]+s[e[r+7]]+"-"+s[e[r+8]]+s[e[r+9]]+"-"+s[e[r+10]]+s[e[r+11]]+s[e[r+12]]+s[e[r+13]]+s[e[r+14]]+s[e[r+15]]).toLowerCase();if(!(0,n.default)(i)){throw TypeError("Stringified UUID is invalid")}return i}var a=stringify;r["default"]=a},8628:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(807));var s=_interopRequireDefault(i(8950));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let a;let o;let c=0;let l=0;function v1(e,r,i){let p=r&&i||0;const d=r||new Array(16);e=e||{};let h=e.node||a;let g=e.clockseq!==undefined?e.clockseq:o;if(h==null||g==null){const r=e.random||(e.rng||n.default)();if(h==null){h=a=[r[0]|1,r[1],r[2],r[3],r[4],r[5]]}if(g==null){g=o=(r[6]<<8|r[7])&16383}}let v=e.msecs!==undefined?e.msecs:Date.now();let y=e.nsecs!==undefined?e.nsecs:l+1;const b=v-c+(y-l)/1e4;if(b<0&&e.clockseq===undefined){g=g+1&16383}if((b<0||v>c)&&e.nsecs===undefined){y=0}if(y>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}c=v;l=y;o=g;v+=122192928e5;const E=((v&268435455)*1e4+y)%4294967296;d[p++]=E>>>24&255;d[p++]=E>>>16&255;d[p++]=E>>>8&255;d[p++]=E&255;const x=v/4294967296*1e4&268435455;d[p++]=x>>>8&255;d[p++]=x&255;d[p++]=x>>>24&15|16;d[p++]=x>>>16&255;d[p++]=g>>>8|128;d[p++]=g&255;for(let e=0;e<6;++e){d[p+e]=h[e]}return r||(0,s.default)(d)}var p=v1;r["default"]=p},6409:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(5998));var s=_interopRequireDefault(i(4569));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=(0,n.default)("v3",48,s.default);var o=a;r["default"]=o},5998:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=_default;r.URL=r.DNS=void 0;var n=_interopRequireDefault(i(8950));var s=_interopRequireDefault(i(2746));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const r=[];for(let i=0;i{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(807));var s=_interopRequireDefault(i(8950));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,r,i){e=e||{};const a=e.random||(e.rng||n.default)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(r){i=i||0;for(let e=0;e<16;++e){r[i+e]=a[e]}return r}return(0,s.default)(a)}var a=v4;r["default"]=a},9120:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(5998));var s=_interopRequireDefault(i(5274));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=(0,n.default)("v5",80,s.default);var o=a;r["default"]=o},6900:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(814));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var s=validate;r["default"]=s},1595:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(6900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var s=version;r["default"]=s},2940:e=>{e.exports=wrappy;function wrappy(e,r){if(e&&r)return wrappy(e)(r);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(r){wrapper[r]=e[r]}));return wrapper;function wrapper(){var r=new Array(arguments.length);for(var i=0;i{"use strict";e.exports=writeFile;e.exports.sync=writeFileSync;e.exports._getTmpname=getTmpname;e.exports._cleanupOnExit=cleanupOnExit;const n=i(7147);const s=i(2527);const a=i(4931);const o=i(1017);const c=i(657);const l=i(1315);const{promisify:p}=i(3837);const d={};const h=function getId(){try{const e=i(1267);return e.threadId}catch(e){return 0}}();let g=0;function getTmpname(e){return e+"."+s(__filename).hash(String(process.pid)).hash(String(h)).hash(String(++g)).result()}function cleanupOnExit(e){return()=>{try{n.unlinkSync(typeof e==="function"?e():e)}catch(e){}}}function serializeActiveFile(e){return new Promise((r=>{if(!d[e])d[e]=[];d[e].push(r);if(d[e].length===1)r()}))}function isChownErrOk(e){if(e.code==="ENOSYS"){return true}const r=!process.getuid||process.getuid()!==0;if(r){if(e.code==="EINVAL"||e.code==="EPERM"){return true}}return false}async function writeFileAsync(e,r,i={}){if(typeof i==="string"){i={encoding:i}}let s;let h;const g=a(cleanupOnExit((()=>h)));const v=o.resolve(e);try{await serializeActiveFile(v);const a=await p(n.realpath)(e).catch((()=>e));h=getTmpname(a);if(!i.mode||!i.chown){const e=await p(n.stat)(a).catch((()=>{}));if(e){if(i.mode==null){i.mode=e.mode}if(i.chown==null&&process.getuid){i.chown={uid:e.uid,gid:e.gid}}}}s=await p(n.open)(h,"w",i.mode);if(i.tmpfileCreated){await i.tmpfileCreated(h)}if(c(r)){r=l(r)}if(Buffer.isBuffer(r)){await p(n.write)(s,r,0,r.length,0)}else if(r!=null){await p(n.write)(s,String(r),0,String(i.encoding||"utf8"))}if(i.fsync!==false){await p(n.fsync)(s)}await p(n.close)(s);s=null;if(i.chown){await p(n.chown)(h,i.chown.uid,i.chown.gid).catch((e=>{if(!isChownErrOk(e)){throw e}}))}if(i.mode){await p(n.chmod)(h,i.mode).catch((e=>{if(!isChownErrOk(e)){throw e}}))}await p(n.rename)(h,a)}finally{if(s){await p(n.close)(s).catch((()=>{}))}g();await p(n.unlink)(h).catch((()=>{}));d[v].shift();if(d[v].length>0){d[v][0]()}else delete d[v]}}function writeFile(e,r,i,n){if(i instanceof Function){n=i;i={}}const s=writeFileAsync(e,r,i);if(n){s.then(n,n)}return s}function writeFileSync(e,r,i){if(typeof i==="string")i={encoding:i};else if(!i)i={};try{e=n.realpathSync(e)}catch(e){}const s=getTmpname(e);if(!i.mode||!i.chown){try{const r=n.statSync(e);i=Object.assign({},i);if(!i.mode){i.mode=r.mode}if(!i.chown&&process.getuid){i.chown={uid:r.uid,gid:r.gid}}}catch(e){}}let o;const p=cleanupOnExit(s);const d=a(p);let h=true;try{o=n.openSync(s,"w",i.mode||438);if(i.tmpfileCreated){i.tmpfileCreated(s)}if(c(r)){r=l(r)}if(Buffer.isBuffer(r)){n.writeSync(o,r,0,r.length,0)}else if(r!=null){n.writeSync(o,String(r),0,String(i.encoding||"utf8"))}if(i.fsync!==false){n.fsyncSync(o)}n.closeSync(o);o=null;if(i.chown){try{n.chownSync(s,i.chown.uid,i.chown.gid)}catch(e){if(!isChownErrOk(e)){throw e}}}if(i.mode){try{n.chmodSync(s,i.mode)}catch(e){if(!isChownErrOk(e)){throw e}}}n.renameSync(s,e);h=false}finally{if(o){try{n.closeSync(o)}catch(e){}}d();if(h){p()}}}},3522:(e,r,i)=>{"use strict";const n=i(2037);const s=i(1017);const a=n.homedir();const{env:o}=process;r.data=o.XDG_DATA_HOME||(a?s.join(a,".local","share"):undefined);r.config=o.XDG_CONFIG_HOME||(a?s.join(a,".config"):undefined);r.cache=o.XDG_CACHE_HOME||(a?s.join(a,".cache"):undefined);r.runtime=o.XDG_RUNTIME_DIR||undefined;r.dataDirs=(o.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");if(r.data){r.dataDirs.unshift(r.data)}r.configDirs=(o.XDG_CONFIG_DIRS||"/etc/xdg").split(":");if(r.config){r.configDirs.unshift(r.config)}},4091:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},665:(e,r,i)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var r=this;if(!(r instanceof Yallist)){r=new Yallist}r.tail=null;r.head=null;r.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){r.push(e)}))}else if(arguments.length>0){for(var i=0,n=arguments.length;i1){i=r}else if(this.head){n=this.head.next;i=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=0;n!==null;s++){i=e(i,n.value,s);n=n.next}return i};Yallist.prototype.reduceReverse=function(e,r){var i;var n=this.tail;if(arguments.length>1){i=r}else if(this.tail){n=this.tail.prev;i=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=this.length-1;n!==null;s--){i=e(i,n.value,s);n=n.prev}return i};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var r=0,i=this.head;i!==null;r++){e[r]=i.value;i=i.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var r=0,i=this.tail;i!==null;r++){e[r]=i.value;i=i.prev}return e};Yallist.prototype.slice=function(e,r){r=r||this.length;if(r<0){r+=this.length}e=e||0;if(e<0){e+=this.length}var i=new Yallist;if(rthis.length){r=this.length}for(var n=0,s=this.head;s!==null&&nthis.length){r=this.length}for(var n=this.length,s=this.tail;s!==null&&n>r;n--){s=s.prev}for(;s!==null&&n>e;n--,s=s.prev){i.push(s.value)}return i};Yallist.prototype.splice=function(e,r,...i){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var n=0,s=this.head;s!==null&&n{class Node{constructor(e){this.value=e;this.next=undefined}}class Queue{constructor(){this.clear()}enqueue(e){const r=new Node(e);if(this._head){this._tail.next=r;this._tail=r}else{this._head=r;this._tail=r}this._size++}dequeue(){const e=this._head;if(!e){return}this._head=this._head.next;this._size--;return e.value}clear(){this._head=undefined;this._tail=undefined;this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;while(e){yield e.value;e=e.next}}}e.exports=Queue},2877:module=>{module.exports=eval("require")("encoding")},1301:module=>{module.exports=eval("require")("fast-crc32c")},8418:module=>{module.exports=eval("require")("request")},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},5477:e=>{"use strict";e.exports=require("punycode")},3477:e=>{"use strict";e.exports=require("querystring")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},9512:e=>{"use strict";e.exports=require("timers")},4404:e=>{"use strict";e.exports=require("tls")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},1267:e=>{"use strict";e.exports=require("worker_threads")},9796:e=>{"use strict";e.exports=require("zlib")},5458:e=>{"use strict";e.exports=JSON.parse('{"name":"@google-cloud/storage","description":"Cloud Storage Client Library for Node.js","version":"5.17.0","license":"Apache-2.0","author":"Google Inc.","engines":{"node":">=10"},"repository":"googleapis/nodejs-storage","main":"./build/src/index.js","types":"./build/src/index.d.ts","files":["build/src","!build/src/**/*.map"],"keywords":["google apis client","google api client","google apis","google api","google","google cloud platform","google cloud","cloud","google storage","storage"],"scripts":{"predocs":"npm run compile","docs":"jsdoc -c .jsdoc.js","system-test":"mocha build/system-test --timeout 600000 --exit","conformance-test":"mocha build/conformance-test","preconformance-test":"npm run compile","presystem-test":"npm run compile","test":"c8 mocha build/test","pretest":"npm run compile","lint":"gts check","samples-test":"npm link && cd samples/ && npm link ../ && npm test && cd ../","all-test":"npm test && npm run system-test && npm run samples-test","check":"gts check","clean":"gts clean","compile":"tsc -p .","fix":"gts fix","prepare":"npm run compile","docs-test":"linkinator docs","predocs-test":"npm run docs","benchwrapper":"node bin/benchwrapper.js","prelint":"cd samples; npm link ../; npm install","precompile":"gts clean"},"dependencies":{"@google-cloud/common":"^3.8.1","@google-cloud/paginator":"^3.0.0","@google-cloud/promisify":"^2.0.0","abort-controller":"^3.0.0","arrify":"^2.0.0","async-retry":"^1.3.3","compressible":"^2.0.12","configstore":"^5.0.0","date-and-time":"^2.0.0","duplexify":"^4.0.0","extend":"^3.0.2","gaxios":"^4.0.0","get-stream":"^6.0.0","google-auth-library":"^7.0.0","hash-stream-validation":"^0.2.2","mime":"^3.0.0","mime-types":"^2.0.8","p-limit":"^3.0.1","pumpify":"^2.0.0","snakeize":"^0.1.0","stream-events":"^1.0.4","xdg-basedir":"^4.0.0"},"devDependencies":{"@google-cloud/pubsub":"^2.0.0","@grpc/grpc-js":"^1.0.3","@grpc/proto-loader":"^0.6.0","@types/async-retry":"^1.4.3","@types/compressible":"^2.0.0","@types/concat-stream":"^1.6.0","@types/configstore":"^5.0.0","@types/date-and-time":"^0.13.0","@types/extend":"^3.0.0","@types/mime":"^2.0.0","@types/mime-types":"^2.1.0","@types/mocha":"^8.0.0","@types/mockery":"^1.4.29","@types/node":"^16.0.0","@types/node-fetch":"^2.1.3","@types/proxyquire":"^1.3.28","@types/pumpify":"^1.4.1","@types/sinon":"^10.0.0","@types/tmp":"0.2.3","@types/uuid":"^8.0.0","@types/xdg-basedir":"^2.0.0","c8":"^7.0.0","form-data":"^4.0.0","gts":"^3.1.0","jsdoc":"^3.6.2","jsdoc-fresh":"^1.0.1","jsdoc-region-tag":"^1.0.2","linkinator":"^2.0.0","mocha":"^8.0.0","mockery":"^2.1.0","nock":"~13.2.0","node-fetch":"^2.2.0","proxyquire":"^2.1.3","sinon":"^12.0.0","tmp":"^0.2.0","typescript":"^3.8.3","uuid":"^8.0.0","yargs":"^16.0.0"}}')},2077:e=>{"use strict";e.exports=JSON.parse('{"Aacute;":"Á","Aacute":"Á","aacute;":"á","aacute":"á","Abreve;":"Ă","abreve;":"ă","ac;":"∾","acd;":"∿","acE;":"∾̳","Acirc;":"Â","Acirc":"Â","acirc;":"â","acirc":"â","acute;":"´","acute":"´","Acy;":"А","acy;":"а","AElig;":"Æ","AElig":"Æ","aelig;":"æ","aelig":"æ","af;":"⁡","Afr;":"𝔄","afr;":"𝔞","Agrave;":"À","Agrave":"À","agrave;":"à","agrave":"à","alefsym;":"ℵ","aleph;":"ℵ","Alpha;":"Α","alpha;":"α","Amacr;":"Ā","amacr;":"ā","amalg;":"⨿","AMP;":"&","AMP":"&","amp;":"&","amp":"&","And;":"⩓","and;":"∧","andand;":"⩕","andd;":"⩜","andslope;":"⩘","andv;":"⩚","ang;":"∠","ange;":"⦤","angle;":"∠","angmsd;":"∡","angmsdaa;":"⦨","angmsdab;":"⦩","angmsdac;":"⦪","angmsdad;":"⦫","angmsdae;":"⦬","angmsdaf;":"⦭","angmsdag;":"⦮","angmsdah;":"⦯","angrt;":"∟","angrtvb;":"⊾","angrtvbd;":"⦝","angsph;":"∢","angst;":"Å","angzarr;":"⍼","Aogon;":"Ą","aogon;":"ą","Aopf;":"𝔸","aopf;":"𝕒","ap;":"≈","apacir;":"⩯","apE;":"⩰","ape;":"≊","apid;":"≋","apos;":"\'","ApplyFunction;":"⁡","approx;":"≈","approxeq;":"≊","Aring;":"Å","Aring":"Å","aring;":"å","aring":"å","Ascr;":"𝒜","ascr;":"𝒶","Assign;":"≔","ast;":"*","asymp;":"≈","asympeq;":"≍","Atilde;":"Ã","Atilde":"Ã","atilde;":"ã","atilde":"ã","Auml;":"Ä","Auml":"Ä","auml;":"ä","auml":"ä","awconint;":"∳","awint;":"⨑","backcong;":"≌","backepsilon;":"϶","backprime;":"‵","backsim;":"∽","backsimeq;":"⋍","Backslash;":"∖","Barv;":"⫧","barvee;":"⊽","Barwed;":"⌆","barwed;":"⌅","barwedge;":"⌅","bbrk;":"⎵","bbrktbrk;":"⎶","bcong;":"≌","Bcy;":"Б","bcy;":"б","bdquo;":"„","becaus;":"∵","Because;":"∵","because;":"∵","bemptyv;":"⦰","bepsi;":"϶","bernou;":"ℬ","Bernoullis;":"ℬ","Beta;":"Β","beta;":"β","beth;":"ℶ","between;":"≬","Bfr;":"𝔅","bfr;":"𝔟","bigcap;":"⋂","bigcirc;":"◯","bigcup;":"⋃","bigodot;":"⨀","bigoplus;":"⨁","bigotimes;":"⨂","bigsqcup;":"⨆","bigstar;":"★","bigtriangledown;":"▽","bigtriangleup;":"△","biguplus;":"⨄","bigvee;":"⋁","bigwedge;":"⋀","bkarow;":"⤍","blacklozenge;":"⧫","blacksquare;":"▪","blacktriangle;":"▴","blacktriangledown;":"▾","blacktriangleleft;":"◂","blacktriangleright;":"▸","blank;":"␣","blk12;":"▒","blk14;":"░","blk34;":"▓","block;":"█","bne;":"=⃥","bnequiv;":"≡⃥","bNot;":"⫭","bnot;":"⌐","Bopf;":"𝔹","bopf;":"𝕓","bot;":"⊥","bottom;":"⊥","bowtie;":"⋈","boxbox;":"⧉","boxDL;":"╗","boxDl;":"╖","boxdL;":"╕","boxdl;":"┐","boxDR;":"╔","boxDr;":"╓","boxdR;":"╒","boxdr;":"┌","boxH;":"═","boxh;":"─","boxHD;":"╦","boxHd;":"╤","boxhD;":"╥","boxhd;":"┬","boxHU;":"╩","boxHu;":"╧","boxhU;":"╨","boxhu;":"┴","boxminus;":"⊟","boxplus;":"⊞","boxtimes;":"⊠","boxUL;":"╝","boxUl;":"╜","boxuL;":"╛","boxul;":"┘","boxUR;":"╚","boxUr;":"╙","boxuR;":"╘","boxur;":"└","boxV;":"║","boxv;":"│","boxVH;":"╬","boxVh;":"╫","boxvH;":"╪","boxvh;":"┼","boxVL;":"╣","boxVl;":"╢","boxvL;":"╡","boxvl;":"┤","boxVR;":"╠","boxVr;":"╟","boxvR;":"╞","boxvr;":"├","bprime;":"‵","Breve;":"˘","breve;":"˘","brvbar;":"¦","brvbar":"¦","Bscr;":"ℬ","bscr;":"𝒷","bsemi;":"⁏","bsim;":"∽","bsime;":"⋍","bsol;":"\\\\","bsolb;":"⧅","bsolhsub;":"⟈","bull;":"•","bullet;":"•","bump;":"≎","bumpE;":"⪮","bumpe;":"≏","Bumpeq;":"≎","bumpeq;":"≏","Cacute;":"Ć","cacute;":"ć","Cap;":"⋒","cap;":"∩","capand;":"⩄","capbrcup;":"⩉","capcap;":"⩋","capcup;":"⩇","capdot;":"⩀","CapitalDifferentialD;":"ⅅ","caps;":"∩︀","caret;":"⁁","caron;":"ˇ","Cayleys;":"ℭ","ccaps;":"⩍","Ccaron;":"Č","ccaron;":"č","Ccedil;":"Ç","Ccedil":"Ç","ccedil;":"ç","ccedil":"ç","Ccirc;":"Ĉ","ccirc;":"ĉ","Cconint;":"∰","ccups;":"⩌","ccupssm;":"⩐","Cdot;":"Ċ","cdot;":"ċ","cedil;":"¸","cedil":"¸","Cedilla;":"¸","cemptyv;":"⦲","cent;":"¢","cent":"¢","CenterDot;":"·","centerdot;":"·","Cfr;":"ℭ","cfr;":"𝔠","CHcy;":"Ч","chcy;":"ч","check;":"✓","checkmark;":"✓","Chi;":"Χ","chi;":"χ","cir;":"○","circ;":"ˆ","circeq;":"≗","circlearrowleft;":"↺","circlearrowright;":"↻","circledast;":"⊛","circledcirc;":"⊚","circleddash;":"⊝","CircleDot;":"⊙","circledR;":"®","circledS;":"Ⓢ","CircleMinus;":"⊖","CirclePlus;":"⊕","CircleTimes;":"⊗","cirE;":"⧃","cire;":"≗","cirfnint;":"⨐","cirmid;":"⫯","cirscir;":"⧂","ClockwiseContourIntegral;":"∲","CloseCurlyDoubleQuote;":"”","CloseCurlyQuote;":"’","clubs;":"♣","clubsuit;":"♣","Colon;":"∷","colon;":":","Colone;":"⩴","colone;":"≔","coloneq;":"≔","comma;":",","commat;":"@","comp;":"∁","compfn;":"∘","complement;":"∁","complexes;":"ℂ","cong;":"≅","congdot;":"⩭","Congruent;":"≡","Conint;":"∯","conint;":"∮","ContourIntegral;":"∮","Copf;":"ℂ","copf;":"𝕔","coprod;":"∐","Coproduct;":"∐","COPY;":"©","COPY":"©","copy;":"©","copy":"©","copysr;":"℗","CounterClockwiseContourIntegral;":"∳","crarr;":"↵","Cross;":"⨯","cross;":"✗","Cscr;":"𝒞","cscr;":"𝒸","csub;":"⫏","csube;":"⫑","csup;":"⫐","csupe;":"⫒","ctdot;":"⋯","cudarrl;":"⤸","cudarrr;":"⤵","cuepr;":"⋞","cuesc;":"⋟","cularr;":"↶","cularrp;":"⤽","Cup;":"⋓","cup;":"∪","cupbrcap;":"⩈","CupCap;":"≍","cupcap;":"⩆","cupcup;":"⩊","cupdot;":"⊍","cupor;":"⩅","cups;":"∪︀","curarr;":"↷","curarrm;":"⤼","curlyeqprec;":"⋞","curlyeqsucc;":"⋟","curlyvee;":"⋎","curlywedge;":"⋏","curren;":"¤","curren":"¤","curvearrowleft;":"↶","curvearrowright;":"↷","cuvee;":"⋎","cuwed;":"⋏","cwconint;":"∲","cwint;":"∱","cylcty;":"⌭","Dagger;":"‡","dagger;":"†","daleth;":"ℸ","Darr;":"↡","dArr;":"⇓","darr;":"↓","dash;":"‐","Dashv;":"⫤","dashv;":"⊣","dbkarow;":"⤏","dblac;":"˝","Dcaron;":"Ď","dcaron;":"ď","Dcy;":"Д","dcy;":"д","DD;":"ⅅ","dd;":"ⅆ","ddagger;":"‡","ddarr;":"⇊","DDotrahd;":"⤑","ddotseq;":"⩷","deg;":"°","deg":"°","Del;":"∇","Delta;":"Δ","delta;":"δ","demptyv;":"⦱","dfisht;":"⥿","Dfr;":"𝔇","dfr;":"𝔡","dHar;":"⥥","dharl;":"⇃","dharr;":"⇂","DiacriticalAcute;":"´","DiacriticalDot;":"˙","DiacriticalDoubleAcute;":"˝","DiacriticalGrave;":"`","DiacriticalTilde;":"˜","diam;":"⋄","Diamond;":"⋄","diamond;":"⋄","diamondsuit;":"♦","diams;":"♦","die;":"¨","DifferentialD;":"ⅆ","digamma;":"ϝ","disin;":"⋲","div;":"÷","divide;":"÷","divide":"÷","divideontimes;":"⋇","divonx;":"⋇","DJcy;":"Ђ","djcy;":"ђ","dlcorn;":"⌞","dlcrop;":"⌍","dollar;":"$","Dopf;":"𝔻","dopf;":"𝕕","Dot;":"¨","dot;":"˙","DotDot;":"⃜","doteq;":"≐","doteqdot;":"≑","DotEqual;":"≐","dotminus;":"∸","dotplus;":"∔","dotsquare;":"⊡","doublebarwedge;":"⌆","DoubleContourIntegral;":"∯","DoubleDot;":"¨","DoubleDownArrow;":"⇓","DoubleLeftArrow;":"⇐","DoubleLeftRightArrow;":"⇔","DoubleLeftTee;":"⫤","DoubleLongLeftArrow;":"⟸","DoubleLongLeftRightArrow;":"⟺","DoubleLongRightArrow;":"⟹","DoubleRightArrow;":"⇒","DoubleRightTee;":"⊨","DoubleUpArrow;":"⇑","DoubleUpDownArrow;":"⇕","DoubleVerticalBar;":"∥","DownArrow;":"↓","Downarrow;":"⇓","downarrow;":"↓","DownArrowBar;":"⤓","DownArrowUpArrow;":"⇵","DownBreve;":"̑","downdownarrows;":"⇊","downharpoonleft;":"⇃","downharpoonright;":"⇂","DownLeftRightVector;":"⥐","DownLeftTeeVector;":"⥞","DownLeftVector;":"↽","DownLeftVectorBar;":"⥖","DownRightTeeVector;":"⥟","DownRightVector;":"⇁","DownRightVectorBar;":"⥗","DownTee;":"⊤","DownTeeArrow;":"↧","drbkarow;":"⤐","drcorn;":"⌟","drcrop;":"⌌","Dscr;":"𝒟","dscr;":"𝒹","DScy;":"Ѕ","dscy;":"ѕ","dsol;":"⧶","Dstrok;":"Đ","dstrok;":"đ","dtdot;":"⋱","dtri;":"▿","dtrif;":"▾","duarr;":"⇵","duhar;":"⥯","dwangle;":"⦦","DZcy;":"Џ","dzcy;":"џ","dzigrarr;":"⟿","Eacute;":"É","Eacute":"É","eacute;":"é","eacute":"é","easter;":"⩮","Ecaron;":"Ě","ecaron;":"ě","ecir;":"≖","Ecirc;":"Ê","Ecirc":"Ê","ecirc;":"ê","ecirc":"ê","ecolon;":"≕","Ecy;":"Э","ecy;":"э","eDDot;":"⩷","Edot;":"Ė","eDot;":"≑","edot;":"ė","ee;":"ⅇ","efDot;":"≒","Efr;":"𝔈","efr;":"𝔢","eg;":"⪚","Egrave;":"È","Egrave":"È","egrave;":"è","egrave":"è","egs;":"⪖","egsdot;":"⪘","el;":"⪙","Element;":"∈","elinters;":"⏧","ell;":"ℓ","els;":"⪕","elsdot;":"⪗","Emacr;":"Ē","emacr;":"ē","empty;":"∅","emptyset;":"∅","EmptySmallSquare;":"◻","emptyv;":"∅","EmptyVerySmallSquare;":"▫","emsp;":" ","emsp13;":" ","emsp14;":" ","ENG;":"Ŋ","eng;":"ŋ","ensp;":" ","Eogon;":"Ę","eogon;":"ę","Eopf;":"𝔼","eopf;":"𝕖","epar;":"⋕","eparsl;":"⧣","eplus;":"⩱","epsi;":"ε","Epsilon;":"Ε","epsilon;":"ε","epsiv;":"ϵ","eqcirc;":"≖","eqcolon;":"≕","eqsim;":"≂","eqslantgtr;":"⪖","eqslantless;":"⪕","Equal;":"⩵","equals;":"=","EqualTilde;":"≂","equest;":"≟","Equilibrium;":"⇌","equiv;":"≡","equivDD;":"⩸","eqvparsl;":"⧥","erarr;":"⥱","erDot;":"≓","Escr;":"ℰ","escr;":"ℯ","esdot;":"≐","Esim;":"⩳","esim;":"≂","Eta;":"Η","eta;":"η","ETH;":"Ð","ETH":"Ð","eth;":"ð","eth":"ð","Euml;":"Ë","Euml":"Ë","euml;":"ë","euml":"ë","euro;":"€","excl;":"!","exist;":"∃","Exists;":"∃","expectation;":"ℰ","ExponentialE;":"ⅇ","exponentiale;":"ⅇ","fallingdotseq;":"≒","Fcy;":"Ф","fcy;":"ф","female;":"♀","ffilig;":"ffi","fflig;":"ff","ffllig;":"ffl","Ffr;":"𝔉","ffr;":"𝔣","filig;":"fi","FilledSmallSquare;":"◼","FilledVerySmallSquare;":"▪","fjlig;":"fj","flat;":"♭","fllig;":"fl","fltns;":"▱","fnof;":"ƒ","Fopf;":"𝔽","fopf;":"𝕗","ForAll;":"∀","forall;":"∀","fork;":"⋔","forkv;":"⫙","Fouriertrf;":"ℱ","fpartint;":"⨍","frac12;":"½","frac12":"½","frac13;":"⅓","frac14;":"¼","frac14":"¼","frac15;":"⅕","frac16;":"⅙","frac18;":"⅛","frac23;":"⅔","frac25;":"⅖","frac34;":"¾","frac34":"¾","frac35;":"⅗","frac38;":"⅜","frac45;":"⅘","frac56;":"⅚","frac58;":"⅝","frac78;":"⅞","frasl;":"⁄","frown;":"⌢","Fscr;":"ℱ","fscr;":"𝒻","gacute;":"ǵ","Gamma;":"Γ","gamma;":"γ","Gammad;":"Ϝ","gammad;":"ϝ","gap;":"⪆","Gbreve;":"Ğ","gbreve;":"ğ","Gcedil;":"Ģ","Gcirc;":"Ĝ","gcirc;":"ĝ","Gcy;":"Г","gcy;":"г","Gdot;":"Ġ","gdot;":"ġ","gE;":"≧","ge;":"≥","gEl;":"⪌","gel;":"⋛","geq;":"≥","geqq;":"≧","geqslant;":"⩾","ges;":"⩾","gescc;":"⪩","gesdot;":"⪀","gesdoto;":"⪂","gesdotol;":"⪄","gesl;":"⋛︀","gesles;":"⪔","Gfr;":"𝔊","gfr;":"𝔤","Gg;":"⋙","gg;":"≫","ggg;":"⋙","gimel;":"ℷ","GJcy;":"Ѓ","gjcy;":"ѓ","gl;":"≷","gla;":"⪥","glE;":"⪒","glj;":"⪤","gnap;":"⪊","gnapprox;":"⪊","gnE;":"≩","gne;":"⪈","gneq;":"⪈","gneqq;":"≩","gnsim;":"⋧","Gopf;":"𝔾","gopf;":"𝕘","grave;":"`","GreaterEqual;":"≥","GreaterEqualLess;":"⋛","GreaterFullEqual;":"≧","GreaterGreater;":"⪢","GreaterLess;":"≷","GreaterSlantEqual;":"⩾","GreaterTilde;":"≳","Gscr;":"𝒢","gscr;":"ℊ","gsim;":"≳","gsime;":"⪎","gsiml;":"⪐","GT;":">","GT":">","Gt;":"≫","gt;":">","gt":">","gtcc;":"⪧","gtcir;":"⩺","gtdot;":"⋗","gtlPar;":"⦕","gtquest;":"⩼","gtrapprox;":"⪆","gtrarr;":"⥸","gtrdot;":"⋗","gtreqless;":"⋛","gtreqqless;":"⪌","gtrless;":"≷","gtrsim;":"≳","gvertneqq;":"≩︀","gvnE;":"≩︀","Hacek;":"ˇ","hairsp;":" ","half;":"½","hamilt;":"ℋ","HARDcy;":"Ъ","hardcy;":"ъ","hArr;":"⇔","harr;":"↔","harrcir;":"⥈","harrw;":"↭","Hat;":"^","hbar;":"ℏ","Hcirc;":"Ĥ","hcirc;":"ĥ","hearts;":"♥","heartsuit;":"♥","hellip;":"…","hercon;":"⊹","Hfr;":"ℌ","hfr;":"𝔥","HilbertSpace;":"ℋ","hksearow;":"⤥","hkswarow;":"⤦","hoarr;":"⇿","homtht;":"∻","hookleftarrow;":"↩","hookrightarrow;":"↪","Hopf;":"ℍ","hopf;":"𝕙","horbar;":"―","HorizontalLine;":"─","Hscr;":"ℋ","hscr;":"𝒽","hslash;":"ℏ","Hstrok;":"Ħ","hstrok;":"ħ","HumpDownHump;":"≎","HumpEqual;":"≏","hybull;":"⁃","hyphen;":"‐","Iacute;":"Í","Iacute":"Í","iacute;":"í","iacute":"í","ic;":"⁣","Icirc;":"Î","Icirc":"Î","icirc;":"î","icirc":"î","Icy;":"И","icy;":"и","Idot;":"İ","IEcy;":"Е","iecy;":"е","iexcl;":"¡","iexcl":"¡","iff;":"⇔","Ifr;":"ℑ","ifr;":"𝔦","Igrave;":"Ì","Igrave":"Ì","igrave;":"ì","igrave":"ì","ii;":"ⅈ","iiiint;":"⨌","iiint;":"∭","iinfin;":"⧜","iiota;":"℩","IJlig;":"IJ","ijlig;":"ij","Im;":"ℑ","Imacr;":"Ī","imacr;":"ī","image;":"ℑ","ImaginaryI;":"ⅈ","imagline;":"ℐ","imagpart;":"ℑ","imath;":"ı","imof;":"⊷","imped;":"Ƶ","Implies;":"⇒","in;":"∈","incare;":"℅","infin;":"∞","infintie;":"⧝","inodot;":"ı","Int;":"∬","int;":"∫","intcal;":"⊺","integers;":"ℤ","Integral;":"∫","intercal;":"⊺","Intersection;":"⋂","intlarhk;":"⨗","intprod;":"⨼","InvisibleComma;":"⁣","InvisibleTimes;":"⁢","IOcy;":"Ё","iocy;":"ё","Iogon;":"Į","iogon;":"į","Iopf;":"𝕀","iopf;":"𝕚","Iota;":"Ι","iota;":"ι","iprod;":"⨼","iquest;":"¿","iquest":"¿","Iscr;":"ℐ","iscr;":"𝒾","isin;":"∈","isindot;":"⋵","isinE;":"⋹","isins;":"⋴","isinsv;":"⋳","isinv;":"∈","it;":"⁢","Itilde;":"Ĩ","itilde;":"ĩ","Iukcy;":"І","iukcy;":"і","Iuml;":"Ï","Iuml":"Ï","iuml;":"ï","iuml":"ï","Jcirc;":"Ĵ","jcirc;":"ĵ","Jcy;":"Й","jcy;":"й","Jfr;":"𝔍","jfr;":"𝔧","jmath;":"ȷ","Jopf;":"𝕁","jopf;":"𝕛","Jscr;":"𝒥","jscr;":"𝒿","Jsercy;":"Ј","jsercy;":"ј","Jukcy;":"Є","jukcy;":"є","Kappa;":"Κ","kappa;":"κ","kappav;":"ϰ","Kcedil;":"Ķ","kcedil;":"ķ","Kcy;":"К","kcy;":"к","Kfr;":"𝔎","kfr;":"𝔨","kgreen;":"ĸ","KHcy;":"Х","khcy;":"х","KJcy;":"Ќ","kjcy;":"ќ","Kopf;":"𝕂","kopf;":"𝕜","Kscr;":"𝒦","kscr;":"𝓀","lAarr;":"⇚","Lacute;":"Ĺ","lacute;":"ĺ","laemptyv;":"⦴","lagran;":"ℒ","Lambda;":"Λ","lambda;":"λ","Lang;":"⟪","lang;":"⟨","langd;":"⦑","langle;":"⟨","lap;":"⪅","Laplacetrf;":"ℒ","laquo;":"«","laquo":"«","Larr;":"↞","lArr;":"⇐","larr;":"←","larrb;":"⇤","larrbfs;":"⤟","larrfs;":"⤝","larrhk;":"↩","larrlp;":"↫","larrpl;":"⤹","larrsim;":"⥳","larrtl;":"↢","lat;":"⪫","lAtail;":"⤛","latail;":"⤙","late;":"⪭","lates;":"⪭︀","lBarr;":"⤎","lbarr;":"⤌","lbbrk;":"❲","lbrace;":"{","lbrack;":"[","lbrke;":"⦋","lbrksld;":"⦏","lbrkslu;":"⦍","Lcaron;":"Ľ","lcaron;":"ľ","Lcedil;":"Ļ","lcedil;":"ļ","lceil;":"⌈","lcub;":"{","Lcy;":"Л","lcy;":"л","ldca;":"⤶","ldquo;":"“","ldquor;":"„","ldrdhar;":"⥧","ldrushar;":"⥋","ldsh;":"↲","lE;":"≦","le;":"≤","LeftAngleBracket;":"⟨","LeftArrow;":"←","Leftarrow;":"⇐","leftarrow;":"←","LeftArrowBar;":"⇤","LeftArrowRightArrow;":"⇆","leftarrowtail;":"↢","LeftCeiling;":"⌈","LeftDoubleBracket;":"⟦","LeftDownTeeVector;":"⥡","LeftDownVector;":"⇃","LeftDownVectorBar;":"⥙","LeftFloor;":"⌊","leftharpoondown;":"↽","leftharpoonup;":"↼","leftleftarrows;":"⇇","LeftRightArrow;":"↔","Leftrightarrow;":"⇔","leftrightarrow;":"↔","leftrightarrows;":"⇆","leftrightharpoons;":"⇋","leftrightsquigarrow;":"↭","LeftRightVector;":"⥎","LeftTee;":"⊣","LeftTeeArrow;":"↤","LeftTeeVector;":"⥚","leftthreetimes;":"⋋","LeftTriangle;":"⊲","LeftTriangleBar;":"⧏","LeftTriangleEqual;":"⊴","LeftUpDownVector;":"⥑","LeftUpTeeVector;":"⥠","LeftUpVector;":"↿","LeftUpVectorBar;":"⥘","LeftVector;":"↼","LeftVectorBar;":"⥒","lEg;":"⪋","leg;":"⋚","leq;":"≤","leqq;":"≦","leqslant;":"⩽","les;":"⩽","lescc;":"⪨","lesdot;":"⩿","lesdoto;":"⪁","lesdotor;":"⪃","lesg;":"⋚︀","lesges;":"⪓","lessapprox;":"⪅","lessdot;":"⋖","lesseqgtr;":"⋚","lesseqqgtr;":"⪋","LessEqualGreater;":"⋚","LessFullEqual;":"≦","LessGreater;":"≶","lessgtr;":"≶","LessLess;":"⪡","lesssim;":"≲","LessSlantEqual;":"⩽","LessTilde;":"≲","lfisht;":"⥼","lfloor;":"⌊","Lfr;":"𝔏","lfr;":"𝔩","lg;":"≶","lgE;":"⪑","lHar;":"⥢","lhard;":"↽","lharu;":"↼","lharul;":"⥪","lhblk;":"▄","LJcy;":"Љ","ljcy;":"љ","Ll;":"⋘","ll;":"≪","llarr;":"⇇","llcorner;":"⌞","Lleftarrow;":"⇚","llhard;":"⥫","lltri;":"◺","Lmidot;":"Ŀ","lmidot;":"ŀ","lmoust;":"⎰","lmoustache;":"⎰","lnap;":"⪉","lnapprox;":"⪉","lnE;":"≨","lne;":"⪇","lneq;":"⪇","lneqq;":"≨","lnsim;":"⋦","loang;":"⟬","loarr;":"⇽","lobrk;":"⟦","LongLeftArrow;":"⟵","Longleftarrow;":"⟸","longleftarrow;":"⟵","LongLeftRightArrow;":"⟷","Longleftrightarrow;":"⟺","longleftrightarrow;":"⟷","longmapsto;":"⟼","LongRightArrow;":"⟶","Longrightarrow;":"⟹","longrightarrow;":"⟶","looparrowleft;":"↫","looparrowright;":"↬","lopar;":"⦅","Lopf;":"𝕃","lopf;":"𝕝","loplus;":"⨭","lotimes;":"⨴","lowast;":"∗","lowbar;":"_","LowerLeftArrow;":"↙","LowerRightArrow;":"↘","loz;":"◊","lozenge;":"◊","lozf;":"⧫","lpar;":"(","lparlt;":"⦓","lrarr;":"⇆","lrcorner;":"⌟","lrhar;":"⇋","lrhard;":"⥭","lrm;":"‎","lrtri;":"⊿","lsaquo;":"‹","Lscr;":"ℒ","lscr;":"𝓁","Lsh;":"↰","lsh;":"↰","lsim;":"≲","lsime;":"⪍","lsimg;":"⪏","lsqb;":"[","lsquo;":"‘","lsquor;":"‚","Lstrok;":"Ł","lstrok;":"ł","LT;":"<","LT":"<","Lt;":"≪","lt;":"<","lt":"<","ltcc;":"⪦","ltcir;":"⩹","ltdot;":"⋖","lthree;":"⋋","ltimes;":"⋉","ltlarr;":"⥶","ltquest;":"⩻","ltri;":"◃","ltrie;":"⊴","ltrif;":"◂","ltrPar;":"⦖","lurdshar;":"⥊","luruhar;":"⥦","lvertneqq;":"≨︀","lvnE;":"≨︀","macr;":"¯","macr":"¯","male;":"♂","malt;":"✠","maltese;":"✠","Map;":"⤅","map;":"↦","mapsto;":"↦","mapstodown;":"↧","mapstoleft;":"↤","mapstoup;":"↥","marker;":"▮","mcomma;":"⨩","Mcy;":"М","mcy;":"м","mdash;":"—","mDDot;":"∺","measuredangle;":"∡","MediumSpace;":" ","Mellintrf;":"ℳ","Mfr;":"𝔐","mfr;":"𝔪","mho;":"℧","micro;":"µ","micro":"µ","mid;":"∣","midast;":"*","midcir;":"⫰","middot;":"·","middot":"·","minus;":"−","minusb;":"⊟","minusd;":"∸","minusdu;":"⨪","MinusPlus;":"∓","mlcp;":"⫛","mldr;":"…","mnplus;":"∓","models;":"⊧","Mopf;":"𝕄","mopf;":"𝕞","mp;":"∓","Mscr;":"ℳ","mscr;":"𝓂","mstpos;":"∾","Mu;":"Μ","mu;":"μ","multimap;":"⊸","mumap;":"⊸","nabla;":"∇","Nacute;":"Ń","nacute;":"ń","nang;":"∠⃒","nap;":"≉","napE;":"⩰̸","napid;":"≋̸","napos;":"ʼn","napprox;":"≉","natur;":"♮","natural;":"♮","naturals;":"ℕ","nbsp;":" ","nbsp":" ","nbump;":"≎̸","nbumpe;":"≏̸","ncap;":"⩃","Ncaron;":"Ň","ncaron;":"ň","Ncedil;":"Ņ","ncedil;":"ņ","ncong;":"≇","ncongdot;":"⩭̸","ncup;":"⩂","Ncy;":"Н","ncy;":"н","ndash;":"–","ne;":"≠","nearhk;":"⤤","neArr;":"⇗","nearr;":"↗","nearrow;":"↗","nedot;":"≐̸","NegativeMediumSpace;":"​","NegativeThickSpace;":"​","NegativeThinSpace;":"​","NegativeVeryThinSpace;":"​","nequiv;":"≢","nesear;":"⤨","nesim;":"≂̸","NestedGreaterGreater;":"≫","NestedLessLess;":"≪","NewLine;":"\\n","nexist;":"∄","nexists;":"∄","Nfr;":"𝔑","nfr;":"𝔫","ngE;":"≧̸","nge;":"≱","ngeq;":"≱","ngeqq;":"≧̸","ngeqslant;":"⩾̸","nges;":"⩾̸","nGg;":"⋙̸","ngsim;":"≵","nGt;":"≫⃒","ngt;":"≯","ngtr;":"≯","nGtv;":"≫̸","nhArr;":"⇎","nharr;":"↮","nhpar;":"⫲","ni;":"∋","nis;":"⋼","nisd;":"⋺","niv;":"∋","NJcy;":"Њ","njcy;":"њ","nlArr;":"⇍","nlarr;":"↚","nldr;":"‥","nlE;":"≦̸","nle;":"≰","nLeftarrow;":"⇍","nleftarrow;":"↚","nLeftrightarrow;":"⇎","nleftrightarrow;":"↮","nleq;":"≰","nleqq;":"≦̸","nleqslant;":"⩽̸","nles;":"⩽̸","nless;":"≮","nLl;":"⋘̸","nlsim;":"≴","nLt;":"≪⃒","nlt;":"≮","nltri;":"⋪","nltrie;":"⋬","nLtv;":"≪̸","nmid;":"∤","NoBreak;":"⁠","NonBreakingSpace;":" ","Nopf;":"ℕ","nopf;":"𝕟","Not;":"⫬","not;":"¬","not":"¬","NotCongruent;":"≢","NotCupCap;":"≭","NotDoubleVerticalBar;":"∦","NotElement;":"∉","NotEqual;":"≠","NotEqualTilde;":"≂̸","NotExists;":"∄","NotGreater;":"≯","NotGreaterEqual;":"≱","NotGreaterFullEqual;":"≧̸","NotGreaterGreater;":"≫̸","NotGreaterLess;":"≹","NotGreaterSlantEqual;":"⩾̸","NotGreaterTilde;":"≵","NotHumpDownHump;":"≎̸","NotHumpEqual;":"≏̸","notin;":"∉","notindot;":"⋵̸","notinE;":"⋹̸","notinva;":"∉","notinvb;":"⋷","notinvc;":"⋶","NotLeftTriangle;":"⋪","NotLeftTriangleBar;":"⧏̸","NotLeftTriangleEqual;":"⋬","NotLess;":"≮","NotLessEqual;":"≰","NotLessGreater;":"≸","NotLessLess;":"≪̸","NotLessSlantEqual;":"⩽̸","NotLessTilde;":"≴","NotNestedGreaterGreater;":"⪢̸","NotNestedLessLess;":"⪡̸","notni;":"∌","notniva;":"∌","notnivb;":"⋾","notnivc;":"⋽","NotPrecedes;":"⊀","NotPrecedesEqual;":"⪯̸","NotPrecedesSlantEqual;":"⋠","NotReverseElement;":"∌","NotRightTriangle;":"⋫","NotRightTriangleBar;":"⧐̸","NotRightTriangleEqual;":"⋭","NotSquareSubset;":"⊏̸","NotSquareSubsetEqual;":"⋢","NotSquareSuperset;":"⊐̸","NotSquareSupersetEqual;":"⋣","NotSubset;":"⊂⃒","NotSubsetEqual;":"⊈","NotSucceeds;":"⊁","NotSucceedsEqual;":"⪰̸","NotSucceedsSlantEqual;":"⋡","NotSucceedsTilde;":"≿̸","NotSuperset;":"⊃⃒","NotSupersetEqual;":"⊉","NotTilde;":"≁","NotTildeEqual;":"≄","NotTildeFullEqual;":"≇","NotTildeTilde;":"≉","NotVerticalBar;":"∤","npar;":"∦","nparallel;":"∦","nparsl;":"⫽⃥","npart;":"∂̸","npolint;":"⨔","npr;":"⊀","nprcue;":"⋠","npre;":"⪯̸","nprec;":"⊀","npreceq;":"⪯̸","nrArr;":"⇏","nrarr;":"↛","nrarrc;":"⤳̸","nrarrw;":"↝̸","nRightarrow;":"⇏","nrightarrow;":"↛","nrtri;":"⋫","nrtrie;":"⋭","nsc;":"⊁","nsccue;":"⋡","nsce;":"⪰̸","Nscr;":"𝒩","nscr;":"𝓃","nshortmid;":"∤","nshortparallel;":"∦","nsim;":"≁","nsime;":"≄","nsimeq;":"≄","nsmid;":"∤","nspar;":"∦","nsqsube;":"⋢","nsqsupe;":"⋣","nsub;":"⊄","nsubE;":"⫅̸","nsube;":"⊈","nsubset;":"⊂⃒","nsubseteq;":"⊈","nsubseteqq;":"⫅̸","nsucc;":"⊁","nsucceq;":"⪰̸","nsup;":"⊅","nsupE;":"⫆̸","nsupe;":"⊉","nsupset;":"⊃⃒","nsupseteq;":"⊉","nsupseteqq;":"⫆̸","ntgl;":"≹","Ntilde;":"Ñ","Ntilde":"Ñ","ntilde;":"ñ","ntilde":"ñ","ntlg;":"≸","ntriangleleft;":"⋪","ntrianglelefteq;":"⋬","ntriangleright;":"⋫","ntrianglerighteq;":"⋭","Nu;":"Ν","nu;":"ν","num;":"#","numero;":"№","numsp;":" ","nvap;":"≍⃒","nVDash;":"⊯","nVdash;":"⊮","nvDash;":"⊭","nvdash;":"⊬","nvge;":"≥⃒","nvgt;":">⃒","nvHarr;":"⤄","nvinfin;":"⧞","nvlArr;":"⤂","nvle;":"≤⃒","nvlt;":"<⃒","nvltrie;":"⊴⃒","nvrArr;":"⤃","nvrtrie;":"⊵⃒","nvsim;":"∼⃒","nwarhk;":"⤣","nwArr;":"⇖","nwarr;":"↖","nwarrow;":"↖","nwnear;":"⤧","Oacute;":"Ó","Oacute":"Ó","oacute;":"ó","oacute":"ó","oast;":"⊛","ocir;":"⊚","Ocirc;":"Ô","Ocirc":"Ô","ocirc;":"ô","ocirc":"ô","Ocy;":"О","ocy;":"о","odash;":"⊝","Odblac;":"Ő","odblac;":"ő","odiv;":"⨸","odot;":"⊙","odsold;":"⦼","OElig;":"Œ","oelig;":"œ","ofcir;":"⦿","Ofr;":"𝔒","ofr;":"𝔬","ogon;":"˛","Ograve;":"Ò","Ograve":"Ò","ograve;":"ò","ograve":"ò","ogt;":"⧁","ohbar;":"⦵","ohm;":"Ω","oint;":"∮","olarr;":"↺","olcir;":"⦾","olcross;":"⦻","oline;":"‾","olt;":"⧀","Omacr;":"Ō","omacr;":"ō","Omega;":"Ω","omega;":"ω","Omicron;":"Ο","omicron;":"ο","omid;":"⦶","ominus;":"⊖","Oopf;":"𝕆","oopf;":"𝕠","opar;":"⦷","OpenCurlyDoubleQuote;":"“","OpenCurlyQuote;":"‘","operp;":"⦹","oplus;":"⊕","Or;":"⩔","or;":"∨","orarr;":"↻","ord;":"⩝","order;":"ℴ","orderof;":"ℴ","ordf;":"ª","ordf":"ª","ordm;":"º","ordm":"º","origof;":"⊶","oror;":"⩖","orslope;":"⩗","orv;":"⩛","oS;":"Ⓢ","Oscr;":"𝒪","oscr;":"ℴ","Oslash;":"Ø","Oslash":"Ø","oslash;":"ø","oslash":"ø","osol;":"⊘","Otilde;":"Õ","Otilde":"Õ","otilde;":"õ","otilde":"õ","Otimes;":"⨷","otimes;":"⊗","otimesas;":"⨶","Ouml;":"Ö","Ouml":"Ö","ouml;":"ö","ouml":"ö","ovbar;":"⌽","OverBar;":"‾","OverBrace;":"⏞","OverBracket;":"⎴","OverParenthesis;":"⏜","par;":"∥","para;":"¶","para":"¶","parallel;":"∥","parsim;":"⫳","parsl;":"⫽","part;":"∂","PartialD;":"∂","Pcy;":"П","pcy;":"п","percnt;":"%","period;":".","permil;":"‰","perp;":"⊥","pertenk;":"‱","Pfr;":"𝔓","pfr;":"𝔭","Phi;":"Φ","phi;":"φ","phiv;":"ϕ","phmmat;":"ℳ","phone;":"☎","Pi;":"Π","pi;":"π","pitchfork;":"⋔","piv;":"ϖ","planck;":"ℏ","planckh;":"ℎ","plankv;":"ℏ","plus;":"+","plusacir;":"⨣","plusb;":"⊞","pluscir;":"⨢","plusdo;":"∔","plusdu;":"⨥","pluse;":"⩲","PlusMinus;":"±","plusmn;":"±","plusmn":"±","plussim;":"⨦","plustwo;":"⨧","pm;":"±","Poincareplane;":"ℌ","pointint;":"⨕","Popf;":"ℙ","popf;":"𝕡","pound;":"£","pound":"£","Pr;":"⪻","pr;":"≺","prap;":"⪷","prcue;":"≼","prE;":"⪳","pre;":"⪯","prec;":"≺","precapprox;":"⪷","preccurlyeq;":"≼","Precedes;":"≺","PrecedesEqual;":"⪯","PrecedesSlantEqual;":"≼","PrecedesTilde;":"≾","preceq;":"⪯","precnapprox;":"⪹","precneqq;":"⪵","precnsim;":"⋨","precsim;":"≾","Prime;":"″","prime;":"′","primes;":"ℙ","prnap;":"⪹","prnE;":"⪵","prnsim;":"⋨","prod;":"∏","Product;":"∏","profalar;":"⌮","profline;":"⌒","profsurf;":"⌓","prop;":"∝","Proportion;":"∷","Proportional;":"∝","propto;":"∝","prsim;":"≾","prurel;":"⊰","Pscr;":"𝒫","pscr;":"𝓅","Psi;":"Ψ","psi;":"ψ","puncsp;":" ","Qfr;":"𝔔","qfr;":"𝔮","qint;":"⨌","Qopf;":"ℚ","qopf;":"𝕢","qprime;":"⁗","Qscr;":"𝒬","qscr;":"𝓆","quaternions;":"ℍ","quatint;":"⨖","quest;":"?","questeq;":"≟","QUOT;":"\\"","QUOT":"\\"","quot;":"\\"","quot":"\\"","rAarr;":"⇛","race;":"∽̱","Racute;":"Ŕ","racute;":"ŕ","radic;":"√","raemptyv;":"⦳","Rang;":"⟫","rang;":"⟩","rangd;":"⦒","range;":"⦥","rangle;":"⟩","raquo;":"»","raquo":"»","Rarr;":"↠","rArr;":"⇒","rarr;":"→","rarrap;":"⥵","rarrb;":"⇥","rarrbfs;":"⤠","rarrc;":"⤳","rarrfs;":"⤞","rarrhk;":"↪","rarrlp;":"↬","rarrpl;":"⥅","rarrsim;":"⥴","Rarrtl;":"⤖","rarrtl;":"↣","rarrw;":"↝","rAtail;":"⤜","ratail;":"⤚","ratio;":"∶","rationals;":"ℚ","RBarr;":"⤐","rBarr;":"⤏","rbarr;":"⤍","rbbrk;":"❳","rbrace;":"}","rbrack;":"]","rbrke;":"⦌","rbrksld;":"⦎","rbrkslu;":"⦐","Rcaron;":"Ř","rcaron;":"ř","Rcedil;":"Ŗ","rcedil;":"ŗ","rceil;":"⌉","rcub;":"}","Rcy;":"Р","rcy;":"р","rdca;":"⤷","rdldhar;":"⥩","rdquo;":"”","rdquor;":"”","rdsh;":"↳","Re;":"ℜ","real;":"ℜ","realine;":"ℛ","realpart;":"ℜ","reals;":"ℝ","rect;":"▭","REG;":"®","REG":"®","reg;":"®","reg":"®","ReverseElement;":"∋","ReverseEquilibrium;":"⇋","ReverseUpEquilibrium;":"⥯","rfisht;":"⥽","rfloor;":"⌋","Rfr;":"ℜ","rfr;":"𝔯","rHar;":"⥤","rhard;":"⇁","rharu;":"⇀","rharul;":"⥬","Rho;":"Ρ","rho;":"ρ","rhov;":"ϱ","RightAngleBracket;":"⟩","RightArrow;":"→","Rightarrow;":"⇒","rightarrow;":"→","RightArrowBar;":"⇥","RightArrowLeftArrow;":"⇄","rightarrowtail;":"↣","RightCeiling;":"⌉","RightDoubleBracket;":"⟧","RightDownTeeVector;":"⥝","RightDownVector;":"⇂","RightDownVectorBar;":"⥕","RightFloor;":"⌋","rightharpoondown;":"⇁","rightharpoonup;":"⇀","rightleftarrows;":"⇄","rightleftharpoons;":"⇌","rightrightarrows;":"⇉","rightsquigarrow;":"↝","RightTee;":"⊢","RightTeeArrow;":"↦","RightTeeVector;":"⥛","rightthreetimes;":"⋌","RightTriangle;":"⊳","RightTriangleBar;":"⧐","RightTriangleEqual;":"⊵","RightUpDownVector;":"⥏","RightUpTeeVector;":"⥜","RightUpVector;":"↾","RightUpVectorBar;":"⥔","RightVector;":"⇀","RightVectorBar;":"⥓","ring;":"˚","risingdotseq;":"≓","rlarr;":"⇄","rlhar;":"⇌","rlm;":"‏","rmoust;":"⎱","rmoustache;":"⎱","rnmid;":"⫮","roang;":"⟭","roarr;":"⇾","robrk;":"⟧","ropar;":"⦆","Ropf;":"ℝ","ropf;":"𝕣","roplus;":"⨮","rotimes;":"⨵","RoundImplies;":"⥰","rpar;":")","rpargt;":"⦔","rppolint;":"⨒","rrarr;":"⇉","Rrightarrow;":"⇛","rsaquo;":"›","Rscr;":"ℛ","rscr;":"𝓇","Rsh;":"↱","rsh;":"↱","rsqb;":"]","rsquo;":"’","rsquor;":"’","rthree;":"⋌","rtimes;":"⋊","rtri;":"▹","rtrie;":"⊵","rtrif;":"▸","rtriltri;":"⧎","RuleDelayed;":"⧴","ruluhar;":"⥨","rx;":"℞","Sacute;":"Ś","sacute;":"ś","sbquo;":"‚","Sc;":"⪼","sc;":"≻","scap;":"⪸","Scaron;":"Š","scaron;":"š","sccue;":"≽","scE;":"⪴","sce;":"⪰","Scedil;":"Ş","scedil;":"ş","Scirc;":"Ŝ","scirc;":"ŝ","scnap;":"⪺","scnE;":"⪶","scnsim;":"⋩","scpolint;":"⨓","scsim;":"≿","Scy;":"С","scy;":"с","sdot;":"⋅","sdotb;":"⊡","sdote;":"⩦","searhk;":"⤥","seArr;":"⇘","searr;":"↘","searrow;":"↘","sect;":"§","sect":"§","semi;":";","seswar;":"⤩","setminus;":"∖","setmn;":"∖","sext;":"✶","Sfr;":"𝔖","sfr;":"𝔰","sfrown;":"⌢","sharp;":"♯","SHCHcy;":"Щ","shchcy;":"щ","SHcy;":"Ш","shcy;":"ш","ShortDownArrow;":"↓","ShortLeftArrow;":"←","shortmid;":"∣","shortparallel;":"∥","ShortRightArrow;":"→","ShortUpArrow;":"↑","shy;":"­","shy":"­","Sigma;":"Σ","sigma;":"σ","sigmaf;":"ς","sigmav;":"ς","sim;":"∼","simdot;":"⩪","sime;":"≃","simeq;":"≃","simg;":"⪞","simgE;":"⪠","siml;":"⪝","simlE;":"⪟","simne;":"≆","simplus;":"⨤","simrarr;":"⥲","slarr;":"←","SmallCircle;":"∘","smallsetminus;":"∖","smashp;":"⨳","smeparsl;":"⧤","smid;":"∣","smile;":"⌣","smt;":"⪪","smte;":"⪬","smtes;":"⪬︀","SOFTcy;":"Ь","softcy;":"ь","sol;":"/","solb;":"⧄","solbar;":"⌿","Sopf;":"𝕊","sopf;":"𝕤","spades;":"♠","spadesuit;":"♠","spar;":"∥","sqcap;":"⊓","sqcaps;":"⊓︀","sqcup;":"⊔","sqcups;":"⊔︀","Sqrt;":"√","sqsub;":"⊏","sqsube;":"⊑","sqsubset;":"⊏","sqsubseteq;":"⊑","sqsup;":"⊐","sqsupe;":"⊒","sqsupset;":"⊐","sqsupseteq;":"⊒","squ;":"□","Square;":"□","square;":"□","SquareIntersection;":"⊓","SquareSubset;":"⊏","SquareSubsetEqual;":"⊑","SquareSuperset;":"⊐","SquareSupersetEqual;":"⊒","SquareUnion;":"⊔","squarf;":"▪","squf;":"▪","srarr;":"→","Sscr;":"𝒮","sscr;":"𝓈","ssetmn;":"∖","ssmile;":"⌣","sstarf;":"⋆","Star;":"⋆","star;":"☆","starf;":"★","straightepsilon;":"ϵ","straightphi;":"ϕ","strns;":"¯","Sub;":"⋐","sub;":"⊂","subdot;":"⪽","subE;":"⫅","sube;":"⊆","subedot;":"⫃","submult;":"⫁","subnE;":"⫋","subne;":"⊊","subplus;":"⪿","subrarr;":"⥹","Subset;":"⋐","subset;":"⊂","subseteq;":"⊆","subseteqq;":"⫅","SubsetEqual;":"⊆","subsetneq;":"⊊","subsetneqq;":"⫋","subsim;":"⫇","subsub;":"⫕","subsup;":"⫓","succ;":"≻","succapprox;":"⪸","succcurlyeq;":"≽","Succeeds;":"≻","SucceedsEqual;":"⪰","SucceedsSlantEqual;":"≽","SucceedsTilde;":"≿","succeq;":"⪰","succnapprox;":"⪺","succneqq;":"⪶","succnsim;":"⋩","succsim;":"≿","SuchThat;":"∋","Sum;":"∑","sum;":"∑","sung;":"♪","Sup;":"⋑","sup;":"⊃","sup1;":"¹","sup1":"¹","sup2;":"²","sup2":"²","sup3;":"³","sup3":"³","supdot;":"⪾","supdsub;":"⫘","supE;":"⫆","supe;":"⊇","supedot;":"⫄","Superset;":"⊃","SupersetEqual;":"⊇","suphsol;":"⟉","suphsub;":"⫗","suplarr;":"⥻","supmult;":"⫂","supnE;":"⫌","supne;":"⊋","supplus;":"⫀","Supset;":"⋑","supset;":"⊃","supseteq;":"⊇","supseteqq;":"⫆","supsetneq;":"⊋","supsetneqq;":"⫌","supsim;":"⫈","supsub;":"⫔","supsup;":"⫖","swarhk;":"⤦","swArr;":"⇙","swarr;":"↙","swarrow;":"↙","swnwar;":"⤪","szlig;":"ß","szlig":"ß","Tab;":"\\t","target;":"⌖","Tau;":"Τ","tau;":"τ","tbrk;":"⎴","Tcaron;":"Ť","tcaron;":"ť","Tcedil;":"Ţ","tcedil;":"ţ","Tcy;":"Т","tcy;":"т","tdot;":"⃛","telrec;":"⌕","Tfr;":"𝔗","tfr;":"𝔱","there4;":"∴","Therefore;":"∴","therefore;":"∴","Theta;":"Θ","theta;":"θ","thetasym;":"ϑ","thetav;":"ϑ","thickapprox;":"≈","thicksim;":"∼","ThickSpace;":"  ","thinsp;":" ","ThinSpace;":" ","thkap;":"≈","thksim;":"∼","THORN;":"Þ","THORN":"Þ","thorn;":"þ","thorn":"þ","Tilde;":"∼","tilde;":"˜","TildeEqual;":"≃","TildeFullEqual;":"≅","TildeTilde;":"≈","times;":"×","times":"×","timesb;":"⊠","timesbar;":"⨱","timesd;":"⨰","tint;":"∭","toea;":"⤨","top;":"⊤","topbot;":"⌶","topcir;":"⫱","Topf;":"𝕋","topf;":"𝕥","topfork;":"⫚","tosa;":"⤩","tprime;":"‴","TRADE;":"™","trade;":"™","triangle;":"▵","triangledown;":"▿","triangleleft;":"◃","trianglelefteq;":"⊴","triangleq;":"≜","triangleright;":"▹","trianglerighteq;":"⊵","tridot;":"◬","trie;":"≜","triminus;":"⨺","TripleDot;":"⃛","triplus;":"⨹","trisb;":"⧍","tritime;":"⨻","trpezium;":"⏢","Tscr;":"𝒯","tscr;":"𝓉","TScy;":"Ц","tscy;":"ц","TSHcy;":"Ћ","tshcy;":"ћ","Tstrok;":"Ŧ","tstrok;":"ŧ","twixt;":"≬","twoheadleftarrow;":"↞","twoheadrightarrow;":"↠","Uacute;":"Ú","Uacute":"Ú","uacute;":"ú","uacute":"ú","Uarr;":"↟","uArr;":"⇑","uarr;":"↑","Uarrocir;":"⥉","Ubrcy;":"Ў","ubrcy;":"ў","Ubreve;":"Ŭ","ubreve;":"ŭ","Ucirc;":"Û","Ucirc":"Û","ucirc;":"û","ucirc":"û","Ucy;":"У","ucy;":"у","udarr;":"⇅","Udblac;":"Ű","udblac;":"ű","udhar;":"⥮","ufisht;":"⥾","Ufr;":"𝔘","ufr;":"𝔲","Ugrave;":"Ù","Ugrave":"Ù","ugrave;":"ù","ugrave":"ù","uHar;":"⥣","uharl;":"↿","uharr;":"↾","uhblk;":"▀","ulcorn;":"⌜","ulcorner;":"⌜","ulcrop;":"⌏","ultri;":"◸","Umacr;":"Ū","umacr;":"ū","uml;":"¨","uml":"¨","UnderBar;":"_","UnderBrace;":"⏟","UnderBracket;":"⎵","UnderParenthesis;":"⏝","Union;":"⋃","UnionPlus;":"⊎","Uogon;":"Ų","uogon;":"ų","Uopf;":"𝕌","uopf;":"𝕦","UpArrow;":"↑","Uparrow;":"⇑","uparrow;":"↑","UpArrowBar;":"⤒","UpArrowDownArrow;":"⇅","UpDownArrow;":"↕","Updownarrow;":"⇕","updownarrow;":"↕","UpEquilibrium;":"⥮","upharpoonleft;":"↿","upharpoonright;":"↾","uplus;":"⊎","UpperLeftArrow;":"↖","UpperRightArrow;":"↗","Upsi;":"ϒ","upsi;":"υ","upsih;":"ϒ","Upsilon;":"Υ","upsilon;":"υ","UpTee;":"⊥","UpTeeArrow;":"↥","upuparrows;":"⇈","urcorn;":"⌝","urcorner;":"⌝","urcrop;":"⌎","Uring;":"Ů","uring;":"ů","urtri;":"◹","Uscr;":"𝒰","uscr;":"𝓊","utdot;":"⋰","Utilde;":"Ũ","utilde;":"ũ","utri;":"▵","utrif;":"▴","uuarr;":"⇈","Uuml;":"Ü","Uuml":"Ü","uuml;":"ü","uuml":"ü","uwangle;":"⦧","vangrt;":"⦜","varepsilon;":"ϵ","varkappa;":"ϰ","varnothing;":"∅","varphi;":"ϕ","varpi;":"ϖ","varpropto;":"∝","vArr;":"⇕","varr;":"↕","varrho;":"ϱ","varsigma;":"ς","varsubsetneq;":"⊊︀","varsubsetneqq;":"⫋︀","varsupsetneq;":"⊋︀","varsupsetneqq;":"⫌︀","vartheta;":"ϑ","vartriangleleft;":"⊲","vartriangleright;":"⊳","Vbar;":"⫫","vBar;":"⫨","vBarv;":"⫩","Vcy;":"В","vcy;":"в","VDash;":"⊫","Vdash;":"⊩","vDash;":"⊨","vdash;":"⊢","Vdashl;":"⫦","Vee;":"⋁","vee;":"∨","veebar;":"⊻","veeeq;":"≚","vellip;":"⋮","Verbar;":"‖","verbar;":"|","Vert;":"‖","vert;":"|","VerticalBar;":"∣","VerticalLine;":"|","VerticalSeparator;":"❘","VerticalTilde;":"≀","VeryThinSpace;":" ","Vfr;":"𝔙","vfr;":"𝔳","vltri;":"⊲","vnsub;":"⊂⃒","vnsup;":"⊃⃒","Vopf;":"𝕍","vopf;":"𝕧","vprop;":"∝","vrtri;":"⊳","Vscr;":"𝒱","vscr;":"𝓋","vsubnE;":"⫋︀","vsubne;":"⊊︀","vsupnE;":"⫌︀","vsupne;":"⊋︀","Vvdash;":"⊪","vzigzag;":"⦚","Wcirc;":"Ŵ","wcirc;":"ŵ","wedbar;":"⩟","Wedge;":"⋀","wedge;":"∧","wedgeq;":"≙","weierp;":"℘","Wfr;":"𝔚","wfr;":"𝔴","Wopf;":"𝕎","wopf;":"𝕨","wp;":"℘","wr;":"≀","wreath;":"≀","Wscr;":"𝒲","wscr;":"𝓌","xcap;":"⋂","xcirc;":"◯","xcup;":"⋃","xdtri;":"▽","Xfr;":"𝔛","xfr;":"𝔵","xhArr;":"⟺","xharr;":"⟷","Xi;":"Ξ","xi;":"ξ","xlArr;":"⟸","xlarr;":"⟵","xmap;":"⟼","xnis;":"⋻","xodot;":"⨀","Xopf;":"𝕏","xopf;":"𝕩","xoplus;":"⨁","xotime;":"⨂","xrArr;":"⟹","xrarr;":"⟶","Xscr;":"𝒳","xscr;":"𝓍","xsqcup;":"⨆","xuplus;":"⨄","xutri;":"△","xvee;":"⋁","xwedge;":"⋀","Yacute;":"Ý","Yacute":"Ý","yacute;":"ý","yacute":"ý","YAcy;":"Я","yacy;":"я","Ycirc;":"Ŷ","ycirc;":"ŷ","Ycy;":"Ы","ycy;":"ы","yen;":"¥","yen":"¥","Yfr;":"𝔜","yfr;":"𝔶","YIcy;":"Ї","yicy;":"ї","Yopf;":"𝕐","yopf;":"𝕪","Yscr;":"𝒴","yscr;":"𝓎","YUcy;":"Ю","yucy;":"ю","Yuml;":"Ÿ","yuml;":"ÿ","yuml":"ÿ","Zacute;":"Ź","zacute;":"ź","Zcaron;":"Ž","zcaron;":"ž","Zcy;":"З","zcy;":"з","Zdot;":"Ż","zdot;":"ż","zeetrf;":"ℨ","ZeroWidthSpace;":"​","Zeta;":"Ζ","zeta;":"ζ","Zfr;":"ℨ","zfr;":"𝔷","ZHcy;":"Ж","zhcy;":"ж","zigrarr;":"⇝","Zopf;":"ℤ","zopf;":"𝕫","Zscr;":"𝒵","zscr;":"𝓏","zwj;":"‍","zwnj;":"‌"}')},3123:e=>{"use strict";e.exports=JSON.parse('{"9":"Tab;","10":"NewLine;","33":"excl;","34":"quot;","35":"num;","36":"dollar;","37":"percnt;","38":"amp;","39":"apos;","40":"lpar;","41":"rpar;","42":"midast;","43":"plus;","44":"comma;","46":"period;","47":"sol;","58":"colon;","59":"semi;","60":"lt;","61":"equals;","62":"gt;","63":"quest;","64":"commat;","91":"lsqb;","92":"bsol;","93":"rsqb;","94":"Hat;","95":"UnderBar;","96":"grave;","123":"lcub;","124":"VerticalLine;","125":"rcub;","160":"NonBreakingSpace;","161":"iexcl;","162":"cent;","163":"pound;","164":"curren;","165":"yen;","166":"brvbar;","167":"sect;","168":"uml;","169":"copy;","170":"ordf;","171":"laquo;","172":"not;","173":"shy;","174":"reg;","175":"strns;","176":"deg;","177":"pm;","178":"sup2;","179":"sup3;","180":"DiacriticalAcute;","181":"micro;","182":"para;","183":"middot;","184":"Cedilla;","185":"sup1;","186":"ordm;","187":"raquo;","188":"frac14;","189":"half;","190":"frac34;","191":"iquest;","192":"Agrave;","193":"Aacute;","194":"Acirc;","195":"Atilde;","196":"Auml;","197":"Aring;","198":"AElig;","199":"Ccedil;","200":"Egrave;","201":"Eacute;","202":"Ecirc;","203":"Euml;","204":"Igrave;","205":"Iacute;","206":"Icirc;","207":"Iuml;","208":"ETH;","209":"Ntilde;","210":"Ograve;","211":"Oacute;","212":"Ocirc;","213":"Otilde;","214":"Ouml;","215":"times;","216":"Oslash;","217":"Ugrave;","218":"Uacute;","219":"Ucirc;","220":"Uuml;","221":"Yacute;","222":"THORN;","223":"szlig;","224":"agrave;","225":"aacute;","226":"acirc;","227":"atilde;","228":"auml;","229":"aring;","230":"aelig;","231":"ccedil;","232":"egrave;","233":"eacute;","234":"ecirc;","235":"euml;","236":"igrave;","237":"iacute;","238":"icirc;","239":"iuml;","240":"eth;","241":"ntilde;","242":"ograve;","243":"oacute;","244":"ocirc;","245":"otilde;","246":"ouml;","247":"divide;","248":"oslash;","249":"ugrave;","250":"uacute;","251":"ucirc;","252":"uuml;","253":"yacute;","254":"thorn;","255":"yuml;","256":"Amacr;","257":"amacr;","258":"Abreve;","259":"abreve;","260":"Aogon;","261":"aogon;","262":"Cacute;","263":"cacute;","264":"Ccirc;","265":"ccirc;","266":"Cdot;","267":"cdot;","268":"Ccaron;","269":"ccaron;","270":"Dcaron;","271":"dcaron;","272":"Dstrok;","273":"dstrok;","274":"Emacr;","275":"emacr;","278":"Edot;","279":"edot;","280":"Eogon;","281":"eogon;","282":"Ecaron;","283":"ecaron;","284":"Gcirc;","285":"gcirc;","286":"Gbreve;","287":"gbreve;","288":"Gdot;","289":"gdot;","290":"Gcedil;","292":"Hcirc;","293":"hcirc;","294":"Hstrok;","295":"hstrok;","296":"Itilde;","297":"itilde;","298":"Imacr;","299":"imacr;","302":"Iogon;","303":"iogon;","304":"Idot;","305":"inodot;","306":"IJlig;","307":"ijlig;","308":"Jcirc;","309":"jcirc;","310":"Kcedil;","311":"kcedil;","312":"kgreen;","313":"Lacute;","314":"lacute;","315":"Lcedil;","316":"lcedil;","317":"Lcaron;","318":"lcaron;","319":"Lmidot;","320":"lmidot;","321":"Lstrok;","322":"lstrok;","323":"Nacute;","324":"nacute;","325":"Ncedil;","326":"ncedil;","327":"Ncaron;","328":"ncaron;","329":"napos;","330":"ENG;","331":"eng;","332":"Omacr;","333":"omacr;","336":"Odblac;","337":"odblac;","338":"OElig;","339":"oelig;","340":"Racute;","341":"racute;","342":"Rcedil;","343":"rcedil;","344":"Rcaron;","345":"rcaron;","346":"Sacute;","347":"sacute;","348":"Scirc;","349":"scirc;","350":"Scedil;","351":"scedil;","352":"Scaron;","353":"scaron;","354":"Tcedil;","355":"tcedil;","356":"Tcaron;","357":"tcaron;","358":"Tstrok;","359":"tstrok;","360":"Utilde;","361":"utilde;","362":"Umacr;","363":"umacr;","364":"Ubreve;","365":"ubreve;","366":"Uring;","367":"uring;","368":"Udblac;","369":"udblac;","370":"Uogon;","371":"uogon;","372":"Wcirc;","373":"wcirc;","374":"Ycirc;","375":"ycirc;","376":"Yuml;","377":"Zacute;","378":"zacute;","379":"Zdot;","380":"zdot;","381":"Zcaron;","382":"zcaron;","402":"fnof;","437":"imped;","501":"gacute;","567":"jmath;","710":"circ;","711":"Hacek;","728":"breve;","729":"dot;","730":"ring;","731":"ogon;","732":"tilde;","733":"DiacriticalDoubleAcute;","785":"DownBreve;","913":"Alpha;","914":"Beta;","915":"Gamma;","916":"Delta;","917":"Epsilon;","918":"Zeta;","919":"Eta;","920":"Theta;","921":"Iota;","922":"Kappa;","923":"Lambda;","924":"Mu;","925":"Nu;","926":"Xi;","927":"Omicron;","928":"Pi;","929":"Rho;","931":"Sigma;","932":"Tau;","933":"Upsilon;","934":"Phi;","935":"Chi;","936":"Psi;","937":"Omega;","945":"alpha;","946":"beta;","947":"gamma;","948":"delta;","949":"epsilon;","950":"zeta;","951":"eta;","952":"theta;","953":"iota;","954":"kappa;","955":"lambda;","956":"mu;","957":"nu;","958":"xi;","959":"omicron;","960":"pi;","961":"rho;","962":"varsigma;","963":"sigma;","964":"tau;","965":"upsilon;","966":"phi;","967":"chi;","968":"psi;","969":"omega;","977":"vartheta;","978":"upsih;","981":"varphi;","982":"varpi;","988":"Gammad;","989":"gammad;","1008":"varkappa;","1009":"varrho;","1013":"varepsilon;","1014":"bepsi;","1025":"IOcy;","1026":"DJcy;","1027":"GJcy;","1028":"Jukcy;","1029":"DScy;","1030":"Iukcy;","1031":"YIcy;","1032":"Jsercy;","1033":"LJcy;","1034":"NJcy;","1035":"TSHcy;","1036":"KJcy;","1038":"Ubrcy;","1039":"DZcy;","1040":"Acy;","1041":"Bcy;","1042":"Vcy;","1043":"Gcy;","1044":"Dcy;","1045":"IEcy;","1046":"ZHcy;","1047":"Zcy;","1048":"Icy;","1049":"Jcy;","1050":"Kcy;","1051":"Lcy;","1052":"Mcy;","1053":"Ncy;","1054":"Ocy;","1055":"Pcy;","1056":"Rcy;","1057":"Scy;","1058":"Tcy;","1059":"Ucy;","1060":"Fcy;","1061":"KHcy;","1062":"TScy;","1063":"CHcy;","1064":"SHcy;","1065":"SHCHcy;","1066":"HARDcy;","1067":"Ycy;","1068":"SOFTcy;","1069":"Ecy;","1070":"YUcy;","1071":"YAcy;","1072":"acy;","1073":"bcy;","1074":"vcy;","1075":"gcy;","1076":"dcy;","1077":"iecy;","1078":"zhcy;","1079":"zcy;","1080":"icy;","1081":"jcy;","1082":"kcy;","1083":"lcy;","1084":"mcy;","1085":"ncy;","1086":"ocy;","1087":"pcy;","1088":"rcy;","1089":"scy;","1090":"tcy;","1091":"ucy;","1092":"fcy;","1093":"khcy;","1094":"tscy;","1095":"chcy;","1096":"shcy;","1097":"shchcy;","1098":"hardcy;","1099":"ycy;","1100":"softcy;","1101":"ecy;","1102":"yucy;","1103":"yacy;","1105":"iocy;","1106":"djcy;","1107":"gjcy;","1108":"jukcy;","1109":"dscy;","1110":"iukcy;","1111":"yicy;","1112":"jsercy;","1113":"ljcy;","1114":"njcy;","1115":"tshcy;","1116":"kjcy;","1118":"ubrcy;","1119":"dzcy;","8194":"ensp;","8195":"emsp;","8196":"emsp13;","8197":"emsp14;","8199":"numsp;","8200":"puncsp;","8201":"ThinSpace;","8202":"VeryThinSpace;","8203":"ZeroWidthSpace;","8204":"zwnj;","8205":"zwj;","8206":"lrm;","8207":"rlm;","8208":"hyphen;","8211":"ndash;","8212":"mdash;","8213":"horbar;","8214":"Vert;","8216":"OpenCurlyQuote;","8217":"rsquor;","8218":"sbquo;","8220":"OpenCurlyDoubleQuote;","8221":"rdquor;","8222":"ldquor;","8224":"dagger;","8225":"ddagger;","8226":"bullet;","8229":"nldr;","8230":"mldr;","8240":"permil;","8241":"pertenk;","8242":"prime;","8243":"Prime;","8244":"tprime;","8245":"bprime;","8249":"lsaquo;","8250":"rsaquo;","8254":"OverBar;","8257":"caret;","8259":"hybull;","8260":"frasl;","8271":"bsemi;","8279":"qprime;","8287":"MediumSpace;","8288":"NoBreak;","8289":"ApplyFunction;","8290":"it;","8291":"InvisibleComma;","8364":"euro;","8411":"TripleDot;","8412":"DotDot;","8450":"Copf;","8453":"incare;","8458":"gscr;","8459":"Hscr;","8460":"Poincareplane;","8461":"quaternions;","8462":"planckh;","8463":"plankv;","8464":"Iscr;","8465":"imagpart;","8466":"Lscr;","8467":"ell;","8469":"Nopf;","8470":"numero;","8471":"copysr;","8472":"wp;","8473":"primes;","8474":"rationals;","8475":"Rscr;","8476":"Rfr;","8477":"Ropf;","8478":"rx;","8482":"trade;","8484":"Zopf;","8487":"mho;","8488":"Zfr;","8489":"iiota;","8492":"Bscr;","8493":"Cfr;","8495":"escr;","8496":"expectation;","8497":"Fscr;","8499":"phmmat;","8500":"oscr;","8501":"aleph;","8502":"beth;","8503":"gimel;","8504":"daleth;","8517":"DD;","8518":"DifferentialD;","8519":"exponentiale;","8520":"ImaginaryI;","8531":"frac13;","8532":"frac23;","8533":"frac15;","8534":"frac25;","8535":"frac35;","8536":"frac45;","8537":"frac16;","8538":"frac56;","8539":"frac18;","8540":"frac38;","8541":"frac58;","8542":"frac78;","8592":"slarr;","8593":"uparrow;","8594":"srarr;","8595":"ShortDownArrow;","8596":"leftrightarrow;","8597":"varr;","8598":"UpperLeftArrow;","8599":"UpperRightArrow;","8600":"searrow;","8601":"swarrow;","8602":"nleftarrow;","8603":"nrightarrow;","8605":"rightsquigarrow;","8606":"twoheadleftarrow;","8607":"Uarr;","8608":"twoheadrightarrow;","8609":"Darr;","8610":"leftarrowtail;","8611":"rightarrowtail;","8612":"mapstoleft;","8613":"UpTeeArrow;","8614":"RightTeeArrow;","8615":"mapstodown;","8617":"larrhk;","8618":"rarrhk;","8619":"looparrowleft;","8620":"rarrlp;","8621":"leftrightsquigarrow;","8622":"nleftrightarrow;","8624":"lsh;","8625":"rsh;","8626":"ldsh;","8627":"rdsh;","8629":"crarr;","8630":"curvearrowleft;","8631":"curvearrowright;","8634":"olarr;","8635":"orarr;","8636":"lharu;","8637":"lhard;","8638":"upharpoonright;","8639":"upharpoonleft;","8640":"RightVector;","8641":"rightharpoondown;","8642":"RightDownVector;","8643":"LeftDownVector;","8644":"rlarr;","8645":"UpArrowDownArrow;","8646":"lrarr;","8647":"llarr;","8648":"uuarr;","8649":"rrarr;","8650":"downdownarrows;","8651":"ReverseEquilibrium;","8652":"rlhar;","8653":"nLeftarrow;","8654":"nLeftrightarrow;","8655":"nRightarrow;","8656":"Leftarrow;","8657":"Uparrow;","8658":"Rightarrow;","8659":"Downarrow;","8660":"Leftrightarrow;","8661":"vArr;","8662":"nwArr;","8663":"neArr;","8664":"seArr;","8665":"swArr;","8666":"Lleftarrow;","8667":"Rrightarrow;","8669":"zigrarr;","8676":"LeftArrowBar;","8677":"RightArrowBar;","8693":"duarr;","8701":"loarr;","8702":"roarr;","8703":"hoarr;","8704":"forall;","8705":"complement;","8706":"PartialD;","8707":"Exists;","8708":"NotExists;","8709":"varnothing;","8711":"nabla;","8712":"isinv;","8713":"notinva;","8715":"SuchThat;","8716":"NotReverseElement;","8719":"Product;","8720":"Coproduct;","8721":"sum;","8722":"minus;","8723":"mp;","8724":"plusdo;","8726":"ssetmn;","8727":"lowast;","8728":"SmallCircle;","8730":"Sqrt;","8733":"vprop;","8734":"infin;","8735":"angrt;","8736":"angle;","8737":"measuredangle;","8738":"angsph;","8739":"VerticalBar;","8740":"nsmid;","8741":"spar;","8742":"nspar;","8743":"wedge;","8744":"vee;","8745":"cap;","8746":"cup;","8747":"Integral;","8748":"Int;","8749":"tint;","8750":"oint;","8751":"DoubleContourIntegral;","8752":"Cconint;","8753":"cwint;","8754":"cwconint;","8755":"CounterClockwiseContourIntegral;","8756":"therefore;","8757":"because;","8758":"ratio;","8759":"Proportion;","8760":"minusd;","8762":"mDDot;","8763":"homtht;","8764":"Tilde;","8765":"bsim;","8766":"mstpos;","8767":"acd;","8768":"wreath;","8769":"nsim;","8770":"esim;","8771":"TildeEqual;","8772":"nsimeq;","8773":"TildeFullEqual;","8774":"simne;","8775":"NotTildeFullEqual;","8776":"TildeTilde;","8777":"NotTildeTilde;","8778":"approxeq;","8779":"apid;","8780":"bcong;","8781":"CupCap;","8782":"HumpDownHump;","8783":"HumpEqual;","8784":"esdot;","8785":"eDot;","8786":"fallingdotseq;","8787":"risingdotseq;","8788":"coloneq;","8789":"eqcolon;","8790":"eqcirc;","8791":"cire;","8793":"wedgeq;","8794":"veeeq;","8796":"trie;","8799":"questeq;","8800":"NotEqual;","8801":"equiv;","8802":"NotCongruent;","8804":"leq;","8805":"GreaterEqual;","8806":"LessFullEqual;","8807":"GreaterFullEqual;","8808":"lneqq;","8809":"gneqq;","8810":"NestedLessLess;","8811":"NestedGreaterGreater;","8812":"twixt;","8813":"NotCupCap;","8814":"NotLess;","8815":"NotGreater;","8816":"NotLessEqual;","8817":"NotGreaterEqual;","8818":"lsim;","8819":"gtrsim;","8820":"NotLessTilde;","8821":"NotGreaterTilde;","8822":"lg;","8823":"gtrless;","8824":"ntlg;","8825":"ntgl;","8826":"Precedes;","8827":"Succeeds;","8828":"PrecedesSlantEqual;","8829":"SucceedsSlantEqual;","8830":"prsim;","8831":"succsim;","8832":"nprec;","8833":"nsucc;","8834":"subset;","8835":"supset;","8836":"nsub;","8837":"nsup;","8838":"SubsetEqual;","8839":"supseteq;","8840":"nsubseteq;","8841":"nsupseteq;","8842":"subsetneq;","8843":"supsetneq;","8845":"cupdot;","8846":"uplus;","8847":"SquareSubset;","8848":"SquareSuperset;","8849":"SquareSubsetEqual;","8850":"SquareSupersetEqual;","8851":"SquareIntersection;","8852":"SquareUnion;","8853":"oplus;","8854":"ominus;","8855":"otimes;","8856":"osol;","8857":"odot;","8858":"ocir;","8859":"oast;","8861":"odash;","8862":"plusb;","8863":"minusb;","8864":"timesb;","8865":"sdotb;","8866":"vdash;","8867":"LeftTee;","8868":"top;","8869":"UpTee;","8871":"models;","8872":"vDash;","8873":"Vdash;","8874":"Vvdash;","8875":"VDash;","8876":"nvdash;","8877":"nvDash;","8878":"nVdash;","8879":"nVDash;","8880":"prurel;","8882":"vltri;","8883":"vrtri;","8884":"trianglelefteq;","8885":"trianglerighteq;","8886":"origof;","8887":"imof;","8888":"mumap;","8889":"hercon;","8890":"intercal;","8891":"veebar;","8893":"barvee;","8894":"angrtvb;","8895":"lrtri;","8896":"xwedge;","8897":"xvee;","8898":"xcap;","8899":"xcup;","8900":"diamond;","8901":"sdot;","8902":"Star;","8903":"divonx;","8904":"bowtie;","8905":"ltimes;","8906":"rtimes;","8907":"lthree;","8908":"rthree;","8909":"bsime;","8910":"cuvee;","8911":"cuwed;","8912":"Subset;","8913":"Supset;","8914":"Cap;","8915":"Cup;","8916":"pitchfork;","8917":"epar;","8918":"ltdot;","8919":"gtrdot;","8920":"Ll;","8921":"ggg;","8922":"LessEqualGreater;","8923":"gtreqless;","8926":"curlyeqprec;","8927":"curlyeqsucc;","8928":"nprcue;","8929":"nsccue;","8930":"nsqsube;","8931":"nsqsupe;","8934":"lnsim;","8935":"gnsim;","8936":"prnsim;","8937":"succnsim;","8938":"ntriangleleft;","8939":"ntriangleright;","8940":"ntrianglelefteq;","8941":"ntrianglerighteq;","8942":"vellip;","8943":"ctdot;","8944":"utdot;","8945":"dtdot;","8946":"disin;","8947":"isinsv;","8948":"isins;","8949":"isindot;","8950":"notinvc;","8951":"notinvb;","8953":"isinE;","8954":"nisd;","8955":"xnis;","8956":"nis;","8957":"notnivc;","8958":"notnivb;","8965":"barwedge;","8966":"doublebarwedge;","8968":"LeftCeiling;","8969":"RightCeiling;","8970":"lfloor;","8971":"RightFloor;","8972":"drcrop;","8973":"dlcrop;","8974":"urcrop;","8975":"ulcrop;","8976":"bnot;","8978":"profline;","8979":"profsurf;","8981":"telrec;","8982":"target;","8988":"ulcorner;","8989":"urcorner;","8990":"llcorner;","8991":"lrcorner;","8994":"sfrown;","8995":"ssmile;","9005":"cylcty;","9006":"profalar;","9014":"topbot;","9021":"ovbar;","9023":"solbar;","9084":"angzarr;","9136":"lmoustache;","9137":"rmoustache;","9140":"tbrk;","9141":"UnderBracket;","9142":"bbrktbrk;","9180":"OverParenthesis;","9181":"UnderParenthesis;","9182":"OverBrace;","9183":"UnderBrace;","9186":"trpezium;","9191":"elinters;","9251":"blank;","9416":"oS;","9472":"HorizontalLine;","9474":"boxv;","9484":"boxdr;","9488":"boxdl;","9492":"boxur;","9496":"boxul;","9500":"boxvr;","9508":"boxvl;","9516":"boxhd;","9524":"boxhu;","9532":"boxvh;","9552":"boxH;","9553":"boxV;","9554":"boxdR;","9555":"boxDr;","9556":"boxDR;","9557":"boxdL;","9558":"boxDl;","9559":"boxDL;","9560":"boxuR;","9561":"boxUr;","9562":"boxUR;","9563":"boxuL;","9564":"boxUl;","9565":"boxUL;","9566":"boxvR;","9567":"boxVr;","9568":"boxVR;","9569":"boxvL;","9570":"boxVl;","9571":"boxVL;","9572":"boxHd;","9573":"boxhD;","9574":"boxHD;","9575":"boxHu;","9576":"boxhU;","9577":"boxHU;","9578":"boxvH;","9579":"boxVh;","9580":"boxVH;","9600":"uhblk;","9604":"lhblk;","9608":"block;","9617":"blk14;","9618":"blk12;","9619":"blk34;","9633":"square;","9642":"squf;","9643":"EmptyVerySmallSquare;","9645":"rect;","9646":"marker;","9649":"fltns;","9651":"xutri;","9652":"utrif;","9653":"utri;","9656":"rtrif;","9657":"triangleright;","9661":"xdtri;","9662":"dtrif;","9663":"triangledown;","9666":"ltrif;","9667":"triangleleft;","9674":"lozenge;","9675":"cir;","9708":"tridot;","9711":"xcirc;","9720":"ultri;","9721":"urtri;","9722":"lltri;","9723":"EmptySmallSquare;","9724":"FilledSmallSquare;","9733":"starf;","9734":"star;","9742":"phone;","9792":"female;","9794":"male;","9824":"spadesuit;","9827":"clubsuit;","9829":"heartsuit;","9830":"diams;","9834":"sung;","9837":"flat;","9838":"natural;","9839":"sharp;","10003":"checkmark;","10007":"cross;","10016":"maltese;","10038":"sext;","10072":"VerticalSeparator;","10098":"lbbrk;","10099":"rbbrk;","10184":"bsolhsub;","10185":"suphsol;","10214":"lobrk;","10215":"robrk;","10216":"LeftAngleBracket;","10217":"RightAngleBracket;","10218":"Lang;","10219":"Rang;","10220":"loang;","10221":"roang;","10229":"xlarr;","10230":"xrarr;","10231":"xharr;","10232":"xlArr;","10233":"xrArr;","10234":"xhArr;","10236":"xmap;","10239":"dzigrarr;","10498":"nvlArr;","10499":"nvrArr;","10500":"nvHarr;","10501":"Map;","10508":"lbarr;","10509":"rbarr;","10510":"lBarr;","10511":"rBarr;","10512":"RBarr;","10513":"DDotrahd;","10514":"UpArrowBar;","10515":"DownArrowBar;","10518":"Rarrtl;","10521":"latail;","10522":"ratail;","10523":"lAtail;","10524":"rAtail;","10525":"larrfs;","10526":"rarrfs;","10527":"larrbfs;","10528":"rarrbfs;","10531":"nwarhk;","10532":"nearhk;","10533":"searhk;","10534":"swarhk;","10535":"nwnear;","10536":"toea;","10537":"tosa;","10538":"swnwar;","10547":"rarrc;","10549":"cudarrr;","10550":"ldca;","10551":"rdca;","10552":"cudarrl;","10553":"larrpl;","10556":"curarrm;","10557":"cularrp;","10565":"rarrpl;","10568":"harrcir;","10569":"Uarrocir;","10570":"lurdshar;","10571":"ldrushar;","10574":"LeftRightVector;","10575":"RightUpDownVector;","10576":"DownLeftRightVector;","10577":"LeftUpDownVector;","10578":"LeftVectorBar;","10579":"RightVectorBar;","10580":"RightUpVectorBar;","10581":"RightDownVectorBar;","10582":"DownLeftVectorBar;","10583":"DownRightVectorBar;","10584":"LeftUpVectorBar;","10585":"LeftDownVectorBar;","10586":"LeftTeeVector;","10587":"RightTeeVector;","10588":"RightUpTeeVector;","10589":"RightDownTeeVector;","10590":"DownLeftTeeVector;","10591":"DownRightTeeVector;","10592":"LeftUpTeeVector;","10593":"LeftDownTeeVector;","10594":"lHar;","10595":"uHar;","10596":"rHar;","10597":"dHar;","10598":"luruhar;","10599":"ldrdhar;","10600":"ruluhar;","10601":"rdldhar;","10602":"lharul;","10603":"llhard;","10604":"rharul;","10605":"lrhard;","10606":"UpEquilibrium;","10607":"ReverseUpEquilibrium;","10608":"RoundImplies;","10609":"erarr;","10610":"simrarr;","10611":"larrsim;","10612":"rarrsim;","10613":"rarrap;","10614":"ltlarr;","10616":"gtrarr;","10617":"subrarr;","10619":"suplarr;","10620":"lfisht;","10621":"rfisht;","10622":"ufisht;","10623":"dfisht;","10629":"lopar;","10630":"ropar;","10635":"lbrke;","10636":"rbrke;","10637":"lbrkslu;","10638":"rbrksld;","10639":"lbrksld;","10640":"rbrkslu;","10641":"langd;","10642":"rangd;","10643":"lparlt;","10644":"rpargt;","10645":"gtlPar;","10646":"ltrPar;","10650":"vzigzag;","10652":"vangrt;","10653":"angrtvbd;","10660":"ange;","10661":"range;","10662":"dwangle;","10663":"uwangle;","10664":"angmsdaa;","10665":"angmsdab;","10666":"angmsdac;","10667":"angmsdad;","10668":"angmsdae;","10669":"angmsdaf;","10670":"angmsdag;","10671":"angmsdah;","10672":"bemptyv;","10673":"demptyv;","10674":"cemptyv;","10675":"raemptyv;","10676":"laemptyv;","10677":"ohbar;","10678":"omid;","10679":"opar;","10681":"operp;","10683":"olcross;","10684":"odsold;","10686":"olcir;","10687":"ofcir;","10688":"olt;","10689":"ogt;","10690":"cirscir;","10691":"cirE;","10692":"solb;","10693":"bsolb;","10697":"boxbox;","10701":"trisb;","10702":"rtriltri;","10703":"LeftTriangleBar;","10704":"RightTriangleBar;","10716":"iinfin;","10717":"infintie;","10718":"nvinfin;","10723":"eparsl;","10724":"smeparsl;","10725":"eqvparsl;","10731":"lozf;","10740":"RuleDelayed;","10742":"dsol;","10752":"xodot;","10753":"xoplus;","10754":"xotime;","10756":"xuplus;","10758":"xsqcup;","10764":"qint;","10765":"fpartint;","10768":"cirfnint;","10769":"awint;","10770":"rppolint;","10771":"scpolint;","10772":"npolint;","10773":"pointint;","10774":"quatint;","10775":"intlarhk;","10786":"pluscir;","10787":"plusacir;","10788":"simplus;","10789":"plusdu;","10790":"plussim;","10791":"plustwo;","10793":"mcomma;","10794":"minusdu;","10797":"loplus;","10798":"roplus;","10799":"Cross;","10800":"timesd;","10801":"timesbar;","10803":"smashp;","10804":"lotimes;","10805":"rotimes;","10806":"otimesas;","10807":"Otimes;","10808":"odiv;","10809":"triplus;","10810":"triminus;","10811":"tritime;","10812":"iprod;","10815":"amalg;","10816":"capdot;","10818":"ncup;","10819":"ncap;","10820":"capand;","10821":"cupor;","10822":"cupcap;","10823":"capcup;","10824":"cupbrcap;","10825":"capbrcup;","10826":"cupcup;","10827":"capcap;","10828":"ccups;","10829":"ccaps;","10832":"ccupssm;","10835":"And;","10836":"Or;","10837":"andand;","10838":"oror;","10839":"orslope;","10840":"andslope;","10842":"andv;","10843":"orv;","10844":"andd;","10845":"ord;","10847":"wedbar;","10854":"sdote;","10858":"simdot;","10861":"congdot;","10862":"easter;","10863":"apacir;","10864":"apE;","10865":"eplus;","10866":"pluse;","10867":"Esim;","10868":"Colone;","10869":"Equal;","10871":"eDDot;","10872":"equivDD;","10873":"ltcir;","10874":"gtcir;","10875":"ltquest;","10876":"gtquest;","10877":"LessSlantEqual;","10878":"GreaterSlantEqual;","10879":"lesdot;","10880":"gesdot;","10881":"lesdoto;","10882":"gesdoto;","10883":"lesdotor;","10884":"gesdotol;","10885":"lessapprox;","10886":"gtrapprox;","10887":"lneq;","10888":"gneq;","10889":"lnapprox;","10890":"gnapprox;","10891":"lesseqqgtr;","10892":"gtreqqless;","10893":"lsime;","10894":"gsime;","10895":"lsimg;","10896":"gsiml;","10897":"lgE;","10898":"glE;","10899":"lesges;","10900":"gesles;","10901":"eqslantless;","10902":"eqslantgtr;","10903":"elsdot;","10904":"egsdot;","10905":"el;","10906":"eg;","10909":"siml;","10910":"simg;","10911":"simlE;","10912":"simgE;","10913":"LessLess;","10914":"GreaterGreater;","10916":"glj;","10917":"gla;","10918":"ltcc;","10919":"gtcc;","10920":"lescc;","10921":"gescc;","10922":"smt;","10923":"lat;","10924":"smte;","10925":"late;","10926":"bumpE;","10927":"preceq;","10928":"succeq;","10931":"prE;","10932":"scE;","10933":"prnE;","10934":"succneqq;","10935":"precapprox;","10936":"succapprox;","10937":"prnap;","10938":"succnapprox;","10939":"Pr;","10940":"Sc;","10941":"subdot;","10942":"supdot;","10943":"subplus;","10944":"supplus;","10945":"submult;","10946":"supmult;","10947":"subedot;","10948":"supedot;","10949":"subseteqq;","10950":"supseteqq;","10951":"subsim;","10952":"supsim;","10955":"subsetneqq;","10956":"supsetneqq;","10959":"csub;","10960":"csup;","10961":"csube;","10962":"csupe;","10963":"subsup;","10964":"supsub;","10965":"subsub;","10966":"supsup;","10967":"suphsub;","10968":"supdsub;","10969":"forkv;","10970":"topfork;","10971":"mlcp;","10980":"DoubleLeftTee;","10982":"Vdashl;","10983":"Barv;","10984":"vBar;","10985":"vBarv;","10987":"Vbar;","10988":"Not;","10989":"bNot;","10990":"rnmid;","10991":"cirmid;","10992":"midcir;","10993":"topcir;","10994":"nhpar;","10995":"parsim;","11005":"parsl;","64256":"fflig;","64257":"filig;","64258":"fllig;","64259":"ffilig;","64260":"ffllig;"}')},1402:e=>{"use strict";e.exports=JSON.parse('{"name":"google-auth-library","version":"7.11.0","author":"Google Inc.","description":"Google APIs Authentication Client Library for Node.js","engines":{"node":">=10"},"main":"./build/src/index.js","types":"./build/src/index.d.ts","repository":"googleapis/google-auth-library-nodejs.git","keywords":["google","api","google apis","client","client library"],"dependencies":{"arrify":"^2.0.0","base64-js":"^1.3.0","ecdsa-sig-formatter":"^1.0.11","fast-text-encoding":"^1.0.0","gaxios":"^4.0.0","gcp-metadata":"^4.2.0","gtoken":"^5.0.4","jws":"^4.0.0","lru-cache":"^6.0.0"},"devDependencies":{"@compodoc/compodoc":"^1.1.7","@types/base64-js":"^1.2.5","@types/chai":"^4.1.7","@types/jws":"^3.1.0","@types/lru-cache":"^5.0.0","@types/mocha":"^8.0.0","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^16.0.0","@types/sinon":"^10.0.0","@types/tmp":"^0.2.0","assert-rejects":"^1.0.0","c8":"^7.0.0","chai":"^4.2.0","codecov":"^3.0.2","execa":"^5.0.0","gts":"^2.0.0","is-docker":"^2.0.0","karma":"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^5.0.0","keypair":"^1.0.4","linkinator":"^2.0.0","mocha":"^8.0.0","mv":"^2.1.1","ncp":"^2.0.0","nock":"^13.0.0","null-loader":"^4.0.0","puppeteer":"^13.0.0","sinon":"^12.0.0","tmp":"^0.2.0","ts-loader":"^8.0.0","typescript":"^3.8.3","webpack":"^5.21.2","webpack-cli":"^4.0.0"},"files":["build/src","!build/src/**/*.map"],"scripts":{"test":"c8 mocha build/test","clean":"gts clean","prepare":"npm run compile","lint":"gts check","compile":"tsc -p .","fix":"gts fix","pretest":"npm run compile","docs":"compodoc src/","samples-setup":"cd samples/ && npm link ../ && npm run setup && cd ../","samples-test":"cd samples/ && npm link ../ && npm test && cd ../","system-test":"mocha build/system-test --timeout 60000","presystem-test":"npm run compile","webpack":"webpack","browser-test":"karma start","docs-test":"linkinator docs","predocs-test":"npm run docs","prelint":"cd samples; npm link ../; npm install","precompile":"gts clean"},"license":"Apache-2.0"}')},3765:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana"},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana"},"image/avcs":{"source":"iana"},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var r=__webpack_module_cache__[e];if(r!==undefined){return r.exports}var i=__webpack_module_cache__[e]={exports:{}};var n=true;try{__webpack_modules__[e].call(i.exports,i,i.exports,__nccwpck_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(95);module.exports=__webpack_exports__})(); \ No newline at end of file +const n=i(7147);const a=i(2037);const s=i(1017);const o=i(6113);const c={fs:n.constants,os:a.constants};const l=i(4959);const p="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",d=/XXXXXX/,h=3,g=(c.O_CREAT||c.fs.O_CREAT)|(c.O_EXCL||c.fs.O_EXCL)|(c.O_RDWR||c.fs.O_RDWR),v=a.platform()==="win32",y=c.EBADF||c.os.errno.EBADF,b=c.ENOENT||c.os.errno.ENOENT,x=448,E=384,w="exit",C=[],T=n.rmdirSync.bind(n),_=l.sync;let I=false;function tmpName(e,r){const i=_parseArguments(e,r),a=i[0],s=i[1];try{_assertAndSanitizeOptions(a)}catch(e){return s(e)}let o=a.tries;(function _getUniqueName(){try{const e=_generateTmpName(a);n.stat(e,(function(r){if(!r){if(o-- >0)return _getUniqueName();return s(new Error("Could not get a unique tmp filename, max tries reached "+e))}s(null,e)}))}catch(e){s(e)}})()}function tmpNameSync(e){const r=_parseArguments(e),i=r[0];_assertAndSanitizeOptions(i);let a=i.tries;do{const e=_generateTmpName(i);try{n.statSync(e)}catch(r){return e}}while(a-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,r){const i=_parseArguments(e,r),a=i[0],s=i[1];tmpName(a,(function _tmpNameCreated(e,r){if(e)return s(e);n.open(r,g,a.mode||E,(function _fileCreated(e,i){if(e)return s(e);if(a.discardDescriptor){return n.close(i,(function _discardCallback(e){return s(e,r,undefined,_prepareTmpFileRemoveCallback(r,-1,a,false))}))}else{const e=a.discardDescriptor||a.detachDescriptor;s(null,r,i,_prepareTmpFileRemoveCallback(r,e?-1:i,a,false))}}))}))}function fileSync(e){const r=_parseArguments(e),i=r[0];const a=i.discardDescriptor||i.detachDescriptor;const s=tmpNameSync(i);var o=n.openSync(s,g,i.mode||E);if(i.discardDescriptor){n.closeSync(o);o=undefined}return{name:s,fd:o,removeCallback:_prepareTmpFileRemoveCallback(s,a?-1:o,i,true)}}function dir(e,r){const i=_parseArguments(e,r),a=i[0],s=i[1];tmpName(a,(function _tmpNameCreated(e,r){if(e)return s(e);n.mkdir(r,a.mode||x,(function _dirCreated(e){if(e)return s(e);s(null,r,_prepareTmpDirRemoveCallback(r,a,false))}))}))}function dirSync(e){const r=_parseArguments(e),i=r[0];const a=tmpNameSync(i);n.mkdirSync(a,i.mode||x);return{name:a,removeCallback:_prepareTmpDirRemoveCallback(a,i,true)}}function _removeFileAsync(e,r){const _handler=function(e){if(e&&!_isENOENT(e)){return r(e)}r()};if(0<=e[0])n.close(e[0],(function(){n.unlink(e[1],_handler)}));else n.unlink(e[1],_handler)}function _removeFileSync(e){let r=null;try{if(0<=e[0])n.closeSync(e[0])}catch(e){if(!_isEBADF(e)&&!_isENOENT(e))throw e}finally{try{n.unlinkSync(e[1])}catch(e){if(!_isENOENT(e))r=e}}if(r!==null){throw r}}function _prepareTmpFileRemoveCallback(e,r,i,n){const a=_prepareRemoveCallback(_removeFileSync,[r,e],n);const s=_prepareRemoveCallback(_removeFileAsync,[r,e],n,a);if(!i.keep)C.unshift(a);return n?a:s}function _prepareTmpDirRemoveCallback(e,r,i){const a=r.unsafeCleanup?l:n.rmdir.bind(n);const s=r.unsafeCleanup?_:T;const o=_prepareRemoveCallback(s,e,i);const c=_prepareRemoveCallback(a,e,i,o);if(!r.keep)C.unshift(o);return i?o:c}function _prepareRemoveCallback(e,r,i,n){let a=false;return function _cleanupCallback(s){if(!a){const o=n||_cleanupCallback;const c=C.indexOf(o);if(c>=0)C.splice(c,1);a=true;if(i||e===T||e===_){return e(r)}else{return e(r,s||function(){})}}}}function _garbageCollector(){if(!I)return;while(C.length){try{C[0]()}catch(e){}}}function _randomChars(e){let r=[],i=null;try{i=o.randomBytes(e)}catch(r){i=o.pseudoRandomBytes(e)}for(var n=0;n{e.exports=i(4219)},4219:(e,r,i)=>{"use strict";var n=i(1808);var a=i(4404);var s=i(3685);var o=i(5687);var c=i(2361);var l=i(9491);var p=i(3837);r.httpOverHttp=httpOverHttp;r.httpsOverHttp=httpsOverHttp;r.httpOverHttps=httpOverHttps;r.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var r=new TunnelingAgent(e);r.request=s.request;return r}function httpsOverHttp(e){var r=new TunnelingAgent(e);r.request=s.request;r.createSocket=createSecureSocket;r.defaultPort=443;return r}function httpOverHttps(e){var r=new TunnelingAgent(e);r.request=o.request;return r}function httpsOverHttps(e){var r=new TunnelingAgent(e);r.request=o.request;r.createSocket=createSecureSocket;r.defaultPort=443;return r}function TunnelingAgent(e){var r=this;r.options=e||{};r.proxyOptions=r.options.proxy||{};r.maxSockets=r.options.maxSockets||s.Agent.defaultMaxSockets;r.requests=[];r.sockets=[];r.on("free",(function onFree(e,i,n,a){var s=toOptions(i,n,a);for(var o=0,c=r.requests.length;o=this.maxSockets){a.requests.push(s);return}a.createSocket(s,(function(r){r.on("free",onFree);r.on("close",onCloseOrRemove);r.on("agentRemove",onCloseOrRemove);e.onSocket(r);function onFree(){a.emit("free",r,s)}function onCloseOrRemove(e){a.removeSocket(r);r.removeListener("free",onFree);r.removeListener("close",onCloseOrRemove);r.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,r){var i=this;var n={};i.sockets.push(n);var a=mergeOptions({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){a.localAddress=e.localAddress}if(a.proxyAuth){a.headers=a.headers||{};a.headers["Proxy-Authorization"]="Basic "+new Buffer(a.proxyAuth).toString("base64")}d("making CONNECT request");var s=i.request(a);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,r,i){process.nextTick((function(){onConnect(e,r,i)}))}function onConnect(a,o,c){s.removeAllListeners();o.removeAllListeners();if(a.statusCode!==200){d("tunneling socket could not be established, statusCode=%d",a.statusCode);o.destroy();var l=new Error("tunneling socket could not be established, "+"statusCode="+a.statusCode);l.code="ECONNRESET";e.request.emit("error",l);i.removeSocket(n);return}if(c.length>0){d("got illegal response body from proxy");o.destroy();var l=new Error("got illegal response body from proxy");l.code="ECONNRESET";e.request.emit("error",l);i.removeSocket(n);return}d("tunneling connection has established");i.sockets[i.sockets.indexOf(n)]=o;return r(o)}function onError(r){s.removeAllListeners();d("tunneling socket could not be established, cause=%s\n",r.message,r.stack);var a=new Error("tunneling socket could not be established, "+"cause="+r.message);a.code="ECONNRESET";e.request.emit("error",a);i.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var r=this.sockets.indexOf(e);if(r===-1){return}this.sockets.splice(r,1);var i=this.requests.shift();if(i){this.createSocket(i,(function(e){i.request.onSocket(e)}))}};function createSecureSocket(e,r){var i=this;TunnelingAgent.prototype.createSocket.call(i,e,(function(n){var s=e.request.getHeader("host");var o=mergeOptions({},i.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var c=a.connect(0,o);i.sockets[i.sockets.indexOf(n)]=c;r(c)}))}function toOptions(e,r,i){if(typeof e==="string"){return{host:e,port:r,localAddress:i}}return e}function mergeOptions(e){for(var r=1,i=arguments.length;r{var n=i(657).strict;e.exports=function typedarrayToBuffer(e){if(n(e)){var r=Buffer.from(e.buffer);if(e.byteLength!==e.buffer.byteLength){r=r.slice(e.byteOffset,e.byteOffset+e.byteLength)}return r}else{return Buffer.from(e)}}},5184:(e,r,i)=>{"use strict";const n=i(7332);e.exports=()=>n(32)},7127:(e,r,i)=>{e.exports=i(3837).deprecate},5840:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"v1",{enumerable:true,get:function(){return n.default}});Object.defineProperty(r,"v3",{enumerable:true,get:function(){return a.default}});Object.defineProperty(r,"v4",{enumerable:true,get:function(){return s.default}});Object.defineProperty(r,"v5",{enumerable:true,get:function(){return o.default}});Object.defineProperty(r,"NIL",{enumerable:true,get:function(){return c.default}});Object.defineProperty(r,"version",{enumerable:true,get:function(){return l.default}});Object.defineProperty(r,"validate",{enumerable:true,get:function(){return p.default}});Object.defineProperty(r,"stringify",{enumerable:true,get:function(){return d.default}});Object.defineProperty(r,"parse",{enumerable:true,get:function(){return h.default}});var n=_interopRequireDefault(i(8628));var a=_interopRequireDefault(i(6409));var s=_interopRequireDefault(i(5122));var o=_interopRequireDefault(i(9120));var c=_interopRequireDefault(i(5350));var l=_interopRequireDefault(i(1595));var p=_interopRequireDefault(i(6900));var d=_interopRequireDefault(i(8950));var h=_interopRequireDefault(i(2746));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},4569:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("md5").update(e).digest()}var a=md5;r["default"]=a},5350:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var i="00000000-0000-0000-0000-000000000000";r["default"]=i},2746:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(6900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}let r;const i=new Uint8Array(16);i[0]=(r=parseInt(e.slice(0,8),16))>>>24;i[1]=r>>>16&255;i[2]=r>>>8&255;i[3]=r&255;i[4]=(r=parseInt(e.slice(9,13),16))>>>8;i[5]=r&255;i[6]=(r=parseInt(e.slice(14,18),16))>>>8;i[7]=r&255;i[8]=(r=parseInt(e.slice(19,23),16))>>>8;i[9]=r&255;i[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255;i[11]=r/4294967296&255;i[12]=r>>>24&255;i[13]=r>>>16&255;i[14]=r>>>8&255;i[15]=r&255;return i}var a=parse;r["default"]=a},814:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;r["default"]=i},807:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=rng;var n=_interopRequireDefault(i(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=new Uint8Array(256);let s=a.length;function rng(){if(s>a.length-16){n.default.randomFillSync(a);s=0}return a.slice(s,s+=16)}},5274:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return n.default.createHash("sha1").update(e).digest()}var a=sha1;r["default"]=a},8950:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(6900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=[];for(let e=0;e<256;++e){a.push((e+256).toString(16).substr(1))}function stringify(e,r=0){const i=(a[e[r+0]]+a[e[r+1]]+a[e[r+2]]+a[e[r+3]]+"-"+a[e[r+4]]+a[e[r+5]]+"-"+a[e[r+6]]+a[e[r+7]]+"-"+a[e[r+8]]+a[e[r+9]]+"-"+a[e[r+10]]+a[e[r+11]]+a[e[r+12]]+a[e[r+13]]+a[e[r+14]]+a[e[r+15]]).toLowerCase();if(!(0,n.default)(i)){throw TypeError("Stringified UUID is invalid")}return i}var s=stringify;r["default"]=s},8628:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(807));var a=_interopRequireDefault(i(8950));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let s;let o;let c=0;let l=0;function v1(e,r,i){let p=r&&i||0;const d=r||new Array(16);e=e||{};let h=e.node||s;let g=e.clockseq!==undefined?e.clockseq:o;if(h==null||g==null){const r=e.random||(e.rng||n.default)();if(h==null){h=s=[r[0]|1,r[1],r[2],r[3],r[4],r[5]]}if(g==null){g=o=(r[6]<<8|r[7])&16383}}let v=e.msecs!==undefined?e.msecs:Date.now();let y=e.nsecs!==undefined?e.nsecs:l+1;const b=v-c+(y-l)/1e4;if(b<0&&e.clockseq===undefined){g=g+1&16383}if((b<0||v>c)&&e.nsecs===undefined){y=0}if(y>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}c=v;l=y;o=g;v+=122192928e5;const x=((v&268435455)*1e4+y)%4294967296;d[p++]=x>>>24&255;d[p++]=x>>>16&255;d[p++]=x>>>8&255;d[p++]=x&255;const E=v/4294967296*1e4&268435455;d[p++]=E>>>8&255;d[p++]=E&255;d[p++]=E>>>24&15|16;d[p++]=E>>>16&255;d[p++]=g>>>8|128;d[p++]=g&255;for(let e=0;e<6;++e){d[p+e]=h[e]}return r||(0,a.default)(d)}var p=v1;r["default"]=p},6409:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(5998));var a=_interopRequireDefault(i(4569));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=(0,n.default)("v3",48,a.default);var o=s;r["default"]=o},5998:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=_default;r.URL=r.DNS=void 0;var n=_interopRequireDefault(i(8950));var a=_interopRequireDefault(i(2746));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const r=[];for(let i=0;i{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(807));var a=_interopRequireDefault(i(8950));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,r,i){e=e||{};const s=e.random||(e.rng||n.default)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(r){i=i||0;for(let e=0;e<16;++e){r[i+e]=s[e]}return r}return(0,a.default)(s)}var s=v4;r["default"]=s},9120:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(5998));var a=_interopRequireDefault(i(5274));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=(0,n.default)("v5",80,a.default);var o=s;r["default"]=o},6900:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(814));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&n.default.test(e)}var a=validate;r["default"]=a},1595:(e,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var n=_interopRequireDefault(i(6900));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,n.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var a=version;r["default"]=a},2940:e=>{e.exports=wrappy;function wrappy(e,r){if(e&&r)return wrappy(e)(r);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(r){wrapper[r]=e[r]}));return wrapper;function wrapper(){var r=new Array(arguments.length);for(var i=0;i{"use strict";e.exports=writeFile;e.exports.sync=writeFileSync;e.exports._getTmpname=getTmpname;e.exports._cleanupOnExit=cleanupOnExit;const n=i(7147);const a=i(2527);const s=i(4931);const o=i(1017);const c=i(657);const l=i(1315);const{promisify:p}=i(3837);const d={};const h=function getId(){try{const e=i(1267);return e.threadId}catch(e){return 0}}();let g=0;function getTmpname(e){return e+"."+a(__filename).hash(String(process.pid)).hash(String(h)).hash(String(++g)).result()}function cleanupOnExit(e){return()=>{try{n.unlinkSync(typeof e==="function"?e():e)}catch(e){}}}function serializeActiveFile(e){return new Promise((r=>{if(!d[e])d[e]=[];d[e].push(r);if(d[e].length===1)r()}))}function isChownErrOk(e){if(e.code==="ENOSYS"){return true}const r=!process.getuid||process.getuid()!==0;if(r){if(e.code==="EINVAL"||e.code==="EPERM"){return true}}return false}async function writeFileAsync(e,r,i={}){if(typeof i==="string"){i={encoding:i}}let a;let h;const g=s(cleanupOnExit((()=>h)));const v=o.resolve(e);try{await serializeActiveFile(v);const s=await p(n.realpath)(e).catch((()=>e));h=getTmpname(s);if(!i.mode||!i.chown){const e=await p(n.stat)(s).catch((()=>{}));if(e){if(i.mode==null){i.mode=e.mode}if(i.chown==null&&process.getuid){i.chown={uid:e.uid,gid:e.gid}}}}a=await p(n.open)(h,"w",i.mode);if(i.tmpfileCreated){await i.tmpfileCreated(h)}if(c(r)){r=l(r)}if(Buffer.isBuffer(r)){await p(n.write)(a,r,0,r.length,0)}else if(r!=null){await p(n.write)(a,String(r),0,String(i.encoding||"utf8"))}if(i.fsync!==false){await p(n.fsync)(a)}await p(n.close)(a);a=null;if(i.chown){await p(n.chown)(h,i.chown.uid,i.chown.gid).catch((e=>{if(!isChownErrOk(e)){throw e}}))}if(i.mode){await p(n.chmod)(h,i.mode).catch((e=>{if(!isChownErrOk(e)){throw e}}))}await p(n.rename)(h,s)}finally{if(a){await p(n.close)(a).catch((()=>{}))}g();await p(n.unlink)(h).catch((()=>{}));d[v].shift();if(d[v].length>0){d[v][0]()}else delete d[v]}}function writeFile(e,r,i,n){if(i instanceof Function){n=i;i={}}const a=writeFileAsync(e,r,i);if(n){a.then(n,n)}return a}function writeFileSync(e,r,i){if(typeof i==="string")i={encoding:i};else if(!i)i={};try{e=n.realpathSync(e)}catch(e){}const a=getTmpname(e);if(!i.mode||!i.chown){try{const r=n.statSync(e);i=Object.assign({},i);if(!i.mode){i.mode=r.mode}if(!i.chown&&process.getuid){i.chown={uid:r.uid,gid:r.gid}}}catch(e){}}let o;const p=cleanupOnExit(a);const d=s(p);let h=true;try{o=n.openSync(a,"w",i.mode||438);if(i.tmpfileCreated){i.tmpfileCreated(a)}if(c(r)){r=l(r)}if(Buffer.isBuffer(r)){n.writeSync(o,r,0,r.length,0)}else if(r!=null){n.writeSync(o,String(r),0,String(i.encoding||"utf8"))}if(i.fsync!==false){n.fsyncSync(o)}n.closeSync(o);o=null;if(i.chown){try{n.chownSync(a,i.chown.uid,i.chown.gid)}catch(e){if(!isChownErrOk(e)){throw e}}}if(i.mode){try{n.chmodSync(a,i.mode)}catch(e){if(!isChownErrOk(e)){throw e}}}n.renameSync(a,e);h=false}finally{if(o){try{n.closeSync(o)}catch(e){}}d();if(h){p()}}}},3522:(e,r,i)=>{"use strict";const n=i(2037);const a=i(1017);const s=n.homedir();const{env:o}=process;r.data=o.XDG_DATA_HOME||(s?a.join(s,".local","share"):undefined);r.config=o.XDG_CONFIG_HOME||(s?a.join(s,".config"):undefined);r.cache=o.XDG_CACHE_HOME||(s?a.join(s,".cache"):undefined);r.runtime=o.XDG_RUNTIME_DIR||undefined;r.dataDirs=(o.XDG_DATA_DIRS||"/usr/local/share/:/usr/share/").split(":");if(r.data){r.dataDirs.unshift(r.data)}r.configDirs=(o.XDG_CONFIG_DIRS||"/etc/xdg").split(":");if(r.config){r.configDirs.unshift(r.config)}},4091:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},665:(e,r,i)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var r=this;if(!(r instanceof Yallist)){r=new Yallist}r.tail=null;r.head=null;r.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){r.push(e)}))}else if(arguments.length>0){for(var i=0,n=arguments.length;i1){i=r}else if(this.head){n=this.head.next;i=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=0;n!==null;a++){i=e(i,n.value,a);n=n.next}return i};Yallist.prototype.reduceReverse=function(e,r){var i;var n=this.tail;if(arguments.length>1){i=r}else if(this.tail){n=this.tail.prev;i=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=this.length-1;n!==null;a--){i=e(i,n.value,a);n=n.prev}return i};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var r=0,i=this.head;i!==null;r++){e[r]=i.value;i=i.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var r=0,i=this.tail;i!==null;r++){e[r]=i.value;i=i.prev}return e};Yallist.prototype.slice=function(e,r){r=r||this.length;if(r<0){r+=this.length}e=e||0;if(e<0){e+=this.length}var i=new Yallist;if(rthis.length){r=this.length}for(var n=0,a=this.head;a!==null&&nthis.length){r=this.length}for(var n=this.length,a=this.tail;a!==null&&n>r;n--){a=a.prev}for(;a!==null&&n>e;n--,a=a.prev){i.push(a.value)}return i};Yallist.prototype.splice=function(e,r,...i){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var n=0,a=this.head;a!==null&&n{class Node{constructor(e){this.value=e;this.next=undefined}}class Queue{constructor(){this.clear()}enqueue(e){const r=new Node(e);if(this._head){this._tail.next=r;this._tail=r}else{this._head=r;this._tail=r}this._size++}dequeue(){const e=this._head;if(!e){return}this._head=this._head.next;this._size--;return e.value}clear(){this._head=undefined;this._tail=undefined;this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;while(e){yield e.value;e=e.next}}}e.exports=Queue},2877:module=>{module.exports=eval("require")("encoding")},1301:module=>{module.exports=eval("require")("fast-crc32c")},8418:module=>{module.exports=eval("require")("request")},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},5477:e=>{"use strict";e.exports=require("punycode")},3477:e=>{"use strict";e.exports=require("querystring")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},9512:e=>{"use strict";e.exports=require("timers")},4404:e=>{"use strict";e.exports=require("tls")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},1267:e=>{"use strict";e.exports=require("worker_threads")},9796:e=>{"use strict";e.exports=require("zlib")},5458:e=>{"use strict";e.exports=JSON.parse('{"name":"@google-cloud/storage","description":"Cloud Storage Client Library for Node.js","version":"5.17.0","license":"Apache-2.0","author":"Google Inc.","engines":{"node":">=10"},"repository":"googleapis/nodejs-storage","main":"./build/src/index.js","types":"./build/src/index.d.ts","files":["build/src","!build/src/**/*.map"],"keywords":["google apis client","google api client","google apis","google api","google","google cloud platform","google cloud","cloud","google storage","storage"],"scripts":{"predocs":"npm run compile","docs":"jsdoc -c .jsdoc.js","system-test":"mocha build/system-test --timeout 600000 --exit","conformance-test":"mocha build/conformance-test","preconformance-test":"npm run compile","presystem-test":"npm run compile","test":"c8 mocha build/test","pretest":"npm run compile","lint":"gts check","samples-test":"npm link && cd samples/ && npm link ../ && npm test && cd ../","all-test":"npm test && npm run system-test && npm run samples-test","check":"gts check","clean":"gts clean","compile":"tsc -p .","fix":"gts fix","prepare":"npm run compile","docs-test":"linkinator docs","predocs-test":"npm run docs","benchwrapper":"node bin/benchwrapper.js","prelint":"cd samples; npm link ../; npm install","precompile":"gts clean"},"dependencies":{"@google-cloud/common":"^3.8.1","@google-cloud/paginator":"^3.0.0","@google-cloud/promisify":"^2.0.0","abort-controller":"^3.0.0","arrify":"^2.0.0","async-retry":"^1.3.3","compressible":"^2.0.12","configstore":"^5.0.0","date-and-time":"^2.0.0","duplexify":"^4.0.0","extend":"^3.0.2","gaxios":"^4.0.0","get-stream":"^6.0.0","google-auth-library":"^7.0.0","hash-stream-validation":"^0.2.2","mime":"^3.0.0","mime-types":"^2.0.8","p-limit":"^3.0.1","pumpify":"^2.0.0","snakeize":"^0.1.0","stream-events":"^1.0.4","xdg-basedir":"^4.0.0"},"devDependencies":{"@google-cloud/pubsub":"^2.0.0","@grpc/grpc-js":"^1.0.3","@grpc/proto-loader":"^0.6.0","@types/async-retry":"^1.4.3","@types/compressible":"^2.0.0","@types/concat-stream":"^1.6.0","@types/configstore":"^5.0.0","@types/date-and-time":"^0.13.0","@types/extend":"^3.0.0","@types/mime":"^2.0.0","@types/mime-types":"^2.1.0","@types/mocha":"^8.0.0","@types/mockery":"^1.4.29","@types/node":"^16.0.0","@types/node-fetch":"^2.1.3","@types/proxyquire":"^1.3.28","@types/pumpify":"^1.4.1","@types/sinon":"^10.0.0","@types/tmp":"0.2.3","@types/uuid":"^8.0.0","@types/xdg-basedir":"^2.0.0","c8":"^7.0.0","form-data":"^4.0.0","gts":"^3.1.0","jsdoc":"^3.6.2","jsdoc-fresh":"^1.0.1","jsdoc-region-tag":"^1.0.2","linkinator":"^2.0.0","mocha":"^8.0.0","mockery":"^2.1.0","nock":"~13.2.0","node-fetch":"^2.2.0","proxyquire":"^2.1.3","sinon":"^12.0.0","tmp":"^0.2.0","typescript":"^3.8.3","uuid":"^8.0.0","yargs":"^16.0.0"}}')},2077:e=>{"use strict";e.exports=JSON.parse('{"Aacute;":"Á","Aacute":"Á","aacute;":"á","aacute":"á","Abreve;":"Ă","abreve;":"ă","ac;":"∾","acd;":"∿","acE;":"∾̳","Acirc;":"Â","Acirc":"Â","acirc;":"â","acirc":"â","acute;":"´","acute":"´","Acy;":"А","acy;":"а","AElig;":"Æ","AElig":"Æ","aelig;":"æ","aelig":"æ","af;":"⁡","Afr;":"𝔄","afr;":"𝔞","Agrave;":"À","Agrave":"À","agrave;":"à","agrave":"à","alefsym;":"ℵ","aleph;":"ℵ","Alpha;":"Α","alpha;":"α","Amacr;":"Ā","amacr;":"ā","amalg;":"⨿","AMP;":"&","AMP":"&","amp;":"&","amp":"&","And;":"⩓","and;":"∧","andand;":"⩕","andd;":"⩜","andslope;":"⩘","andv;":"⩚","ang;":"∠","ange;":"⦤","angle;":"∠","angmsd;":"∡","angmsdaa;":"⦨","angmsdab;":"⦩","angmsdac;":"⦪","angmsdad;":"⦫","angmsdae;":"⦬","angmsdaf;":"⦭","angmsdag;":"⦮","angmsdah;":"⦯","angrt;":"∟","angrtvb;":"⊾","angrtvbd;":"⦝","angsph;":"∢","angst;":"Å","angzarr;":"⍼","Aogon;":"Ą","aogon;":"ą","Aopf;":"𝔸","aopf;":"𝕒","ap;":"≈","apacir;":"⩯","apE;":"⩰","ape;":"≊","apid;":"≋","apos;":"\'","ApplyFunction;":"⁡","approx;":"≈","approxeq;":"≊","Aring;":"Å","Aring":"Å","aring;":"å","aring":"å","Ascr;":"𝒜","ascr;":"𝒶","Assign;":"≔","ast;":"*","asymp;":"≈","asympeq;":"≍","Atilde;":"Ã","Atilde":"Ã","atilde;":"ã","atilde":"ã","Auml;":"Ä","Auml":"Ä","auml;":"ä","auml":"ä","awconint;":"∳","awint;":"⨑","backcong;":"≌","backepsilon;":"϶","backprime;":"‵","backsim;":"∽","backsimeq;":"⋍","Backslash;":"∖","Barv;":"⫧","barvee;":"⊽","Barwed;":"⌆","barwed;":"⌅","barwedge;":"⌅","bbrk;":"⎵","bbrktbrk;":"⎶","bcong;":"≌","Bcy;":"Б","bcy;":"б","bdquo;":"„","becaus;":"∵","Because;":"∵","because;":"∵","bemptyv;":"⦰","bepsi;":"϶","bernou;":"ℬ","Bernoullis;":"ℬ","Beta;":"Β","beta;":"β","beth;":"ℶ","between;":"≬","Bfr;":"𝔅","bfr;":"𝔟","bigcap;":"⋂","bigcirc;":"◯","bigcup;":"⋃","bigodot;":"⨀","bigoplus;":"⨁","bigotimes;":"⨂","bigsqcup;":"⨆","bigstar;":"★","bigtriangledown;":"▽","bigtriangleup;":"△","biguplus;":"⨄","bigvee;":"⋁","bigwedge;":"⋀","bkarow;":"⤍","blacklozenge;":"⧫","blacksquare;":"▪","blacktriangle;":"▴","blacktriangledown;":"▾","blacktriangleleft;":"◂","blacktriangleright;":"▸","blank;":"␣","blk12;":"▒","blk14;":"░","blk34;":"▓","block;":"█","bne;":"=⃥","bnequiv;":"≡⃥","bNot;":"⫭","bnot;":"⌐","Bopf;":"𝔹","bopf;":"𝕓","bot;":"⊥","bottom;":"⊥","bowtie;":"⋈","boxbox;":"⧉","boxDL;":"╗","boxDl;":"╖","boxdL;":"╕","boxdl;":"┐","boxDR;":"╔","boxDr;":"╓","boxdR;":"╒","boxdr;":"┌","boxH;":"═","boxh;":"─","boxHD;":"╦","boxHd;":"╤","boxhD;":"╥","boxhd;":"┬","boxHU;":"╩","boxHu;":"╧","boxhU;":"╨","boxhu;":"┴","boxminus;":"⊟","boxplus;":"⊞","boxtimes;":"⊠","boxUL;":"╝","boxUl;":"╜","boxuL;":"╛","boxul;":"┘","boxUR;":"╚","boxUr;":"╙","boxuR;":"╘","boxur;":"└","boxV;":"║","boxv;":"│","boxVH;":"╬","boxVh;":"╫","boxvH;":"╪","boxvh;":"┼","boxVL;":"╣","boxVl;":"╢","boxvL;":"╡","boxvl;":"┤","boxVR;":"╠","boxVr;":"╟","boxvR;":"╞","boxvr;":"├","bprime;":"‵","Breve;":"˘","breve;":"˘","brvbar;":"¦","brvbar":"¦","Bscr;":"ℬ","bscr;":"𝒷","bsemi;":"⁏","bsim;":"∽","bsime;":"⋍","bsol;":"\\\\","bsolb;":"⧅","bsolhsub;":"⟈","bull;":"•","bullet;":"•","bump;":"≎","bumpE;":"⪮","bumpe;":"≏","Bumpeq;":"≎","bumpeq;":"≏","Cacute;":"Ć","cacute;":"ć","Cap;":"⋒","cap;":"∩","capand;":"⩄","capbrcup;":"⩉","capcap;":"⩋","capcup;":"⩇","capdot;":"⩀","CapitalDifferentialD;":"ⅅ","caps;":"∩︀","caret;":"⁁","caron;":"ˇ","Cayleys;":"ℭ","ccaps;":"⩍","Ccaron;":"Č","ccaron;":"č","Ccedil;":"Ç","Ccedil":"Ç","ccedil;":"ç","ccedil":"ç","Ccirc;":"Ĉ","ccirc;":"ĉ","Cconint;":"∰","ccups;":"⩌","ccupssm;":"⩐","Cdot;":"Ċ","cdot;":"ċ","cedil;":"¸","cedil":"¸","Cedilla;":"¸","cemptyv;":"⦲","cent;":"¢","cent":"¢","CenterDot;":"·","centerdot;":"·","Cfr;":"ℭ","cfr;":"𝔠","CHcy;":"Ч","chcy;":"ч","check;":"✓","checkmark;":"✓","Chi;":"Χ","chi;":"χ","cir;":"○","circ;":"ˆ","circeq;":"≗","circlearrowleft;":"↺","circlearrowright;":"↻","circledast;":"⊛","circledcirc;":"⊚","circleddash;":"⊝","CircleDot;":"⊙","circledR;":"®","circledS;":"Ⓢ","CircleMinus;":"⊖","CirclePlus;":"⊕","CircleTimes;":"⊗","cirE;":"⧃","cire;":"≗","cirfnint;":"⨐","cirmid;":"⫯","cirscir;":"⧂","ClockwiseContourIntegral;":"∲","CloseCurlyDoubleQuote;":"”","CloseCurlyQuote;":"’","clubs;":"♣","clubsuit;":"♣","Colon;":"∷","colon;":":","Colone;":"⩴","colone;":"≔","coloneq;":"≔","comma;":",","commat;":"@","comp;":"∁","compfn;":"∘","complement;":"∁","complexes;":"ℂ","cong;":"≅","congdot;":"⩭","Congruent;":"≡","Conint;":"∯","conint;":"∮","ContourIntegral;":"∮","Copf;":"ℂ","copf;":"𝕔","coprod;":"∐","Coproduct;":"∐","COPY;":"©","COPY":"©","copy;":"©","copy":"©","copysr;":"℗","CounterClockwiseContourIntegral;":"∳","crarr;":"↵","Cross;":"⨯","cross;":"✗","Cscr;":"𝒞","cscr;":"𝒸","csub;":"⫏","csube;":"⫑","csup;":"⫐","csupe;":"⫒","ctdot;":"⋯","cudarrl;":"⤸","cudarrr;":"⤵","cuepr;":"⋞","cuesc;":"⋟","cularr;":"↶","cularrp;":"⤽","Cup;":"⋓","cup;":"∪","cupbrcap;":"⩈","CupCap;":"≍","cupcap;":"⩆","cupcup;":"⩊","cupdot;":"⊍","cupor;":"⩅","cups;":"∪︀","curarr;":"↷","curarrm;":"⤼","curlyeqprec;":"⋞","curlyeqsucc;":"⋟","curlyvee;":"⋎","curlywedge;":"⋏","curren;":"¤","curren":"¤","curvearrowleft;":"↶","curvearrowright;":"↷","cuvee;":"⋎","cuwed;":"⋏","cwconint;":"∲","cwint;":"∱","cylcty;":"⌭","Dagger;":"‡","dagger;":"†","daleth;":"ℸ","Darr;":"↡","dArr;":"⇓","darr;":"↓","dash;":"‐","Dashv;":"⫤","dashv;":"⊣","dbkarow;":"⤏","dblac;":"˝","Dcaron;":"Ď","dcaron;":"ď","Dcy;":"Д","dcy;":"д","DD;":"ⅅ","dd;":"ⅆ","ddagger;":"‡","ddarr;":"⇊","DDotrahd;":"⤑","ddotseq;":"⩷","deg;":"°","deg":"°","Del;":"∇","Delta;":"Δ","delta;":"δ","demptyv;":"⦱","dfisht;":"⥿","Dfr;":"𝔇","dfr;":"𝔡","dHar;":"⥥","dharl;":"⇃","dharr;":"⇂","DiacriticalAcute;":"´","DiacriticalDot;":"˙","DiacriticalDoubleAcute;":"˝","DiacriticalGrave;":"`","DiacriticalTilde;":"˜","diam;":"⋄","Diamond;":"⋄","diamond;":"⋄","diamondsuit;":"♦","diams;":"♦","die;":"¨","DifferentialD;":"ⅆ","digamma;":"ϝ","disin;":"⋲","div;":"÷","divide;":"÷","divide":"÷","divideontimes;":"⋇","divonx;":"⋇","DJcy;":"Ђ","djcy;":"ђ","dlcorn;":"⌞","dlcrop;":"⌍","dollar;":"$","Dopf;":"𝔻","dopf;":"𝕕","Dot;":"¨","dot;":"˙","DotDot;":"⃜","doteq;":"≐","doteqdot;":"≑","DotEqual;":"≐","dotminus;":"∸","dotplus;":"∔","dotsquare;":"⊡","doublebarwedge;":"⌆","DoubleContourIntegral;":"∯","DoubleDot;":"¨","DoubleDownArrow;":"⇓","DoubleLeftArrow;":"⇐","DoubleLeftRightArrow;":"⇔","DoubleLeftTee;":"⫤","DoubleLongLeftArrow;":"⟸","DoubleLongLeftRightArrow;":"⟺","DoubleLongRightArrow;":"⟹","DoubleRightArrow;":"⇒","DoubleRightTee;":"⊨","DoubleUpArrow;":"⇑","DoubleUpDownArrow;":"⇕","DoubleVerticalBar;":"∥","DownArrow;":"↓","Downarrow;":"⇓","downarrow;":"↓","DownArrowBar;":"⤓","DownArrowUpArrow;":"⇵","DownBreve;":"̑","downdownarrows;":"⇊","downharpoonleft;":"⇃","downharpoonright;":"⇂","DownLeftRightVector;":"⥐","DownLeftTeeVector;":"⥞","DownLeftVector;":"↽","DownLeftVectorBar;":"⥖","DownRightTeeVector;":"⥟","DownRightVector;":"⇁","DownRightVectorBar;":"⥗","DownTee;":"⊤","DownTeeArrow;":"↧","drbkarow;":"⤐","drcorn;":"⌟","drcrop;":"⌌","Dscr;":"𝒟","dscr;":"𝒹","DScy;":"Ѕ","dscy;":"ѕ","dsol;":"⧶","Dstrok;":"Đ","dstrok;":"đ","dtdot;":"⋱","dtri;":"▿","dtrif;":"▾","duarr;":"⇵","duhar;":"⥯","dwangle;":"⦦","DZcy;":"Џ","dzcy;":"џ","dzigrarr;":"⟿","Eacute;":"É","Eacute":"É","eacute;":"é","eacute":"é","easter;":"⩮","Ecaron;":"Ě","ecaron;":"ě","ecir;":"≖","Ecirc;":"Ê","Ecirc":"Ê","ecirc;":"ê","ecirc":"ê","ecolon;":"≕","Ecy;":"Э","ecy;":"э","eDDot;":"⩷","Edot;":"Ė","eDot;":"≑","edot;":"ė","ee;":"ⅇ","efDot;":"≒","Efr;":"𝔈","efr;":"𝔢","eg;":"⪚","Egrave;":"È","Egrave":"È","egrave;":"è","egrave":"è","egs;":"⪖","egsdot;":"⪘","el;":"⪙","Element;":"∈","elinters;":"⏧","ell;":"ℓ","els;":"⪕","elsdot;":"⪗","Emacr;":"Ē","emacr;":"ē","empty;":"∅","emptyset;":"∅","EmptySmallSquare;":"◻","emptyv;":"∅","EmptyVerySmallSquare;":"▫","emsp;":" ","emsp13;":" ","emsp14;":" ","ENG;":"Ŋ","eng;":"ŋ","ensp;":" ","Eogon;":"Ę","eogon;":"ę","Eopf;":"𝔼","eopf;":"𝕖","epar;":"⋕","eparsl;":"⧣","eplus;":"⩱","epsi;":"ε","Epsilon;":"Ε","epsilon;":"ε","epsiv;":"ϵ","eqcirc;":"≖","eqcolon;":"≕","eqsim;":"≂","eqslantgtr;":"⪖","eqslantless;":"⪕","Equal;":"⩵","equals;":"=","EqualTilde;":"≂","equest;":"≟","Equilibrium;":"⇌","equiv;":"≡","equivDD;":"⩸","eqvparsl;":"⧥","erarr;":"⥱","erDot;":"≓","Escr;":"ℰ","escr;":"ℯ","esdot;":"≐","Esim;":"⩳","esim;":"≂","Eta;":"Η","eta;":"η","ETH;":"Ð","ETH":"Ð","eth;":"ð","eth":"ð","Euml;":"Ë","Euml":"Ë","euml;":"ë","euml":"ë","euro;":"€","excl;":"!","exist;":"∃","Exists;":"∃","expectation;":"ℰ","ExponentialE;":"ⅇ","exponentiale;":"ⅇ","fallingdotseq;":"≒","Fcy;":"Ф","fcy;":"ф","female;":"♀","ffilig;":"ffi","fflig;":"ff","ffllig;":"ffl","Ffr;":"𝔉","ffr;":"𝔣","filig;":"fi","FilledSmallSquare;":"◼","FilledVerySmallSquare;":"▪","fjlig;":"fj","flat;":"♭","fllig;":"fl","fltns;":"▱","fnof;":"ƒ","Fopf;":"𝔽","fopf;":"𝕗","ForAll;":"∀","forall;":"∀","fork;":"⋔","forkv;":"⫙","Fouriertrf;":"ℱ","fpartint;":"⨍","frac12;":"½","frac12":"½","frac13;":"⅓","frac14;":"¼","frac14":"¼","frac15;":"⅕","frac16;":"⅙","frac18;":"⅛","frac23;":"⅔","frac25;":"⅖","frac34;":"¾","frac34":"¾","frac35;":"⅗","frac38;":"⅜","frac45;":"⅘","frac56;":"⅚","frac58;":"⅝","frac78;":"⅞","frasl;":"⁄","frown;":"⌢","Fscr;":"ℱ","fscr;":"𝒻","gacute;":"ǵ","Gamma;":"Γ","gamma;":"γ","Gammad;":"Ϝ","gammad;":"ϝ","gap;":"⪆","Gbreve;":"Ğ","gbreve;":"ğ","Gcedil;":"Ģ","Gcirc;":"Ĝ","gcirc;":"ĝ","Gcy;":"Г","gcy;":"г","Gdot;":"Ġ","gdot;":"ġ","gE;":"≧","ge;":"≥","gEl;":"⪌","gel;":"⋛","geq;":"≥","geqq;":"≧","geqslant;":"⩾","ges;":"⩾","gescc;":"⪩","gesdot;":"⪀","gesdoto;":"⪂","gesdotol;":"⪄","gesl;":"⋛︀","gesles;":"⪔","Gfr;":"𝔊","gfr;":"𝔤","Gg;":"⋙","gg;":"≫","ggg;":"⋙","gimel;":"ℷ","GJcy;":"Ѓ","gjcy;":"ѓ","gl;":"≷","gla;":"⪥","glE;":"⪒","glj;":"⪤","gnap;":"⪊","gnapprox;":"⪊","gnE;":"≩","gne;":"⪈","gneq;":"⪈","gneqq;":"≩","gnsim;":"⋧","Gopf;":"𝔾","gopf;":"𝕘","grave;":"`","GreaterEqual;":"≥","GreaterEqualLess;":"⋛","GreaterFullEqual;":"≧","GreaterGreater;":"⪢","GreaterLess;":"≷","GreaterSlantEqual;":"⩾","GreaterTilde;":"≳","Gscr;":"𝒢","gscr;":"ℊ","gsim;":"≳","gsime;":"⪎","gsiml;":"⪐","GT;":">","GT":">","Gt;":"≫","gt;":">","gt":">","gtcc;":"⪧","gtcir;":"⩺","gtdot;":"⋗","gtlPar;":"⦕","gtquest;":"⩼","gtrapprox;":"⪆","gtrarr;":"⥸","gtrdot;":"⋗","gtreqless;":"⋛","gtreqqless;":"⪌","gtrless;":"≷","gtrsim;":"≳","gvertneqq;":"≩︀","gvnE;":"≩︀","Hacek;":"ˇ","hairsp;":" ","half;":"½","hamilt;":"ℋ","HARDcy;":"Ъ","hardcy;":"ъ","hArr;":"⇔","harr;":"↔","harrcir;":"⥈","harrw;":"↭","Hat;":"^","hbar;":"ℏ","Hcirc;":"Ĥ","hcirc;":"ĥ","hearts;":"♥","heartsuit;":"♥","hellip;":"…","hercon;":"⊹","Hfr;":"ℌ","hfr;":"𝔥","HilbertSpace;":"ℋ","hksearow;":"⤥","hkswarow;":"⤦","hoarr;":"⇿","homtht;":"∻","hookleftarrow;":"↩","hookrightarrow;":"↪","Hopf;":"ℍ","hopf;":"𝕙","horbar;":"―","HorizontalLine;":"─","Hscr;":"ℋ","hscr;":"𝒽","hslash;":"ℏ","Hstrok;":"Ħ","hstrok;":"ħ","HumpDownHump;":"≎","HumpEqual;":"≏","hybull;":"⁃","hyphen;":"‐","Iacute;":"Í","Iacute":"Í","iacute;":"í","iacute":"í","ic;":"⁣","Icirc;":"Î","Icirc":"Î","icirc;":"î","icirc":"î","Icy;":"И","icy;":"и","Idot;":"İ","IEcy;":"Е","iecy;":"е","iexcl;":"¡","iexcl":"¡","iff;":"⇔","Ifr;":"ℑ","ifr;":"𝔦","Igrave;":"Ì","Igrave":"Ì","igrave;":"ì","igrave":"ì","ii;":"ⅈ","iiiint;":"⨌","iiint;":"∭","iinfin;":"⧜","iiota;":"℩","IJlig;":"IJ","ijlig;":"ij","Im;":"ℑ","Imacr;":"Ī","imacr;":"ī","image;":"ℑ","ImaginaryI;":"ⅈ","imagline;":"ℐ","imagpart;":"ℑ","imath;":"ı","imof;":"⊷","imped;":"Ƶ","Implies;":"⇒","in;":"∈","incare;":"℅","infin;":"∞","infintie;":"⧝","inodot;":"ı","Int;":"∬","int;":"∫","intcal;":"⊺","integers;":"ℤ","Integral;":"∫","intercal;":"⊺","Intersection;":"⋂","intlarhk;":"⨗","intprod;":"⨼","InvisibleComma;":"⁣","InvisibleTimes;":"⁢","IOcy;":"Ё","iocy;":"ё","Iogon;":"Į","iogon;":"į","Iopf;":"𝕀","iopf;":"𝕚","Iota;":"Ι","iota;":"ι","iprod;":"⨼","iquest;":"¿","iquest":"¿","Iscr;":"ℐ","iscr;":"𝒾","isin;":"∈","isindot;":"⋵","isinE;":"⋹","isins;":"⋴","isinsv;":"⋳","isinv;":"∈","it;":"⁢","Itilde;":"Ĩ","itilde;":"ĩ","Iukcy;":"І","iukcy;":"і","Iuml;":"Ï","Iuml":"Ï","iuml;":"ï","iuml":"ï","Jcirc;":"Ĵ","jcirc;":"ĵ","Jcy;":"Й","jcy;":"й","Jfr;":"𝔍","jfr;":"𝔧","jmath;":"ȷ","Jopf;":"𝕁","jopf;":"𝕛","Jscr;":"𝒥","jscr;":"𝒿","Jsercy;":"Ј","jsercy;":"ј","Jukcy;":"Є","jukcy;":"є","Kappa;":"Κ","kappa;":"κ","kappav;":"ϰ","Kcedil;":"Ķ","kcedil;":"ķ","Kcy;":"К","kcy;":"к","Kfr;":"𝔎","kfr;":"𝔨","kgreen;":"ĸ","KHcy;":"Х","khcy;":"х","KJcy;":"Ќ","kjcy;":"ќ","Kopf;":"𝕂","kopf;":"𝕜","Kscr;":"𝒦","kscr;":"𝓀","lAarr;":"⇚","Lacute;":"Ĺ","lacute;":"ĺ","laemptyv;":"⦴","lagran;":"ℒ","Lambda;":"Λ","lambda;":"λ","Lang;":"⟪","lang;":"⟨","langd;":"⦑","langle;":"⟨","lap;":"⪅","Laplacetrf;":"ℒ","laquo;":"«","laquo":"«","Larr;":"↞","lArr;":"⇐","larr;":"←","larrb;":"⇤","larrbfs;":"⤟","larrfs;":"⤝","larrhk;":"↩","larrlp;":"↫","larrpl;":"⤹","larrsim;":"⥳","larrtl;":"↢","lat;":"⪫","lAtail;":"⤛","latail;":"⤙","late;":"⪭","lates;":"⪭︀","lBarr;":"⤎","lbarr;":"⤌","lbbrk;":"❲","lbrace;":"{","lbrack;":"[","lbrke;":"⦋","lbrksld;":"⦏","lbrkslu;":"⦍","Lcaron;":"Ľ","lcaron;":"ľ","Lcedil;":"Ļ","lcedil;":"ļ","lceil;":"⌈","lcub;":"{","Lcy;":"Л","lcy;":"л","ldca;":"⤶","ldquo;":"“","ldquor;":"„","ldrdhar;":"⥧","ldrushar;":"⥋","ldsh;":"↲","lE;":"≦","le;":"≤","LeftAngleBracket;":"⟨","LeftArrow;":"←","Leftarrow;":"⇐","leftarrow;":"←","LeftArrowBar;":"⇤","LeftArrowRightArrow;":"⇆","leftarrowtail;":"↢","LeftCeiling;":"⌈","LeftDoubleBracket;":"⟦","LeftDownTeeVector;":"⥡","LeftDownVector;":"⇃","LeftDownVectorBar;":"⥙","LeftFloor;":"⌊","leftharpoondown;":"↽","leftharpoonup;":"↼","leftleftarrows;":"⇇","LeftRightArrow;":"↔","Leftrightarrow;":"⇔","leftrightarrow;":"↔","leftrightarrows;":"⇆","leftrightharpoons;":"⇋","leftrightsquigarrow;":"↭","LeftRightVector;":"⥎","LeftTee;":"⊣","LeftTeeArrow;":"↤","LeftTeeVector;":"⥚","leftthreetimes;":"⋋","LeftTriangle;":"⊲","LeftTriangleBar;":"⧏","LeftTriangleEqual;":"⊴","LeftUpDownVector;":"⥑","LeftUpTeeVector;":"⥠","LeftUpVector;":"↿","LeftUpVectorBar;":"⥘","LeftVector;":"↼","LeftVectorBar;":"⥒","lEg;":"⪋","leg;":"⋚","leq;":"≤","leqq;":"≦","leqslant;":"⩽","les;":"⩽","lescc;":"⪨","lesdot;":"⩿","lesdoto;":"⪁","lesdotor;":"⪃","lesg;":"⋚︀","lesges;":"⪓","lessapprox;":"⪅","lessdot;":"⋖","lesseqgtr;":"⋚","lesseqqgtr;":"⪋","LessEqualGreater;":"⋚","LessFullEqual;":"≦","LessGreater;":"≶","lessgtr;":"≶","LessLess;":"⪡","lesssim;":"≲","LessSlantEqual;":"⩽","LessTilde;":"≲","lfisht;":"⥼","lfloor;":"⌊","Lfr;":"𝔏","lfr;":"𝔩","lg;":"≶","lgE;":"⪑","lHar;":"⥢","lhard;":"↽","lharu;":"↼","lharul;":"⥪","lhblk;":"▄","LJcy;":"Љ","ljcy;":"љ","Ll;":"⋘","ll;":"≪","llarr;":"⇇","llcorner;":"⌞","Lleftarrow;":"⇚","llhard;":"⥫","lltri;":"◺","Lmidot;":"Ŀ","lmidot;":"ŀ","lmoust;":"⎰","lmoustache;":"⎰","lnap;":"⪉","lnapprox;":"⪉","lnE;":"≨","lne;":"⪇","lneq;":"⪇","lneqq;":"≨","lnsim;":"⋦","loang;":"⟬","loarr;":"⇽","lobrk;":"⟦","LongLeftArrow;":"⟵","Longleftarrow;":"⟸","longleftarrow;":"⟵","LongLeftRightArrow;":"⟷","Longleftrightarrow;":"⟺","longleftrightarrow;":"⟷","longmapsto;":"⟼","LongRightArrow;":"⟶","Longrightarrow;":"⟹","longrightarrow;":"⟶","looparrowleft;":"↫","looparrowright;":"↬","lopar;":"⦅","Lopf;":"𝕃","lopf;":"𝕝","loplus;":"⨭","lotimes;":"⨴","lowast;":"∗","lowbar;":"_","LowerLeftArrow;":"↙","LowerRightArrow;":"↘","loz;":"◊","lozenge;":"◊","lozf;":"⧫","lpar;":"(","lparlt;":"⦓","lrarr;":"⇆","lrcorner;":"⌟","lrhar;":"⇋","lrhard;":"⥭","lrm;":"‎","lrtri;":"⊿","lsaquo;":"‹","Lscr;":"ℒ","lscr;":"𝓁","Lsh;":"↰","lsh;":"↰","lsim;":"≲","lsime;":"⪍","lsimg;":"⪏","lsqb;":"[","lsquo;":"‘","lsquor;":"‚","Lstrok;":"Ł","lstrok;":"ł","LT;":"<","LT":"<","Lt;":"≪","lt;":"<","lt":"<","ltcc;":"⪦","ltcir;":"⩹","ltdot;":"⋖","lthree;":"⋋","ltimes;":"⋉","ltlarr;":"⥶","ltquest;":"⩻","ltri;":"◃","ltrie;":"⊴","ltrif;":"◂","ltrPar;":"⦖","lurdshar;":"⥊","luruhar;":"⥦","lvertneqq;":"≨︀","lvnE;":"≨︀","macr;":"¯","macr":"¯","male;":"♂","malt;":"✠","maltese;":"✠","Map;":"⤅","map;":"↦","mapsto;":"↦","mapstodown;":"↧","mapstoleft;":"↤","mapstoup;":"↥","marker;":"▮","mcomma;":"⨩","Mcy;":"М","mcy;":"м","mdash;":"—","mDDot;":"∺","measuredangle;":"∡","MediumSpace;":" ","Mellintrf;":"ℳ","Mfr;":"𝔐","mfr;":"𝔪","mho;":"℧","micro;":"µ","micro":"µ","mid;":"∣","midast;":"*","midcir;":"⫰","middot;":"·","middot":"·","minus;":"−","minusb;":"⊟","minusd;":"∸","minusdu;":"⨪","MinusPlus;":"∓","mlcp;":"⫛","mldr;":"…","mnplus;":"∓","models;":"⊧","Mopf;":"𝕄","mopf;":"𝕞","mp;":"∓","Mscr;":"ℳ","mscr;":"𝓂","mstpos;":"∾","Mu;":"Μ","mu;":"μ","multimap;":"⊸","mumap;":"⊸","nabla;":"∇","Nacute;":"Ń","nacute;":"ń","nang;":"∠⃒","nap;":"≉","napE;":"⩰̸","napid;":"≋̸","napos;":"ʼn","napprox;":"≉","natur;":"♮","natural;":"♮","naturals;":"ℕ","nbsp;":" ","nbsp":" ","nbump;":"≎̸","nbumpe;":"≏̸","ncap;":"⩃","Ncaron;":"Ň","ncaron;":"ň","Ncedil;":"Ņ","ncedil;":"ņ","ncong;":"≇","ncongdot;":"⩭̸","ncup;":"⩂","Ncy;":"Н","ncy;":"н","ndash;":"–","ne;":"≠","nearhk;":"⤤","neArr;":"⇗","nearr;":"↗","nearrow;":"↗","nedot;":"≐̸","NegativeMediumSpace;":"​","NegativeThickSpace;":"​","NegativeThinSpace;":"​","NegativeVeryThinSpace;":"​","nequiv;":"≢","nesear;":"⤨","nesim;":"≂̸","NestedGreaterGreater;":"≫","NestedLessLess;":"≪","NewLine;":"\\n","nexist;":"∄","nexists;":"∄","Nfr;":"𝔑","nfr;":"𝔫","ngE;":"≧̸","nge;":"≱","ngeq;":"≱","ngeqq;":"≧̸","ngeqslant;":"⩾̸","nges;":"⩾̸","nGg;":"⋙̸","ngsim;":"≵","nGt;":"≫⃒","ngt;":"≯","ngtr;":"≯","nGtv;":"≫̸","nhArr;":"⇎","nharr;":"↮","nhpar;":"⫲","ni;":"∋","nis;":"⋼","nisd;":"⋺","niv;":"∋","NJcy;":"Њ","njcy;":"њ","nlArr;":"⇍","nlarr;":"↚","nldr;":"‥","nlE;":"≦̸","nle;":"≰","nLeftarrow;":"⇍","nleftarrow;":"↚","nLeftrightarrow;":"⇎","nleftrightarrow;":"↮","nleq;":"≰","nleqq;":"≦̸","nleqslant;":"⩽̸","nles;":"⩽̸","nless;":"≮","nLl;":"⋘̸","nlsim;":"≴","nLt;":"≪⃒","nlt;":"≮","nltri;":"⋪","nltrie;":"⋬","nLtv;":"≪̸","nmid;":"∤","NoBreak;":"⁠","NonBreakingSpace;":" ","Nopf;":"ℕ","nopf;":"𝕟","Not;":"⫬","not;":"¬","not":"¬","NotCongruent;":"≢","NotCupCap;":"≭","NotDoubleVerticalBar;":"∦","NotElement;":"∉","NotEqual;":"≠","NotEqualTilde;":"≂̸","NotExists;":"∄","NotGreater;":"≯","NotGreaterEqual;":"≱","NotGreaterFullEqual;":"≧̸","NotGreaterGreater;":"≫̸","NotGreaterLess;":"≹","NotGreaterSlantEqual;":"⩾̸","NotGreaterTilde;":"≵","NotHumpDownHump;":"≎̸","NotHumpEqual;":"≏̸","notin;":"∉","notindot;":"⋵̸","notinE;":"⋹̸","notinva;":"∉","notinvb;":"⋷","notinvc;":"⋶","NotLeftTriangle;":"⋪","NotLeftTriangleBar;":"⧏̸","NotLeftTriangleEqual;":"⋬","NotLess;":"≮","NotLessEqual;":"≰","NotLessGreater;":"≸","NotLessLess;":"≪̸","NotLessSlantEqual;":"⩽̸","NotLessTilde;":"≴","NotNestedGreaterGreater;":"⪢̸","NotNestedLessLess;":"⪡̸","notni;":"∌","notniva;":"∌","notnivb;":"⋾","notnivc;":"⋽","NotPrecedes;":"⊀","NotPrecedesEqual;":"⪯̸","NotPrecedesSlantEqual;":"⋠","NotReverseElement;":"∌","NotRightTriangle;":"⋫","NotRightTriangleBar;":"⧐̸","NotRightTriangleEqual;":"⋭","NotSquareSubset;":"⊏̸","NotSquareSubsetEqual;":"⋢","NotSquareSuperset;":"⊐̸","NotSquareSupersetEqual;":"⋣","NotSubset;":"⊂⃒","NotSubsetEqual;":"⊈","NotSucceeds;":"⊁","NotSucceedsEqual;":"⪰̸","NotSucceedsSlantEqual;":"⋡","NotSucceedsTilde;":"≿̸","NotSuperset;":"⊃⃒","NotSupersetEqual;":"⊉","NotTilde;":"≁","NotTildeEqual;":"≄","NotTildeFullEqual;":"≇","NotTildeTilde;":"≉","NotVerticalBar;":"∤","npar;":"∦","nparallel;":"∦","nparsl;":"⫽⃥","npart;":"∂̸","npolint;":"⨔","npr;":"⊀","nprcue;":"⋠","npre;":"⪯̸","nprec;":"⊀","npreceq;":"⪯̸","nrArr;":"⇏","nrarr;":"↛","nrarrc;":"⤳̸","nrarrw;":"↝̸","nRightarrow;":"⇏","nrightarrow;":"↛","nrtri;":"⋫","nrtrie;":"⋭","nsc;":"⊁","nsccue;":"⋡","nsce;":"⪰̸","Nscr;":"𝒩","nscr;":"𝓃","nshortmid;":"∤","nshortparallel;":"∦","nsim;":"≁","nsime;":"≄","nsimeq;":"≄","nsmid;":"∤","nspar;":"∦","nsqsube;":"⋢","nsqsupe;":"⋣","nsub;":"⊄","nsubE;":"⫅̸","nsube;":"⊈","nsubset;":"⊂⃒","nsubseteq;":"⊈","nsubseteqq;":"⫅̸","nsucc;":"⊁","nsucceq;":"⪰̸","nsup;":"⊅","nsupE;":"⫆̸","nsupe;":"⊉","nsupset;":"⊃⃒","nsupseteq;":"⊉","nsupseteqq;":"⫆̸","ntgl;":"≹","Ntilde;":"Ñ","Ntilde":"Ñ","ntilde;":"ñ","ntilde":"ñ","ntlg;":"≸","ntriangleleft;":"⋪","ntrianglelefteq;":"⋬","ntriangleright;":"⋫","ntrianglerighteq;":"⋭","Nu;":"Ν","nu;":"ν","num;":"#","numero;":"№","numsp;":" ","nvap;":"≍⃒","nVDash;":"⊯","nVdash;":"⊮","nvDash;":"⊭","nvdash;":"⊬","nvge;":"≥⃒","nvgt;":">⃒","nvHarr;":"⤄","nvinfin;":"⧞","nvlArr;":"⤂","nvle;":"≤⃒","nvlt;":"<⃒","nvltrie;":"⊴⃒","nvrArr;":"⤃","nvrtrie;":"⊵⃒","nvsim;":"∼⃒","nwarhk;":"⤣","nwArr;":"⇖","nwarr;":"↖","nwarrow;":"↖","nwnear;":"⤧","Oacute;":"Ó","Oacute":"Ó","oacute;":"ó","oacute":"ó","oast;":"⊛","ocir;":"⊚","Ocirc;":"Ô","Ocirc":"Ô","ocirc;":"ô","ocirc":"ô","Ocy;":"О","ocy;":"о","odash;":"⊝","Odblac;":"Ő","odblac;":"ő","odiv;":"⨸","odot;":"⊙","odsold;":"⦼","OElig;":"Œ","oelig;":"œ","ofcir;":"⦿","Ofr;":"𝔒","ofr;":"𝔬","ogon;":"˛","Ograve;":"Ò","Ograve":"Ò","ograve;":"ò","ograve":"ò","ogt;":"⧁","ohbar;":"⦵","ohm;":"Ω","oint;":"∮","olarr;":"↺","olcir;":"⦾","olcross;":"⦻","oline;":"‾","olt;":"⧀","Omacr;":"Ō","omacr;":"ō","Omega;":"Ω","omega;":"ω","Omicron;":"Ο","omicron;":"ο","omid;":"⦶","ominus;":"⊖","Oopf;":"𝕆","oopf;":"𝕠","opar;":"⦷","OpenCurlyDoubleQuote;":"“","OpenCurlyQuote;":"‘","operp;":"⦹","oplus;":"⊕","Or;":"⩔","or;":"∨","orarr;":"↻","ord;":"⩝","order;":"ℴ","orderof;":"ℴ","ordf;":"ª","ordf":"ª","ordm;":"º","ordm":"º","origof;":"⊶","oror;":"⩖","orslope;":"⩗","orv;":"⩛","oS;":"Ⓢ","Oscr;":"𝒪","oscr;":"ℴ","Oslash;":"Ø","Oslash":"Ø","oslash;":"ø","oslash":"ø","osol;":"⊘","Otilde;":"Õ","Otilde":"Õ","otilde;":"õ","otilde":"õ","Otimes;":"⨷","otimes;":"⊗","otimesas;":"⨶","Ouml;":"Ö","Ouml":"Ö","ouml;":"ö","ouml":"ö","ovbar;":"⌽","OverBar;":"‾","OverBrace;":"⏞","OverBracket;":"⎴","OverParenthesis;":"⏜","par;":"∥","para;":"¶","para":"¶","parallel;":"∥","parsim;":"⫳","parsl;":"⫽","part;":"∂","PartialD;":"∂","Pcy;":"П","pcy;":"п","percnt;":"%","period;":".","permil;":"‰","perp;":"⊥","pertenk;":"‱","Pfr;":"𝔓","pfr;":"𝔭","Phi;":"Φ","phi;":"φ","phiv;":"ϕ","phmmat;":"ℳ","phone;":"☎","Pi;":"Π","pi;":"π","pitchfork;":"⋔","piv;":"ϖ","planck;":"ℏ","planckh;":"ℎ","plankv;":"ℏ","plus;":"+","plusacir;":"⨣","plusb;":"⊞","pluscir;":"⨢","plusdo;":"∔","plusdu;":"⨥","pluse;":"⩲","PlusMinus;":"±","plusmn;":"±","plusmn":"±","plussim;":"⨦","plustwo;":"⨧","pm;":"±","Poincareplane;":"ℌ","pointint;":"⨕","Popf;":"ℙ","popf;":"𝕡","pound;":"£","pound":"£","Pr;":"⪻","pr;":"≺","prap;":"⪷","prcue;":"≼","prE;":"⪳","pre;":"⪯","prec;":"≺","precapprox;":"⪷","preccurlyeq;":"≼","Precedes;":"≺","PrecedesEqual;":"⪯","PrecedesSlantEqual;":"≼","PrecedesTilde;":"≾","preceq;":"⪯","precnapprox;":"⪹","precneqq;":"⪵","precnsim;":"⋨","precsim;":"≾","Prime;":"″","prime;":"′","primes;":"ℙ","prnap;":"⪹","prnE;":"⪵","prnsim;":"⋨","prod;":"∏","Product;":"∏","profalar;":"⌮","profline;":"⌒","profsurf;":"⌓","prop;":"∝","Proportion;":"∷","Proportional;":"∝","propto;":"∝","prsim;":"≾","prurel;":"⊰","Pscr;":"𝒫","pscr;":"𝓅","Psi;":"Ψ","psi;":"ψ","puncsp;":" ","Qfr;":"𝔔","qfr;":"𝔮","qint;":"⨌","Qopf;":"ℚ","qopf;":"𝕢","qprime;":"⁗","Qscr;":"𝒬","qscr;":"𝓆","quaternions;":"ℍ","quatint;":"⨖","quest;":"?","questeq;":"≟","QUOT;":"\\"","QUOT":"\\"","quot;":"\\"","quot":"\\"","rAarr;":"⇛","race;":"∽̱","Racute;":"Ŕ","racute;":"ŕ","radic;":"√","raemptyv;":"⦳","Rang;":"⟫","rang;":"⟩","rangd;":"⦒","range;":"⦥","rangle;":"⟩","raquo;":"»","raquo":"»","Rarr;":"↠","rArr;":"⇒","rarr;":"→","rarrap;":"⥵","rarrb;":"⇥","rarrbfs;":"⤠","rarrc;":"⤳","rarrfs;":"⤞","rarrhk;":"↪","rarrlp;":"↬","rarrpl;":"⥅","rarrsim;":"⥴","Rarrtl;":"⤖","rarrtl;":"↣","rarrw;":"↝","rAtail;":"⤜","ratail;":"⤚","ratio;":"∶","rationals;":"ℚ","RBarr;":"⤐","rBarr;":"⤏","rbarr;":"⤍","rbbrk;":"❳","rbrace;":"}","rbrack;":"]","rbrke;":"⦌","rbrksld;":"⦎","rbrkslu;":"⦐","Rcaron;":"Ř","rcaron;":"ř","Rcedil;":"Ŗ","rcedil;":"ŗ","rceil;":"⌉","rcub;":"}","Rcy;":"Р","rcy;":"р","rdca;":"⤷","rdldhar;":"⥩","rdquo;":"”","rdquor;":"”","rdsh;":"↳","Re;":"ℜ","real;":"ℜ","realine;":"ℛ","realpart;":"ℜ","reals;":"ℝ","rect;":"▭","REG;":"®","REG":"®","reg;":"®","reg":"®","ReverseElement;":"∋","ReverseEquilibrium;":"⇋","ReverseUpEquilibrium;":"⥯","rfisht;":"⥽","rfloor;":"⌋","Rfr;":"ℜ","rfr;":"𝔯","rHar;":"⥤","rhard;":"⇁","rharu;":"⇀","rharul;":"⥬","Rho;":"Ρ","rho;":"ρ","rhov;":"ϱ","RightAngleBracket;":"⟩","RightArrow;":"→","Rightarrow;":"⇒","rightarrow;":"→","RightArrowBar;":"⇥","RightArrowLeftArrow;":"⇄","rightarrowtail;":"↣","RightCeiling;":"⌉","RightDoubleBracket;":"⟧","RightDownTeeVector;":"⥝","RightDownVector;":"⇂","RightDownVectorBar;":"⥕","RightFloor;":"⌋","rightharpoondown;":"⇁","rightharpoonup;":"⇀","rightleftarrows;":"⇄","rightleftharpoons;":"⇌","rightrightarrows;":"⇉","rightsquigarrow;":"↝","RightTee;":"⊢","RightTeeArrow;":"↦","RightTeeVector;":"⥛","rightthreetimes;":"⋌","RightTriangle;":"⊳","RightTriangleBar;":"⧐","RightTriangleEqual;":"⊵","RightUpDownVector;":"⥏","RightUpTeeVector;":"⥜","RightUpVector;":"↾","RightUpVectorBar;":"⥔","RightVector;":"⇀","RightVectorBar;":"⥓","ring;":"˚","risingdotseq;":"≓","rlarr;":"⇄","rlhar;":"⇌","rlm;":"‏","rmoust;":"⎱","rmoustache;":"⎱","rnmid;":"⫮","roang;":"⟭","roarr;":"⇾","robrk;":"⟧","ropar;":"⦆","Ropf;":"ℝ","ropf;":"𝕣","roplus;":"⨮","rotimes;":"⨵","RoundImplies;":"⥰","rpar;":")","rpargt;":"⦔","rppolint;":"⨒","rrarr;":"⇉","Rrightarrow;":"⇛","rsaquo;":"›","Rscr;":"ℛ","rscr;":"𝓇","Rsh;":"↱","rsh;":"↱","rsqb;":"]","rsquo;":"’","rsquor;":"’","rthree;":"⋌","rtimes;":"⋊","rtri;":"▹","rtrie;":"⊵","rtrif;":"▸","rtriltri;":"⧎","RuleDelayed;":"⧴","ruluhar;":"⥨","rx;":"℞","Sacute;":"Ś","sacute;":"ś","sbquo;":"‚","Sc;":"⪼","sc;":"≻","scap;":"⪸","Scaron;":"Š","scaron;":"š","sccue;":"≽","scE;":"⪴","sce;":"⪰","Scedil;":"Ş","scedil;":"ş","Scirc;":"Ŝ","scirc;":"ŝ","scnap;":"⪺","scnE;":"⪶","scnsim;":"⋩","scpolint;":"⨓","scsim;":"≿","Scy;":"С","scy;":"с","sdot;":"⋅","sdotb;":"⊡","sdote;":"⩦","searhk;":"⤥","seArr;":"⇘","searr;":"↘","searrow;":"↘","sect;":"§","sect":"§","semi;":";","seswar;":"⤩","setminus;":"∖","setmn;":"∖","sext;":"✶","Sfr;":"𝔖","sfr;":"𝔰","sfrown;":"⌢","sharp;":"♯","SHCHcy;":"Щ","shchcy;":"щ","SHcy;":"Ш","shcy;":"ш","ShortDownArrow;":"↓","ShortLeftArrow;":"←","shortmid;":"∣","shortparallel;":"∥","ShortRightArrow;":"→","ShortUpArrow;":"↑","shy;":"­","shy":"­","Sigma;":"Σ","sigma;":"σ","sigmaf;":"ς","sigmav;":"ς","sim;":"∼","simdot;":"⩪","sime;":"≃","simeq;":"≃","simg;":"⪞","simgE;":"⪠","siml;":"⪝","simlE;":"⪟","simne;":"≆","simplus;":"⨤","simrarr;":"⥲","slarr;":"←","SmallCircle;":"∘","smallsetminus;":"∖","smashp;":"⨳","smeparsl;":"⧤","smid;":"∣","smile;":"⌣","smt;":"⪪","smte;":"⪬","smtes;":"⪬︀","SOFTcy;":"Ь","softcy;":"ь","sol;":"/","solb;":"⧄","solbar;":"⌿","Sopf;":"𝕊","sopf;":"𝕤","spades;":"♠","spadesuit;":"♠","spar;":"∥","sqcap;":"⊓","sqcaps;":"⊓︀","sqcup;":"⊔","sqcups;":"⊔︀","Sqrt;":"√","sqsub;":"⊏","sqsube;":"⊑","sqsubset;":"⊏","sqsubseteq;":"⊑","sqsup;":"⊐","sqsupe;":"⊒","sqsupset;":"⊐","sqsupseteq;":"⊒","squ;":"□","Square;":"□","square;":"□","SquareIntersection;":"⊓","SquareSubset;":"⊏","SquareSubsetEqual;":"⊑","SquareSuperset;":"⊐","SquareSupersetEqual;":"⊒","SquareUnion;":"⊔","squarf;":"▪","squf;":"▪","srarr;":"→","Sscr;":"𝒮","sscr;":"𝓈","ssetmn;":"∖","ssmile;":"⌣","sstarf;":"⋆","Star;":"⋆","star;":"☆","starf;":"★","straightepsilon;":"ϵ","straightphi;":"ϕ","strns;":"¯","Sub;":"⋐","sub;":"⊂","subdot;":"⪽","subE;":"⫅","sube;":"⊆","subedot;":"⫃","submult;":"⫁","subnE;":"⫋","subne;":"⊊","subplus;":"⪿","subrarr;":"⥹","Subset;":"⋐","subset;":"⊂","subseteq;":"⊆","subseteqq;":"⫅","SubsetEqual;":"⊆","subsetneq;":"⊊","subsetneqq;":"⫋","subsim;":"⫇","subsub;":"⫕","subsup;":"⫓","succ;":"≻","succapprox;":"⪸","succcurlyeq;":"≽","Succeeds;":"≻","SucceedsEqual;":"⪰","SucceedsSlantEqual;":"≽","SucceedsTilde;":"≿","succeq;":"⪰","succnapprox;":"⪺","succneqq;":"⪶","succnsim;":"⋩","succsim;":"≿","SuchThat;":"∋","Sum;":"∑","sum;":"∑","sung;":"♪","Sup;":"⋑","sup;":"⊃","sup1;":"¹","sup1":"¹","sup2;":"²","sup2":"²","sup3;":"³","sup3":"³","supdot;":"⪾","supdsub;":"⫘","supE;":"⫆","supe;":"⊇","supedot;":"⫄","Superset;":"⊃","SupersetEqual;":"⊇","suphsol;":"⟉","suphsub;":"⫗","suplarr;":"⥻","supmult;":"⫂","supnE;":"⫌","supne;":"⊋","supplus;":"⫀","Supset;":"⋑","supset;":"⊃","supseteq;":"⊇","supseteqq;":"⫆","supsetneq;":"⊋","supsetneqq;":"⫌","supsim;":"⫈","supsub;":"⫔","supsup;":"⫖","swarhk;":"⤦","swArr;":"⇙","swarr;":"↙","swarrow;":"↙","swnwar;":"⤪","szlig;":"ß","szlig":"ß","Tab;":"\\t","target;":"⌖","Tau;":"Τ","tau;":"τ","tbrk;":"⎴","Tcaron;":"Ť","tcaron;":"ť","Tcedil;":"Ţ","tcedil;":"ţ","Tcy;":"Т","tcy;":"т","tdot;":"⃛","telrec;":"⌕","Tfr;":"𝔗","tfr;":"𝔱","there4;":"∴","Therefore;":"∴","therefore;":"∴","Theta;":"Θ","theta;":"θ","thetasym;":"ϑ","thetav;":"ϑ","thickapprox;":"≈","thicksim;":"∼","ThickSpace;":"  ","thinsp;":" ","ThinSpace;":" ","thkap;":"≈","thksim;":"∼","THORN;":"Þ","THORN":"Þ","thorn;":"þ","thorn":"þ","Tilde;":"∼","tilde;":"˜","TildeEqual;":"≃","TildeFullEqual;":"≅","TildeTilde;":"≈","times;":"×","times":"×","timesb;":"⊠","timesbar;":"⨱","timesd;":"⨰","tint;":"∭","toea;":"⤨","top;":"⊤","topbot;":"⌶","topcir;":"⫱","Topf;":"𝕋","topf;":"𝕥","topfork;":"⫚","tosa;":"⤩","tprime;":"‴","TRADE;":"™","trade;":"™","triangle;":"▵","triangledown;":"▿","triangleleft;":"◃","trianglelefteq;":"⊴","triangleq;":"≜","triangleright;":"▹","trianglerighteq;":"⊵","tridot;":"◬","trie;":"≜","triminus;":"⨺","TripleDot;":"⃛","triplus;":"⨹","trisb;":"⧍","tritime;":"⨻","trpezium;":"⏢","Tscr;":"𝒯","tscr;":"𝓉","TScy;":"Ц","tscy;":"ц","TSHcy;":"Ћ","tshcy;":"ћ","Tstrok;":"Ŧ","tstrok;":"ŧ","twixt;":"≬","twoheadleftarrow;":"↞","twoheadrightarrow;":"↠","Uacute;":"Ú","Uacute":"Ú","uacute;":"ú","uacute":"ú","Uarr;":"↟","uArr;":"⇑","uarr;":"↑","Uarrocir;":"⥉","Ubrcy;":"Ў","ubrcy;":"ў","Ubreve;":"Ŭ","ubreve;":"ŭ","Ucirc;":"Û","Ucirc":"Û","ucirc;":"û","ucirc":"û","Ucy;":"У","ucy;":"у","udarr;":"⇅","Udblac;":"Ű","udblac;":"ű","udhar;":"⥮","ufisht;":"⥾","Ufr;":"𝔘","ufr;":"𝔲","Ugrave;":"Ù","Ugrave":"Ù","ugrave;":"ù","ugrave":"ù","uHar;":"⥣","uharl;":"↿","uharr;":"↾","uhblk;":"▀","ulcorn;":"⌜","ulcorner;":"⌜","ulcrop;":"⌏","ultri;":"◸","Umacr;":"Ū","umacr;":"ū","uml;":"¨","uml":"¨","UnderBar;":"_","UnderBrace;":"⏟","UnderBracket;":"⎵","UnderParenthesis;":"⏝","Union;":"⋃","UnionPlus;":"⊎","Uogon;":"Ų","uogon;":"ų","Uopf;":"𝕌","uopf;":"𝕦","UpArrow;":"↑","Uparrow;":"⇑","uparrow;":"↑","UpArrowBar;":"⤒","UpArrowDownArrow;":"⇅","UpDownArrow;":"↕","Updownarrow;":"⇕","updownarrow;":"↕","UpEquilibrium;":"⥮","upharpoonleft;":"↿","upharpoonright;":"↾","uplus;":"⊎","UpperLeftArrow;":"↖","UpperRightArrow;":"↗","Upsi;":"ϒ","upsi;":"υ","upsih;":"ϒ","Upsilon;":"Υ","upsilon;":"υ","UpTee;":"⊥","UpTeeArrow;":"↥","upuparrows;":"⇈","urcorn;":"⌝","urcorner;":"⌝","urcrop;":"⌎","Uring;":"Ů","uring;":"ů","urtri;":"◹","Uscr;":"𝒰","uscr;":"𝓊","utdot;":"⋰","Utilde;":"Ũ","utilde;":"ũ","utri;":"▵","utrif;":"▴","uuarr;":"⇈","Uuml;":"Ü","Uuml":"Ü","uuml;":"ü","uuml":"ü","uwangle;":"⦧","vangrt;":"⦜","varepsilon;":"ϵ","varkappa;":"ϰ","varnothing;":"∅","varphi;":"ϕ","varpi;":"ϖ","varpropto;":"∝","vArr;":"⇕","varr;":"↕","varrho;":"ϱ","varsigma;":"ς","varsubsetneq;":"⊊︀","varsubsetneqq;":"⫋︀","varsupsetneq;":"⊋︀","varsupsetneqq;":"⫌︀","vartheta;":"ϑ","vartriangleleft;":"⊲","vartriangleright;":"⊳","Vbar;":"⫫","vBar;":"⫨","vBarv;":"⫩","Vcy;":"В","vcy;":"в","VDash;":"⊫","Vdash;":"⊩","vDash;":"⊨","vdash;":"⊢","Vdashl;":"⫦","Vee;":"⋁","vee;":"∨","veebar;":"⊻","veeeq;":"≚","vellip;":"⋮","Verbar;":"‖","verbar;":"|","Vert;":"‖","vert;":"|","VerticalBar;":"∣","VerticalLine;":"|","VerticalSeparator;":"❘","VerticalTilde;":"≀","VeryThinSpace;":" ","Vfr;":"𝔙","vfr;":"𝔳","vltri;":"⊲","vnsub;":"⊂⃒","vnsup;":"⊃⃒","Vopf;":"𝕍","vopf;":"𝕧","vprop;":"∝","vrtri;":"⊳","Vscr;":"𝒱","vscr;":"𝓋","vsubnE;":"⫋︀","vsubne;":"⊊︀","vsupnE;":"⫌︀","vsupne;":"⊋︀","Vvdash;":"⊪","vzigzag;":"⦚","Wcirc;":"Ŵ","wcirc;":"ŵ","wedbar;":"⩟","Wedge;":"⋀","wedge;":"∧","wedgeq;":"≙","weierp;":"℘","Wfr;":"𝔚","wfr;":"𝔴","Wopf;":"𝕎","wopf;":"𝕨","wp;":"℘","wr;":"≀","wreath;":"≀","Wscr;":"𝒲","wscr;":"𝓌","xcap;":"⋂","xcirc;":"◯","xcup;":"⋃","xdtri;":"▽","Xfr;":"𝔛","xfr;":"𝔵","xhArr;":"⟺","xharr;":"⟷","Xi;":"Ξ","xi;":"ξ","xlArr;":"⟸","xlarr;":"⟵","xmap;":"⟼","xnis;":"⋻","xodot;":"⨀","Xopf;":"𝕏","xopf;":"𝕩","xoplus;":"⨁","xotime;":"⨂","xrArr;":"⟹","xrarr;":"⟶","Xscr;":"𝒳","xscr;":"𝓍","xsqcup;":"⨆","xuplus;":"⨄","xutri;":"△","xvee;":"⋁","xwedge;":"⋀","Yacute;":"Ý","Yacute":"Ý","yacute;":"ý","yacute":"ý","YAcy;":"Я","yacy;":"я","Ycirc;":"Ŷ","ycirc;":"ŷ","Ycy;":"Ы","ycy;":"ы","yen;":"¥","yen":"¥","Yfr;":"𝔜","yfr;":"𝔶","YIcy;":"Ї","yicy;":"ї","Yopf;":"𝕐","yopf;":"𝕪","Yscr;":"𝒴","yscr;":"𝓎","YUcy;":"Ю","yucy;":"ю","Yuml;":"Ÿ","yuml;":"ÿ","yuml":"ÿ","Zacute;":"Ź","zacute;":"ź","Zcaron;":"Ž","zcaron;":"ž","Zcy;":"З","zcy;":"з","Zdot;":"Ż","zdot;":"ż","zeetrf;":"ℨ","ZeroWidthSpace;":"​","Zeta;":"Ζ","zeta;":"ζ","Zfr;":"ℨ","zfr;":"𝔷","ZHcy;":"Ж","zhcy;":"ж","zigrarr;":"⇝","Zopf;":"ℤ","zopf;":"𝕫","Zscr;":"𝒵","zscr;":"𝓏","zwj;":"‍","zwnj;":"‌"}')},3123:e=>{"use strict";e.exports=JSON.parse('{"9":"Tab;","10":"NewLine;","33":"excl;","34":"quot;","35":"num;","36":"dollar;","37":"percnt;","38":"amp;","39":"apos;","40":"lpar;","41":"rpar;","42":"midast;","43":"plus;","44":"comma;","46":"period;","47":"sol;","58":"colon;","59":"semi;","60":"lt;","61":"equals;","62":"gt;","63":"quest;","64":"commat;","91":"lsqb;","92":"bsol;","93":"rsqb;","94":"Hat;","95":"UnderBar;","96":"grave;","123":"lcub;","124":"VerticalLine;","125":"rcub;","160":"NonBreakingSpace;","161":"iexcl;","162":"cent;","163":"pound;","164":"curren;","165":"yen;","166":"brvbar;","167":"sect;","168":"uml;","169":"copy;","170":"ordf;","171":"laquo;","172":"not;","173":"shy;","174":"reg;","175":"strns;","176":"deg;","177":"pm;","178":"sup2;","179":"sup3;","180":"DiacriticalAcute;","181":"micro;","182":"para;","183":"middot;","184":"Cedilla;","185":"sup1;","186":"ordm;","187":"raquo;","188":"frac14;","189":"half;","190":"frac34;","191":"iquest;","192":"Agrave;","193":"Aacute;","194":"Acirc;","195":"Atilde;","196":"Auml;","197":"Aring;","198":"AElig;","199":"Ccedil;","200":"Egrave;","201":"Eacute;","202":"Ecirc;","203":"Euml;","204":"Igrave;","205":"Iacute;","206":"Icirc;","207":"Iuml;","208":"ETH;","209":"Ntilde;","210":"Ograve;","211":"Oacute;","212":"Ocirc;","213":"Otilde;","214":"Ouml;","215":"times;","216":"Oslash;","217":"Ugrave;","218":"Uacute;","219":"Ucirc;","220":"Uuml;","221":"Yacute;","222":"THORN;","223":"szlig;","224":"agrave;","225":"aacute;","226":"acirc;","227":"atilde;","228":"auml;","229":"aring;","230":"aelig;","231":"ccedil;","232":"egrave;","233":"eacute;","234":"ecirc;","235":"euml;","236":"igrave;","237":"iacute;","238":"icirc;","239":"iuml;","240":"eth;","241":"ntilde;","242":"ograve;","243":"oacute;","244":"ocirc;","245":"otilde;","246":"ouml;","247":"divide;","248":"oslash;","249":"ugrave;","250":"uacute;","251":"ucirc;","252":"uuml;","253":"yacute;","254":"thorn;","255":"yuml;","256":"Amacr;","257":"amacr;","258":"Abreve;","259":"abreve;","260":"Aogon;","261":"aogon;","262":"Cacute;","263":"cacute;","264":"Ccirc;","265":"ccirc;","266":"Cdot;","267":"cdot;","268":"Ccaron;","269":"ccaron;","270":"Dcaron;","271":"dcaron;","272":"Dstrok;","273":"dstrok;","274":"Emacr;","275":"emacr;","278":"Edot;","279":"edot;","280":"Eogon;","281":"eogon;","282":"Ecaron;","283":"ecaron;","284":"Gcirc;","285":"gcirc;","286":"Gbreve;","287":"gbreve;","288":"Gdot;","289":"gdot;","290":"Gcedil;","292":"Hcirc;","293":"hcirc;","294":"Hstrok;","295":"hstrok;","296":"Itilde;","297":"itilde;","298":"Imacr;","299":"imacr;","302":"Iogon;","303":"iogon;","304":"Idot;","305":"inodot;","306":"IJlig;","307":"ijlig;","308":"Jcirc;","309":"jcirc;","310":"Kcedil;","311":"kcedil;","312":"kgreen;","313":"Lacute;","314":"lacute;","315":"Lcedil;","316":"lcedil;","317":"Lcaron;","318":"lcaron;","319":"Lmidot;","320":"lmidot;","321":"Lstrok;","322":"lstrok;","323":"Nacute;","324":"nacute;","325":"Ncedil;","326":"ncedil;","327":"Ncaron;","328":"ncaron;","329":"napos;","330":"ENG;","331":"eng;","332":"Omacr;","333":"omacr;","336":"Odblac;","337":"odblac;","338":"OElig;","339":"oelig;","340":"Racute;","341":"racute;","342":"Rcedil;","343":"rcedil;","344":"Rcaron;","345":"rcaron;","346":"Sacute;","347":"sacute;","348":"Scirc;","349":"scirc;","350":"Scedil;","351":"scedil;","352":"Scaron;","353":"scaron;","354":"Tcedil;","355":"tcedil;","356":"Tcaron;","357":"tcaron;","358":"Tstrok;","359":"tstrok;","360":"Utilde;","361":"utilde;","362":"Umacr;","363":"umacr;","364":"Ubreve;","365":"ubreve;","366":"Uring;","367":"uring;","368":"Udblac;","369":"udblac;","370":"Uogon;","371":"uogon;","372":"Wcirc;","373":"wcirc;","374":"Ycirc;","375":"ycirc;","376":"Yuml;","377":"Zacute;","378":"zacute;","379":"Zdot;","380":"zdot;","381":"Zcaron;","382":"zcaron;","402":"fnof;","437":"imped;","501":"gacute;","567":"jmath;","710":"circ;","711":"Hacek;","728":"breve;","729":"dot;","730":"ring;","731":"ogon;","732":"tilde;","733":"DiacriticalDoubleAcute;","785":"DownBreve;","913":"Alpha;","914":"Beta;","915":"Gamma;","916":"Delta;","917":"Epsilon;","918":"Zeta;","919":"Eta;","920":"Theta;","921":"Iota;","922":"Kappa;","923":"Lambda;","924":"Mu;","925":"Nu;","926":"Xi;","927":"Omicron;","928":"Pi;","929":"Rho;","931":"Sigma;","932":"Tau;","933":"Upsilon;","934":"Phi;","935":"Chi;","936":"Psi;","937":"Omega;","945":"alpha;","946":"beta;","947":"gamma;","948":"delta;","949":"epsilon;","950":"zeta;","951":"eta;","952":"theta;","953":"iota;","954":"kappa;","955":"lambda;","956":"mu;","957":"nu;","958":"xi;","959":"omicron;","960":"pi;","961":"rho;","962":"varsigma;","963":"sigma;","964":"tau;","965":"upsilon;","966":"phi;","967":"chi;","968":"psi;","969":"omega;","977":"vartheta;","978":"upsih;","981":"varphi;","982":"varpi;","988":"Gammad;","989":"gammad;","1008":"varkappa;","1009":"varrho;","1013":"varepsilon;","1014":"bepsi;","1025":"IOcy;","1026":"DJcy;","1027":"GJcy;","1028":"Jukcy;","1029":"DScy;","1030":"Iukcy;","1031":"YIcy;","1032":"Jsercy;","1033":"LJcy;","1034":"NJcy;","1035":"TSHcy;","1036":"KJcy;","1038":"Ubrcy;","1039":"DZcy;","1040":"Acy;","1041":"Bcy;","1042":"Vcy;","1043":"Gcy;","1044":"Dcy;","1045":"IEcy;","1046":"ZHcy;","1047":"Zcy;","1048":"Icy;","1049":"Jcy;","1050":"Kcy;","1051":"Lcy;","1052":"Mcy;","1053":"Ncy;","1054":"Ocy;","1055":"Pcy;","1056":"Rcy;","1057":"Scy;","1058":"Tcy;","1059":"Ucy;","1060":"Fcy;","1061":"KHcy;","1062":"TScy;","1063":"CHcy;","1064":"SHcy;","1065":"SHCHcy;","1066":"HARDcy;","1067":"Ycy;","1068":"SOFTcy;","1069":"Ecy;","1070":"YUcy;","1071":"YAcy;","1072":"acy;","1073":"bcy;","1074":"vcy;","1075":"gcy;","1076":"dcy;","1077":"iecy;","1078":"zhcy;","1079":"zcy;","1080":"icy;","1081":"jcy;","1082":"kcy;","1083":"lcy;","1084":"mcy;","1085":"ncy;","1086":"ocy;","1087":"pcy;","1088":"rcy;","1089":"scy;","1090":"tcy;","1091":"ucy;","1092":"fcy;","1093":"khcy;","1094":"tscy;","1095":"chcy;","1096":"shcy;","1097":"shchcy;","1098":"hardcy;","1099":"ycy;","1100":"softcy;","1101":"ecy;","1102":"yucy;","1103":"yacy;","1105":"iocy;","1106":"djcy;","1107":"gjcy;","1108":"jukcy;","1109":"dscy;","1110":"iukcy;","1111":"yicy;","1112":"jsercy;","1113":"ljcy;","1114":"njcy;","1115":"tshcy;","1116":"kjcy;","1118":"ubrcy;","1119":"dzcy;","8194":"ensp;","8195":"emsp;","8196":"emsp13;","8197":"emsp14;","8199":"numsp;","8200":"puncsp;","8201":"ThinSpace;","8202":"VeryThinSpace;","8203":"ZeroWidthSpace;","8204":"zwnj;","8205":"zwj;","8206":"lrm;","8207":"rlm;","8208":"hyphen;","8211":"ndash;","8212":"mdash;","8213":"horbar;","8214":"Vert;","8216":"OpenCurlyQuote;","8217":"rsquor;","8218":"sbquo;","8220":"OpenCurlyDoubleQuote;","8221":"rdquor;","8222":"ldquor;","8224":"dagger;","8225":"ddagger;","8226":"bullet;","8229":"nldr;","8230":"mldr;","8240":"permil;","8241":"pertenk;","8242":"prime;","8243":"Prime;","8244":"tprime;","8245":"bprime;","8249":"lsaquo;","8250":"rsaquo;","8254":"OverBar;","8257":"caret;","8259":"hybull;","8260":"frasl;","8271":"bsemi;","8279":"qprime;","8287":"MediumSpace;","8288":"NoBreak;","8289":"ApplyFunction;","8290":"it;","8291":"InvisibleComma;","8364":"euro;","8411":"TripleDot;","8412":"DotDot;","8450":"Copf;","8453":"incare;","8458":"gscr;","8459":"Hscr;","8460":"Poincareplane;","8461":"quaternions;","8462":"planckh;","8463":"plankv;","8464":"Iscr;","8465":"imagpart;","8466":"Lscr;","8467":"ell;","8469":"Nopf;","8470":"numero;","8471":"copysr;","8472":"wp;","8473":"primes;","8474":"rationals;","8475":"Rscr;","8476":"Rfr;","8477":"Ropf;","8478":"rx;","8482":"trade;","8484":"Zopf;","8487":"mho;","8488":"Zfr;","8489":"iiota;","8492":"Bscr;","8493":"Cfr;","8495":"escr;","8496":"expectation;","8497":"Fscr;","8499":"phmmat;","8500":"oscr;","8501":"aleph;","8502":"beth;","8503":"gimel;","8504":"daleth;","8517":"DD;","8518":"DifferentialD;","8519":"exponentiale;","8520":"ImaginaryI;","8531":"frac13;","8532":"frac23;","8533":"frac15;","8534":"frac25;","8535":"frac35;","8536":"frac45;","8537":"frac16;","8538":"frac56;","8539":"frac18;","8540":"frac38;","8541":"frac58;","8542":"frac78;","8592":"slarr;","8593":"uparrow;","8594":"srarr;","8595":"ShortDownArrow;","8596":"leftrightarrow;","8597":"varr;","8598":"UpperLeftArrow;","8599":"UpperRightArrow;","8600":"searrow;","8601":"swarrow;","8602":"nleftarrow;","8603":"nrightarrow;","8605":"rightsquigarrow;","8606":"twoheadleftarrow;","8607":"Uarr;","8608":"twoheadrightarrow;","8609":"Darr;","8610":"leftarrowtail;","8611":"rightarrowtail;","8612":"mapstoleft;","8613":"UpTeeArrow;","8614":"RightTeeArrow;","8615":"mapstodown;","8617":"larrhk;","8618":"rarrhk;","8619":"looparrowleft;","8620":"rarrlp;","8621":"leftrightsquigarrow;","8622":"nleftrightarrow;","8624":"lsh;","8625":"rsh;","8626":"ldsh;","8627":"rdsh;","8629":"crarr;","8630":"curvearrowleft;","8631":"curvearrowright;","8634":"olarr;","8635":"orarr;","8636":"lharu;","8637":"lhard;","8638":"upharpoonright;","8639":"upharpoonleft;","8640":"RightVector;","8641":"rightharpoondown;","8642":"RightDownVector;","8643":"LeftDownVector;","8644":"rlarr;","8645":"UpArrowDownArrow;","8646":"lrarr;","8647":"llarr;","8648":"uuarr;","8649":"rrarr;","8650":"downdownarrows;","8651":"ReverseEquilibrium;","8652":"rlhar;","8653":"nLeftarrow;","8654":"nLeftrightarrow;","8655":"nRightarrow;","8656":"Leftarrow;","8657":"Uparrow;","8658":"Rightarrow;","8659":"Downarrow;","8660":"Leftrightarrow;","8661":"vArr;","8662":"nwArr;","8663":"neArr;","8664":"seArr;","8665":"swArr;","8666":"Lleftarrow;","8667":"Rrightarrow;","8669":"zigrarr;","8676":"LeftArrowBar;","8677":"RightArrowBar;","8693":"duarr;","8701":"loarr;","8702":"roarr;","8703":"hoarr;","8704":"forall;","8705":"complement;","8706":"PartialD;","8707":"Exists;","8708":"NotExists;","8709":"varnothing;","8711":"nabla;","8712":"isinv;","8713":"notinva;","8715":"SuchThat;","8716":"NotReverseElement;","8719":"Product;","8720":"Coproduct;","8721":"sum;","8722":"minus;","8723":"mp;","8724":"plusdo;","8726":"ssetmn;","8727":"lowast;","8728":"SmallCircle;","8730":"Sqrt;","8733":"vprop;","8734":"infin;","8735":"angrt;","8736":"angle;","8737":"measuredangle;","8738":"angsph;","8739":"VerticalBar;","8740":"nsmid;","8741":"spar;","8742":"nspar;","8743":"wedge;","8744":"vee;","8745":"cap;","8746":"cup;","8747":"Integral;","8748":"Int;","8749":"tint;","8750":"oint;","8751":"DoubleContourIntegral;","8752":"Cconint;","8753":"cwint;","8754":"cwconint;","8755":"CounterClockwiseContourIntegral;","8756":"therefore;","8757":"because;","8758":"ratio;","8759":"Proportion;","8760":"minusd;","8762":"mDDot;","8763":"homtht;","8764":"Tilde;","8765":"bsim;","8766":"mstpos;","8767":"acd;","8768":"wreath;","8769":"nsim;","8770":"esim;","8771":"TildeEqual;","8772":"nsimeq;","8773":"TildeFullEqual;","8774":"simne;","8775":"NotTildeFullEqual;","8776":"TildeTilde;","8777":"NotTildeTilde;","8778":"approxeq;","8779":"apid;","8780":"bcong;","8781":"CupCap;","8782":"HumpDownHump;","8783":"HumpEqual;","8784":"esdot;","8785":"eDot;","8786":"fallingdotseq;","8787":"risingdotseq;","8788":"coloneq;","8789":"eqcolon;","8790":"eqcirc;","8791":"cire;","8793":"wedgeq;","8794":"veeeq;","8796":"trie;","8799":"questeq;","8800":"NotEqual;","8801":"equiv;","8802":"NotCongruent;","8804":"leq;","8805":"GreaterEqual;","8806":"LessFullEqual;","8807":"GreaterFullEqual;","8808":"lneqq;","8809":"gneqq;","8810":"NestedLessLess;","8811":"NestedGreaterGreater;","8812":"twixt;","8813":"NotCupCap;","8814":"NotLess;","8815":"NotGreater;","8816":"NotLessEqual;","8817":"NotGreaterEqual;","8818":"lsim;","8819":"gtrsim;","8820":"NotLessTilde;","8821":"NotGreaterTilde;","8822":"lg;","8823":"gtrless;","8824":"ntlg;","8825":"ntgl;","8826":"Precedes;","8827":"Succeeds;","8828":"PrecedesSlantEqual;","8829":"SucceedsSlantEqual;","8830":"prsim;","8831":"succsim;","8832":"nprec;","8833":"nsucc;","8834":"subset;","8835":"supset;","8836":"nsub;","8837":"nsup;","8838":"SubsetEqual;","8839":"supseteq;","8840":"nsubseteq;","8841":"nsupseteq;","8842":"subsetneq;","8843":"supsetneq;","8845":"cupdot;","8846":"uplus;","8847":"SquareSubset;","8848":"SquareSuperset;","8849":"SquareSubsetEqual;","8850":"SquareSupersetEqual;","8851":"SquareIntersection;","8852":"SquareUnion;","8853":"oplus;","8854":"ominus;","8855":"otimes;","8856":"osol;","8857":"odot;","8858":"ocir;","8859":"oast;","8861":"odash;","8862":"plusb;","8863":"minusb;","8864":"timesb;","8865":"sdotb;","8866":"vdash;","8867":"LeftTee;","8868":"top;","8869":"UpTee;","8871":"models;","8872":"vDash;","8873":"Vdash;","8874":"Vvdash;","8875":"VDash;","8876":"nvdash;","8877":"nvDash;","8878":"nVdash;","8879":"nVDash;","8880":"prurel;","8882":"vltri;","8883":"vrtri;","8884":"trianglelefteq;","8885":"trianglerighteq;","8886":"origof;","8887":"imof;","8888":"mumap;","8889":"hercon;","8890":"intercal;","8891":"veebar;","8893":"barvee;","8894":"angrtvb;","8895":"lrtri;","8896":"xwedge;","8897":"xvee;","8898":"xcap;","8899":"xcup;","8900":"diamond;","8901":"sdot;","8902":"Star;","8903":"divonx;","8904":"bowtie;","8905":"ltimes;","8906":"rtimes;","8907":"lthree;","8908":"rthree;","8909":"bsime;","8910":"cuvee;","8911":"cuwed;","8912":"Subset;","8913":"Supset;","8914":"Cap;","8915":"Cup;","8916":"pitchfork;","8917":"epar;","8918":"ltdot;","8919":"gtrdot;","8920":"Ll;","8921":"ggg;","8922":"LessEqualGreater;","8923":"gtreqless;","8926":"curlyeqprec;","8927":"curlyeqsucc;","8928":"nprcue;","8929":"nsccue;","8930":"nsqsube;","8931":"nsqsupe;","8934":"lnsim;","8935":"gnsim;","8936":"prnsim;","8937":"succnsim;","8938":"ntriangleleft;","8939":"ntriangleright;","8940":"ntrianglelefteq;","8941":"ntrianglerighteq;","8942":"vellip;","8943":"ctdot;","8944":"utdot;","8945":"dtdot;","8946":"disin;","8947":"isinsv;","8948":"isins;","8949":"isindot;","8950":"notinvc;","8951":"notinvb;","8953":"isinE;","8954":"nisd;","8955":"xnis;","8956":"nis;","8957":"notnivc;","8958":"notnivb;","8965":"barwedge;","8966":"doublebarwedge;","8968":"LeftCeiling;","8969":"RightCeiling;","8970":"lfloor;","8971":"RightFloor;","8972":"drcrop;","8973":"dlcrop;","8974":"urcrop;","8975":"ulcrop;","8976":"bnot;","8978":"profline;","8979":"profsurf;","8981":"telrec;","8982":"target;","8988":"ulcorner;","8989":"urcorner;","8990":"llcorner;","8991":"lrcorner;","8994":"sfrown;","8995":"ssmile;","9005":"cylcty;","9006":"profalar;","9014":"topbot;","9021":"ovbar;","9023":"solbar;","9084":"angzarr;","9136":"lmoustache;","9137":"rmoustache;","9140":"tbrk;","9141":"UnderBracket;","9142":"bbrktbrk;","9180":"OverParenthesis;","9181":"UnderParenthesis;","9182":"OverBrace;","9183":"UnderBrace;","9186":"trpezium;","9191":"elinters;","9251":"blank;","9416":"oS;","9472":"HorizontalLine;","9474":"boxv;","9484":"boxdr;","9488":"boxdl;","9492":"boxur;","9496":"boxul;","9500":"boxvr;","9508":"boxvl;","9516":"boxhd;","9524":"boxhu;","9532":"boxvh;","9552":"boxH;","9553":"boxV;","9554":"boxdR;","9555":"boxDr;","9556":"boxDR;","9557":"boxdL;","9558":"boxDl;","9559":"boxDL;","9560":"boxuR;","9561":"boxUr;","9562":"boxUR;","9563":"boxuL;","9564":"boxUl;","9565":"boxUL;","9566":"boxvR;","9567":"boxVr;","9568":"boxVR;","9569":"boxvL;","9570":"boxVl;","9571":"boxVL;","9572":"boxHd;","9573":"boxhD;","9574":"boxHD;","9575":"boxHu;","9576":"boxhU;","9577":"boxHU;","9578":"boxvH;","9579":"boxVh;","9580":"boxVH;","9600":"uhblk;","9604":"lhblk;","9608":"block;","9617":"blk14;","9618":"blk12;","9619":"blk34;","9633":"square;","9642":"squf;","9643":"EmptyVerySmallSquare;","9645":"rect;","9646":"marker;","9649":"fltns;","9651":"xutri;","9652":"utrif;","9653":"utri;","9656":"rtrif;","9657":"triangleright;","9661":"xdtri;","9662":"dtrif;","9663":"triangledown;","9666":"ltrif;","9667":"triangleleft;","9674":"lozenge;","9675":"cir;","9708":"tridot;","9711":"xcirc;","9720":"ultri;","9721":"urtri;","9722":"lltri;","9723":"EmptySmallSquare;","9724":"FilledSmallSquare;","9733":"starf;","9734":"star;","9742":"phone;","9792":"female;","9794":"male;","9824":"spadesuit;","9827":"clubsuit;","9829":"heartsuit;","9830":"diams;","9834":"sung;","9837":"flat;","9838":"natural;","9839":"sharp;","10003":"checkmark;","10007":"cross;","10016":"maltese;","10038":"sext;","10072":"VerticalSeparator;","10098":"lbbrk;","10099":"rbbrk;","10184":"bsolhsub;","10185":"suphsol;","10214":"lobrk;","10215":"robrk;","10216":"LeftAngleBracket;","10217":"RightAngleBracket;","10218":"Lang;","10219":"Rang;","10220":"loang;","10221":"roang;","10229":"xlarr;","10230":"xrarr;","10231":"xharr;","10232":"xlArr;","10233":"xrArr;","10234":"xhArr;","10236":"xmap;","10239":"dzigrarr;","10498":"nvlArr;","10499":"nvrArr;","10500":"nvHarr;","10501":"Map;","10508":"lbarr;","10509":"rbarr;","10510":"lBarr;","10511":"rBarr;","10512":"RBarr;","10513":"DDotrahd;","10514":"UpArrowBar;","10515":"DownArrowBar;","10518":"Rarrtl;","10521":"latail;","10522":"ratail;","10523":"lAtail;","10524":"rAtail;","10525":"larrfs;","10526":"rarrfs;","10527":"larrbfs;","10528":"rarrbfs;","10531":"nwarhk;","10532":"nearhk;","10533":"searhk;","10534":"swarhk;","10535":"nwnear;","10536":"toea;","10537":"tosa;","10538":"swnwar;","10547":"rarrc;","10549":"cudarrr;","10550":"ldca;","10551":"rdca;","10552":"cudarrl;","10553":"larrpl;","10556":"curarrm;","10557":"cularrp;","10565":"rarrpl;","10568":"harrcir;","10569":"Uarrocir;","10570":"lurdshar;","10571":"ldrushar;","10574":"LeftRightVector;","10575":"RightUpDownVector;","10576":"DownLeftRightVector;","10577":"LeftUpDownVector;","10578":"LeftVectorBar;","10579":"RightVectorBar;","10580":"RightUpVectorBar;","10581":"RightDownVectorBar;","10582":"DownLeftVectorBar;","10583":"DownRightVectorBar;","10584":"LeftUpVectorBar;","10585":"LeftDownVectorBar;","10586":"LeftTeeVector;","10587":"RightTeeVector;","10588":"RightUpTeeVector;","10589":"RightDownTeeVector;","10590":"DownLeftTeeVector;","10591":"DownRightTeeVector;","10592":"LeftUpTeeVector;","10593":"LeftDownTeeVector;","10594":"lHar;","10595":"uHar;","10596":"rHar;","10597":"dHar;","10598":"luruhar;","10599":"ldrdhar;","10600":"ruluhar;","10601":"rdldhar;","10602":"lharul;","10603":"llhard;","10604":"rharul;","10605":"lrhard;","10606":"UpEquilibrium;","10607":"ReverseUpEquilibrium;","10608":"RoundImplies;","10609":"erarr;","10610":"simrarr;","10611":"larrsim;","10612":"rarrsim;","10613":"rarrap;","10614":"ltlarr;","10616":"gtrarr;","10617":"subrarr;","10619":"suplarr;","10620":"lfisht;","10621":"rfisht;","10622":"ufisht;","10623":"dfisht;","10629":"lopar;","10630":"ropar;","10635":"lbrke;","10636":"rbrke;","10637":"lbrkslu;","10638":"rbrksld;","10639":"lbrksld;","10640":"rbrkslu;","10641":"langd;","10642":"rangd;","10643":"lparlt;","10644":"rpargt;","10645":"gtlPar;","10646":"ltrPar;","10650":"vzigzag;","10652":"vangrt;","10653":"angrtvbd;","10660":"ange;","10661":"range;","10662":"dwangle;","10663":"uwangle;","10664":"angmsdaa;","10665":"angmsdab;","10666":"angmsdac;","10667":"angmsdad;","10668":"angmsdae;","10669":"angmsdaf;","10670":"angmsdag;","10671":"angmsdah;","10672":"bemptyv;","10673":"demptyv;","10674":"cemptyv;","10675":"raemptyv;","10676":"laemptyv;","10677":"ohbar;","10678":"omid;","10679":"opar;","10681":"operp;","10683":"olcross;","10684":"odsold;","10686":"olcir;","10687":"ofcir;","10688":"olt;","10689":"ogt;","10690":"cirscir;","10691":"cirE;","10692":"solb;","10693":"bsolb;","10697":"boxbox;","10701":"trisb;","10702":"rtriltri;","10703":"LeftTriangleBar;","10704":"RightTriangleBar;","10716":"iinfin;","10717":"infintie;","10718":"nvinfin;","10723":"eparsl;","10724":"smeparsl;","10725":"eqvparsl;","10731":"lozf;","10740":"RuleDelayed;","10742":"dsol;","10752":"xodot;","10753":"xoplus;","10754":"xotime;","10756":"xuplus;","10758":"xsqcup;","10764":"qint;","10765":"fpartint;","10768":"cirfnint;","10769":"awint;","10770":"rppolint;","10771":"scpolint;","10772":"npolint;","10773":"pointint;","10774":"quatint;","10775":"intlarhk;","10786":"pluscir;","10787":"plusacir;","10788":"simplus;","10789":"plusdu;","10790":"plussim;","10791":"plustwo;","10793":"mcomma;","10794":"minusdu;","10797":"loplus;","10798":"roplus;","10799":"Cross;","10800":"timesd;","10801":"timesbar;","10803":"smashp;","10804":"lotimes;","10805":"rotimes;","10806":"otimesas;","10807":"Otimes;","10808":"odiv;","10809":"triplus;","10810":"triminus;","10811":"tritime;","10812":"iprod;","10815":"amalg;","10816":"capdot;","10818":"ncup;","10819":"ncap;","10820":"capand;","10821":"cupor;","10822":"cupcap;","10823":"capcup;","10824":"cupbrcap;","10825":"capbrcup;","10826":"cupcup;","10827":"capcap;","10828":"ccups;","10829":"ccaps;","10832":"ccupssm;","10835":"And;","10836":"Or;","10837":"andand;","10838":"oror;","10839":"orslope;","10840":"andslope;","10842":"andv;","10843":"orv;","10844":"andd;","10845":"ord;","10847":"wedbar;","10854":"sdote;","10858":"simdot;","10861":"congdot;","10862":"easter;","10863":"apacir;","10864":"apE;","10865":"eplus;","10866":"pluse;","10867":"Esim;","10868":"Colone;","10869":"Equal;","10871":"eDDot;","10872":"equivDD;","10873":"ltcir;","10874":"gtcir;","10875":"ltquest;","10876":"gtquest;","10877":"LessSlantEqual;","10878":"GreaterSlantEqual;","10879":"lesdot;","10880":"gesdot;","10881":"lesdoto;","10882":"gesdoto;","10883":"lesdotor;","10884":"gesdotol;","10885":"lessapprox;","10886":"gtrapprox;","10887":"lneq;","10888":"gneq;","10889":"lnapprox;","10890":"gnapprox;","10891":"lesseqqgtr;","10892":"gtreqqless;","10893":"lsime;","10894":"gsime;","10895":"lsimg;","10896":"gsiml;","10897":"lgE;","10898":"glE;","10899":"lesges;","10900":"gesles;","10901":"eqslantless;","10902":"eqslantgtr;","10903":"elsdot;","10904":"egsdot;","10905":"el;","10906":"eg;","10909":"siml;","10910":"simg;","10911":"simlE;","10912":"simgE;","10913":"LessLess;","10914":"GreaterGreater;","10916":"glj;","10917":"gla;","10918":"ltcc;","10919":"gtcc;","10920":"lescc;","10921":"gescc;","10922":"smt;","10923":"lat;","10924":"smte;","10925":"late;","10926":"bumpE;","10927":"preceq;","10928":"succeq;","10931":"prE;","10932":"scE;","10933":"prnE;","10934":"succneqq;","10935":"precapprox;","10936":"succapprox;","10937":"prnap;","10938":"succnapprox;","10939":"Pr;","10940":"Sc;","10941":"subdot;","10942":"supdot;","10943":"subplus;","10944":"supplus;","10945":"submult;","10946":"supmult;","10947":"subedot;","10948":"supedot;","10949":"subseteqq;","10950":"supseteqq;","10951":"subsim;","10952":"supsim;","10955":"subsetneqq;","10956":"supsetneqq;","10959":"csub;","10960":"csup;","10961":"csube;","10962":"csupe;","10963":"subsup;","10964":"supsub;","10965":"subsub;","10966":"supsup;","10967":"suphsub;","10968":"supdsub;","10969":"forkv;","10970":"topfork;","10971":"mlcp;","10980":"DoubleLeftTee;","10982":"Vdashl;","10983":"Barv;","10984":"vBar;","10985":"vBarv;","10987":"Vbar;","10988":"Not;","10989":"bNot;","10990":"rnmid;","10991":"cirmid;","10992":"midcir;","10993":"topcir;","10994":"nhpar;","10995":"parsim;","11005":"parsl;","64256":"fflig;","64257":"filig;","64258":"fllig;","64259":"ffilig;","64260":"ffllig;"}')},1402:e=>{"use strict";e.exports=JSON.parse('{"name":"google-auth-library","version":"7.11.0","author":"Google Inc.","description":"Google APIs Authentication Client Library for Node.js","engines":{"node":">=10"},"main":"./build/src/index.js","types":"./build/src/index.d.ts","repository":"googleapis/google-auth-library-nodejs.git","keywords":["google","api","google apis","client","client library"],"dependencies":{"arrify":"^2.0.0","base64-js":"^1.3.0","ecdsa-sig-formatter":"^1.0.11","fast-text-encoding":"^1.0.0","gaxios":"^4.0.0","gcp-metadata":"^4.2.0","gtoken":"^5.0.4","jws":"^4.0.0","lru-cache":"^6.0.0"},"devDependencies":{"@compodoc/compodoc":"^1.1.7","@types/base64-js":"^1.2.5","@types/chai":"^4.1.7","@types/jws":"^3.1.0","@types/lru-cache":"^5.0.0","@types/mocha":"^8.0.0","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^16.0.0","@types/sinon":"^10.0.0","@types/tmp":"^0.2.0","assert-rejects":"^1.0.0","c8":"^7.0.0","chai":"^4.2.0","codecov":"^3.0.2","execa":"^5.0.0","gts":"^2.0.0","is-docker":"^2.0.0","karma":"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^5.0.0","keypair":"^1.0.4","linkinator":"^2.0.0","mocha":"^8.0.0","mv":"^2.1.1","ncp":"^2.0.0","nock":"^13.0.0","null-loader":"^4.0.0","puppeteer":"^13.0.0","sinon":"^12.0.0","tmp":"^0.2.0","ts-loader":"^8.0.0","typescript":"^3.8.3","webpack":"^5.21.2","webpack-cli":"^4.0.0"},"files":["build/src","!build/src/**/*.map"],"scripts":{"test":"c8 mocha build/test","clean":"gts clean","prepare":"npm run compile","lint":"gts check","compile":"tsc -p .","fix":"gts fix","pretest":"npm run compile","docs":"compodoc src/","samples-setup":"cd samples/ && npm link ../ && npm run setup && cd ../","samples-test":"cd samples/ && npm link ../ && npm test && cd ../","system-test":"mocha build/system-test --timeout 60000","presystem-test":"npm run compile","webpack":"webpack","browser-test":"karma start","docs-test":"linkinator docs","predocs-test":"npm run docs","prelint":"cd samples; npm link ../; npm install","precompile":"gts clean"},"license":"Apache-2.0"}')},3765:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana"},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana"},"image/avcs":{"source":"iana"},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var r=__webpack_module_cache__[e];if(r!==undefined){return r.exports}var i=__webpack_module_cache__[e]={exports:{}};var n=true;try{__webpack_modules__[e].call(i.exports,i,i.exports,__nccwpck_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(95);module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/src/inputs.ts b/src/inputs.ts index 3a4b21a..6d556f7 100644 --- a/src/inputs.ts +++ b/src/inputs.ts @@ -8,7 +8,7 @@ export interface Inputs { } export function getInputs(): Inputs { - return { + const inputs = { bucket: core.getInput('bucket', { required: true }), path: core.getInput('path', { required: true }), key: core.getInput('key', { required: true }), @@ -17,4 +17,8 @@ export function getInputs(): Inputs { .split(',') .filter((path) => path), }; + + core.debug(`Loaded inputs: ${JSON.stringify(inputs)}.`); + + return inputs; } diff --git a/src/main.ts b/src/main.ts index 3219daa..ebbd55c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,7 +5,7 @@ import { withFile as withTemporaryFile } from 'tmp-promise'; import { ObjectMetadata } from './gcs-utils'; import { getInputs } from './inputs'; -import { CacheHitKindState, saveState, State } from './state'; +import { CacheHitKindState, saveState } from './state'; import { extractTar } from './tar-utils'; async function getBestMatch( @@ -18,7 +18,7 @@ async function getBestMatch( const exactFile = bucket.file(`${folderPrefix}/${key}.tar`); const [exactFileExists] = await exactFile.exists(); - core.debug(exactFile.name); + core.debug(`Exact file name: ${exactFile.name}.`); if (exactFileExists) { console.log(`🙌 Found exact match from cache for key '${key}'.`); @@ -41,12 +41,14 @@ async function getBestMatch( if (core.isDebug()) { core.debug( - JSON.stringify( + `Candidates: ${JSON.stringify( bucketFiles.map((f) => ({ name: f.name, - metadata: f.metadata as ObjectMetadata, + metadata: { + updated: (f.metadata as ObjectMetadata).updated, + }, })), - ), + )}.`, ); } @@ -72,6 +74,9 @@ async function main() { const inputs = getInputs(); const bucket = new Storage().bucket(inputs.bucket); + const folderPrefix = `${github.context.repo.owner}/${github.context.repo.repo}`; + const exactFileName = `${folderPrefix}/${inputs.key}.tar`; + const [bestMatch, bestMatchKind] = await core .group('🔍 Searching the best cache archive available', () => getBestMatch(bucket, inputs.key, inputs.restoreKeys), @@ -81,34 +86,37 @@ async function main() { throw err; }); - core.debug(bestMatchKind); + core.debug(`Best match kind: ${bestMatchKind}.`); if (!bestMatch) { saveState({ cacheHitKind: 'none', + targetFileName: exactFileName, }); core.setOutput('cache-hit', 'false'); console.log('😢 No cache candidate found.'); return; } - core.debug(bestMatch.name); + core.debug(`Best match name: ${bestMatch.name}.`); const bestMatchMetadata = await bestMatch .getMetadata() .then(([metadata]) => metadata as ObjectMetadata); - core.debug(JSON.stringify(bestMatchMetadata)); + core.debug(`Best match metadata: ${JSON.stringify(bestMatchMetadata)}.`); const compressionMethod = bestMatchMetadata?.metadata?.['Cache-Action-Compression-Method']; - core.debug(compressionMethod); + core.debug(`Best match compression method: ${compressionMethod}.`); if (!bestMatchMetadata || !compressionMethod) { saveState({ cacheHitKind: 'none', + targetFileName: exactFileName, }); + core.setOutput('cache-hit', 'false'); console.log('😢 No cache candidate found (missing metadata).'); return; @@ -129,13 +137,10 @@ async function main() { extractTar(tmpFile.path, compressionMethod, workspace), ); - const state: State = { + saveState({ cacheHitKind: bestMatchKind, - }; - - core.debug(compressionMethod); - saveState(state); - + targetFileName: exactFileName, + }); core.setOutput('cache-hit', 'true'); console.log('✅ Successfully restored cache.'); }); diff --git a/src/post.ts b/src/post.ts index d21f309..68fa52f 100644 --- a/src/post.ts +++ b/src/post.ts @@ -1,5 +1,4 @@ import * as core from '@actions/core'; -import * as github from '@actions/github'; import * as glob from '@actions/glob'; import { Storage } from '@google-cloud/storage'; import * as path from 'path'; @@ -14,9 +13,6 @@ async function main() { const inputs = getInputs(); const state = getState(); - core.debug(JSON.stringify(inputs)); - core.debug(JSON.stringify(state)); - if (state.cacheHitKind === 'exact') { console.log( '🌀 Skipping uploading cache as the cache was hit by exact match.', @@ -25,12 +21,10 @@ async function main() { } const bucket = new Storage().bucket(inputs.bucket); - const folderPrefix = `${github.context.repo.owner}/${github.context.repo.repo}`; - - const targetFileName = `${folderPrefix}/${inputs.key}.tar`; + const targetFileName = state.targetFileName; const [targetFileExists] = await bucket.file(targetFileName).exists(); - core.debug(targetFileName); + core.debug(`Target file name: ${targetFileName}.`); if (targetFileExists) { console.log( @@ -48,7 +42,7 @@ async function main() { .glob() .then((files) => files.map((file) => path.relative(workspace, file))); - core.debug(JSON.stringify(paths)); + core.debug(`Paths: ${JSON.stringify(paths)}.`); return withTemporaryFile(async (tmpFile) => { const compressionMethod = await core.group( @@ -60,7 +54,7 @@ async function main() { 'Cache-Action-Compression-Method': compressionMethod, }; - core.debug(JSON.stringify(customMetadata)); + core.debug(`Metadata: ${JSON.stringify(customMetadata)}.`); await core.group('🌐 Uploading cache archive to bucket', async () => { console.log(`🔹 Uploading file '${targetFileName}'...`); diff --git a/src/state.ts b/src/state.ts index 5444c9d..028c2f4 100644 --- a/src/state.ts +++ b/src/state.ts @@ -4,14 +4,23 @@ export type CacheHitKindState = 'exact' | 'partial' | 'none'; export interface State { cacheHitKind: CacheHitKindState; + targetFileName: string; } export function saveState(state: State): void { + core.debug(`Saving state: ${JSON.stringify(state)}.`); + core.saveState('cache-hit-kind', state.cacheHitKind); + core.saveState('target-file-name', state.targetFileName); } export function getState(): State { - return { + const state = { cacheHitKind: core.getState('cache-hit-kind') as CacheHitKindState, + targetFileName: core.getState('target-file-name'), }; + + core.debug(`Loaded state: ${JSON.stringify(state)}.`); + + return state; }