140 lines
2.0 MiB
JavaScript
Raw Normal View History

var Rge=Object.create;var DA=Object.defineProperty;var Ige=Object.getOwnPropertyDescriptor;var kge=Object.getOwnPropertyNames;var Oge=Object.getPrototypeOf,Bge=Object.prototype.hasOwnProperty;var Dge=(t,e)=>()=>(t&&(e=t(t=0)),e);var H=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Di=(t,e)=>{for(var r in e)DA(t,r,{get:e[r],enumerable:!0})},Cge=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of kge(e))!Bge.call(t,i)&&i!==r&&DA(t,i,{get:()=>e[i],enumerable:!(n=Ige(e,i))||n.enumerable});return t};var or=(t,e,r)=>(r=t!=null?Rge(Oge(t)):{},Cge(e||!t||!t.__esModule?DA(r,"default",{value:t,enumerable:!0}):r,t));var UL=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var FL=(t,e,r)=>(UL(t,e,"read from private field"),r?r.call(t):e.get(t)),zL=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},CA=(t,e,r,n)=>(UL(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var WL=H(dE=>{"use strict";E();dE.byteLength=Nge;dE.toByteArray=$ge;dE.fromByteArray=Fge;var Eu=[],wc=[],jge=typeof Uint8Array<"u"?Uint8Array:Array,jA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(A0=0,KL=jA.length;A0<KL;++A0)Eu[A0]=jA[A0],wc[jA.charCodeAt(A0)]=A0;var A0,KL;wc["-".charCodeAt(0)]=62;wc["_".charCodeAt(0)]=63;function GL(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Nge(t){var e=GL(t),r=e[0],n=e[1];return(r+n)*3/4-n}function qge(t,e,r){return(e+r)*3/4-r}function $ge(t){var e,r=GL(t),n=r[0],i=r[1],o=new jge(qge(t,n,i)),s=0,a=i>0?n-4:n,d;for(d=0;d<a;d+=4)e=wc[t.charCodeAt(d)]<<18|wc[t.charCodeAt(d+1)]<<12|wc[t.charCodeAt(d+2)]<<6|wc[t.charCodeAt(d+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=wc[t.charCodeAt(d)]<<2|wc[t.charCodeAt(d+1)]>>4,o[s++]=e&255),i===1&&(e=wc[t.charCodeAt(d)]<<10|wc[t.charCodeAt(d+1)]<<4|wc[t.charCodeAt(d+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function Lge(t){return Eu[t>>18&63]+Eu[t>>12&63]+Eu[t>>6&63]+Eu[t&63]}function Uge(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(Lge(n));return i.join("")}function Fge(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(Uge(t,s,s+o>a?a:s+o));return n===1?(e=t[r-1],i.push(Eu[e>>2]+Eu[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Eu[e>>10]+Eu[e>>4&63]+Eu[e<<2&63]+"=")),i.join("")}});var VL=H(NA=>{E();NA.read=function(t,e,r,n,i){var o,s,a=i*8-n-1,d=(1<<a)-1,m=d>>1,p=-7,w=r?i-1:0,P=r?-1:1,S=t[e+w];for(w+=P,o=S&(1<<-p)-1,S>>=-p,p+=a;p>0;o=o*256+t[e+w],w+=P,p-=8);for(s=o&(1<<-p)-1,o>>=-p,p+=n;p>0;s=s*256+t[e+w],w+=P,p-=8);if(o===0)o=1-m;else{if(o===d)return s?NaN:(S?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-m}return(S?-1:1)*s*Math.pow(2,o-n)};NA.write=function(t,e,r,n,i,o){var s,a,d,m=o*8-i-1,p=(1<<m)-1,w=p>>1,P=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=n?0:o-1,M=n?1:-1,A=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=p):(s=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-s))<1&&(s--,d*=2),s+w>=1?e+=P/d:e+=P*Math.pow(2,1-w),e*d>=2&&(s++,d/=2),s+w>=p?(a=0,s=p):s+w>=1?(a=(e*d-1)*Math.pow(2,i),s=s+w):(a=e*Math.pow(2,w-1)*Math.pow(2,i),s=0));i>=8;t[r+S]=a&255,S+=M,a/=256,i-=8);for(s=s<<i|a,m+=i;m>0;t[r+S]=s&255,S+=M,s/=256,m-=8);t[r+S-M]|=A*128}});var sr=H(Mg=>{"use strict";E();var qA=WL(),Sg=VL(),HL=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Mg.Buffer=Le;Mg.SlowBuffer=Hge;Mg.INSPECT_MAX_BYTES=50;var hE=2147483647;Mg.kMaxLength=hE;Le.TYPED_ARRAY_SUPPORT=zge();!Le.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function zge(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1
Use Chrome, Firefox or Internet Explorer 11`)}var Jxe=Fr().Buffer,y6=globalThis.crypto||globalThis.msCrypto;y6&&y6.getRandomValues?dI.exports=Yxe:dI.exports=Zxe;function Yxe(t,e){if(t>Hxe)throw new RangeError("requested too many random bytes");var r=Jxe.allocUnsafe(t);if(t>0)if(t>lI)for(var n=0;n<t;n+=lI)y6.getRandomValues(r.slice(n,n+lI));else y6.getRandomValues(r);return typeof e=="function"?j.default.nextTick(function(){e(null,r)}):r}});var It=H((ldt,hI)=>{E();typeof Object.create=="function"?hI.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:hI.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}});var FW=H((pI,UW)=>{E();var g6=sr(),qu=g6.Buffer;function LW(t,e){for(var r in t)e[r]=t[r]}qu.from&&qu.alloc&&qu.allocUnsafe&&qu.allocUnsafeSlow?UW.exports=g6:(LW(g6,pI),pI.Buffer=tm);function tm(t,e,r){return qu(t,e,r)}tm.prototype=Object.create(qu.prototype);LW(qu,tm);tm.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return qu(t,e,r)};tm.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=qu(t);return e!==void 0?typeof r=="string"?n.fill(e,r):n.fill(e):n.fill(0),n};tm.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return qu(t)};tm.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return g6.SlowBuffer(t)}});var Go=H((pdt,mI)=>{"use strict";E();var mv=typeof Reflect=="object"?Reflect:null,zW=mv&&typeof mv.apply=="function"?mv.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)},v6;mv&&typeof mv.ownKeys=="function"?v6=mv.ownKeys:Object.getOwnPropertySymbols?v6=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:v6=function(e){return Object.getOwnPropertyNames(e)};function Qxe(t){console&&console.warn&&console.warn(t)}var GW=Number.isNaN||function(e){return e!==e};function gn(){gn.init.call(this)}mI.exports=gn;mI.exports.once=r3e;gn.EventEmitter=gn;gn.prototype._events=void 0;gn.prototype._eventsCount=0;gn.prototype._maxListeners=void 0;var KW=10;function b6(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(gn,"defaultMaxListeners",{enumerable:!0,get:function(){return KW},set:function(t){if(typeof t!="number"||t<0||GW(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");KW=t}});gn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};gn.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||GW(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function WW(t){return t._maxListeners===void 0?gn.defaultMaxListeners:t._maxListeners}gn.prototype.getMaxListeners=function(){return WW(this)};gn.prototype.emit=function(e){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=e==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var s;if(r.length>0&&(s=r[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var d=o[e];if(d===void 0)return!1;if(typeof d=="function")zW(d,this,r);else for(var m=d.length,p=YW(d,m),n=0;n<m;++n)zW(p[n],this,r);return!0};function VW(t,e,r,n){var i,o,s;if(b6(r),o=t._events,o===void 0?(o=t._events=Object.create(null),t._eventsCount=0):(o.newListener!==void 0&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),s===void 0)s=o[e]=r,++t._eventsCount;else if(typeof s=="function"?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=WW(t),i>0&&s.length>i&&!s.warned){s.warned=!0;va
`)>-1&&(o?a=a.split(`
`).map(function(m){return" "+m}).join(`
`).substr(2):a=`
`+a.split(`
`).map(function(m){return" "+m}).join(`
`))):a=t.stylize("[Circular]","special")),sm(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function zEe(t,e,r){var n=0,i=t.reduce(function(o,s){return n++,s.indexOf(`
`)>=0&&n++,o+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(e===""?"":e+`
`)+" "+t.join(`,
`)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}Or.types=uH();function mH(t){return Array.isArray(t)}Or.isArray=mH;function KI(t){return typeof t=="boolean"}Or.isBoolean=KI;function K6(t){return t===null}Or.isNull=K6;function KEe(t){return t==null}Or.isNullOrUndefined=KEe;function yH(t){return typeof t=="number"}Or.isNumber=yH;function G6(t){return typeof t=="string"}Or.isString=G6;function GEe(t){return typeof t=="symbol"}Or.isSymbol=GEe;function sm(t){return t===void 0}Or.isUndefined=sm;function y2(t){return Ev(t)&&GI(t)==="[object RegExp]"}Or.isRegExp=y2;Or.types.isRegExp=y2;function Ev(t){return typeof t=="object"&&t!==null}Or.isObject=Ev;function z6(t){return Ev(t)&&GI(t)==="[object Date]"}Or.isDate=z6;Or.types.isDate=z6;function g2(t){return Ev(t)&&(GI(t)==="[object Error]"||t instanceof Error)}Or.isError=g2;Or.types.isNativeError=g2;function U6(t){return typeof t=="function"}Or.isFunction=U6;function WEe(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Or.isPrimitive=WEe;Or.isBuffer=dH();function GI(t){return Object.prototype.toString.call(t)}function FI(t){return t<10?"0"+t.toString(10):t.toString(10)}var VEe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function HEe(){var t=new Date,e=[FI(t.getHours()),FI(t.getMinutes()),FI(t.getSeconds())].join(":");return[t.getDate(),VEe[t.getMonth()],e].join(" ")}Or.log=function(){console.log("%s - %s",HEe(),Or.format.apply(Or,arguments))};Or.inherits=It();Or._extend=function(t,e){if(!e||!Ev(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};function gH(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var om=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Or.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(om&&e[om]){var r=e[om];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,om,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,o=new Promise(function(d,m){n=d,i=m}),s=[],a=0;a<arguments.length;a++)s.push(arguments[a]);s.push(function(d,m){d?i(d):n(m)});try{e.apply(this,s)}catch(d){i(d)}return o}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),om&&Object.defineProperty(r,om,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,hH(e))};Or.promisify.custom=om;function ZEe(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}function JEe(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if(typeof i!="function")throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};t.apply(this,r).then(function(a){j.default.nextTick(s.bind(null,null,a))},function(a){j.default.nextTick(ZEe.bind(null,a,s))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,hH(t)),e}Or.callbackify=JEe});var EH=H((sht,xH)=>{"use strict";E();function vH(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function bH(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vH(Object(r),!0).forEach(function(n){YEe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vH(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function YEe(t,e,r){return e=_H(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QEe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wH(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumer
`)}});var N7=H(Tte=>{"use strict";E();var Ate=Tte;Ate.der=D7();Ate.pem=Pte()});var $7=H((kgt,Dte)=>{"use strict";E();var AIe=It(),TIe=k7(),Rte=sb().DecoderBuffer,kte=qM(),Ite=$M();function Ote(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new Qa,this.tree._init(t.body)}Dte.exports=Ote;Ote.prototype.decode=function(e,r){return Rte.isDecoderBuffer(e)||(e=new Rte(e,r)),this.tree._decode(e,r)};function Qa(t){kte.call(this,"der",t)}AIe(Qa,kte);Qa.prototype._peekTag=function(e,r,n){if(e.isEmpty())return!1;let i=e.save(),o=q7(e,'Failed to peek tag: "'+r+'"');return e.isError(o)?o:(e.restore(i),o.tag===r||o.tagStr===r||o.tagStr+"of"===r||n)};Qa.prototype._decodeTag=function(e,r,n){let i=q7(e,'Failed to decode tag of "'+r+'"');if(e.isError(i))return i;let o=Bte(e,i.primitive,'Failed to get length of "'+r+'"');if(e.isError(o))return o;if(!n&&i.tag!==r&&i.tagStr!==r&&i.tagStr+"of"!==r)return e.error('Failed to match tag: "'+r+'"');if(i.primitive||o!==null)return e.skip(o,'Failed to match body of: "'+r+'"');let s=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(o=e.offset-s.offset,e.restore(s),e.skip(o,'Failed to match body of: "'+r+'"'))};Qa.prototype._skipUntilEnd=function(e,r){for(;;){let n=q7(e,r);if(e.isError(n))return n;let i=Bte(e,n.primitive,r);if(e.isError(i))return i;let o;if(n.primitive||i!==null?o=e.skip(i):o=this._skipUntilEnd(e,r),e.isError(o))return o;if(n.tagStr==="end")break}};Qa.prototype._decodeList=function(e,r,n,i){let o=[];for(;!e.isEmpty();){let s=this._peekTag(e,"end");if(e.isError(s))return s;let a=n.decode(e,"der",i);if(e.isError(a)&&s)break;o.push(a)}return o};Qa.prototype._decodeStr=function(e,r){if(r==="bitstr"){let n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}else if(r==="bmpstr"){let n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");let i="";for(let o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(o*2));return i}else if(r==="numstr"){let n=e.raw().toString("ascii");return this._isNumstr(n)?n:e.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return e.raw();if(r==="objDesc")return e.raw();if(r==="printstr"){let n=e.raw().toString("ascii");return this._isPrintstr(n)?n:e.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?e.raw().toString():e.error("Decoding of string type: "+r+" unsupported")}};Qa.prototype._decodeObjid=function(e,r,n){let i,o=[],s=0,a=0;for(;!e.isEmpty();)a=e.readUInt8(),s<<=7,s|=a&127,a&128||(o.push(s),s=0);a&128&&o.push(s);let d=o[0]/40|0,m=o[0]%40;if(n?i=o:i=[d,m].concat(o.slice(1)),r){let p=r[i.join(" ")];p===void 0&&(p=r[i.join(".")]),p!==void 0&&(i=p)}return i};Qa.prototype._decodeTime=function(e,r){let n=e.raw().toString(),i,o,s,a,d,m;if(r==="gentime")i=n.slice(0,4)|0,o=n.slice(4,6)|0,s=n.slice(6,8)|0,a=n.slice(8,10)|0,d=n.slice(10,12)|0,m=n.slice(12,14)|0;else if(r==="utctime")i=n.slice(0,2)|0,o=n.slice(2,4)|0,s=n.slice(4,6)|0,a=n.slice(6,8)|0,d=n.slice(8,10)|0,m=n.slice(10,12)|0,i<70?i=2e3+i:i=1900+i;else return e.error("Decoding "+r+" time is not supported yet");return Date.UTC(i,o-1,s,a,d,m,0)};Qa.prototype._decodeNull=function(){return null};Qa.prototype._decodeBool=function(e){let r=e.readUInt8();return e.isError(r)?r:r!==0};Qa.prototype._decodeInt=function(e,r){let n=e.raw(),i=new TIe(n);return r&&(i=r[i.toString(10)]||i),i};Qa.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getDecoder("der").tree};function q7(t,e){let r=t.readUInt8(e);if(t.isError(r))return r;let n=Ite.tagClass[r>>6],i=(r&32)===0;if((r&31)===31){let s=r;for(r=0;(s&128)===128;){if(s=t.readUInt8(e),t.isError(s))return s;r<<=7,r|=s&127}}else r&=31;let o=Ite.tag[r];return{cls:n,primitive:i,tag:r,tagStr:o}}function Bte(t,e,r){let n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&n===128)return null;if(!(n&128))return n;let i=n&127;if(i>4)return t.error("length octect is too long");n=0;for(let o=0;o<i;o++){n<<=8;let s=t.readUInt8(r);if(t.isError(s))return s;n|=s}return n
use chrome, FireFox or Internet Explorer 11`)}var qre=Fr(),Nre=em(),$re=qre.Buffer,Lre=qre.kMaxLength,iO=globalThis.crypto||globalThis.msCrypto,Ure=Math.pow(2,32)-1;function Fre(t,e){if(typeof t!="number"||t!==t)throw new TypeError("offset must be a number");if(t>Ure||t<0)throw new TypeError("offset must be a uint32");if(t>Lre||t>e)throw new RangeError("offset out of range")}function zre(t,e,r){if(typeof t!="number"||t!==t)throw new TypeError("size must be a number");if(t>Ure||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>Lre)throw new RangeError("buffer too small")}iO&&iO.getRandomValues||!j.default.browser?(h_.randomFill=Vke,h_.randomFillSync=Hke):(h_.randomFill=jre,h_.randomFillSync=jre);function Vke(t,e,r,n){if(!$re.isBuffer(t)&&!(t instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")n=e,e=0,r=t.length;else if(typeof r=="function")n=r,r=t.length-e;else if(typeof n!="function")throw new TypeError('"cb" argument must be a function');return Fre(e,t.length),zre(r,e,t.length),Kre(t,e,r,n)}function Kre(t,e,r,n){if(j.default.browser){var i=t.buffer,o=new Uint8Array(i,e,r);if(iO.getRandomValues(o),n){j.default.nextTick(function(){n(null,t)});return}return t}if(n){Nre(r,function(a,d){if(a)return n(a);d.copy(t,e),n(null,t)});return}var s=Nre(r);return s.copy(t,e),t}function Hke(t,e,r){if(typeof e>"u"&&(e=0),!$re.isBuffer(t)&&!(t instanceof globalThis.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return Fre(e,t.length),r===void 0&&(r=t.length-e),zre(r,e,t.length),Kre(t,e,r)}});var JS=H(hr=>{"use strict";E();hr.randomBytes=hr.rng=hr.pseudoRandomBytes=hr.prng=em();hr.createHash=hr.Hash=Ov();hr.createHmac=hr.Hmac=Zk();var Zke=sY(),Jke=Object.keys(Zke),Yke=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Jke);hr.getHashes=function(){return Yke};var Wre=o9();hr.pbkdf2=Wre.pbkdf2;hr.pbkdf2Sync=Wre.pbkdf2Sync;var el=TQ();hr.Cipher=el.Cipher;hr.createCipher=el.createCipher;hr.Cipheriv=el.Cipheriv;hr.createCipheriv=el.createCipheriv;hr.Decipher=el.Decipher;hr.createDecipher=el.createDecipher;hr.Decipheriv=el.Decipheriv;hr.createDecipheriv=el.createDecipheriv;hr.getCiphers=el.getCiphers;hr.listCiphers=el.listCiphers;var p_=zQ();hr.DiffieHellmanGroup=p_.DiffieHellmanGroup;hr.createDiffieHellmanGroup=p_.createDiffieHellmanGroup;hr.getDiffieHellman=p_.getDiffieHellman;hr.createDiffieHellman=p_.createDiffieHellman;hr.DiffieHellman=p_.DiffieHellman;var VM=yre();hr.createSign=VM.createSign;hr.Sign=VM.Sign;hr.createVerify=VM.createVerify;hr.Verify=VM.Verify;hr.createECDH=wre();var HM=Cre();hr.publicEncrypt=HM.publicEncrypt;hr.privateEncrypt=HM.privateEncrypt;hr.publicDecrypt=HM.publicDecrypt;hr.privateDecrypt=HM.privateDecrypt;var Vre=Gre();hr.randomFill=Vre.randomFill;hr.randomFillSync=Vre.randomFillSync;hr.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
`))};hr.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var zf=H(pr=>{"use strict";E();Object.defineProperty(pr,"__esModule",{value:!0});pr.setBigUint64=pr.Hash=pr.equalBytes=pr.ensureBytes=pr.checkOpts=pr.concatBytes=pr.toBytes=pr.bytesToUtf8=pr.utf8ToBytes=pr.asyncLoop=pr.nextTick=pr.hexToBytes=pr.bytesToHex=pr.isLE=pr.createView=pr.u32=pr.u16=pr.u8=void 0;var sO=t=>t instanceof Uint8Array,Qke=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength);pr.u8=Qke;var Xke=t=>new Uint16Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/2));pr.u16=Xke;var e9e=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4));pr.u32=e9e;var t9e=t=>new DataView(t.buffer,t.byteOffset,t.byteLength);pr.createView=t9e;pr.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!pr.isLE)throw new Error("Non little-endian hardware is not supported");var r9e=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function n9e(t){if(!sO(t))throw new Error("Uint8Array expected");let e="";for(let r=0;r<t.length;r++)e+=r9e[t[r]];return e}pr.bytesToHex=n9e;function i9e(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);let e=t.length;if(e%2)throw new Error("padded hex string expected, got unpadded hex of length "+e);let r=new Uint8Array(e/2);for(let n=0;n<r.length;n++){let i=n*2,o=t.slice(i,i+2),s=Number.parseInt(o,16);if(Number.isNaN(s)||s<0)throw new Error("Invalid byte sequence");r[n]=s}return r}pr.hexToBytes=i9e;var o9e=async()=>{};pr.nextTick=o9e;async function s9e(t,e,r){let n=Date.now();for(let i=0;i<t;i++){r(i);let o=Date.now()-n;o>=0&&o<e||(await(0,pr.nextTick)(),n+=o)}}pr.asyncLoop=s9e;function Hre(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}pr.utf8ToBytes=Hre;function a9e(t){return new TextDecoder().decode(t)}pr.bytesToUtf8=a9e;function c9e(t){if(typeof t=="string"&&(t=Hre(t)),!sO(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}pr.toBytes=c9e;function f9e(...t){let e=new Uint8Array(t.reduce((n,i)=>n+i.length,0)),r=0;return t.forEach(n=>{if(!sO(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}pr.concatBytes=f9e;var u9e=t=>Object.prototype.toString.call(t)==="[object Object]"&&t.constructor===Object;function l9e(t,e){if(e!==void 0&&(typeof e!="object"||!u9e(e)))throw new Error("options must be object or undefined");return Object.assign(t,e)}pr.checkOpts=l9e;function d9e(t,e){if(!(t instanceof Uint8Array))throw new Error("Uint8Array expected");if(typeof e=="number"&&t.length!==e)throw new Error(`Uint8Array length ${e} expected`)}pr.ensureBytes=d9e;function h9e(t,e){if(t.length!==e.length)throw new Error("equalBytes: Different size of Uint8Arrays");let r=!0;for(let n=0;n<t.length;n++)r&&(r=t[n]===e[n]);return r}pr.equalBytes=h9e;var oO=class{};pr.Hash=oO;function p9e(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);let i=BigInt(32),o=BigInt(4294967295),s=Number(r>>i&o),a=Number(r&o),d=n?4:0,m=n?0:4;t.setUint32(e+d,s,n),t.setUint32(e+m,a,n)}pr.setBigUint64=p9e});var m_=H(Cs=>{"use strict";E();Object.defineProperty(Cs,"__esModule",{value:!0});Cs.AEAD_TAG_LENGTH=Cs.XCHACHA20_NONCE_LENGTH=Cs.CURVE25519_PUBLIC_KEY_SIZE=Cs.ETH_PUBLIC_KEY_SIZE=Cs.UNCOMPRESSED_PUBLIC_KEY_SIZE=Cs.COMPRESSED_PUBLIC_KEY_SIZE=Cs.SECRET_KEY_LENGTH=void 0;Cs.SECRET_KEY_LENGTH=32;Cs.COMPRESSED_PUBLIC_KEY_SIZE=33;Cs.UNCOMPRESSED_PUBLIC_KEY_SIZE=65;Cs.ETH_PUBLIC_KEY_SIZE=64;Cs.CURVE25519_PUBLIC_KEY_SIZE=32;Cs.XCHACHA20_NONCE_LENGTH=24;Cs.AEAD_TAG_LENGTH=16});var Vm=H(Xn=>{"use strict";E();Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ephemeralKeySize=Xn.symmetricNonceLength=Xn.symmetricAlgorithm=Xn.isHkdfKeyCompressed=Xn.isEphemeralKeyCompre
`;super(r),this.name="AggregateError",this.errors=e}};fB.exports={AggregateError:cB,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((n,i)=>{t=n,e=i}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((n,...i)=>n?r(n):e(...i))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let i=e.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof MBe},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:PBe,deprecate(t,e){return t},addAbortListener:Go().addAbortListener||function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);soe(e,"signal"),ABe(r,"listener");let n;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[_Be]:!0}),n=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[xBe](){var i;(i=n)===null||i===void 0||i()}}},AbortSignalAny:EBe.any||function(e){if(e.length===1)return e[0];let r=new SBe,n=()=>r.abort();return e.forEach(i=>{soe(i,"signals"),i.addEventListener("abort",n,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(i=>i.removeEventListener("abort",n))},{once:!0}),r.signal}};fB.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var na=H((ewt,foe)=>{"use strict";E();var{format:TBe,inspect:O5,AggregateError:RBe}=qs(),IBe=globalThis.AggregateError||RBe,kBe=Symbol("kIsNodeError"),OBe=["string","function","number","object","Function","Object","boolean","bigint","symbol"],BBe=/^([A-Z][a-z0-9]*)+$/,DBe="__node_internal_",B5={};function Xm(t,e){if(!t)throw new B5.ERR_INTERNAL_ASSERTION(e)}function aoe(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function CBe(t,e,r){if(typeof e=="function")return Xm(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return Xm(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:TBe(e,...r)}function Jo(t,e,r){r||(r=Error);class n extends r{constructor(...o){super(CBe(t,e,o))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[kBe]=!0,B5[t]=n}function coe(t){let e=DBe+t.name;return Object.defineProperty(t,"name",{value:e}),t}function jBe(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new IBe([e,t],e.message);return r.code=e.code,r}return t||e}var uB=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new B5.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Jo("ERR_ASSERTION","%s",Error);Jo("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Xm(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let i=[],o=[],s=[];for(let d of e)Xm(typeof d=="string","All expected entries have to be of type string"),OBe.includes(d)?i.push(d.toLowerCase()):BBe.test(d)?o.push(d):(Xm(d!=="object",'The value "object" should be written as "Object"'),s.push(d));if(o.length>0){let
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(N,G){var x=typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(!x){if(Array.isArray(N)||(x=k(N))||G&&N&&typeof N.length=="number"){x&&(N=x);var c=0,u=function(){};return{s:u,n:function(){return c>=N.length?{done:!0}:{done:!1,value:N[c++]}},e:function(b){throw b},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y,l=!0,h=!1;return{s:function(){x=x.call(N)},n:function(){var b=x.next();return l=b.done,b},e:function(b){h=!0,y=b},f:function(){try{l||x.return==null||x.return()}finally{if(h)throw y}}}}var F=function(N){var G=Math.abs,x=Math.max,c=Math.floor;function u(l,h){var b;if(n(this,u),b=y.call(this,l),b.sign=h,Object.setPrototypeOf(S(b),u.prototype),l>u.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return b}s(u,N);var y=A(u);return o(u,[{key:"toDebugString",value:function(){var l,h=["BigInt["],b=U(this);try{for(b.s();!(l=b.n()).done;){var _=l.value;h.push((_&&(_>>>0).toString(16))+", ")}}catch(g){b.e(g)}finally{b.f()}return h.push("]"),h.join("")}},{key:"toString",value:function(){var l=0<arguments.length&&arguments[0]!==void 0?arguments[0]:10;if(2>l||36<l)throw new RangeError("toString() radix argument must be between 2 and 36");return this.length===0?"0":l&l-1?u.__toStringGeneric(this,l,!1):u.__toStringBasePowerOfTwo(this,l)}},{key:"valueOf",value:function(){throw new Error("Convert JSBI instances to native numbers using `toNumber`.")}},{key:"__copy",value:function(){for(var l=new u(this.length,this.sign),h=0;h<this.length;h++)l[h]=this[h];return l}},{key:"__trim",value:function(){for(var l=this.length,h=this[l-1];h===0;)l--,h=this[l-1],this.pop();return l===0&&(this.sign=!1),this}},{key:"__initializeDigits",value:function(){for(var l=0;l<this.length;l++)this[l]=0}},{key:"__clzmsd",value:function(){return u.__clz30(this.__digit(this.length-1))}},{key:"__inplaceMultiplyAdd",value:function(l,h,b){b>this.length&&(b=this.length);for(var _=32767&l,g=l>>>15,f=0,v=h,O=0;O<b;O++){var T=this.__digit(O),R=32767&T,z=T>>>15,V=u.__imul(R,_),W=u.__imul(R,g),Z=u.__imul(z,_),J=u.__imul(z,g),X=v+V+f;f=X>>>30,X&=1073741823,X+=((32767&W)<<15)+((32767&Z)<<15),f+=X>>>30,v=J+(W>>>15)+(Z>>>15),this.__setDigit(O,1073741823&X)}if(f!==0||v!==0)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(l,h,b){for(var _,g=0,f=0;f<b;f++)_=this.__halfDigit(h+f)+l.__halfDigit(f)+g,g=_>>>15,this.__setHalfDigit(h+f,32767&_);return g}},{key:"__inplaceSub",value:function(l,h,b){var _=0;if(1&h){h>>=1;for(var g=this.__digit(h),f=32767&g,v=0;v<b-1>>>1;v++){var O=l.__digit(v),T=(g>>>15)-(32767&O)-_;_=1&T>>>15,this.__setDigit(h+v,(32767&T)<<15|32767&f),g=this.__digit(h+v+1),f=(32767&g)-(O>>>15)-_,_=1&f>>>15}var R=l.__digit(v),z=(g>>>15)-(32767&R)-_;if(_=1&z>>>15,this.__setDigit(h+v,(32767&z)<<15|32767&f),h+v+1>=this.length)throw new RangeError("out of bounds");!(1&b)&&(g=this.__digit(h+v+1),f=(32767&g)-(R>>>15)-_,_=1&f>>>15,this.__setDigit(h+l.length,1073709056&g|32767&f))}else{h>>=1;for(var V=0;V<l.length-1;V++){var W=this.__digit(h+V),Z=l.__digit(V),J=(32767&W)-(32767&Z)-_;_=1&J>>>15;var X=(W>>>15)-(Z>>>15)-_;_=1&X>>>15,this.__setDigit(h+V,(32767&X)<<15|32767&J)}var Ee=this.__digit(h+V),re=l.__digit(V),ne=(32767&Ee)-(32767&re)-_;_=1&ne>>>15;var qe=0;!(1&b)&&(qe=(Ee>>>15)-(re>>>15)-_,_=1&qe>>>15),this.__setDigit(h+V,(32767&qe)<<15|32767&ne)}return _}},{key:"__inplaceRightShift",value:function(l){if(l!==0){for(var h,b=this.__digit(0)>>>l,_=this.length-1,g=0;g<_;g++)h=this.__digit(g+1),this.__setDigit(g,1073741823&h<<30-l|b),b=h>>>l;this.__setDigit(_,b)}}},{key:"__digit",value:function(l){return this[l]}},{key:"__unsignedDigit",value:function(l){return this[l]>>>0}},{key:"__setDigit",value:function(l,h){this[l]=0|h}},{key:"__setDigitGrow",value:function(l,h){this[l]=0|h}},{key:"__halfDigitLength",value:function(){var l=this.length;return 32767>=this.__unsignedDigit(l-1)?2*l-1:2*l}},{key:"__halfDigit",value:function(l){return 32767&this[l>>>1]>>>15*(1&l)}},{key:"__setHalfDigit",value:function(l,h){var b=l>>>1,_=this.__digit(b),g=1&l?32767&_|h<<15:1073709056&_|32767&h;this.__setDigit(b,g)}}],[{key:"BigInt",value:function(l){var h=Number.isFinite;if(typeof l=="number"){if(l===0)return u.__zero();if(u.__isOneDigitInt(l))return 0>l?u.__oneDigit(-l,!0):u.__oneDigit(l,!1);if(!h(l)||c(l)!==l)throw new RangeError("The number "+l+" cannot be converted
`:""},this._extScope=e,this._scope=new ru.Scope({parent:e}),this._nodes=[new $C]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new BC(e,o,n)),o}const(e,r,n){return this._def(ru.varKinds.const,e,r,n)}let(e,r,n){return this._def(ru.varKinds.let,e,r,n)}var(e,r,n){return this._def(ru.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new t4(e,r,n))}add(e,r){return this._leafNode(new DC(e,wr.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==Kr.nil&&this._leafNode(new qC(e)),this}object(...e){let r=["{"];for(let[n,i]of e)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,Kr.addCodeArg)(r,i));return r.push("}"),new Kr._Code(r)}if(e,r,n){if(this._blockNode(new nu(e)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new nu(e))}else(){return this._elseNode(new ow)}endIf(){return this._endBlockNode(nu,ow)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new LC(e),r)}forRange(e,r,n,i,o=this.opts.es5?ru.varKinds.var:ru.varKinds.let){let s=this._scope.toName(e);return this._for(new UC(o,s,r,n),()=>i(s))}forOf(e,r,n,i=ru.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let s=r instanceof Kr.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Kr._)`${s}.length`,a=>{this.var(o,(0,Kr._)`${s}[${a}]`),n(o)})}return this._for(new r4("of",i,o,r),()=>n(o))}forIn(e,r,n,i=this.opts.es5?ru.varKinds.var:ru.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Kr._)`Object.keys(${r})`,n);let o=this._scope.toName(e);return this._for(new r4("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(Ty)}label(e){return this._leafNode(new CC(e))}break(e){return this._leafNode(new jC(e))}return(e){let r=new bx;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(bx)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new FC;if(this._blockNode(i),this.code(e),r){let o=this.name("e");this._currNode=i.catch=new wx(o),r(o)}return n&&(this._currNode=i.finally=new _x,this.code(n)),this._endBlockNode(wx,_x)}throw(e){return this._leafNode(new NC(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=Kr.nil,n,i){return this._blockNode(new vx(e,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(vx)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof nu))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};wr.CodeGen=zC;function Ry(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function n4(t,e){return e in
|| (${s} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,ar._)`+${i}`);return;case"integer":n.elseIf((0,ar._)`${s} === "boolean" || ${i} === null
|| (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,ar._)`+${i}`);return;case"boolean":n.elseIf((0,ar._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,ar._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":n.elseIf((0,ar._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(a,null);return;case"array":n.elseIf((0,ar._)`${s} === "string" || ${s} === "number"
|| ${s} === "boolean" || ${i} === null`).assign(a,(0,ar._)`[${i}]`)}}}function fLe({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,ar._)`${e} !== undefined`,()=>t.assign((0,ar._)`${e}[${r}]`,n))}function JC(t,e,r,n=Ex.Correct){let i=n===Ex.Correct?ar.operators.EQ:ar.operators.NEQ,o;switch(t){case"null":return(0,ar._)`${e} ${i} null`;case"array":o=(0,ar._)`Array.isArray(${e})`;break;case"object":o=(0,ar._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":o=s((0,ar._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":o=s();break;default:return(0,ar._)`typeof ${e} ${i} ${t}`}return n===Ex.Correct?o:(0,ar.not)(o);function s(a=ar.nil){return(0,ar.and)((0,ar._)`typeof ${e} == "number"`,a,r?(0,ar._)`isFinite(${e})`:ar.nil)}}fs.checkDataType=JC;function YC(t,e,r,n){if(t.length===1)return JC(t[0],e,r,n);let i,o=(0,Xfe.toHash)(t);if(o.array&&o.object){let s=(0,ar._)`typeof ${e} != "object"`;i=o.null?s:(0,ar._)`!${e} || ${s}`,delete o.null,delete o.array,delete o.object}else i=ar.nil;o.number&&delete o.integer;for(let s in o)i=(0,ar.and)(i,JC(s,e,r,n));return i}fs.checkDataTypes=YC;var uLe={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,ar._)`{type: ${t}}`:(0,ar._)`{type: ${e}}`};function QC(t){let e=lLe(t);(0,iLe.reportError)(e,uLe)}fs.reportTypeError=QC;function lLe(t){let{gen:e,data:r,schema:n}=t,i=(0,Xfe.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var nue=H(s4=>{"use strict";E();Object.defineProperty(s4,"__esModule",{value:!0});s4.assignDefaults=void 0;var fw=tr(),dLe=Dr();function hLe(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)for(let i in r)rue(t,i,r[i].default);else e==="array"&&Array.isArray(n)&&n.forEach((i,o)=>rue(t,o,i.default))}s4.assignDefaults=hLe;function rue(t,e,r){let{gen:n,compositeRule:i,data:o,opts:s}=t;if(r===void 0)return;let a=(0,fw._)`${o}${(0,fw.getProperty)(e)}`;if(i){(0,dLe.checkStrictMode)(t,`default is ignored for: ${a}`);return}let d=(0,fw._)`${a} === undefined`;s.useDefaults==="empty"&&(d=(0,fw._)`${d} || ${a} === null || ${a} === ""`),n.if(d,(0,fw._)`${a} = ${(0,fw.stringify)(r)}`)}});var of=H(xn=>{"use strict";E();Object.defineProperty(xn,"__esModule",{value:!0});xn.validateUnion=xn.validateArray=xn.usePattern=xn.callValidateCode=xn.schemaProperties=xn.allSchemaProperties=xn.noPropertyInData=xn.propertyInData=xn.isOwnProperty=xn.hasPropFunc=xn.reportMissingProp=xn.checkMissingProp=xn.checkReportMissingProp=void 0;var Wn=tr(),XC=Dr(),Hp=nf(),pLe=Dr();function mLe(t,e){let{gen:r,data:n,it:i}=t;r.if(tj(r,n,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Wn._)`${e}`},!0),t.error()})}xn.checkReportMissingProp=mLe;function yLe({gen:t,data:e,it:{opts:r}},n,i){return(0,Wn.or)(...n.map(o=>(0,Wn.and)(tj(t,e,o,r.ownProperties),(0,Wn._)`${i} = ${o}`)))}xn.checkMissingProp=yLe;function gLe(t,e){t.setParams({missingProperty:e},!0),t.error()}xn.reportMissingProp=gLe;function iue(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Wn._)`Object.prototype.hasOwnProperty`})}xn.hasPropFunc=iue;function ej(t,e,r){return(0,Wn._)`${iue(t)}.call(${e}, ${r})`}xn.isOwnProperty=ej;function vLe(t,e,r,n){let i=(0,Wn._)`${e}${(0,Wn.getProperty)(r)} !== undefined`;return n?(0,Wn._)`${i} && ${ej(t,e,r)}`:i}xn.propertyInData=vLe;function tj(t,e,r,n){let i=(0,Wn._)`${e}${(0,Wn.getProperty)(r)} === undefined`;return n?(0,Wn.or)(i,(0,Wn.not)(ej(t,e,r))):i}xn.noPropertyInData=tj;function oue(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}xn.allSchemaProperties=oue;function bLe(t,e){return oue(e).filter(r=>!(0,XC.alwaysValidSchema)(t,e[r]))}xn.schemaProperties=bLe;function wLe({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,d,m){let p=m?(0,Wn._)`${t}, ${e}, ${n}${i}`:e,w=[[Hp.default.instancePath,(0,Wn.strConcat)(Hp.default.instancePath,o)],[Hp.default.parentData,s.parentData],[Hp.default.parentDataProperty,s.parentDataProperty],[Hp.default.rootData,Hp.default
missingProperty: ${n},
depsCount: ${e},
deps: ${r}}`};var QFe={keyword:"dependencies",type:"object",schemaType:"object",error:Il.error,code(t){let[e,r]=XFe(t);gle(t,e),vle(t,r)}};function XFe({schema:t}){let e={},r={};for(let n in t){if(n==="__proto__")continue;let i=Array.isArray(t[n])?e:r;i[n]=t[n]}return[e,r]}function gle(t,e=t.schema){let{gen:r,data:n,it:i}=t;if(Object.keys(e).length===0)return;let o=r.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let d=(0,Ux.propertyInData)(r,n,s,i.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(d,()=>{for(let m of a)(0,Ux.checkReportMissingProp)(t,m)}):(r.if((0,Uj._)`${d} && (${(0,Ux.checkMissingProp)(t,a,o)})`),(0,Ux.reportMissingProp)(t,o),r.else())}}Il.validatePropertyDeps=gle;function vle(t,e=t.schema){let{gen:r,data:n,keyword:i,it:o}=t,s=r.name("valid");for(let a in e)(0,YFe.alwaysValidSchema)(o,e[a])||(r.if((0,Ux.propertyInData)(r,n,a,o.opts.ownProperties),()=>{let d=t.subschema({keyword:i,schemaProp:a},s);t.mergeValidEvaluated(d,s)},()=>r.var(s,!0)),t.ok(s))}Il.validateSchemaDeps=vle;Il.default=QFe});var wle=H(Fj=>{"use strict";E();Object.defineProperty(Fj,"__esModule",{value:!0});var ble=tr(),eze=Dr(),tze={message:"property name must be valid",params:({params:t})=>(0,ble._)`{propertyName: ${t.propertyName}}`},rze={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:tze,code(t){let{gen:e,schema:r,data:n,it:i}=t;if((0,eze.alwaysValidSchema)(i,r))return;let o=e.name("valid");e.forIn("key",n,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),e.if((0,ble.not)(o),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(o)}};Fj.default=rze});var Kj=H(zj=>{"use strict";E();Object.defineProperty(zj,"__esModule",{value:!0});var M4=of(),su=tr(),nze=nf(),P4=Dr(),ize={message:"must NOT have additional properties",params:({params:t})=>(0,su._)`{additionalProperty: ${t.additionalProperty}}`},oze={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:ize,code(t){let{gen:e,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=t;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:d}=s;if(s.props=!0,d.removeAdditional!=="all"&&(0,P4.alwaysValidSchema)(s,r))return;let m=(0,M4.allSchemaProperties)(n.properties),p=(0,M4.allSchemaProperties)(n.patternProperties);w(),t.ok((0,su._)`${o} === ${nze.default.errors}`);function w(){e.forIn("key",i,B=>{!m.length&&!p.length?M(B):e.if(P(B),()=>M(B))})}function P(B){let I;if(m.length>8){let C=(0,P4.schemaRefOrVal)(s,n.properties,"properties");I=(0,M4.isOwnProperty)(e,C,B)}else m.length?I=(0,su.or)(...m.map(C=>(0,su._)`${B} === ${C}`)):I=su.nil;return p.length&&(I=(0,su.or)(I,...p.map(C=>(0,su._)`${(0,M4.usePattern)(t,C)}.test(${B})`))),(0,su.not)(I)}function S(B){e.code((0,su._)`delete ${i}[${B}]`)}function M(B){if(d.removeAdditional==="all"||d.removeAdditional&&r===!1){S(B);return}if(r===!1){t.setParams({additionalProperty:B}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,P4.alwaysValidSchema)(s,r)){let I=e.name("valid");d.removeAdditional==="failing"?(A(B,I,!1),e.if((0,su.not)(I),()=>{t.reset(),S(B)})):(A(B,I),a||e.if((0,su.not)(I),()=>e.break()))}}function A(B,I,C){let k={keyword:"additionalProperties",dataProp:B,dataPropType:P4.Type.Str};C===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(k,I)}}};zj.default=oze});var Ele=H(Wj=>{"use strict";E();Object.defineProperty(Wj,"__esModule",{value:!0});var sze=Tx(),_le=of(),Gj=Dr(),xle=Kj(),aze={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:o}=t;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&xle.default.code(new sze.KeywordCxt(o,xle.default,"additionalProperties"));let s=(0,_le.allSchemaProperties)(r);for(let w of s)o.definedProperties.add(w);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=Gj.mergeEvaluated.props(e,(0,Gj.toHash)(s),o.props));let a=s.filter(w=>!(0,Gj.alwaysV
`;super(r),this.name="AggregateError",this.errors=e}};gq.exports={AggregateError:yq,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((n,i)=>{t=n,e=i}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((n,...i)=>n?r(n):e(...i))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let i=e.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof lWe},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:dWe};gq.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var ha=H((d4t,khe)=>{"use strict";E();var{format:hWe,inspect:sP,AggregateError:pWe}=Nl(),mWe=globalThis.AggregateError||pWe,yWe=Symbol("kIsNodeError"),gWe=["string","function","number","object","Function","Object","boolean","bigint","symbol"],vWe=/^([A-Z][a-z0-9]*)+$/,bWe="__node_internal_",aP={};function eg(t,e){if(!t)throw new aP.ERR_INTERNAL_ASSERTION(e)}function Rhe(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function wWe(t,e,r){if(typeof e=="function")return eg(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return eg(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:hWe(e,...r)}function hs(t,e,r){r||(r=Error);class n extends r{constructor(...o){super(wWe(t,e,o))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[yWe]=!0,aP[t]=n}function Ihe(t){let e=bWe+t.name;return Object.defineProperty(t,"name",{value:e}),t}function _We(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new mWe([e,t],e.message);return r.code=e.code,r}return t||e}var vq=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new aP.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};hs("ERR_ASSERTION","%s",Error);hs("ERR_INVALID_ARG_TYPE",(t,e,r)=>{eg(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let i=[],o=[],s=[];for(let d of e)eg(typeof d=="string","All expected entries have to be of type string"),gWe.includes(d)?i.push(d.toLowerCase()):vWe.test(d)?o.push(d):(eg(d!=="object",'The value "object" should be written as "Object"'),s.push(d));if(o.length>0){let d=i.indexOf("object");d!==-1&&(i.splice(i,d,1),o.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{let d=i.pop();n+=`one of type ${i.join(", ")}, or ${d}`}}(o.length>0||s.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let d=o.pop();n+=`an instance of ${o.join(", ")}, or ${d}`}}s.length>0&&(n+=" or ")}switch(s.length){case 0:break;case 1:s[0].toLowerCase()!==s[0]&&(n+="an "),n+=`${s[0]}`;break;case 2:n+=`one of ${s[0]} or ${s[1]}`;break;default:{let d=s.pop();n+=`one of ${s.join
caused by: ${bs.fullStack(r)}`:e.stack}static info(e){cE(e);let r={},n=bs.cause(e);return n&&Object.assign(r,bs.info(n)),e._info&&Object.assign(r,e._info),r}cause(){return bs.cause(this)}toString(){let e=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e=`${e}: ${this.message}`),e}};E();var fE="0123456789ABCDEFGHJKMNPQRSTVWXYZ",a1=32,pge=0xffffffffffff,mge=10,eet=16,vg=Object.freeze({source:"ulid"});function tet(t){let e=t||ret(),r=e&&(e.crypto||e.msCrypto)||null;if(typeof r?.getRandomValues=="function")return()=>{let n=new Uint8Array(1);return r.getRandomValues(n),n[0]/255};if(typeof r?.randomBytes=="function")return()=>r.randomBytes(1).readUInt8()/255;throw new bs({info:{code:"PRNG_DETECT",...vg}},"Failed to find a reliable PRNG")}function ret(){return oet()?self:typeof window<"u"?window:typeof globalThis<"u"||typeof globalThis<"u"?globalThis:null}function net(t,e){let r="";for(;t>0;t--)r=set(e)+r;return r}function yge(t,e){if(isNaN(t))throw new bs({info:{code:"ENC_TIME_NAN",...vg}},`Time must be a number: ${t}`);if(t>pge)throw new bs({info:{code:"ENC_TIME_SIZE_EXCEED",...vg}},`Cannot encode a time larger than ${pge}: ${t}`);if(t<0)throw new bs({info:{code:"ENC_TIME_NEG",...vg}},`Time must be positive: ${t}`);if(Number.isInteger(t)===!1)throw new bs({info:{code:"ENC_TIME_TYPE",...vg}},`Time must be an integer: ${t}`);let r,n="";for(let i=e;i>0;i--)r=t%a1,n=fE.charAt(r)+n,t=(t-r)/a1;return n}function iet(t){let e,r=t.length,n,i,o=t,s=a1-1;for(;!e&&r-->=0;){if(n=o[r],i=fE.indexOf(n),i===-1)throw new bs({info:{code:"B32_INC_ENC",...vg}},"Incorrectly encoded string");if(i===s){o=gge(o,r,fE[0]);continue}e=gge(o,r,fE[i+1])}if(typeof e=="string")return e;throw new bs({info:{code:"B32_INC_INVALID",...vg}},"Failed incrementing string")}function oet(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function vge(t){let e=t||tet(),r=0,n;return function(o){let s=isNaN(o)?Date.now():o;if(s<=r){let d=n=iet(n);return yge(r,mge)+d}r=s;let a=n=net(eet,e);return yge(s,mge)+a}}function set(t){let e=Math.floor(t()*a1);return e===a1&&(e=a1-1),fE.charAt(e)}function gge(t,e,r){return e>t.length-1?t:t.substr(0,e)+r+t.substr(e+1)}var OL=class{constructor(e){this.index=new Rh({location:"EVENTLOG",createLevelDatabase:wu,...e}),this.ulidFactory=vge()}async open(){return this.index.open()}async close(){return this.index.close()}async clear(){return this.index.clear()}async append(e,r,n){let i=this.ulidFactory();await this.index.put(e,r,{...n,watermark:i})}async queryEvents(e,r,n){let i=await this.index.query(e,r,{sortProperty:"watermark",cursor:n});return{events:i.map(({messageCid:o})=>o),cursor:Rh.createCursorFromLastArrayItem(i,"watermark")}}async getEvents(e,r){return this.queryEvents(e,[],r)}async deleteEventsByCid(e,r){let n=[];for(let i of r)n.push(this.index.delete(e,i));await Promise.all(n)}};E();E();function IA({enumerable:t=!0,configurable:e=!1}={}){return{enumerable:t,configurable:e,writable:!1}}function*aet(t,e){if(e!=null&&typeof e=="object")if(Array.isArray(e))for(let[r,n]of e.entries()){let i=[...t,r],o=St.asCID(n);o?yield[i.join("/"),o]:typeof n=="object"&&(yield*BL(n,i))}else{let r=St.asCID(e);r?yield[t.join("/"),r]:yield*BL(e,t)}}function*BL(t,e){if(t==null||t instanceof Uint8Array)return;let r=St.asCID(t);r&&(yield[e.join("/"),r]);for(let[n,i]of Object.entries(t)){let o=[...e,n];yield*aet(o,i)}}function*cet(t,e){if(Array.isArray(e))for(let[r,n]of e.entries()){let i=[...t,r];yield i.join("/"),typeof n=="object"&&!St.asCID(n)&&(yield*DL(n,i))}else yield*DL(e,t)}function*DL(t,e){if(!(t==null||typeof t!="object"))for(let[r,n]of Object.entries(t)){let i=[...e,r];yield i.join("/"),n!=null&&!(n instanceof Uint8Array)&&typeof n=="object"&&!St.asCID(n)&&(yield*cet(i,n))}}function fet(t,e){let r=t;for(let[n,i]of e.entries()){if(r=r[i],r==null)throw new Error(`Object has no property at ${e.slice(0,n+1).map(s=>`[${JSON.stringify(s)}]`).join("")}`);let o=St.asCID(r);if(o)return{value:o,remaining:e.slice(n+1).join("/")}}return{value:r}}var kA=class{constructor({cid:e,bytes:r,value:
/*! Bundled license information:
ieee754/index.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
buffer/index.js:
(*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*)
safe-buffer/index.js:
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
safe-buffer/index.js:
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
safe-buffer/index.js:
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
@noble/ciphers/utils.js:
(*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) *)
@noble/hashes/utils.js:
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/abstract/utils.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/abstract/modular.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/abstract/curve.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/abstract/edwards.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/abstract/montgomery.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/ed25519.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/abstract/weierstrass.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/_shortw_utils.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/secp256k1.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
uri-js/dist/es5/uri.all.js:
(** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js *)
queue-microtask/index.js:
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
run-parallel-limit/index.js:
(*! run-parallel-limit. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
@noble/ed25519/index.js:
(*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) *)
@noble/secp256k1/index.js:
(*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) *)
@noble/hashes/esm/utils.js:
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/esm/abstract/utils.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/esm/abstract/modular.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/esm/abstract/curve.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/esm/abstract/weierstrass.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/esm/_shortw_utils.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/esm/p256.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/esm/secp256k1.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/esm/abstract/edwards.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/esm/abstract/montgomery.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/curves/esm/ed25519.js:
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/ciphers/esm/utils.js:
(*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) *)
uint8-util/util.js:
(* Common package for dealing with hex/string/uint8 conversions (and sha1 hashing)
*
* @author Jimmy Wärting <jimmy@warting.se> (https://jimmy.warting.se/opensource)
* @license MIT
*)
*/