From 0de1326084666ecc992c341758718599893177df Mon Sep 17 00:00:00 2001 From: microshine Date: Tue, 28 May 2024 02:38:11 +0200 Subject: [PATCH] fix: Update sign method to include additional certificates --- dist/index.js | 2 +- src/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index bd0ef7a..bac1a4d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -(()=>{var e={4822:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;var n=Object.getOwnPropertyDescriptor(t,A);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,r,n)}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const o=s(A(2186));const a=i(A(9411));const c=A(918);const l="token";const u="organization";const g="certificate";const h="file";async function run(){o.setSecret(o.getInput(l));try{const e=o.getInput(l);const t=o.getInput(u);const A=o.getInput(g);const r=o.getInput(h);await(0,c.installGoodKey)(__dirname,a.default.join(c.SYSTEM_ROOT,"System32"));await(0,c.registerUser)(e,t);await(0,c.sign)({file:r,certificate:A,timestampUrl:o.getInput("timestamp_url")||undefined,description:o.getInput("description")||undefined,descriptionUrl:o.getInput("description_url")||undefined,additionalCertificates:o.getInput("additional_certificate")||undefined,fileDigestAlgorithm:o.getInput("file_digest_algorithm")||undefined})}catch(e){if(e instanceof Error){o.setFailed(e.message)}else{o.setFailed(`Unknown error: ${e}`)}}}run()},918:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;var n=Object.getOwnPropertyDescriptor(t,A);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,r,n)}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getSignToolPath=t.sign=t.registerUser=t.installGoodKey=t.SYSTEM_ROOT=void 0;const i=A(7147);const o=s(A(1017));const a=A(2081);const c=A(3837);const l=A(2315);t.SYSTEM_ROOT=process.env["SystemRoot"]||"C:\\Windows";const u="gksvc.exe";const g="gkcng.dll";const h="gkcertsvc.dll";const d="gkutils.exe";const E=[u,g,h,d];const f=(0,c.promisify)(a.exec);async function installGoodKey(e,t){try{for(const A of E){const r=o.join(e,A);const n=o.join(t,A);await i.promises.copyFile(r,n)}await f(`regsvr32.exe /s "${o.join(t,g)}"`);await f(`regsvr32.exe /s "${o.join(t,h)}"`);await f(`sc create gksvc binPath= "${o.join(t,u)}" start= auto`);await f(`sc start gksvc`);let A=false;let r=0;const n=10;const s=400;while(!A&&rsetTimeout(e,s)))}r++}if(!A){throw new Error("Service did not start within the expected time.")}}catch(e){if(e instanceof Error){const t="stdout"in e&&e.stdout?e.stdout.toString():e.message;throw new Error(`Installation of GoodKey failed: ${t}`)}throw e}}t.installGoodKey=installGoodKey;async function registerUser(e,A){try{const{stdout:r}=await f(`${o.join(t.SYSTEM_ROOT,"System32",d)} auth register -t ${e} -o ${A}`);console.log(r)}catch(e){if(e instanceof Error){const t="stdout"in e&&e.stdout?e.stdout.toString():e.message;throw new Error(`Registration of user failed: ${t}`)}throw e}}t.registerUser=registerUser;async function sign(e){try{const t=await getSignToolPath();const A={};if(e.timestampUrl){A["t"]=e.timestampUrl}if(e.timestampRfc3161Url){A["tr"]=e.timestampRfc3161Url}if(e.description){A["d"]=e.description}if(e.descriptionUrl){A["du"]=e.descriptionUrl}if(e.additionalCertificates){const t=new l.X509Certificates(e.additionalCertificates);const r=[];A["ac"]=r;for(const e of t){const t=await e.getThumbprint();const A=o.join(__dirname,`${Buffer.from(new Uint8Array(t)).toString("hex")}.cer`);await i.promises.writeFile(A,Buffer.from(new Uint8Array(e.rawData)));r.push(A)}}if(e.fileDigestAlgorithm){A["fd"]=e.fileDigestAlgorithm}let r="";for(const e in A){if(Array.isArray(A[e])){for(const t of A[e]){r+=` /${e} "${t}"`}continue}r+=` /${e} "${A[e]}"`}const n=`"${t}" sign /v /a /sha1 ${e.certificate} ${r} "${e.file}"`;console.log(n);const{stdout:s,stderr:a}=await f(n);console.log(s);console.log(a)}catch(e){if(e instanceof Error){const t="stdout"in e&&e.stdout?e.stdout.toString():e.message;throw new Error(`Signing of file failed: ${t}`)}throw e}}t.sign=sign;async function getSignToolPath(){const e="C:\\Program Files (x86)\\Windows Kits";const t="signtool.exe";const A=[e];while(A.length>0){const e=A.pop();let r=await i.promises.readdir(e);r=r.sort().reverse();for(const n of r){const r=o.join(e,n);const s=await i.promises.stat(r);if(n===t&&s.isFile()){return r}else if(s.isDirectory()){A.push(r)}}}throw new Error("signtool.exe not found")}t.getSignToolPath=getSignToolPath},7351:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=s(A(2037));const o=A(5278);function issueCommand(e,t,A){const r=new Command(e,t,A);process.stdout.write(r.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const a="::";class Command{constructor(e,t,A){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=A}toString(){let e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const A in this.properties){if(this.properties.hasOwnProperty(A)){const r=this.properties[A];if(r){if(t){t=false}else{e+=","}e+=`${A}=${escapeProperty(r)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,r){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const o=A(7351);const a=A(717);const c=A(5278);const l=s(A(2037));const u=s(A(1017));const g=A(8041);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const A=c.toCommandValue(t);process.env[e]=A;const r=process.env["GITHUB_ENV"]||"";if(r){return a.issueFileCommand("ENV",a.prepareKeyValueMessage(e,t))}o.issueCommand("set-env",{name:e},A)}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){a.issueFileCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const A=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!A){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return A}return A.trim()}t.getInput=getInput;function getMultilineInput(e,t){const A=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return A}return A.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const A=["true","True","TRUE"];const r=["false","False","FALSE"];const n=getInput(e,t);if(A.includes(n))return true;if(r.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const A=process.env["GITHUB_OUTPUT"]||"";if(A){return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t))}process.stdout.write(l.EOL);o.issueCommand("set-output",{name:e},c.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){o.issueCommand("error",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){o.issueCommand("warning",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){o.issueCommand("notice",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return i(this,void 0,void 0,(function*(){startGroup(e);let A;try{A=yield t()}finally{endGroup()}return A}))}t.group=group;function saveState(e,t){const A=process.env["GITHUB_STATE"]||"";if(A){return a.issueFileCommand("STATE",a.prepareKeyValueMessage(e,t))}o.issueCommand("save-state",{name:e},c.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield g.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var d=A(1327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return d.summary}});var E=A(1327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return E.markdownSummary}});var f=A(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return f.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return f.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return f.toPlatformPath}})},717:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=s(A(7147));const o=s(A(2037));const a=A(5840);const c=A(5278);function issueFileCommand(e,t){const A=process.env[`GITHUB_${e}`];if(!A){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(A)){throw new Error(`Missing file at path: ${A}`)}i.appendFileSync(A,`${c.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const A=`ghadelimiter_${a.v4()}`;const r=c.toCommandValue(t);if(e.includes(A)){throw new Error(`Unexpected input: name should not contain the delimiter "${A}"`)}if(r.includes(A)){throw new Error(`Unexpected input: value should not contain the delimiter "${A}"`)}return`${e}<<${A}${o.EOL}${r}${o.EOL}${A}`}t.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,t,A){"use strict";var r=this&&this.__awaiter||function(e,t,A,r){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const n=A(6255);const s=A(5526);const i=A(2186);class OidcClient{static createHttpClient(e=true,t=10){const A={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new s.BearerCredentialHandler(OidcClient.getRequestToken())],A)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return r(this,void 0,void 0,(function*(){const A=OidcClient.createHttpClient();const r=yield A.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const n=(t=r.result)===null||t===void 0?void 0:t.value;if(!n){throw new Error("Response json body do not have ID Token field")}return n}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const A=encodeURIComponent(e);t=`${t}&audience=${A}`}i.debug(`ID token url is ${t}`);const A=yield OidcClient.getCall(t);i.setSecret(A);return A}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=s(A(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},1327:function(e,t,A){"use strict";var r=this&&this.__awaiter||function(e,t,A,r){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const n=A(2037);const s=A(7147);const{access:i,appendFile:o,writeFile:a}=s.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,s.constants.R_OK|s.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,A={}){const r=Object.entries(A).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${r}>`}return`<${e}${r}>${t}`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const A=yield this.filePath();const r=t?a:o;yield r(A,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return r(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const A=Object.assign({},t&&{lang:t});const r=this.wrap("pre",this.wrap("code",e),A);return this.addRaw(r).addEOL()}addList(e,t=false){const A=t?"ol":"ul";const r=e.map((e=>this.wrap("li",e))).join("");const n=this.wrap(A,r);return this.addRaw(n).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:A,colspan:r,rowspan:n}=e;const s=t?"th":"td";const i=Object.assign(Object.assign({},r&&{colspan:r}),n&&{rowspan:n});return this.wrap(s,A,i)})).join("");return this.wrap("tr",t)})).join("");const A=this.wrap("table",t);return this.addRaw(A).addEOL()}addDetails(e,t){const A=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(A).addEOL()}addImage(e,t,A){const{width:r,height:n}=A||{};const s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n});const i=this.wrap("img",null,Object.assign({src:e,alt:t},s));return this.addRaw(i).addEOL()}addHeading(e,t){const A=`h${t}`;const r=["h1","h2","h3","h4","h5","h6"].includes(A)?A:"h1";const n=this.wrap(r,e);return this.addRaw(n).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const A=Object.assign({},t&&{cite:t});const r=this.wrap("blockquote",e,A);return this.addRaw(r).addEOL()}addLink(e,t){const A=this.wrap("a",e,{href:t});return this.addRaw(A).addEOL()}}const c=new Summary;t.markdownSummary=c;t.summary=c},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},5526:function(e,t){"use strict";var A=this&&this.__awaiter||function(e,t,A,r){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;var n=Object.getOwnPropertyDescriptor(t,A);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,r,n)}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,r){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const o=s(A(3685));const a=s(A(5687));const c=s(A(9835));const l=s(A(4294));const u=A(1773);var g;(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"})(g||(t.HttpCodes=g={}));var h;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(h||(t.Headers=h={}));var d;(function(e){e["ApplicationJson"]="application/json"})(d||(t.MediaTypes=d={}));function getProxyUrl(e){const t=c.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const E=[g.MovedPermanently,g.ResourceMoved,g.SeeOther,g.TemporaryRedirect,g.PermanentRedirect];const f=[g.BadGateway,g.ServiceUnavailable,g.GatewayTimeout];const C=["OPTIONS","GET","DELETE","HEAD"];const B=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,A){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=A;if(A){if(A.ignoreSslError!=null){this._ignoreSslError=A.ignoreSslError}this._socketTimeout=A.socketTimeout;if(A.allowRedirects!=null){this._allowRedirects=A.allowRedirects}if(A.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=A.allowRedirectDowngrade}if(A.maxRedirects!=null){this._maxRedirects=Math.max(A.maxRedirects,0)}if(A.keepAlive!=null){this._keepAlive=A.keepAlive}if(A.allowRetries!=null){this._allowRetries=A.allowRetries}if(A.maxRetries!=null){this._maxRetries=A.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,A||{})}))}patch(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,A||{})}))}put(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,A||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,A,r){return i(this,void 0,void 0,(function*(){return this.request(e,t,A,r)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[h.Accept]=this._getExistingOrDefaultHeader(t,h.Accept,d.ApplicationJson);const A=yield this.get(e,t);return this._processResponse(A,this.requestOptions)}))}postJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,d.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,d.ApplicationJson);const n=yield this.post(e,r,A);return this._processResponse(n,this.requestOptions)}))}putJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,d.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,d.ApplicationJson);const n=yield this.put(e,r,A);return this._processResponse(n,this.requestOptions)}))}patchJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,d.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,d.ApplicationJson);const n=yield this.patch(e,r,A);return this._processResponse(n,this.requestOptions)}))}request(e,t,A,r){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const n=new URL(t);let s=this._prepareRequest(e,n,r);const i=this._allowRetries&&C.includes(e)?this._maxRetries+1:1;let o=0;let a;do{a=yield this.requestRaw(s,A);if(a&&a.message&&a.message.statusCode===g.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(a)){e=t;break}}if(e){return e.handleAuthentication(this,s,A)}else{return a}}let t=this._maxRedirects;while(a.message.statusCode&&E.includes(a.message.statusCode)&&this._allowRedirects&&t>0){const i=a.message.headers["location"];if(!i){break}const o=new URL(i);if(n.protocol==="https:"&&n.protocol!==o.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield a.readBody();if(o.hostname!==n.hostname){for(const e in r){if(e.toLowerCase()==="authorization"){delete r[e]}}}s=this._prepareRequest(e,o,r);a=yield this.requestRaw(s,A);t--}if(!a.message.statusCode||!f.includes(a.message.statusCode)){return a}o+=1;if(o{function callbackForResult(e,t){if(e){r(e)}else if(!t){r(new Error("Unknown error"))}else{A(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,A){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let r=false;function handleResult(e,t){if(!r){r=true;A(e,t)}}const n=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let s;n.on("socket",(e=>{s=e}));n.setTimeout(this._socketTimeout||3*6e4,(()=>{if(s){s.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));n.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){n.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){n.end()}));t.pipe(n)}else{n.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const A=c.getProxyUrl(t);const r=A&&A.hostname;if(!r){return}return this._getProxyAgentDispatcher(t,A)}_prepareRequest(e,t,A){const r={};r.parsedUrl=t;const n=r.parsedUrl.protocol==="https:";r.httpModule=n?a:o;const s=n?443:80;r.options={};r.options.host=r.parsedUrl.hostname;r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):s;r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||"");r.options.method=e;r.options.headers=this._mergeHeaders(A);if(this.userAgent!=null){r.options.headers["user-agent"]=this.userAgent}r.options.agent=this._getAgent(r.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(r.options)}}return r}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,A){let r;if(this.requestOptions&&this.requestOptions.headers){r=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||r||A}_getAgent(e){let t;const A=c.getProxyUrl(e);const r=A&&A.hostname;if(this._keepAlive&&r){t=this._proxyAgent}if(!r){t=this._agent}if(t){return t}const n=e.protocol==="https:";let s=100;if(this.requestOptions){s=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(A&&A.hostname){const e={maxSockets:s,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(A.username||A.password)&&{proxyAuth:`${A.username}:${A.password}`}),{host:A.hostname,port:A.port})};let r;const i=A.protocol==="https:";if(n){r=i?l.httpsOverHttps:l.httpsOverHttp}else{r=i?l.httpOverHttps:l.httpOverHttp}t=r(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:s};t=n?new a.Agent(e):new o.Agent(e);this._agent=t}if(n&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let A;if(this._keepAlive){A=this._proxyAgentDispatcher}if(A){return A}const r=e.protocol==="https:";A=new u.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`${t.username}:${t.password}`}));this._proxyAgentDispatcher=A;if(r&&this._ignoreSslError){A.options=Object.assign(A.options.requestTls||{},{rejectUnauthorized:false})}return A}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(B,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((A,r)=>i(this,void 0,void 0,(function*(){const n=e.message.statusCode||0;const s={statusCode:n,result:null,headers:{}};if(n===g.NotFound){A(s)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let o;try{o=yield e.readBody();if(o&&o.length>0){if(t&&t.deserializeDates){i=JSON.parse(o,dateTimeDeserializer)}else{i=JSON.parse(o)}s.result=i}s.headers=e.message.headers}catch(e){}if(n>299){let e;if(i&&i.message){e=i.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${n})`}const t=new HttpClientError(e,n);t.result=s.result;r(t)}else{A(s)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,A)=>(t[A.toLowerCase()]=e[A],t)),{})},9835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const A=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(A){try{return new URL(A)}catch(e){if(!A.startsWith("http://")&&!A.startsWith("https://"))return new URL(`http://${A}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const A=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!A){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}const n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(const e of A.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||n.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}},7284:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Attribute=void 0;const r=A(4351);const n=A(3499);class Attribute{constructor(e={}){this.attrType="";this.attrValues=[];Object.assign(this,e)}}t.Attribute=Attribute;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],Attribute.prototype,"attrType",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,repeated:"set"})],Attribute.prototype,"attrValues",void 0)},1061:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CounterSignature=t.SigningTime=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(6959);let o=class SigningTime extends s.Time{};o=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],o);t.SigningTime=o;let a=class CounterSignature extends i.SignerInfo{};a=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Sequence})],a);t.CounterSignature=a},1093:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.CertificateSet=t.CertificateChoices=t.OtherCertificateFormat=void 0;const n=A(4351);const s=A(3499);const i=A(2288);const o=A(4263);class OtherCertificateFormat{constructor(e={}){this.otherCertFormat="";this.otherCert=new ArrayBuffer(0);Object.assign(this,e)}}t.OtherCertificateFormat=OtherCertificateFormat;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],OtherCertificateFormat.prototype,"otherCertFormat",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Any})],OtherCertificateFormat.prototype,"otherCert",void 0);let a=class CertificateChoices{constructor(e={}){Object.assign(this,e)}};t.CertificateChoices=a;n.__decorate([(0,s.AsnProp)({type:i.Certificate})],a.prototype,"certificate",void 0);n.__decorate([(0,s.AsnProp)({type:o.AttributeCertificate,context:2,implicit:true})],a.prototype,"v2AttrCert",void 0);n.__decorate([(0,s.AsnProp)({type:OtherCertificateFormat,context:3,implicit:true})],a.prototype,"other",void 0);t.CertificateChoices=a=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],a);let c=r=class CertificateSet extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.CertificateSet=c;t.CertificateSet=c=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Set,itemType:a})],c)},9207:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContentInfo=void 0;const r=A(4351);const n=A(3499);class ContentInfo{constructor(e={}){this.contentType="";this.content=new ArrayBuffer(0);Object.assign(this,e)}}t.ContentInfo=ContentInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],ContentInfo.prototype,"contentType",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,context:0})],ContentInfo.prototype,"content",void 0)},1377:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EncapsulatedContentInfo=t.EncapsulatedContent=void 0;const r=A(4351);const n=A(3499);let s=class EncapsulatedContent{constructor(e={}){Object.assign(this,e)}};t.EncapsulatedContent=s;r.__decorate([(0,n.AsnProp)({type:n.OctetString})],s.prototype,"single",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any})],s.prototype,"any",void 0);t.EncapsulatedContent=s=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],s);class EncapsulatedContentInfo{constructor(e={}){this.eContentType="";Object.assign(this,e)}}t.EncapsulatedContentInfo=EncapsulatedContentInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],EncapsulatedContentInfo.prototype,"eContentType",void 0);r.__decorate([(0,n.AsnProp)({type:s,context:0,optional:true})],EncapsulatedContentInfo.prototype,"eContent",void 0)},8800:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EncryptedContentInfo=t.EncryptedContent=void 0;const r=A(4351);const n=A(3499);const s=A(7119);let i=class EncryptedContent{constructor(e={}){Object.assign(this,e)}};t.EncryptedContent=i;r.__decorate([(0,n.AsnProp)({type:n.OctetString,context:0,implicit:true,optional:true})],i.prototype,"value",void 0);r.__decorate([(0,n.AsnProp)({type:n.OctetString,converter:n.AsnConstructedOctetStringConverter,context:0,implicit:true,optional:true,repeated:"sequence"})],i.prototype,"constructedValue",void 0);t.EncryptedContent=i=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],i);class EncryptedContentInfo{constructor(e={}){this.contentType="";this.contentEncryptionAlgorithm=new s.ContentEncryptionAlgorithmIdentifier;Object.assign(this,e)}}t.EncryptedContentInfo=EncryptedContentInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],EncryptedContentInfo.prototype,"contentType",void 0);r.__decorate([(0,n.AsnProp)({type:s.ContentEncryptionAlgorithmIdentifier})],EncryptedContentInfo.prototype,"contentEncryptionAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:i,optional:true})],EncryptedContentInfo.prototype,"encryptedContent",void 0)},3333:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.EnvelopedData=t.UnprotectedAttributes=void 0;const n=A(4351);const s=A(3499);const i=A(7119);const o=A(7284);const a=A(4604);const c=A(2834);const l=A(8800);let u=r=class UnprotectedAttributes extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.UnprotectedAttributes=u;t.UnprotectedAttributes=u=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Set,itemType:o.Attribute})],u);class EnvelopedData{constructor(e={}){this.version=i.CMSVersion.v0;this.recipientInfos=new a.RecipientInfos;this.encryptedContentInfo=new l.EncryptedContentInfo;Object.assign(this,e)}}t.EnvelopedData=EnvelopedData;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer})],EnvelopedData.prototype,"version",void 0);n.__decorate([(0,s.AsnProp)({type:c.OriginatorInfo,context:0,implicit:true,optional:true})],EnvelopedData.prototype,"originatorInfo",void 0);n.__decorate([(0,s.AsnProp)({type:a.RecipientInfos})],EnvelopedData.prototype,"recipientInfos",void 0);n.__decorate([(0,s.AsnProp)({type:l.EncryptedContentInfo})],EnvelopedData.prototype,"encryptedContentInfo",void 0);n.__decorate([(0,s.AsnProp)({type:u,context:1,implicit:true,optional:true})],EnvelopedData.prototype,"unprotectedAttrs",void 0)},9493:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(1061),t);r.__exportStar(A(7284),t);r.__exportStar(A(1093),t);r.__exportStar(A(9207),t);r.__exportStar(A(1377),t);r.__exportStar(A(8800),t);r.__exportStar(A(3333),t);r.__exportStar(A(995),t);r.__exportStar(A(9614),t);r.__exportStar(A(8479),t);r.__exportStar(A(1666),t);r.__exportStar(A(3027),t);r.__exportStar(A(2834),t);r.__exportStar(A(3059),t);r.__exportStar(A(8084),t);r.__exportStar(A(4604),t);r.__exportStar(A(7678),t);r.__exportStar(A(8895),t);r.__exportStar(A(1200),t);r.__exportStar(A(6959),t);r.__exportStar(A(7119),t)},995:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IssuerAndSerialNumber=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class IssuerAndSerialNumber{constructor(e={}){this.issuer=new s.Name;this.serialNumber=new ArrayBuffer(0);Object.assign(this,e)}}t.IssuerAndSerialNumber=IssuerAndSerialNumber;r.__decorate([(0,n.AsnProp)({type:s.Name})],IssuerAndSerialNumber.prototype,"issuer",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],IssuerAndSerialNumber.prototype,"serialNumber",void 0)},9614:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KEKRecipientInfo=t.KEKIdentifier=void 0;const r=A(4351);const n=A(3499);const s=A(5070);const i=A(7119);class KEKIdentifier{constructor(e={}){this.keyIdentifier=new n.OctetString;Object.assign(this,e)}}t.KEKIdentifier=KEKIdentifier;r.__decorate([(0,n.AsnProp)({type:n.OctetString})],KEKIdentifier.prototype,"keyIdentifier",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime,optional:true})],KEKIdentifier.prototype,"date",void 0);r.__decorate([(0,n.AsnProp)({type:s.OtherKeyAttribute,optional:true})],KEKIdentifier.prototype,"other",void 0);class KEKRecipientInfo{constructor(e={}){this.version=i.CMSVersion.v4;this.kekid=new KEKIdentifier;this.keyEncryptionAlgorithm=new i.KeyEncryptionAlgorithmIdentifier;this.encryptedKey=new n.OctetString;Object.assign(this,e)}}t.KEKRecipientInfo=KEKRecipientInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],KEKRecipientInfo.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:KEKIdentifier})],KEKRecipientInfo.prototype,"kekid",void 0);r.__decorate([(0,n.AsnProp)({type:i.KeyEncryptionAlgorithmIdentifier})],KEKRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.OctetString})],KEKRecipientInfo.prototype,"encryptedKey",void 0)},8479:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.KeyAgreeRecipientInfo=t.OriginatorIdentifierOrKey=t.OriginatorPublicKey=t.RecipientEncryptedKeys=t.RecipientEncryptedKey=t.KeyAgreeRecipientIdentifier=t.RecipientKeyIdentifier=void 0;const n=A(4351);const s=A(3499);const i=A(7119);const o=A(995);const a=A(2288);const c=A(5070);class RecipientKeyIdentifier{constructor(e={}){this.subjectKeyIdentifier=new a.SubjectKeyIdentifier;Object.assign(this,e)}}t.RecipientKeyIdentifier=RecipientKeyIdentifier;n.__decorate([(0,s.AsnProp)({type:a.SubjectKeyIdentifier})],RecipientKeyIdentifier.prototype,"subjectKeyIdentifier",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.GeneralizedTime,optional:true})],RecipientKeyIdentifier.prototype,"date",void 0);n.__decorate([(0,s.AsnProp)({type:c.OtherKeyAttribute,optional:true})],RecipientKeyIdentifier.prototype,"other",void 0);let l=class KeyAgreeRecipientIdentifier{constructor(e={}){Object.assign(this,e)}};t.KeyAgreeRecipientIdentifier=l;n.__decorate([(0,s.AsnProp)({type:RecipientKeyIdentifier,context:0,implicit:true,optional:true})],l.prototype,"rKeyId",void 0);n.__decorate([(0,s.AsnProp)({type:o.IssuerAndSerialNumber,optional:true})],l.prototype,"issuerAndSerialNumber",void 0);t.KeyAgreeRecipientIdentifier=l=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],l);class RecipientEncryptedKey{constructor(e={}){this.rid=new l;this.encryptedKey=new s.OctetString;Object.assign(this,e)}}t.RecipientEncryptedKey=RecipientEncryptedKey;n.__decorate([(0,s.AsnProp)({type:l})],RecipientEncryptedKey.prototype,"rid",void 0);n.__decorate([(0,s.AsnProp)({type:s.OctetString})],RecipientEncryptedKey.prototype,"encryptedKey",void 0);let u=r=class RecipientEncryptedKeys extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.RecipientEncryptedKeys=u;t.RecipientEncryptedKeys=u=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:RecipientEncryptedKey})],u);class OriginatorPublicKey{constructor(e={}){this.algorithm=new a.AlgorithmIdentifier;this.publicKey=new ArrayBuffer(0);Object.assign(this,e)}}t.OriginatorPublicKey=OriginatorPublicKey;n.__decorate([(0,s.AsnProp)({type:a.AlgorithmIdentifier})],OriginatorPublicKey.prototype,"algorithm",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.BitString})],OriginatorPublicKey.prototype,"publicKey",void 0);let g=class OriginatorIdentifierOrKey{constructor(e={}){Object.assign(this,e)}};t.OriginatorIdentifierOrKey=g;n.__decorate([(0,s.AsnProp)({type:a.SubjectKeyIdentifier,context:0,implicit:true,optional:true})],g.prototype,"subjectKeyIdentifier",void 0);n.__decorate([(0,s.AsnProp)({type:OriginatorPublicKey,context:1,implicit:true,optional:true})],g.prototype,"originatorKey",void 0);n.__decorate([(0,s.AsnProp)({type:o.IssuerAndSerialNumber,optional:true})],g.prototype,"issuerAndSerialNumber",void 0);t.OriginatorIdentifierOrKey=g=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],g);class KeyAgreeRecipientInfo{constructor(e={}){this.version=i.CMSVersion.v3;this.originator=new g;this.keyEncryptionAlgorithm=new i.KeyEncryptionAlgorithmIdentifier;this.recipientEncryptedKeys=new u;Object.assign(this,e)}}t.KeyAgreeRecipientInfo=KeyAgreeRecipientInfo;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer})],KeyAgreeRecipientInfo.prototype,"version",void 0);n.__decorate([(0,s.AsnProp)({type:g,context:0})],KeyAgreeRecipientInfo.prototype,"originator",void 0);n.__decorate([(0,s.AsnProp)({type:s.OctetString,context:1,optional:true})],KeyAgreeRecipientInfo.prototype,"ukm",void 0);n.__decorate([(0,s.AsnProp)({type:i.KeyEncryptionAlgorithmIdentifier})],KeyAgreeRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);n.__decorate([(0,s.AsnProp)({type:u})],KeyAgreeRecipientInfo.prototype,"recipientEncryptedKeys",void 0)},1666:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KeyTransRecipientInfo=t.RecipientIdentifier=void 0;const r=A(4351);const n=A(3499);const s=A(7119);const i=A(995);const o=A(2288);let a=class RecipientIdentifier{constructor(e={}){Object.assign(this,e)}};t.RecipientIdentifier=a;r.__decorate([(0,n.AsnProp)({type:o.SubjectKeyIdentifier,context:0,implicit:true})],a.prototype,"subjectKeyIdentifier",void 0);r.__decorate([(0,n.AsnProp)({type:i.IssuerAndSerialNumber})],a.prototype,"issuerAndSerialNumber",void 0);t.RecipientIdentifier=a=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],a);class KeyTransRecipientInfo{constructor(e={}){this.version=s.CMSVersion.v0;this.rid=new a;this.keyEncryptionAlgorithm=new s.KeyEncryptionAlgorithmIdentifier;this.encryptedKey=new n.OctetString;Object.assign(this,e)}}t.KeyTransRecipientInfo=KeyTransRecipientInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],KeyTransRecipientInfo.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:a})],KeyTransRecipientInfo.prototype,"rid",void 0);r.__decorate([(0,n.AsnProp)({type:s.KeyEncryptionAlgorithmIdentifier})],KeyTransRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.OctetString})],KeyTransRecipientInfo.prototype,"encryptedKey",void 0)},3027:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_authData=t.id_encryptedData=t.id_digestedData=t.id_envelopedData=t.id_signedData=t.id_data=t.id_ct_contentInfo=void 0;t.id_ct_contentInfo="1.2.840.113549.1.9.16.1.6";t.id_data="1.2.840.113549.1.7.1";t.id_signedData="1.2.840.113549.1.7.2";t.id_envelopedData="1.2.840.113549.1.7.3";t.id_digestedData="1.2.840.113549.1.7.5";t.id_encryptedData="1.2.840.113549.1.7.6";t.id_authData="1.2.840.113549.1.9.16.1.2"},2834:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OriginatorInfo=void 0;const r=A(4351);const n=A(3499);const s=A(1093);const i=A(7678);class OriginatorInfo{constructor(e={}){Object.assign(this,e)}}t.OriginatorInfo=OriginatorInfo;r.__decorate([(0,n.AsnProp)({type:s.CertificateSet,context:0,implicit:true,optional:true})],OriginatorInfo.prototype,"certs",void 0);r.__decorate([(0,n.AsnProp)({type:i.RevocationInfoChoices,context:1,implicit:true,optional:true})],OriginatorInfo.prototype,"crls",void 0)},5070:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OtherKeyAttribute=void 0;const r=A(4351);const n=A(3499);class OtherKeyAttribute{constructor(e={}){this.keyAttrId="";Object.assign(this,e)}}t.OtherKeyAttribute=OtherKeyAttribute;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],OtherKeyAttribute.prototype,"keyAttrId",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,optional:true})],OtherKeyAttribute.prototype,"keyAttr",void 0)},3059:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PasswordRecipientInfo=void 0;const r=A(4351);const n=A(3499);const s=A(7119);class PasswordRecipientInfo{constructor(e={}){this.version=s.CMSVersion.v0;this.keyEncryptionAlgorithm=new s.KeyEncryptionAlgorithmIdentifier;this.encryptedKey=new n.OctetString;Object.assign(this,e)}}t.PasswordRecipientInfo=PasswordRecipientInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],PasswordRecipientInfo.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:s.KeyDerivationAlgorithmIdentifier,context:0,optional:true})],PasswordRecipientInfo.prototype,"keyDerivationAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:s.KeyEncryptionAlgorithmIdentifier})],PasswordRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.OctetString})],PasswordRecipientInfo.prototype,"encryptedKey",void 0)},8084:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RecipientInfo=t.OtherRecipientInfo=void 0;const r=A(4351);const n=A(3499);const s=A(8479);const i=A(1666);const o=A(9614);const a=A(3059);class OtherRecipientInfo{constructor(e={}){this.oriType="";this.oriValue=new ArrayBuffer(0);Object.assign(this,e)}}t.OtherRecipientInfo=OtherRecipientInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],OtherRecipientInfo.prototype,"oriType",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any})],OtherRecipientInfo.prototype,"oriValue",void 0);let c=class RecipientInfo{constructor(e={}){Object.assign(this,e)}};t.RecipientInfo=c;r.__decorate([(0,n.AsnProp)({type:i.KeyTransRecipientInfo,optional:true})],c.prototype,"ktri",void 0);r.__decorate([(0,n.AsnProp)({type:s.KeyAgreeRecipientInfo,context:1,implicit:true,optional:true})],c.prototype,"kari",void 0);r.__decorate([(0,n.AsnProp)({type:o.KEKRecipientInfo,context:2,implicit:true,optional:true})],c.prototype,"kekri",void 0);r.__decorate([(0,n.AsnProp)({type:a.PasswordRecipientInfo,context:3,implicit:true,optional:true})],c.prototype,"pwri",void 0);r.__decorate([(0,n.AsnProp)({type:OtherRecipientInfo,context:4,implicit:true,optional:true})],c.prototype,"ori",void 0);t.RecipientInfo=c=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],c)},4604:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.RecipientInfos=void 0;const n=A(4351);const s=A(3499);const i=A(8084);let o=r=class RecipientInfos extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.RecipientInfos=o;t.RecipientInfos=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Set,itemType:i.RecipientInfo})],o)},7678:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.RevocationInfoChoices=t.RevocationInfoChoice=t.OtherRevocationInfoFormat=t.id_ri_scvp=t.id_ri_ocsp_response=t.id_ri=void 0;const n=A(4351);const s=A(3499);const i=A(2288);t.id_ri=`${i.id_pkix}.16`;t.id_ri_ocsp_response=`${t.id_ri}.2`;t.id_ri_scvp=`${t.id_ri}.4`;class OtherRevocationInfoFormat{constructor(e={}){this.otherRevInfoFormat="";this.otherRevInfo=new ArrayBuffer(0);Object.assign(this,e)}}t.OtherRevocationInfoFormat=OtherRevocationInfoFormat;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],OtherRevocationInfoFormat.prototype,"otherRevInfoFormat",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Any})],OtherRevocationInfoFormat.prototype,"otherRevInfo",void 0);let o=class RevocationInfoChoice{constructor(e={}){this.other=new OtherRevocationInfoFormat;Object.assign(this,e)}};t.RevocationInfoChoice=o;n.__decorate([(0,s.AsnProp)({type:OtherRevocationInfoFormat,context:1,implicit:true})],o.prototype,"other",void 0);t.RevocationInfoChoice=o=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],o);let a=r=class RevocationInfoChoices extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.RevocationInfoChoices=a;t.RevocationInfoChoices=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Set,itemType:o})],a)},8895:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.SignedData=t.DigestAlgorithmIdentifiers=void 0;const n=A(4351);const s=A(3499);const i=A(1093);const o=A(7119);const a=A(1377);const c=A(7678);const l=A(6959);let u=r=class DigestAlgorithmIdentifiers extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.DigestAlgorithmIdentifiers=u;t.DigestAlgorithmIdentifiers=u=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Set,itemType:o.DigestAlgorithmIdentifier})],u);class SignedData{constructor(e={}){this.version=o.CMSVersion.v0;this.digestAlgorithms=new u;this.encapContentInfo=new a.EncapsulatedContentInfo;this.signerInfos=new l.SignerInfos;Object.assign(this,e)}}t.SignedData=SignedData;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer})],SignedData.prototype,"version",void 0);n.__decorate([(0,s.AsnProp)({type:u})],SignedData.prototype,"digestAlgorithms",void 0);n.__decorate([(0,s.AsnProp)({type:a.EncapsulatedContentInfo})],SignedData.prototype,"encapContentInfo",void 0);n.__decorate([(0,s.AsnProp)({type:i.CertificateSet,context:0,implicit:true,optional:true})],SignedData.prototype,"certificates",void 0);n.__decorate([(0,s.AsnProp)({type:c.RevocationInfoChoice,context:1,implicit:true,optional:true})],SignedData.prototype,"crls",void 0);n.__decorate([(0,s.AsnProp)({type:l.SignerInfos})],SignedData.prototype,"signerInfos",void 0)},1200:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SignerIdentifier=void 0;const r=A(4351);const n=A(3499);const s=A(995);const i=A(2288);let o=class SignerIdentifier{constructor(e={}){Object.assign(this,e)}};t.SignerIdentifier=o;r.__decorate([(0,n.AsnProp)({type:i.SubjectKeyIdentifier,context:0,implicit:true})],o.prototype,"subjectKeyIdentifier",void 0);r.__decorate([(0,n.AsnProp)({type:s.IssuerAndSerialNumber})],o.prototype,"issuerAndSerialNumber",void 0);t.SignerIdentifier=o=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],o)},6959:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.SignerInfos=t.SignerInfo=void 0;const n=A(4351);const s=A(3499);const i=A(1200);const o=A(7119);const a=A(7284);class SignerInfo{constructor(e={}){this.version=o.CMSVersion.v0;this.sid=new i.SignerIdentifier;this.digestAlgorithm=new o.DigestAlgorithmIdentifier;this.signatureAlgorithm=new o.SignatureAlgorithmIdentifier;this.signature=new s.OctetString;Object.assign(this,e)}}t.SignerInfo=SignerInfo;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer})],SignerInfo.prototype,"version",void 0);n.__decorate([(0,s.AsnProp)({type:i.SignerIdentifier})],SignerInfo.prototype,"sid",void 0);n.__decorate([(0,s.AsnProp)({type:o.DigestAlgorithmIdentifier})],SignerInfo.prototype,"digestAlgorithm",void 0);n.__decorate([(0,s.AsnProp)({type:a.Attribute,repeated:"set",context:0,implicit:true,optional:true})],SignerInfo.prototype,"signedAttrs",void 0);n.__decorate([(0,s.AsnProp)({type:o.SignatureAlgorithmIdentifier})],SignerInfo.prototype,"signatureAlgorithm",void 0);n.__decorate([(0,s.AsnProp)({type:s.OctetString})],SignerInfo.prototype,"signature",void 0);n.__decorate([(0,s.AsnProp)({type:a.Attribute,repeated:"set",context:1,implicit:true,optional:true})],SignerInfo.prototype,"unsignedAttrs",void 0);let c=r=class SignerInfos extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.SignerInfos=c;t.SignerInfos=c=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Set,itemType:SignerInfo})],c)},7119:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KeyDerivationAlgorithmIdentifier=t.MessageAuthenticationCodeAlgorithm=t.ContentEncryptionAlgorithmIdentifier=t.KeyEncryptionAlgorithmIdentifier=t.SignatureAlgorithmIdentifier=t.DigestAlgorithmIdentifier=t.CMSVersion=void 0;const r=A(4351);const n=A(2288);const s=A(3499);var i;(function(e){e[e["v0"]=0]="v0";e[e["v1"]=1]="v1";e[e["v2"]=2]="v2";e[e["v3"]=3]="v3";e[e["v4"]=4]="v4";e[e["v5"]=5]="v5"})(i||(t.CMSVersion=i={}));let o=class DigestAlgorithmIdentifier extends n.AlgorithmIdentifier{};t.DigestAlgorithmIdentifier=o;t.DigestAlgorithmIdentifier=o=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],o);let a=class SignatureAlgorithmIdentifier extends n.AlgorithmIdentifier{};t.SignatureAlgorithmIdentifier=a;t.SignatureAlgorithmIdentifier=a=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],a);let c=class KeyEncryptionAlgorithmIdentifier extends n.AlgorithmIdentifier{};t.KeyEncryptionAlgorithmIdentifier=c;t.KeyEncryptionAlgorithmIdentifier=c=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],c);let l=class ContentEncryptionAlgorithmIdentifier extends n.AlgorithmIdentifier{};t.ContentEncryptionAlgorithmIdentifier=l;t.ContentEncryptionAlgorithmIdentifier=l=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],l);let u=class MessageAuthenticationCodeAlgorithm extends n.AlgorithmIdentifier{};t.MessageAuthenticationCodeAlgorithm=u;t.MessageAuthenticationCodeAlgorithm=u=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],u);let g=class KeyDerivationAlgorithmIdentifier extends n.AlgorithmIdentifier{};t.KeyDerivationAlgorithmIdentifier=g;t.KeyDerivationAlgorithmIdentifier=g=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],g)},3674:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.Attributes=void 0;const n=A(4351);const s=A(3499);const i=A(2288);let o=r=class Attributes extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.Attributes=o;t.Attributes=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:i.Attribute})],o)},5135:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CertificationRequest=void 0;const r=A(4351);const n=A(3499);const s=A(1301);const i=A(2288);class CertificationRequest{constructor(e={}){this.certificationRequestInfo=new s.CertificationRequestInfo;this.signatureAlgorithm=new i.AlgorithmIdentifier;this.signature=new ArrayBuffer(0);Object.assign(this,e)}}t.CertificationRequest=CertificationRequest;r.__decorate([(0,n.AsnProp)({type:s.CertificationRequestInfo})],CertificationRequest.prototype,"certificationRequestInfo",void 0);r.__decorate([(0,n.AsnProp)({type:i.AlgorithmIdentifier})],CertificationRequest.prototype,"signatureAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString})],CertificationRequest.prototype,"signature",void 0)},1301:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CertificationRequestInfo=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(3674);class CertificationRequestInfo{constructor(e={}){this.version=0;this.subject=new s.Name;this.subjectPKInfo=new s.SubjectPublicKeyInfo;this.attributes=new i.Attributes;Object.assign(this,e)}}t.CertificationRequestInfo=CertificationRequestInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],CertificationRequestInfo.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:s.Name})],CertificationRequestInfo.prototype,"subject",void 0);r.__decorate([(0,n.AsnProp)({type:s.SubjectPublicKeyInfo})],CertificationRequestInfo.prototype,"subjectPKInfo",void 0);r.__decorate([(0,n.AsnProp)({type:i.Attributes,implicit:true,context:0})],CertificationRequestInfo.prototype,"attributes",void 0)},6717:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(3674),t);r.__exportStar(A(5135),t);r.__exportStar(A(1301),t)},4716:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ecdsaWithSHA512=t.ecdsaWithSHA384=t.ecdsaWithSHA256=t.ecdsaWithSHA224=t.ecdsaWithSHA1=void 0;const r=A(2288);const n=A(3193);function create(e){return new r.AlgorithmIdentifier({algorithm:e})}t.ecdsaWithSHA1=create(n.id_ecdsaWithSHA1);t.ecdsaWithSHA224=create(n.id_ecdsaWithSHA224);t.ecdsaWithSHA256=create(n.id_ecdsaWithSHA256);t.ecdsaWithSHA384=create(n.id_ecdsaWithSHA384);t.ecdsaWithSHA512=create(n.id_ecdsaWithSHA512)},5823:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECParameters=void 0;const r=A(4351);const n=A(3499);let s=class ECParameters{constructor(e={}){Object.assign(this,e)}};t.ECParameters=s;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],s.prototype,"namedCurve",void 0);t.ECParameters=s=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],s)},8673:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECPrivateKey=void 0;const r=A(4351);const n=A(3499);const s=A(5823);class ECPrivateKey{constructor(e={}){this.version=1;this.privateKey=new n.OctetString;Object.assign(this,e)}}t.ECPrivateKey=ECPrivateKey;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],ECPrivateKey.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:n.OctetString})],ECPrivateKey.prototype,"privateKey",void 0);r.__decorate([(0,n.AsnProp)({type:s.ECParameters,context:0,optional:true})],ECPrivateKey.prototype,"parameters",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString,context:1,optional:true})],ECPrivateKey.prototype,"publicKey",void 0)},2138:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECDSASigValue=void 0;const r=A(4351);const n=A(3499);class ECDSASigValue{constructor(e={}){this.r=new ArrayBuffer(0);this.s=new ArrayBuffer(0);Object.assign(this,e)}}t.ECDSASigValue=ECDSASigValue;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],ECDSASigValue.prototype,"r",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],ECDSASigValue.prototype,"s",void 0)},8277:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(4716),t);r.__exportStar(A(5823),t);r.__exportStar(A(8673),t);r.__exportStar(A(2138),t);r.__exportStar(A(3193),t)},3193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_sect571r1=t.id_sect571k1=t.id_secp521r1=t.id_sect409r1=t.id_sect409k1=t.id_secp384r1=t.id_sect283r1=t.id_sect283k1=t.id_secp256r1=t.id_sect233r1=t.id_sect233k1=t.id_secp224r1=t.id_sect163r2=t.id_sect163k1=t.id_secp192r1=t.id_ecdsaWithSHA512=t.id_ecdsaWithSHA384=t.id_ecdsaWithSHA256=t.id_ecdsaWithSHA224=t.id_ecdsaWithSHA1=t.id_ecMQV=t.id_ecDH=t.id_ecPublicKey=void 0;t.id_ecPublicKey="1.2.840.10045.2.1";t.id_ecDH="1.3.132.1.12";t.id_ecMQV="1.3.132.1.13";t.id_ecdsaWithSHA1="1.2.840.10045.4.1";t.id_ecdsaWithSHA224="1.2.840.10045.4.3.1";t.id_ecdsaWithSHA256="1.2.840.10045.4.3.2";t.id_ecdsaWithSHA384="1.2.840.10045.4.3.3";t.id_ecdsaWithSHA512="1.2.840.10045.4.3.4";t.id_secp192r1="1.2.840.10045.3.1.1";t.id_sect163k1="1.3.132.0.1";t.id_sect163r2="1.3.132.0.15";t.id_secp224r1="1.3.132.0.33";t.id_sect233k1="1.3.132.0.26";t.id_sect233r1="1.3.132.0.27";t.id_secp256r1="1.2.840.10045.3.1.7";t.id_sect283k1="1.3.132.0.16";t.id_sect283r1="1.3.132.0.17";t.id_secp384r1="1.3.132.0.34";t.id_sect409k1="1.3.132.0.36";t.id_sect409r1="1.3.132.0.37";t.id_secp521r1="1.3.132.0.35";t.id_sect571k1="1.3.132.0.38";t.id_sect571r1="1.3.132.0.39"},1757:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.PKCS12AttrSet=t.PKCS12Attribute=void 0;const n=A(4351);const s=A(3499);class PKCS12Attribute{constructor(e={}){this.attrId="";this.attrValues=[];Object.assign(e)}}t.PKCS12Attribute=PKCS12Attribute;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],PKCS12Attribute.prototype,"attrId",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Any,repeated:"set"})],PKCS12Attribute.prototype,"attrValues",void 0);let i=r=class PKCS12AttrSet extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.PKCS12AttrSet=i;t.PKCS12AttrSet=i=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:PKCS12Attribute})],i)},6751:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.AuthenticatedSafe=void 0;const n=A(4351);const s=A(3499);const i=A(9493);let o=r=class AuthenticatedSafe extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.AuthenticatedSafe=o;t.AuthenticatedSafe=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:i.ContentInfo})],o)},7536:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_sdsiCertificate=t.id_x509Certificate=t.id_certTypes=t.CertBag=void 0;const r=A(4351);const n=A(3499);const s=A(9410);class CertBag{constructor(e={}){this.certId="";this.certValue=new ArrayBuffer(0);Object.assign(this,e)}}t.CertBag=CertBag;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],CertBag.prototype,"certId",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,context:0})],CertBag.prototype,"certValue",void 0);t.id_certTypes=`${s.id_pkcs_9}.22`;t.id_x509Certificate=`${t.id_certTypes}.1`;t.id_sdsiCertificate=`${t.id_certTypes}.2`},2039:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_x509CRL=t.id_crlTypes=t.CRLBag=void 0;const r=A(4351);const n=A(3499);const s=A(9410);class CRLBag{constructor(e={}){this.crlId="";this.crltValue=new ArrayBuffer(0);Object.assign(this,e)}}t.CRLBag=CRLBag;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],CRLBag.prototype,"crlId",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,context:0})],CRLBag.prototype,"crltValue",void 0);t.id_crlTypes=`${s.id_pkcs_9}.23`;t.id_x509CRL=`${t.id_crlTypes}.1`},7069:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(7536),t);r.__exportStar(A(2039),t);r.__exportStar(A(1684),t);r.__exportStar(A(1627),t);r.__exportStar(A(3057),t);r.__exportStar(A(9410),t)},1684:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KeyBag=void 0;const r=A(4351);const n=A(1714);const s=A(3499);let i=class KeyBag extends n.PrivateKeyInfo{};t.KeyBag=i;t.KeyBag=i=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],i)},1627:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PKCS8ShroudedKeyBag=void 0;const r=A(4351);const n=A(1714);const s=A(3499);let i=class PKCS8ShroudedKeyBag extends n.EncryptedPrivateKeyInfo{};t.PKCS8ShroudedKeyBag=i;t.PKCS8ShroudedKeyBag=i=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],i)},3057:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SecretBag=void 0;const r=A(4351);const n=A(3499);class SecretBag{constructor(e={}){this.secretTypeId="";this.secretValue=new ArrayBuffer(0);Object.assign(this,e)}}t.SecretBag=SecretBag;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],SecretBag.prototype,"secretTypeId",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,context:0})],SecretBag.prototype,"secretValue",void 0)},9410:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_pkcs_9=t.id_SafeContents=t.id_SecretBag=t.id_CRLBag=t.id_certBag=t.id_pkcs8ShroudedKeyBag=t.id_keyBag=void 0;const r=A(5825);t.id_keyBag=`${r.id_bagtypes}.1`;t.id_pkcs8ShroudedKeyBag=`${r.id_bagtypes}.2`;t.id_certBag=`${r.id_bagtypes}.3`;t.id_CRLBag=`${r.id_bagtypes}.4`;t.id_SecretBag=`${r.id_bagtypes}.5`;t.id_SafeContents=`${r.id_bagtypes}.6`;t.id_pkcs_9="1.2.840.113549.1.9"},4078:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(1757),t);r.__exportStar(A(6751),t);r.__exportStar(A(7069),t);r.__exportStar(A(1180),t);r.__exportStar(A(5825),t);r.__exportStar(A(2153),t);r.__exportStar(A(5901),t)},1180:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MacData=void 0;const r=A(4351);const n=A(5574);const s=A(3499);class MacData{constructor(e={}){this.mac=new n.DigestInfo;this.macSalt=new s.OctetString;this.iterations=1;Object.assign(this,e)}}t.MacData=MacData;r.__decorate([(0,s.AsnProp)({type:n.DigestInfo})],MacData.prototype,"mac",void 0);r.__decorate([(0,s.AsnProp)({type:s.OctetString})],MacData.prototype,"macSalt",void 0);r.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,defaultValue:1})],MacData.prototype,"iterations",void 0)},5825:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_bagtypes=t.id_pbewithSHAAnd40BitRC2_CBC=t.id_pbeWithSHAAnd128BitRC2_CBC=t.id_pbeWithSHAAnd2_KeyTripleDES_CBC=t.id_pbeWithSHAAnd3_KeyTripleDES_CBC=t.id_pbeWithSHAAnd40BitRC4=t.id_pbeWithSHAAnd128BitRC4=t.id_pkcs_12PbeIds=t.id_pkcs_12=t.id_pkcs=t.id_rsadsi=void 0;t.id_rsadsi="1.2.840.113549";t.id_pkcs=`${t.id_rsadsi}.1`;t.id_pkcs_12=`${t.id_pkcs}.12`;t.id_pkcs_12PbeIds=`${t.id_pkcs_12}.1`;t.id_pbeWithSHAAnd128BitRC4=`${t.id_pkcs_12PbeIds}.1`;t.id_pbeWithSHAAnd40BitRC4=`${t.id_pkcs_12PbeIds}.2`;t.id_pbeWithSHAAnd3_KeyTripleDES_CBC=`${t.id_pkcs_12PbeIds}.3`;t.id_pbeWithSHAAnd2_KeyTripleDES_CBC=`${t.id_pkcs_12PbeIds}.4`;t.id_pbeWithSHAAnd128BitRC2_CBC=`${t.id_pkcs_12PbeIds}.5`;t.id_pbewithSHAAnd40BitRC2_CBC=`${t.id_pkcs_12PbeIds}.6`;t.id_bagtypes=`${t.id_pkcs_12}.10.1`},2153:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PFX=void 0;const r=A(4351);const n=A(3499);const s=A(9493);const i=A(1180);class PFX{constructor(e={}){this.version=3;this.authSafe=new s.ContentInfo;this.macData=new i.MacData;Object.assign(this,e)}}t.PFX=PFX;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],PFX.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:s.ContentInfo})],PFX.prototype,"authSafe",void 0);r.__decorate([(0,n.AsnProp)({type:i.MacData,optional:true})],PFX.prototype,"macData",void 0)},5901:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.SafeContents=t.SafeBag=void 0;const n=A(4351);const s=A(3499);const i=A(1757);class SafeBag{constructor(e={}){this.bagId="";this.bagValue=new ArrayBuffer(0);Object.assign(this,e)}}t.SafeBag=SafeBag;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],SafeBag.prototype,"bagId",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Any,context:0})],SafeBag.prototype,"bagValue",void 0);n.__decorate([(0,s.AsnProp)({type:i.PKCS12Attribute,repeated:"set",optional:true})],SafeBag.prototype,"bagAttributes",void 0);let o=r=class SafeContents extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.SafeContents=o;t.SafeContents=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:SafeBag})],o)},768:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EncryptedPrivateKeyInfo=t.EncryptedData=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class EncryptedData extends n.OctetString{}t.EncryptedData=EncryptedData;class EncryptedPrivateKeyInfo{constructor(e={}){this.encryptionAlgorithm=new s.AlgorithmIdentifier;this.encryptedData=new EncryptedData;Object.assign(this,e)}}t.EncryptedPrivateKeyInfo=EncryptedPrivateKeyInfo;r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],EncryptedPrivateKeyInfo.prototype,"encryptionAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:EncryptedData})],EncryptedPrivateKeyInfo.prototype,"encryptedData",void 0)},1714:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(768),t);r.__exportStar(A(5442),t)},5442:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.PrivateKeyInfo=t.Attributes=t.PrivateKey=t.Version=void 0;const n=A(4351);const s=A(3499);const i=A(2288);var o;(function(e){e[e["v1"]=0]="v1"})(o||(t.Version=o={}));class PrivateKey extends s.OctetString{}t.PrivateKey=PrivateKey;let a=r=class Attributes extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.Attributes=a;t.Attributes=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:i.Attribute})],a);class PrivateKeyInfo{constructor(e={}){this.version=o.v1;this.privateKeyAlgorithm=new i.AlgorithmIdentifier;this.privateKey=new PrivateKey;Object.assign(this,e)}}t.PrivateKeyInfo=PrivateKeyInfo;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer})],PrivateKeyInfo.prototype,"version",void 0);n.__decorate([(0,s.AsnProp)({type:i.AlgorithmIdentifier})],PrivateKeyInfo.prototype,"privateKeyAlgorithm",void 0);n.__decorate([(0,s.AsnProp)({type:PrivateKey})],PrivateKeyInfo.prototype,"privateKey",void 0);n.__decorate([(0,s.AsnProp)({type:a,implicit:true,context:0,optional:true})],PrivateKeyInfo.prototype,"attributes",void 0)},5938:(e,t,A)=>{"use strict";var r,n,s;Object.defineProperty(t,"__esModule",{value:true});t.DateOfBirth=t.UnstructuredAddress=t.UnstructuredName=t.EmailAddress=t.EncryptedPrivateKeyInfo=t.UserPKCS12=t.Pkcs7PDU=t.PKCS9String=t.id_at_pseudonym=t.crlTypes=t.id_certTypes=t.id_smime=t.id_pkcs9_mr_signingTimeMatch=t.id_pkcs9_mr_caseIgnoreMatch=t.id_pkcs9_sx_signingTime=t.id_pkcs9_sx_pkcs9String=t.id_pkcs9_at_countryOfResidence=t.id_pkcs9_at_countryOfCitizenship=t.id_pkcs9_at_gender=t.id_pkcs9_at_placeOfBirth=t.id_pkcs9_at_dateOfBirth=t.id_ietf_at=t.id_pkcs9_at_pkcs7PDU=t.id_pkcs9_at_sequenceNumber=t.id_pkcs9_at_randomNonce=t.id_pkcs9_at_encryptedPrivateKeyInfo=t.id_pkcs9_at_pkcs15Token=t.id_pkcs9_at_userPKCS12=t.id_pkcs9_at_localKeyId=t.id_pkcs9_at_friendlyName=t.id_pkcs9_at_smimeCapabilities=t.id_pkcs9_at_extensionRequest=t.id_pkcs9_at_signingDescription=t.id_pkcs9_at_extendedCertificateAttributes=t.id_pkcs9_at_unstructuredAddress=t.id_pkcs9_at_challengePassword=t.id_pkcs9_at_counterSignature=t.id_pkcs9_at_signingTime=t.id_pkcs9_at_messageDigest=t.id_pkcs9_at_contentType=t.id_pkcs9_at_unstructuredName=t.id_pkcs9_at_emailAddress=t.id_pkcs9_oc_naturalPerson=t.id_pkcs9_oc_pkcsEntity=t.id_pkcs9_mr=t.id_pkcs9_sx=t.id_pkcs9_at=t.id_pkcs9_oc=t.id_pkcs9_mo=t.id_pkcs9=void 0;t.SMIMECapabilities=t.SMIMECapability=t.SigningDescription=t.LocalKeyId=t.FriendlyName=t.ExtendedCertificateAttributes=t.ExtensionRequest=t.ChallengePassword=t.CounterSignature=t.SequenceNumber=t.RandomNonce=t.SigningTime=t.MessageDigest=t.ContentType=t.Pseudonym=t.CountryOfResidence=t.CountryOfCitizenship=t.Gender=t.PlaceOfBirth=void 0;const i=A(4351);const o=A(3499);const a=A(9493);const c=A(4078);const l=A(1714);const u=A(2288);const g=A(4263);t.id_pkcs9="1.2.840.113549.1.9";t.id_pkcs9_mo=`${t.id_pkcs9}.0`;t.id_pkcs9_oc=`${t.id_pkcs9}.24`;t.id_pkcs9_at=`${t.id_pkcs9}.25`;t.id_pkcs9_sx=`${t.id_pkcs9}.26`;t.id_pkcs9_mr=`${t.id_pkcs9}.27`;t.id_pkcs9_oc_pkcsEntity=`${t.id_pkcs9_oc}.1`;t.id_pkcs9_oc_naturalPerson=`${t.id_pkcs9_oc}.2`;t.id_pkcs9_at_emailAddress=`${t.id_pkcs9}.1`;t.id_pkcs9_at_unstructuredName=`${t.id_pkcs9}.2`;t.id_pkcs9_at_contentType=`${t.id_pkcs9}.3`;t.id_pkcs9_at_messageDigest=`${t.id_pkcs9}.4`;t.id_pkcs9_at_signingTime=`${t.id_pkcs9}.5`;t.id_pkcs9_at_counterSignature=`${t.id_pkcs9}.6`;t.id_pkcs9_at_challengePassword=`${t.id_pkcs9}.7`;t.id_pkcs9_at_unstructuredAddress=`${t.id_pkcs9}.8`;t.id_pkcs9_at_extendedCertificateAttributes=`${t.id_pkcs9}.9`;t.id_pkcs9_at_signingDescription=`${t.id_pkcs9}.13`;t.id_pkcs9_at_extensionRequest=`${t.id_pkcs9}.14`;t.id_pkcs9_at_smimeCapabilities=`${t.id_pkcs9}.15`;t.id_pkcs9_at_friendlyName=`${t.id_pkcs9}.20`;t.id_pkcs9_at_localKeyId=`${t.id_pkcs9}.21`;t.id_pkcs9_at_userPKCS12=`2.16.840.1.113730.3.1.216`;t.id_pkcs9_at_pkcs15Token=`${t.id_pkcs9_at}.1`;t.id_pkcs9_at_encryptedPrivateKeyInfo=`${t.id_pkcs9_at}.2`;t.id_pkcs9_at_randomNonce=`${t.id_pkcs9_at}.3`;t.id_pkcs9_at_sequenceNumber=`${t.id_pkcs9_at}.4`;t.id_pkcs9_at_pkcs7PDU=`${t.id_pkcs9_at}.5`;t.id_ietf_at=`1.3.6.1.5.5.7.9`;t.id_pkcs9_at_dateOfBirth=`${t.id_ietf_at}.1`;t.id_pkcs9_at_placeOfBirth=`${t.id_ietf_at}.2`;t.id_pkcs9_at_gender=`${t.id_ietf_at}.3`;t.id_pkcs9_at_countryOfCitizenship=`${t.id_ietf_at}.4`;t.id_pkcs9_at_countryOfResidence=`${t.id_ietf_at}.5`;t.id_pkcs9_sx_pkcs9String=`${t.id_pkcs9_sx}.1`;t.id_pkcs9_sx_signingTime=`${t.id_pkcs9_sx}.2`;t.id_pkcs9_mr_caseIgnoreMatch=`${t.id_pkcs9_mr}.1`;t.id_pkcs9_mr_signingTimeMatch=`${t.id_pkcs9_mr}.2`;t.id_smime=`${t.id_pkcs9}.16`;t.id_certTypes=`${t.id_pkcs9}.22`;t.crlTypes=`${t.id_pkcs9}.23`;t.id_at_pseudonym=`${g.id_at}.65`;let h=class PKCS9String extends u.DirectoryString{constructor(e={}){super(e)}toString(){const e={};e.toString();return this.ia5String||super.toString()}};t.PKCS9String=h;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.IA5String})],h.prototype,"ia5String",void 0);t.PKCS9String=h=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],h);let d=class Pkcs7PDU extends a.ContentInfo{};t.Pkcs7PDU=d;t.Pkcs7PDU=d=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],d);let E=class UserPKCS12 extends c.PFX{};t.UserPKCS12=E;t.UserPKCS12=E=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],E);let f=class EncryptedPrivateKeyInfo extends l.EncryptedPrivateKeyInfo{};t.EncryptedPrivateKeyInfo=f;t.EncryptedPrivateKeyInfo=f=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],f);let C=class EmailAddress{constructor(e=""){this.value=e}toString(){return this.value}};t.EmailAddress=C;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.IA5String})],C.prototype,"value",void 0);t.EmailAddress=C=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],C);let B=class UnstructuredName extends h{};t.UnstructuredName=B;t.UnstructuredName=B=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],B);let I=class UnstructuredAddress extends u.DirectoryString{};t.UnstructuredAddress=I;t.UnstructuredAddress=I=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],I);let p=class DateOfBirth{constructor(e=new Date){this.value=e}};t.DateOfBirth=p;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.GeneralizedTime})],p.prototype,"value",void 0);t.DateOfBirth=p=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],p);let Q=class PlaceOfBirth extends u.DirectoryString{};t.PlaceOfBirth=Q;t.PlaceOfBirth=Q=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],Q);let y=class Gender{constructor(e="M"){this.value=e}toString(){return this.value}};t.Gender=y;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.PrintableString})],y.prototype,"value",void 0);t.Gender=y=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],y);let m=class CountryOfCitizenship{constructor(e=""){this.value=e}toString(){return this.value}};t.CountryOfCitizenship=m;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.PrintableString})],m.prototype,"value",void 0);t.CountryOfCitizenship=m=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],m);let b=class CountryOfResidence extends m{};t.CountryOfResidence=b;t.CountryOfResidence=b=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],b);let w=class Pseudonym extends u.DirectoryString{};t.Pseudonym=w;t.Pseudonym=w=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],w);let S=class ContentType{constructor(e=""){this.value=e}toString(){return this.value}};t.ContentType=S;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.ObjectIdentifier})],S.prototype,"value",void 0);t.ContentType=S=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],S);class MessageDigest extends o.OctetString{}t.MessageDigest=MessageDigest;let v=class SigningTime extends u.Time{};t.SigningTime=v;t.SigningTime=v=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],v);class RandomNonce extends o.OctetString{}t.RandomNonce=RandomNonce;let k=class SequenceNumber{constructor(e=0){this.value=e}toString(){return this.value.toString()}};t.SequenceNumber=k;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.Integer})],k.prototype,"value",void 0);t.SequenceNumber=k=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],k);let R=class CounterSignature extends a.SignerInfo{};t.CounterSignature=R;t.CounterSignature=R=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],R);let D=class ChallengePassword extends u.DirectoryString{};t.ChallengePassword=D;t.ChallengePassword=D=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],D);let N=r=class ExtensionRequest extends u.Extensions{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.ExtensionRequest=N;t.ExtensionRequest=N=r=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],N);let _=n=class ExtendedCertificateAttributes extends o.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,n.prototype)}};t.ExtendedCertificateAttributes=_;t.ExtendedCertificateAttributes=_=n=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Set,itemType:a.Attribute})],_);let F=class FriendlyName{constructor(e=""){this.value=e}toString(){return this.value}};t.FriendlyName=F;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.BmpString})],F.prototype,"value",void 0);t.FriendlyName=F=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],F);class LocalKeyId extends o.OctetString{}t.LocalKeyId=LocalKeyId;class SigningDescription extends u.DirectoryString{}t.SigningDescription=SigningDescription;let T=class SMIMECapability extends u.AlgorithmIdentifier{};t.SMIMECapability=T;t.SMIMECapability=T=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],T);let U=s=class SMIMECapabilities extends o.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,s.prototype)}};t.SMIMECapabilities=U;t.SMIMECapabilities=U=s=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence,itemType:T})],U)},8243:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sha512_256WithRSAEncryption=t.sha512_224WithRSAEncryption=t.sha512WithRSAEncryption=t.sha384WithRSAEncryption=t.sha256WithRSAEncryption=t.sha224WithRSAEncryption=t.sha1WithRSAEncryption=t.md5WithRSAEncryption=t.md2WithRSAEncryption=t.rsaEncryption=t.pSpecifiedEmpty=t.mgf1SHA1=t.sha512_256=t.sha512_224=t.sha512=t.sha384=t.sha256=t.sha224=t.sha1=t.md4=t.md2=void 0;const r=A(3499);const n=A(2288);const s=A(147);function create(e){return new n.AlgorithmIdentifier({algorithm:e,parameters:null})}t.md2=create(s.id_md2);t.md4=create(s.id_md5);t.sha1=create(s.id_sha1);t.sha224=create(s.id_sha224);t.sha256=create(s.id_sha256);t.sha384=create(s.id_sha384);t.sha512=create(s.id_sha512);t.sha512_224=create(s.id_sha512_224);t.sha512_256=create(s.id_sha512_256);t.mgf1SHA1=new n.AlgorithmIdentifier({algorithm:s.id_mgf1,parameters:r.AsnConvert.serialize(t.sha1)});t.pSpecifiedEmpty=new n.AlgorithmIdentifier({algorithm:s.id_pSpecified,parameters:r.AsnConvert.serialize(r.AsnOctetStringConverter.toASN(new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]).buffer))});t.rsaEncryption=create(s.id_rsaEncryption);t.md2WithRSAEncryption=create(s.id_md2WithRSAEncryption);t.md5WithRSAEncryption=create(s.id_md5WithRSAEncryption);t.sha1WithRSAEncryption=create(s.id_sha1WithRSAEncryption);t.sha224WithRSAEncryption=create(s.id_sha512_224WithRSAEncryption);t.sha256WithRSAEncryption=create(s.id_sha512_256WithRSAEncryption);t.sha384WithRSAEncryption=create(s.id_sha384WithRSAEncryption);t.sha512WithRSAEncryption=create(s.id_sha512WithRSAEncryption);t.sha512_224WithRSAEncryption=create(s.id_sha512_224WithRSAEncryption);t.sha512_256WithRSAEncryption=create(s.id_sha512_256WithRSAEncryption)},5574:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(1364),t);r.__exportStar(A(8243),t);r.__exportStar(A(147),t);r.__exportStar(A(1069),t);r.__exportStar(A(9654),t);r.__exportStar(A(9978),t)},147:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_mgf1=t.id_md5=t.id_md2=t.id_sha512_256=t.id_sha512_224=t.id_sha512=t.id_sha384=t.id_sha256=t.id_sha224=t.id_sha1=t.id_sha512_256WithRSAEncryption=t.id_sha512_224WithRSAEncryption=t.id_sha512WithRSAEncryption=t.id_sha384WithRSAEncryption=t.id_sha256WithRSAEncryption=t.id_ssha224WithRSAEncryption=t.id_sha224WithRSAEncryption=t.id_sha1WithRSAEncryption=t.id_md5WithRSAEncryption=t.id_md2WithRSAEncryption=t.id_RSASSA_PSS=t.id_pSpecified=t.id_RSAES_OAEP=t.id_rsaEncryption=t.id_pkcs_1=void 0;t.id_pkcs_1="1.2.840.113549.1.1";t.id_rsaEncryption=`${t.id_pkcs_1}.1`;t.id_RSAES_OAEP=`${t.id_pkcs_1}.7`;t.id_pSpecified=`${t.id_pkcs_1}.9`;t.id_RSASSA_PSS=`${t.id_pkcs_1}.10`;t.id_md2WithRSAEncryption=`${t.id_pkcs_1}.2`;t.id_md5WithRSAEncryption=`${t.id_pkcs_1}.4`;t.id_sha1WithRSAEncryption=`${t.id_pkcs_1}.5`;t.id_sha224WithRSAEncryption=`${t.id_pkcs_1}.14`;t.id_ssha224WithRSAEncryption=t.id_sha224WithRSAEncryption;t.id_sha256WithRSAEncryption=`${t.id_pkcs_1}.11`;t.id_sha384WithRSAEncryption=`${t.id_pkcs_1}.12`;t.id_sha512WithRSAEncryption=`${t.id_pkcs_1}.13`;t.id_sha512_224WithRSAEncryption=`${t.id_pkcs_1}.15`;t.id_sha512_256WithRSAEncryption=`${t.id_pkcs_1}.16`;t.id_sha1="1.3.14.3.2.26";t.id_sha224="2.16.840.1.101.3.4.2.4";t.id_sha256="2.16.840.1.101.3.4.2.1";t.id_sha384="2.16.840.1.101.3.4.2.2";t.id_sha512="2.16.840.1.101.3.4.2.3";t.id_sha512_224="2.16.840.1.101.3.4.2.5";t.id_sha512_256="2.16.840.1.101.3.4.2.6";t.id_md2="1.2.840.113549.2.2";t.id_md5="1.2.840.113549.2.5";t.id_mgf1=`${t.id_pkcs_1}.8`},1069:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.OtherPrimeInfos=t.OtherPrimeInfo=void 0;const n=A(4351);const s=A(3499);class OtherPrimeInfo{constructor(e={}){this.prime=new ArrayBuffer(0);this.exponent=new ArrayBuffer(0);this.coefficient=new ArrayBuffer(0);Object.assign(this,e)}}t.OtherPrimeInfo=OtherPrimeInfo;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,converter:s.AsnIntegerArrayBufferConverter})],OtherPrimeInfo.prototype,"prime",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,converter:s.AsnIntegerArrayBufferConverter})],OtherPrimeInfo.prototype,"exponent",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,converter:s.AsnIntegerArrayBufferConverter})],OtherPrimeInfo.prototype,"coefficient",void 0);let i=r=class OtherPrimeInfos extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.OtherPrimeInfos=i;t.OtherPrimeInfos=i=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:OtherPrimeInfo})],i)},1364:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(6657),t);r.__exportStar(A(1770),t);r.__exportStar(A(1452),t)},6657:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RSAES_OAEP=t.RsaEsOaepParams=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(147);const o=A(8243);class RsaEsOaepParams{constructor(e={}){this.hashAlgorithm=new s.AlgorithmIdentifier(o.sha1);this.maskGenAlgorithm=new s.AlgorithmIdentifier({algorithm:i.id_mgf1,parameters:n.AsnConvert.serialize(o.sha1)});this.pSourceAlgorithm=new s.AlgorithmIdentifier(o.pSpecifiedEmpty);Object.assign(this,e)}}t.RsaEsOaepParams=RsaEsOaepParams;r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier,context:0,defaultValue:o.sha1})],RsaEsOaepParams.prototype,"hashAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier,context:1,defaultValue:o.mgf1SHA1})],RsaEsOaepParams.prototype,"maskGenAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier,context:2,defaultValue:o.pSpecifiedEmpty})],RsaEsOaepParams.prototype,"pSourceAlgorithm",void 0);t.RSAES_OAEP=new s.AlgorithmIdentifier({algorithm:i.id_RSAES_OAEP,parameters:n.AsnConvert.serialize(new RsaEsOaepParams)})},1452:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DigestInfo=void 0;const r=A(4351);const n=A(2288);const s=A(3499);class DigestInfo{constructor(e={}){this.digestAlgorithm=new n.AlgorithmIdentifier;this.digest=new s.OctetString;Object.assign(this,e)}}t.DigestInfo=DigestInfo;r.__decorate([(0,s.AsnProp)({type:n.AlgorithmIdentifier})],DigestInfo.prototype,"digestAlgorithm",void 0);r.__decorate([(0,s.AsnProp)({type:s.OctetString})],DigestInfo.prototype,"digest",void 0)},1770:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RSASSA_PSS=t.RsaSaPssParams=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(147);const o=A(8243);class RsaSaPssParams{constructor(e={}){this.hashAlgorithm=new s.AlgorithmIdentifier(o.sha1);this.maskGenAlgorithm=new s.AlgorithmIdentifier({algorithm:i.id_mgf1,parameters:n.AsnConvert.serialize(o.sha1)});this.saltLength=20;this.trailerField=1;Object.assign(this,e)}}t.RsaSaPssParams=RsaSaPssParams;r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier,context:0,defaultValue:o.sha1})],RsaSaPssParams.prototype,"hashAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier,context:1,defaultValue:o.mgf1SHA1})],RsaSaPssParams.prototype,"maskGenAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,context:2,defaultValue:20})],RsaSaPssParams.prototype,"saltLength",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,context:3,defaultValue:1})],RsaSaPssParams.prototype,"trailerField",void 0);t.RSASSA_PSS=new s.AlgorithmIdentifier({algorithm:i.id_RSASSA_PSS,parameters:n.AsnConvert.serialize(new RsaSaPssParams)})},9654:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RSAPrivateKey=void 0;const r=A(4351);const n=A(3499);const s=A(1069);class RSAPrivateKey{constructor(e={}){this.version=0;this.modulus=new ArrayBuffer(0);this.publicExponent=new ArrayBuffer(0);this.privateExponent=new ArrayBuffer(0);this.prime1=new ArrayBuffer(0);this.prime2=new ArrayBuffer(0);this.exponent1=new ArrayBuffer(0);this.exponent2=new ArrayBuffer(0);this.coefficient=new ArrayBuffer(0);Object.assign(this,e)}}t.RSAPrivateKey=RSAPrivateKey;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],RSAPrivateKey.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"modulus",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"publicExponent",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"privateExponent",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"prime1",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"prime2",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"exponent1",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"exponent2",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"coefficient",void 0);r.__decorate([(0,n.AsnProp)({type:s.OtherPrimeInfos,optional:true})],RSAPrivateKey.prototype,"otherPrimeInfos",void 0)},9978:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RSAPublicKey=void 0;const r=A(4351);const n=A(3499);class RSAPublicKey{constructor(e={}){this.modulus=new ArrayBuffer(0);this.publicExponent=new ArrayBuffer(0);Object.assign(this,e)}}t.RSAPublicKey=RSAPublicKey;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPublicKey.prototype,"modulus",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPublicKey.prototype,"publicExponent",void 0)},913:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnConvert=void 0;const r=A(3702);const n=A(2420);const s=A(9660);const i=A(7770);class AsnConvert{static serialize(e){return i.AsnSerializer.serialize(e)}static parse(e,t){return s.AsnParser.parse(e,t)}static toString(e){const t=n.BufferSourceConverter.isBufferSource(e)?n.BufferSourceConverter.toArrayBuffer(e):AsnConvert.serialize(e);const A=r.fromBER(t);if(A.offset===-1){throw new Error(`Cannot decode ASN.1 data. ${A.result.error}`)}return A.result.toString()}}t.AsnConvert=AsnConvert},4091:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultConverter=t.AsnNullConverter=t.AsnGeneralizedTimeConverter=t.AsnUTCTimeConverter=t.AsnCharacterStringConverter=t.AsnGeneralStringConverter=t.AsnVisibleStringConverter=t.AsnGraphicStringConverter=t.AsnIA5StringConverter=t.AsnVideotexStringConverter=t.AsnTeletexStringConverter=t.AsnPrintableStringConverter=t.AsnNumericStringConverter=t.AsnUniversalStringConverter=t.AsnBmpStringConverter=t.AsnUtf8StringConverter=t.AsnConstructedOctetStringConverter=t.AsnOctetStringConverter=t.AsnBooleanConverter=t.AsnObjectIdentifierConverter=t.AsnBitStringConverter=t.AsnIntegerBigIntConverter=t.AsnIntegerArrayBufferConverter=t.AsnEnumeratedConverter=t.AsnIntegerConverter=t.AsnAnyConverter=void 0;const r=A(3702);const n=A(378);const s=A(756);t.AsnAnyConverter={fromASN:e=>e instanceof r.Null?null:e.valueBeforeDecodeView,toASN:e=>{if(e===null){return new r.Null}const t=r.fromBER(e);if(t.result.error){throw new Error(t.result.error)}return t.result}};t.AsnIntegerConverter={fromASN:e=>e.valueBlock.valueHexView.byteLength>=4?e.valueBlock.toString():e.valueBlock.valueDec,toASN:e=>new r.Integer({value:+e})};t.AsnEnumeratedConverter={fromASN:e=>e.valueBlock.valueDec,toASN:e=>new r.Enumerated({value:e})};t.AsnIntegerArrayBufferConverter={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new r.Integer({valueHex:e})};t.AsnIntegerBigIntConverter={fromASN:e=>e.toBigInt(),toASN:e=>r.Integer.fromBigInt(e)};t.AsnBitStringConverter={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new r.BitString({valueHex:e})};t.AsnObjectIdentifierConverter={fromASN:e=>e.valueBlock.toString(),toASN:e=>new r.ObjectIdentifier({value:e})};t.AsnBooleanConverter={fromASN:e=>e.valueBlock.value,toASN:e=>new r.Boolean({value:e})};t.AsnOctetStringConverter={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new r.OctetString({valueHex:e})};t.AsnConstructedOctetStringConverter={fromASN:e=>new s.OctetString(e.getValue()),toASN:e=>e.toASN()};function createStringConverter(e){return{fromASN:e=>e.valueBlock.value,toASN:t=>new e({value:t})}}t.AsnUtf8StringConverter=createStringConverter(r.Utf8String);t.AsnBmpStringConverter=createStringConverter(r.BmpString);t.AsnUniversalStringConverter=createStringConverter(r.UniversalString);t.AsnNumericStringConverter=createStringConverter(r.NumericString);t.AsnPrintableStringConverter=createStringConverter(r.PrintableString);t.AsnTeletexStringConverter=createStringConverter(r.TeletexString);t.AsnVideotexStringConverter=createStringConverter(r.VideotexString);t.AsnIA5StringConverter=createStringConverter(r.IA5String);t.AsnGraphicStringConverter=createStringConverter(r.GraphicString);t.AsnVisibleStringConverter=createStringConverter(r.VisibleString);t.AsnGeneralStringConverter=createStringConverter(r.GeneralString);t.AsnCharacterStringConverter=createStringConverter(r.CharacterString);t.AsnUTCTimeConverter={fromASN:e=>e.toDate(),toASN:e=>new r.UTCTime({valueDate:e})};t.AsnGeneralizedTimeConverter={fromASN:e=>e.toDate(),toASN:e=>new r.GeneralizedTime({valueDate:e})};t.AsnNullConverter={fromASN:()=>null,toASN:()=>new r.Null};function defaultConverter(e){switch(e){case n.AsnPropTypes.Any:return t.AsnAnyConverter;case n.AsnPropTypes.BitString:return t.AsnBitStringConverter;case n.AsnPropTypes.BmpString:return t.AsnBmpStringConverter;case n.AsnPropTypes.Boolean:return t.AsnBooleanConverter;case n.AsnPropTypes.CharacterString:return t.AsnCharacterStringConverter;case n.AsnPropTypes.Enumerated:return t.AsnEnumeratedConverter;case n.AsnPropTypes.GeneralString:return t.AsnGeneralStringConverter;case n.AsnPropTypes.GeneralizedTime:return t.AsnGeneralizedTimeConverter;case n.AsnPropTypes.GraphicString:return t.AsnGraphicStringConverter;case n.AsnPropTypes.IA5String:return t.AsnIA5StringConverter;case n.AsnPropTypes.Integer:return t.AsnIntegerConverter;case n.AsnPropTypes.Null:return t.AsnNullConverter;case n.AsnPropTypes.NumericString:return t.AsnNumericStringConverter;case n.AsnPropTypes.ObjectIdentifier:return t.AsnObjectIdentifierConverter;case n.AsnPropTypes.OctetString:return t.AsnOctetStringConverter;case n.AsnPropTypes.PrintableString:return t.AsnPrintableStringConverter;case n.AsnPropTypes.TeletexString:return t.AsnTeletexStringConverter;case n.AsnPropTypes.UTCTime:return t.AsnUTCTimeConverter;case n.AsnPropTypes.UniversalString:return t.AsnUniversalStringConverter;case n.AsnPropTypes.Utf8String:return t.AsnUtf8StringConverter;case n.AsnPropTypes.VideotexString:return t.AsnVideotexStringConverter;case n.AsnPropTypes.VisibleString:return t.AsnVisibleStringConverter;default:return null}}t.defaultConverter=defaultConverter},157:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnProp=t.AsnSequenceType=t.AsnSetType=t.AsnChoiceType=t.AsnType=void 0;const r=A(4091);const n=A(378);const s=A(4652);const AsnType=e=>t=>{let A;if(!s.schemaStorage.has(t)){A=s.schemaStorage.createDefault(t);s.schemaStorage.set(t,A)}else{A=s.schemaStorage.get(t)}Object.assign(A,e)};t.AsnType=AsnType;const AsnChoiceType=()=>(0,t.AsnType)({type:n.AsnTypeTypes.Choice});t.AsnChoiceType=AsnChoiceType;const AsnSetType=e=>(0,t.AsnType)({type:n.AsnTypeTypes.Set,...e});t.AsnSetType=AsnSetType;const AsnSequenceType=e=>(0,t.AsnType)({type:n.AsnTypeTypes.Sequence,...e});t.AsnSequenceType=AsnSequenceType;const AsnProp=e=>(t,A)=>{let n;if(!s.schemaStorage.has(t.constructor)){n=s.schemaStorage.createDefault(t.constructor);s.schemaStorage.set(t.constructor,n)}else{n=s.schemaStorage.get(t.constructor)}const i=Object.assign({},e);if(typeof i.type==="number"&&!i.converter){const n=r.defaultConverter(e.type);if(!n){throw new Error(`Cannot get default converter for property '${A}' of ${t.constructor.name}`)}i.converter=n}n.items[A]=i};t.AsnProp=AsnProp},378:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnPropTypes=t.AsnTypeTypes=void 0;var A;(function(e){e[e["Sequence"]=0]="Sequence";e[e["Set"]=1]="Set";e[e["Choice"]=2]="Choice"})(A||(t.AsnTypeTypes=A={}));var r;(function(e){e[e["Any"]=1]="Any";e[e["Boolean"]=2]="Boolean";e[e["OctetString"]=3]="OctetString";e[e["BitString"]=4]="BitString";e[e["Integer"]=5]="Integer";e[e["Enumerated"]=6]="Enumerated";e[e["ObjectIdentifier"]=7]="ObjectIdentifier";e[e["Utf8String"]=8]="Utf8String";e[e["BmpString"]=9]="BmpString";e[e["UniversalString"]=10]="UniversalString";e[e["NumericString"]=11]="NumericString";e[e["PrintableString"]=12]="PrintableString";e[e["TeletexString"]=13]="TeletexString";e[e["VideotexString"]=14]="VideotexString";e[e["IA5String"]=15]="IA5String";e[e["GraphicString"]=16]="GraphicString";e[e["VisibleString"]=17]="VisibleString";e[e["GeneralString"]=18]="GeneralString";e[e["CharacterString"]=19]="CharacterString";e[e["UTCTime"]=20]="UTCTime";e[e["GeneralizedTime"]=21]="GeneralizedTime";e[e["DATE"]=22]="DATE";e[e["TimeOfDay"]=23]="TimeOfDay";e[e["DateTime"]=24]="DateTime";e[e["Duration"]=25]="Duration";e[e["TIME"]=26]="TIME";e[e["Null"]=27]="Null"})(r||(t.AsnPropTypes=r={}))},6194:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(7118),t)},7118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnSchemaValidationError=void 0;class AsnSchemaValidationError extends Error{constructor(){super(...arguments);this.schemas=[]}}t.AsnSchemaValidationError=AsnSchemaValidationError},4750:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArrayEqual=t.isTypeOfArray=t.isConvertible=void 0;function isConvertible(e){if(typeof e==="function"&&e.prototype){if(e.prototype.toASN&&e.prototype.fromASN){return true}else{return isConvertible(e.prototype)}}else{return!!(e&&typeof e==="object"&&"toASN"in e&&"fromASN"in e)}}t.isConvertible=isConvertible;function isTypeOfArray(e){var t;if(e){const A=Object.getPrototypeOf(e);if(((t=A===null||A===void 0?void 0:A.prototype)===null||t===void 0?void 0:t.constructor)===Array){return true}return isTypeOfArray(A)}return false}t.isTypeOfArray=isTypeOfArray;function isArrayEqual(e,t){if(!(e&&t)){return false}if(e.byteLength!==t.byteLength){return false}const A=new Uint8Array(e);const r=new Uint8Array(t);for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnSerializer=t.AsnParser=t.AsnPropTypes=t.AsnTypeTypes=t.AsnSetType=t.AsnSequenceType=t.AsnChoiceType=t.AsnType=t.AsnProp=void 0;const r=A(4351);r.__exportStar(A(4091),t);r.__exportStar(A(756),t);var n=A(157);Object.defineProperty(t,"AsnProp",{enumerable:true,get:function(){return n.AsnProp}});Object.defineProperty(t,"AsnType",{enumerable:true,get:function(){return n.AsnType}});Object.defineProperty(t,"AsnChoiceType",{enumerable:true,get:function(){return n.AsnChoiceType}});Object.defineProperty(t,"AsnSequenceType",{enumerable:true,get:function(){return n.AsnSequenceType}});Object.defineProperty(t,"AsnSetType",{enumerable:true,get:function(){return n.AsnSetType}});var s=A(378);Object.defineProperty(t,"AsnTypeTypes",{enumerable:true,get:function(){return s.AsnTypeTypes}});Object.defineProperty(t,"AsnPropTypes",{enumerable:true,get:function(){return s.AsnPropTypes}});var i=A(9660);Object.defineProperty(t,"AsnParser",{enumerable:true,get:function(){return i.AsnParser}});var o=A(7770);Object.defineProperty(t,"AsnSerializer",{enumerable:true,get:function(){return o.AsnSerializer}});r.__exportStar(A(6194),t);r.__exportStar(A(3795),t);r.__exportStar(A(913),t)},3795:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnArray=void 0;class AsnArray extends Array{constructor(e=[]){if(typeof e==="number"){super(e)}else{super();for(const t of e){this.push(t)}}}}t.AsnArray=AsnArray},9660:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnParser=void 0;const r=A(3702);const n=A(378);const s=A(4091);const i=A(6194);const o=A(4750);const a=A(4652);class AsnParser{static parse(e,t){const A=r.fromBER(e);if(A.result.error){throw new Error(A.result.error)}const n=this.fromASN(A.result,t);return n}static fromASN(e,t){var A;try{if((0,o.isConvertible)(t)){const A=new t;return A.fromASN(e)}const c=a.schemaStorage.get(t);a.schemaStorage.cache(t);let l=c.schema;if(e.constructor===r.Constructed&&c.type!==n.AsnTypeTypes.Choice){l=new r.Constructed({idBlock:{tagClass:3,tagNumber:e.idBlock.tagNumber},value:c.schema.valueBlock.value});for(const t in c.items){delete e[t]}}const u=r.compareSchema({},e,l);if(!u.verified){throw new i.AsnSchemaValidationError(`Data does not match to ${t.name} ASN1 schema. ${u.result.error}`)}const g=new t;if((0,o.isTypeOfArray)(t)){if(!("value"in e.valueBlock&&Array.isArray(e.valueBlock.value))){throw new Error(`Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.`)}const A=c.itemType;if(typeof A==="number"){const r=s.defaultConverter(A);if(!r){throw new Error(`Cannot get default converter for array item of ${t.name} ASN1 schema`)}return t.from(e.valueBlock.value,(e=>r.fromASN(e)))}else{return t.from(e.valueBlock.value,(e=>this.fromASN(e,A)))}}for(const e in c.items){const t=u.result[e];if(!t){continue}const s=c.items[e];const i=s.type;if(typeof i==="number"||(0,o.isConvertible)(i)){const a=(A=s.converter)!==null&&A!==void 0?A:(0,o.isConvertible)(i)?new i:null;if(!a){throw new Error("Converter is empty")}if(s.repeated){if(s.implicit){const A=s.repeated==="sequence"?r.Sequence:r.Set;const n=new A;n.valueBlock=t.valueBlock;const i=r.fromBER(n.toBER(false));if(i.offset===-1){throw new Error(`Cannot parse the child item. ${i.result.error}`)}if(!("value"in i.result.valueBlock&&Array.isArray(i.result.valueBlock.value))){throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.")}const o=i.result.valueBlock.value;g[e]=Array.from(o,(e=>a.fromASN(e)))}else{g[e]=Array.from(t,(e=>a.fromASN(e)))}}else{let A=t;if(s.implicit){let e;if((0,o.isConvertible)(i)){e=(new i).toSchema("")}else{const t=n.AsnPropTypes[i];const A=r[t];if(!A){throw new Error(`Cannot get '${t}' class from asn1js module`)}e=new A}e.valueBlock=A.valueBlock;A=r.fromBER(e.toBER(false)).result}g[e]=a.fromASN(A)}}else{if(s.repeated){if(!Array.isArray(t)){throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.")}g[e]=Array.from(t,(e=>this.fromASN(e,i)))}else{g[e]=this.fromASN(t,i)}}}return g}catch(e){if(e instanceof i.AsnSchemaValidationError){e.schemas.push(t.name)}throw e}}}t.AsnParser=AsnParser},3021:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnSchemaStorage=void 0;const r=A(3702);const n=A(378);const s=A(4750);class AsnSchemaStorage{constructor(){this.items=new WeakMap}has(e){return this.items.has(e)}get(e,t=false){const A=this.items.get(e);if(!A){throw new Error(`Cannot get schema for '${e.prototype.constructor.name}' target`)}if(t&&!A.schema){throw new Error(`Schema '${e.prototype.constructor.name}' doesn't contain ASN.1 schema. Call 'AsnSchemaStorage.cache'.`)}return A}cache(e){const t=this.get(e);if(!t.schema){t.schema=this.create(e,true)}}createDefault(e){const t={type:n.AsnTypeTypes.Sequence,items:{}};const A=this.findParentSchema(e);if(A){Object.assign(t,A);t.items=Object.assign({},t.items,A.items)}return t}create(e,t){const A=this.items.get(e)||this.createDefault(e);const i=[];for(const e in A.items){const o=A.items[e];const a=t?e:"";let c;if(typeof o.type==="number"){const e=n.AsnPropTypes[o.type];const t=r[e];if(!t){throw new Error(`Cannot get ASN1 class by name '${e}'`)}c=new t({name:a})}else if((0,s.isConvertible)(o.type)){const e=new o.type;c=e.toSchema(a)}else if(o.optional){const e=this.get(o.type);if(e.type===n.AsnTypeTypes.Choice){c=new r.Any({name:a})}else{c=this.create(o.type,false);c.name=a}}else{c=new r.Any({name:a})}const l=!!o.optional||o.defaultValue!==undefined;if(o.repeated){c.name="";const e=o.repeated==="set"?r.Set:r.Sequence;c=new e({name:"",value:[new r.Repeated({name:a,value:c})]})}if(o.context!==null&&o.context!==undefined){if(o.implicit){if(typeof o.type==="number"||(0,s.isConvertible)(o.type)){const e=o.repeated?r.Constructed:r.Primitive;i.push(new e({name:a,optional:l,idBlock:{tagClass:3,tagNumber:o.context}}))}else{this.cache(o.type);const e=!!o.repeated;let t=!e?this.get(o.type,true).schema:c;t="valueBlock"in t?t.valueBlock.value:t.value;i.push(new r.Constructed({name:!e?a:"",optional:l,idBlock:{tagClass:3,tagNumber:o.context},value:t}))}}else{i.push(new r.Constructed({optional:l,idBlock:{tagClass:3,tagNumber:o.context},value:[c]}))}}else{c.optional=l;i.push(c)}}switch(A.type){case n.AsnTypeTypes.Sequence:return new r.Sequence({value:i,name:""});case n.AsnTypeTypes.Set:return new r.Set({value:i,name:""});case n.AsnTypeTypes.Choice:return new r.Choice({value:i,name:""});default:throw new Error(`Unsupported ASN1 type in use`)}}set(e,t){this.items.set(e,t);return this}findParentSchema(e){const t=Object.getPrototypeOf(e);if(t){const e=this.items.get(t);return e||this.findParentSchema(t)}return null}}t.AsnSchemaStorage=AsnSchemaStorage},7770:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnSerializer=void 0;const r=A(3702);const n=A(4091);const s=A(378);const i=A(4750);const o=A(4652);class AsnSerializer{static serialize(e){if(e instanceof r.BaseBlock){return e.toBER(false)}return this.toASN(e).toBER(false)}static toASN(e){if(e&&typeof e==="object"&&(0,i.isConvertible)(e)){return e.toASN()}if(!(e&&typeof e==="object")){throw new TypeError("Parameter 1 should be type of Object.")}const t=e.constructor;const A=o.schemaStorage.get(t);o.schemaStorage.cache(t);let a=[];if(A.itemType){if(!Array.isArray(e)){throw new TypeError("Parameter 1 should be type of Array.")}if(typeof A.itemType==="number"){const r=n.defaultConverter(A.itemType);if(!r){throw new Error(`Cannot get default converter for array item of ${t.name} ASN1 schema`)}a=e.map((e=>r.toASN(e)))}else{a=e.map((e=>this.toAsnItem({type:A.itemType},"[]",t,e)))}}else{for(const n in A.items){const s=A.items[n];const o=e[n];if(o===undefined||s.defaultValue===o||typeof s.defaultValue==="object"&&typeof o==="object"&&(0,i.isArrayEqual)(this.serialize(s.defaultValue),this.serialize(o))){continue}const c=AsnSerializer.toAsnItem(s,n,t,o);if(typeof s.context==="number"){if(s.implicit){if(!s.repeated&&(typeof s.type==="number"||(0,i.isConvertible)(s.type))){const e={};e.valueHex=c instanceof r.Null?c.valueBeforeDecodeView:c.valueBlock.toBER();a.push(new r.Primitive({optional:s.optional,idBlock:{tagClass:3,tagNumber:s.context},...e}))}else{a.push(new r.Constructed({optional:s.optional,idBlock:{tagClass:3,tagNumber:s.context},value:c.valueBlock.value}))}}else{a.push(new r.Constructed({optional:s.optional,idBlock:{tagClass:3,tagNumber:s.context},value:[c]}))}}else if(s.repeated){a=a.concat(c)}else{a.push(c)}}}let c;switch(A.type){case s.AsnTypeTypes.Sequence:c=new r.Sequence({value:a});break;case s.AsnTypeTypes.Set:c=new r.Set({value:a});break;case s.AsnTypeTypes.Choice:if(!a[0]){throw new Error(`Schema '${t.name}' has wrong data. Choice cannot be empty.`)}c=a[0];break}return c}static toAsnItem(e,t,A,n){let i;if(typeof e.type==="number"){const o=e.converter;if(!o){throw new Error(`Property '${t}' doesn't have converter for type ${s.AsnPropTypes[e.type]} in schema '${A.name}'`)}if(e.repeated){if(!Array.isArray(n)){throw new TypeError("Parameter 'objProp' should be type of Array.")}const t=Array.from(n,(e=>o.toASN(e)));const A=e.repeated==="sequence"?r.Sequence:r.Set;i=new A({value:t})}else{i=o.toASN(n)}}else{if(e.repeated){if(!Array.isArray(n)){throw new TypeError("Parameter 'objProp' should be type of Array.")}const t=Array.from(n,(e=>this.toASN(e)));const A=e.repeated==="sequence"?r.Sequence:r.Set;i=new A({value:t})}else{i=this.toASN(n)}}return i}}t.AsnSerializer=AsnSerializer},4652:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.schemaStorage=void 0;const r=A(3021);t.schemaStorage=new r.AsnSchemaStorage},3897:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BitString=void 0;const r=A(3702);const n=A(2420);class BitString{constructor(e,t=0){this.unusedBits=0;this.value=new ArrayBuffer(0);if(e){if(typeof e==="number"){this.fromNumber(e)}else if(n.BufferSourceConverter.isBufferSource(e)){this.unusedBits=t;this.value=n.BufferSourceConverter.toArrayBuffer(e)}else{throw TypeError("Unsupported type of 'params' argument for BitString")}}}fromASN(e){if(!(e instanceof r.BitString)){throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString")}this.unusedBits=e.valueBlock.unusedBits;this.value=e.valueBlock.valueHex;return this}toASN(){return new r.BitString({unusedBits:this.unusedBits,valueHex:this.value})}toSchema(e){return new r.BitString({name:e})}toNumber(){let e="";const t=new Uint8Array(this.value);for(const A of t){e+=A.toString(2).padStart(8,"0")}e=e.split("").reverse().join("");if(this.unusedBits){e=e.slice(this.unusedBits).padStart(this.unusedBits,"0")}return parseInt(e,2)}fromNumber(e){let t=e.toString(2);const A=t.length+7>>3;this.unusedBits=(A<<3)-t.length;const r=new Uint8Array(A);t=t.padStart(A<<3,"0").split("").reverse().join("");let n=0;while(n{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(3897),t);r.__exportStar(A(2060),t)},2060:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OctetString=void 0;const r=A(3702);const n=A(2420);class OctetString{get byteLength(){return this.buffer.byteLength}get byteOffset(){return 0}constructor(e){if(typeof e==="number"){this.buffer=new ArrayBuffer(e)}else{if(n.BufferSourceConverter.isBufferSource(e)){this.buffer=n.BufferSourceConverter.toArrayBuffer(e)}else if(Array.isArray(e)){this.buffer=new Uint8Array(e)}else{this.buffer=new ArrayBuffer(0)}}}fromASN(e){if(!(e instanceof r.OctetString)){throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString")}this.buffer=e.valueBlock.valueHex;return this}toASN(){return new r.OctetString({valueHex:this.buffer})}toSchema(e){return new r.OctetString({name:e})}}t.OctetString=OctetString},3407:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ACClearAttrs=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class ACClearAttrs{constructor(e={}){this.acIssuer=new s.GeneralName;this.acSerial=0;this.attrs=[];Object.assign(this,e)}}t.ACClearAttrs=ACClearAttrs;r.__decorate([(0,n.AsnProp)({type:s.GeneralName})],ACClearAttrs.prototype,"acIssuer",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],ACClearAttrs.prototype,"acSerial",void 0);r.__decorate([(0,n.AsnProp)({type:s.Attribute,repeated:"sequence"})],ACClearAttrs.prototype,"attrs",void 0)},7881:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AAControls=void 0;const r=A(4351);const n=A(3499);const s=A(8160);class AAControls{constructor(e={}){this.permitUnSpecified=true;Object.assign(this,e)}}t.AAControls=AAControls;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,optional:true})],AAControls.prototype,"pathLenConstraint",void 0);r.__decorate([(0,n.AsnProp)({type:s.AttrSpec,implicit:true,context:0,optional:true})],AAControls.prototype,"permittedAttrs",void 0);r.__decorate([(0,n.AsnProp)({type:s.AttrSpec,implicit:true,context:1,optional:true})],AAControls.prototype,"excludedAttrs",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Boolean,defaultValue:true})],AAControls.prototype,"permitUnSpecified",void 0)},480:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AttCertIssuer=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(5787);let o=class AttCertIssuer{constructor(e={}){Object.assign(this,e)}};t.AttCertIssuer=o;r.__decorate([(0,n.AsnProp)({type:s.GeneralName,repeated:"sequence"})],o.prototype,"v1Form",void 0);r.__decorate([(0,n.AsnProp)({type:i.V2Form,context:0,implicit:true})],o.prototype,"v2Form",void 0);t.AttCertIssuer=o=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],o)},8579:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AttCertValidityPeriod=void 0;const r=A(4351);const n=A(3499);class AttCertValidityPeriod{constructor(e={}){this.notBeforeTime=new Date;this.notAfterTime=new Date;Object.assign(this,e)}}t.AttCertValidityPeriod=AttCertValidityPeriod;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime})],AttCertValidityPeriod.prototype,"notBeforeTime",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime})],AttCertValidityPeriod.prototype,"notAfterTime",void 0)},8160:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.AttrSpec=void 0;const n=A(4351);const s=A(3499);let i=r=class AttrSpec extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.AttrSpec=i;t.AttrSpec=i=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:s.AsnPropTypes.ObjectIdentifier})],i)},7943:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AttributeCertificate=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(5881);class AttributeCertificate{constructor(e={}){this.acinfo=new i.AttributeCertificateInfo;this.signatureAlgorithm=new s.AlgorithmIdentifier;this.signatureValue=new ArrayBuffer(0);Object.assign(this,e)}}t.AttributeCertificate=AttributeCertificate;r.__decorate([(0,n.AsnProp)({type:i.AttributeCertificateInfo})],AttributeCertificate.prototype,"acinfo",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],AttributeCertificate.prototype,"signatureAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString})],AttributeCertificate.prototype,"signatureValue",void 0)},5881:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AttributeCertificateInfo=t.AttCertVersion=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(7195);const o=A(480);const a=A(8579);var c;(function(e){e[e["v2"]=1]="v2"})(c||(t.AttCertVersion=c={}));class AttributeCertificateInfo{constructor(e={}){this.version=c.v2;this.holder=new i.Holder;this.issuer=new o.AttCertIssuer;this.signature=new s.AlgorithmIdentifier;this.serialNumber=new ArrayBuffer(0);this.attrCertValidityPeriod=new a.AttCertValidityPeriod;this.attributes=[];Object.assign(this,e)}}t.AttributeCertificateInfo=AttributeCertificateInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],AttributeCertificateInfo.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:i.Holder})],AttributeCertificateInfo.prototype,"holder",void 0);r.__decorate([(0,n.AsnProp)({type:o.AttCertIssuer})],AttributeCertificateInfo.prototype,"issuer",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],AttributeCertificateInfo.prototype,"signature",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],AttributeCertificateInfo.prototype,"serialNumber",void 0);r.__decorate([(0,n.AsnProp)({type:a.AttCertValidityPeriod})],AttributeCertificateInfo.prototype,"attrCertValidityPeriod",void 0);r.__decorate([(0,n.AsnProp)({type:s.Attribute,repeated:"sequence"})],AttributeCertificateInfo.prototype,"attributes",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString,optional:true})],AttributeCertificateInfo.prototype,"issuerUniqueID",void 0);r.__decorate([(0,n.AsnProp)({type:s.Extensions,optional:true})],AttributeCertificateInfo.prototype,"extensions",void 0)},2519:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ClassList=t.ClassListFlags=void 0;const r=A(3499);var n;(function(e){e[e["unmarked"]=1]="unmarked";e[e["unclassified"]=2]="unclassified";e[e["restricted"]=4]="restricted";e[e["confidential"]=8]="confidential";e[e["secret"]=16]="secret";e[e["topSecret"]=32]="topSecret"})(n||(t.ClassListFlags=n={}));class ClassList extends r.BitString{}t.ClassList=ClassList},9091:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Clearance=void 0;const r=A(4351);const n=A(3499);const s=A(2519);const i=A(6789);class Clearance{constructor(e={}){this.policyId="";this.classList=new s.ClassList(s.ClassListFlags.unclassified);Object.assign(this,e)}}t.Clearance=Clearance;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],Clearance.prototype,"policyId",void 0);r.__decorate([(0,n.AsnProp)({type:s.ClassList,defaultValue:new s.ClassList(s.ClassListFlags.unclassified)})],Clearance.prototype,"classList",void 0);r.__decorate([(0,n.AsnProp)({type:i.SecurityCategory,repeated:"set"})],Clearance.prototype,"securityCategories",void 0)},7195:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Holder=void 0;const r=A(4351);const n=A(3499);const s=A(462);const i=A(2288);const o=A(1952);class Holder{constructor(e={}){Object.assign(this,e)}}t.Holder=Holder;r.__decorate([(0,n.AsnProp)({type:s.IssuerSerial,implicit:true,context:0,optional:true})],Holder.prototype,"baseCertificateID",void 0);r.__decorate([(0,n.AsnProp)({type:i.GeneralNames,implicit:true,context:1,optional:true})],Holder.prototype,"entityName",void 0);r.__decorate([(0,n.AsnProp)({type:o.ObjectDigestInfo,implicit:true,context:2,optional:true})],Holder.prototype,"objectDigestInfo",void 0)},2639:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IetfAttrSyntax=t.IetfAttrSyntaxValueChoices=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class IetfAttrSyntaxValueChoices{constructor(e={}){Object.assign(this,e)}}t.IetfAttrSyntaxValueChoices=IetfAttrSyntaxValueChoices;r.__decorate([(0,n.AsnProp)({type:n.OctetString})],IetfAttrSyntaxValueChoices.prototype,"cotets",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],IetfAttrSyntaxValueChoices.prototype,"oid",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Utf8String})],IetfAttrSyntaxValueChoices.prototype,"string",void 0);class IetfAttrSyntax{constructor(e={}){this.values=[];Object.assign(this,e)}}t.IetfAttrSyntax=IetfAttrSyntax;r.__decorate([(0,n.AsnProp)({type:s.GeneralNames,implicit:true,context:0,optional:true})],IetfAttrSyntax.prototype,"policyAuthority",void 0);r.__decorate([(0,n.AsnProp)({type:IetfAttrSyntaxValueChoices,repeated:"sequence"})],IetfAttrSyntax.prototype,"values",void 0)},4263:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(3407),t);r.__exportStar(A(7881),t);r.__exportStar(A(480),t);r.__exportStar(A(8579),t);r.__exportStar(A(8160),t);r.__exportStar(A(7943),t);r.__exportStar(A(5881),t);r.__exportStar(A(2519),t);r.__exportStar(A(9091),t);r.__exportStar(A(7195),t);r.__exportStar(A(2639),t);r.__exportStar(A(462),t);r.__exportStar(A(1952),t);r.__exportStar(A(9851),t);r.__exportStar(A(3945),t);r.__exportStar(A(9422),t);r.__exportStar(A(6789),t);r.__exportStar(A(72),t);r.__exportStar(A(7260),t);r.__exportStar(A(5787),t)},462:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IssuerSerial=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class IssuerSerial{constructor(e={}){this.issuer=new s.GeneralNames;this.serial=new ArrayBuffer(0);this.issuerUID=new ArrayBuffer(0);Object.assign(this,e)}}t.IssuerSerial=IssuerSerial;r.__decorate([(0,n.AsnProp)({type:s.GeneralNames})],IssuerSerial.prototype,"issuer",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],IssuerSerial.prototype,"serial",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString,optional:true})],IssuerSerial.prototype,"issuerUID",void 0)},1952:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ObjectDigestInfo=t.DigestedObjectType=void 0;const r=A(4351);const n=A(3499);const s=A(2288);var i;(function(e){e[e["publicKey"]=0]="publicKey";e[e["publicKeyCert"]=1]="publicKeyCert";e[e["otherObjectTypes"]=2]="otherObjectTypes"})(i||(t.DigestedObjectType=i={}));class ObjectDigestInfo{constructor(e={}){this.digestedObjectType=i.publicKey;this.digestAlgorithm=new s.AlgorithmIdentifier;this.objectDigest=new ArrayBuffer(0);Object.assign(this,e)}}t.ObjectDigestInfo=ObjectDigestInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Enumerated})],ObjectDigestInfo.prototype,"digestedObjectType",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier,optional:true})],ObjectDigestInfo.prototype,"otherObjectTypeID",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],ObjectDigestInfo.prototype,"digestAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString})],ObjectDigestInfo.prototype,"objectDigest",void 0)},9851:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_at_clearance=t.id_at_role=t.id_at=t.id_aca_encAttrs=t.id_aca_group=t.id_aca_chargingIdentity=t.id_aca_accessIdentity=t.id_aca_authenticationInfo=t.id_aca=t.id_ce_targetInformation=t.id_pe_ac_proxying=t.id_pe_aaControls=t.id_pe_ac_auditIdentity=void 0;const r=A(2288);t.id_pe_ac_auditIdentity=`${r.id_pe}.4`;t.id_pe_aaControls=`${r.id_pe}.6`;t.id_pe_ac_proxying=`${r.id_pe}.10`;t.id_ce_targetInformation=`${r.id_ce}.55`;t.id_aca=`${r.id_pkix}.10`;t.id_aca_authenticationInfo=`${t.id_aca}.1`;t.id_aca_accessIdentity=`${t.id_aca}.2`;t.id_aca_chargingIdentity=`${t.id_aca}.3`;t.id_aca_group=`${t.id_aca}.4`;t.id_aca_encAttrs=`${t.id_aca}.6`;t.id_at="2.5.4";t.id_at_role=`${t.id_at}.72`;t.id_at_clearance="2.5.1.5.55"},3945:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.ProxyInfo=void 0;const n=A(4351);const s=A(3499);const i=A(7260);let o=r=class ProxyInfo extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.ProxyInfo=o;t.ProxyInfo=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:i.Targets})],o)},9422:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RoleSyntax=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class RoleSyntax{constructor(e={}){Object.assign(this,e)}}t.RoleSyntax=RoleSyntax;r.__decorate([(0,n.AsnProp)({type:s.GeneralNames,implicit:true,context:0,optional:true})],RoleSyntax.prototype,"roleAuthority",void 0);r.__decorate([(0,n.AsnProp)({type:s.GeneralName,implicit:true,context:1})],RoleSyntax.prototype,"roleName",void 0)},6789:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SecurityCategory=void 0;const r=A(4351);const n=A(3499);class SecurityCategory{constructor(e={}){this.type="";this.value=new ArrayBuffer(0);Object.assign(this,e)}}t.SecurityCategory=SecurityCategory;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier,implicit:true,context:0})],SecurityCategory.prototype,"type",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,implicit:true,context:1})],SecurityCategory.prototype,"value",void 0)},72:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SvceAuthInfo=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class SvceAuthInfo{constructor(e={}){this.service=new s.GeneralName;this.ident=new s.GeneralName;Object.assign(this,e)}}t.SvceAuthInfo=SvceAuthInfo;r.__decorate([(0,n.AsnProp)({type:s.GeneralName})],SvceAuthInfo.prototype,"service",void 0);r.__decorate([(0,n.AsnProp)({type:s.GeneralName})],SvceAuthInfo.prototype,"ident",void 0);r.__decorate([(0,n.AsnProp)({type:n.OctetString,optional:true})],SvceAuthInfo.prototype,"authInfo",void 0)},7260:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.Targets=t.Target=t.TargetCert=void 0;const n=A(4351);const s=A(3499);const i=A(2288);const o=A(462);const a=A(1952);class TargetCert{constructor(e={}){this.targetCertificate=new o.IssuerSerial;Object.assign(this,e)}}t.TargetCert=TargetCert;n.__decorate([(0,s.AsnProp)({type:o.IssuerSerial})],TargetCert.prototype,"targetCertificate",void 0);n.__decorate([(0,s.AsnProp)({type:i.GeneralName,optional:true})],TargetCert.prototype,"targetName",void 0);n.__decorate([(0,s.AsnProp)({type:a.ObjectDigestInfo,optional:true})],TargetCert.prototype,"certDigestInfo",void 0);let c=class Target{constructor(e={}){Object.assign(this,e)}};t.Target=c;n.__decorate([(0,s.AsnProp)({type:i.GeneralName,context:0,implicit:true})],c.prototype,"targetName",void 0);n.__decorate([(0,s.AsnProp)({type:i.GeneralName,context:1,implicit:true})],c.prototype,"targetGroup",void 0);n.__decorate([(0,s.AsnProp)({type:TargetCert,context:2,implicit:true})],c.prototype,"targetCert",void 0);t.Target=c=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],c);let l=r=class Targets extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.Targets=l;t.Targets=l=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:c})],l)},5787:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.V2Form=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(462);const o=A(1952);class V2Form{constructor(e={}){Object.assign(this,e)}}t.V2Form=V2Form;r.__decorate([(0,n.AsnProp)({type:s.GeneralNames,optional:true})],V2Form.prototype,"issuerName",void 0);r.__decorate([(0,n.AsnProp)({type:i.IssuerSerial,context:0,implicit:true,optional:true})],V2Form.prototype,"baseCertificateID",void 0);r.__decorate([(0,n.AsnProp)({type:o.ObjectDigestInfo,context:1,implicit:true,optional:true})],V2Form.prototype,"objectDigestInfo",void 0)},3166:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AlgorithmIdentifier=void 0;const r=A(4351);const n=A(3499);const s=A(2420);class AlgorithmIdentifier{constructor(e={}){this.algorithm="";Object.assign(this,e)}isEqual(e){return e instanceof AlgorithmIdentifier&&e.algorithm==this.algorithm&&(e.parameters&&this.parameters&&s.isEqual(e.parameters,this.parameters)||e.parameters===this.parameters)}}t.AlgorithmIdentifier=AlgorithmIdentifier;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],AlgorithmIdentifier.prototype,"algorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,optional:true})],AlgorithmIdentifier.prototype,"parameters",void 0)},2171:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Attribute=void 0;const r=A(4351);const n=A(3499);class Attribute{constructor(e={}){this.type="";this.values=[];Object.assign(this,e)}}t.Attribute=Attribute;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],Attribute.prototype,"type",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,repeated:"set"})],Attribute.prototype,"values",void 0)},5974:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Certificate=void 0;const r=A(4351);const n=A(3499);const s=A(3166);const i=A(9117);class Certificate{constructor(e={}){this.tbsCertificate=new i.TBSCertificate;this.signatureAlgorithm=new s.AlgorithmIdentifier;this.signatureValue=new ArrayBuffer(0);Object.assign(this,e)}}t.Certificate=Certificate;r.__decorate([(0,n.AsnProp)({type:i.TBSCertificate})],Certificate.prototype,"tbsCertificate",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],Certificate.prototype,"signatureAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString})],Certificate.prototype,"signatureValue",void 0)},3554:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CertificateList=void 0;const r=A(4351);const n=A(3499);const s=A(3166);const i=A(3113);class CertificateList{constructor(e={}){this.tbsCertList=new i.TBSCertList;this.signatureAlgorithm=new s.AlgorithmIdentifier;this.signature=new ArrayBuffer(0);Object.assign(this,e)}}t.CertificateList=CertificateList;r.__decorate([(0,n.AsnProp)({type:i.TBSCertList})],CertificateList.prototype,"tbsCertList",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],CertificateList.prototype,"signatureAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString})],CertificateList.prototype,"signature",void 0)},7908:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.Extensions=t.Extension=void 0;const n=A(4351);const s=A(3499);class Extension{constructor(e={}){this.extnID="";this.critical=Extension.CRITICAL;this.extnValue=new s.OctetString;Object.assign(this,e)}}t.Extension=Extension;Extension.CRITICAL=false;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],Extension.prototype,"extnID",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Boolean,defaultValue:Extension.CRITICAL})],Extension.prototype,"critical",void 0);n.__decorate([(0,s.AsnProp)({type:s.OctetString})],Extension.prototype,"extnValue",void 0);let i=r=class Extensions extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.Extensions=i;t.Extensions=i=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:Extension})],i)},677:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.AuthorityInfoAccessSyntax=t.AccessDescription=t.id_pe_authorityInfoAccess=void 0;const n=A(4351);const s=A(3499);const i=A(3670);const o=A(725);t.id_pe_authorityInfoAccess=`${o.id_pe}.1`;class AccessDescription{constructor(e={}){this.accessMethod="";this.accessLocation=new i.GeneralName;Object.assign(this,e)}}t.AccessDescription=AccessDescription;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],AccessDescription.prototype,"accessMethod",void 0);n.__decorate([(0,s.AsnProp)({type:i.GeneralName})],AccessDescription.prototype,"accessLocation",void 0);let a=r=class AuthorityInfoAccessSyntax extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.AuthorityInfoAccessSyntax=a;t.AuthorityInfoAccessSyntax=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:AccessDescription})],a)},1583:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AuthorityKeyIdentifier=t.KeyIdentifier=t.id_ce_authorityKeyIdentifier=void 0;const r=A(4351);const n=A(3499);const s=A(3670);const i=A(725);t.id_ce_authorityKeyIdentifier=`${i.id_ce}.35`;class KeyIdentifier extends n.OctetString{}t.KeyIdentifier=KeyIdentifier;class AuthorityKeyIdentifier{constructor(e={}){if(e){Object.assign(this,e)}}}t.AuthorityKeyIdentifier=AuthorityKeyIdentifier;r.__decorate([(0,n.AsnProp)({type:KeyIdentifier,context:0,optional:true,implicit:true})],AuthorityKeyIdentifier.prototype,"keyIdentifier",void 0);r.__decorate([(0,n.AsnProp)({type:s.GeneralName,context:1,optional:true,implicit:true,repeated:"sequence"})],AuthorityKeyIdentifier.prototype,"authorityCertIssuer",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,context:2,optional:true,implicit:true,converter:n.AsnIntegerArrayBufferConverter})],AuthorityKeyIdentifier.prototype,"authorityCertSerialNumber",void 0)},3811:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BasicConstraints=t.id_ce_basicConstraints=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_basicConstraints=`${s.id_ce}.19`;class BasicConstraints{constructor(e={}){this.cA=false;Object.assign(this,e)}}t.BasicConstraints=BasicConstraints;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Boolean,defaultValue:false})],BasicConstraints.prototype,"cA",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,optional:true})],BasicConstraints.prototype,"pathLenConstraint",void 0)},3151:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.CertificateIssuer=t.id_ce_certificateIssuer=void 0;const n=A(4351);const s=A(3499);const i=A(3201);const o=A(725);t.id_ce_certificateIssuer=`${o.id_ce}.29`;let a=r=class CertificateIssuer extends i.GeneralNames{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.CertificateIssuer=a;t.CertificateIssuer=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],a)},4157:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.CertificatePolicies=t.PolicyInformation=t.PolicyQualifierInfo=t.Qualifier=t.UserNotice=t.NoticeReference=t.DisplayText=t.id_ce_certificatePolicies_anyPolicy=t.id_ce_certificatePolicies=void 0;const n=A(4351);const s=A(3499);const i=A(725);t.id_ce_certificatePolicies=`${i.id_ce}.32`;t.id_ce_certificatePolicies_anyPolicy=`${t.id_ce_certificatePolicies}.0`;let o=class DisplayText{constructor(e={}){Object.assign(this,e)}toString(){return this.ia5String||this.visibleString||this.bmpString||this.utf8String||""}};t.DisplayText=o;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.IA5String})],o.prototype,"ia5String",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.VisibleString})],o.prototype,"visibleString",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.BmpString})],o.prototype,"bmpString",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Utf8String})],o.prototype,"utf8String",void 0);t.DisplayText=o=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],o);class NoticeReference{constructor(e={}){this.organization=new o;this.noticeNumbers=[];Object.assign(this,e)}}t.NoticeReference=NoticeReference;n.__decorate([(0,s.AsnProp)({type:o})],NoticeReference.prototype,"organization",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,repeated:"sequence"})],NoticeReference.prototype,"noticeNumbers",void 0);class UserNotice{constructor(e={}){Object.assign(this,e)}}t.UserNotice=UserNotice;n.__decorate([(0,s.AsnProp)({type:NoticeReference,optional:true})],UserNotice.prototype,"noticeRef",void 0);n.__decorate([(0,s.AsnProp)({type:o,optional:true})],UserNotice.prototype,"explicitText",void 0);let a=class Qualifier{constructor(e={}){Object.assign(this,e)}};t.Qualifier=a;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.IA5String})],a.prototype,"cPSuri",void 0);n.__decorate([(0,s.AsnProp)({type:UserNotice})],a.prototype,"userNotice",void 0);t.Qualifier=a=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],a);class PolicyQualifierInfo{constructor(e={}){this.policyQualifierId="";this.qualifier=new ArrayBuffer(0);Object.assign(this,e)}}t.PolicyQualifierInfo=PolicyQualifierInfo;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],PolicyQualifierInfo.prototype,"policyQualifierId",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Any})],PolicyQualifierInfo.prototype,"qualifier",void 0);class PolicyInformation{constructor(e={}){this.policyIdentifier="";Object.assign(this,e)}}t.PolicyInformation=PolicyInformation;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],PolicyInformation.prototype,"policyIdentifier",void 0);n.__decorate([(0,s.AsnProp)({type:PolicyQualifierInfo,repeated:"sequence",optional:true})],PolicyInformation.prototype,"policyQualifiers",void 0);let c=r=class CertificatePolicies extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.CertificatePolicies=c;t.CertificatePolicies=c=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:PolicyInformation})],c)},1335:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseCRLNumber=t.id_ce_deltaCRLIndicator=void 0;const r=A(4351);const n=A(3499);const s=A(725);const i=A(8777);t.id_ce_deltaCRLIndicator=`${s.id_ce}.27`;let o=class BaseCRLNumber extends i.CRLNumber{};t.BaseCRLNumber=o;t.BaseCRLNumber=o=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],o)},499:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.CRLDistributionPoints=t.DistributionPoint=t.DistributionPointName=t.Reason=t.ReasonFlags=t.id_ce_cRLDistributionPoints=void 0;const n=A(4351);const s=A(3499);const i=A(7429);const o=A(3670);const a=A(725);t.id_ce_cRLDistributionPoints=`${a.id_ce}.31`;var c;(function(e){e[e["unused"]=1]="unused";e[e["keyCompromise"]=2]="keyCompromise";e[e["cACompromise"]=4]="cACompromise";e[e["affiliationChanged"]=8]="affiliationChanged";e[e["superseded"]=16]="superseded";e[e["cessationOfOperation"]=32]="cessationOfOperation";e[e["certificateHold"]=64]="certificateHold";e[e["privilegeWithdrawn"]=128]="privilegeWithdrawn";e[e["aACompromise"]=256]="aACompromise"})(c||(t.ReasonFlags=c={}));class Reason extends s.BitString{toJSON(){const e=[];const t=this.toNumber();if(t&c.aACompromise){e.push("aACompromise")}if(t&c.affiliationChanged){e.push("affiliationChanged")}if(t&c.cACompromise){e.push("cACompromise")}if(t&c.certificateHold){e.push("certificateHold")}if(t&c.cessationOfOperation){e.push("cessationOfOperation")}if(t&c.keyCompromise){e.push("keyCompromise")}if(t&c.privilegeWithdrawn){e.push("privilegeWithdrawn")}if(t&c.superseded){e.push("superseded")}if(t&c.unused){e.push("unused")}return e}toString(){return`[${this.toJSON().join(", ")}]`}}t.Reason=Reason;let l=class DistributionPointName{constructor(e={}){Object.assign(this,e)}};t.DistributionPointName=l;n.__decorate([(0,s.AsnProp)({type:o.GeneralName,context:0,repeated:"sequence",implicit:true})],l.prototype,"fullName",void 0);n.__decorate([(0,s.AsnProp)({type:i.RelativeDistinguishedName,context:1,implicit:true})],l.prototype,"nameRelativeToCRLIssuer",void 0);t.DistributionPointName=l=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],l);class DistributionPoint{constructor(e={}){Object.assign(this,e)}}t.DistributionPoint=DistributionPoint;n.__decorate([(0,s.AsnProp)({type:l,context:0,optional:true})],DistributionPoint.prototype,"distributionPoint",void 0);n.__decorate([(0,s.AsnProp)({type:Reason,context:1,optional:true,implicit:true})],DistributionPoint.prototype,"reasons",void 0);n.__decorate([(0,s.AsnProp)({type:o.GeneralName,context:2,optional:true,repeated:"sequence",implicit:true})],DistributionPoint.prototype,"cRLIssuer",void 0);let u=r=class CRLDistributionPoints extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.CRLDistributionPoints=u;t.CRLDistributionPoints=u=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:DistributionPoint})],u)},0:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.FreshestCRL=t.id_ce_freshestCRL=void 0;const n=A(4351);const s=A(3499);const i=A(725);const o=A(499);t.id_ce_freshestCRL=`${i.id_ce}.46`;let a=r=class FreshestCRL extends o.CRLDistributionPoints{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.FreshestCRL=a;t.FreshestCRL=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:o.DistributionPoint})],a)},3305:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IssuingDistributionPoint=t.id_ce_issuingDistributionPoint=void 0;const r=A(4351);const n=A(3499);const s=A(499);const i=A(725);const o=A(3499);t.id_ce_issuingDistributionPoint=`${i.id_ce}.28`;class IssuingDistributionPoint{constructor(e={}){this.onlyContainsUserCerts=IssuingDistributionPoint.ONLY;this.onlyContainsCACerts=IssuingDistributionPoint.ONLY;this.indirectCRL=IssuingDistributionPoint.ONLY;this.onlyContainsAttributeCerts=IssuingDistributionPoint.ONLY;Object.assign(this,e)}}t.IssuingDistributionPoint=IssuingDistributionPoint;IssuingDistributionPoint.ONLY=false;r.__decorate([(0,n.AsnProp)({type:s.DistributionPointName,context:0,optional:true})],IssuingDistributionPoint.prototype,"distributionPoint",void 0);r.__decorate([(0,n.AsnProp)({type:o.AsnPropTypes.Boolean,context:1,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"onlyContainsUserCerts",void 0);r.__decorate([(0,n.AsnProp)({type:o.AsnPropTypes.Boolean,context:2,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"onlyContainsCACerts",void 0);r.__decorate([(0,n.AsnProp)({type:s.Reason,context:3,optional:true,implicit:true})],IssuingDistributionPoint.prototype,"onlySomeReasons",void 0);r.__decorate([(0,n.AsnProp)({type:o.AsnPropTypes.Boolean,context:4,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"indirectCRL",void 0);r.__decorate([(0,n.AsnProp)({type:o.AsnPropTypes.Boolean,context:5,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"onlyContainsAttributeCerts",void 0)},8777:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CRLNumber=t.id_ce_cRLNumber=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_cRLNumber=`${s.id_ce}.20`;let i=class CRLNumber{constructor(e=0){this.value=e}};t.CRLNumber=i;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],i.prototype,"value",void 0);t.CRLNumber=i=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],i)},8857:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CRLReason=t.CRLReasons=t.id_ce_cRLReasons=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_cRLReasons=`${s.id_ce}.21`;var i;(function(e){e[e["unspecified"]=0]="unspecified";e[e["keyCompromise"]=1]="keyCompromise";e[e["cACompromise"]=2]="cACompromise";e[e["affiliationChanged"]=3]="affiliationChanged";e[e["superseded"]=4]="superseded";e[e["cessationOfOperation"]=5]="cessationOfOperation";e[e["certificateHold"]=6]="certificateHold";e[e["removeFromCRL"]=8]="removeFromCRL";e[e["privilegeWithdrawn"]=9]="privilegeWithdrawn";e[e["aACompromise"]=10]="aACompromise"})(i||(t.CRLReasons=i={}));let o=class CRLReason{constructor(e=i.unspecified){this.reason=i.unspecified;this.reason=e}toJSON(){return i[this.reason]}toString(){return this.toJSON()}};t.CRLReason=o;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Enumerated})],o.prototype,"reason",void 0);t.CRLReason=o=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],o)},2382:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EntrustVersionInfo=t.EntrustInfo=t.EntrustInfoFlags=t.id_entrust_entrustVersInfo=void 0;const r=A(4351);const n=A(3499);t.id_entrust_entrustVersInfo="1.2.840.113533.7.65.0";var s;(function(e){e[e["keyUpdateAllowed"]=1]="keyUpdateAllowed";e[e["newExtensions"]=2]="newExtensions";e[e["pKIXCertificate"]=4]="pKIXCertificate"})(s||(t.EntrustInfoFlags=s={}));class EntrustInfo extends n.BitString{toJSON(){const e=[];const t=this.toNumber();if(t&s.pKIXCertificate){e.push("pKIXCertificate")}if(t&s.newExtensions){e.push("newExtensions")}if(t&s.keyUpdateAllowed){e.push("keyUpdateAllowed")}return e}toString(){return`[${this.toJSON().join(", ")}]`}}t.EntrustInfo=EntrustInfo;class EntrustVersionInfo{constructor(e={}){this.entrustVers="";this.entrustInfoFlags=new EntrustInfo;Object.assign(this,e)}}t.EntrustVersionInfo=EntrustVersionInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralString})],EntrustVersionInfo.prototype,"entrustVers",void 0);r.__decorate([(0,n.AsnProp)({type:EntrustInfo})],EntrustVersionInfo.prototype,"entrustInfoFlags",void 0)},7993:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.id_kp_OCSPSigning=t.id_kp_timeStamping=t.id_kp_emailProtection=t.id_kp_codeSigning=t.id_kp_clientAuth=t.id_kp_serverAuth=t.anyExtendedKeyUsage=t.ExtendedKeyUsage=t.id_ce_extKeyUsage=void 0;const n=A(4351);const s=A(3499);const i=A(725);t.id_ce_extKeyUsage=`${i.id_ce}.37`;let o=r=class ExtendedKeyUsage extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.ExtendedKeyUsage=o;t.ExtendedKeyUsage=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:s.AsnPropTypes.ObjectIdentifier})],o);t.anyExtendedKeyUsage=`${t.id_ce_extKeyUsage}.0`;t.id_kp_serverAuth=`${i.id_kp}.1`;t.id_kp_clientAuth=`${i.id_kp}.2`;t.id_kp_codeSigning=`${i.id_kp}.3`;t.id_kp_emailProtection=`${i.id_kp}.4`;t.id_kp_timeStamping=`${i.id_kp}.8`;t.id_kp_OCSPSigning=`${i.id_kp}.9`},6457:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(677),t);r.__exportStar(A(1583),t);r.__exportStar(A(3811),t);r.__exportStar(A(3151),t);r.__exportStar(A(4157),t);r.__exportStar(A(1335),t);r.__exportStar(A(499),t);r.__exportStar(A(0),t);r.__exportStar(A(3305),t);r.__exportStar(A(8777),t);r.__exportStar(A(8857),t);r.__exportStar(A(7993),t);r.__exportStar(A(1622),t);r.__exportStar(A(4932),t);r.__exportStar(A(6330),t);r.__exportStar(A(6744),t);r.__exportStar(A(7543),t);r.__exportStar(A(5113),t);r.__exportStar(A(3230),t);r.__exportStar(A(8555),t);r.__exportStar(A(2007),t);r.__exportStar(A(3651),t);r.__exportStar(A(5096),t);r.__exportStar(A(2382),t);r.__exportStar(A(7299),t)},1622:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InhibitAnyPolicy=t.id_ce_inhibitAnyPolicy=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_inhibitAnyPolicy=`${s.id_ce}.54`;let i=class InhibitAnyPolicy{constructor(e=new ArrayBuffer(0)){this.value=e}};t.InhibitAnyPolicy=i;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],i.prototype,"value",void 0);t.InhibitAnyPolicy=i=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],i)},4932:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InvalidityDate=t.id_ce_invalidityDate=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_invalidityDate=`${s.id_ce}.24`;let i=class InvalidityDate{constructor(e){this.value=new Date;if(e){this.value=e}}};t.InvalidityDate=i;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime})],i.prototype,"value",void 0);t.InvalidityDate=i=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],i)},6330:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.IssueAlternativeName=t.id_ce_issuerAltName=void 0;const n=A(4351);const s=A(3499);const i=A(3201);const o=A(725);t.id_ce_issuerAltName=`${o.id_ce}.18`;let a=r=class IssueAlternativeName extends i.GeneralNames{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.IssueAlternativeName=a;t.IssueAlternativeName=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],a)},6744:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KeyUsage=t.KeyUsageFlags=t.id_ce_keyUsage=void 0;const r=A(3499);const n=A(725);t.id_ce_keyUsage=`${n.id_ce}.15`;var s;(function(e){e[e["digitalSignature"]=1]="digitalSignature";e[e["nonRepudiation"]=2]="nonRepudiation";e[e["keyEncipherment"]=4]="keyEncipherment";e[e["dataEncipherment"]=8]="dataEncipherment";e[e["keyAgreement"]=16]="keyAgreement";e[e["keyCertSign"]=32]="keyCertSign";e[e["cRLSign"]=64]="cRLSign";e[e["encipherOnly"]=128]="encipherOnly";e[e["decipherOnly"]=256]="decipherOnly"})(s||(t.KeyUsageFlags=s={}));class KeyUsage extends r.BitString{toJSON(){const e=this.toNumber();const t=[];if(e&s.cRLSign){t.push("crlSign")}if(e&s.dataEncipherment){t.push("dataEncipherment")}if(e&s.decipherOnly){t.push("decipherOnly")}if(e&s.digitalSignature){t.push("digitalSignature")}if(e&s.encipherOnly){t.push("encipherOnly")}if(e&s.keyAgreement){t.push("keyAgreement")}if(e&s.keyCertSign){t.push("keyCertSign")}if(e&s.keyEncipherment){t.push("keyEncipherment")}if(e&s.nonRepudiation){t.push("nonRepudiation")}return t}toString(){return`[${this.toJSON().join(", ")}]`}}t.KeyUsage=KeyUsage},7543:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.NameConstraints=t.GeneralSubtrees=t.GeneralSubtree=t.id_ce_nameConstraints=void 0;const n=A(4351);const s=A(3499);const i=A(3670);const o=A(725);t.id_ce_nameConstraints=`${o.id_ce}.30`;class GeneralSubtree{constructor(e={}){this.base=new i.GeneralName;this.minimum=0;Object.assign(this,e)}}t.GeneralSubtree=GeneralSubtree;n.__decorate([(0,s.AsnProp)({type:i.GeneralName})],GeneralSubtree.prototype,"base",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,context:0,defaultValue:0,implicit:true})],GeneralSubtree.prototype,"minimum",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,context:1,optional:true,implicit:true})],GeneralSubtree.prototype,"maximum",void 0);let a=r=class GeneralSubtrees extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.GeneralSubtrees=a;t.GeneralSubtrees=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:GeneralSubtree})],a);class NameConstraints{constructor(e={}){Object.assign(this,e)}}t.NameConstraints=NameConstraints;n.__decorate([(0,s.AsnProp)({type:a,context:0,optional:true,implicit:true})],NameConstraints.prototype,"permittedSubtrees",void 0);n.__decorate([(0,s.AsnProp)({type:a,context:1,optional:true,implicit:true})],NameConstraints.prototype,"excludedSubtrees",void 0)},5113:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PolicyConstraints=t.id_ce_policyConstraints=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_policyConstraints=`${s.id_ce}.36`;class PolicyConstraints{constructor(e={}){Object.assign(this,e)}}t.PolicyConstraints=PolicyConstraints;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,context:0,implicit:true,optional:true,converter:n.AsnIntegerArrayBufferConverter})],PolicyConstraints.prototype,"requireExplicitPolicy",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,context:1,implicit:true,optional:true,converter:n.AsnIntegerArrayBufferConverter})],PolicyConstraints.prototype,"inhibitPolicyMapping",void 0)},3230:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.PolicyMappings=t.PolicyMapping=t.id_ce_policyMappings=void 0;const n=A(4351);const s=A(3499);const i=A(725);t.id_ce_policyMappings=`${i.id_ce}.33`;class PolicyMapping{constructor(e={}){this.issuerDomainPolicy="";this.subjectDomainPolicy="";Object.assign(this,e)}}t.PolicyMapping=PolicyMapping;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],PolicyMapping.prototype,"issuerDomainPolicy",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],PolicyMapping.prototype,"subjectDomainPolicy",void 0);let o=r=class PolicyMappings extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.PolicyMappings=o;t.PolicyMappings=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:PolicyMapping})],o)},5096:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PrivateKeyUsagePeriod=t.id_ce_privateKeyUsagePeriod=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_privateKeyUsagePeriod=`${s.id_ce}.16`;class PrivateKeyUsagePeriod{constructor(e={}){Object.assign(this,e)}}t.PrivateKeyUsagePeriod=PrivateKeyUsagePeriod;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime,context:0,implicit:true,optional:true})],PrivateKeyUsagePeriod.prototype,"notBefore",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime,context:1,implicit:true,optional:true})],PrivateKeyUsagePeriod.prototype,"notAfter",void 0)},8555:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.SubjectAlternativeName=t.id_ce_subjectAltName=void 0;const n=A(4351);const s=A(3499);const i=A(3201);const o=A(725);t.id_ce_subjectAltName=`${o.id_ce}.17`;let a=r=class SubjectAlternativeName extends i.GeneralNames{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.SubjectAlternativeName=a;t.SubjectAlternativeName=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],a)},2007:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.SubjectDirectoryAttributes=t.id_ce_subjectDirectoryAttributes=void 0;const n=A(4351);const s=A(3499);const i=A(2171);const o=A(725);t.id_ce_subjectDirectoryAttributes=`${o.id_ce}.9`;let a=r=class SubjectDirectoryAttributes extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.SubjectDirectoryAttributes=a;t.SubjectDirectoryAttributes=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:i.Attribute})],a)},7299:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.SubjectInfoAccessSyntax=t.id_pe_subjectInfoAccess=void 0;const n=A(4351);const s=A(3499);const i=A(725);const o=A(677);t.id_pe_subjectInfoAccess=`${i.id_pe}.11`;let a=r=class SubjectInfoAccessSyntax extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.SubjectInfoAccessSyntax=a;t.SubjectInfoAccessSyntax=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:o.AccessDescription})],a)},3651:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SubjectKeyIdentifier=t.id_ce_subjectKeyIdentifier=void 0;const r=A(725);const n=A(1583);t.id_ce_subjectKeyIdentifier=`${r.id_ce}.14`;class SubjectKeyIdentifier extends n.KeyIdentifier{}t.SubjectKeyIdentifier=SubjectKeyIdentifier},3670:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GeneralName=t.EDIPartyName=t.OtherName=t.AsnIpConverter=void 0;const r=A(4351);const n=A(3499);const s=A(621);const i=A(7429);t.AsnIpConverter={fromASN:e=>s.IpConverter.toString(n.AsnOctetStringConverter.fromASN(e)),toASN:e=>n.AsnOctetStringConverter.toASN(s.IpConverter.fromString(e))};class OtherName{constructor(e={}){this.typeId="";this.value=new ArrayBuffer(0);Object.assign(this,e)}}t.OtherName=OtherName;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],OtherName.prototype,"typeId",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,context:0})],OtherName.prototype,"value",void 0);class EDIPartyName{constructor(e={}){this.partyName=new i.DirectoryString;Object.assign(this,e)}}t.EDIPartyName=EDIPartyName;r.__decorate([(0,n.AsnProp)({type:i.DirectoryString,optional:true,context:0,implicit:true})],EDIPartyName.prototype,"nameAssigner",void 0);r.__decorate([(0,n.AsnProp)({type:i.DirectoryString,context:1,implicit:true})],EDIPartyName.prototype,"partyName",void 0);let o=class GeneralName{constructor(e={}){Object.assign(this,e)}};t.GeneralName=o;r.__decorate([(0,n.AsnProp)({type:OtherName,context:0,implicit:true})],o.prototype,"otherName",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.IA5String,context:1,implicit:true})],o.prototype,"rfc822Name",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.IA5String,context:2,implicit:true})],o.prototype,"dNSName",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,context:3,implicit:true})],o.prototype,"x400Address",void 0);r.__decorate([(0,n.AsnProp)({type:i.Name,context:4,implicit:false})],o.prototype,"directoryName",void 0);r.__decorate([(0,n.AsnProp)({type:EDIPartyName,context:5})],o.prototype,"ediPartyName",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.IA5String,context:6,implicit:true})],o.prototype,"uniformResourceIdentifier",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.OctetString,context:7,implicit:true,converter:t.AsnIpConverter})],o.prototype,"iPAddress",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier,context:8,implicit:true})],o.prototype,"registeredID",void 0);t.GeneralName=o=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],o)},3201:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.GeneralNames=void 0;const n=A(4351);const s=A(3499);const i=A(3670);const o=A(3499);let a=r=class GeneralNames extends o.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.GeneralNames=a;t.GeneralNames=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:i.GeneralName})],a)},2288:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(6457),t);r.__exportStar(A(3166),t);r.__exportStar(A(2171),t);r.__exportStar(A(5974),t);r.__exportStar(A(3554),t);r.__exportStar(A(7908),t);r.__exportStar(A(3670),t);r.__exportStar(A(3201),t);r.__exportStar(A(7429),t);r.__exportStar(A(725),t);r.__exportStar(A(4003),t);r.__exportStar(A(3113),t);r.__exportStar(A(9117),t);r.__exportStar(A(1768),t);r.__exportStar(A(2826),t);r.__exportStar(A(758),t)},621:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IpConverter=void 0;const r=A(7263);const n=A(2420);class IpConverter{static decodeIP(e){if(e.length===64&&parseInt(e,16)===0){return"::/0"}if(e.length!==16){return e}const t=parseInt(e.slice(8),16).toString(2).split("").reduce(((e,t)=>e+ +t),0);let A=e.slice(0,8).replace(/(.{2})/g,(e=>`${parseInt(e,16)}.`));A=A.slice(0,-1);return`${A}/${t}`}static toString(e){if(e.byteLength===4||e.byteLength===16){const t=new Uint8Array(e);const A=r.fromByteArray(Array.from(t));return A.toString()}return this.decodeIP(n.Convert.ToHex(e))}static fromString(e){const t=r.parse(e);return new Uint8Array(t.toByteArray()).buffer}}t.IpConverter=IpConverter},7429:(e,t,A)=>{"use strict";var r,n,s;Object.defineProperty(t,"__esModule",{value:true});t.Name=t.RDNSequence=t.RelativeDistinguishedName=t.AttributeTypeAndValue=t.AttributeValue=t.DirectoryString=void 0;const i=A(4351);const o=A(3499);const a=A(2420);let c=class DirectoryString{constructor(e={}){Object.assign(this,e)}toString(){return this.bmpString||this.printableString||this.teletexString||this.universalString||this.utf8String||""}};t.DirectoryString=c;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.TeletexString})],c.prototype,"teletexString",void 0);i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.PrintableString})],c.prototype,"printableString",void 0);i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.UniversalString})],c.prototype,"universalString",void 0);i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.Utf8String})],c.prototype,"utf8String",void 0);i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.BmpString})],c.prototype,"bmpString",void 0);t.DirectoryString=c=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],c);let l=class AttributeValue extends c{constructor(e={}){super(e);Object.assign(this,e)}toString(){return this.ia5String||(this.anyValue?a.Convert.ToHex(this.anyValue):super.toString())}};t.AttributeValue=l;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.IA5String})],l.prototype,"ia5String",void 0);i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.Any})],l.prototype,"anyValue",void 0);t.AttributeValue=l=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],l);class AttributeTypeAndValue{constructor(e={}){this.type="";this.value=new l;Object.assign(this,e)}}t.AttributeTypeAndValue=AttributeTypeAndValue;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.ObjectIdentifier})],AttributeTypeAndValue.prototype,"type",void 0);i.__decorate([(0,o.AsnProp)({type:l})],AttributeTypeAndValue.prototype,"value",void 0);let u=r=class RelativeDistinguishedName extends o.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.RelativeDistinguishedName=u;t.RelativeDistinguishedName=u=r=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Set,itemType:AttributeTypeAndValue})],u);let g=n=class RDNSequence extends o.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,n.prototype)}};t.RDNSequence=g;t.RDNSequence=g=n=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence,itemType:u})],g);let h=s=class Name extends g{constructor(e){super(e);Object.setPrototypeOf(this,s.prototype)}};t.Name=h;t.Name=h=s=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],h)},725:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_ce=t.id_ad_caRepository=t.id_ad_timeStamping=t.id_ad_caIssuers=t.id_ad_ocsp=t.id_qt_unotice=t.id_qt_csp=t.id_ad=t.id_kp=t.id_qt=t.id_pe=t.id_pkix=void 0;t.id_pkix="1.3.6.1.5.5.7";t.id_pe=`${t.id_pkix}.1`;t.id_qt=`${t.id_pkix}.2`;t.id_kp=`${t.id_pkix}.3`;t.id_ad=`${t.id_pkix}.48`;t.id_qt_csp=`${t.id_qt}.1`;t.id_qt_unotice=`${t.id_qt}.2`;t.id_ad_ocsp=`${t.id_ad}.1`;t.id_ad_caIssuers=`${t.id_ad}.2`;t.id_ad_timeStamping=`${t.id_ad}.3`;t.id_ad_caRepository=`${t.id_ad}.5`;t.id_ce="2.5.29"},4003:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SubjectPublicKeyInfo=void 0;const r=A(4351);const n=A(3499);const s=A(3166);class SubjectPublicKeyInfo{constructor(e={}){this.algorithm=new s.AlgorithmIdentifier;this.subjectPublicKey=new ArrayBuffer(0);Object.assign(this,e)}}t.SubjectPublicKeyInfo=SubjectPublicKeyInfo;r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],SubjectPublicKeyInfo.prototype,"algorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString})],SubjectPublicKeyInfo.prototype,"subjectPublicKey",void 0)},3113:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TBSCertList=t.RevokedCertificate=void 0;const r=A(4351);const n=A(3499);const s=A(3166);const i=A(7429);const o=A(1768);const a=A(7908);class RevokedCertificate{constructor(e={}){this.userCertificate=new ArrayBuffer(0);this.revocationDate=new o.Time;Object.assign(this,e)}}t.RevokedCertificate=RevokedCertificate;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RevokedCertificate.prototype,"userCertificate",void 0);r.__decorate([(0,n.AsnProp)({type:o.Time})],RevokedCertificate.prototype,"revocationDate",void 0);r.__decorate([(0,n.AsnProp)({type:a.Extension,optional:true,repeated:"sequence"})],RevokedCertificate.prototype,"crlEntryExtensions",void 0);class TBSCertList{constructor(e={}){this.signature=new s.AlgorithmIdentifier;this.issuer=new i.Name;this.thisUpdate=new o.Time;Object.assign(this,e)}}t.TBSCertList=TBSCertList;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,optional:true})],TBSCertList.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],TBSCertList.prototype,"signature",void 0);r.__decorate([(0,n.AsnProp)({type:i.Name})],TBSCertList.prototype,"issuer",void 0);r.__decorate([(0,n.AsnProp)({type:o.Time})],TBSCertList.prototype,"thisUpdate",void 0);r.__decorate([(0,n.AsnProp)({type:o.Time,optional:true})],TBSCertList.prototype,"nextUpdate",void 0);r.__decorate([(0,n.AsnProp)({type:RevokedCertificate,repeated:"sequence",optional:true})],TBSCertList.prototype,"revokedCertificates",void 0);r.__decorate([(0,n.AsnProp)({type:a.Extension,optional:true,context:0,repeated:"sequence"})],TBSCertList.prototype,"crlExtensions",void 0)},9117:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TBSCertificate=void 0;const r=A(4351);const n=A(3499);const s=A(3166);const i=A(7429);const o=A(4003);const a=A(758);const c=A(7908);const l=A(2826);class TBSCertificate{constructor(e={}){this.version=l.Version.v1;this.serialNumber=new ArrayBuffer(0);this.signature=new s.AlgorithmIdentifier;this.issuer=new i.Name;this.validity=new a.Validity;this.subject=new i.Name;this.subjectPublicKeyInfo=new o.SubjectPublicKeyInfo;Object.assign(this,e)}}t.TBSCertificate=TBSCertificate;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,context:0,defaultValue:l.Version.v1})],TBSCertificate.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],TBSCertificate.prototype,"serialNumber",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],TBSCertificate.prototype,"signature",void 0);r.__decorate([(0,n.AsnProp)({type:i.Name})],TBSCertificate.prototype,"issuer",void 0);r.__decorate([(0,n.AsnProp)({type:a.Validity})],TBSCertificate.prototype,"validity",void 0);r.__decorate([(0,n.AsnProp)({type:i.Name})],TBSCertificate.prototype,"subject",void 0);r.__decorate([(0,n.AsnProp)({type:o.SubjectPublicKeyInfo})],TBSCertificate.prototype,"subjectPublicKeyInfo",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString,context:1,implicit:true,optional:true})],TBSCertificate.prototype,"issuerUniqueID",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString,context:2,implicit:true,optional:true})],TBSCertificate.prototype,"subjectUniqueID",void 0);r.__decorate([(0,n.AsnProp)({type:c.Extensions,context:3,optional:true})],TBSCertificate.prototype,"extensions",void 0)},1768:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Time=void 0;const r=A(4351);const n=A(3499);let s=class Time{constructor(e){if(e){if(typeof e==="string"||typeof e==="number"||e instanceof Date){const t=new Date(e);if(t.getUTCFullYear()>2049){this.generalTime=t}else{this.utcTime=t}}else{Object.assign(this,e)}}}getTime(){const e=this.utcTime||this.generalTime;if(!e){throw new Error("Cannot get time from CHOICE object")}return e}};t.Time=s;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.UTCTime})],s.prototype,"utcTime",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime})],s.prototype,"generalTime",void 0);t.Time=s=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],s)},2826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Version=void 0;var A;(function(e){e[e["v1"]=0]="v1";e[e["v2"]=1]="v2";e[e["v3"]=2]="v3"})(A||(t.Version=A={}))},758:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Validity=void 0;const r=A(4351);const n=A(3499);const s=A(1768);class Validity{constructor(e){this.notBefore=new s.Time(new Date);this.notAfter=new s.Time(new Date);if(e){this.notBefore=new s.Time(e.notBefore);this.notAfter=new s.Time(e.notAfter)}}}t.Validity=Validity;r.__decorate([(0,n.AsnProp)({type:s.Time})],Validity.prototype,"notBefore",void 0);r.__decorate([(0,n.AsnProp)({type:s.Time})],Validity.prototype,"notAfter",void 0)},2315:(e,t,A)=>{"use strict"; +(()=>{var e={4822:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;var n=Object.getOwnPropertyDescriptor(t,A);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,r,n)}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const o=s(A(2186));const a=i(A(9411));const c=A(918);const l="token";const u="organization";const g="certificate";const h="file";async function run(){o.setSecret(o.getInput(l));try{const e=o.getInput(l);const t=o.getInput(u);const A=o.getInput(g);const r=o.getInput(h);await(0,c.installGoodKey)(__dirname,a.default.join(c.SYSTEM_ROOT,"System32"));await(0,c.registerUser)(e,t);await(0,c.sign)({file:r,certificate:A,timestampUrl:o.getInput("timestamp_url")||undefined,description:o.getInput("description")||undefined,descriptionUrl:o.getInput("description_url")||undefined,additionalCertificates:o.getInput("additional_certificate")||undefined,fileDigestAlgorithm:o.getInput("file_digest_algorithm")||undefined})}catch(e){if(e instanceof Error){o.setFailed(e.message)}else{o.setFailed(`Unknown error: ${e}`)}}}run()},918:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;var n=Object.getOwnPropertyDescriptor(t,A);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,r,n)}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getSignToolPath=t.sign=t.registerUser=t.installGoodKey=t.SYSTEM_ROOT=void 0;const i=A(7147);const o=s(A(1017));const a=A(2081);const c=A(3837);const l=A(2315);t.SYSTEM_ROOT=process.env["SystemRoot"]||"C:\\Windows";const u="gksvc.exe";const g="gkcng.dll";const h="gkcertsvc.dll";const d="gkutils.exe";const E=[u,g,h,d];const f=(0,c.promisify)(a.exec);async function installGoodKey(e,t){try{for(const A of E){const r=o.join(e,A);const n=o.join(t,A);await i.promises.copyFile(r,n)}await f(`regsvr32.exe /s "${o.join(t,g)}"`);await f(`regsvr32.exe /s "${o.join(t,h)}"`);await f(`sc create gksvc binPath= "${o.join(t,u)}" start= auto`);await f(`sc start gksvc`);let A=false;let r=0;const n=10;const s=400;while(!A&&rsetTimeout(e,s)))}r++}if(!A){throw new Error("Service did not start within the expected time.")}}catch(e){if(e instanceof Error){const t="stdout"in e&&e.stdout?e.stdout.toString():e.message;throw new Error(`Installation of GoodKey failed: ${t}`)}throw e}}t.installGoodKey=installGoodKey;async function registerUser(e,A){try{const{stdout:r}=await f(`${o.join(t.SYSTEM_ROOT,"System32",d)} auth register -t ${e} -o ${A}`);console.log(r)}catch(e){if(e instanceof Error){const t="stdout"in e&&e.stdout?e.stdout.toString():e.message;throw new Error(`Registration of user failed: ${t}`)}throw e}}t.registerUser=registerUser;async function sign(e){try{const t=await getSignToolPath();const A={};if(e.timestampUrl){A["t"]=e.timestampUrl}if(e.timestampRfc3161Url){A["tr"]=e.timestampRfc3161Url}if(e.description){A["d"]=e.description}if(e.descriptionUrl){A["du"]=e.descriptionUrl}if(e.additionalCertificates){const t=new l.X509Certificates(e.additionalCertificates);const r=[];for(const e of t){const t=await e.getThumbprint();const A=o.join(__dirname,`${Buffer.from(new Uint8Array(t)).toString("hex")}.cer`);await i.promises.writeFile(A,Buffer.from(new Uint8Array(e.rawData)));r.push(A)}A["ac"]=r}if(e.fileDigestAlgorithm){A["fd"]=e.fileDigestAlgorithm}let r="";for(const e in A){if(Array.isArray(A[e])){for(const t of A[e]){r+=` /${e} "${t}"`}continue}r+=` /${e} "${A[e]}"`}const n=`"${t}" sign /v /a /sha1 ${e.certificate} ${r} "${e.file}"`;console.log(n);const{stdout:s,stderr:a}=await f(n);console.log(s);console.log(a)}catch(e){if(e instanceof Error){const t="stdout"in e&&e.stdout?e.stdout.toString():e.message;throw new Error(`Signing of file failed: ${t}`)}throw e}}t.sign=sign;async function getSignToolPath(){const e="C:\\Program Files (x86)\\Windows Kits";const t="signtool.exe";const A=[e];while(A.length>0){const e=A.pop();let r=await i.promises.readdir(e);r=r.sort().reverse();for(const n of r){const r=o.join(e,n);const s=await i.promises.stat(r);if(n===t&&s.isFile()){return r}else if(s.isDirectory()){A.push(r)}}}throw new Error("signtool.exe not found")}t.getSignToolPath=getSignToolPath},7351:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=s(A(2037));const o=A(5278);function issueCommand(e,t,A){const r=new Command(e,t,A);process.stdout.write(r.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const a="::";class Command{constructor(e,t,A){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=A}toString(){let e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const A in this.properties){if(this.properties.hasOwnProperty(A)){const r=this.properties[A];if(r){if(t){t=false}else{e+=","}e+=`${A}=${escapeProperty(r)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,r){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const o=A(7351);const a=A(717);const c=A(5278);const l=s(A(2037));const u=s(A(1017));const g=A(8041);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const A=c.toCommandValue(t);process.env[e]=A;const r=process.env["GITHUB_ENV"]||"";if(r){return a.issueFileCommand("ENV",a.prepareKeyValueMessage(e,t))}o.issueCommand("set-env",{name:e},A)}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){a.issueFileCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const A=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!A){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return A}return A.trim()}t.getInput=getInput;function getMultilineInput(e,t){const A=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return A}return A.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const A=["true","True","TRUE"];const r=["false","False","FALSE"];const n=getInput(e,t);if(A.includes(n))return true;if(r.includes(n))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const A=process.env["GITHUB_OUTPUT"]||"";if(A){return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t))}process.stdout.write(l.EOL);o.issueCommand("set-output",{name:e},c.toCommandValue(t))}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){o.issueCommand("error",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){o.issueCommand("warning",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){o.issueCommand("notice",c.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return i(this,void 0,void 0,(function*(){startGroup(e);let A;try{A=yield t()}finally{endGroup()}return A}))}t.group=group;function saveState(e,t){const A=process.env["GITHUB_STATE"]||"";if(A){return a.issueFileCommand("STATE",a.prepareKeyValueMessage(e,t))}o.issueCommand("save-state",{name:e},c.toCommandValue(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield g.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var d=A(1327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return d.summary}});var E=A(1327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return E.markdownSummary}});var f=A(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return f.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return f.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return f.toPlatformPath}})},717:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=s(A(7147));const o=s(A(2037));const a=A(5840);const c=A(5278);function issueFileCommand(e,t){const A=process.env[`GITHUB_${e}`];if(!A){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(A)){throw new Error(`Missing file at path: ${A}`)}i.appendFileSync(A,`${c.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const A=`ghadelimiter_${a.v4()}`;const r=c.toCommandValue(t);if(e.includes(A)){throw new Error(`Unexpected input: name should not contain the delimiter "${A}"`)}if(r.includes(A)){throw new Error(`Unexpected input: value should not contain the delimiter "${A}"`)}return`${e}<<${A}${o.EOL}${r}${o.EOL}${A}`}t.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,t,A){"use strict";var r=this&&this.__awaiter||function(e,t,A,r){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const n=A(6255);const s=A(5526);const i=A(2186);class OidcClient{static createHttpClient(e=true,t=10){const A={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new s.BearerCredentialHandler(OidcClient.getRequestToken())],A)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return r(this,void 0,void 0,(function*(){const A=OidcClient.createHttpClient();const r=yield A.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const n=(t=r.result)===null||t===void 0?void 0:t.value;if(!n){throw new Error("Response json body do not have ID Token field")}return n}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const A=encodeURIComponent(e);t=`${t}&audience=${A}`}i.debug(`ID token url is ${t}`);const A=yield OidcClient.getCall(t);i.setSecret(A);return A}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=s(A(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},1327:function(e,t,A){"use strict";var r=this&&this.__awaiter||function(e,t,A,r){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const n=A(2037);const s=A(7147);const{access:i,appendFile:o,writeFile:a}=s.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,s.constants.R_OK|s.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,A={}){const r=Object.entries(A).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${r}>`}return`<${e}${r}>${t}`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const A=yield this.filePath();const r=t?a:o;yield r(A,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return r(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(n.EOL)}addCodeBlock(e,t){const A=Object.assign({},t&&{lang:t});const r=this.wrap("pre",this.wrap("code",e),A);return this.addRaw(r).addEOL()}addList(e,t=false){const A=t?"ol":"ul";const r=e.map((e=>this.wrap("li",e))).join("");const n=this.wrap(A,r);return this.addRaw(n).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:A,colspan:r,rowspan:n}=e;const s=t?"th":"td";const i=Object.assign(Object.assign({},r&&{colspan:r}),n&&{rowspan:n});return this.wrap(s,A,i)})).join("");return this.wrap("tr",t)})).join("");const A=this.wrap("table",t);return this.addRaw(A).addEOL()}addDetails(e,t){const A=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(A).addEOL()}addImage(e,t,A){const{width:r,height:n}=A||{};const s=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n});const i=this.wrap("img",null,Object.assign({src:e,alt:t},s));return this.addRaw(i).addEOL()}addHeading(e,t){const A=`h${t}`;const r=["h1","h2","h3","h4","h5","h6"].includes(A)?A:"h1";const n=this.wrap(r,e);return this.addRaw(n).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const A=Object.assign({},t&&{cite:t});const r=this.wrap("blockquote",e,A);return this.addRaw(r).addEOL()}addLink(e,t){const A=this.wrap("a",e,{href:t});return this.addRaw(A).addEOL()}}const c=new Summary;t.markdownSummary=c;t.summary=c},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},5526:function(e,t){"use strict";var A=this&&this.__awaiter||function(e,t,A,r){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,t,A){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,A,r){if(r===undefined)r=A;var n=Object.getOwnPropertyDescriptor(t,A);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,r,n)}:function(e,t,A,r){if(r===undefined)r=A;e[r]=t[A]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))r(t,e,A);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,r){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const o=s(A(3685));const a=s(A(5687));const c=s(A(9835));const l=s(A(4294));const u=A(1773);var g;(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"})(g||(t.HttpCodes=g={}));var h;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(h||(t.Headers=h={}));var d;(function(e){e["ApplicationJson"]="application/json"})(d||(t.MediaTypes=d={}));function getProxyUrl(e){const t=c.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const E=[g.MovedPermanently,g.ResourceMoved,g.SeeOther,g.TemporaryRedirect,g.PermanentRedirect];const f=[g.BadGateway,g.ServiceUnavailable,g.GatewayTimeout];const C=["OPTIONS","GET","DELETE","HEAD"];const B=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,A){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=A;if(A){if(A.ignoreSslError!=null){this._ignoreSslError=A.ignoreSslError}this._socketTimeout=A.socketTimeout;if(A.allowRedirects!=null){this._allowRedirects=A.allowRedirects}if(A.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=A.allowRedirectDowngrade}if(A.maxRedirects!=null){this._maxRedirects=Math.max(A.maxRedirects,0)}if(A.keepAlive!=null){this._keepAlive=A.keepAlive}if(A.allowRetries!=null){this._allowRetries=A.allowRetries}if(A.maxRetries!=null){this._maxRetries=A.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,A||{})}))}patch(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,A||{})}))}put(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,A||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,A,r){return i(this,void 0,void 0,(function*(){return this.request(e,t,A,r)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[h.Accept]=this._getExistingOrDefaultHeader(t,h.Accept,d.ApplicationJson);const A=yield this.get(e,t);return this._processResponse(A,this.requestOptions)}))}postJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,d.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,d.ApplicationJson);const n=yield this.post(e,r,A);return this._processResponse(n,this.requestOptions)}))}putJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,d.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,d.ApplicationJson);const n=yield this.put(e,r,A);return this._processResponse(n,this.requestOptions)}))}patchJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const r=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,d.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,d.ApplicationJson);const n=yield this.patch(e,r,A);return this._processResponse(n,this.requestOptions)}))}request(e,t,A,r){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const n=new URL(t);let s=this._prepareRequest(e,n,r);const i=this._allowRetries&&C.includes(e)?this._maxRetries+1:1;let o=0;let a;do{a=yield this.requestRaw(s,A);if(a&&a.message&&a.message.statusCode===g.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(a)){e=t;break}}if(e){return e.handleAuthentication(this,s,A)}else{return a}}let t=this._maxRedirects;while(a.message.statusCode&&E.includes(a.message.statusCode)&&this._allowRedirects&&t>0){const i=a.message.headers["location"];if(!i){break}const o=new URL(i);if(n.protocol==="https:"&&n.protocol!==o.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield a.readBody();if(o.hostname!==n.hostname){for(const e in r){if(e.toLowerCase()==="authorization"){delete r[e]}}}s=this._prepareRequest(e,o,r);a=yield this.requestRaw(s,A);t--}if(!a.message.statusCode||!f.includes(a.message.statusCode)){return a}o+=1;if(o{function callbackForResult(e,t){if(e){r(e)}else if(!t){r(new Error("Unknown error"))}else{A(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,A){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let r=false;function handleResult(e,t){if(!r){r=true;A(e,t)}}const n=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let s;n.on("socket",(e=>{s=e}));n.setTimeout(this._socketTimeout||3*6e4,(()=>{if(s){s.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));n.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){n.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){n.end()}));t.pipe(n)}else{n.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const A=c.getProxyUrl(t);const r=A&&A.hostname;if(!r){return}return this._getProxyAgentDispatcher(t,A)}_prepareRequest(e,t,A){const r={};r.parsedUrl=t;const n=r.parsedUrl.protocol==="https:";r.httpModule=n?a:o;const s=n?443:80;r.options={};r.options.host=r.parsedUrl.hostname;r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):s;r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||"");r.options.method=e;r.options.headers=this._mergeHeaders(A);if(this.userAgent!=null){r.options.headers["user-agent"]=this.userAgent}r.options.agent=this._getAgent(r.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(r.options)}}return r}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,A){let r;if(this.requestOptions&&this.requestOptions.headers){r=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||r||A}_getAgent(e){let t;const A=c.getProxyUrl(e);const r=A&&A.hostname;if(this._keepAlive&&r){t=this._proxyAgent}if(!r){t=this._agent}if(t){return t}const n=e.protocol==="https:";let s=100;if(this.requestOptions){s=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(A&&A.hostname){const e={maxSockets:s,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(A.username||A.password)&&{proxyAuth:`${A.username}:${A.password}`}),{host:A.hostname,port:A.port})};let r;const i=A.protocol==="https:";if(n){r=i?l.httpsOverHttps:l.httpsOverHttp}else{r=i?l.httpOverHttps:l.httpOverHttp}t=r(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:s};t=n?new a.Agent(e):new o.Agent(e);this._agent=t}if(n&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let A;if(this._keepAlive){A=this._proxyAgentDispatcher}if(A){return A}const r=e.protocol==="https:";A=new u.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`${t.username}:${t.password}`}));this._proxyAgentDispatcher=A;if(r&&this._ignoreSslError){A.options=Object.assign(A.options.requestTls||{},{rejectUnauthorized:false})}return A}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(B,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((A,r)=>i(this,void 0,void 0,(function*(){const n=e.message.statusCode||0;const s={statusCode:n,result:null,headers:{}};if(n===g.NotFound){A(s)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let o;try{o=yield e.readBody();if(o&&o.length>0){if(t&&t.deserializeDates){i=JSON.parse(o,dateTimeDeserializer)}else{i=JSON.parse(o)}s.result=i}s.headers=e.message.headers}catch(e){}if(n>299){let e;if(i&&i.message){e=i.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${n})`}const t=new HttpClientError(e,n);t.result=s.result;r(t)}else{A(s)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,A)=>(t[A.toLowerCase()]=e[A],t)),{})},9835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const A=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(A){try{return new URL(A)}catch(e){if(!A.startsWith("http://")&&!A.startsWith("https://"))return new URL(`http://${A}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const A=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!A){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}const n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(const e of A.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||n.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}},7284:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Attribute=void 0;const r=A(4351);const n=A(3499);class Attribute{constructor(e={}){this.attrType="";this.attrValues=[];Object.assign(this,e)}}t.Attribute=Attribute;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],Attribute.prototype,"attrType",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,repeated:"set"})],Attribute.prototype,"attrValues",void 0)},1061:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CounterSignature=t.SigningTime=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(6959);let o=class SigningTime extends s.Time{};o=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],o);t.SigningTime=o;let a=class CounterSignature extends i.SignerInfo{};a=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Sequence})],a);t.CounterSignature=a},1093:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.CertificateSet=t.CertificateChoices=t.OtherCertificateFormat=void 0;const n=A(4351);const s=A(3499);const i=A(2288);const o=A(4263);class OtherCertificateFormat{constructor(e={}){this.otherCertFormat="";this.otherCert=new ArrayBuffer(0);Object.assign(this,e)}}t.OtherCertificateFormat=OtherCertificateFormat;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],OtherCertificateFormat.prototype,"otherCertFormat",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Any})],OtherCertificateFormat.prototype,"otherCert",void 0);let a=class CertificateChoices{constructor(e={}){Object.assign(this,e)}};t.CertificateChoices=a;n.__decorate([(0,s.AsnProp)({type:i.Certificate})],a.prototype,"certificate",void 0);n.__decorate([(0,s.AsnProp)({type:o.AttributeCertificate,context:2,implicit:true})],a.prototype,"v2AttrCert",void 0);n.__decorate([(0,s.AsnProp)({type:OtherCertificateFormat,context:3,implicit:true})],a.prototype,"other",void 0);t.CertificateChoices=a=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],a);let c=r=class CertificateSet extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.CertificateSet=c;t.CertificateSet=c=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Set,itemType:a})],c)},9207:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContentInfo=void 0;const r=A(4351);const n=A(3499);class ContentInfo{constructor(e={}){this.contentType="";this.content=new ArrayBuffer(0);Object.assign(this,e)}}t.ContentInfo=ContentInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],ContentInfo.prototype,"contentType",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,context:0})],ContentInfo.prototype,"content",void 0)},1377:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EncapsulatedContentInfo=t.EncapsulatedContent=void 0;const r=A(4351);const n=A(3499);let s=class EncapsulatedContent{constructor(e={}){Object.assign(this,e)}};t.EncapsulatedContent=s;r.__decorate([(0,n.AsnProp)({type:n.OctetString})],s.prototype,"single",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any})],s.prototype,"any",void 0);t.EncapsulatedContent=s=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],s);class EncapsulatedContentInfo{constructor(e={}){this.eContentType="";Object.assign(this,e)}}t.EncapsulatedContentInfo=EncapsulatedContentInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],EncapsulatedContentInfo.prototype,"eContentType",void 0);r.__decorate([(0,n.AsnProp)({type:s,context:0,optional:true})],EncapsulatedContentInfo.prototype,"eContent",void 0)},8800:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EncryptedContentInfo=t.EncryptedContent=void 0;const r=A(4351);const n=A(3499);const s=A(7119);let i=class EncryptedContent{constructor(e={}){Object.assign(this,e)}};t.EncryptedContent=i;r.__decorate([(0,n.AsnProp)({type:n.OctetString,context:0,implicit:true,optional:true})],i.prototype,"value",void 0);r.__decorate([(0,n.AsnProp)({type:n.OctetString,converter:n.AsnConstructedOctetStringConverter,context:0,implicit:true,optional:true,repeated:"sequence"})],i.prototype,"constructedValue",void 0);t.EncryptedContent=i=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],i);class EncryptedContentInfo{constructor(e={}){this.contentType="";this.contentEncryptionAlgorithm=new s.ContentEncryptionAlgorithmIdentifier;Object.assign(this,e)}}t.EncryptedContentInfo=EncryptedContentInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],EncryptedContentInfo.prototype,"contentType",void 0);r.__decorate([(0,n.AsnProp)({type:s.ContentEncryptionAlgorithmIdentifier})],EncryptedContentInfo.prototype,"contentEncryptionAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:i,optional:true})],EncryptedContentInfo.prototype,"encryptedContent",void 0)},3333:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.EnvelopedData=t.UnprotectedAttributes=void 0;const n=A(4351);const s=A(3499);const i=A(7119);const o=A(7284);const a=A(4604);const c=A(2834);const l=A(8800);let u=r=class UnprotectedAttributes extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.UnprotectedAttributes=u;t.UnprotectedAttributes=u=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Set,itemType:o.Attribute})],u);class EnvelopedData{constructor(e={}){this.version=i.CMSVersion.v0;this.recipientInfos=new a.RecipientInfos;this.encryptedContentInfo=new l.EncryptedContentInfo;Object.assign(this,e)}}t.EnvelopedData=EnvelopedData;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer})],EnvelopedData.prototype,"version",void 0);n.__decorate([(0,s.AsnProp)({type:c.OriginatorInfo,context:0,implicit:true,optional:true})],EnvelopedData.prototype,"originatorInfo",void 0);n.__decorate([(0,s.AsnProp)({type:a.RecipientInfos})],EnvelopedData.prototype,"recipientInfos",void 0);n.__decorate([(0,s.AsnProp)({type:l.EncryptedContentInfo})],EnvelopedData.prototype,"encryptedContentInfo",void 0);n.__decorate([(0,s.AsnProp)({type:u,context:1,implicit:true,optional:true})],EnvelopedData.prototype,"unprotectedAttrs",void 0)},9493:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(1061),t);r.__exportStar(A(7284),t);r.__exportStar(A(1093),t);r.__exportStar(A(9207),t);r.__exportStar(A(1377),t);r.__exportStar(A(8800),t);r.__exportStar(A(3333),t);r.__exportStar(A(995),t);r.__exportStar(A(9614),t);r.__exportStar(A(8479),t);r.__exportStar(A(1666),t);r.__exportStar(A(3027),t);r.__exportStar(A(2834),t);r.__exportStar(A(3059),t);r.__exportStar(A(8084),t);r.__exportStar(A(4604),t);r.__exportStar(A(7678),t);r.__exportStar(A(8895),t);r.__exportStar(A(1200),t);r.__exportStar(A(6959),t);r.__exportStar(A(7119),t)},995:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IssuerAndSerialNumber=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class IssuerAndSerialNumber{constructor(e={}){this.issuer=new s.Name;this.serialNumber=new ArrayBuffer(0);Object.assign(this,e)}}t.IssuerAndSerialNumber=IssuerAndSerialNumber;r.__decorate([(0,n.AsnProp)({type:s.Name})],IssuerAndSerialNumber.prototype,"issuer",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],IssuerAndSerialNumber.prototype,"serialNumber",void 0)},9614:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KEKRecipientInfo=t.KEKIdentifier=void 0;const r=A(4351);const n=A(3499);const s=A(5070);const i=A(7119);class KEKIdentifier{constructor(e={}){this.keyIdentifier=new n.OctetString;Object.assign(this,e)}}t.KEKIdentifier=KEKIdentifier;r.__decorate([(0,n.AsnProp)({type:n.OctetString})],KEKIdentifier.prototype,"keyIdentifier",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime,optional:true})],KEKIdentifier.prototype,"date",void 0);r.__decorate([(0,n.AsnProp)({type:s.OtherKeyAttribute,optional:true})],KEKIdentifier.prototype,"other",void 0);class KEKRecipientInfo{constructor(e={}){this.version=i.CMSVersion.v4;this.kekid=new KEKIdentifier;this.keyEncryptionAlgorithm=new i.KeyEncryptionAlgorithmIdentifier;this.encryptedKey=new n.OctetString;Object.assign(this,e)}}t.KEKRecipientInfo=KEKRecipientInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],KEKRecipientInfo.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:KEKIdentifier})],KEKRecipientInfo.prototype,"kekid",void 0);r.__decorate([(0,n.AsnProp)({type:i.KeyEncryptionAlgorithmIdentifier})],KEKRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.OctetString})],KEKRecipientInfo.prototype,"encryptedKey",void 0)},8479:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.KeyAgreeRecipientInfo=t.OriginatorIdentifierOrKey=t.OriginatorPublicKey=t.RecipientEncryptedKeys=t.RecipientEncryptedKey=t.KeyAgreeRecipientIdentifier=t.RecipientKeyIdentifier=void 0;const n=A(4351);const s=A(3499);const i=A(7119);const o=A(995);const a=A(2288);const c=A(5070);class RecipientKeyIdentifier{constructor(e={}){this.subjectKeyIdentifier=new a.SubjectKeyIdentifier;Object.assign(this,e)}}t.RecipientKeyIdentifier=RecipientKeyIdentifier;n.__decorate([(0,s.AsnProp)({type:a.SubjectKeyIdentifier})],RecipientKeyIdentifier.prototype,"subjectKeyIdentifier",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.GeneralizedTime,optional:true})],RecipientKeyIdentifier.prototype,"date",void 0);n.__decorate([(0,s.AsnProp)({type:c.OtherKeyAttribute,optional:true})],RecipientKeyIdentifier.prototype,"other",void 0);let l=class KeyAgreeRecipientIdentifier{constructor(e={}){Object.assign(this,e)}};t.KeyAgreeRecipientIdentifier=l;n.__decorate([(0,s.AsnProp)({type:RecipientKeyIdentifier,context:0,implicit:true,optional:true})],l.prototype,"rKeyId",void 0);n.__decorate([(0,s.AsnProp)({type:o.IssuerAndSerialNumber,optional:true})],l.prototype,"issuerAndSerialNumber",void 0);t.KeyAgreeRecipientIdentifier=l=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],l);class RecipientEncryptedKey{constructor(e={}){this.rid=new l;this.encryptedKey=new s.OctetString;Object.assign(this,e)}}t.RecipientEncryptedKey=RecipientEncryptedKey;n.__decorate([(0,s.AsnProp)({type:l})],RecipientEncryptedKey.prototype,"rid",void 0);n.__decorate([(0,s.AsnProp)({type:s.OctetString})],RecipientEncryptedKey.prototype,"encryptedKey",void 0);let u=r=class RecipientEncryptedKeys extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.RecipientEncryptedKeys=u;t.RecipientEncryptedKeys=u=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:RecipientEncryptedKey})],u);class OriginatorPublicKey{constructor(e={}){this.algorithm=new a.AlgorithmIdentifier;this.publicKey=new ArrayBuffer(0);Object.assign(this,e)}}t.OriginatorPublicKey=OriginatorPublicKey;n.__decorate([(0,s.AsnProp)({type:a.AlgorithmIdentifier})],OriginatorPublicKey.prototype,"algorithm",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.BitString})],OriginatorPublicKey.prototype,"publicKey",void 0);let g=class OriginatorIdentifierOrKey{constructor(e={}){Object.assign(this,e)}};t.OriginatorIdentifierOrKey=g;n.__decorate([(0,s.AsnProp)({type:a.SubjectKeyIdentifier,context:0,implicit:true,optional:true})],g.prototype,"subjectKeyIdentifier",void 0);n.__decorate([(0,s.AsnProp)({type:OriginatorPublicKey,context:1,implicit:true,optional:true})],g.prototype,"originatorKey",void 0);n.__decorate([(0,s.AsnProp)({type:o.IssuerAndSerialNumber,optional:true})],g.prototype,"issuerAndSerialNumber",void 0);t.OriginatorIdentifierOrKey=g=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],g);class KeyAgreeRecipientInfo{constructor(e={}){this.version=i.CMSVersion.v3;this.originator=new g;this.keyEncryptionAlgorithm=new i.KeyEncryptionAlgorithmIdentifier;this.recipientEncryptedKeys=new u;Object.assign(this,e)}}t.KeyAgreeRecipientInfo=KeyAgreeRecipientInfo;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer})],KeyAgreeRecipientInfo.prototype,"version",void 0);n.__decorate([(0,s.AsnProp)({type:g,context:0})],KeyAgreeRecipientInfo.prototype,"originator",void 0);n.__decorate([(0,s.AsnProp)({type:s.OctetString,context:1,optional:true})],KeyAgreeRecipientInfo.prototype,"ukm",void 0);n.__decorate([(0,s.AsnProp)({type:i.KeyEncryptionAlgorithmIdentifier})],KeyAgreeRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);n.__decorate([(0,s.AsnProp)({type:u})],KeyAgreeRecipientInfo.prototype,"recipientEncryptedKeys",void 0)},1666:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KeyTransRecipientInfo=t.RecipientIdentifier=void 0;const r=A(4351);const n=A(3499);const s=A(7119);const i=A(995);const o=A(2288);let a=class RecipientIdentifier{constructor(e={}){Object.assign(this,e)}};t.RecipientIdentifier=a;r.__decorate([(0,n.AsnProp)({type:o.SubjectKeyIdentifier,context:0,implicit:true})],a.prototype,"subjectKeyIdentifier",void 0);r.__decorate([(0,n.AsnProp)({type:i.IssuerAndSerialNumber})],a.prototype,"issuerAndSerialNumber",void 0);t.RecipientIdentifier=a=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],a);class KeyTransRecipientInfo{constructor(e={}){this.version=s.CMSVersion.v0;this.rid=new a;this.keyEncryptionAlgorithm=new s.KeyEncryptionAlgorithmIdentifier;this.encryptedKey=new n.OctetString;Object.assign(this,e)}}t.KeyTransRecipientInfo=KeyTransRecipientInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],KeyTransRecipientInfo.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:a})],KeyTransRecipientInfo.prototype,"rid",void 0);r.__decorate([(0,n.AsnProp)({type:s.KeyEncryptionAlgorithmIdentifier})],KeyTransRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.OctetString})],KeyTransRecipientInfo.prototype,"encryptedKey",void 0)},3027:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_authData=t.id_encryptedData=t.id_digestedData=t.id_envelopedData=t.id_signedData=t.id_data=t.id_ct_contentInfo=void 0;t.id_ct_contentInfo="1.2.840.113549.1.9.16.1.6";t.id_data="1.2.840.113549.1.7.1";t.id_signedData="1.2.840.113549.1.7.2";t.id_envelopedData="1.2.840.113549.1.7.3";t.id_digestedData="1.2.840.113549.1.7.5";t.id_encryptedData="1.2.840.113549.1.7.6";t.id_authData="1.2.840.113549.1.9.16.1.2"},2834:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OriginatorInfo=void 0;const r=A(4351);const n=A(3499);const s=A(1093);const i=A(7678);class OriginatorInfo{constructor(e={}){Object.assign(this,e)}}t.OriginatorInfo=OriginatorInfo;r.__decorate([(0,n.AsnProp)({type:s.CertificateSet,context:0,implicit:true,optional:true})],OriginatorInfo.prototype,"certs",void 0);r.__decorate([(0,n.AsnProp)({type:i.RevocationInfoChoices,context:1,implicit:true,optional:true})],OriginatorInfo.prototype,"crls",void 0)},5070:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OtherKeyAttribute=void 0;const r=A(4351);const n=A(3499);class OtherKeyAttribute{constructor(e={}){this.keyAttrId="";Object.assign(this,e)}}t.OtherKeyAttribute=OtherKeyAttribute;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],OtherKeyAttribute.prototype,"keyAttrId",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,optional:true})],OtherKeyAttribute.prototype,"keyAttr",void 0)},3059:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PasswordRecipientInfo=void 0;const r=A(4351);const n=A(3499);const s=A(7119);class PasswordRecipientInfo{constructor(e={}){this.version=s.CMSVersion.v0;this.keyEncryptionAlgorithm=new s.KeyEncryptionAlgorithmIdentifier;this.encryptedKey=new n.OctetString;Object.assign(this,e)}}t.PasswordRecipientInfo=PasswordRecipientInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],PasswordRecipientInfo.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:s.KeyDerivationAlgorithmIdentifier,context:0,optional:true})],PasswordRecipientInfo.prototype,"keyDerivationAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:s.KeyEncryptionAlgorithmIdentifier})],PasswordRecipientInfo.prototype,"keyEncryptionAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.OctetString})],PasswordRecipientInfo.prototype,"encryptedKey",void 0)},8084:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RecipientInfo=t.OtherRecipientInfo=void 0;const r=A(4351);const n=A(3499);const s=A(8479);const i=A(1666);const o=A(9614);const a=A(3059);class OtherRecipientInfo{constructor(e={}){this.oriType="";this.oriValue=new ArrayBuffer(0);Object.assign(this,e)}}t.OtherRecipientInfo=OtherRecipientInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],OtherRecipientInfo.prototype,"oriType",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any})],OtherRecipientInfo.prototype,"oriValue",void 0);let c=class RecipientInfo{constructor(e={}){Object.assign(this,e)}};t.RecipientInfo=c;r.__decorate([(0,n.AsnProp)({type:i.KeyTransRecipientInfo,optional:true})],c.prototype,"ktri",void 0);r.__decorate([(0,n.AsnProp)({type:s.KeyAgreeRecipientInfo,context:1,implicit:true,optional:true})],c.prototype,"kari",void 0);r.__decorate([(0,n.AsnProp)({type:o.KEKRecipientInfo,context:2,implicit:true,optional:true})],c.prototype,"kekri",void 0);r.__decorate([(0,n.AsnProp)({type:a.PasswordRecipientInfo,context:3,implicit:true,optional:true})],c.prototype,"pwri",void 0);r.__decorate([(0,n.AsnProp)({type:OtherRecipientInfo,context:4,implicit:true,optional:true})],c.prototype,"ori",void 0);t.RecipientInfo=c=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],c)},4604:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.RecipientInfos=void 0;const n=A(4351);const s=A(3499);const i=A(8084);let o=r=class RecipientInfos extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.RecipientInfos=o;t.RecipientInfos=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Set,itemType:i.RecipientInfo})],o)},7678:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.RevocationInfoChoices=t.RevocationInfoChoice=t.OtherRevocationInfoFormat=t.id_ri_scvp=t.id_ri_ocsp_response=t.id_ri=void 0;const n=A(4351);const s=A(3499);const i=A(2288);t.id_ri=`${i.id_pkix}.16`;t.id_ri_ocsp_response=`${t.id_ri}.2`;t.id_ri_scvp=`${t.id_ri}.4`;class OtherRevocationInfoFormat{constructor(e={}){this.otherRevInfoFormat="";this.otherRevInfo=new ArrayBuffer(0);Object.assign(this,e)}}t.OtherRevocationInfoFormat=OtherRevocationInfoFormat;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],OtherRevocationInfoFormat.prototype,"otherRevInfoFormat",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Any})],OtherRevocationInfoFormat.prototype,"otherRevInfo",void 0);let o=class RevocationInfoChoice{constructor(e={}){this.other=new OtherRevocationInfoFormat;Object.assign(this,e)}};t.RevocationInfoChoice=o;n.__decorate([(0,s.AsnProp)({type:OtherRevocationInfoFormat,context:1,implicit:true})],o.prototype,"other",void 0);t.RevocationInfoChoice=o=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],o);let a=r=class RevocationInfoChoices extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.RevocationInfoChoices=a;t.RevocationInfoChoices=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Set,itemType:o})],a)},8895:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.SignedData=t.DigestAlgorithmIdentifiers=void 0;const n=A(4351);const s=A(3499);const i=A(1093);const o=A(7119);const a=A(1377);const c=A(7678);const l=A(6959);let u=r=class DigestAlgorithmIdentifiers extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.DigestAlgorithmIdentifiers=u;t.DigestAlgorithmIdentifiers=u=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Set,itemType:o.DigestAlgorithmIdentifier})],u);class SignedData{constructor(e={}){this.version=o.CMSVersion.v0;this.digestAlgorithms=new u;this.encapContentInfo=new a.EncapsulatedContentInfo;this.signerInfos=new l.SignerInfos;Object.assign(this,e)}}t.SignedData=SignedData;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer})],SignedData.prototype,"version",void 0);n.__decorate([(0,s.AsnProp)({type:u})],SignedData.prototype,"digestAlgorithms",void 0);n.__decorate([(0,s.AsnProp)({type:a.EncapsulatedContentInfo})],SignedData.prototype,"encapContentInfo",void 0);n.__decorate([(0,s.AsnProp)({type:i.CertificateSet,context:0,implicit:true,optional:true})],SignedData.prototype,"certificates",void 0);n.__decorate([(0,s.AsnProp)({type:c.RevocationInfoChoice,context:1,implicit:true,optional:true})],SignedData.prototype,"crls",void 0);n.__decorate([(0,s.AsnProp)({type:l.SignerInfos})],SignedData.prototype,"signerInfos",void 0)},1200:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SignerIdentifier=void 0;const r=A(4351);const n=A(3499);const s=A(995);const i=A(2288);let o=class SignerIdentifier{constructor(e={}){Object.assign(this,e)}};t.SignerIdentifier=o;r.__decorate([(0,n.AsnProp)({type:i.SubjectKeyIdentifier,context:0,implicit:true})],o.prototype,"subjectKeyIdentifier",void 0);r.__decorate([(0,n.AsnProp)({type:s.IssuerAndSerialNumber})],o.prototype,"issuerAndSerialNumber",void 0);t.SignerIdentifier=o=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],o)},6959:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.SignerInfos=t.SignerInfo=void 0;const n=A(4351);const s=A(3499);const i=A(1200);const o=A(7119);const a=A(7284);class SignerInfo{constructor(e={}){this.version=o.CMSVersion.v0;this.sid=new i.SignerIdentifier;this.digestAlgorithm=new o.DigestAlgorithmIdentifier;this.signatureAlgorithm=new o.SignatureAlgorithmIdentifier;this.signature=new s.OctetString;Object.assign(this,e)}}t.SignerInfo=SignerInfo;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer})],SignerInfo.prototype,"version",void 0);n.__decorate([(0,s.AsnProp)({type:i.SignerIdentifier})],SignerInfo.prototype,"sid",void 0);n.__decorate([(0,s.AsnProp)({type:o.DigestAlgorithmIdentifier})],SignerInfo.prototype,"digestAlgorithm",void 0);n.__decorate([(0,s.AsnProp)({type:a.Attribute,repeated:"set",context:0,implicit:true,optional:true})],SignerInfo.prototype,"signedAttrs",void 0);n.__decorate([(0,s.AsnProp)({type:o.SignatureAlgorithmIdentifier})],SignerInfo.prototype,"signatureAlgorithm",void 0);n.__decorate([(0,s.AsnProp)({type:s.OctetString})],SignerInfo.prototype,"signature",void 0);n.__decorate([(0,s.AsnProp)({type:a.Attribute,repeated:"set",context:1,implicit:true,optional:true})],SignerInfo.prototype,"unsignedAttrs",void 0);let c=r=class SignerInfos extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.SignerInfos=c;t.SignerInfos=c=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Set,itemType:SignerInfo})],c)},7119:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KeyDerivationAlgorithmIdentifier=t.MessageAuthenticationCodeAlgorithm=t.ContentEncryptionAlgorithmIdentifier=t.KeyEncryptionAlgorithmIdentifier=t.SignatureAlgorithmIdentifier=t.DigestAlgorithmIdentifier=t.CMSVersion=void 0;const r=A(4351);const n=A(2288);const s=A(3499);var i;(function(e){e[e["v0"]=0]="v0";e[e["v1"]=1]="v1";e[e["v2"]=2]="v2";e[e["v3"]=3]="v3";e[e["v4"]=4]="v4";e[e["v5"]=5]="v5"})(i||(t.CMSVersion=i={}));let o=class DigestAlgorithmIdentifier extends n.AlgorithmIdentifier{};t.DigestAlgorithmIdentifier=o;t.DigestAlgorithmIdentifier=o=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],o);let a=class SignatureAlgorithmIdentifier extends n.AlgorithmIdentifier{};t.SignatureAlgorithmIdentifier=a;t.SignatureAlgorithmIdentifier=a=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],a);let c=class KeyEncryptionAlgorithmIdentifier extends n.AlgorithmIdentifier{};t.KeyEncryptionAlgorithmIdentifier=c;t.KeyEncryptionAlgorithmIdentifier=c=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],c);let l=class ContentEncryptionAlgorithmIdentifier extends n.AlgorithmIdentifier{};t.ContentEncryptionAlgorithmIdentifier=l;t.ContentEncryptionAlgorithmIdentifier=l=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],l);let u=class MessageAuthenticationCodeAlgorithm extends n.AlgorithmIdentifier{};t.MessageAuthenticationCodeAlgorithm=u;t.MessageAuthenticationCodeAlgorithm=u=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],u);let g=class KeyDerivationAlgorithmIdentifier extends n.AlgorithmIdentifier{};t.KeyDerivationAlgorithmIdentifier=g;t.KeyDerivationAlgorithmIdentifier=g=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],g)},3674:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.Attributes=void 0;const n=A(4351);const s=A(3499);const i=A(2288);let o=r=class Attributes extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.Attributes=o;t.Attributes=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:i.Attribute})],o)},5135:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CertificationRequest=void 0;const r=A(4351);const n=A(3499);const s=A(1301);const i=A(2288);class CertificationRequest{constructor(e={}){this.certificationRequestInfo=new s.CertificationRequestInfo;this.signatureAlgorithm=new i.AlgorithmIdentifier;this.signature=new ArrayBuffer(0);Object.assign(this,e)}}t.CertificationRequest=CertificationRequest;r.__decorate([(0,n.AsnProp)({type:s.CertificationRequestInfo})],CertificationRequest.prototype,"certificationRequestInfo",void 0);r.__decorate([(0,n.AsnProp)({type:i.AlgorithmIdentifier})],CertificationRequest.prototype,"signatureAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString})],CertificationRequest.prototype,"signature",void 0)},1301:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CertificationRequestInfo=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(3674);class CertificationRequestInfo{constructor(e={}){this.version=0;this.subject=new s.Name;this.subjectPKInfo=new s.SubjectPublicKeyInfo;this.attributes=new i.Attributes;Object.assign(this,e)}}t.CertificationRequestInfo=CertificationRequestInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],CertificationRequestInfo.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:s.Name})],CertificationRequestInfo.prototype,"subject",void 0);r.__decorate([(0,n.AsnProp)({type:s.SubjectPublicKeyInfo})],CertificationRequestInfo.prototype,"subjectPKInfo",void 0);r.__decorate([(0,n.AsnProp)({type:i.Attributes,implicit:true,context:0})],CertificationRequestInfo.prototype,"attributes",void 0)},6717:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(3674),t);r.__exportStar(A(5135),t);r.__exportStar(A(1301),t)},4716:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ecdsaWithSHA512=t.ecdsaWithSHA384=t.ecdsaWithSHA256=t.ecdsaWithSHA224=t.ecdsaWithSHA1=void 0;const r=A(2288);const n=A(3193);function create(e){return new r.AlgorithmIdentifier({algorithm:e})}t.ecdsaWithSHA1=create(n.id_ecdsaWithSHA1);t.ecdsaWithSHA224=create(n.id_ecdsaWithSHA224);t.ecdsaWithSHA256=create(n.id_ecdsaWithSHA256);t.ecdsaWithSHA384=create(n.id_ecdsaWithSHA384);t.ecdsaWithSHA512=create(n.id_ecdsaWithSHA512)},5823:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECParameters=void 0;const r=A(4351);const n=A(3499);let s=class ECParameters{constructor(e={}){Object.assign(this,e)}};t.ECParameters=s;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],s.prototype,"namedCurve",void 0);t.ECParameters=s=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],s)},8673:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECPrivateKey=void 0;const r=A(4351);const n=A(3499);const s=A(5823);class ECPrivateKey{constructor(e={}){this.version=1;this.privateKey=new n.OctetString;Object.assign(this,e)}}t.ECPrivateKey=ECPrivateKey;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],ECPrivateKey.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:n.OctetString})],ECPrivateKey.prototype,"privateKey",void 0);r.__decorate([(0,n.AsnProp)({type:s.ECParameters,context:0,optional:true})],ECPrivateKey.prototype,"parameters",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString,context:1,optional:true})],ECPrivateKey.prototype,"publicKey",void 0)},2138:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECDSASigValue=void 0;const r=A(4351);const n=A(3499);class ECDSASigValue{constructor(e={}){this.r=new ArrayBuffer(0);this.s=new ArrayBuffer(0);Object.assign(this,e)}}t.ECDSASigValue=ECDSASigValue;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],ECDSASigValue.prototype,"r",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],ECDSASigValue.prototype,"s",void 0)},8277:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(4716),t);r.__exportStar(A(5823),t);r.__exportStar(A(8673),t);r.__exportStar(A(2138),t);r.__exportStar(A(3193),t)},3193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_sect571r1=t.id_sect571k1=t.id_secp521r1=t.id_sect409r1=t.id_sect409k1=t.id_secp384r1=t.id_sect283r1=t.id_sect283k1=t.id_secp256r1=t.id_sect233r1=t.id_sect233k1=t.id_secp224r1=t.id_sect163r2=t.id_sect163k1=t.id_secp192r1=t.id_ecdsaWithSHA512=t.id_ecdsaWithSHA384=t.id_ecdsaWithSHA256=t.id_ecdsaWithSHA224=t.id_ecdsaWithSHA1=t.id_ecMQV=t.id_ecDH=t.id_ecPublicKey=void 0;t.id_ecPublicKey="1.2.840.10045.2.1";t.id_ecDH="1.3.132.1.12";t.id_ecMQV="1.3.132.1.13";t.id_ecdsaWithSHA1="1.2.840.10045.4.1";t.id_ecdsaWithSHA224="1.2.840.10045.4.3.1";t.id_ecdsaWithSHA256="1.2.840.10045.4.3.2";t.id_ecdsaWithSHA384="1.2.840.10045.4.3.3";t.id_ecdsaWithSHA512="1.2.840.10045.4.3.4";t.id_secp192r1="1.2.840.10045.3.1.1";t.id_sect163k1="1.3.132.0.1";t.id_sect163r2="1.3.132.0.15";t.id_secp224r1="1.3.132.0.33";t.id_sect233k1="1.3.132.0.26";t.id_sect233r1="1.3.132.0.27";t.id_secp256r1="1.2.840.10045.3.1.7";t.id_sect283k1="1.3.132.0.16";t.id_sect283r1="1.3.132.0.17";t.id_secp384r1="1.3.132.0.34";t.id_sect409k1="1.3.132.0.36";t.id_sect409r1="1.3.132.0.37";t.id_secp521r1="1.3.132.0.35";t.id_sect571k1="1.3.132.0.38";t.id_sect571r1="1.3.132.0.39"},1757:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.PKCS12AttrSet=t.PKCS12Attribute=void 0;const n=A(4351);const s=A(3499);class PKCS12Attribute{constructor(e={}){this.attrId="";this.attrValues=[];Object.assign(e)}}t.PKCS12Attribute=PKCS12Attribute;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],PKCS12Attribute.prototype,"attrId",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Any,repeated:"set"})],PKCS12Attribute.prototype,"attrValues",void 0);let i=r=class PKCS12AttrSet extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.PKCS12AttrSet=i;t.PKCS12AttrSet=i=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:PKCS12Attribute})],i)},6751:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.AuthenticatedSafe=void 0;const n=A(4351);const s=A(3499);const i=A(9493);let o=r=class AuthenticatedSafe extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.AuthenticatedSafe=o;t.AuthenticatedSafe=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:i.ContentInfo})],o)},7536:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_sdsiCertificate=t.id_x509Certificate=t.id_certTypes=t.CertBag=void 0;const r=A(4351);const n=A(3499);const s=A(9410);class CertBag{constructor(e={}){this.certId="";this.certValue=new ArrayBuffer(0);Object.assign(this,e)}}t.CertBag=CertBag;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],CertBag.prototype,"certId",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,context:0})],CertBag.prototype,"certValue",void 0);t.id_certTypes=`${s.id_pkcs_9}.22`;t.id_x509Certificate=`${t.id_certTypes}.1`;t.id_sdsiCertificate=`${t.id_certTypes}.2`},2039:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_x509CRL=t.id_crlTypes=t.CRLBag=void 0;const r=A(4351);const n=A(3499);const s=A(9410);class CRLBag{constructor(e={}){this.crlId="";this.crltValue=new ArrayBuffer(0);Object.assign(this,e)}}t.CRLBag=CRLBag;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],CRLBag.prototype,"crlId",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,context:0})],CRLBag.prototype,"crltValue",void 0);t.id_crlTypes=`${s.id_pkcs_9}.23`;t.id_x509CRL=`${t.id_crlTypes}.1`},7069:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(7536),t);r.__exportStar(A(2039),t);r.__exportStar(A(1684),t);r.__exportStar(A(1627),t);r.__exportStar(A(3057),t);r.__exportStar(A(9410),t)},1684:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KeyBag=void 0;const r=A(4351);const n=A(1714);const s=A(3499);let i=class KeyBag extends n.PrivateKeyInfo{};t.KeyBag=i;t.KeyBag=i=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],i)},1627:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PKCS8ShroudedKeyBag=void 0;const r=A(4351);const n=A(1714);const s=A(3499);let i=class PKCS8ShroudedKeyBag extends n.EncryptedPrivateKeyInfo{};t.PKCS8ShroudedKeyBag=i;t.PKCS8ShroudedKeyBag=i=r.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],i)},3057:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SecretBag=void 0;const r=A(4351);const n=A(3499);class SecretBag{constructor(e={}){this.secretTypeId="";this.secretValue=new ArrayBuffer(0);Object.assign(this,e)}}t.SecretBag=SecretBag;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],SecretBag.prototype,"secretTypeId",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,context:0})],SecretBag.prototype,"secretValue",void 0)},9410:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_pkcs_9=t.id_SafeContents=t.id_SecretBag=t.id_CRLBag=t.id_certBag=t.id_pkcs8ShroudedKeyBag=t.id_keyBag=void 0;const r=A(5825);t.id_keyBag=`${r.id_bagtypes}.1`;t.id_pkcs8ShroudedKeyBag=`${r.id_bagtypes}.2`;t.id_certBag=`${r.id_bagtypes}.3`;t.id_CRLBag=`${r.id_bagtypes}.4`;t.id_SecretBag=`${r.id_bagtypes}.5`;t.id_SafeContents=`${r.id_bagtypes}.6`;t.id_pkcs_9="1.2.840.113549.1.9"},4078:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(1757),t);r.__exportStar(A(6751),t);r.__exportStar(A(7069),t);r.__exportStar(A(1180),t);r.__exportStar(A(5825),t);r.__exportStar(A(2153),t);r.__exportStar(A(5901),t)},1180:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MacData=void 0;const r=A(4351);const n=A(5574);const s=A(3499);class MacData{constructor(e={}){this.mac=new n.DigestInfo;this.macSalt=new s.OctetString;this.iterations=1;Object.assign(this,e)}}t.MacData=MacData;r.__decorate([(0,s.AsnProp)({type:n.DigestInfo})],MacData.prototype,"mac",void 0);r.__decorate([(0,s.AsnProp)({type:s.OctetString})],MacData.prototype,"macSalt",void 0);r.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,defaultValue:1})],MacData.prototype,"iterations",void 0)},5825:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_bagtypes=t.id_pbewithSHAAnd40BitRC2_CBC=t.id_pbeWithSHAAnd128BitRC2_CBC=t.id_pbeWithSHAAnd2_KeyTripleDES_CBC=t.id_pbeWithSHAAnd3_KeyTripleDES_CBC=t.id_pbeWithSHAAnd40BitRC4=t.id_pbeWithSHAAnd128BitRC4=t.id_pkcs_12PbeIds=t.id_pkcs_12=t.id_pkcs=t.id_rsadsi=void 0;t.id_rsadsi="1.2.840.113549";t.id_pkcs=`${t.id_rsadsi}.1`;t.id_pkcs_12=`${t.id_pkcs}.12`;t.id_pkcs_12PbeIds=`${t.id_pkcs_12}.1`;t.id_pbeWithSHAAnd128BitRC4=`${t.id_pkcs_12PbeIds}.1`;t.id_pbeWithSHAAnd40BitRC4=`${t.id_pkcs_12PbeIds}.2`;t.id_pbeWithSHAAnd3_KeyTripleDES_CBC=`${t.id_pkcs_12PbeIds}.3`;t.id_pbeWithSHAAnd2_KeyTripleDES_CBC=`${t.id_pkcs_12PbeIds}.4`;t.id_pbeWithSHAAnd128BitRC2_CBC=`${t.id_pkcs_12PbeIds}.5`;t.id_pbewithSHAAnd40BitRC2_CBC=`${t.id_pkcs_12PbeIds}.6`;t.id_bagtypes=`${t.id_pkcs_12}.10.1`},2153:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PFX=void 0;const r=A(4351);const n=A(3499);const s=A(9493);const i=A(1180);class PFX{constructor(e={}){this.version=3;this.authSafe=new s.ContentInfo;this.macData=new i.MacData;Object.assign(this,e)}}t.PFX=PFX;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],PFX.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:s.ContentInfo})],PFX.prototype,"authSafe",void 0);r.__decorate([(0,n.AsnProp)({type:i.MacData,optional:true})],PFX.prototype,"macData",void 0)},5901:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.SafeContents=t.SafeBag=void 0;const n=A(4351);const s=A(3499);const i=A(1757);class SafeBag{constructor(e={}){this.bagId="";this.bagValue=new ArrayBuffer(0);Object.assign(this,e)}}t.SafeBag=SafeBag;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],SafeBag.prototype,"bagId",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Any,context:0})],SafeBag.prototype,"bagValue",void 0);n.__decorate([(0,s.AsnProp)({type:i.PKCS12Attribute,repeated:"set",optional:true})],SafeBag.prototype,"bagAttributes",void 0);let o=r=class SafeContents extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.SafeContents=o;t.SafeContents=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:SafeBag})],o)},768:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EncryptedPrivateKeyInfo=t.EncryptedData=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class EncryptedData extends n.OctetString{}t.EncryptedData=EncryptedData;class EncryptedPrivateKeyInfo{constructor(e={}){this.encryptionAlgorithm=new s.AlgorithmIdentifier;this.encryptedData=new EncryptedData;Object.assign(this,e)}}t.EncryptedPrivateKeyInfo=EncryptedPrivateKeyInfo;r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],EncryptedPrivateKeyInfo.prototype,"encryptionAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:EncryptedData})],EncryptedPrivateKeyInfo.prototype,"encryptedData",void 0)},1714:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(768),t);r.__exportStar(A(5442),t)},5442:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.PrivateKeyInfo=t.Attributes=t.PrivateKey=t.Version=void 0;const n=A(4351);const s=A(3499);const i=A(2288);var o;(function(e){e[e["v1"]=0]="v1"})(o||(t.Version=o={}));class PrivateKey extends s.OctetString{}t.PrivateKey=PrivateKey;let a=r=class Attributes extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.Attributes=a;t.Attributes=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:i.Attribute})],a);class PrivateKeyInfo{constructor(e={}){this.version=o.v1;this.privateKeyAlgorithm=new i.AlgorithmIdentifier;this.privateKey=new PrivateKey;Object.assign(this,e)}}t.PrivateKeyInfo=PrivateKeyInfo;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer})],PrivateKeyInfo.prototype,"version",void 0);n.__decorate([(0,s.AsnProp)({type:i.AlgorithmIdentifier})],PrivateKeyInfo.prototype,"privateKeyAlgorithm",void 0);n.__decorate([(0,s.AsnProp)({type:PrivateKey})],PrivateKeyInfo.prototype,"privateKey",void 0);n.__decorate([(0,s.AsnProp)({type:a,implicit:true,context:0,optional:true})],PrivateKeyInfo.prototype,"attributes",void 0)},5938:(e,t,A)=>{"use strict";var r,n,s;Object.defineProperty(t,"__esModule",{value:true});t.DateOfBirth=t.UnstructuredAddress=t.UnstructuredName=t.EmailAddress=t.EncryptedPrivateKeyInfo=t.UserPKCS12=t.Pkcs7PDU=t.PKCS9String=t.id_at_pseudonym=t.crlTypes=t.id_certTypes=t.id_smime=t.id_pkcs9_mr_signingTimeMatch=t.id_pkcs9_mr_caseIgnoreMatch=t.id_pkcs9_sx_signingTime=t.id_pkcs9_sx_pkcs9String=t.id_pkcs9_at_countryOfResidence=t.id_pkcs9_at_countryOfCitizenship=t.id_pkcs9_at_gender=t.id_pkcs9_at_placeOfBirth=t.id_pkcs9_at_dateOfBirth=t.id_ietf_at=t.id_pkcs9_at_pkcs7PDU=t.id_pkcs9_at_sequenceNumber=t.id_pkcs9_at_randomNonce=t.id_pkcs9_at_encryptedPrivateKeyInfo=t.id_pkcs9_at_pkcs15Token=t.id_pkcs9_at_userPKCS12=t.id_pkcs9_at_localKeyId=t.id_pkcs9_at_friendlyName=t.id_pkcs9_at_smimeCapabilities=t.id_pkcs9_at_extensionRequest=t.id_pkcs9_at_signingDescription=t.id_pkcs9_at_extendedCertificateAttributes=t.id_pkcs9_at_unstructuredAddress=t.id_pkcs9_at_challengePassword=t.id_pkcs9_at_counterSignature=t.id_pkcs9_at_signingTime=t.id_pkcs9_at_messageDigest=t.id_pkcs9_at_contentType=t.id_pkcs9_at_unstructuredName=t.id_pkcs9_at_emailAddress=t.id_pkcs9_oc_naturalPerson=t.id_pkcs9_oc_pkcsEntity=t.id_pkcs9_mr=t.id_pkcs9_sx=t.id_pkcs9_at=t.id_pkcs9_oc=t.id_pkcs9_mo=t.id_pkcs9=void 0;t.SMIMECapabilities=t.SMIMECapability=t.SigningDescription=t.LocalKeyId=t.FriendlyName=t.ExtendedCertificateAttributes=t.ExtensionRequest=t.ChallengePassword=t.CounterSignature=t.SequenceNumber=t.RandomNonce=t.SigningTime=t.MessageDigest=t.ContentType=t.Pseudonym=t.CountryOfResidence=t.CountryOfCitizenship=t.Gender=t.PlaceOfBirth=void 0;const i=A(4351);const o=A(3499);const a=A(9493);const c=A(4078);const l=A(1714);const u=A(2288);const g=A(4263);t.id_pkcs9="1.2.840.113549.1.9";t.id_pkcs9_mo=`${t.id_pkcs9}.0`;t.id_pkcs9_oc=`${t.id_pkcs9}.24`;t.id_pkcs9_at=`${t.id_pkcs9}.25`;t.id_pkcs9_sx=`${t.id_pkcs9}.26`;t.id_pkcs9_mr=`${t.id_pkcs9}.27`;t.id_pkcs9_oc_pkcsEntity=`${t.id_pkcs9_oc}.1`;t.id_pkcs9_oc_naturalPerson=`${t.id_pkcs9_oc}.2`;t.id_pkcs9_at_emailAddress=`${t.id_pkcs9}.1`;t.id_pkcs9_at_unstructuredName=`${t.id_pkcs9}.2`;t.id_pkcs9_at_contentType=`${t.id_pkcs9}.3`;t.id_pkcs9_at_messageDigest=`${t.id_pkcs9}.4`;t.id_pkcs9_at_signingTime=`${t.id_pkcs9}.5`;t.id_pkcs9_at_counterSignature=`${t.id_pkcs9}.6`;t.id_pkcs9_at_challengePassword=`${t.id_pkcs9}.7`;t.id_pkcs9_at_unstructuredAddress=`${t.id_pkcs9}.8`;t.id_pkcs9_at_extendedCertificateAttributes=`${t.id_pkcs9}.9`;t.id_pkcs9_at_signingDescription=`${t.id_pkcs9}.13`;t.id_pkcs9_at_extensionRequest=`${t.id_pkcs9}.14`;t.id_pkcs9_at_smimeCapabilities=`${t.id_pkcs9}.15`;t.id_pkcs9_at_friendlyName=`${t.id_pkcs9}.20`;t.id_pkcs9_at_localKeyId=`${t.id_pkcs9}.21`;t.id_pkcs9_at_userPKCS12=`2.16.840.1.113730.3.1.216`;t.id_pkcs9_at_pkcs15Token=`${t.id_pkcs9_at}.1`;t.id_pkcs9_at_encryptedPrivateKeyInfo=`${t.id_pkcs9_at}.2`;t.id_pkcs9_at_randomNonce=`${t.id_pkcs9_at}.3`;t.id_pkcs9_at_sequenceNumber=`${t.id_pkcs9_at}.4`;t.id_pkcs9_at_pkcs7PDU=`${t.id_pkcs9_at}.5`;t.id_ietf_at=`1.3.6.1.5.5.7.9`;t.id_pkcs9_at_dateOfBirth=`${t.id_ietf_at}.1`;t.id_pkcs9_at_placeOfBirth=`${t.id_ietf_at}.2`;t.id_pkcs9_at_gender=`${t.id_ietf_at}.3`;t.id_pkcs9_at_countryOfCitizenship=`${t.id_ietf_at}.4`;t.id_pkcs9_at_countryOfResidence=`${t.id_ietf_at}.5`;t.id_pkcs9_sx_pkcs9String=`${t.id_pkcs9_sx}.1`;t.id_pkcs9_sx_signingTime=`${t.id_pkcs9_sx}.2`;t.id_pkcs9_mr_caseIgnoreMatch=`${t.id_pkcs9_mr}.1`;t.id_pkcs9_mr_signingTimeMatch=`${t.id_pkcs9_mr}.2`;t.id_smime=`${t.id_pkcs9}.16`;t.id_certTypes=`${t.id_pkcs9}.22`;t.crlTypes=`${t.id_pkcs9}.23`;t.id_at_pseudonym=`${g.id_at}.65`;let h=class PKCS9String extends u.DirectoryString{constructor(e={}){super(e)}toString(){const e={};e.toString();return this.ia5String||super.toString()}};t.PKCS9String=h;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.IA5String})],h.prototype,"ia5String",void 0);t.PKCS9String=h=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],h);let d=class Pkcs7PDU extends a.ContentInfo{};t.Pkcs7PDU=d;t.Pkcs7PDU=d=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],d);let E=class UserPKCS12 extends c.PFX{};t.UserPKCS12=E;t.UserPKCS12=E=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],E);let f=class EncryptedPrivateKeyInfo extends l.EncryptedPrivateKeyInfo{};t.EncryptedPrivateKeyInfo=f;t.EncryptedPrivateKeyInfo=f=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],f);let C=class EmailAddress{constructor(e=""){this.value=e}toString(){return this.value}};t.EmailAddress=C;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.IA5String})],C.prototype,"value",void 0);t.EmailAddress=C=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],C);let B=class UnstructuredName extends h{};t.UnstructuredName=B;t.UnstructuredName=B=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],B);let I=class UnstructuredAddress extends u.DirectoryString{};t.UnstructuredAddress=I;t.UnstructuredAddress=I=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],I);let p=class DateOfBirth{constructor(e=new Date){this.value=e}};t.DateOfBirth=p;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.GeneralizedTime})],p.prototype,"value",void 0);t.DateOfBirth=p=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],p);let Q=class PlaceOfBirth extends u.DirectoryString{};t.PlaceOfBirth=Q;t.PlaceOfBirth=Q=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],Q);let y=class Gender{constructor(e="M"){this.value=e}toString(){return this.value}};t.Gender=y;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.PrintableString})],y.prototype,"value",void 0);t.Gender=y=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],y);let m=class CountryOfCitizenship{constructor(e=""){this.value=e}toString(){return this.value}};t.CountryOfCitizenship=m;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.PrintableString})],m.prototype,"value",void 0);t.CountryOfCitizenship=m=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],m);let b=class CountryOfResidence extends m{};t.CountryOfResidence=b;t.CountryOfResidence=b=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],b);let w=class Pseudonym extends u.DirectoryString{};t.Pseudonym=w;t.Pseudonym=w=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],w);let S=class ContentType{constructor(e=""){this.value=e}toString(){return this.value}};t.ContentType=S;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.ObjectIdentifier})],S.prototype,"value",void 0);t.ContentType=S=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],S);class MessageDigest extends o.OctetString{}t.MessageDigest=MessageDigest;let v=class SigningTime extends u.Time{};t.SigningTime=v;t.SigningTime=v=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],v);class RandomNonce extends o.OctetString{}t.RandomNonce=RandomNonce;let k=class SequenceNumber{constructor(e=0){this.value=e}toString(){return this.value.toString()}};t.SequenceNumber=k;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.Integer})],k.prototype,"value",void 0);t.SequenceNumber=k=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],k);let R=class CounterSignature extends a.SignerInfo{};t.CounterSignature=R;t.CounterSignature=R=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],R);let D=class ChallengePassword extends u.DirectoryString{};t.ChallengePassword=D;t.ChallengePassword=D=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],D);let N=r=class ExtensionRequest extends u.Extensions{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.ExtensionRequest=N;t.ExtensionRequest=N=r=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],N);let _=n=class ExtendedCertificateAttributes extends o.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,n.prototype)}};t.ExtendedCertificateAttributes=_;t.ExtendedCertificateAttributes=_=n=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Set,itemType:a.Attribute})],_);let F=class FriendlyName{constructor(e=""){this.value=e}toString(){return this.value}};t.FriendlyName=F;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.BmpString})],F.prototype,"value",void 0);t.FriendlyName=F=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],F);class LocalKeyId extends o.OctetString{}t.LocalKeyId=LocalKeyId;class SigningDescription extends u.DirectoryString{}t.SigningDescription=SigningDescription;let T=class SMIMECapability extends u.AlgorithmIdentifier{};t.SMIMECapability=T;t.SMIMECapability=T=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],T);let U=s=class SMIMECapabilities extends o.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,s.prototype)}};t.SMIMECapabilities=U;t.SMIMECapabilities=U=s=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence,itemType:T})],U)},8243:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sha512_256WithRSAEncryption=t.sha512_224WithRSAEncryption=t.sha512WithRSAEncryption=t.sha384WithRSAEncryption=t.sha256WithRSAEncryption=t.sha224WithRSAEncryption=t.sha1WithRSAEncryption=t.md5WithRSAEncryption=t.md2WithRSAEncryption=t.rsaEncryption=t.pSpecifiedEmpty=t.mgf1SHA1=t.sha512_256=t.sha512_224=t.sha512=t.sha384=t.sha256=t.sha224=t.sha1=t.md4=t.md2=void 0;const r=A(3499);const n=A(2288);const s=A(147);function create(e){return new n.AlgorithmIdentifier({algorithm:e,parameters:null})}t.md2=create(s.id_md2);t.md4=create(s.id_md5);t.sha1=create(s.id_sha1);t.sha224=create(s.id_sha224);t.sha256=create(s.id_sha256);t.sha384=create(s.id_sha384);t.sha512=create(s.id_sha512);t.sha512_224=create(s.id_sha512_224);t.sha512_256=create(s.id_sha512_256);t.mgf1SHA1=new n.AlgorithmIdentifier({algorithm:s.id_mgf1,parameters:r.AsnConvert.serialize(t.sha1)});t.pSpecifiedEmpty=new n.AlgorithmIdentifier({algorithm:s.id_pSpecified,parameters:r.AsnConvert.serialize(r.AsnOctetStringConverter.toASN(new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]).buffer))});t.rsaEncryption=create(s.id_rsaEncryption);t.md2WithRSAEncryption=create(s.id_md2WithRSAEncryption);t.md5WithRSAEncryption=create(s.id_md5WithRSAEncryption);t.sha1WithRSAEncryption=create(s.id_sha1WithRSAEncryption);t.sha224WithRSAEncryption=create(s.id_sha512_224WithRSAEncryption);t.sha256WithRSAEncryption=create(s.id_sha512_256WithRSAEncryption);t.sha384WithRSAEncryption=create(s.id_sha384WithRSAEncryption);t.sha512WithRSAEncryption=create(s.id_sha512WithRSAEncryption);t.sha512_224WithRSAEncryption=create(s.id_sha512_224WithRSAEncryption);t.sha512_256WithRSAEncryption=create(s.id_sha512_256WithRSAEncryption)},5574:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(1364),t);r.__exportStar(A(8243),t);r.__exportStar(A(147),t);r.__exportStar(A(1069),t);r.__exportStar(A(9654),t);r.__exportStar(A(9978),t)},147:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_mgf1=t.id_md5=t.id_md2=t.id_sha512_256=t.id_sha512_224=t.id_sha512=t.id_sha384=t.id_sha256=t.id_sha224=t.id_sha1=t.id_sha512_256WithRSAEncryption=t.id_sha512_224WithRSAEncryption=t.id_sha512WithRSAEncryption=t.id_sha384WithRSAEncryption=t.id_sha256WithRSAEncryption=t.id_ssha224WithRSAEncryption=t.id_sha224WithRSAEncryption=t.id_sha1WithRSAEncryption=t.id_md5WithRSAEncryption=t.id_md2WithRSAEncryption=t.id_RSASSA_PSS=t.id_pSpecified=t.id_RSAES_OAEP=t.id_rsaEncryption=t.id_pkcs_1=void 0;t.id_pkcs_1="1.2.840.113549.1.1";t.id_rsaEncryption=`${t.id_pkcs_1}.1`;t.id_RSAES_OAEP=`${t.id_pkcs_1}.7`;t.id_pSpecified=`${t.id_pkcs_1}.9`;t.id_RSASSA_PSS=`${t.id_pkcs_1}.10`;t.id_md2WithRSAEncryption=`${t.id_pkcs_1}.2`;t.id_md5WithRSAEncryption=`${t.id_pkcs_1}.4`;t.id_sha1WithRSAEncryption=`${t.id_pkcs_1}.5`;t.id_sha224WithRSAEncryption=`${t.id_pkcs_1}.14`;t.id_ssha224WithRSAEncryption=t.id_sha224WithRSAEncryption;t.id_sha256WithRSAEncryption=`${t.id_pkcs_1}.11`;t.id_sha384WithRSAEncryption=`${t.id_pkcs_1}.12`;t.id_sha512WithRSAEncryption=`${t.id_pkcs_1}.13`;t.id_sha512_224WithRSAEncryption=`${t.id_pkcs_1}.15`;t.id_sha512_256WithRSAEncryption=`${t.id_pkcs_1}.16`;t.id_sha1="1.3.14.3.2.26";t.id_sha224="2.16.840.1.101.3.4.2.4";t.id_sha256="2.16.840.1.101.3.4.2.1";t.id_sha384="2.16.840.1.101.3.4.2.2";t.id_sha512="2.16.840.1.101.3.4.2.3";t.id_sha512_224="2.16.840.1.101.3.4.2.5";t.id_sha512_256="2.16.840.1.101.3.4.2.6";t.id_md2="1.2.840.113549.2.2";t.id_md5="1.2.840.113549.2.5";t.id_mgf1=`${t.id_pkcs_1}.8`},1069:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.OtherPrimeInfos=t.OtherPrimeInfo=void 0;const n=A(4351);const s=A(3499);class OtherPrimeInfo{constructor(e={}){this.prime=new ArrayBuffer(0);this.exponent=new ArrayBuffer(0);this.coefficient=new ArrayBuffer(0);Object.assign(this,e)}}t.OtherPrimeInfo=OtherPrimeInfo;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,converter:s.AsnIntegerArrayBufferConverter})],OtherPrimeInfo.prototype,"prime",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,converter:s.AsnIntegerArrayBufferConverter})],OtherPrimeInfo.prototype,"exponent",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,converter:s.AsnIntegerArrayBufferConverter})],OtherPrimeInfo.prototype,"coefficient",void 0);let i=r=class OtherPrimeInfos extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.OtherPrimeInfos=i;t.OtherPrimeInfos=i=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:OtherPrimeInfo})],i)},1364:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(6657),t);r.__exportStar(A(1770),t);r.__exportStar(A(1452),t)},6657:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RSAES_OAEP=t.RsaEsOaepParams=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(147);const o=A(8243);class RsaEsOaepParams{constructor(e={}){this.hashAlgorithm=new s.AlgorithmIdentifier(o.sha1);this.maskGenAlgorithm=new s.AlgorithmIdentifier({algorithm:i.id_mgf1,parameters:n.AsnConvert.serialize(o.sha1)});this.pSourceAlgorithm=new s.AlgorithmIdentifier(o.pSpecifiedEmpty);Object.assign(this,e)}}t.RsaEsOaepParams=RsaEsOaepParams;r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier,context:0,defaultValue:o.sha1})],RsaEsOaepParams.prototype,"hashAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier,context:1,defaultValue:o.mgf1SHA1})],RsaEsOaepParams.prototype,"maskGenAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier,context:2,defaultValue:o.pSpecifiedEmpty})],RsaEsOaepParams.prototype,"pSourceAlgorithm",void 0);t.RSAES_OAEP=new s.AlgorithmIdentifier({algorithm:i.id_RSAES_OAEP,parameters:n.AsnConvert.serialize(new RsaEsOaepParams)})},1452:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DigestInfo=void 0;const r=A(4351);const n=A(2288);const s=A(3499);class DigestInfo{constructor(e={}){this.digestAlgorithm=new n.AlgorithmIdentifier;this.digest=new s.OctetString;Object.assign(this,e)}}t.DigestInfo=DigestInfo;r.__decorate([(0,s.AsnProp)({type:n.AlgorithmIdentifier})],DigestInfo.prototype,"digestAlgorithm",void 0);r.__decorate([(0,s.AsnProp)({type:s.OctetString})],DigestInfo.prototype,"digest",void 0)},1770:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RSASSA_PSS=t.RsaSaPssParams=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(147);const o=A(8243);class RsaSaPssParams{constructor(e={}){this.hashAlgorithm=new s.AlgorithmIdentifier(o.sha1);this.maskGenAlgorithm=new s.AlgorithmIdentifier({algorithm:i.id_mgf1,parameters:n.AsnConvert.serialize(o.sha1)});this.saltLength=20;this.trailerField=1;Object.assign(this,e)}}t.RsaSaPssParams=RsaSaPssParams;r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier,context:0,defaultValue:o.sha1})],RsaSaPssParams.prototype,"hashAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier,context:1,defaultValue:o.mgf1SHA1})],RsaSaPssParams.prototype,"maskGenAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,context:2,defaultValue:20})],RsaSaPssParams.prototype,"saltLength",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,context:3,defaultValue:1})],RsaSaPssParams.prototype,"trailerField",void 0);t.RSASSA_PSS=new s.AlgorithmIdentifier({algorithm:i.id_RSASSA_PSS,parameters:n.AsnConvert.serialize(new RsaSaPssParams)})},9654:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RSAPrivateKey=void 0;const r=A(4351);const n=A(3499);const s=A(1069);class RSAPrivateKey{constructor(e={}){this.version=0;this.modulus=new ArrayBuffer(0);this.publicExponent=new ArrayBuffer(0);this.privateExponent=new ArrayBuffer(0);this.prime1=new ArrayBuffer(0);this.prime2=new ArrayBuffer(0);this.exponent1=new ArrayBuffer(0);this.exponent2=new ArrayBuffer(0);this.coefficient=new ArrayBuffer(0);Object.assign(this,e)}}t.RSAPrivateKey=RSAPrivateKey;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],RSAPrivateKey.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"modulus",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"publicExponent",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"privateExponent",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"prime1",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"prime2",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"exponent1",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"exponent2",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPrivateKey.prototype,"coefficient",void 0);r.__decorate([(0,n.AsnProp)({type:s.OtherPrimeInfos,optional:true})],RSAPrivateKey.prototype,"otherPrimeInfos",void 0)},9978:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RSAPublicKey=void 0;const r=A(4351);const n=A(3499);class RSAPublicKey{constructor(e={}){this.modulus=new ArrayBuffer(0);this.publicExponent=new ArrayBuffer(0);Object.assign(this,e)}}t.RSAPublicKey=RSAPublicKey;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPublicKey.prototype,"modulus",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RSAPublicKey.prototype,"publicExponent",void 0)},913:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnConvert=void 0;const r=A(3702);const n=A(2420);const s=A(9660);const i=A(7770);class AsnConvert{static serialize(e){return i.AsnSerializer.serialize(e)}static parse(e,t){return s.AsnParser.parse(e,t)}static toString(e){const t=n.BufferSourceConverter.isBufferSource(e)?n.BufferSourceConverter.toArrayBuffer(e):AsnConvert.serialize(e);const A=r.fromBER(t);if(A.offset===-1){throw new Error(`Cannot decode ASN.1 data. ${A.result.error}`)}return A.result.toString()}}t.AsnConvert=AsnConvert},4091:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultConverter=t.AsnNullConverter=t.AsnGeneralizedTimeConverter=t.AsnUTCTimeConverter=t.AsnCharacterStringConverter=t.AsnGeneralStringConverter=t.AsnVisibleStringConverter=t.AsnGraphicStringConverter=t.AsnIA5StringConverter=t.AsnVideotexStringConverter=t.AsnTeletexStringConverter=t.AsnPrintableStringConverter=t.AsnNumericStringConverter=t.AsnUniversalStringConverter=t.AsnBmpStringConverter=t.AsnUtf8StringConverter=t.AsnConstructedOctetStringConverter=t.AsnOctetStringConverter=t.AsnBooleanConverter=t.AsnObjectIdentifierConverter=t.AsnBitStringConverter=t.AsnIntegerBigIntConverter=t.AsnIntegerArrayBufferConverter=t.AsnEnumeratedConverter=t.AsnIntegerConverter=t.AsnAnyConverter=void 0;const r=A(3702);const n=A(378);const s=A(756);t.AsnAnyConverter={fromASN:e=>e instanceof r.Null?null:e.valueBeforeDecodeView,toASN:e=>{if(e===null){return new r.Null}const t=r.fromBER(e);if(t.result.error){throw new Error(t.result.error)}return t.result}};t.AsnIntegerConverter={fromASN:e=>e.valueBlock.valueHexView.byteLength>=4?e.valueBlock.toString():e.valueBlock.valueDec,toASN:e=>new r.Integer({value:+e})};t.AsnEnumeratedConverter={fromASN:e=>e.valueBlock.valueDec,toASN:e=>new r.Enumerated({value:e})};t.AsnIntegerArrayBufferConverter={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new r.Integer({valueHex:e})};t.AsnIntegerBigIntConverter={fromASN:e=>e.toBigInt(),toASN:e=>r.Integer.fromBigInt(e)};t.AsnBitStringConverter={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new r.BitString({valueHex:e})};t.AsnObjectIdentifierConverter={fromASN:e=>e.valueBlock.toString(),toASN:e=>new r.ObjectIdentifier({value:e})};t.AsnBooleanConverter={fromASN:e=>e.valueBlock.value,toASN:e=>new r.Boolean({value:e})};t.AsnOctetStringConverter={fromASN:e=>e.valueBlock.valueHexView,toASN:e=>new r.OctetString({valueHex:e})};t.AsnConstructedOctetStringConverter={fromASN:e=>new s.OctetString(e.getValue()),toASN:e=>e.toASN()};function createStringConverter(e){return{fromASN:e=>e.valueBlock.value,toASN:t=>new e({value:t})}}t.AsnUtf8StringConverter=createStringConverter(r.Utf8String);t.AsnBmpStringConverter=createStringConverter(r.BmpString);t.AsnUniversalStringConverter=createStringConverter(r.UniversalString);t.AsnNumericStringConverter=createStringConverter(r.NumericString);t.AsnPrintableStringConverter=createStringConverter(r.PrintableString);t.AsnTeletexStringConverter=createStringConverter(r.TeletexString);t.AsnVideotexStringConverter=createStringConverter(r.VideotexString);t.AsnIA5StringConverter=createStringConverter(r.IA5String);t.AsnGraphicStringConverter=createStringConverter(r.GraphicString);t.AsnVisibleStringConverter=createStringConverter(r.VisibleString);t.AsnGeneralStringConverter=createStringConverter(r.GeneralString);t.AsnCharacterStringConverter=createStringConverter(r.CharacterString);t.AsnUTCTimeConverter={fromASN:e=>e.toDate(),toASN:e=>new r.UTCTime({valueDate:e})};t.AsnGeneralizedTimeConverter={fromASN:e=>e.toDate(),toASN:e=>new r.GeneralizedTime({valueDate:e})};t.AsnNullConverter={fromASN:()=>null,toASN:()=>new r.Null};function defaultConverter(e){switch(e){case n.AsnPropTypes.Any:return t.AsnAnyConverter;case n.AsnPropTypes.BitString:return t.AsnBitStringConverter;case n.AsnPropTypes.BmpString:return t.AsnBmpStringConverter;case n.AsnPropTypes.Boolean:return t.AsnBooleanConverter;case n.AsnPropTypes.CharacterString:return t.AsnCharacterStringConverter;case n.AsnPropTypes.Enumerated:return t.AsnEnumeratedConverter;case n.AsnPropTypes.GeneralString:return t.AsnGeneralStringConverter;case n.AsnPropTypes.GeneralizedTime:return t.AsnGeneralizedTimeConverter;case n.AsnPropTypes.GraphicString:return t.AsnGraphicStringConverter;case n.AsnPropTypes.IA5String:return t.AsnIA5StringConverter;case n.AsnPropTypes.Integer:return t.AsnIntegerConverter;case n.AsnPropTypes.Null:return t.AsnNullConverter;case n.AsnPropTypes.NumericString:return t.AsnNumericStringConverter;case n.AsnPropTypes.ObjectIdentifier:return t.AsnObjectIdentifierConverter;case n.AsnPropTypes.OctetString:return t.AsnOctetStringConverter;case n.AsnPropTypes.PrintableString:return t.AsnPrintableStringConverter;case n.AsnPropTypes.TeletexString:return t.AsnTeletexStringConverter;case n.AsnPropTypes.UTCTime:return t.AsnUTCTimeConverter;case n.AsnPropTypes.UniversalString:return t.AsnUniversalStringConverter;case n.AsnPropTypes.Utf8String:return t.AsnUtf8StringConverter;case n.AsnPropTypes.VideotexString:return t.AsnVideotexStringConverter;case n.AsnPropTypes.VisibleString:return t.AsnVisibleStringConverter;default:return null}}t.defaultConverter=defaultConverter},157:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnProp=t.AsnSequenceType=t.AsnSetType=t.AsnChoiceType=t.AsnType=void 0;const r=A(4091);const n=A(378);const s=A(4652);const AsnType=e=>t=>{let A;if(!s.schemaStorage.has(t)){A=s.schemaStorage.createDefault(t);s.schemaStorage.set(t,A)}else{A=s.schemaStorage.get(t)}Object.assign(A,e)};t.AsnType=AsnType;const AsnChoiceType=()=>(0,t.AsnType)({type:n.AsnTypeTypes.Choice});t.AsnChoiceType=AsnChoiceType;const AsnSetType=e=>(0,t.AsnType)({type:n.AsnTypeTypes.Set,...e});t.AsnSetType=AsnSetType;const AsnSequenceType=e=>(0,t.AsnType)({type:n.AsnTypeTypes.Sequence,...e});t.AsnSequenceType=AsnSequenceType;const AsnProp=e=>(t,A)=>{let n;if(!s.schemaStorage.has(t.constructor)){n=s.schemaStorage.createDefault(t.constructor);s.schemaStorage.set(t.constructor,n)}else{n=s.schemaStorage.get(t.constructor)}const i=Object.assign({},e);if(typeof i.type==="number"&&!i.converter){const n=r.defaultConverter(e.type);if(!n){throw new Error(`Cannot get default converter for property '${A}' of ${t.constructor.name}`)}i.converter=n}n.items[A]=i};t.AsnProp=AsnProp},378:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnPropTypes=t.AsnTypeTypes=void 0;var A;(function(e){e[e["Sequence"]=0]="Sequence";e[e["Set"]=1]="Set";e[e["Choice"]=2]="Choice"})(A||(t.AsnTypeTypes=A={}));var r;(function(e){e[e["Any"]=1]="Any";e[e["Boolean"]=2]="Boolean";e[e["OctetString"]=3]="OctetString";e[e["BitString"]=4]="BitString";e[e["Integer"]=5]="Integer";e[e["Enumerated"]=6]="Enumerated";e[e["ObjectIdentifier"]=7]="ObjectIdentifier";e[e["Utf8String"]=8]="Utf8String";e[e["BmpString"]=9]="BmpString";e[e["UniversalString"]=10]="UniversalString";e[e["NumericString"]=11]="NumericString";e[e["PrintableString"]=12]="PrintableString";e[e["TeletexString"]=13]="TeletexString";e[e["VideotexString"]=14]="VideotexString";e[e["IA5String"]=15]="IA5String";e[e["GraphicString"]=16]="GraphicString";e[e["VisibleString"]=17]="VisibleString";e[e["GeneralString"]=18]="GeneralString";e[e["CharacterString"]=19]="CharacterString";e[e["UTCTime"]=20]="UTCTime";e[e["GeneralizedTime"]=21]="GeneralizedTime";e[e["DATE"]=22]="DATE";e[e["TimeOfDay"]=23]="TimeOfDay";e[e["DateTime"]=24]="DateTime";e[e["Duration"]=25]="Duration";e[e["TIME"]=26]="TIME";e[e["Null"]=27]="Null"})(r||(t.AsnPropTypes=r={}))},6194:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(7118),t)},7118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnSchemaValidationError=void 0;class AsnSchemaValidationError extends Error{constructor(){super(...arguments);this.schemas=[]}}t.AsnSchemaValidationError=AsnSchemaValidationError},4750:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArrayEqual=t.isTypeOfArray=t.isConvertible=void 0;function isConvertible(e){if(typeof e==="function"&&e.prototype){if(e.prototype.toASN&&e.prototype.fromASN){return true}else{return isConvertible(e.prototype)}}else{return!!(e&&typeof e==="object"&&"toASN"in e&&"fromASN"in e)}}t.isConvertible=isConvertible;function isTypeOfArray(e){var t;if(e){const A=Object.getPrototypeOf(e);if(((t=A===null||A===void 0?void 0:A.prototype)===null||t===void 0?void 0:t.constructor)===Array){return true}return isTypeOfArray(A)}return false}t.isTypeOfArray=isTypeOfArray;function isArrayEqual(e,t){if(!(e&&t)){return false}if(e.byteLength!==t.byteLength){return false}const A=new Uint8Array(e);const r=new Uint8Array(t);for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnSerializer=t.AsnParser=t.AsnPropTypes=t.AsnTypeTypes=t.AsnSetType=t.AsnSequenceType=t.AsnChoiceType=t.AsnType=t.AsnProp=void 0;const r=A(4351);r.__exportStar(A(4091),t);r.__exportStar(A(756),t);var n=A(157);Object.defineProperty(t,"AsnProp",{enumerable:true,get:function(){return n.AsnProp}});Object.defineProperty(t,"AsnType",{enumerable:true,get:function(){return n.AsnType}});Object.defineProperty(t,"AsnChoiceType",{enumerable:true,get:function(){return n.AsnChoiceType}});Object.defineProperty(t,"AsnSequenceType",{enumerable:true,get:function(){return n.AsnSequenceType}});Object.defineProperty(t,"AsnSetType",{enumerable:true,get:function(){return n.AsnSetType}});var s=A(378);Object.defineProperty(t,"AsnTypeTypes",{enumerable:true,get:function(){return s.AsnTypeTypes}});Object.defineProperty(t,"AsnPropTypes",{enumerable:true,get:function(){return s.AsnPropTypes}});var i=A(9660);Object.defineProperty(t,"AsnParser",{enumerable:true,get:function(){return i.AsnParser}});var o=A(7770);Object.defineProperty(t,"AsnSerializer",{enumerable:true,get:function(){return o.AsnSerializer}});r.__exportStar(A(6194),t);r.__exportStar(A(3795),t);r.__exportStar(A(913),t)},3795:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnArray=void 0;class AsnArray extends Array{constructor(e=[]){if(typeof e==="number"){super(e)}else{super();for(const t of e){this.push(t)}}}}t.AsnArray=AsnArray},9660:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnParser=void 0;const r=A(3702);const n=A(378);const s=A(4091);const i=A(6194);const o=A(4750);const a=A(4652);class AsnParser{static parse(e,t){const A=r.fromBER(e);if(A.result.error){throw new Error(A.result.error)}const n=this.fromASN(A.result,t);return n}static fromASN(e,t){var A;try{if((0,o.isConvertible)(t)){const A=new t;return A.fromASN(e)}const c=a.schemaStorage.get(t);a.schemaStorage.cache(t);let l=c.schema;if(e.constructor===r.Constructed&&c.type!==n.AsnTypeTypes.Choice){l=new r.Constructed({idBlock:{tagClass:3,tagNumber:e.idBlock.tagNumber},value:c.schema.valueBlock.value});for(const t in c.items){delete e[t]}}const u=r.compareSchema({},e,l);if(!u.verified){throw new i.AsnSchemaValidationError(`Data does not match to ${t.name} ASN1 schema. ${u.result.error}`)}const g=new t;if((0,o.isTypeOfArray)(t)){if(!("value"in e.valueBlock&&Array.isArray(e.valueBlock.value))){throw new Error(`Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.`)}const A=c.itemType;if(typeof A==="number"){const r=s.defaultConverter(A);if(!r){throw new Error(`Cannot get default converter for array item of ${t.name} ASN1 schema`)}return t.from(e.valueBlock.value,(e=>r.fromASN(e)))}else{return t.from(e.valueBlock.value,(e=>this.fromASN(e,A)))}}for(const e in c.items){const t=u.result[e];if(!t){continue}const s=c.items[e];const i=s.type;if(typeof i==="number"||(0,o.isConvertible)(i)){const a=(A=s.converter)!==null&&A!==void 0?A:(0,o.isConvertible)(i)?new i:null;if(!a){throw new Error("Converter is empty")}if(s.repeated){if(s.implicit){const A=s.repeated==="sequence"?r.Sequence:r.Set;const n=new A;n.valueBlock=t.valueBlock;const i=r.fromBER(n.toBER(false));if(i.offset===-1){throw new Error(`Cannot parse the child item. ${i.result.error}`)}if(!("value"in i.result.valueBlock&&Array.isArray(i.result.valueBlock.value))){throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.")}const o=i.result.valueBlock.value;g[e]=Array.from(o,(e=>a.fromASN(e)))}else{g[e]=Array.from(t,(e=>a.fromASN(e)))}}else{let A=t;if(s.implicit){let e;if((0,o.isConvertible)(i)){e=(new i).toSchema("")}else{const t=n.AsnPropTypes[i];const A=r[t];if(!A){throw new Error(`Cannot get '${t}' class from asn1js module`)}e=new A}e.valueBlock=A.valueBlock;A=r.fromBER(e.toBER(false)).result}g[e]=a.fromASN(A)}}else{if(s.repeated){if(!Array.isArray(t)){throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.")}g[e]=Array.from(t,(e=>this.fromASN(e,i)))}else{g[e]=this.fromASN(t,i)}}}return g}catch(e){if(e instanceof i.AsnSchemaValidationError){e.schemas.push(t.name)}throw e}}}t.AsnParser=AsnParser},3021:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnSchemaStorage=void 0;const r=A(3702);const n=A(378);const s=A(4750);class AsnSchemaStorage{constructor(){this.items=new WeakMap}has(e){return this.items.has(e)}get(e,t=false){const A=this.items.get(e);if(!A){throw new Error(`Cannot get schema for '${e.prototype.constructor.name}' target`)}if(t&&!A.schema){throw new Error(`Schema '${e.prototype.constructor.name}' doesn't contain ASN.1 schema. Call 'AsnSchemaStorage.cache'.`)}return A}cache(e){const t=this.get(e);if(!t.schema){t.schema=this.create(e,true)}}createDefault(e){const t={type:n.AsnTypeTypes.Sequence,items:{}};const A=this.findParentSchema(e);if(A){Object.assign(t,A);t.items=Object.assign({},t.items,A.items)}return t}create(e,t){const A=this.items.get(e)||this.createDefault(e);const i=[];for(const e in A.items){const o=A.items[e];const a=t?e:"";let c;if(typeof o.type==="number"){const e=n.AsnPropTypes[o.type];const t=r[e];if(!t){throw new Error(`Cannot get ASN1 class by name '${e}'`)}c=new t({name:a})}else if((0,s.isConvertible)(o.type)){const e=new o.type;c=e.toSchema(a)}else if(o.optional){const e=this.get(o.type);if(e.type===n.AsnTypeTypes.Choice){c=new r.Any({name:a})}else{c=this.create(o.type,false);c.name=a}}else{c=new r.Any({name:a})}const l=!!o.optional||o.defaultValue!==undefined;if(o.repeated){c.name="";const e=o.repeated==="set"?r.Set:r.Sequence;c=new e({name:"",value:[new r.Repeated({name:a,value:c})]})}if(o.context!==null&&o.context!==undefined){if(o.implicit){if(typeof o.type==="number"||(0,s.isConvertible)(o.type)){const e=o.repeated?r.Constructed:r.Primitive;i.push(new e({name:a,optional:l,idBlock:{tagClass:3,tagNumber:o.context}}))}else{this.cache(o.type);const e=!!o.repeated;let t=!e?this.get(o.type,true).schema:c;t="valueBlock"in t?t.valueBlock.value:t.value;i.push(new r.Constructed({name:!e?a:"",optional:l,idBlock:{tagClass:3,tagNumber:o.context},value:t}))}}else{i.push(new r.Constructed({optional:l,idBlock:{tagClass:3,tagNumber:o.context},value:[c]}))}}else{c.optional=l;i.push(c)}}switch(A.type){case n.AsnTypeTypes.Sequence:return new r.Sequence({value:i,name:""});case n.AsnTypeTypes.Set:return new r.Set({value:i,name:""});case n.AsnTypeTypes.Choice:return new r.Choice({value:i,name:""});default:throw new Error(`Unsupported ASN1 type in use`)}}set(e,t){this.items.set(e,t);return this}findParentSchema(e){const t=Object.getPrototypeOf(e);if(t){const e=this.items.get(t);return e||this.findParentSchema(t)}return null}}t.AsnSchemaStorage=AsnSchemaStorage},7770:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AsnSerializer=void 0;const r=A(3702);const n=A(4091);const s=A(378);const i=A(4750);const o=A(4652);class AsnSerializer{static serialize(e){if(e instanceof r.BaseBlock){return e.toBER(false)}return this.toASN(e).toBER(false)}static toASN(e){if(e&&typeof e==="object"&&(0,i.isConvertible)(e)){return e.toASN()}if(!(e&&typeof e==="object")){throw new TypeError("Parameter 1 should be type of Object.")}const t=e.constructor;const A=o.schemaStorage.get(t);o.schemaStorage.cache(t);let a=[];if(A.itemType){if(!Array.isArray(e)){throw new TypeError("Parameter 1 should be type of Array.")}if(typeof A.itemType==="number"){const r=n.defaultConverter(A.itemType);if(!r){throw new Error(`Cannot get default converter for array item of ${t.name} ASN1 schema`)}a=e.map((e=>r.toASN(e)))}else{a=e.map((e=>this.toAsnItem({type:A.itemType},"[]",t,e)))}}else{for(const n in A.items){const s=A.items[n];const o=e[n];if(o===undefined||s.defaultValue===o||typeof s.defaultValue==="object"&&typeof o==="object"&&(0,i.isArrayEqual)(this.serialize(s.defaultValue),this.serialize(o))){continue}const c=AsnSerializer.toAsnItem(s,n,t,o);if(typeof s.context==="number"){if(s.implicit){if(!s.repeated&&(typeof s.type==="number"||(0,i.isConvertible)(s.type))){const e={};e.valueHex=c instanceof r.Null?c.valueBeforeDecodeView:c.valueBlock.toBER();a.push(new r.Primitive({optional:s.optional,idBlock:{tagClass:3,tagNumber:s.context},...e}))}else{a.push(new r.Constructed({optional:s.optional,idBlock:{tagClass:3,tagNumber:s.context},value:c.valueBlock.value}))}}else{a.push(new r.Constructed({optional:s.optional,idBlock:{tagClass:3,tagNumber:s.context},value:[c]}))}}else if(s.repeated){a=a.concat(c)}else{a.push(c)}}}let c;switch(A.type){case s.AsnTypeTypes.Sequence:c=new r.Sequence({value:a});break;case s.AsnTypeTypes.Set:c=new r.Set({value:a});break;case s.AsnTypeTypes.Choice:if(!a[0]){throw new Error(`Schema '${t.name}' has wrong data. Choice cannot be empty.`)}c=a[0];break}return c}static toAsnItem(e,t,A,n){let i;if(typeof e.type==="number"){const o=e.converter;if(!o){throw new Error(`Property '${t}' doesn't have converter for type ${s.AsnPropTypes[e.type]} in schema '${A.name}'`)}if(e.repeated){if(!Array.isArray(n)){throw new TypeError("Parameter 'objProp' should be type of Array.")}const t=Array.from(n,(e=>o.toASN(e)));const A=e.repeated==="sequence"?r.Sequence:r.Set;i=new A({value:t})}else{i=o.toASN(n)}}else{if(e.repeated){if(!Array.isArray(n)){throw new TypeError("Parameter 'objProp' should be type of Array.")}const t=Array.from(n,(e=>this.toASN(e)));const A=e.repeated==="sequence"?r.Sequence:r.Set;i=new A({value:t})}else{i=this.toASN(n)}}return i}}t.AsnSerializer=AsnSerializer},4652:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.schemaStorage=void 0;const r=A(3021);t.schemaStorage=new r.AsnSchemaStorage},3897:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BitString=void 0;const r=A(3702);const n=A(2420);class BitString{constructor(e,t=0){this.unusedBits=0;this.value=new ArrayBuffer(0);if(e){if(typeof e==="number"){this.fromNumber(e)}else if(n.BufferSourceConverter.isBufferSource(e)){this.unusedBits=t;this.value=n.BufferSourceConverter.toArrayBuffer(e)}else{throw TypeError("Unsupported type of 'params' argument for BitString")}}}fromASN(e){if(!(e instanceof r.BitString)){throw new TypeError("Argument 'asn' is not instance of ASN.1 BitString")}this.unusedBits=e.valueBlock.unusedBits;this.value=e.valueBlock.valueHex;return this}toASN(){return new r.BitString({unusedBits:this.unusedBits,valueHex:this.value})}toSchema(e){return new r.BitString({name:e})}toNumber(){let e="";const t=new Uint8Array(this.value);for(const A of t){e+=A.toString(2).padStart(8,"0")}e=e.split("").reverse().join("");if(this.unusedBits){e=e.slice(this.unusedBits).padStart(this.unusedBits,"0")}return parseInt(e,2)}fromNumber(e){let t=e.toString(2);const A=t.length+7>>3;this.unusedBits=(A<<3)-t.length;const r=new Uint8Array(A);t=t.padStart(A<<3,"0").split("").reverse().join("");let n=0;while(n{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(3897),t);r.__exportStar(A(2060),t)},2060:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OctetString=void 0;const r=A(3702);const n=A(2420);class OctetString{get byteLength(){return this.buffer.byteLength}get byteOffset(){return 0}constructor(e){if(typeof e==="number"){this.buffer=new ArrayBuffer(e)}else{if(n.BufferSourceConverter.isBufferSource(e)){this.buffer=n.BufferSourceConverter.toArrayBuffer(e)}else if(Array.isArray(e)){this.buffer=new Uint8Array(e)}else{this.buffer=new ArrayBuffer(0)}}}fromASN(e){if(!(e instanceof r.OctetString)){throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString")}this.buffer=e.valueBlock.valueHex;return this}toASN(){return new r.OctetString({valueHex:this.buffer})}toSchema(e){return new r.OctetString({name:e})}}t.OctetString=OctetString},3407:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ACClearAttrs=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class ACClearAttrs{constructor(e={}){this.acIssuer=new s.GeneralName;this.acSerial=0;this.attrs=[];Object.assign(this,e)}}t.ACClearAttrs=ACClearAttrs;r.__decorate([(0,n.AsnProp)({type:s.GeneralName})],ACClearAttrs.prototype,"acIssuer",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],ACClearAttrs.prototype,"acSerial",void 0);r.__decorate([(0,n.AsnProp)({type:s.Attribute,repeated:"sequence"})],ACClearAttrs.prototype,"attrs",void 0)},7881:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AAControls=void 0;const r=A(4351);const n=A(3499);const s=A(8160);class AAControls{constructor(e={}){this.permitUnSpecified=true;Object.assign(this,e)}}t.AAControls=AAControls;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,optional:true})],AAControls.prototype,"pathLenConstraint",void 0);r.__decorate([(0,n.AsnProp)({type:s.AttrSpec,implicit:true,context:0,optional:true})],AAControls.prototype,"permittedAttrs",void 0);r.__decorate([(0,n.AsnProp)({type:s.AttrSpec,implicit:true,context:1,optional:true})],AAControls.prototype,"excludedAttrs",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Boolean,defaultValue:true})],AAControls.prototype,"permitUnSpecified",void 0)},480:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AttCertIssuer=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(5787);let o=class AttCertIssuer{constructor(e={}){Object.assign(this,e)}};t.AttCertIssuer=o;r.__decorate([(0,n.AsnProp)({type:s.GeneralName,repeated:"sequence"})],o.prototype,"v1Form",void 0);r.__decorate([(0,n.AsnProp)({type:i.V2Form,context:0,implicit:true})],o.prototype,"v2Form",void 0);t.AttCertIssuer=o=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],o)},8579:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AttCertValidityPeriod=void 0;const r=A(4351);const n=A(3499);class AttCertValidityPeriod{constructor(e={}){this.notBeforeTime=new Date;this.notAfterTime=new Date;Object.assign(this,e)}}t.AttCertValidityPeriod=AttCertValidityPeriod;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime})],AttCertValidityPeriod.prototype,"notBeforeTime",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime})],AttCertValidityPeriod.prototype,"notAfterTime",void 0)},8160:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.AttrSpec=void 0;const n=A(4351);const s=A(3499);let i=r=class AttrSpec extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.AttrSpec=i;t.AttrSpec=i=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:s.AsnPropTypes.ObjectIdentifier})],i)},7943:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AttributeCertificate=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(5881);class AttributeCertificate{constructor(e={}){this.acinfo=new i.AttributeCertificateInfo;this.signatureAlgorithm=new s.AlgorithmIdentifier;this.signatureValue=new ArrayBuffer(0);Object.assign(this,e)}}t.AttributeCertificate=AttributeCertificate;r.__decorate([(0,n.AsnProp)({type:i.AttributeCertificateInfo})],AttributeCertificate.prototype,"acinfo",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],AttributeCertificate.prototype,"signatureAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString})],AttributeCertificate.prototype,"signatureValue",void 0)},5881:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AttributeCertificateInfo=t.AttCertVersion=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(7195);const o=A(480);const a=A(8579);var c;(function(e){e[e["v2"]=1]="v2"})(c||(t.AttCertVersion=c={}));class AttributeCertificateInfo{constructor(e={}){this.version=c.v2;this.holder=new i.Holder;this.issuer=new o.AttCertIssuer;this.signature=new s.AlgorithmIdentifier;this.serialNumber=new ArrayBuffer(0);this.attrCertValidityPeriod=new a.AttCertValidityPeriod;this.attributes=[];Object.assign(this,e)}}t.AttributeCertificateInfo=AttributeCertificateInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],AttributeCertificateInfo.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:i.Holder})],AttributeCertificateInfo.prototype,"holder",void 0);r.__decorate([(0,n.AsnProp)({type:o.AttCertIssuer})],AttributeCertificateInfo.prototype,"issuer",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],AttributeCertificateInfo.prototype,"signature",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],AttributeCertificateInfo.prototype,"serialNumber",void 0);r.__decorate([(0,n.AsnProp)({type:a.AttCertValidityPeriod})],AttributeCertificateInfo.prototype,"attrCertValidityPeriod",void 0);r.__decorate([(0,n.AsnProp)({type:s.Attribute,repeated:"sequence"})],AttributeCertificateInfo.prototype,"attributes",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString,optional:true})],AttributeCertificateInfo.prototype,"issuerUniqueID",void 0);r.__decorate([(0,n.AsnProp)({type:s.Extensions,optional:true})],AttributeCertificateInfo.prototype,"extensions",void 0)},2519:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ClassList=t.ClassListFlags=void 0;const r=A(3499);var n;(function(e){e[e["unmarked"]=1]="unmarked";e[e["unclassified"]=2]="unclassified";e[e["restricted"]=4]="restricted";e[e["confidential"]=8]="confidential";e[e["secret"]=16]="secret";e[e["topSecret"]=32]="topSecret"})(n||(t.ClassListFlags=n={}));class ClassList extends r.BitString{}t.ClassList=ClassList},9091:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Clearance=void 0;const r=A(4351);const n=A(3499);const s=A(2519);const i=A(6789);class Clearance{constructor(e={}){this.policyId="";this.classList=new s.ClassList(s.ClassListFlags.unclassified);Object.assign(this,e)}}t.Clearance=Clearance;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],Clearance.prototype,"policyId",void 0);r.__decorate([(0,n.AsnProp)({type:s.ClassList,defaultValue:new s.ClassList(s.ClassListFlags.unclassified)})],Clearance.prototype,"classList",void 0);r.__decorate([(0,n.AsnProp)({type:i.SecurityCategory,repeated:"set"})],Clearance.prototype,"securityCategories",void 0)},7195:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Holder=void 0;const r=A(4351);const n=A(3499);const s=A(462);const i=A(2288);const o=A(1952);class Holder{constructor(e={}){Object.assign(this,e)}}t.Holder=Holder;r.__decorate([(0,n.AsnProp)({type:s.IssuerSerial,implicit:true,context:0,optional:true})],Holder.prototype,"baseCertificateID",void 0);r.__decorate([(0,n.AsnProp)({type:i.GeneralNames,implicit:true,context:1,optional:true})],Holder.prototype,"entityName",void 0);r.__decorate([(0,n.AsnProp)({type:o.ObjectDigestInfo,implicit:true,context:2,optional:true})],Holder.prototype,"objectDigestInfo",void 0)},2639:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IetfAttrSyntax=t.IetfAttrSyntaxValueChoices=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class IetfAttrSyntaxValueChoices{constructor(e={}){Object.assign(this,e)}}t.IetfAttrSyntaxValueChoices=IetfAttrSyntaxValueChoices;r.__decorate([(0,n.AsnProp)({type:n.OctetString})],IetfAttrSyntaxValueChoices.prototype,"cotets",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],IetfAttrSyntaxValueChoices.prototype,"oid",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Utf8String})],IetfAttrSyntaxValueChoices.prototype,"string",void 0);class IetfAttrSyntax{constructor(e={}){this.values=[];Object.assign(this,e)}}t.IetfAttrSyntax=IetfAttrSyntax;r.__decorate([(0,n.AsnProp)({type:s.GeneralNames,implicit:true,context:0,optional:true})],IetfAttrSyntax.prototype,"policyAuthority",void 0);r.__decorate([(0,n.AsnProp)({type:IetfAttrSyntaxValueChoices,repeated:"sequence"})],IetfAttrSyntax.prototype,"values",void 0)},4263:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(3407),t);r.__exportStar(A(7881),t);r.__exportStar(A(480),t);r.__exportStar(A(8579),t);r.__exportStar(A(8160),t);r.__exportStar(A(7943),t);r.__exportStar(A(5881),t);r.__exportStar(A(2519),t);r.__exportStar(A(9091),t);r.__exportStar(A(7195),t);r.__exportStar(A(2639),t);r.__exportStar(A(462),t);r.__exportStar(A(1952),t);r.__exportStar(A(9851),t);r.__exportStar(A(3945),t);r.__exportStar(A(9422),t);r.__exportStar(A(6789),t);r.__exportStar(A(72),t);r.__exportStar(A(7260),t);r.__exportStar(A(5787),t)},462:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IssuerSerial=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class IssuerSerial{constructor(e={}){this.issuer=new s.GeneralNames;this.serial=new ArrayBuffer(0);this.issuerUID=new ArrayBuffer(0);Object.assign(this,e)}}t.IssuerSerial=IssuerSerial;r.__decorate([(0,n.AsnProp)({type:s.GeneralNames})],IssuerSerial.prototype,"issuer",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],IssuerSerial.prototype,"serial",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString,optional:true})],IssuerSerial.prototype,"issuerUID",void 0)},1952:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ObjectDigestInfo=t.DigestedObjectType=void 0;const r=A(4351);const n=A(3499);const s=A(2288);var i;(function(e){e[e["publicKey"]=0]="publicKey";e[e["publicKeyCert"]=1]="publicKeyCert";e[e["otherObjectTypes"]=2]="otherObjectTypes"})(i||(t.DigestedObjectType=i={}));class ObjectDigestInfo{constructor(e={}){this.digestedObjectType=i.publicKey;this.digestAlgorithm=new s.AlgorithmIdentifier;this.objectDigest=new ArrayBuffer(0);Object.assign(this,e)}}t.ObjectDigestInfo=ObjectDigestInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Enumerated})],ObjectDigestInfo.prototype,"digestedObjectType",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier,optional:true})],ObjectDigestInfo.prototype,"otherObjectTypeID",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],ObjectDigestInfo.prototype,"digestAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString})],ObjectDigestInfo.prototype,"objectDigest",void 0)},9851:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_at_clearance=t.id_at_role=t.id_at=t.id_aca_encAttrs=t.id_aca_group=t.id_aca_chargingIdentity=t.id_aca_accessIdentity=t.id_aca_authenticationInfo=t.id_aca=t.id_ce_targetInformation=t.id_pe_ac_proxying=t.id_pe_aaControls=t.id_pe_ac_auditIdentity=void 0;const r=A(2288);t.id_pe_ac_auditIdentity=`${r.id_pe}.4`;t.id_pe_aaControls=`${r.id_pe}.6`;t.id_pe_ac_proxying=`${r.id_pe}.10`;t.id_ce_targetInformation=`${r.id_ce}.55`;t.id_aca=`${r.id_pkix}.10`;t.id_aca_authenticationInfo=`${t.id_aca}.1`;t.id_aca_accessIdentity=`${t.id_aca}.2`;t.id_aca_chargingIdentity=`${t.id_aca}.3`;t.id_aca_group=`${t.id_aca}.4`;t.id_aca_encAttrs=`${t.id_aca}.6`;t.id_at="2.5.4";t.id_at_role=`${t.id_at}.72`;t.id_at_clearance="2.5.1.5.55"},3945:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.ProxyInfo=void 0;const n=A(4351);const s=A(3499);const i=A(7260);let o=r=class ProxyInfo extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.ProxyInfo=o;t.ProxyInfo=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:i.Targets})],o)},9422:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RoleSyntax=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class RoleSyntax{constructor(e={}){Object.assign(this,e)}}t.RoleSyntax=RoleSyntax;r.__decorate([(0,n.AsnProp)({type:s.GeneralNames,implicit:true,context:0,optional:true})],RoleSyntax.prototype,"roleAuthority",void 0);r.__decorate([(0,n.AsnProp)({type:s.GeneralName,implicit:true,context:1})],RoleSyntax.prototype,"roleName",void 0)},6789:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SecurityCategory=void 0;const r=A(4351);const n=A(3499);class SecurityCategory{constructor(e={}){this.type="";this.value=new ArrayBuffer(0);Object.assign(this,e)}}t.SecurityCategory=SecurityCategory;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier,implicit:true,context:0})],SecurityCategory.prototype,"type",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,implicit:true,context:1})],SecurityCategory.prototype,"value",void 0)},72:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SvceAuthInfo=void 0;const r=A(4351);const n=A(3499);const s=A(2288);class SvceAuthInfo{constructor(e={}){this.service=new s.GeneralName;this.ident=new s.GeneralName;Object.assign(this,e)}}t.SvceAuthInfo=SvceAuthInfo;r.__decorate([(0,n.AsnProp)({type:s.GeneralName})],SvceAuthInfo.prototype,"service",void 0);r.__decorate([(0,n.AsnProp)({type:s.GeneralName})],SvceAuthInfo.prototype,"ident",void 0);r.__decorate([(0,n.AsnProp)({type:n.OctetString,optional:true})],SvceAuthInfo.prototype,"authInfo",void 0)},7260:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.Targets=t.Target=t.TargetCert=void 0;const n=A(4351);const s=A(3499);const i=A(2288);const o=A(462);const a=A(1952);class TargetCert{constructor(e={}){this.targetCertificate=new o.IssuerSerial;Object.assign(this,e)}}t.TargetCert=TargetCert;n.__decorate([(0,s.AsnProp)({type:o.IssuerSerial})],TargetCert.prototype,"targetCertificate",void 0);n.__decorate([(0,s.AsnProp)({type:i.GeneralName,optional:true})],TargetCert.prototype,"targetName",void 0);n.__decorate([(0,s.AsnProp)({type:a.ObjectDigestInfo,optional:true})],TargetCert.prototype,"certDigestInfo",void 0);let c=class Target{constructor(e={}){Object.assign(this,e)}};t.Target=c;n.__decorate([(0,s.AsnProp)({type:i.GeneralName,context:0,implicit:true})],c.prototype,"targetName",void 0);n.__decorate([(0,s.AsnProp)({type:i.GeneralName,context:1,implicit:true})],c.prototype,"targetGroup",void 0);n.__decorate([(0,s.AsnProp)({type:TargetCert,context:2,implicit:true})],c.prototype,"targetCert",void 0);t.Target=c=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],c);let l=r=class Targets extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.Targets=l;t.Targets=l=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:c})],l)},5787:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.V2Form=void 0;const r=A(4351);const n=A(3499);const s=A(2288);const i=A(462);const o=A(1952);class V2Form{constructor(e={}){Object.assign(this,e)}}t.V2Form=V2Form;r.__decorate([(0,n.AsnProp)({type:s.GeneralNames,optional:true})],V2Form.prototype,"issuerName",void 0);r.__decorate([(0,n.AsnProp)({type:i.IssuerSerial,context:0,implicit:true,optional:true})],V2Form.prototype,"baseCertificateID",void 0);r.__decorate([(0,n.AsnProp)({type:o.ObjectDigestInfo,context:1,implicit:true,optional:true})],V2Form.prototype,"objectDigestInfo",void 0)},3166:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AlgorithmIdentifier=void 0;const r=A(4351);const n=A(3499);const s=A(2420);class AlgorithmIdentifier{constructor(e={}){this.algorithm="";Object.assign(this,e)}isEqual(e){return e instanceof AlgorithmIdentifier&&e.algorithm==this.algorithm&&(e.parameters&&this.parameters&&s.isEqual(e.parameters,this.parameters)||e.parameters===this.parameters)}}t.AlgorithmIdentifier=AlgorithmIdentifier;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],AlgorithmIdentifier.prototype,"algorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,optional:true})],AlgorithmIdentifier.prototype,"parameters",void 0)},2171:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Attribute=void 0;const r=A(4351);const n=A(3499);class Attribute{constructor(e={}){this.type="";this.values=[];Object.assign(this,e)}}t.Attribute=Attribute;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],Attribute.prototype,"type",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,repeated:"set"})],Attribute.prototype,"values",void 0)},5974:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Certificate=void 0;const r=A(4351);const n=A(3499);const s=A(3166);const i=A(9117);class Certificate{constructor(e={}){this.tbsCertificate=new i.TBSCertificate;this.signatureAlgorithm=new s.AlgorithmIdentifier;this.signatureValue=new ArrayBuffer(0);Object.assign(this,e)}}t.Certificate=Certificate;r.__decorate([(0,n.AsnProp)({type:i.TBSCertificate})],Certificate.prototype,"tbsCertificate",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],Certificate.prototype,"signatureAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString})],Certificate.prototype,"signatureValue",void 0)},3554:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CertificateList=void 0;const r=A(4351);const n=A(3499);const s=A(3166);const i=A(3113);class CertificateList{constructor(e={}){this.tbsCertList=new i.TBSCertList;this.signatureAlgorithm=new s.AlgorithmIdentifier;this.signature=new ArrayBuffer(0);Object.assign(this,e)}}t.CertificateList=CertificateList;r.__decorate([(0,n.AsnProp)({type:i.TBSCertList})],CertificateList.prototype,"tbsCertList",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],CertificateList.prototype,"signatureAlgorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString})],CertificateList.prototype,"signature",void 0)},7908:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.Extensions=t.Extension=void 0;const n=A(4351);const s=A(3499);class Extension{constructor(e={}){this.extnID="";this.critical=Extension.CRITICAL;this.extnValue=new s.OctetString;Object.assign(this,e)}}t.Extension=Extension;Extension.CRITICAL=false;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],Extension.prototype,"extnID",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Boolean,defaultValue:Extension.CRITICAL})],Extension.prototype,"critical",void 0);n.__decorate([(0,s.AsnProp)({type:s.OctetString})],Extension.prototype,"extnValue",void 0);let i=r=class Extensions extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.Extensions=i;t.Extensions=i=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:Extension})],i)},677:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.AuthorityInfoAccessSyntax=t.AccessDescription=t.id_pe_authorityInfoAccess=void 0;const n=A(4351);const s=A(3499);const i=A(3670);const o=A(725);t.id_pe_authorityInfoAccess=`${o.id_pe}.1`;class AccessDescription{constructor(e={}){this.accessMethod="";this.accessLocation=new i.GeneralName;Object.assign(this,e)}}t.AccessDescription=AccessDescription;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],AccessDescription.prototype,"accessMethod",void 0);n.__decorate([(0,s.AsnProp)({type:i.GeneralName})],AccessDescription.prototype,"accessLocation",void 0);let a=r=class AuthorityInfoAccessSyntax extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.AuthorityInfoAccessSyntax=a;t.AuthorityInfoAccessSyntax=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:AccessDescription})],a)},1583:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AuthorityKeyIdentifier=t.KeyIdentifier=t.id_ce_authorityKeyIdentifier=void 0;const r=A(4351);const n=A(3499);const s=A(3670);const i=A(725);t.id_ce_authorityKeyIdentifier=`${i.id_ce}.35`;class KeyIdentifier extends n.OctetString{}t.KeyIdentifier=KeyIdentifier;class AuthorityKeyIdentifier{constructor(e={}){if(e){Object.assign(this,e)}}}t.AuthorityKeyIdentifier=AuthorityKeyIdentifier;r.__decorate([(0,n.AsnProp)({type:KeyIdentifier,context:0,optional:true,implicit:true})],AuthorityKeyIdentifier.prototype,"keyIdentifier",void 0);r.__decorate([(0,n.AsnProp)({type:s.GeneralName,context:1,optional:true,implicit:true,repeated:"sequence"})],AuthorityKeyIdentifier.prototype,"authorityCertIssuer",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,context:2,optional:true,implicit:true,converter:n.AsnIntegerArrayBufferConverter})],AuthorityKeyIdentifier.prototype,"authorityCertSerialNumber",void 0)},3811:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BasicConstraints=t.id_ce_basicConstraints=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_basicConstraints=`${s.id_ce}.19`;class BasicConstraints{constructor(e={}){this.cA=false;Object.assign(this,e)}}t.BasicConstraints=BasicConstraints;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Boolean,defaultValue:false})],BasicConstraints.prototype,"cA",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,optional:true})],BasicConstraints.prototype,"pathLenConstraint",void 0)},3151:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.CertificateIssuer=t.id_ce_certificateIssuer=void 0;const n=A(4351);const s=A(3499);const i=A(3201);const o=A(725);t.id_ce_certificateIssuer=`${o.id_ce}.29`;let a=r=class CertificateIssuer extends i.GeneralNames{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.CertificateIssuer=a;t.CertificateIssuer=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],a)},4157:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.CertificatePolicies=t.PolicyInformation=t.PolicyQualifierInfo=t.Qualifier=t.UserNotice=t.NoticeReference=t.DisplayText=t.id_ce_certificatePolicies_anyPolicy=t.id_ce_certificatePolicies=void 0;const n=A(4351);const s=A(3499);const i=A(725);t.id_ce_certificatePolicies=`${i.id_ce}.32`;t.id_ce_certificatePolicies_anyPolicy=`${t.id_ce_certificatePolicies}.0`;let o=class DisplayText{constructor(e={}){Object.assign(this,e)}toString(){return this.ia5String||this.visibleString||this.bmpString||this.utf8String||""}};t.DisplayText=o;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.IA5String})],o.prototype,"ia5String",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.VisibleString})],o.prototype,"visibleString",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.BmpString})],o.prototype,"bmpString",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Utf8String})],o.prototype,"utf8String",void 0);t.DisplayText=o=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],o);class NoticeReference{constructor(e={}){this.organization=new o;this.noticeNumbers=[];Object.assign(this,e)}}t.NoticeReference=NoticeReference;n.__decorate([(0,s.AsnProp)({type:o})],NoticeReference.prototype,"organization",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,repeated:"sequence"})],NoticeReference.prototype,"noticeNumbers",void 0);class UserNotice{constructor(e={}){Object.assign(this,e)}}t.UserNotice=UserNotice;n.__decorate([(0,s.AsnProp)({type:NoticeReference,optional:true})],UserNotice.prototype,"noticeRef",void 0);n.__decorate([(0,s.AsnProp)({type:o,optional:true})],UserNotice.prototype,"explicitText",void 0);let a=class Qualifier{constructor(e={}){Object.assign(this,e)}};t.Qualifier=a;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.IA5String})],a.prototype,"cPSuri",void 0);n.__decorate([(0,s.AsnProp)({type:UserNotice})],a.prototype,"userNotice",void 0);t.Qualifier=a=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],a);class PolicyQualifierInfo{constructor(e={}){this.policyQualifierId="";this.qualifier=new ArrayBuffer(0);Object.assign(this,e)}}t.PolicyQualifierInfo=PolicyQualifierInfo;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],PolicyQualifierInfo.prototype,"policyQualifierId",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Any})],PolicyQualifierInfo.prototype,"qualifier",void 0);class PolicyInformation{constructor(e={}){this.policyIdentifier="";Object.assign(this,e)}}t.PolicyInformation=PolicyInformation;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],PolicyInformation.prototype,"policyIdentifier",void 0);n.__decorate([(0,s.AsnProp)({type:PolicyQualifierInfo,repeated:"sequence",optional:true})],PolicyInformation.prototype,"policyQualifiers",void 0);let c=r=class CertificatePolicies extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.CertificatePolicies=c;t.CertificatePolicies=c=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:PolicyInformation})],c)},1335:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseCRLNumber=t.id_ce_deltaCRLIndicator=void 0;const r=A(4351);const n=A(3499);const s=A(725);const i=A(8777);t.id_ce_deltaCRLIndicator=`${s.id_ce}.27`;let o=class BaseCRLNumber extends i.CRLNumber{};t.BaseCRLNumber=o;t.BaseCRLNumber=o=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],o)},499:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.CRLDistributionPoints=t.DistributionPoint=t.DistributionPointName=t.Reason=t.ReasonFlags=t.id_ce_cRLDistributionPoints=void 0;const n=A(4351);const s=A(3499);const i=A(7429);const o=A(3670);const a=A(725);t.id_ce_cRLDistributionPoints=`${a.id_ce}.31`;var c;(function(e){e[e["unused"]=1]="unused";e[e["keyCompromise"]=2]="keyCompromise";e[e["cACompromise"]=4]="cACompromise";e[e["affiliationChanged"]=8]="affiliationChanged";e[e["superseded"]=16]="superseded";e[e["cessationOfOperation"]=32]="cessationOfOperation";e[e["certificateHold"]=64]="certificateHold";e[e["privilegeWithdrawn"]=128]="privilegeWithdrawn";e[e["aACompromise"]=256]="aACompromise"})(c||(t.ReasonFlags=c={}));class Reason extends s.BitString{toJSON(){const e=[];const t=this.toNumber();if(t&c.aACompromise){e.push("aACompromise")}if(t&c.affiliationChanged){e.push("affiliationChanged")}if(t&c.cACompromise){e.push("cACompromise")}if(t&c.certificateHold){e.push("certificateHold")}if(t&c.cessationOfOperation){e.push("cessationOfOperation")}if(t&c.keyCompromise){e.push("keyCompromise")}if(t&c.privilegeWithdrawn){e.push("privilegeWithdrawn")}if(t&c.superseded){e.push("superseded")}if(t&c.unused){e.push("unused")}return e}toString(){return`[${this.toJSON().join(", ")}]`}}t.Reason=Reason;let l=class DistributionPointName{constructor(e={}){Object.assign(this,e)}};t.DistributionPointName=l;n.__decorate([(0,s.AsnProp)({type:o.GeneralName,context:0,repeated:"sequence",implicit:true})],l.prototype,"fullName",void 0);n.__decorate([(0,s.AsnProp)({type:i.RelativeDistinguishedName,context:1,implicit:true})],l.prototype,"nameRelativeToCRLIssuer",void 0);t.DistributionPointName=l=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Choice})],l);class DistributionPoint{constructor(e={}){Object.assign(this,e)}}t.DistributionPoint=DistributionPoint;n.__decorate([(0,s.AsnProp)({type:l,context:0,optional:true})],DistributionPoint.prototype,"distributionPoint",void 0);n.__decorate([(0,s.AsnProp)({type:Reason,context:1,optional:true,implicit:true})],DistributionPoint.prototype,"reasons",void 0);n.__decorate([(0,s.AsnProp)({type:o.GeneralName,context:2,optional:true,repeated:"sequence",implicit:true})],DistributionPoint.prototype,"cRLIssuer",void 0);let u=r=class CRLDistributionPoints extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.CRLDistributionPoints=u;t.CRLDistributionPoints=u=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:DistributionPoint})],u)},0:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.FreshestCRL=t.id_ce_freshestCRL=void 0;const n=A(4351);const s=A(3499);const i=A(725);const o=A(499);t.id_ce_freshestCRL=`${i.id_ce}.46`;let a=r=class FreshestCRL extends o.CRLDistributionPoints{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.FreshestCRL=a;t.FreshestCRL=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:o.DistributionPoint})],a)},3305:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IssuingDistributionPoint=t.id_ce_issuingDistributionPoint=void 0;const r=A(4351);const n=A(3499);const s=A(499);const i=A(725);const o=A(3499);t.id_ce_issuingDistributionPoint=`${i.id_ce}.28`;class IssuingDistributionPoint{constructor(e={}){this.onlyContainsUserCerts=IssuingDistributionPoint.ONLY;this.onlyContainsCACerts=IssuingDistributionPoint.ONLY;this.indirectCRL=IssuingDistributionPoint.ONLY;this.onlyContainsAttributeCerts=IssuingDistributionPoint.ONLY;Object.assign(this,e)}}t.IssuingDistributionPoint=IssuingDistributionPoint;IssuingDistributionPoint.ONLY=false;r.__decorate([(0,n.AsnProp)({type:s.DistributionPointName,context:0,optional:true})],IssuingDistributionPoint.prototype,"distributionPoint",void 0);r.__decorate([(0,n.AsnProp)({type:o.AsnPropTypes.Boolean,context:1,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"onlyContainsUserCerts",void 0);r.__decorate([(0,n.AsnProp)({type:o.AsnPropTypes.Boolean,context:2,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"onlyContainsCACerts",void 0);r.__decorate([(0,n.AsnProp)({type:s.Reason,context:3,optional:true,implicit:true})],IssuingDistributionPoint.prototype,"onlySomeReasons",void 0);r.__decorate([(0,n.AsnProp)({type:o.AsnPropTypes.Boolean,context:4,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"indirectCRL",void 0);r.__decorate([(0,n.AsnProp)({type:o.AsnPropTypes.Boolean,context:5,defaultValue:IssuingDistributionPoint.ONLY,implicit:true})],IssuingDistributionPoint.prototype,"onlyContainsAttributeCerts",void 0)},8777:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CRLNumber=t.id_ce_cRLNumber=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_cRLNumber=`${s.id_ce}.20`;let i=class CRLNumber{constructor(e=0){this.value=e}};t.CRLNumber=i;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer})],i.prototype,"value",void 0);t.CRLNumber=i=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],i)},8857:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CRLReason=t.CRLReasons=t.id_ce_cRLReasons=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_cRLReasons=`${s.id_ce}.21`;var i;(function(e){e[e["unspecified"]=0]="unspecified";e[e["keyCompromise"]=1]="keyCompromise";e[e["cACompromise"]=2]="cACompromise";e[e["affiliationChanged"]=3]="affiliationChanged";e[e["superseded"]=4]="superseded";e[e["cessationOfOperation"]=5]="cessationOfOperation";e[e["certificateHold"]=6]="certificateHold";e[e["removeFromCRL"]=8]="removeFromCRL";e[e["privilegeWithdrawn"]=9]="privilegeWithdrawn";e[e["aACompromise"]=10]="aACompromise"})(i||(t.CRLReasons=i={}));let o=class CRLReason{constructor(e=i.unspecified){this.reason=i.unspecified;this.reason=e}toJSON(){return i[this.reason]}toString(){return this.toJSON()}};t.CRLReason=o;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Enumerated})],o.prototype,"reason",void 0);t.CRLReason=o=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],o)},2382:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EntrustVersionInfo=t.EntrustInfo=t.EntrustInfoFlags=t.id_entrust_entrustVersInfo=void 0;const r=A(4351);const n=A(3499);t.id_entrust_entrustVersInfo="1.2.840.113533.7.65.0";var s;(function(e){e[e["keyUpdateAllowed"]=1]="keyUpdateAllowed";e[e["newExtensions"]=2]="newExtensions";e[e["pKIXCertificate"]=4]="pKIXCertificate"})(s||(t.EntrustInfoFlags=s={}));class EntrustInfo extends n.BitString{toJSON(){const e=[];const t=this.toNumber();if(t&s.pKIXCertificate){e.push("pKIXCertificate")}if(t&s.newExtensions){e.push("newExtensions")}if(t&s.keyUpdateAllowed){e.push("keyUpdateAllowed")}return e}toString(){return`[${this.toJSON().join(", ")}]`}}t.EntrustInfo=EntrustInfo;class EntrustVersionInfo{constructor(e={}){this.entrustVers="";this.entrustInfoFlags=new EntrustInfo;Object.assign(this,e)}}t.EntrustVersionInfo=EntrustVersionInfo;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralString})],EntrustVersionInfo.prototype,"entrustVers",void 0);r.__decorate([(0,n.AsnProp)({type:EntrustInfo})],EntrustVersionInfo.prototype,"entrustInfoFlags",void 0)},7993:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.id_kp_OCSPSigning=t.id_kp_timeStamping=t.id_kp_emailProtection=t.id_kp_codeSigning=t.id_kp_clientAuth=t.id_kp_serverAuth=t.anyExtendedKeyUsage=t.ExtendedKeyUsage=t.id_ce_extKeyUsage=void 0;const n=A(4351);const s=A(3499);const i=A(725);t.id_ce_extKeyUsage=`${i.id_ce}.37`;let o=r=class ExtendedKeyUsage extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.ExtendedKeyUsage=o;t.ExtendedKeyUsage=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:s.AsnPropTypes.ObjectIdentifier})],o);t.anyExtendedKeyUsage=`${t.id_ce_extKeyUsage}.0`;t.id_kp_serverAuth=`${i.id_kp}.1`;t.id_kp_clientAuth=`${i.id_kp}.2`;t.id_kp_codeSigning=`${i.id_kp}.3`;t.id_kp_emailProtection=`${i.id_kp}.4`;t.id_kp_timeStamping=`${i.id_kp}.8`;t.id_kp_OCSPSigning=`${i.id_kp}.9`},6457:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(677),t);r.__exportStar(A(1583),t);r.__exportStar(A(3811),t);r.__exportStar(A(3151),t);r.__exportStar(A(4157),t);r.__exportStar(A(1335),t);r.__exportStar(A(499),t);r.__exportStar(A(0),t);r.__exportStar(A(3305),t);r.__exportStar(A(8777),t);r.__exportStar(A(8857),t);r.__exportStar(A(7993),t);r.__exportStar(A(1622),t);r.__exportStar(A(4932),t);r.__exportStar(A(6330),t);r.__exportStar(A(6744),t);r.__exportStar(A(7543),t);r.__exportStar(A(5113),t);r.__exportStar(A(3230),t);r.__exportStar(A(8555),t);r.__exportStar(A(2007),t);r.__exportStar(A(3651),t);r.__exportStar(A(5096),t);r.__exportStar(A(2382),t);r.__exportStar(A(7299),t)},1622:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InhibitAnyPolicy=t.id_ce_inhibitAnyPolicy=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_inhibitAnyPolicy=`${s.id_ce}.54`;let i=class InhibitAnyPolicy{constructor(e=new ArrayBuffer(0)){this.value=e}};t.InhibitAnyPolicy=i;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],i.prototype,"value",void 0);t.InhibitAnyPolicy=i=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],i)},4932:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InvalidityDate=t.id_ce_invalidityDate=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_invalidityDate=`${s.id_ce}.24`;let i=class InvalidityDate{constructor(e){this.value=new Date;if(e){this.value=e}}};t.InvalidityDate=i;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime})],i.prototype,"value",void 0);t.InvalidityDate=i=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],i)},6330:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.IssueAlternativeName=t.id_ce_issuerAltName=void 0;const n=A(4351);const s=A(3499);const i=A(3201);const o=A(725);t.id_ce_issuerAltName=`${o.id_ce}.18`;let a=r=class IssueAlternativeName extends i.GeneralNames{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.IssueAlternativeName=a;t.IssueAlternativeName=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],a)},6744:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KeyUsage=t.KeyUsageFlags=t.id_ce_keyUsage=void 0;const r=A(3499);const n=A(725);t.id_ce_keyUsage=`${n.id_ce}.15`;var s;(function(e){e[e["digitalSignature"]=1]="digitalSignature";e[e["nonRepudiation"]=2]="nonRepudiation";e[e["keyEncipherment"]=4]="keyEncipherment";e[e["dataEncipherment"]=8]="dataEncipherment";e[e["keyAgreement"]=16]="keyAgreement";e[e["keyCertSign"]=32]="keyCertSign";e[e["cRLSign"]=64]="cRLSign";e[e["encipherOnly"]=128]="encipherOnly";e[e["decipherOnly"]=256]="decipherOnly"})(s||(t.KeyUsageFlags=s={}));class KeyUsage extends r.BitString{toJSON(){const e=this.toNumber();const t=[];if(e&s.cRLSign){t.push("crlSign")}if(e&s.dataEncipherment){t.push("dataEncipherment")}if(e&s.decipherOnly){t.push("decipherOnly")}if(e&s.digitalSignature){t.push("digitalSignature")}if(e&s.encipherOnly){t.push("encipherOnly")}if(e&s.keyAgreement){t.push("keyAgreement")}if(e&s.keyCertSign){t.push("keyCertSign")}if(e&s.keyEncipherment){t.push("keyEncipherment")}if(e&s.nonRepudiation){t.push("nonRepudiation")}return t}toString(){return`[${this.toJSON().join(", ")}]`}}t.KeyUsage=KeyUsage},7543:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.NameConstraints=t.GeneralSubtrees=t.GeneralSubtree=t.id_ce_nameConstraints=void 0;const n=A(4351);const s=A(3499);const i=A(3670);const o=A(725);t.id_ce_nameConstraints=`${o.id_ce}.30`;class GeneralSubtree{constructor(e={}){this.base=new i.GeneralName;this.minimum=0;Object.assign(this,e)}}t.GeneralSubtree=GeneralSubtree;n.__decorate([(0,s.AsnProp)({type:i.GeneralName})],GeneralSubtree.prototype,"base",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,context:0,defaultValue:0,implicit:true})],GeneralSubtree.prototype,"minimum",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.Integer,context:1,optional:true,implicit:true})],GeneralSubtree.prototype,"maximum",void 0);let a=r=class GeneralSubtrees extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.GeneralSubtrees=a;t.GeneralSubtrees=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:GeneralSubtree})],a);class NameConstraints{constructor(e={}){Object.assign(this,e)}}t.NameConstraints=NameConstraints;n.__decorate([(0,s.AsnProp)({type:a,context:0,optional:true,implicit:true})],NameConstraints.prototype,"permittedSubtrees",void 0);n.__decorate([(0,s.AsnProp)({type:a,context:1,optional:true,implicit:true})],NameConstraints.prototype,"excludedSubtrees",void 0)},5113:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PolicyConstraints=t.id_ce_policyConstraints=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_policyConstraints=`${s.id_ce}.36`;class PolicyConstraints{constructor(e={}){Object.assign(this,e)}}t.PolicyConstraints=PolicyConstraints;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,context:0,implicit:true,optional:true,converter:n.AsnIntegerArrayBufferConverter})],PolicyConstraints.prototype,"requireExplicitPolicy",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,context:1,implicit:true,optional:true,converter:n.AsnIntegerArrayBufferConverter})],PolicyConstraints.prototype,"inhibitPolicyMapping",void 0)},3230:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.PolicyMappings=t.PolicyMapping=t.id_ce_policyMappings=void 0;const n=A(4351);const s=A(3499);const i=A(725);t.id_ce_policyMappings=`${i.id_ce}.33`;class PolicyMapping{constructor(e={}){this.issuerDomainPolicy="";this.subjectDomainPolicy="";Object.assign(this,e)}}t.PolicyMapping=PolicyMapping;n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],PolicyMapping.prototype,"issuerDomainPolicy",void 0);n.__decorate([(0,s.AsnProp)({type:s.AsnPropTypes.ObjectIdentifier})],PolicyMapping.prototype,"subjectDomainPolicy",void 0);let o=r=class PolicyMappings extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.PolicyMappings=o;t.PolicyMappings=o=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:PolicyMapping})],o)},5096:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PrivateKeyUsagePeriod=t.id_ce_privateKeyUsagePeriod=void 0;const r=A(4351);const n=A(3499);const s=A(725);t.id_ce_privateKeyUsagePeriod=`${s.id_ce}.16`;class PrivateKeyUsagePeriod{constructor(e={}){Object.assign(this,e)}}t.PrivateKeyUsagePeriod=PrivateKeyUsagePeriod;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime,context:0,implicit:true,optional:true})],PrivateKeyUsagePeriod.prototype,"notBefore",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime,context:1,implicit:true,optional:true})],PrivateKeyUsagePeriod.prototype,"notAfter",void 0)},8555:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.SubjectAlternativeName=t.id_ce_subjectAltName=void 0;const n=A(4351);const s=A(3499);const i=A(3201);const o=A(725);t.id_ce_subjectAltName=`${o.id_ce}.17`;let a=r=class SubjectAlternativeName extends i.GeneralNames{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.SubjectAlternativeName=a;t.SubjectAlternativeName=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence})],a)},2007:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.SubjectDirectoryAttributes=t.id_ce_subjectDirectoryAttributes=void 0;const n=A(4351);const s=A(3499);const i=A(2171);const o=A(725);t.id_ce_subjectDirectoryAttributes=`${o.id_ce}.9`;let a=r=class SubjectDirectoryAttributes extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.SubjectDirectoryAttributes=a;t.SubjectDirectoryAttributes=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:i.Attribute})],a)},7299:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.SubjectInfoAccessSyntax=t.id_pe_subjectInfoAccess=void 0;const n=A(4351);const s=A(3499);const i=A(725);const o=A(677);t.id_pe_subjectInfoAccess=`${i.id_pe}.11`;let a=r=class SubjectInfoAccessSyntax extends s.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.SubjectInfoAccessSyntax=a;t.SubjectInfoAccessSyntax=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:o.AccessDescription})],a)},3651:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SubjectKeyIdentifier=t.id_ce_subjectKeyIdentifier=void 0;const r=A(725);const n=A(1583);t.id_ce_subjectKeyIdentifier=`${r.id_ce}.14`;class SubjectKeyIdentifier extends n.KeyIdentifier{}t.SubjectKeyIdentifier=SubjectKeyIdentifier},3670:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GeneralName=t.EDIPartyName=t.OtherName=t.AsnIpConverter=void 0;const r=A(4351);const n=A(3499);const s=A(621);const i=A(7429);t.AsnIpConverter={fromASN:e=>s.IpConverter.toString(n.AsnOctetStringConverter.fromASN(e)),toASN:e=>n.AsnOctetStringConverter.toASN(s.IpConverter.fromString(e))};class OtherName{constructor(e={}){this.typeId="";this.value=new ArrayBuffer(0);Object.assign(this,e)}}t.OtherName=OtherName;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier})],OtherName.prototype,"typeId",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,context:0})],OtherName.prototype,"value",void 0);class EDIPartyName{constructor(e={}){this.partyName=new i.DirectoryString;Object.assign(this,e)}}t.EDIPartyName=EDIPartyName;r.__decorate([(0,n.AsnProp)({type:i.DirectoryString,optional:true,context:0,implicit:true})],EDIPartyName.prototype,"nameAssigner",void 0);r.__decorate([(0,n.AsnProp)({type:i.DirectoryString,context:1,implicit:true})],EDIPartyName.prototype,"partyName",void 0);let o=class GeneralName{constructor(e={}){Object.assign(this,e)}};t.GeneralName=o;r.__decorate([(0,n.AsnProp)({type:OtherName,context:0,implicit:true})],o.prototype,"otherName",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.IA5String,context:1,implicit:true})],o.prototype,"rfc822Name",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.IA5String,context:2,implicit:true})],o.prototype,"dNSName",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Any,context:3,implicit:true})],o.prototype,"x400Address",void 0);r.__decorate([(0,n.AsnProp)({type:i.Name,context:4,implicit:false})],o.prototype,"directoryName",void 0);r.__decorate([(0,n.AsnProp)({type:EDIPartyName,context:5})],o.prototype,"ediPartyName",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.IA5String,context:6,implicit:true})],o.prototype,"uniformResourceIdentifier",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.OctetString,context:7,implicit:true,converter:t.AsnIpConverter})],o.prototype,"iPAddress",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.ObjectIdentifier,context:8,implicit:true})],o.prototype,"registeredID",void 0);t.GeneralName=o=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],o)},3201:(e,t,A)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.GeneralNames=void 0;const n=A(4351);const s=A(3499);const i=A(3670);const o=A(3499);let a=r=class GeneralNames extends o.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.GeneralNames=a;t.GeneralNames=a=r=n.__decorate([(0,s.AsnType)({type:s.AsnTypeTypes.Sequence,itemType:i.GeneralName})],a)},2288:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=A(4351);r.__exportStar(A(6457),t);r.__exportStar(A(3166),t);r.__exportStar(A(2171),t);r.__exportStar(A(5974),t);r.__exportStar(A(3554),t);r.__exportStar(A(7908),t);r.__exportStar(A(3670),t);r.__exportStar(A(3201),t);r.__exportStar(A(7429),t);r.__exportStar(A(725),t);r.__exportStar(A(4003),t);r.__exportStar(A(3113),t);r.__exportStar(A(9117),t);r.__exportStar(A(1768),t);r.__exportStar(A(2826),t);r.__exportStar(A(758),t)},621:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IpConverter=void 0;const r=A(7263);const n=A(2420);class IpConverter{static decodeIP(e){if(e.length===64&&parseInt(e,16)===0){return"::/0"}if(e.length!==16){return e}const t=parseInt(e.slice(8),16).toString(2).split("").reduce(((e,t)=>e+ +t),0);let A=e.slice(0,8).replace(/(.{2})/g,(e=>`${parseInt(e,16)}.`));A=A.slice(0,-1);return`${A}/${t}`}static toString(e){if(e.byteLength===4||e.byteLength===16){const t=new Uint8Array(e);const A=r.fromByteArray(Array.from(t));return A.toString()}return this.decodeIP(n.Convert.ToHex(e))}static fromString(e){const t=r.parse(e);return new Uint8Array(t.toByteArray()).buffer}}t.IpConverter=IpConverter},7429:(e,t,A)=>{"use strict";var r,n,s;Object.defineProperty(t,"__esModule",{value:true});t.Name=t.RDNSequence=t.RelativeDistinguishedName=t.AttributeTypeAndValue=t.AttributeValue=t.DirectoryString=void 0;const i=A(4351);const o=A(3499);const a=A(2420);let c=class DirectoryString{constructor(e={}){Object.assign(this,e)}toString(){return this.bmpString||this.printableString||this.teletexString||this.universalString||this.utf8String||""}};t.DirectoryString=c;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.TeletexString})],c.prototype,"teletexString",void 0);i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.PrintableString})],c.prototype,"printableString",void 0);i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.UniversalString})],c.prototype,"universalString",void 0);i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.Utf8String})],c.prototype,"utf8String",void 0);i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.BmpString})],c.prototype,"bmpString",void 0);t.DirectoryString=c=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],c);let l=class AttributeValue extends c{constructor(e={}){super(e);Object.assign(this,e)}toString(){return this.ia5String||(this.anyValue?a.Convert.ToHex(this.anyValue):super.toString())}};t.AttributeValue=l;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.IA5String})],l.prototype,"ia5String",void 0);i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.Any})],l.prototype,"anyValue",void 0);t.AttributeValue=l=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Choice})],l);class AttributeTypeAndValue{constructor(e={}){this.type="";this.value=new l;Object.assign(this,e)}}t.AttributeTypeAndValue=AttributeTypeAndValue;i.__decorate([(0,o.AsnProp)({type:o.AsnPropTypes.ObjectIdentifier})],AttributeTypeAndValue.prototype,"type",void 0);i.__decorate([(0,o.AsnProp)({type:l})],AttributeTypeAndValue.prototype,"value",void 0);let u=r=class RelativeDistinguishedName extends o.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,r.prototype)}};t.RelativeDistinguishedName=u;t.RelativeDistinguishedName=u=r=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Set,itemType:AttributeTypeAndValue})],u);let g=n=class RDNSequence extends o.AsnArray{constructor(e){super(e);Object.setPrototypeOf(this,n.prototype)}};t.RDNSequence=g;t.RDNSequence=g=n=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence,itemType:u})],g);let h=s=class Name extends g{constructor(e){super(e);Object.setPrototypeOf(this,s.prototype)}};t.Name=h;t.Name=h=s=i.__decorate([(0,o.AsnType)({type:o.AsnTypeTypes.Sequence})],h)},725:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.id_ce=t.id_ad_caRepository=t.id_ad_timeStamping=t.id_ad_caIssuers=t.id_ad_ocsp=t.id_qt_unotice=t.id_qt_csp=t.id_ad=t.id_kp=t.id_qt=t.id_pe=t.id_pkix=void 0;t.id_pkix="1.3.6.1.5.5.7";t.id_pe=`${t.id_pkix}.1`;t.id_qt=`${t.id_pkix}.2`;t.id_kp=`${t.id_pkix}.3`;t.id_ad=`${t.id_pkix}.48`;t.id_qt_csp=`${t.id_qt}.1`;t.id_qt_unotice=`${t.id_qt}.2`;t.id_ad_ocsp=`${t.id_ad}.1`;t.id_ad_caIssuers=`${t.id_ad}.2`;t.id_ad_timeStamping=`${t.id_ad}.3`;t.id_ad_caRepository=`${t.id_ad}.5`;t.id_ce="2.5.29"},4003:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SubjectPublicKeyInfo=void 0;const r=A(4351);const n=A(3499);const s=A(3166);class SubjectPublicKeyInfo{constructor(e={}){this.algorithm=new s.AlgorithmIdentifier;this.subjectPublicKey=new ArrayBuffer(0);Object.assign(this,e)}}t.SubjectPublicKeyInfo=SubjectPublicKeyInfo;r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],SubjectPublicKeyInfo.prototype,"algorithm",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString})],SubjectPublicKeyInfo.prototype,"subjectPublicKey",void 0)},3113:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TBSCertList=t.RevokedCertificate=void 0;const r=A(4351);const n=A(3499);const s=A(3166);const i=A(7429);const o=A(1768);const a=A(7908);class RevokedCertificate{constructor(e={}){this.userCertificate=new ArrayBuffer(0);this.revocationDate=new o.Time;Object.assign(this,e)}}t.RevokedCertificate=RevokedCertificate;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],RevokedCertificate.prototype,"userCertificate",void 0);r.__decorate([(0,n.AsnProp)({type:o.Time})],RevokedCertificate.prototype,"revocationDate",void 0);r.__decorate([(0,n.AsnProp)({type:a.Extension,optional:true,repeated:"sequence"})],RevokedCertificate.prototype,"crlEntryExtensions",void 0);class TBSCertList{constructor(e={}){this.signature=new s.AlgorithmIdentifier;this.issuer=new i.Name;this.thisUpdate=new o.Time;Object.assign(this,e)}}t.TBSCertList=TBSCertList;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,optional:true})],TBSCertList.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],TBSCertList.prototype,"signature",void 0);r.__decorate([(0,n.AsnProp)({type:i.Name})],TBSCertList.prototype,"issuer",void 0);r.__decorate([(0,n.AsnProp)({type:o.Time})],TBSCertList.prototype,"thisUpdate",void 0);r.__decorate([(0,n.AsnProp)({type:o.Time,optional:true})],TBSCertList.prototype,"nextUpdate",void 0);r.__decorate([(0,n.AsnProp)({type:RevokedCertificate,repeated:"sequence",optional:true})],TBSCertList.prototype,"revokedCertificates",void 0);r.__decorate([(0,n.AsnProp)({type:a.Extension,optional:true,context:0,repeated:"sequence"})],TBSCertList.prototype,"crlExtensions",void 0)},9117:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TBSCertificate=void 0;const r=A(4351);const n=A(3499);const s=A(3166);const i=A(7429);const o=A(4003);const a=A(758);const c=A(7908);const l=A(2826);class TBSCertificate{constructor(e={}){this.version=l.Version.v1;this.serialNumber=new ArrayBuffer(0);this.signature=new s.AlgorithmIdentifier;this.issuer=new i.Name;this.validity=new a.Validity;this.subject=new i.Name;this.subjectPublicKeyInfo=new o.SubjectPublicKeyInfo;Object.assign(this,e)}}t.TBSCertificate=TBSCertificate;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,context:0,defaultValue:l.Version.v1})],TBSCertificate.prototype,"version",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.Integer,converter:n.AsnIntegerArrayBufferConverter})],TBSCertificate.prototype,"serialNumber",void 0);r.__decorate([(0,n.AsnProp)({type:s.AlgorithmIdentifier})],TBSCertificate.prototype,"signature",void 0);r.__decorate([(0,n.AsnProp)({type:i.Name})],TBSCertificate.prototype,"issuer",void 0);r.__decorate([(0,n.AsnProp)({type:a.Validity})],TBSCertificate.prototype,"validity",void 0);r.__decorate([(0,n.AsnProp)({type:i.Name})],TBSCertificate.prototype,"subject",void 0);r.__decorate([(0,n.AsnProp)({type:o.SubjectPublicKeyInfo})],TBSCertificate.prototype,"subjectPublicKeyInfo",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString,context:1,implicit:true,optional:true})],TBSCertificate.prototype,"issuerUniqueID",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.BitString,context:2,implicit:true,optional:true})],TBSCertificate.prototype,"subjectUniqueID",void 0);r.__decorate([(0,n.AsnProp)({type:c.Extensions,context:3,optional:true})],TBSCertificate.prototype,"extensions",void 0)},1768:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Time=void 0;const r=A(4351);const n=A(3499);let s=class Time{constructor(e){if(e){if(typeof e==="string"||typeof e==="number"||e instanceof Date){const t=new Date(e);if(t.getUTCFullYear()>2049){this.generalTime=t}else{this.utcTime=t}}else{Object.assign(this,e)}}}getTime(){const e=this.utcTime||this.generalTime;if(!e){throw new Error("Cannot get time from CHOICE object")}return e}};t.Time=s;r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.UTCTime})],s.prototype,"utcTime",void 0);r.__decorate([(0,n.AsnProp)({type:n.AsnPropTypes.GeneralizedTime})],s.prototype,"generalTime",void 0);t.Time=s=r.__decorate([(0,n.AsnType)({type:n.AsnTypeTypes.Choice})],s)},2826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Version=void 0;var A;(function(e){e[e["v1"]=0]="v1";e[e["v2"]=1]="v2";e[e["v3"]=2]="v3"})(A||(t.Version=A={}))},758:(e,t,A)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Validity=void 0;const r=A(4351);const n=A(3499);const s=A(1768);class Validity{constructor(e){this.notBefore=new s.Time(new Date);this.notAfter=new s.Time(new Date);if(e){this.notBefore=new s.Time(e.notBefore);this.notAfter=new s.Time(e.notAfter)}}}t.Validity=Validity;r.__decorate([(0,n.AsnProp)({type:s.Time})],Validity.prototype,"notBefore",void 0);r.__decorate([(0,n.AsnProp)({type:s.Time})],Validity.prototype,"notAfter",void 0)},2315:(e,t,A)=>{"use strict"; /*! * MIT License * diff --git a/src/utils.ts b/src/utils.ts index bab030a..d4f068f 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -109,7 +109,6 @@ export async function sign(options: SignOptions) { const certs = new X509Certificates(options.additionalCertificates); const ac: string[] = []; - args['ac'] = ac; // Write file for each certificate for (const cert of certs) { const thumbprint = await cert.getThumbprint(); @@ -117,6 +116,7 @@ export async function sign(options: SignOptions) { await fs.writeFile(certFile, Buffer.from(new Uint8Array(cert.rawData))); ac.push(certFile); } + args['ac'] = ac; } if (options.fileDigestAlgorithm) { args['fd'] = options.fileDigestAlgorithm;