varn=r(1591),i=r(1590),o=r(635);functions(){returnu.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functiona(e,t){if(s()<t)thrownewRangeError("Invalid typed array length");returnu.TYPED_ARRAY_SUPPORT?(e=newUint8Array(t)).__proto__=u.prototype:(null===e&&(e=newu(t)),e.length=t),e}functionu(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||thisinstanceofu))returnnewu(e,t,r);if("number"==typeofe){if("string"==typeoft)thrownewError("If encoding is specified then the first argument must be a string");returnl(this,e)}returnc(this,e,t,r)}functionc(e,t,r,n){if("number"==typeoft)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&tinstanceofArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)thrownewRangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))thrownewRangeError("'length' is out of bounds");returnt=void0===r&&void0===n?newUint8Array(t):void0===n?newUint8Array(t,r):newUint8Array(t,r,n),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t),e}(e,t,r,n):"string"==typeoft?function(e,t,r){if("string"==typeofr&&""!==r||(r="utf8"),!u.isEncoding(r))thrownewTypeError('"encoding" must be a valid string encoding');varn=0|d(t,r),i=(e=a(e,n)).write(t,r);returni!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(u.isBuffer(t)){varr=0|p(t.length);return0===(e=a(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeofArrayBuffer&&t.bufferinstanceofArrayBuffer||"length"int)return"number"!=typeoft.length||function(e){returne!=e}(t.length)?a(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))returnh(e,t.data)}thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}functionf(e){if("number"!=typeofe)thrownewTypeError('"size" argument must be a number');if(e<0)thrownewRangeError('"size" argument must not be negative')}functionl(e,t){if(f(t),e=a(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(varr=0;r<t;++r)e[r]=0;returne}functionh(e,t){varr=t.length<0?0:0|p(t.length);e=a(e,r);for(varn=0;n<r;n+=1)e[n]=255&t[n];returne}functionp(e){if(e>=s())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return0|e}functiond(e,t){if(u.isBuffer(e))returne.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(e)||einstanceofArrayBuffer))returne.byteLength;"string"!=typeofe&&(e=""+e);varr=e.length;if(0===r)return0;for(varn=!1;;)switch(t){case"ascii":case"latin1":case"binary":returnr;case"utf8":case"utf-8":casevoid0:returnU(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*r;case"hex":returnr>>>1;case"base64":returnF(e).length;default:if(n)returnU(e).length;t=(""+t).toLowerCase(),n=!0}}functiony(e,t,r){varn=e[t];e[t]=e[r],e[r]=n}functiong(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeofr?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}elseif(r<0){if(!i)return-1;r=0}if("string"==typeoft&&(t=u.from(t,n)),u.isBuffer(t))return0===t.length?-1:m(e,t,r,n,i);if("number"==typeoft)returnt&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeofUint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);thrownewTypeError("val must be string, number or Buffer")}functionm(e,t,r,n,i){varo,s=1,a=e.length,u=t.length;if(void0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}functionc(e,t){return1===s?e[t]:e.readUInt16BE(t*s)}if(i){varf=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)returnf*s}else-1!==f&&(o-=o-f),f=-1}elsefor(r+u>a&&(r=a-u),o=r;o>=0;o--){for(varl=!0,h=0;h<u;h++)if(c(e,o+h)!==c(t,h)){l=!1;break}if(l)returno}return-1}functionb(e,t,r,n){r=Number(r)||0;vari=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;varo=t.length;if(o%2!=0)thrownewTypeEr
e.exports=function(e){"use strict";if("function"!=typeofPromise)throw"Promise support required";vart=e.crypto||e.msCrypto;if(t){varr=t.subtle||t.webkitSubtle;if(r){varn=e.Crypto||t.constructor||Object,i=e.SubtleCrypto||r.constructor||Object,o=(e.CryptoKey||e.Key||Object,e.navigator.userAgent.indexOf("Edge/")>-1),s=!!e.msCrypto&&!o,a=!t.subtle&&!!t.webkitSubtle;if(s||a){varu={KoZIhvcNAQEB:"1.2.840.113549.1.1.1"},c={"1.2.840.113549.1.1.1":"KoZIhvcNAQEB"};if(["generateKey","importKey","unwrapKey"].forEach(function(e){varn=r[e];r[e]=function(i,o,u){varc,f,l,d,v=[].slice.call(arguments);switch(e){case"generateKey":c=y(i),f=o,l=u;break;case"importKey":c=y(u),f=v[3],l=v[4],"jwk"===i&&((o=m(o)).alg||(o.alg=g(c)),o.key_ops||(o.key_ops="oct"!==o.kty?"d"ino?l.filter(k):l.filter(S):l.slice()),v[1]=function(e){vart=m(e);returns&&(t.extractable=t.ext,deletet.ext),p(unescape(encodeURIComponent(JSON.stringify(t)))).buffer}(o));break;case"unwrapKey":c=v[4],f=v[5],l=v[6],v[2]=u._key}if("generateKey"===e&&"HMAC"===c.name&&c.hash)returnc.length=c.length||{"SHA-1":512,"SHA-256":512,"SHA-384":1024,"SHA-512":1024}[c.hash.name],r.importKey("raw",t.getRandomValues(newUint8Array(c.length+7>>3)),c,f,l);if(a&&"generateKey"===e&&"RSASSA-PKCS1-v1_5"===c.name&&(!c.modulusLength||c.modulusLength>=2048))return(i=y(i)).name="RSAES-PKCS1-v1_5",deletei.hash,r.generateKey(i,!0,["encrypt","decrypt"]).then(function(e){returnPromise.all([r.exportKey("jwk",e.publicKey),r.exportKey("jwk",e.privateKey)])}).then(function(e){returne[0].alg=e[1].alg=g(c),e[0].key_ops=l.filter(S),e[1].key_ops=l.filter(k),Promise.all([r.importKey("jwk",e[0],c,!0,e[0].key_ops),r.importKey("jwk",e[1],c,f,e[1].key_ops)])}).then(function(e){return{publicKey:e[0],privateKey:e[1]}});if((a||s&&"SHA-1"===(c.hash||{}).name)&&"importKey"===e&&"jwk"===i&&"HMAC"===c.name&&"oct"===o.kty)returnr.importKey("raw",p(h(o.k)),u,v[3],v[4]);if(a&&"importKey"===e&&("spki"===i||"pkcs8"===i))returnr.importKey("jwk",b(o),u,v[3],v[4]);if(s&&"unwrapKey"===e)returnr.decrypt(v[3],u,o).then(function(e){returnr.importKey(i,e,v[4],v[5],v[6])});try{d=n.apply(r,v)}catch(e){returnPromise.reject(e)}returns&&(d=newPromise(function(e,t){d.onabort=d.onerror=function(e){t(e)},d.oncomplete=function(t){e(t.target.result)}})),d=d.then(function(e){return"HMAC"===c.name&&(c.length||(c.length=8*e.algorithm.length)),0==c.name.search("RSA")&&(c.modulusLength||(c.modulusLength=(e.publicKey||e).algorithm.modulusLength),c.publicExponent||(c.publicExponent=(e.publicKey||e).algorithm.publicExponent)),e.publicKey&&e.privateKey?{publicKey:neww(e.publicKey,c,f,l.filter(S)),privateKey:neww(e.privateKey,c,f,l.filter(k))}:neww(e,c,f,l)})}}),["exportKey","wrapKey"].forEach(function(e){vart=r[e];r[e]=function(n,i,o){varu,c=[].slice.call(arguments);switch(e){case"exportKey":c[1]=i._key;break;case"wrapKey":c[1]=i._key,c[2]=o._key}if((a||s&&"SHA-1"===(i.algorithm.hash||{}).name)&&"exportKey"===e&&"jwk"===n&&"HMAC"===i.algorithm.name&&(c[0]="raw"),!a||"exportKey"!==e||"spki"!==n&&"pkcs8"!==n||(c[0]="jwk"),s&&"wrapKey"===e)returnr.exportKey(n,i).then(function(e){return"jwk"===n&&(e=p(unescape(encodeURIComponent(JSON.stringify(m(e)))))),r.encrypt(c[3],o,e)});try{u=t.apply(r,c)}catch(e){returnPromise.reject(e)}returns&&(u=newPromise(function(e,t){u.onabort=u.onerror=function(e){t(e)},u.oncomplete=function(t){e(t.target.result)}})),"exportKey"===e&&"jwk"===n&&(u=u.then(function(e){return(a||s&&"SHA-1"===(i.algorithm.hash||{}).name)&&"HMAC"===i.algorithm.name?{kty:"oct",alg:g(i.algorithm),key_ops:i.usages.slice(),ext:!0,k:l(d(e))}:((e=m(e)).alg||(e.alg=g(i.algorithm)),e.key_ops||(e.key_ops="public"===i.type?i.usages.filter(S):"private"===i.type?i.usages.filter(k):i.usages.slice()),e)})),!a||"exportKey"!==e||"spki"!==n&&"pkcs8"!==n||(u=u.then(function(e){returnfunction(e){vart,r=[["",null]],n=!1;switch(e.kty){case"RSA":for(vari=["n","e","d","p","q","dp","dq","qi"],o=[],s=0;s<i.length&&i[s]ine;s++){vara=o[s]=p(h(e[i[s]]));128&a[0]&&(o[s]=newUint8Array(a.length+1),o[s].set(a,1))}o.length>2&&(n=!0,o.unshift(newUint8Ar
functionr(e){returneinstanceoft||einstanceofDate||einstanceofRegExp}functionn(e){if(einstanceoft){varr=t.alloc?t.alloc(e.length):newt(e.length);returne.copy(r),r}if(einstanceofDate)returnnewDate(e.getTime());if(einstanceofRegExp)returnnewRegExp(e);thrownewError("Unexpected situation")}functioni(e,t){return"__proto__"===t?void0:e[t]}varo=e.exports=function(){if(arguments.length<1||"object"!=typeofarguments[0])return!1;if(arguments.length<2)returnarguments[0];vare,t,s=arguments[0];returnArray.prototype.slice.call(arguments,1).forEach(function(a){"object"!=typeofa||null===a||Array.isArray(a)||Object.keys(a).forEach(function(u){returnt=i(s,u),(e=i(a,u))===s?void0:"object"!=typeofe||null===e?void(s[u]=e):Array.isArray(e)?void(s[u]=functione(t){vari=[];returnt.forEach(function(t,s){"object"==typeoft&&null!==t?Array.isArray(t)?i[s]=e(t):r(t)?i[s]=n(t):i[s]=o({},t):i[s]=t}),i}(e)):r(e)?void(s[u]=n(e)):"object"!=typeoft||null===t||Array.isArray(t)?void(s[u]=o({},e)):void(s[u]=o(t,e))})}),s}}).call(this,r(0).Buffer)},function(e,t,r){"use strict";e.exports="enum KeyType {\n RSA = 0;\n Ed25519 = 1;\n Secp256k1 = 2;\n}\nmessage PublicKey {\n required KeyType Type = 1;\n required bytes Data = 2;\n}\nmessage PrivateKey {\n required KeyType Type = 1;\n required bytes Data = 2;\n}"},function(e,t,r){"use strict";e.exports=(()=>{if("undefined"!=typeofself&&(r(57)(self),self.crypto))returnself.crypto;thrownewError("Please use an environment with crypto support")})},function(e,t,r){"use strict";e.exports=function(e,t){returne.then(e=>{t(null,e)},e=>{t(e)})}},function(e,t,r){"use strict";constn=r(36);functioni(e){if("number"==typeofe){if(i.codes[e])returni.codes[e];thrownewError("no protocol with code: "+e)}if("string"==typeofe||einstanceofString){if(i.names[e])returni.names[e];thrownewError("no protocol with name: "+e)}thrownewError("invalid protocol id type: "+e)}functiono(e,t,r,n){return{code:e,size:t,name:r,resolvable:Boolean(n)}}i.lengthPrefixedVarSize=-1,i.V=-1,i.table=[[4,32,"ip4"],[6,16,"tcp"],[17,16,"udp"],[33,16,"dccp"],[41,128,"ip6"],[54,-1,"dns4","resolvable"],[55,-1,"dns6","resolvable"],[56,-1,"dnsaddr","resolvable"],[132,16,"sctp"],[302,0,"utp"],[421,i.lengthPrefixedVarSize,"ipfs"],[480,0,"http"],[443,0,"https"],[477,0,"ws"],[478,0,"wss"],[479,0,"p2p-websocket-star"],[275,0,"p2p-webrtc-star"],[276,0,"p2p-webrtc-direct"],[290,0,"p2p-circuit"]],i.names={},i.codes={},n(i.table,function(e){constt=o.apply(null,e);i.codes[t.code]=t,i.names[t.name]=t}),i.object=o,e.exports=i},function(e,t,r){"use strict";constn=r(36);functioni(e){if("number"==typeofe){if(i.codes[e])returni.codes[e];thrownewError("no protocol with code: "+e)}if("string"==typeofe||einstanceofString){if(i.names[e])returni.names[e];thrownewError("no protocol with name: "+e)}thrownewError("invalid protocol id type: "+e)}functiono(e,t,r,n){return{code:e,size:t,name:r,resolvable:Boolean(n)}}i.lengthPrefixedVarSize=-1,i.V=-1,i.table=[[4,32,"ip4"],[6,16,"tcp"],[17,16,"udp"],[33,16,"dccp"],[41,128,"ip6"],[54,-1,"dns4","resolvable"],[55,-1,"dns6","resolvable"],[56,-1,"dnsaddr","resolvable"],[132,16,"sctp"],[302,0,"utp"],[421,i.lengthPrefixedVarSize,"ipfs"],[480,0,"http"],[443,0,"https"],[477,0,"ws"],[478,0,"wss"],[479,0,"p2p-websocket-star"],[275,0,"p2p-webrtc-star"],[276,0,"p2p-webrtc-direct"],[290,0,"p2p-circuit"]],i.names={},i.codes={},n(i.table,function(e){constt=o.apply(null,e);i.codes[t.code]=t,i.names[t.name]=t}),i.object=o,e.exports=i},function(e,t){t.BITS=128,t.GROUPS=8,t.SCOPES={0:"Reserved",1:"Interface local",2:"Link local",4:"Admin local",5:"Site local",8:"Organization local",14:"Global",15:"Reserved"},t.TYPES={"ff01::1/128":"Multicast (All nodes on this interface)","ff01::2/128":"Multicast (All routers on this interface)","ff02::1/128":"Multicast (All nodes on this link)","ff02::2/128":"Multicast (All routers on this link)","ff05::2/128":"Multicast (All routers in this site)","ff02::5/128":"Multicast (OSPFv3 AllSPF routers)","ff02::6/128":"Multicast (OSPFv3 AllDR routers)","ff02::9/
varn=r(33),i=r(34),o=r(35);functions(){returnu.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functiona(e,t){if(s()<t)thrownewRangeError("Invalid typed array length");returnu.TYPED_ARRAY_SUPPORT?(e=newUint8Array(t)).__proto__=u.prototype:(null===e&&(e=newu(t)),e.length=t),e}functionu(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||thisinstanceofu))returnnewu(e,t,r);if("number"==typeofe){if("string"==typeoft)thrownewError("If encoding is specified then the first argument must be a string");returnl(this,e)}returnc(this,e,t,r)}functionc(e,t,r,n){if("number"==typeoft)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&tinstanceofArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)thrownewRangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))thrownewRangeError("'length' is out of bounds");returnt=void0===r&&void0===n?newUint8Array(t):void0===n?newUint8Array(t,r):newUint8Array(t,r,n),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t),e}(e,t,r,n):"string"==typeoft?function(e,t,r){if("string"==typeofr&&""!==r||(r="utf8"),!u.isEncoding(r))thrownewTypeError('"encoding" must be a valid string encoding');varn=0|d(t,r),i=(e=a(e,n)).write(t,r);returni!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(u.isBuffer(t)){varr=0|p(t.length);return0===(e=a(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeofArrayBuffer&&t.bufferinstanceofArrayBuffer||"length"int)return"number"!=typeoft.length||function(e){returne!=e}(t.length)?a(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))returnh(e,t.data)}thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}functionf(e){if("number"!=typeofe)thrownewTypeError('"size" argument must be a number');if(e<0)thrownewRangeError('"size" argument must not be negative')}functionl(e,t){if(f(t),e=a(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(varr=0;r<t;++r)e[r]=0;returne}functionh(e,t){varr=t.length<0?0:0|p(t.length);e=a(e,r);for(varn=0;n<r;n+=1)e[n]=255&t[n];returne}functionp(e){if(e>=s())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return0|e}functiond(e,t){if(u.isBuffer(e))returne.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(e)||einstanceofArrayBuffer))returne.byteLength;"string"!=typeofe&&(e=""+e);varr=e.length;if(0===r)return0;for(varn=!1;;)switch(t){case"ascii":case"latin1":case"binary":returnr;case"utf8":case"utf-8":casevoid0:returnU(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*r;case"hex":returnr>>>1;case"base64":returnF(e).length;default:if(n)returnU(e).length;t=(""+t).toLowerCase(),n=!0}}functiony(e,t,r){varn=e[t];e[t]=e[r],e[r]=n}functiong(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeofr?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}elseif(r<0){if(!i)return-1;r=0}if("string"==typeoft&&(t=u.from(t,n)),u.isBuffer(t))return0===t.length?-1:m(e,t,r,n,i);if("number"==typeoft)returnt&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeofUint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);thrownewTypeError("val must be string, number or Buffer")}functionm(e,t,r,n,i){varo,s=1,a=e.length,u=t.length;if(void0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}functionc(e,t){return1===s?e[t]:e.readUInt16BE(t*s)}if(i){varf=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)returnf*s}else-1!==f&&(o-=o-f),f=-1}elsefor(r+u>a&&(r=a-u),o=r;o>=0;o--){for(varl=!0,h=0;h<u;h++)if(c(e,o+h)!==c(t,h)){l=!1;break}if(l)returno}return-1}functionb(e,t,r,n){r=Number(r)||0;vari=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;varo=t.length;if(o%2!=0)thrownewTypeError("
varn;n=function(){"use strict";vare=function(e,r){returnt(e.slice(),r)};functiont(e,t){"function"!=typeoft&&(t=function(e,t){returnString(e).localeCompare(t)});varn=e.length;if(n<=1)returne;for(vari=newArray(n),o=1;o<n;o*=2){r(e,t,o,i);vars=e;e=i,i=s}returne}e.inplace=function(e,n){vari=t(e,n);returni!==e&&r(i,null,e.length,e),e};varr=function(e,t,r,n){vari,o,s,a,u,c=e.length,f=0,l=2*r;for(i=0;i<c;i+=l)for(s=(o=i+r)+r,o>c&&(o=c),s>c&&(s=c),a=i,u=o;;)if(a<o&&u<s)t(e[a],e[u])<=0?n[f++]=e[a++]:n[f++]=e[u++];elseif(a<o)n[f++]=e[a++];else{if(!(u<s))break;n[f++]=e[u++]}};returne},e.exports=n()},function(e,t,r){varn=r(576);functioni(e,t){returne[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}functiono(e,t,r,n,i,o){c[e]=c[e]+c[t]+i,c[n]=s(c[n]^c[e],16),c[r]=c[r]+c[n],c[t]=s(c[t]^c[r],12),c[e]=c[e]+c[t]+o,c[n]=s(c[n]^c[e],8),c[r]=c[r]+c[n],c[t]=s(c[t]^c[r],7)}functions(e,t){returne>>>t^e<<32-t}vara=newUint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=newUint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),c=newUint32Array(16),f=newUint32Array(16);functionl(e,t){varr=0;for(r=0;r<8;r++)c[r]=e.h[r],c[r+8]=a[r];for(c[12]^=e.t,c[13]^=e.t/4294967296,t&&(c[14]=~c[14]),r=0;r<16;r++)f[r]=i(e.b,4*r);for(r=0;r<10;r++)o(0,4,8,12,f[u[16*r+0]],f[u[16*r+1]]),o(1,5,9,13,f[u[16*r+2]],f[u[16*r+3]]),o(2,6,10,14,f[u[16*r+4]],f[u[16*r+5]]),o(3,7,11,15,f[u[16*r+6]],f[u[16*r+7]]),o(0,5,10,15,f[u[16*r+8]],f[u[16*r+9]]),o(1,6,11,12,f[u[16*r+10]],f[u[16*r+11]]),o(2,7,8,13,f[u[16*r+12]],f[u[16*r+13]]),o(3,4,9,14,f[u[16*r+14]],f[u[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=c[r]^c[r+8]}functionh(e,t){if(!(e>0&&e<=32))thrownewError("Incorrect output length, should be in [1, 32]");varr=t?t.length:0;if(t&&!(r>0&&r<=32))thrownewError("Incorrect key length, should be in [1, 32]");varn={h:newUint32Array(a),b:newUint32Array(64),c:0,t:0,outlen:e};returnn.h[0]^=16842752^r<<8^e,r>0&&(p(n,t),n.c=64),n}functionp(e,t){for(varr=0;r<t.length;r++)64===e.c&&(e.t+=e.c,l(e,!1),e.c=0),e.b[e.c++]=t[r]}functiond(e){for(e.t+=e.c;e.c<64;)e.b[e.c++]=0;l(e,!0);for(vart=newUint8Array(e.outlen),r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r)&255;returnt}functiony(e,t,r){r=r||32,e=n.normalizeInput(e);vari=h(r,t);returnp(i,e),d(i)}e.exports={blake2s:y,blake2sHex:function(e,t,r){vari=y(e,t,r);returnn.toHex(i)},blake2sInit:h,blake2sUpdate:p,blake2sFinal:d}},function(e,t,r){varn=r(576);functioni(e,t,r){varn=e[t]+e[r],i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}functiono(e,t,r,n){vari=e[t]+r;r<0&&(i+=4294967296);varo=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}functions(e,t){returne[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}functiona(e,t,r,n,s,a){varu=l[s],c=l[s+1],h=l[a],p=l[a+1];i(f,e,t),o(f,e,u,c);vard=f[n]^f[e],y=f[n+1]^f[e+1];f[n]=y,f[n+1]=d,i(f,r,n),d=f[t]^f[r],y=f[t+1]^f[r+1],f[t]=d>>>24^y<<8,f[t+1]=y>>>24^d<<8,i(f,e,t),o(f,e,h,p),d=f[n]^f[e],y=f[n+1]^f[e+1],f[n]=d>>>16^y<<16,f[n+1]=y>>>16^d<<16,i(f,r,n),d=f[t]^f[r],y=f[t+1]^f[r+1],f[t]=y>>>31^d<<1,f[t+1]=d>>>31^y<<1}varu=newUint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),c=newUint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return2*e})),f=
varr;r=function(){vare="function"==typeofObject.defineProperty?function(e,t,r){returnObject.defineProperty(e,t,r),e}:function(e,t,r){returne[t]=r.value,e};returnfunction(t,r,n,i){varo;if(i=function(e,t){varr="object"==typeoft,n=!r&&"string"==typeoft,i=function(e){returnr?!!t[e]:!!n&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(n,i),"object"==typeofr){for(oinr)Object.hasOwnProperty.call(r,o)&&(i.value=r[o],e(t,o,i));returnt}returne(t,r,i)}},void0!==e&&e.exports?e.exports=r():this.prr=r()},function(e,t,r){varn=r(1501);functioni(e,t,r){t&&"string"!=typeoft&&(t=t.message||t.name),n(this,{type:e,name:e,cause:"string"!=typeoft?t:r,message:t},"ewr")}functiono(e,t){Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),i.call(this,"CustomError",e,t)}o.prototype=newError,e.exports=function(e){vart=function(t,r){returnfunction(e,t,r){varn=function(r,o){i.call(this,t,r,o),"FilesystemError"==t&&(this.code=this.cause.code,this.path=this.cause.path,this.errno=this.cause.errno,this.message=(e.errno[this.cause.errno]?e.errno[this.cause.errno].description:this.cause.message)+(this.cause.path?" ["+this.cause.path+"]":"")),Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,n)};returnn.prototype=r?newr:newo,n}(e,t,r)};return{CustomError:o,FilesystemError:t("FilesystemError"),createError:t}}},function(e,t,r){varn=r(594).WriteError,i=r(592);functiono(e){this._levelup=e,this.batch=e.db.batch(),this.ops=[],this.length=0}o.prototype.put=function(e,t){try{this.batch.put(e,t)}catch(e){thrownewn(e)}returnthis.ops.push({type:"put",key:e,value:t}),this.length++,this},o.prototype.del=function(e){try{this.batch.del(e)}catch(e){thrownewn(e)}returnthis.ops.push({type:"del",key:e}),this.length++,this},o.prototype.clear=function(){try{this.batch.clear()}catch(e){thrownewn(e)}returnthis.ops=[],this.length=0,this},o.prototype.write=function(e){vart,r=this._levelup,o=this.ops;e||(t=(e=i()).promise);try{this.batch.write(function(t){if(t)returne(newn(t));r.emit("batch",o),e()})}catch(e){thrownewn(e)}returnt},e.exports=o},function(e,t,r){varn=r(7),i=r(25).Readable,o=r(26);functions(e,t){if(!(thisinstanceofs))returnnews(e,t);t=t||{},i.call(this,o(t,{objectMode:!0})),this._iterator=e,this._destroyed=!1,this._options=t,this.on("end",this._cleanup.bind(this))}e.exports=s,n(s,i),s.prototype._read=function(){vare=this,t=this._options;this._destroyed||this._iterator.next(function(r,n,i){if(!e._destroyed)returnr?e.emit("error",r):void(void0===n&&void0===i?e.push(null):!1!==t.keys&&!1===t.values?e.push(n):!1===t.keys&&!1!==t.values?e.push(i):e.push({key:n,value:i}))})},s.prototype.destroy=s.prototype._cleanup=function(){vare=this;this._destroyed||(this._destroyed=!0,this._iterator.end(function(t){if(t)returne.emit("error",t);e.emit("close")}))}},function(e,t,r){varn=r(113),i=r(597).AbstractIterator;functiono(e){i.call(this,e),this._options=e,this._iterator=null,this._operations=[]}n.inherits(o,i),o.prototype.setDb=function(e){vart=this._iterator=e.iterator(this._options);this._operations.forEach(function(e){t[e.method].apply(t,e.args)})},o.prototype._operation=function(e,t){if(this._iterator)returnthis._iterator[e].apply(this._iterator,t);this._operations.push({method:e,args:t})},"next end".split(" ").forEach(function(e){o.prototype["_"+e]=function(){this._operation(e,arguments)}}),e.exports=o},function(e,t,r){(function(t,n){consti=r(26),o=r(596),s=r(595),a=Object.prototype.hasOwnProperty,u="start end gt gte lt lte".split(" ");functionc(e){if(!arguments.length||void0===e)thrownewError("constructor requires at least a location argument");if("string"!=typeofe)thrownewError("constructor requires a location string argument");this.location=e,this.status="new"}functionf(e){return-1!==u.indexOf(e)}functionl(e){return""===e||null==e||function(e){returnn.isBuffer(e)&&0===e.length}(e)}c.prototype.open=function(e,t){varr=this,n=this.status;if("function"==typeofe&&(t=e),"function"!=t