var KZe=Object.create;var UB=Object.defineProperty;var ZZe=Object.getOwnPropertyDescriptor;var eet=Object.getOwnPropertyNames;var tet=Object.getPrototypeOf,ret=Object.prototype.hasOwnProperty;var o=(t,e)=>UB(t,"name",{value:e,configurable:!0});var set=(t,e)=>()=>(t&&(e=t(t=0)),e);var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Nie=(t,e)=>{for(var r in e)UB(t,r,{get:e[r],enumerable:!0})},net=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of eet(e))!ret.call(t,n)&&n!==r&&UB(t,n,{get:()=>e[n],enumerable:!(s=ZZe(e,n))||s.enumerable});return t};var x=(t,e,r)=>(r=t!=null?KZe(tet(t)):{},net(e||!t||!t.__esModule?UB(r,"default",{value:t,enumerable:!0}):r,t));var Lie=h(Wh=>{"use strict";var kf0=require("net"),pet=require("tls"),E_=require("http"),xie=require("https"),Aet=require("events"),Uf0=require("assert"),det=require("util");Wh.httpOverHttp=fet;Wh.httpsOverHttp=het;Wh.httpOverHttps=bet;Wh.httpsOverHttps=Met;function fet(t){var e=new Su(t);return e.request=E_.request,e}o(fet,"httpOverHttp");function het(t){var e=new Su(t);return e.request=E_.request,e.createSocket=Wie,e.defaultPort=443,e}o(het,"httpsOverHttp");function bet(t){var e=new Su(t);return e.request=xie.request,e}o(bet,"httpOverHttps");function Met(t){var e=new Su(t);return e.request=xie.request,e.createSocket=Wie,e.defaultPort=443,e}o(Met,"httpsOverHttps");function Su(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||E_.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=_ie(n,i,a),u=0,p=e.requests.length;u
=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){i.emit("free",c,a)}o(u,"onFree");function p(l){i.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}o(p,"onCloseOrRemove")})},"addRequest");Su.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=y_({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),wl("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",l),a.end();function c(A){A.upgrade=!0}o(c,"onResponse");function u(A,d,b){process.nextTick(function(){p(A,d,b)})}o(u,"onUpgrade");function p(A,d,b){if(a.removeAllListeners(),d.removeAllListeners(),A.statusCode!==200){wl("tunneling socket could not be established, statusCode=%d",A.statusCode),d.destroy();var m=new Error("tunneling socket could not be established, statusCode="+A.statusCode);m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}if(b.length>0){wl("got illegal response body from proxy"),d.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}return wl("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}o(p,"onConnect");function l(A){a.removeAllListeners(),wl(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var d=new Error("tunneling socket could not be established, cause="+A.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}o(l,"onError")},"createSocket");Su.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}},"removeSocket");function Wie(t,e){var r=this;Su.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=y_({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=pet.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(Wie,"createSecureSocket");function _ie(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(_ie,"toOptions");function y_(t){for(var e=1,r=arguments.length;e 0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(s+=", alias"+ ++i+"="+u,p.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(i?a.prepend("buffer += "):n=!0,c.add(";"),a=c=void 0),i=!0,r||(s=!1))}),s?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,n,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(i6t(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,u=o(function(l){a.replaceStack(function(A){var d=a.nameLookup(A,r[l],e);return n?[" && ",d]:[" != null ? ",d," : ",A]})},"_loop"),p=s;p2&&r[0]===239&&r[1]===187&&r[2]===191?3:0;return r.utf8Slice(n,s)}o(z8,"chunksDecode");function xue(t,e){if(t.length===0||e===0)return new Uint8Array(0);if(t.length===1)return new Uint8Array(t[0]);let r=new Uint8Array(Buffer.allocUnsafeSlow(e).buffer),s=0;for(let n=0;n>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<>>i,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}o(w4t,"varint64write");pn.varint64write=w4t;var lw=65536*65536;function S4t(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let u=Number(t.slice(a,c));n*=r,s=s*r+u,s>=lw&&(n=n+(s/lw|0),s=s%lw)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(S4t,"int64fromString");pn.int64fromString=S4t;function N4t(t,e){if(e>>>0<=2097151)return""+(lw*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,a=s+n*8147497,c=n*2,u=1e7;i>=u&&(a+=Math.floor(i/u),i%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function p(l,A){let d=l?String(l):"";return A?"0000000".slice(d.length)+d:d}return o(p,"decimalFrom1e7"),p(c,0)+p(a,c)+p(i,1)}o(N4t,"int64toString");pn.int64toString=N4t;function v4t(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(v4t,"varint32write");pn.varint32write=v4t;function T4t(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(T4t,"varint32read");pn.varint32read=T4t});var mA=h(MA=>{"use strict";Object.defineProperty(MA,"__esModule",{value:!0});MA.PbLong=MA.PbULong=MA.detectBi=void 0;var dE=Aw(),Yt;function XEe(){let t=new DataView(new ArrayBuffer(8));Yt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}o(XEe,"detectBi");MA.detectBi=XEe;XEe();function VEe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}o(VEe,"assertBi");var jEe=/^-?[0-9]+$/,fw=4294967296,dw=2147483648,hw=class{static{o(this,"SharedPbLong")}constructor(e,r){this.lo=e|0,this.hi=r|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*fw+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},fE=class t extends hw{static{o(this,"PbULong")}static from(e){if(Yt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Yt.C(e);case"number":if(e===0)return this.ZERO;e=Yt.C(e);case"bigint":if(!e)return this.ZERO;if(e{"use strict";QE.__esModule=!0;QE.createProtoAccessControl=ESt;QE.resultIsAllowed=ySt;QE.resetLoggedProperties=BSt;function gSt(t){return t&&t.__esModule?t:{default:t}}o(gSt,"_interopRequireDefault");var BDe=Bs(),zSt=Cj(),OSt=gSt(zSt),_S=Object.create(null);function ESt(t){var e=Object.create(null);e.__proto__=!1,BDe.extend(e,t.allowedProtoProperties);var r=Object.create(null);return r.constructor=!1,r.__defineGetter__=!1,r.__defineSetter__=!1,r.__lookupGetter__=!1,r.__lookupSetter__=!1,BDe.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}o(ESt,"createProtoAccessControl");function ySt(t,e,r){return DDe(typeof t=="function"?e.methods:e.properties,r)}o(ySt,"resultIsAllowed");function DDe(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(CSt(e),!1)}o(DDe,"checkWhiteList");function CSt(t){_S[t]!==!0&&(_S[t]=!0,OSt.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+`" because it is not an "own property" of its parent.
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(CSt,"logUnexpecedPropertyAccessOnce");function BSt(){Object.keys(_S).forEach(function(t){delete _S[t]})}o(BSt,"resetLoggedProperties")});var PS=h(Rc=>{"use strict";Rc.__esModule=!0;Rc.HandlebarsEnvironment=Ij;function qDe(t){return t&&t.__esModule?t:{default:t}}o(qDe,"_interopRequireDefault");var j2=Bs(),DSt=oi(),Dj=qDe(DSt),qSt=Ej(),ISt=yDe(),RSt=Cj(),LS=qDe(RSt),wSt=Bj(),SSt="4.7.9";Rc.VERSION=SSt;var NSt=8;Rc.COMPILER_REVISION=NSt;var vSt=7;Rc.LAST_COMPATIBLE_COMPILER_REVISION=vSt;var TSt={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Rc.REVISION_CHANGES=TSt;var qj="[object Object]";function Ij(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},qSt.registerDefaultHelpers(this),ISt.registerDefaultDecorators(this)}o(Ij,"HandlebarsEnvironment");Ij.prototype={constructor:Ij,logger:LS.default,log:LS.default.log,registerHelper:o(function(e,r){if(j2.toString.call(e)===qj){if(r)throw new Dj.default("Arg not supported with multiple helpers");j2.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(j2.toString.call(e)===qj)j2.extend(this.partials,e);else{if(typeof r>"u")throw new Dj.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(j2.toString.call(e)===qj){if(r)throw new Dj.default("Arg not supported with multiple decorators");j2.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){wSt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var FSt=LS.default.log;Rc.log=FSt;Rc.createFrame=j2.createFrame;Rc.logger=LS.default});var RDe=h((QS,IDe)=>{"use strict";QS.__esModule=!0;function Rj(t){this.string=t}o(Rj,"SafeString");Rj.prototype.toString=Rj.prototype.toHTML=function(){return""+this.string};QS.default=Rj;IDe.exports=QS.default});var wDe=h(wj=>{"use strict";wj.__esModule=!0;wj.wrapHelper=xSt;function xSt(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(xSt,"wrapHelper")});var xDe=h(CA=>{"use strict";CA.__esModule=!0;CA.checkRevision=kSt;CA.template=USt;CA.wrapProgram=kS;CA.resolvePartial=GSt;CA.invokePartial=HSt;CA.noop=TDe;function WSt(t){return t&&t.__esModule?t:{default:t}}o(WSt,"_interopRequireDefault");function _St(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(_St,"_interopRequireWildcard");var LSt=Bs(),JM=_St(LSt),PSt=oi(),Mp=WSt(PSt),mp=PS(),SDe=Ej(),QSt=wDe(),NDe=Bj();function kSt(t){var e=t&&t[0]||1,r=mp.COMPILER_REVISION;if(!(e>=mp.LAST_COMPATIBLE_COMPILER_REVISION&&e<=mp.COMPILER_REVISION))if(e{"use strict";KS.__esModule=!0;function oNt(t){return t&&t.__esModule?t:{default:t}}o(oNt,"_interopRequireDefault");var aNt=JS(),cNt=oNt(aNt);function wc(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}o(wc,"WhitespaceControl");wc.prototype=new cNt.default;wc.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var s=t.body,n=0,i=s.length;n{"use strict";eo.__esModule=!0;eo.SourceLocation=lNt;eo.id=ANt;eo.stripFlags=dNt;eo.stripComment=fNt;eo.preparePath=hNt;eo.prepareMustache=bNt;eo.prepareRawBlock=MNt;eo.prepareBlock=mNt;eo.prepareProgram=gNt;eo.preparePartialBlock=zNt;function uNt(t){return t&&t.__esModule?t:{default:t}}o(uNt,"_interopRequireDefault");var pNt=oi(),Lj=uNt(pNt);function Pj(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new Lj.default(t.path.original+" doesn't match "+e,r)}}o(Pj,"validateClose");function lNt(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}o(lNt,"SourceLocation");function ANt(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}o(ANt,"id");function dNt(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}o(dNt,"stripFlags");function fNt(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}o(fNt,"stripComment");function hNt(t,e,r){r=this.locInfo(r);for(var s=t?"@":"",n=[],i=0,a=0,c=e.length;a{var Ee=em(),s$=Oqe(),tm=Kj().ArraySet,KNt=jj(),JE=yqe().quickSort;function d0(t,e){var r=t;return typeof t=="string"&&(r=Ee.parseSourceMapInput(t)),r.sections!=null?new oa(r,e):new Br(r,e)}o(d0,"SourceMapConsumer");d0.fromSourceMap=function(t,e){return Br.fromSourceMap(t,e)};d0.prototype._version=3;d0.prototype.__generatedMappings=null;Object.defineProperty(d0.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});d0.prototype.__originalMappings=null;Object.defineProperty(d0.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:o(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});d0.prototype._charIsMappingSeparator=o(function(e,r){var s=e.charAt(r);return s===";"||s===","},"SourceMapConsumer_charIsMappingSeparator");d0.prototype._parseMappings=o(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");d0.GENERATED_ORDER=1;d0.ORIGINAL_ORDER=2;d0.GREATEST_LOWER_BOUND=1;d0.LEAST_UPPER_BOUND=2;d0.prototype.eachMapping=o(function(e,r,s){var n=r||null,i=s||d0.GENERATED_ORDER,a;switch(i){case d0.GENERATED_ORDER:a=this._generatedMappings;break;case d0.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(u){var p=u.source===null?null:this._sources.at(u.source);return p=Ee.computeSourceURL(c,p,this._sourceMapURL),{source:p,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(e,n)},"SourceMapConsumer_eachMapping");d0.prototype.allGeneratedPositionsFor=o(function(e){var r=Ee.getArg(e,"line"),s={source:Ee.getArg(e,"source"),originalLine:r,originalColumn:Ee.getArg(e,"column",0)};if(s.source=this._findSourceIndex(s.source),s.source<0)return[];var n=[],i=this._findMapping(s,this._originalMappings,"originalLine","originalColumn",Ee.compareByOriginalPositions,s$.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(e.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)n.push({line:Ee.getArg(a,"generatedLine",null),column:Ee.getArg(a,"generatedColumn",null),lastColumn:Ee.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)n.push({line:Ee.getArg(a,"generatedLine",null),column:Ee.getArg(a,"generatedColumn",null),lastColumn:Ee.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n},"SourceMapConsumer_allGeneratedPositionsFor");rN.SourceMapConsumer=d0;function Br(t,e){var r=t;typeof t=="string"&&(r=Ee.parseSourceMapInput(t));var s=Ee.getArg(r,"version"),n=Ee.getArg(r,"sources"),i=Ee.getArg(r,"names",[]),a=Ee.getArg(r,"sourceRoot",null),c=Ee.getArg(r,"sourcesContent",null),u=Ee.getArg(r,"mappings"),p=Ee.getArg(r,"file",null);if(s!=this._version)throw new Error("Unsupported version: "+s);a&&(a=Ee.normalize(a)),n=n.map(String).map(Ee.normalize).map(function(l){return a&&Ee.isAbsolute(a)&&Ee.isAbsolute(l)?Ee.relative(a,l):l}),this._names=tm.fromArray(i.map(String),!0),this._sources=tm.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(l){return Ee.computeSourceURL(a,l,e)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=e,this.file=p}o(Br,"BasicSourceMapConsumer");Br.prototype=Object.create(d0.prototype);Br.prototype.consumer=d0;Br.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=Ee.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r{"use strict";aN.__esModule=!0;function KE(t){return t&&t.__esModule?t:{default:t}}o(KE,"_interopRequireDefault");var o6t=kDe(),a6t=KE(o6t),c6t=Fj(),u6t=KE(c6t),a$=eqe(),c$=nqe(),p6t=Wqe(),l6t=KE(p6t),A6t=JS(),d6t=KE(A6t),f6t=Sj(),h6t=KE(f6t),b6t=a6t.default.create;function _qe(){var t=b6t();return t.compile=function(e,r){return c$.compile(e,r,t)},t.precompile=function(e,r){return c$.precompile(e,r,t)},t.AST=u6t.default,t.Compiler=c$.Compiler,t.JavaScriptCompiler=l6t.default,t.Parser=a$.parser,t.parse=a$.parse,t.parseWithoutProcessing=a$.parseWithoutProcessing,t}o(_qe,"create");var im=_qe();im.create=_qe;h6t.default(im);im.Visitor=d6t.default;im.default=im;aN.default=im;Lqe.exports=aN.default});var Qqe=h(cN=>{"use strict";cN.__esModule=!0;cN.print=z6t;cN.PrintVisitor=U0;function M6t(t){return t&&t.__esModule?t:{default:t}}o(M6t,"_interopRequireDefault");var m6t=JS(),g6t=M6t(m6t);function z6t(t){return new U0().accept(t)}o(z6t,"print");function U0(){this.padding=0}o(U0,"PrintVisitor");U0.prototype=new g6t.default;U0.prototype.pad=function(t){for(var e="",r=0,s=this.padding;r "+e+" }}")};U0.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};U0.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};U0.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};U0.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n{var uN=Pqe().default,Uqe=Qqe();uN.PrintVisitor=Uqe.PrintVisitor;uN.print=Uqe.print;Gqe.exports=uN;function kqe(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=uN.compile(s)}o(kqe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=kqe,require.extensions[".hbs"]=kqe)});var fN=h(DA=>{"use strict";Object.defineProperty(DA,"__esModule",{value:!0});DA.Signature=DA.Envelope=void 0;DA.Envelope={fromJSON(t){return{payload:dN(t.payload)?Buffer.from(tIe(t.payload)):Buffer.alloc(0),payloadType:dN(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>DA.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=rIe(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>DA.Signature.toJSON(r))),e}};DA.Signature={fromJSON(t){return{sig:dN(t.sig)?Buffer.from(tIe(t.sig)):Buffer.alloc(0),keyid:dN(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=rIe(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function tIe(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(tIe,"bytesFromBase64");function rIe(t){return globalThis.Buffer.from(t).toString("base64")}o(rIe,"base64FromBytes");function dN(t){return t!=null}o(dN,"isSet")});var nIe=h(hN=>{"use strict";Object.defineProperty(hN,"__esModule",{value:!0});hN.Timestamp=void 0;hN.Timestamp={fromJSON(t){return{seconds:sIe(t.seconds)?globalThis.String(t.seconds):"0",nanos:sIe(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.seconds),t.nanos!==0&&(e.nanos=Math.round(t.nanos)),e}};function sIe(t){return t!=null}o(sIe,"isSet")});var Op=h(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.TimeRange=Pe.X509CertificateChain=Pe.SubjectAlternativeName=Pe.X509Certificate=Pe.DistinguishedName=Pe.ObjectIdentifierValuePair=Pe.ObjectIdentifier=Pe.PublicKeyIdentifier=Pe.PublicKey=Pe.RFC3161SignedTimestamp=Pe.LogId=Pe.MessageSignature=Pe.HashOutput=Pe.SubjectAlternativeNameType=Pe.PublicKeyDetails=Pe.HashAlgorithm=void 0;Pe.hashAlgorithmFromJSON=oIe;Pe.hashAlgorithmToJSON=aIe;Pe.publicKeyDetailsFromJSON=cIe;Pe.publicKeyDetailsToJSON=uIe;Pe.subjectAlternativeNameTypeFromJSON=pIe;Pe.subjectAlternativeNameTypeToJSON=lIe;var I6t=nIe(),hn;(function(t){t[t.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",t[t.SHA2_256=1]="SHA2_256",t[t.SHA2_384=2]="SHA2_384",t[t.SHA2_512=3]="SHA2_512",t[t.SHA3_256=4]="SHA3_256",t[t.SHA3_384=5]="SHA3_384"})(hn||(Pe.HashAlgorithm=hn={}));function oIe(t){switch(t){case 0:case"HASH_ALGORITHM_UNSPECIFIED":return hn.HASH_ALGORITHM_UNSPECIFIED;case 1:case"SHA2_256":return hn.SHA2_256;case 2:case"SHA2_384":return hn.SHA2_384;case 3:case"SHA2_512":return hn.SHA2_512;case 4:case"SHA3_256":return hn.SHA3_256;case 5:case"SHA3_384":return hn.SHA3_384;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(oIe,"hashAlgorithmFromJSON");function aIe(t){switch(t){case hn.HASH_ALGORITHM_UNSPECIFIED:return"HASH_ALGORITHM_UNSPECIFIED";case hn.SHA2_256:return"SHA2_256";case hn.SHA2_384:return"SHA2_384";case hn.SHA2_512:return"SHA2_512";case hn.SHA3_256:return"SHA3_256";case hn.SHA3_384:return"SHA3_384";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum HashAlgorithm")}}o(aIe,"hashAlgorithmToJSON");var Le;(function(t){t[t.PUBLIC_KEY_DETAILS_UNSPECIFIED=0]="PUBLIC_KEY_DETAILS_UNSPECIFIED",t[t.PKCS1_RSA_PKCS1V5=1]="PKCS1_RSA_PKCS1V5",t[t.PKCS1_RSA_PSS=2]="PKCS1_RSA_PSS",t[t.PKIX_RSA_PKCS1V5=3]="PKIX_RSA_PKCS1V5",t[t.PKIX_RSA_PSS=4]="PKIX_RSA_PSS",t[t.PKIX_RSA_PKCS1V15_2048_SHA256=9]="PKIX_RSA_PKCS1V15_2048_SHA256",t[t.PKIX_RSA_PKCS1V15_3072_SHA256=10]="PKIX_RSA_PKCS1V15_3072_SHA256",t[t.PKIX_RSA_PKCS1V15_4096_SHA256=11]="PKIX_RSA_PKCS1V15_4096_SHA256",t[t.PKIX_RSA_PSS_2048_SHA256=16]="PKIX_RSA_PSS_2048_SHA256",t[t.PKIX_RSA_PSS_3072_SHA256=17]="PKIX_RSA_PSS_3072_SHA256",t[t.PKIX_RSA_PSS_4096_SHA256=18]="PKIX_RSA_PSS_4096_SHA256",t[t.PKIX_ECDSA_P256_HMAC_SHA_256=6]="PKIX_ECDSA_P256_HMAC_SHA_256",t[t.PKIX_ECDSA_P256_SHA_256=5]="PKIX_ECDSA_P256_SHA_256",t[t.PKIX_ECDSA_P384_SHA_384=12]="PKIX_ECDSA_P384_SHA_384",t[t.PKIX_ECDSA_P521_SHA_512=13]="PKIX_ECDSA_P521_SHA_512",t[t.PKIX_ED25519=7]="PKIX_ED25519",t[t.PKIX_ED25519_PH=8]="PKIX_ED25519_PH",t[t.PKIX_ECDSA_P384_SHA_256=19]="PKIX_ECDSA_P384_SHA_256",t[t.PKIX_ECDSA_P521_SHA_256=20]="PKIX_ECDSA_P521_SHA_256",t[t.LMS_SHA256=14]="LMS_SHA256",t[t.LMOTS_SHA256=15]="LMOTS_SHA256",t[t.ML_DSA_65=21]="ML_DSA_65",t[t.ML_DSA_87=22]="ML_DSA_87"})(Le||(Pe.PublicKeyDetails=Le={}));function cIe(t){switch(t){case 0:case"PUBLIC_KEY_DETAILS_UNSPECIFIED":return Le.PUBLIC_KEY_DETAILS_UNSPECIFIED;case 1:case"PKCS1_RSA_PKCS1V5":return Le.PKCS1_RSA_PKCS1V5;case 2:case"PKCS1_RSA_PSS":return Le.PKCS1_RSA_PSS;case 3:case"PKIX_RSA_PKCS1V5":return Le.PKIX_RSA_PKCS1V5;case 4:case"PKIX_RSA_PSS":return Le.PKIX_RSA_PSS;case 9:case"PKIX_RSA_PKCS1V15_2048_SHA256":return Le.PKIX_RSA_PKCS1V15_2048_SHA256;case 10:case"PKIX_RSA_PKCS1V15_3072_SHA256":return Le.PKIX_RSA_PKCS1V15_3072_SHA256;case 11:case"PKIX_RSA_PKCS1V15_4096_SHA256":return Le.PKIX_RSA_PKCS1V15_4096_SHA256;case 16:case"PKIX_RSA_PSS_2048_SHA256":return Le.PKIX_RSA_PSS_2048_SHA256;case 17:case"PKIX_RSA_PSS_3072_SHA256":return Le.PKIX_RSA_PSS_3072_SHA256;case 18:case"PKIX_RSA_PSS_4096_SHA256":return Le.PKIX_RSA_PSS_4096_SHA256;case 6:case"PKIX_ECDSA_P256_HMAC_SHA_256":return Le.PKIX_ECDSA_P256_HMAC_SHA_256;case 5:case"PKIX_ECDSA_P256_SHA_256":return Le.PKIX_ECDSA_P256_SHA_256;case 12:case"PKIX_ECDSA_P384_SHA_384":return Le.PKIX_ECDSA_P384_SHA_384;case 13:case"PKIX_ECDSA_P521_SHA_512":return Le.PKIX_ECDSA_P521_SHA_512;case 7:case"PKIX_ED25519":return Le.PKIX_ED25519;case 8:case"PKIX_ED25519_PH":return Le.PKIX_ED25519_PH;case 19:case"PKIX_ECDSA_P384_SHA_256":return Le.PKIX_ECDSA_P384_SHA_256;case 20:case"PKIX_ECDSA_P521_SHA_256":return Le.PKIX_ECDSA_P521_SHA_256;case 14:case"LMS_SHA256":return Le.LMS_SHA256;case 15:case"LMOTS_SHA256":return Le.LMOTS_SHA256;case 21:case"ML_DSA_65":return Le.ML_DSA_65;case 22:case"ML_DSA_87":return Le.ML_DSA_87;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(cIe,"publicKeyDetailsFromJSON");function uIe(t){switch(t){case Le.PUBLIC_KEY_DETAILS_UNSPECIFIED:return"PUBLIC_KEY_DETAILS_UNSPECIFIED";case Le.PKCS1_RSA_PKCS1V5:return"PKCS1_RSA_PKCS1V5";case Le.PKCS1_RSA_PSS:return"PKCS1_RSA_PSS";case Le.PKIX_RSA_PKCS1V5:return"PKIX_RSA_PKCS1V5";case Le.PKIX_RSA_PSS:return"PKIX_RSA_PSS";case Le.PKIX_RSA_PKCS1V15_2048_SHA256:return"PKIX_RSA_PKCS1V15_2048_SHA256";case Le.PKIX_RSA_PKCS1V15_3072_SHA256:return"PKIX_RSA_PKCS1V15_3072_SHA256";case Le.PKIX_RSA_PKCS1V15_4096_SHA256:return"PKIX_RSA_PKCS1V15_4096_SHA256";case Le.PKIX_RSA_PSS_2048_SHA256:return"PKIX_RSA_PSS_2048_SHA256";case Le.PKIX_RSA_PSS_3072_SHA256:return"PKIX_RSA_PSS_3072_SHA256";case Le.PKIX_RSA_PSS_4096_SHA256:return"PKIX_RSA_PSS_4096_SHA256";case Le.PKIX_ECDSA_P256_HMAC_SHA_256:return"PKIX_ECDSA_P256_HMAC_SHA_256";case Le.PKIX_ECDSA_P256_SHA_256:return"PKIX_ECDSA_P256_SHA_256";case Le.PKIX_ECDSA_P384_SHA_384:return"PKIX_ECDSA_P384_SHA_384";case Le.PKIX_ECDSA_P521_SHA_512:return"PKIX_ECDSA_P521_SHA_512";case Le.PKIX_ED25519:return"PKIX_ED25519";case Le.PKIX_ED25519_PH:return"PKIX_ED25519_PH";case Le.PKIX_ECDSA_P384_SHA_256:return"PKIX_ECDSA_P384_SHA_256";case Le.PKIX_ECDSA_P521_SHA_256:return"PKIX_ECDSA_P521_SHA_256";case Le.LMS_SHA256:return"LMS_SHA256";case Le.LMOTS_SHA256:return"LMOTS_SHA256";case Le.ML_DSA_65:return"ML_DSA_65";case Le.ML_DSA_87:return"ML_DSA_87";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum PublicKeyDetails")}}o(uIe,"publicKeyDetailsToJSON");var Sc;(function(t){t[t.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED=0]="SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED",t[t.EMAIL=1]="EMAIL",t[t.URI=2]="URI",t[t.OTHER_NAME=3]="OTHER_NAME"})(Sc||(Pe.SubjectAlternativeNameType=Sc={}));function pIe(t){switch(t){case 0:case"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED":return Sc.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED;case 1:case"EMAIL":return Sc.EMAIL;case 2:case"URI":return Sc.URI;case 3:case"OTHER_NAME":return Sc.OTHER_NAME;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(pIe,"subjectAlternativeNameTypeFromJSON");function lIe(t){switch(t){case Sc.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED:return"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED";case Sc.EMAIL:return"EMAIL";case Sc.URI:return"URI";case Sc.OTHER_NAME:return"OTHER_NAME";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum SubjectAlternativeNameType")}}o(lIe,"subjectAlternativeNameTypeToJSON");Pe.HashOutput={fromJSON(t){return{algorithm:y1(t.algorithm)?oIe(t.algorithm):0,digest:y1(t.digest)?Buffer.from(ef(t.digest)):Buffer.alloc(0)}},toJSON(t){let e={};return t.algorithm!==0&&(e.algorithm=aIe(t.algorithm)),t.digest.length!==0&&(e.digest=tf(t.digest)),e}};Pe.MessageSignature={fromJSON(t){return{messageDigest:y1(t.messageDigest)?Pe.HashOutput.fromJSON(t.messageDigest):void 0,signature:y1(t.signature)?Buffer.from(ef(t.signature)):Buffer.alloc(0)}},toJSON(t){let e={};return t.messageDigest!==void 0&&(e.messageDigest=Pe.HashOutput.toJSON(t.messageDigest)),t.signature.length!==0&&(e.signature=tf(t.signature)),e}};Pe.LogId={fromJSON(t){return{keyId:y1(t.keyId)?Buffer.from(ef(t.keyId)):Buffer.alloc(0)}},toJSON(t){let e={};return t.keyId.length!==0&&(e.keyId=tf(t.keyId)),e}};Pe.RFC3161SignedTimestamp={fromJSON(t){return{signedTimestamp:y1(t.signedTimestamp)?Buffer.from(ef(t.signedTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedTimestamp.length!==0&&(e.signedTimestamp=tf(t.signedTimestamp)),e}};Pe.PublicKey={fromJSON(t){return{rawBytes:y1(t.rawBytes)?Buffer.from(ef(t.rawBytes)):void 0,keyDetails:y1(t.keyDetails)?cIe(t.keyDetails):0,validFor:y1(t.validFor)?Pe.TimeRange.fromJSON(t.validFor):void 0}},toJSON(t){let e={};return t.rawBytes!==void 0&&(e.rawBytes=tf(t.rawBytes)),t.keyDetails!==0&&(e.keyDetails=uIe(t.keyDetails)),t.validFor!==void 0&&(e.validFor=Pe.TimeRange.toJSON(t.validFor)),e}};Pe.PublicKeyIdentifier={fromJSON(t){return{hint:y1(t.hint)?globalThis.String(t.hint):""}},toJSON(t){let e={};return t.hint!==""&&(e.hint=t.hint),e}};Pe.ObjectIdentifier={fromJSON(t){return{id:globalThis.Array.isArray(t?.id)?t.id.map(e=>globalThis.Number(e)):[]}},toJSON(t){let e={};return t.id?.length&&(e.id=t.id.map(r=>Math.round(r))),e}};Pe.ObjectIdentifierValuePair={fromJSON(t){return{oid:y1(t.oid)?Pe.ObjectIdentifier.fromJSON(t.oid):void 0,value:y1(t.value)?Buffer.from(ef(t.value)):Buffer.alloc(0)}},toJSON(t){let e={};return t.oid!==void 0&&(e.oid=Pe.ObjectIdentifier.toJSON(t.oid)),t.value.length!==0&&(e.value=tf(t.value)),e}};Pe.DistinguishedName={fromJSON(t){return{organization:y1(t.organization)?globalThis.String(t.organization):"",commonName:y1(t.commonName)?globalThis.String(t.commonName):""}},toJSON(t){let e={};return t.organization!==""&&(e.organization=t.organization),t.commonName!==""&&(e.commonName=t.commonName),e}};Pe.X509Certificate={fromJSON(t){return{rawBytes:y1(t.rawBytes)?Buffer.from(ef(t.rawBytes)):Buffer.alloc(0)}},toJSON(t){let e={};return t.rawBytes.length!==0&&(e.rawBytes=tf(t.rawBytes)),e}};Pe.SubjectAlternativeName={fromJSON(t){return{type:y1(t.type)?pIe(t.type):0,identity:y1(t.regexp)?{$case:"regexp",regexp:globalThis.String(t.regexp)}:y1(t.value)?{$case:"value",value:globalThis.String(t.value)}:void 0}},toJSON(t){let e={};return t.type!==0&&(e.type=lIe(t.type)),t.identity?.$case==="regexp"?e.regexp=t.identity.regexp:t.identity?.$case==="value"&&(e.value=t.identity.value),e}};Pe.X509CertificateChain={fromJSON(t){return{certificates:globalThis.Array.isArray(t?.certificates)?t.certificates.map(e=>Pe.X509Certificate.fromJSON(e)):[]}},toJSON(t){let e={};return t.certificates?.length&&(e.certificates=t.certificates.map(r=>Pe.X509Certificate.toJSON(r))),e}};Pe.TimeRange={fromJSON(t){return{start:y1(t.start)?iIe(t.start):void 0,end:y1(t.end)?iIe(t.end):void 0}},toJSON(t){let e={};return t.start!==void 0&&(e.start=t.start.toISOString()),t.end!==void 0&&(e.end=t.end.toISOString()),e}};function ef(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(ef,"bytesFromBase64");function tf(t){return globalThis.Buffer.from(t).toString("base64")}o(tf,"base64FromBytes");function R6t(t){let e=(globalThis.Number(t.seconds)||0)*1e3;return e+=(t.nanos||0)/1e6,new globalThis.Date(e)}o(R6t,"fromTimestamp");function iIe(t){return t instanceof globalThis.Date?t:typeof t=="string"?new globalThis.Date(t):R6t(I6t.Timestamp.fromJSON(t))}o(iIe,"fromJsonTimestamp");function y1(t){return t!=null}o(y1,"isSet")});var M$=h(C1=>{"use strict";Object.defineProperty(C1,"__esModule",{value:!0});C1.TransparencyLogEntry=C1.InclusionPromise=C1.InclusionProof=C1.Checkpoint=C1.KindVersion=void 0;var AIe=Op();C1.KindVersion={fromJSON(t){return{kind:Ds(t.kind)?globalThis.String(t.kind):"",version:Ds(t.version)?globalThis.String(t.version):""}},toJSON(t){let e={};return t.kind!==""&&(e.kind=t.kind),t.version!==""&&(e.version=t.version),e}};C1.Checkpoint={fromJSON(t){return{envelope:Ds(t.envelope)?globalThis.String(t.envelope):""}},toJSON(t){let e={};return t.envelope!==""&&(e.envelope=t.envelope),e}};C1.InclusionProof={fromJSON(t){return{logIndex:Ds(t.logIndex)?globalThis.String(t.logIndex):"0",rootHash:Ds(t.rootHash)?Buffer.from(bN(t.rootHash)):Buffer.alloc(0),treeSize:Ds(t.treeSize)?globalThis.String(t.treeSize):"0",hashes:globalThis.Array.isArray(t?.hashes)?t.hashes.map(e=>Buffer.from(bN(e))):[],checkpoint:Ds(t.checkpoint)?C1.Checkpoint.fromJSON(t.checkpoint):void 0}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.rootHash.length!==0&&(e.rootHash=MN(t.rootHash)),t.treeSize!=="0"&&(e.treeSize=t.treeSize),t.hashes?.length&&(e.hashes=t.hashes.map(r=>MN(r))),t.checkpoint!==void 0&&(e.checkpoint=C1.Checkpoint.toJSON(t.checkpoint)),e}};C1.InclusionPromise={fromJSON(t){return{signedEntryTimestamp:Ds(t.signedEntryTimestamp)?Buffer.from(bN(t.signedEntryTimestamp)):Buffer.alloc(0)}},toJSON(t){let e={};return t.signedEntryTimestamp.length!==0&&(e.signedEntryTimestamp=MN(t.signedEntryTimestamp)),e}};C1.TransparencyLogEntry={fromJSON(t){return{logIndex:Ds(t.logIndex)?globalThis.String(t.logIndex):"0",logId:Ds(t.logId)?AIe.LogId.fromJSON(t.logId):void 0,kindVersion:Ds(t.kindVersion)?C1.KindVersion.fromJSON(t.kindVersion):void 0,integratedTime:Ds(t.integratedTime)?globalThis.String(t.integratedTime):"0",inclusionPromise:Ds(t.inclusionPromise)?C1.InclusionPromise.fromJSON(t.inclusionPromise):void 0,inclusionProof:Ds(t.inclusionProof)?C1.InclusionProof.fromJSON(t.inclusionProof):void 0,canonicalizedBody:Ds(t.canonicalizedBody)?Buffer.from(bN(t.canonicalizedBody)):Buffer.alloc(0)}},toJSON(t){let e={};return t.logIndex!=="0"&&(e.logIndex=t.logIndex),t.logId!==void 0&&(e.logId=AIe.LogId.toJSON(t.logId)),t.kindVersion!==void 0&&(e.kindVersion=C1.KindVersion.toJSON(t.kindVersion)),t.integratedTime!=="0"&&(e.integratedTime=t.integratedTime),t.inclusionPromise!==void 0&&(e.inclusionPromise=C1.InclusionPromise.toJSON(t.inclusionPromise)),t.inclusionProof!==void 0&&(e.inclusionProof=C1.InclusionProof.toJSON(t.inclusionProof)),t.canonicalizedBody.length!==0&&(e.canonicalizedBody=MN(t.canonicalizedBody)),e}};function bN(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(bN,"bytesFromBase64");function MN(t){return globalThis.Buffer.from(t).toString("base64")}o(MN,"base64FromBytes");function Ds(t){return t!=null}o(Ds,"isSet")});var m$=h(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.Bundle=so.VerificationMaterial=so.TimestampVerificationData=void 0;var dIe=fN(),Nc=Op(),fIe=M$();so.TimestampVerificationData={fromJSON(t){return{rfc3161Timestamps:globalThis.Array.isArray(t?.rfc3161Timestamps)?t.rfc3161Timestamps.map(e=>Nc.RFC3161SignedTimestamp.fromJSON(e)):[]}},toJSON(t){let e={};return t.rfc3161Timestamps?.length&&(e.rfc3161Timestamps=t.rfc3161Timestamps.map(r=>Nc.RFC3161SignedTimestamp.toJSON(r))),e}};so.VerificationMaterial={fromJSON(t){return{content:qA(t.publicKey)?{$case:"publicKey",publicKey:Nc.PublicKeyIdentifier.fromJSON(t.publicKey)}:qA(t.x509CertificateChain)?{$case:"x509CertificateChain",x509CertificateChain:Nc.X509CertificateChain.fromJSON(t.x509CertificateChain)}:qA(t.certificate)?{$case:"certificate",certificate:Nc.X509Certificate.fromJSON(t.certificate)}:void 0,tlogEntries:globalThis.Array.isArray(t?.tlogEntries)?t.tlogEntries.map(e=>fIe.TransparencyLogEntry.fromJSON(e)):[],timestampVerificationData:qA(t.timestampVerificationData)?so.TimestampVerificationData.fromJSON(t.timestampVerificationData):void 0}},toJSON(t){let e={};return t.content?.$case==="publicKey"?e.publicKey=Nc.PublicKeyIdentifier.toJSON(t.content.publicKey):t.content?.$case==="x509CertificateChain"?e.x509CertificateChain=Nc.X509CertificateChain.toJSON(t.content.x509CertificateChain):t.content?.$case==="certificate"&&(e.certificate=Nc.X509Certificate.toJSON(t.content.certificate)),t.tlogEntries?.length&&(e.tlogEntries=t.tlogEntries.map(r=>fIe.TransparencyLogEntry.toJSON(r))),t.timestampVerificationData!==void 0&&(e.timestampVerificationData=so.TimestampVerificationData.toJSON(t.timestampVerificationData)),e}};so.Bundle={fromJSON(t){return{mediaType:qA(t.mediaType)?globalThis.String(t.mediaType):"",verificationMaterial:qA(t.verificationMaterial)?so.VerificationMaterial.fromJSON(t.verificationMaterial):void 0,content:qA(t.messageSignature)?{$case:"messageSignature",messageSignature:Nc.MessageSignature.fromJSON(t.messageSignature)}:qA(t.dsseEnvelope)?{$case:"dsseEnvelope",dsseEnvelope:dIe.Envelope.fromJSON(t.dsseEnvelope)}:void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.verificationMaterial!==void 0&&(e.verificationMaterial=so.VerificationMaterial.toJSON(t.verificationMaterial)),t.content?.$case==="messageSignature"?e.messageSignature=Nc.MessageSignature.toJSON(t.content.messageSignature):t.content?.$case==="dsseEnvelope"&&(e.dsseEnvelope=dIe.Envelope.toJSON(t.content.dsseEnvelope)),e}};function qA(t){return t!=null}o(qA,"isSet")});var g$=h(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.ClientTrustConfig=je.ServiceConfiguration=je.Service=je.SigningConfig=je.TrustedRoot=je.CertificateAuthority=je.TransparencyLogInstance=je.ServiceSelector=void 0;je.serviceSelectorFromJSON=hIe;je.serviceSelectorToJSON=bIe;var Qr=Op(),vc;(function(t){t[t.SERVICE_SELECTOR_UNDEFINED=0]="SERVICE_SELECTOR_UNDEFINED",t[t.ALL=1]="ALL",t[t.ANY=2]="ANY",t[t.EXACT=3]="EXACT"})(vc||(je.ServiceSelector=vc={}));function hIe(t){switch(t){case 0:case"SERVICE_SELECTOR_UNDEFINED":return vc.SERVICE_SELECTOR_UNDEFINED;case 1:case"ALL":return vc.ALL;case 2:case"ANY":return vc.ANY;case 3:case"EXACT":return vc.EXACT;default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(hIe,"serviceSelectorFromJSON");function bIe(t){switch(t){case vc.SERVICE_SELECTOR_UNDEFINED:return"SERVICE_SELECTOR_UNDEFINED";case vc.ALL:return"ALL";case vc.ANY:return"ANY";case vc.EXACT:return"EXACT";default:throw new globalThis.Error("Unrecognized enum value "+t+" for enum ServiceSelector")}}o(bIe,"serviceSelectorToJSON");je.TransparencyLogInstance={fromJSON(t){return{baseUrl:B0(t.baseUrl)?globalThis.String(t.baseUrl):"",hashAlgorithm:B0(t.hashAlgorithm)?(0,Qr.hashAlgorithmFromJSON)(t.hashAlgorithm):0,publicKey:B0(t.publicKey)?Qr.PublicKey.fromJSON(t.publicKey):void 0,logId:B0(t.logId)?Qr.LogId.fromJSON(t.logId):void 0,checkpointKeyId:B0(t.checkpointKeyId)?Qr.LogId.fromJSON(t.checkpointKeyId):void 0,operator:B0(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.baseUrl!==""&&(e.baseUrl=t.baseUrl),t.hashAlgorithm!==0&&(e.hashAlgorithm=(0,Qr.hashAlgorithmToJSON)(t.hashAlgorithm)),t.publicKey!==void 0&&(e.publicKey=Qr.PublicKey.toJSON(t.publicKey)),t.logId!==void 0&&(e.logId=Qr.LogId.toJSON(t.logId)),t.checkpointKeyId!==void 0&&(e.checkpointKeyId=Qr.LogId.toJSON(t.checkpointKeyId)),t.operator!==""&&(e.operator=t.operator),e}};je.CertificateAuthority={fromJSON(t){return{subject:B0(t.subject)?Qr.DistinguishedName.fromJSON(t.subject):void 0,uri:B0(t.uri)?globalThis.String(t.uri):"",certChain:B0(t.certChain)?Qr.X509CertificateChain.fromJSON(t.certChain):void 0,validFor:B0(t.validFor)?Qr.TimeRange.fromJSON(t.validFor):void 0,operator:B0(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.subject!==void 0&&(e.subject=Qr.DistinguishedName.toJSON(t.subject)),t.uri!==""&&(e.uri=t.uri),t.certChain!==void 0&&(e.certChain=Qr.X509CertificateChain.toJSON(t.certChain)),t.validFor!==void 0&&(e.validFor=Qr.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};je.TrustedRoot={fromJSON(t){return{mediaType:B0(t.mediaType)?globalThis.String(t.mediaType):"",tlogs:globalThis.Array.isArray(t?.tlogs)?t.tlogs.map(e=>je.TransparencyLogInstance.fromJSON(e)):[],certificateAuthorities:globalThis.Array.isArray(t?.certificateAuthorities)?t.certificateAuthorities.map(e=>je.CertificateAuthority.fromJSON(e)):[],ctlogs:globalThis.Array.isArray(t?.ctlogs)?t.ctlogs.map(e=>je.TransparencyLogInstance.fromJSON(e)):[],timestampAuthorities:globalThis.Array.isArray(t?.timestampAuthorities)?t.timestampAuthorities.map(e=>je.CertificateAuthority.fromJSON(e)):[]}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.tlogs?.length&&(e.tlogs=t.tlogs.map(r=>je.TransparencyLogInstance.toJSON(r))),t.certificateAuthorities?.length&&(e.certificateAuthorities=t.certificateAuthorities.map(r=>je.CertificateAuthority.toJSON(r))),t.ctlogs?.length&&(e.ctlogs=t.ctlogs.map(r=>je.TransparencyLogInstance.toJSON(r))),t.timestampAuthorities?.length&&(e.timestampAuthorities=t.timestampAuthorities.map(r=>je.CertificateAuthority.toJSON(r))),e}};je.SigningConfig={fromJSON(t){return{mediaType:B0(t.mediaType)?globalThis.String(t.mediaType):"",caUrls:globalThis.Array.isArray(t?.caUrls)?t.caUrls.map(e=>je.Service.fromJSON(e)):[],oidcUrls:globalThis.Array.isArray(t?.oidcUrls)?t.oidcUrls.map(e=>je.Service.fromJSON(e)):[],rekorTlogUrls:globalThis.Array.isArray(t?.rekorTlogUrls)?t.rekorTlogUrls.map(e=>je.Service.fromJSON(e)):[],rekorTlogConfig:B0(t.rekorTlogConfig)?je.ServiceConfiguration.fromJSON(t.rekorTlogConfig):void 0,tsaUrls:globalThis.Array.isArray(t?.tsaUrls)?t.tsaUrls.map(e=>je.Service.fromJSON(e)):[],tsaConfig:B0(t.tsaConfig)?je.ServiceConfiguration.fromJSON(t.tsaConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.caUrls?.length&&(e.caUrls=t.caUrls.map(r=>je.Service.toJSON(r))),t.oidcUrls?.length&&(e.oidcUrls=t.oidcUrls.map(r=>je.Service.toJSON(r))),t.rekorTlogUrls?.length&&(e.rekorTlogUrls=t.rekorTlogUrls.map(r=>je.Service.toJSON(r))),t.rekorTlogConfig!==void 0&&(e.rekorTlogConfig=je.ServiceConfiguration.toJSON(t.rekorTlogConfig)),t.tsaUrls?.length&&(e.tsaUrls=t.tsaUrls.map(r=>je.Service.toJSON(r))),t.tsaConfig!==void 0&&(e.tsaConfig=je.ServiceConfiguration.toJSON(t.tsaConfig)),e}};je.Service={fromJSON(t){return{url:B0(t.url)?globalThis.String(t.url):"",majorApiVersion:B0(t.majorApiVersion)?globalThis.Number(t.majorApiVersion):0,validFor:B0(t.validFor)?Qr.TimeRange.fromJSON(t.validFor):void 0,operator:B0(t.operator)?globalThis.String(t.operator):""}},toJSON(t){let e={};return t.url!==""&&(e.url=t.url),t.majorApiVersion!==0&&(e.majorApiVersion=Math.round(t.majorApiVersion)),t.validFor!==void 0&&(e.validFor=Qr.TimeRange.toJSON(t.validFor)),t.operator!==""&&(e.operator=t.operator),e}};je.ServiceConfiguration={fromJSON(t){return{selector:B0(t.selector)?hIe(t.selector):0,count:B0(t.count)?globalThis.Number(t.count):0}},toJSON(t){let e={};return t.selector!==0&&(e.selector=bIe(t.selector)),t.count!==0&&(e.count=Math.round(t.count)),e}};je.ClientTrustConfig={fromJSON(t){return{mediaType:B0(t.mediaType)?globalThis.String(t.mediaType):"",trustedRoot:B0(t.trustedRoot)?je.TrustedRoot.fromJSON(t.trustedRoot):void 0,signingConfig:B0(t.signingConfig)?je.SigningConfig.fromJSON(t.signingConfig):void 0}},toJSON(t){let e={};return t.mediaType!==""&&(e.mediaType=t.mediaType),t.trustedRoot!==void 0&&(e.trustedRoot=je.TrustedRoot.toJSON(t.trustedRoot)),t.signingConfig!==void 0&&(e.signingConfig=je.SigningConfig.toJSON(t.signingConfig)),e}};function B0(t){return t!=null}o(B0,"isSet")});var gIe=h($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.Input=$e.Artifact=$e.ArtifactVerificationOptions_ObserverTimestampOptions=$e.ArtifactVerificationOptions_TlogIntegratedTimestampOptions=$e.ArtifactVerificationOptions_TimestampAuthorityOptions=$e.ArtifactVerificationOptions_CtlogOptions=$e.ArtifactVerificationOptions_TlogOptions=$e.ArtifactVerificationOptions=$e.PublicKeyIdentities=$e.CertificateIdentities=$e.CertificateIdentity=void 0;var MIe=m$(),IA=Op(),mIe=g$();$e.CertificateIdentity={fromJSON(t){return{issuer:Jt(t.issuer)?globalThis.String(t.issuer):"",san:Jt(t.san)?IA.SubjectAlternativeName.fromJSON(t.san):void 0,oids:globalThis.Array.isArray(t?.oids)?t.oids.map(e=>IA.ObjectIdentifierValuePair.fromJSON(e)):[]}},toJSON(t){let e={};return t.issuer!==""&&(e.issuer=t.issuer),t.san!==void 0&&(e.san=IA.SubjectAlternativeName.toJSON(t.san)),t.oids?.length&&(e.oids=t.oids.map(r=>IA.ObjectIdentifierValuePair.toJSON(r))),e}};$e.CertificateIdentities={fromJSON(t){return{identities:globalThis.Array.isArray(t?.identities)?t.identities.map(e=>$e.CertificateIdentity.fromJSON(e)):[]}},toJSON(t){let e={};return t.identities?.length&&(e.identities=t.identities.map(r=>$e.CertificateIdentity.toJSON(r))),e}};$e.PublicKeyIdentities={fromJSON(t){return{publicKeys:globalThis.Array.isArray(t?.publicKeys)?t.publicKeys.map(e=>IA.PublicKey.fromJSON(e)):[]}},toJSON(t){let e={};return t.publicKeys?.length&&(e.publicKeys=t.publicKeys.map(r=>IA.PublicKey.toJSON(r))),e}};$e.ArtifactVerificationOptions={fromJSON(t){return{signers:Jt(t.certificateIdentities)?{$case:"certificateIdentities",certificateIdentities:$e.CertificateIdentities.fromJSON(t.certificateIdentities)}:Jt(t.publicKeys)?{$case:"publicKeys",publicKeys:$e.PublicKeyIdentities.fromJSON(t.publicKeys)}:void 0,tlogOptions:Jt(t.tlogOptions)?$e.ArtifactVerificationOptions_TlogOptions.fromJSON(t.tlogOptions):void 0,ctlogOptions:Jt(t.ctlogOptions)?$e.ArtifactVerificationOptions_CtlogOptions.fromJSON(t.ctlogOptions):void 0,tsaOptions:Jt(t.tsaOptions)?$e.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(t.tsaOptions):void 0,integratedTsOptions:Jt(t.integratedTsOptions)?$e.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(t.integratedTsOptions):void 0,observerOptions:Jt(t.observerOptions)?$e.ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(t.observerOptions):void 0}},toJSON(t){let e={};return t.signers?.$case==="certificateIdentities"?e.certificateIdentities=$e.CertificateIdentities.toJSON(t.signers.certificateIdentities):t.signers?.$case==="publicKeys"&&(e.publicKeys=$e.PublicKeyIdentities.toJSON(t.signers.publicKeys)),t.tlogOptions!==void 0&&(e.tlogOptions=$e.ArtifactVerificationOptions_TlogOptions.toJSON(t.tlogOptions)),t.ctlogOptions!==void 0&&(e.ctlogOptions=$e.ArtifactVerificationOptions_CtlogOptions.toJSON(t.ctlogOptions)),t.tsaOptions!==void 0&&(e.tsaOptions=$e.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(t.tsaOptions)),t.integratedTsOptions!==void 0&&(e.integratedTsOptions=$e.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(t.integratedTsOptions)),t.observerOptions!==void 0&&(e.observerOptions=$e.ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(t.observerOptions)),e}};$e.ArtifactVerificationOptions_TlogOptions={fromJSON(t){return{threshold:Jt(t.threshold)?globalThis.Number(t.threshold):0,performOnlineVerification:Jt(t.performOnlineVerification)?globalThis.Boolean(t.performOnlineVerification):!1,disable:Jt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.performOnlineVerification!==!1&&(e.performOnlineVerification=t.performOnlineVerification),t.disable!==!1&&(e.disable=t.disable),e}};$e.ArtifactVerificationOptions_CtlogOptions={fromJSON(t){return{threshold:Jt(t.threshold)?globalThis.Number(t.threshold):0,disable:Jt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};$e.ArtifactVerificationOptions_TimestampAuthorityOptions={fromJSON(t){return{threshold:Jt(t.threshold)?globalThis.Number(t.threshold):0,disable:Jt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};$e.ArtifactVerificationOptions_TlogIntegratedTimestampOptions={fromJSON(t){return{threshold:Jt(t.threshold)?globalThis.Number(t.threshold):0,disable:Jt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};$e.ArtifactVerificationOptions_ObserverTimestampOptions={fromJSON(t){return{threshold:Jt(t.threshold)?globalThis.Number(t.threshold):0,disable:Jt(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let e={};return t.threshold!==0&&(e.threshold=Math.round(t.threshold)),t.disable!==!1&&(e.disable=t.disable),e}};$e.Artifact={fromJSON(t){return{data:Jt(t.artifactUri)?{$case:"artifactUri",artifactUri:globalThis.String(t.artifactUri)}:Jt(t.artifact)?{$case:"artifact",artifact:Buffer.from(w6t(t.artifact))}:Jt(t.artifactDigest)?{$case:"artifactDigest",artifactDigest:IA.HashOutput.fromJSON(t.artifactDigest)}:void 0}},toJSON(t){let e={};return t.data?.$case==="artifactUri"?e.artifactUri=t.data.artifactUri:t.data?.$case==="artifact"?e.artifact=S6t(t.data.artifact):t.data?.$case==="artifactDigest"&&(e.artifactDigest=IA.HashOutput.toJSON(t.data.artifactDigest)),e}};$e.Input={fromJSON(t){return{artifactTrustRoot:Jt(t.artifactTrustRoot)?mIe.TrustedRoot.fromJSON(t.artifactTrustRoot):void 0,artifactVerificationOptions:Jt(t.artifactVerificationOptions)?$e.ArtifactVerificationOptions.fromJSON(t.artifactVerificationOptions):void 0,bundle:Jt(t.bundle)?MIe.Bundle.fromJSON(t.bundle):void 0,artifact:Jt(t.artifact)?$e.Artifact.fromJSON(t.artifact):void 0}},toJSON(t){let e={};return t.artifactTrustRoot!==void 0&&(e.artifactTrustRoot=mIe.TrustedRoot.toJSON(t.artifactTrustRoot)),t.artifactVerificationOptions!==void 0&&(e.artifactVerificationOptions=$e.ArtifactVerificationOptions.toJSON(t.artifactVerificationOptions)),t.bundle!==void 0&&(e.bundle=MIe.Bundle.toJSON(t.bundle)),t.artifact!==void 0&&(e.artifact=$e.Artifact.toJSON(t.artifact)),e}};function w6t(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(w6t,"bytesFromBase64");function S6t(t){return globalThis.Buffer.from(t).toString("base64")}o(S6t,"base64FromBytes");function Jt(t){return t!=null}o(Jt,"isSet")});var Ep=h(no=>{"use strict";var N6t=no&&no.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),am=no&&no.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&N6t(e,t,r)};Object.defineProperty(no,"__esModule",{value:!0});am(fN(),no);am(m$(),no);am(Op(),no);am(M$(),no);am(g$(),no);am(gIe(),no)});var mN=h(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.BUNDLE_V03_MEDIA_TYPE=bn.BUNDLE_V03_LEGACY_MEDIA_TYPE=bn.BUNDLE_V02_MEDIA_TYPE=bn.BUNDLE_V01_MEDIA_TYPE=void 0;bn.isBundleWithCertificateChain=v6t;bn.isBundleWithPublicKey=T6t;bn.isBundleWithMessageSignature=F6t;bn.isBundleWithDsseEnvelope=x6t;bn.BUNDLE_V01_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.1";bn.BUNDLE_V02_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.2";bn.BUNDLE_V03_LEGACY_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.3";bn.BUNDLE_V03_MEDIA_TYPE="application/vnd.dev.sigstore.bundle.v0.3+json";function v6t(t){return t.verificationMaterial.content.$case==="x509CertificateChain"}o(v6t,"isBundleWithCertificateChain");function T6t(t){return t.verificationMaterial.content.$case==="publicKey"}o(T6t,"isBundleWithPublicKey");function F6t(t){return t.content.$case==="messageSignature"}o(F6t,"isBundleWithMessageSignature");function x6t(t){return t.content.$case==="dsseEnvelope"}o(x6t,"isBundleWithDsseEnvelope")});var OIe=h(zN=>{"use strict";Object.defineProperty(zN,"__esModule",{value:!0});zN.toMessageSignatureBundle=_6t;zN.toDSSEBundle=L6t;var W6t=Ep(),gN=mN();function _6t(t){return{mediaType:t.certificateChain?gN.BUNDLE_V02_MEDIA_TYPE:gN.BUNDLE_V03_MEDIA_TYPE,content:{$case:"messageSignature",messageSignature:{messageDigest:{algorithm:W6t.HashAlgorithm.SHA2_256,digest:t.digest},signature:t.signature}},verificationMaterial:zIe(t)}}o(_6t,"toMessageSignatureBundle");function L6t(t){return{mediaType:t.certificateChain?gN.BUNDLE_V02_MEDIA_TYPE:gN.BUNDLE_V03_MEDIA_TYPE,content:{$case:"dsseEnvelope",dsseEnvelope:P6t(t)},verificationMaterial:zIe(t)}}o(L6t,"toDSSEBundle");function P6t(t){return{payloadType:t.artifactType,payload:t.artifact,signatures:[Q6t(t)]}}o(P6t,"toEnvelope");function Q6t(t){return{keyid:t.keyHint||"",sig:t.signature}}o(Q6t,"toSignature");function zIe(t){return{content:k6t(t),tlogEntries:[],timestampVerificationData:{rfc3161Timestamps:[]}}}o(zIe,"toVerificationMaterial");function k6t(t){return t.certificate?t.certificateChain?{$case:"x509CertificateChain",x509CertificateChain:{certificates:[{rawBytes:t.certificate}]}}:{$case:"certificate",certificate:{rawBytes:t.certificate}}:{$case:"publicKey",publicKey:{hint:t.keyHint||""}}}o(k6t,"toKeyContent")});var O$=h(ON=>{"use strict";Object.defineProperty(ON,"__esModule",{value:!0});ON.ValidationError=void 0;var z$=class extends Error{static{o(this,"ValidationError")}constructor(e,r){super(e),this.fields=r}};ON.ValidationError=z$});var E$=h(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.assertBundle=U6t;rf.assertBundleV01=EIe;rf.isBundleV01=G6t;rf.assertBundleV02=H6t;rf.assertBundleLatest=X6t;var EN=O$();function U6t(t){let e=yN(t);if(e.length>0)throw new EN.ValidationError("invalid bundle",e)}o(U6t,"assertBundle");function EIe(t){let e=[];if(e.push(...yN(t)),e.push(...V6t(t)),e.length>0)throw new EN.ValidationError("invalid v0.1 bundle",e)}o(EIe,"assertBundleV01");function G6t(t){try{return EIe(t),!0}catch{return!1}}o(G6t,"isBundleV01");function H6t(t){let e=[];if(e.push(...yN(t)),e.push(...yIe(t)),e.length>0)throw new EN.ValidationError("invalid v0.2 bundle",e)}o(H6t,"assertBundleV02");function X6t(t){let e=[];if(e.push(...yN(t)),e.push(...yIe(t)),e.push(...j6t(t)),e.length>0)throw new EN.ValidationError("invalid bundle",e)}o(X6t,"assertBundleLatest");function yN(t){let e=[];if((t.mediaType===void 0||!t.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\+json;version=\d\.\d/)&&!t.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\.v\d\.\d\+json/))&&e.push("mediaType"),t.content===void 0)e.push("content");else switch(t.content.$case){case"messageSignature":t.content.messageSignature.messageDigest===void 0?e.push("content.messageSignature.messageDigest"):t.content.messageSignature.messageDigest.digest.length===0&&e.push("content.messageSignature.messageDigest.digest"),t.content.messageSignature.signature.length===0&&e.push("content.messageSignature.signature");break;case"dsseEnvelope":t.content.dsseEnvelope.payload.length===0&&e.push("content.dsseEnvelope.payload"),t.content.dsseEnvelope.signatures.length!==1?e.push("content.dsseEnvelope.signatures"):t.content.dsseEnvelope.signatures[0].sig.length===0&&e.push("content.dsseEnvelope.signatures[0].sig");break}if(t.verificationMaterial===void 0)e.push("verificationMaterial");else{if(t.verificationMaterial.content===void 0)e.push("verificationMaterial.content");else switch(t.verificationMaterial.content.$case){case"x509CertificateChain":t.verificationMaterial.content.x509CertificateChain.certificates.length===0&&e.push("verificationMaterial.content.x509CertificateChain.certificates"),t.verificationMaterial.content.x509CertificateChain.certificates.forEach((r,s)=>{r.rawBytes.length===0&&e.push(`verificationMaterial.content.x509CertificateChain.certificates[${s}].rawBytes`)});break;case"certificate":t.verificationMaterial.content.certificate.rawBytes.length===0&&e.push("verificationMaterial.content.certificate.rawBytes");break}t.verificationMaterial.tlogEntries===void 0?e.push("verificationMaterial.tlogEntries"):t.verificationMaterial.tlogEntries.length>0&&t.verificationMaterial.tlogEntries.forEach((r,s)=>{r.logId===void 0&&e.push(`verificationMaterial.tlogEntries[${s}].logId`),r.kindVersion===void 0&&e.push(`verificationMaterial.tlogEntries[${s}].kindVersion`)})}return e}o(yN,"validateBundleBase");function V6t(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,s)=>{r.inclusionPromise===void 0&&e.push(`verificationMaterial.tlogEntries[${s}].inclusionPromise`)}),e}o(V6t,"validateInclusionPromise");function yIe(t){let e=[];return t.verificationMaterial&&t.verificationMaterial.tlogEntries?.length>0&&t.verificationMaterial.tlogEntries.forEach((r,s)=>{r.inclusionProof===void 0?e.push(`verificationMaterial.tlogEntries[${s}].inclusionProof`):r.inclusionProof.checkpoint===void 0&&e.push(`verificationMaterial.tlogEntries[${s}].inclusionProof.checkpoint`)}),e}o(yIe,"validateInclusionProof");function j6t(t){let e=[];return t.verificationMaterial?.content?.$case==="x509CertificateChain"&&e.push("verificationMaterial.content.$case"),e}o(j6t,"validateNoCertificateChain")});var BIe=h(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.envelopeToJSON=Tc.envelopeFromJSON=Tc.bundleToJSON=Tc.bundleFromJSON=void 0;var CN=Ep(),CIe=mN(),y$=E$(),$6t=o(t=>{let e=CN.Bundle.fromJSON(t);switch(e.mediaType){case CIe.BUNDLE_V01_MEDIA_TYPE:(0,y$.assertBundleV01)(e);break;case CIe.BUNDLE_V02_MEDIA_TYPE:(0,y$.assertBundleV02)(e);break;default:(0,y$.assertBundleLatest)(e);break}return e},"bundleFromJSON");Tc.bundleFromJSON=$6t;var Y6t=o(t=>CN.Bundle.toJSON(t),"bundleToJSON");Tc.bundleToJSON=Y6t;var J6t=o(t=>CN.Envelope.fromJSON(t),"envelopeFromJSON");Tc.envelopeFromJSON=J6t;var K6t=o(t=>CN.Envelope.toJSON(t),"envelopeToJSON");Tc.envelopeToJSON=K6t});var ry=h(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.isBundleV01=st.assertBundleV02=st.assertBundleV01=st.assertBundleLatest=st.assertBundle=st.envelopeToJSON=st.envelopeFromJSON=st.bundleToJSON=st.bundleFromJSON=st.ValidationError=st.isBundleWithPublicKey=st.isBundleWithMessageSignature=st.isBundleWithDsseEnvelope=st.isBundleWithCertificateChain=st.BUNDLE_V03_MEDIA_TYPE=st.BUNDLE_V03_LEGACY_MEDIA_TYPE=st.BUNDLE_V02_MEDIA_TYPE=st.BUNDLE_V01_MEDIA_TYPE=st.toMessageSignatureBundle=st.toDSSEBundle=void 0;var DIe=OIe();Object.defineProperty(st,"toDSSEBundle",{enumerable:!0,get:o(function(){return DIe.toDSSEBundle},"get")});Object.defineProperty(st,"toMessageSignatureBundle",{enumerable:!0,get:o(function(){return DIe.toMessageSignatureBundle},"get")});var RA=mN();Object.defineProperty(st,"BUNDLE_V01_MEDIA_TYPE",{enumerable:!0,get:o(function(){return RA.BUNDLE_V01_MEDIA_TYPE},"get")});Object.defineProperty(st,"BUNDLE_V02_MEDIA_TYPE",{enumerable:!0,get:o(function(){return RA.BUNDLE_V02_MEDIA_TYPE},"get")});Object.defineProperty(st,"BUNDLE_V03_LEGACY_MEDIA_TYPE",{enumerable:!0,get:o(function(){return RA.BUNDLE_V03_LEGACY_MEDIA_TYPE},"get")});Object.defineProperty(st,"BUNDLE_V03_MEDIA_TYPE",{enumerable:!0,get:o(function(){return RA.BUNDLE_V03_MEDIA_TYPE},"get")});Object.defineProperty(st,"isBundleWithCertificateChain",{enumerable:!0,get:o(function(){return RA.isBundleWithCertificateChain},"get")});Object.defineProperty(st,"isBundleWithDsseEnvelope",{enumerable:!0,get:o(function(){return RA.isBundleWithDsseEnvelope},"get")});Object.defineProperty(st,"isBundleWithMessageSignature",{enumerable:!0,get:o(function(){return RA.isBundleWithMessageSignature},"get")});Object.defineProperty(st,"isBundleWithPublicKey",{enumerable:!0,get:o(function(){return RA.isBundleWithPublicKey},"get")});var Z6t=O$();Object.defineProperty(st,"ValidationError",{enumerable:!0,get:o(function(){return Z6t.ValidationError},"get")});var BN=BIe();Object.defineProperty(st,"bundleFromJSON",{enumerable:!0,get:o(function(){return BN.bundleFromJSON},"get")});Object.defineProperty(st,"bundleToJSON",{enumerable:!0,get:o(function(){return BN.bundleToJSON},"get")});Object.defineProperty(st,"envelopeFromJSON",{enumerable:!0,get:o(function(){return BN.envelopeFromJSON},"get")});Object.defineProperty(st,"envelopeToJSON",{enumerable:!0,get:o(function(){return BN.envelopeToJSON},"get")});var ty=E$();Object.defineProperty(st,"assertBundle",{enumerable:!0,get:o(function(){return ty.assertBundle},"get")});Object.defineProperty(st,"assertBundleLatest",{enumerable:!0,get:o(function(){return ty.assertBundleLatest},"get")});Object.defineProperty(st,"assertBundleV01",{enumerable:!0,get:o(function(){return ty.assertBundleV01},"get")});Object.defineProperty(st,"assertBundleV02",{enumerable:!0,get:o(function(){return ty.assertBundleV02},"get")});Object.defineProperty(st,"isBundleV01",{enumerable:!0,get:o(function(){return ty.isBundleV01},"get")})});var sy=h(DN=>{"use strict";Object.defineProperty(DN,"__esModule",{value:!0});DN.ByteStream=void 0;var C$=class extends Error{static{o(this,"StreamError")}},B$=class t{static{o(this,"ByteStream")}static BLOCK_SIZE=1024;buf;view;start=0;constructor(e){e?(this.buf=e,this.view=Buffer.from(e)):(this.buf=Buffer.alloc(0),this.view=Buffer.from(this.buf))}get buffer(){return this.view.subarray(0,this.start)}get length(){return this.view.byteLength}get position(){return this.start}seek(e){this.start=e}slice(e,r){let s=e+r;if(s>this.length)throw new C$("request past end of buffer");return this.view.subarray(e,s)}appendChar(e){this.ensureCapacity(1),this.view[this.start]=e,this.start+=1}appendUint16(e){this.ensureCapacity(2);let r=new Uint16Array([e]),s=new Uint8Array(r.buffer);this.view[this.start]=s[1],this.view[this.start+1]=s[0],this.start+=2}appendUint24(e){this.ensureCapacity(3);let r=new Uint32Array([e]),s=new Uint8Array(r.buffer);this.view[this.start]=s[2],this.view[this.start+1]=s[1],this.view[this.start+2]=s[0],this.start+=3}appendView(e){this.ensureCapacity(e.length),this.view.set(e,this.start),this.start+=e.length}getBlock(e){if(e<=0)return Buffer.alloc(0);if(this.start+e>this.view.length)throw new Error("request past end of buffer");let r=this.view.subarray(this.start,this.start+e);return this.start+=e,r}getUint8(){return this.getBlock(1)[0]}getUint16(){let e=this.getBlock(2);return e[0]<<8|e[1]}ensureCapacity(e){if(this.start+e>this.view.byteLength){let r=t.BLOCK_SIZE+(e>t.BLOCK_SIZE?e:0);this.realloc(this.view.byteLength+r)}}realloc(e){let r=Buffer.alloc(e),s=Buffer.from(r);s.set(this.view),this.buf=r,this.view=s}};DN.ByteStream=B$});var qN=h(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.ASN1TypeError=cm.ASN1ParseError=void 0;var D$=class extends Error{static{o(this,"ASN1ParseError")}};cm.ASN1ParseError=D$;var q$=class extends Error{static{o(this,"ASN1TypeError")}};cm.ASN1TypeError=q$});var IIe=h(IN=>{"use strict";Object.defineProperty(IN,"__esModule",{value:!0});IN.decodeLength=evt;IN.encodeLength=tvt;var qIe=qN();function evt(t){let e=t.getUint8();if((e&128)===0)return e;let r=e&127;if(r>6)throw new qIe.ASN1ParseError("length exceeds 6 byte limit");let s=0;for(let n=0;n{"use strict";var Gvt=ci&&ci.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Hvt=ci&&ci.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YIe=ci&&ci.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n1)r=e;else if(this.head)s=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;s!==null;n++)r=t(r,s.value,n),s=s.next;return r};St.prototype.reduceReverse=function(t,e){var r,s=this.tail;if(arguments.length>1)r=e;else if(this.tail)s=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;s!==null;n--)r=t(r,s.value,n),s=s.prev;return r};St.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};St.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};St.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new St;if(e