UNPKG

orbit-db

Version:

Distributed p2p database on IPFS

2 lines 1.13 MB
/*! For license information please see orbitdb.min.js.LICENSE.txt */ var OrbitDB;(()=>{var __webpack_modules__={4537:e=>{"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,i=2,s=!0;i<arguments.length;)r[n++]=arguments[i++];return new Promise((function(i,o){r[n]=function(e){if(s)if(s=!1,e)o(e);else{for(var t=new Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];i.apply(null,t)}};try{e.apply(t||null,r)}catch(e){s&&(s=!1,o(e))}}))}},7419:(e,t)=>{"use strict";var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),i=new Array(123),s=0;s<64;)i[n[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;r.encode=function(e,t,r){for(var i,s=null,o=[],a=0,c=0;t<r;){var h=e[t++];switch(c){case 0:o[a++]=n[h>>2],i=(3&h)<<4,c=1;break;case 1:o[a++]=n[i|h>>4],i=(15&h)<<2,c=2;break;case 2:o[a++]=n[i|h>>6],o[a++]=n[63&h],c=0}a>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,o)),a=0)}return c&&(o[a++]=n[i],o[a++]=61,1===c&&(o[a++]=61)),s?(a&&s.push(String.fromCharCode.apply(String,o.slice(0,a))),s.join("")):String.fromCharCode.apply(String,o.slice(0,a))};var o="invalid encoding";r.decode=function(e,t,r){for(var n,s=r,a=0,c=0;c<e.length;){var h=e.charCodeAt(c++);if(61===h&&a>1)break;if(void 0===(h=i[h]))throw Error(o);switch(a){case 0:n=h,a=1;break;case 1:t[r++]=n<<2|(48&h)>>4,n=h,a=2;break;case 2:t[r++]=(15&n)<<4|(60&h)>>2,n=h,a=3;break;case 3:t[r++]=(3&n)<<6|h,a=0}}if(1===a)throw Error(o);return r-s},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},9211:e=>{"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],n=0;n<r.length;)r[n].fn===t?r.splice(n,1):++n;return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],n=1;n<arguments.length;)r.push(arguments[n++]);for(n=0;n<t.length;)t[n].fn.apply(t[n++].ctx,r)}return this}},945:e=>{"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),n=128===r[3];function i(e,n,i){t[0]=e,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3]}function s(e,n,i){t[0]=e,n[i]=r[3],n[i+1]=r[2],n[i+2]=r[1],n[i+3]=r[0]}function o(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],t[0]}function a(e,n){return r[3]=e[n],r[2]=e[n+1],r[1]=e[n+2],r[0]=e[n+3],t[0]}e.writeFloatLE=n?i:s,e.writeFloatBE=n?s:i,e.readFloatLE=n?o:a,e.readFloatBE=n?a:o}():function(){function t(e,t,r,n){var i=t<0?1:0;if(i&&(t=-t),0===t)e(1/t>0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var s=Math.floor(Math.log(t)/Math.LN2);e((i<<31|s+127<<23|8388607&Math.round(t*Math.pow(2,-s)*8388608))>>>0,r,n)}}function o(e,t,r){var n=e(t,r),i=2*(n>>31)+1,s=n>>>23&255,o=8388607&n;return 255===s?o?NaN:i*(1/0):0===s?1401298464324817e-60*i*o:i*Math.pow(2,s-150)*(o+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=o.bind(null,i),e.readFloatBE=o.bind(null,s)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function i(e,n,i){t[0]=e,n[i]=r[0],n[i+1]=r[1],n[i+2]=r[2],n[i+3]=r[3],n[i+4]=r[4],n[i+5]=r[5],n[i+6]=r[6],n[i+7]=r[7]}function s(e,n,i){t[0]=e,n[i]=r[7],n[i+1]=r[6],n[i+2]=r[5],n[i+3]=r[4],n[i+4]=r[3],n[i+5]=r[2],n[i+6]=r[1],n[i+7]=r[0]}function o(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?i:s,e.writeDoubleBE=n?s:i,e.readDoubleLE=n?o:a,e.readDoubleBE=n?a:o}():function(){function t(e,t,r,n,i,s){var o=n<0?1:0;if(o&&(n=-n),0===n)e(0,i,s+t),e(1/n>0?0:2147483648,i,s+r);else if(isNaN(n))e(0,i,s+t),e(2146959360,i,s+r);else if(n>17976931348623157e292)e(0,i,s+t),e((o<<31|2146435072)>>>0,i,s+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,i,s+t),e((o<<31|a/4294967296)>>>0,i,s+r);else{var c=Math.floor(Math.log(n)/Math.LN2);1024===c&&(c=1023),e(4503599627370496*(a=n*Math.pow(2,-c))>>>0,i,s+t),e((o<<31|c+1023<<20|1048576*a&1048575)>>>0,i,s+r)}}}function o(e,t,r,n,i){var s=e(n,i+t),o=e(n,i+r),a=2*(o>>31)+1,c=o>>>20&2047,h=4294967296*(1048575&o)+s;return 2047===c?h?NaN:a*(1/0):0===c?5e-324*a*h:a*Math.pow(2,c-1075)*(h+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=o.bind(null,i,0,4),e.readDoubleBE=o.bind(null,s,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function i(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function s(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},7199:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},6662:e=>{"use strict";e.exports=function(e,t,r){var n=r||8192,i=n>>>1,s=null,o=n;return function(r){if(r<1||r>i)return e(r);o+r>n&&(s=e(n),o=0);var a=t.call(s,o,o+=r);return 7&o&&(o=1+(7|o)),a}}},4997:(e,t)=>{"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n<e.length;++n)(r=e.charCodeAt(n))<128?t+=1:r<2048?t+=2:55296==(64512&r)&&56320==(64512&e.charCodeAt(n+1))?(++n,t+=4):t+=3;return t},r.read=function(e,t,r){if(r-t<1)return"";for(var n,i=null,s=[],o=0;t<r;)(n=e[t++])<128?s[o++]=n:n>191&&n<224?s[o++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,s[o++]=55296+(n>>10),s[o++]=56320+(1023&n)):s[o++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),o=0);return i?(o&&i.push(String.fromCharCode.apply(String,s.slice(0,o))),i.join("")):String.fromCharCode.apply(String,s.slice(0,o))},r.write=function(e,t,r){for(var n,i,s=r,o=0;o<e.length;++o)(n=e.charCodeAt(o))<128?t[r++]=n:n<2048?(t[r++]=n>>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(i=e.charCodeAt(o+1)))?(n=65536+((1023&n)<<10)+(1023&i),++o,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-s}},8099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6776);function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function s(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function o(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function a(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function h(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function l(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),u(e/4294967296>>>0,t,r),u(e>>>0,t,r+4),t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),f(e>>>0,t,r),f(e/4294967296>>>0,t,r+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=s,t.writeInt16LE=s,t.readInt32BE=o,t.readUint32BE=a,t.readInt32LE=c,t.readUint32LE=h,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=f,t.writeInt32LE=f,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=o(e,t),n=o(e,t+4);return 4294967296*r+n-4294967296*(n>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*a(e,t)+a(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r-4294967296*(r>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=h(e,t);return 4294967296*h(e,t+4)+r},t.writeUint64BE=l,t.writeInt64BE=l,t.writeUint64LE=d,t.writeInt64LE=d,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,s=e/8+r-1;s>=r;s--)n+=t[s]*i,i*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,s=r;s<r+e/8;s++)n+=t[s]*i,i*=256;return n},t.writeUintBE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var s=1,o=e/8+i-1;o>=i;o--)r[o]=t/s&255,s*=256;return r},t.writeUintLE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var s=1,o=i;o<i+e/8;o++)r[o]=t/s&255,s*=256;return r},t.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},t.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},t.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},t.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},t.writeFloat32BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e),t},t.writeFloat32LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e,!0),t},t.writeFloat64BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e),t},t.writeFloat64LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e,!0),t}},5439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8099),i=r(7309);function s(e,t,r){for(var i=1634760805,s=857760878,o=2036477234,a=1797285236,c=r[3]<<24|r[2]<<16|r[1]<<8|r[0],h=r[7]<<24|r[6]<<16|r[5]<<8|r[4],u=r[11]<<24|r[10]<<16|r[9]<<8|r[8],f=r[15]<<24|r[14]<<16|r[13]<<8|r[12],l=r[19]<<24|r[18]<<16|r[17]<<8|r[16],d=r[23]<<24|r[22]<<16|r[21]<<8|r[20],p=r[27]<<24|r[26]<<16|r[25]<<8|r[24],y=r[31]<<24|r[30]<<16|r[29]<<8|r[28],g=t[3]<<24|t[2]<<16|t[1]<<8|t[0],b=t[7]<<24|t[6]<<16|t[5]<<8|t[4],m=t[11]<<24|t[10]<<16|t[9]<<8|t[8],w=t[15]<<24|t[14]<<16|t[13]<<8|t[12],v=i,E=s,_=o,A=a,S=c,x=h,k=u,T=f,C=l,M=d,I=p,B=y,O=g,P=b,N=m,L=w,R=0;R<20;R+=2)S=(S^=C=C+(O=(O^=v=v+S|0)>>>16|O<<16)|0)>>>20|S<<12,x=(x^=M=M+(P=(P^=E=E+x|0)>>>16|P<<16)|0)>>>20|x<<12,k=(k^=I=I+(N=(N^=_=_+k|0)>>>16|N<<16)|0)>>>20|k<<12,T=(T^=B=B+(L=(L^=A=A+T|0)>>>16|L<<16)|0)>>>20|T<<12,k=(k^=I=I+(N=(N^=_=_+k|0)>>>24|N<<8)|0)>>>25|k<<7,T=(T^=B=B+(L=(L^=A=A+T|0)>>>24|L<<8)|0)>>>25|T<<7,x=(x^=M=M+(P=(P^=E=E+x|0)>>>24|P<<8)|0)>>>25|x<<7,S=(S^=C=C+(O=(O^=v=v+S|0)>>>24|O<<8)|0)>>>25|S<<7,x=(x^=I=I+(L=(L^=v=v+x|0)>>>16|L<<16)|0)>>>20|x<<12,k=(k^=B=B+(O=(O^=E=E+k|0)>>>16|O<<16)|0)>>>20|k<<12,T=(T^=C=C+(P=(P^=_=_+T|0)>>>16|P<<16)|0)>>>20|T<<12,S=(S^=M=M+(N=(N^=A=A+S|0)>>>16|N<<16)|0)>>>20|S<<12,T=(T^=C=C+(P=(P^=_=_+T|0)>>>24|P<<8)|0)>>>25|T<<7,S=(S^=M=M+(N=(N^=A=A+S|0)>>>24|N<<8)|0)>>>25|S<<7,k=(k^=B=B+(O=(O^=E=E+k|0)>>>24|O<<8)|0)>>>25|k<<7,x=(x^=I=I+(L=(L^=v=v+x|0)>>>24|L<<8)|0)>>>25|x<<7;n.writeUint32LE(v+i|0,e,0),n.writeUint32LE(E+s|0,e,4),n.writeUint32LE(_+o|0,e,8),n.writeUint32LE(A+a|0,e,12),n.writeUint32LE(S+c|0,e,16),n.writeUint32LE(x+h|0,e,20),n.writeUint32LE(k+u|0,e,24),n.writeUint32LE(T+f|0,e,28),n.writeUint32LE(C+l|0,e,32),n.writeUint32LE(M+d|0,e,36),n.writeUint32LE(I+p|0,e,40),n.writeUint32LE(B+y|0,e,44),n.writeUint32LE(O+g|0,e,48),n.writeUint32LE(P+b|0,e,52),n.writeUint32LE(N+m|0,e,56),n.writeUint32LE(L+w|0,e,60)}function o(e,t,r,n,o){if(void 0===o&&(o=0),32!==e.length)throw new Error("ChaCha: key size must be 32 bytes");if(n.length<r.length)throw new Error("ChaCha: destination is shorter than source");var c,h;if(0===o){if(8!==t.length&&12!==t.length)throw new Error("ChaCha nonce must be 8 or 12 bytes");h=(c=new Uint8Array(16)).length-t.length,c.set(t,h)}else{if(16!==t.length)throw new Error("ChaCha nonce with counter must be 16 bytes");c=t,h=o}for(var u=new Uint8Array(64),f=0;f<r.length;f+=64){s(u,c,e);for(var l=f;l<f+64&&l<r.length;l++)n[l]=r[l]^u[l-f];a(c,0,h)}return i.wipe(u),0===o&&i.wipe(c),n}function a(e,t,r){for(var n=1;r--;)n=n+(255&e[t])|0,e[t]=255&n,n>>>=8,t++;if(n>0)throw new Error("ChaCha: counter overflow")}t.streamXOR=o,t.stream=function(e,t,r,n){return void 0===n&&(n=0),i.wipe(r),o(e,t,r,r,n)}},5501:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5439),i=r(3027),s=r(7309),o=r(8099),a=r(4153);t.KEY_LENGTH=32,t.NONCE_LENGTH=12,t.TAG_LENGTH=16;var c=new Uint8Array(16),h=function(){function e(e){if(this.nonceLength=t.NONCE_LENGTH,this.tagLength=t.TAG_LENGTH,e.length!==t.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,r,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(e,o.length-e.length);var a=new Uint8Array(32);n.stream(this._key,o,a,4);var c,h=t.length+this.tagLength;if(i){if(i.length!==h)throw new Error("ChaCha20Poly1305: incorrect destination length");c=i}else c=new Uint8Array(h);return n.streamXOR(this._key,o,t,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),a,c.subarray(0,c.length-this.tagLength),r),s.wipe(o),c},e.prototype.open=function(e,t,r,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var o=new Uint8Array(16);o.set(e,o.length-e.length);var c=new Uint8Array(32);n.stream(this._key,o,c,4);var h=new Uint8Array(this.tagLength);if(this._authenticate(h,c,t.subarray(0,t.length-this.tagLength),r),!a.equal(h,t.subarray(t.length-this.tagLength,t.length)))return null;var u,f=t.length-this.tagLength;if(i){if(i.length!==f)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(f);return n.streamXOR(this._key,o,t.subarray(0,t.length-this.tagLength),u,4),s.wipe(o),u},e.prototype.clean=function(){return s.wipe(this._key),this},e.prototype._authenticate=function(e,t,r,n){var a=new i.Poly1305(t);n&&(a.update(n),n.length%16>0&&a.update(c.subarray(n.length%16))),a.update(r),r.length%16>0&&a.update(c.subarray(r.length%16));var h=new Uint8Array(8);n&&o.writeUint64LE(n.length,h),a.update(h),o.writeUint64LE(r.length,h),a.update(h);for(var u=a.digest(),f=0;f<u.length;f++)e[f]=u[f];a.clean(),s.wipe(u),s.wipe(h)},e}();t.ChaCha20Poly1305=h},4153:(e,t)=>{"use strict";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},1050:(e,t,r)=>{"use strict";t.T=t.aP=t.KS=t.jQ=void 0;r(1416);const n=r(3350);r(7309);function i(e){const t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}t.jQ=64,t.KS=64,t.aP=32,new Uint8Array(32)[0]=9;const s=i(),o=i([1]),a=i([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),c=i([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),h=i([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),u=i([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),f=i([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function l(e,t){for(let r=0;r<16;r++)e[r]=0|t[r]}function d(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-65536*t}e[0]+=t-1+37*(t-1)}function p(e,t,r){const n=~(r-1);for(let r=0;r<16;r++){const i=n&(e[r]^t[r]);e[r]^=i,t[r]^=i}}function y(e,t){const r=i(),n=i();for(let e=0;e<16;e++)n[e]=t[e];d(n),d(n),d(n);for(let e=0;e<2;e++){r[0]=n[0]-65517;for(let e=1;e<15;e++)r[e]=n[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const e=r[15]>>16&1;r[14]&=65535,p(n,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&n[t],e[2*t+1]=n[t]>>8}function g(e,t){let r=0;for(let n=0;n<32;n++)r|=e[n]^t[n];return(1&r-1>>>8)-1}function b(e,t){const r=new Uint8Array(32),n=new Uint8Array(32);return y(r,e),y(n,t),g(r,n)}function m(e){const t=new Uint8Array(32);return y(t,e),1&t[0]}function w(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function v(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function E(e,t,r){let n,i,s=0,o=0,a=0,c=0,h=0,u=0,f=0,l=0,d=0,p=0,y=0,g=0,b=0,m=0,w=0,v=0,E=0,_=0,A=0,S=0,x=0,k=0,T=0,C=0,M=0,I=0,B=0,O=0,P=0,N=0,L=0,R=r[0],D=r[1],U=r[2],$=r[3],j=r[4],F=r[5],K=r[6],z=r[7],q=r[8],H=r[9],V=r[10],G=r[11],W=r[12],J=r[13],Y=r[14],Z=r[15];n=t[0],s+=n*R,o+=n*D,a+=n*U,c+=n*$,h+=n*j,u+=n*F,f+=n*K,l+=n*z,d+=n*q,p+=n*H,y+=n*V,g+=n*G,b+=n*W,m+=n*J,w+=n*Y,v+=n*Z,n=t[1],o+=n*R,a+=n*D,c+=n*U,h+=n*$,u+=n*j,f+=n*F,l+=n*K,d+=n*z,p+=n*q,y+=n*H,g+=n*V,b+=n*G,m+=n*W,w+=n*J,v+=n*Y,E+=n*Z,n=t[2],a+=n*R,c+=n*D,h+=n*U,u+=n*$,f+=n*j,l+=n*F,d+=n*K,p+=n*z,y+=n*q,g+=n*H,b+=n*V,m+=n*G,w+=n*W,v+=n*J,E+=n*Y,_+=n*Z,n=t[3],c+=n*R,h+=n*D,u+=n*U,f+=n*$,l+=n*j,d+=n*F,p+=n*K,y+=n*z,g+=n*q,b+=n*H,m+=n*V,w+=n*G,v+=n*W,E+=n*J,_+=n*Y,A+=n*Z,n=t[4],h+=n*R,u+=n*D,f+=n*U,l+=n*$,d+=n*j,p+=n*F,y+=n*K,g+=n*z,b+=n*q,m+=n*H,w+=n*V,v+=n*G,E+=n*W,_+=n*J,A+=n*Y,S+=n*Z,n=t[5],u+=n*R,f+=n*D,l+=n*U,d+=n*$,p+=n*j,y+=n*F,g+=n*K,b+=n*z,m+=n*q,w+=n*H,v+=n*V,E+=n*G,_+=n*W,A+=n*J,S+=n*Y,x+=n*Z,n=t[6],f+=n*R,l+=n*D,d+=n*U,p+=n*$,y+=n*j,g+=n*F,b+=n*K,m+=n*z,w+=n*q,v+=n*H,E+=n*V,_+=n*G,A+=n*W,S+=n*J,x+=n*Y,k+=n*Z,n=t[7],l+=n*R,d+=n*D,p+=n*U,y+=n*$,g+=n*j,b+=n*F,m+=n*K,w+=n*z,v+=n*q,E+=n*H,_+=n*V,A+=n*G,S+=n*W,x+=n*J,k+=n*Y,T+=n*Z,n=t[8],d+=n*R,p+=n*D,y+=n*U,g+=n*$,b+=n*j,m+=n*F,w+=n*K,v+=n*z,E+=n*q,_+=n*H,A+=n*V,S+=n*G,x+=n*W,k+=n*J,T+=n*Y,C+=n*Z,n=t[9],p+=n*R,y+=n*D,g+=n*U,b+=n*$,m+=n*j,w+=n*F,v+=n*K,E+=n*z,_+=n*q,A+=n*H,S+=n*V,x+=n*G,k+=n*W,T+=n*J,C+=n*Y,M+=n*Z,n=t[10],y+=n*R,g+=n*D,b+=n*U,m+=n*$,w+=n*j,v+=n*F,E+=n*K,_+=n*z,A+=n*q,S+=n*H,x+=n*V,k+=n*G,T+=n*W,C+=n*J,M+=n*Y,I+=n*Z,n=t[11],g+=n*R,b+=n*D,m+=n*U,w+=n*$,v+=n*j,E+=n*F,_+=n*K,A+=n*z,S+=n*q,x+=n*H,k+=n*V,T+=n*G,C+=n*W,M+=n*J,I+=n*Y,B+=n*Z,n=t[12],b+=n*R,m+=n*D,w+=n*U,v+=n*$,E+=n*j,_+=n*F,A+=n*K,S+=n*z,x+=n*q,k+=n*H,T+=n*V,C+=n*G,M+=n*W,I+=n*J,B+=n*Y,O+=n*Z,n=t[13],m+=n*R,w+=n*D,v+=n*U,E+=n*$,_+=n*j,A+=n*F,S+=n*K,x+=n*z,k+=n*q,T+=n*H,C+=n*V,M+=n*G,I+=n*W,B+=n*J,O+=n*Y,P+=n*Z,n=t[14],w+=n*R,v+=n*D,E+=n*U,_+=n*$,A+=n*j,S+=n*F,x+=n*K,k+=n*z,T+=n*q,C+=n*H,M+=n*V,I+=n*G,B+=n*W,O+=n*J,P+=n*Y,N+=n*Z,n=t[15],v+=n*R,E+=n*D,_+=n*U,A+=n*$,S+=n*j,x+=n*F,k+=n*K,T+=n*z,C+=n*q,M+=n*H,I+=n*V,B+=n*G,O+=n*W,P+=n*J,N+=n*Y,L+=n*Z,s+=38*E,o+=38*_,a+=38*A,c+=38*S,h+=38*x,u+=38*k,f+=38*T,l+=38*C,d+=38*M,p+=38*I,y+=38*B,g+=38*O,b+=38*P,m+=38*N,w+=38*L,i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,s+=i-1+37*(i-1),i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,s+=i-1+37*(i-1),e[0]=s,e[1]=o,e[2]=a,e[3]=c,e[4]=h,e[5]=u,e[6]=f,e[7]=l,e[8]=d,e[9]=p,e[10]=y,e[11]=g,e[12]=b,e[13]=m,e[14]=w,e[15]=v}function _(e,t){E(e,t,t)}function A(e,t){const r=i(),n=i(),s=i(),o=i(),a=i(),h=i(),u=i(),f=i(),l=i();v(r,e[1],e[0]),v(l,t[1],t[0]),E(r,r,l),w(n,e[0],e[1]),w(l,t[0],t[1]),E(n,n,l),E(s,e[3],t[3]),E(s,s,c),E(o,e[2],t[2]),w(o,o,o),v(a,n,r),v(h,o,s),w(u,o,s),w(f,n,r),E(e[0],a,h),E(e[1],f,u),E(e[2],u,h),E(e[3],a,f)}function S(e,t,r){for(let n=0;n<4;n++)p(e[n],t[n],r)}function x(e,t){const r=i(),n=i(),s=i();(function(e,t){const r=i();let n;for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)_(r,r),2!==n&&4!==n&&E(r,r,t);for(n=0;n<16;n++)e[n]=r[n]})(s,t[2]),E(r,t[0],s),E(n,t[1],s),y(e,n),e[31]^=m(r)<<7}function k(e,t,r){l(e[0],s),l(e[1],o),l(e[2],o),l(e[3],s);for(let n=255;n>=0;--n){const i=r[n/8|0]>>(7&n)&1;S(e,t,i),A(t,e),A(e,e),S(e,t,i)}}function T(e,t){const r=[i(),i(),i(),i()];l(r[0],h),l(r[1],u),l(r[2],o),E(r[3],h,u),k(e,r,t)}const C=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function M(e){const t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let t=0;t<64;t++)e[t]=0;!function(e,t){let r,n,i,s;for(n=63;n>=32;--n){for(r=0,i=n-32,s=n-12;i<s;++i)t[i]+=r-16*t[n]*C[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=256*r;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*C[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*C[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}(e,t)}t.T=function(e,r,c){const h=new Uint8Array(32),u=[i(),i(),i(),i()],d=[i(),i(),i(),i()];if(c.length!==t.jQ)throw new Error(`ed25519: signature must be ${t.jQ} bytes`);if(function(e,t){const r=i(),n=i(),c=i(),h=i(),u=i(),d=i(),p=i();return l(e[2],o),function(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(e[1],t),_(c,e[1]),E(h,c,a),v(c,c,e[2]),w(h,e[2],h),_(u,h),_(d,u),E(p,d,u),E(r,p,c),E(r,r,h),function(e,t){const r=i();let n;for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)_(r,r),1!==n&&E(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}(r,r),E(r,r,c),E(r,r,h),E(r,r,h),E(e[0],r,h),_(n,e[0]),E(n,n,h),b(n,c)&&E(e[0],e[0],f),_(n,e[0]),E(n,n,h),b(n,c)?-1:(m(e[0])===t[31]>>7&&v(e[0],s,e[0]),E(e[3],e[0],e[1]),0)}(d,e))return!1;const p=new n.SHA512;p.update(c.subarray(0,32)),p.update(e),p.update(r);const y=p.digest();return M(y),k(u,d,y),T(d,c.subarray(32)),A(u,d),x(h,u),!g(c,h)}},6776:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16&65535)*n+r*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<<t|e>>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},3027:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4153),i=r(7309);t.DIGEST_LENGTH=16;var s=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var n=e[2]|e[3]<<8;this._r[1]=8191&(r>>>13|n<<3);var i=e[4]|e[5]<<8;this._r[2]=7939&(n>>>10|i<<6);var s=e[6]|e[7]<<8;this._r[3]=8191&(i>>>7|s<<9);var o=e[8]|e[9]<<8;this._r[4]=255&(s>>>4|o<<12),this._r[5]=o>>>1&8190;var a=e[10]|e[11]<<8;this._r[6]=8191&(o>>>14|a<<2);var c=e[12]|e[13]<<8;this._r[7]=8065&(a>>>11|c<<5);var h=e[14]|e[15]<<8;this._r[8]=8191&(c>>>8|h<<8),this._r[9]=h>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,r){for(var n=this._fin?0:2048,i=this._h[0],s=this._h[1],o=this._h[2],a=this._h[3],c=this._h[4],h=this._h[5],u=this._h[6],f=this._h[7],l=this._h[8],d=this._h[9],p=this._r[0],y=this._r[1],g=this._r[2],b=this._r[3],m=this._r[4],w=this._r[5],v=this._r[6],E=this._r[7],_=this._r[8],A=this._r[9];r>=16;){var S=e[t+0]|e[t+1]<<8;i+=8191&S;var x=e[t+2]|e[t+3]<<8;s+=8191&(S>>>13|x<<3);var k=e[t+4]|e[t+5]<<8;o+=8191&(x>>>10|k<<6);var T=e[t+6]|e[t+7]<<8;a+=8191&(k>>>7|T<<9);var C=e[t+8]|e[t+9]<<8;c+=8191&(T>>>4|C<<12),h+=C>>>1&8191;var M=e[t+10]|e[t+11]<<8;u+=8191&(C>>>14|M<<2);var I=e[t+12]|e[t+13]<<8;f+=8191&(M>>>11|I<<5);var B=e[t+14]|e[t+15]<<8,O=0,P=O;P+=i*p,P+=s*(5*A),P+=o*(5*_),P+=a*(5*E),O=(P+=c*(5*v))>>>13,P&=8191,P+=h*(5*w),P+=u*(5*m),P+=f*(5*b),P+=(l+=8191&(I>>>8|B<<8))*(5*g);var N=O+=(P+=(d+=B>>>5|n)*(5*y))>>>13;N+=i*y,N+=s*p,N+=o*(5*A),N+=a*(5*_),O=(N+=c*(5*E))>>>13,N&=8191,N+=h*(5*v),N+=u*(5*w),N+=f*(5*m),N+=l*(5*b),O+=(N+=d*(5*g))>>>13,N&=8191;var L=O;L+=i*g,L+=s*y,L+=o*p,L+=a*(5*A),O=(L+=c*(5*_))>>>13,L&=8191,L+=h*(5*E),L+=u*(5*v),L+=f*(5*w),L+=l*(5*m);var R=O+=(L+=d*(5*b))>>>13;R+=i*b,R+=s*g,R+=o*y,R+=a*p,O=(R+=c*(5*A))>>>13,R&=8191,R+=h*(5*_),R+=u*(5*E),R+=f*(5*v),R+=l*(5*w);var D=O+=(R+=d*(5*m))>>>13;D+=i*m,D+=s*b,D+=o*g,D+=a*y,O=(D+=c*p)>>>13,D&=8191,D+=h*(5*A),D+=u*(5*_),D+=f*(5*E),D+=l*(5*v);var U=O+=(D+=d*(5*w))>>>13;U+=i*w,U+=s*m,U+=o*b,U+=a*g,O=(U+=c*y)>>>13,U&=8191,U+=h*p,U+=u*(5*A),U+=f*(5*_),U+=l*(5*E);var $=O+=(U+=d*(5*v))>>>13;$+=i*v,$+=s*w,$+=o*m,$+=a*b,O=($+=c*g)>>>13,$&=8191,$+=h*y,$+=u*p,$+=f*(5*A),$+=l*(5*_);var j=O+=($+=d*(5*E))>>>13;j+=i*E,j+=s*v,j+=o*w,j+=a*m,O=(j+=c*b)>>>13,j&=8191,j+=h*g,j+=u*y,j+=f*p,j+=l*(5*A);var F=O+=(j+=d*(5*_))>>>13;F+=i*_,F+=s*E,F+=o*v,F+=a*w,O=(F+=c*m)>>>13,F&=8191,F+=h*b,F+=u*g,F+=f*y,F+=l*p;var K=O+=(F+=d*(5*A))>>>13;K+=i*A,K+=s*_,K+=o*E,K+=a*v,O=(K+=c*w)>>>13,K&=8191,K+=h*m,K+=u*b,K+=f*g,K+=l*y,i=P=8191&(O=(O=((O+=(K+=d*p)>>>13)<<2)+O|0)+(P&=8191)|0),s=N+=O>>>=13,o=L&=8191,a=R&=8191,c=D&=8191,h=U&=8191,u=$&=8191,f=j&=8191,l=F&=8191,d=K&=8191,t+=16,r-=16}this._h[0]=i,this._h[1]=s,this._h[2]=o,this._h[3]=a,this._h[4]=c,this._h[5]=h,this._h[6]=u,this._h[7]=f,this._h[8]=l,this._h[9]=d},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,n,i,s,o=new Uint16Array(10);if(this._leftover){for(s=this._leftover,this._buffer[s++]=1;s<16;s++)this._buffer[s]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,s=2;s<10;s++)this._h[s]+=r,r=this._h[s]>>>13,this._h[s]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,o[0]=this._h[0]+5,r=o[0]>>>13,o[0]&=8191,s=1;s<10;s++)o[s]=this._h[s]+r,r=o[s]>>>13,o[s]&=8191;for(o[9]-=8192,n=(1^r)-1,s=0;s<10;s++)o[s]&=n;for(n=~n,s=0;s<10;s++)this._h[s]=this._h[s]&n|o[s];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),i=this._h[0]+this._pad[0],this._h[0]=65535&i,s=1;s<8;s++)i=(this._h[s]+this._pad[s]|0)+(i>>>16)|0,this._h[s]=65535&i;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,r=0,n=e.length;if(this._leftover){(t=16-this._leftover)>n&&(t=n);for(var i=0;i<t;i++)this._buffer[this._leftover+i]=e[r+i];if(n-=t,r+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(t=n-n%16,this._blocks(e,r,t),r+=t,n-=t),n){for(i=0;i<n;i++)this._buffer[this._leftover+i]=e[r+i];this._leftover+=n}return this},e.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return i.wipe(this._buffer),i.wipe(this._r),i.wipe(this._h),i.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();t.Poly1305=s,t.oneTimeAuth=function(e,t){var r=new s(e);r.update(t);var n=r.digest();return r.clean(),n},t.equal=function(e,r){return e.length===t.DIGEST_LENGTH&&r.length===t.DIGEST_LENGTH&&n.equal(e,r)}},1416:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const n=r(6008),i=r(8099),s=r(7309);function o(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new n.SystemRandomSource,t.randomBytes=o,t.randomUint32=function(e=t.defaultRandomSource){const r=o(4,e),n=(0,i.readUint32LE)(r);return(0,s.wipe)(r),n};const a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e,r=a,n=t.defaultRandomSource){if(r.length<2)throw new Error("randomString charset is too short");if(r.length>256)throw new Error("randomString charset is too long");let i="";const c=r.length,h=256-256%c;for(;e>0;){const t=o(Math.ceil(256*e/h),n);for(let n=0;n<t.length&&e>0;n++){const s=t[n];s<h&&(i+=r.charAt(s%c),e--)}(0,s.wipe)(t)}return i}t.randomString=c,t.randomStringForEntropy=function(e,r=a,n=t.defaultRandomSource){return c(Math.ceil(e/(Math.log(r.length)/Math.LN2)),r,n)}},5455:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0,t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e="undefined"!=typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const t=new Uint8Array(e);for(let e=0;e<t.length;e+=65536)this._crypto.getRandomValues(t.subarray(e,e+Math.min(t.length-e,65536)));return t}}},8871:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;const n=r(7309);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const e=r(5883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(e);for(let e=0;e<r.length;e++)r[e]=t[e];return(0,n.wipe)(t),r}}},6008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;const n=r(5455),i=r(8871);t.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new i.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},3294:(e,t,r)=>{"use strict";var n=r(8099),i=r(7309);t.k=32,t.cn=64;var s=function(){function e(){this.digestLength=t.k,this.blockSize=t.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[r++],t--;this._bufferLength===this.blockSize&&(a(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(r=a(this._temp,this._state,e,r,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[r++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t/536870912|0,s=t<<3,o=t%64<56?64:128;this._buffer[r]=128;for(var c=r+1;c<o-8;c++)this._buffer[c]=0;n.writeUint32BE(i,this._buffer,o-8),n.writeUint32BE(s,this._buffer,o-4),a(this._temp,this._state,this._buffer,0,o),this._finished=!0}for(c=0;c<this.digestLength/4;c++)n.writeUint32BE(this._state[c],e,4*c);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.state),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}(),o=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function a(e,t,r,i,s){for(;s>=64;){for(var a=t[0],c=t[1],h=t[2],u=t[3],f=t[4],l=t[5],d=t[6],p=t[7],y=0;y<16;y++){var g=i+4*y;e[y]=n.readUint32BE(r,g)}for(y=16;y<64;y++){var b=e[y-2],m=(b>>>17|b<<15)^(b>>>19|b<<13)^b>>>10,w=((b=e[y-15])>>>7|b<<25)^(b>>>18|b<<14)^b>>>3;e[y]=(m+e[y-7]|0)+(w+e[y-16]|0)}for(y=0;y<64;y++)m=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&l^~f&d)|0)+(p+(o[y]+e[y]|0)|0)|0,w=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&c^a&h^c&h)|0,p=d,d=l,l=f,f=u+m|0,u=h,h=c,c=a,a=m+w|0;t[0]+=a,t[1]+=c,t[2]+=h,t[3]+=u,t[4]+=f,t[5]+=l,t[6]+=d,t[7]+=p,i+=64,s-=64}return i}t.vp=function(e){var t=new s;t.update(e);var r=t.digest();return t.clean(),r}},3350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8099),i=r(7309);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var s=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=e[n++],r--;this._bufferLength===this.blockSize&&(a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=e[n++],r--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t/536870912|0,s=t<<3,o=t%128<112?128:256;this._buffer[r]=128;for(var c=r+1;c<o-8;c++)this._buffer[c]=0;n.writeUint32BE(i,this._buffer,o-8),n.writeUint32BE(s,this._buffer,o-4),a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,o),this._finished=!0}for(c=0;c<this.digestLength/8;c++)n.writeUint32BE(this._stateHi[c],e,8*c),n.writeUint32BE(this._stateLo[c],e,8*c+4);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.stateHi),i.wipe(e.stateLo),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=s;var o=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function a(e,t,r,i,s,a,c){for(var h,u,f,l,d,p,y,g,b=r[0],m=r[1],w=r[2],v=r[3],E=r[4],_=r[5],A=r[6],S=r[7],x=i[0],k=i[1],T=i[2],C=i[3],M=i[4],I=i[5],B=i[6],O=i[7];c>=128;){for(var P=0;P<16;P++){var N=8*P+a;e[P]=n.readUint32BE(s,N),t[P]=n.readUint32BE(s,N+4)}for(P=0;P<80;P++){var L,R,D=b,U=m,$=w,j=v,F=E,K=_,z=A,q=x,H=k,V=T,G=C,W=M,J=I,Y=B;if(d=65535&(u=O),p=u>>>16,y=65535&(h=S),g=h>>>16,d+=65535&(u=(M>>>14|E<<18)^(M>>>18|E<<14)^(E>>>9|M<<23)),p+=u>>>16,y+=65535&(h=(E>>>14|M<<18)^(E>>>18|M<<14)^(M>>>9|E<<23)),g+=h>>>16,d+=65535&(u=M&I^~M&B),p+=u>>>16,y+=65535&(h=E&_^~E&A),g+=h>>>16,h=o[2*P],d+=65535&(u=o[2*P+1]),p+=u>>>16,y+=65535&h,g+=h>>>16,h=e[P%16],p+=(u=t[P%16])>>>16,y+=65535&h,g+=h>>>16,y+=(p+=(d+=65535&u)>>>16)>>>16,d=65535&(u=l=65535&d|p<<16),p=u>>>16,y=65535&(h=f=65535&y|(g+=y>>>16)<<16),g=h>>>16,d+=65535&(u=(x>>>28|b<<4)^(b>>>2|x<<30)^(b>>>7|x<<25)),p+=u>>>16,y+=65535&(h=(b>>>28|x<<4)^(x>>>2|b<<30)^(x>>>7|b<<25)),g+=h>>>16,p+=(u=x&k^x&T^k&T)>>>16,y+=65535&(h=b&m^b&w^m&w),g+=h>>>16,L=65535&(y+=(p+=(d+=65535&u)>>>16)>>>16)|(g+=y>>>16)<<16,R=65535&d|p<<16,d=65535&(u=G),p=u>>>16,y=65535&(h=j),g=h>>>16,p+=(u=l)>>>16,y+=65535&(h=f),g+=h>>>16,m=D,w=U,v=$,E=j=65535&(y+=(p+=(d+=65535&u)>>>16)>>>16)|(g+=y>>>16)<<16,_=F,A=K,S=z,b=L,k=q,T=H,C=V,M=G=65535&d|p<<16,I=W,B=J,O=Y,x=R,P%16==15)for(N=0;N<16;N++)h=e[N],d=65535&(u=t[N]),p=u>>>16,y=65535&h,g=h>>>16,h=e[(N+9)%16],d+=65535&(u=t[(N+9)%16]),p+=u>>>16,y+=65535&h,g+=h>>>16,f=e[(N+1)%16],d+=65535&(u=((l=t[(N+1)%16])>>>1|f<<31)^(l>>>8|f<<24)^(l>>>7|f<<25)),p+=u>>>16,y+=65535&(h=(f>>>1|l<<31)^(f>>>8|l<<24)^f>>>7),g+=h>>>16,f=e[(N+14)%16],p+=(u=((l=t[(N+14)%16])>>>19|f<<13)^(f>>>29|l<<3)^(l>>>6|f<<26))>>>16,y+=65535&(h=(f>>>19|l<<13)^(l>>>29|f<<3)^f>>>6),g+=h>>>16,g+=(y+=(p+=(d+=65535&u)>>>16)>>>16)>>>16,e[N]=65535&y|g<<16,t[N]=65535&d|p<<16}d=65535&(u=x),p=u>>>16,y=65535&(h=b),g=h>>>16,h=r[0],p+=(u=i[0])>>>16,y+=65535&h,g+=h>>>16,g+=(y+=(p+=(d+=65535&u)>>>16)>>>16)>>>16,r[0]=b=65535&y|g<<16,i[0]=x=65535&d|p<<16,d=65535&(u=k),p=u>>>16,y=65535&(h=m),g=h>>>16,h=r[1],p+=(u=i[1])>>>16,y+=65535&h,g+=h>>>16,g+=(y+=(p+=(d+=65535&u)>>>16)>>>16)>>>16,r[1]=m=65535&y|g<<16,i[1]=k=65535&d|p<<16,d=65535&(u=T),p=u>>>16,y=65535&(h=w),g=h>>>16,h=r[2],p+=(u=i[2])>>>16,y+=65535&h,g+=h>>>16,g+=(y+=(p+=(d+=65535&u)>>>16)>>>16)>>>16,r[2]=w=65535&y|g<<16,i[2]=T=65535&d|p<<16,d=65535&(u=C),p=u>>>16,y=65535&(h=v),g=h>>>16,h=r[3],p+=(u=i[3])>>>16,y+=65535&h,g+=h>>>16,g+=(y+=(p+=(d+=65535&u)>>>16)>>>16)>>>16,r[3]=v=65535&y|g<<16,i[3]=C=65535&d|p<<16,d=65535&(u=M),p=u>>>16,y=65535&(h=E),g=h>>>16,h=r[4],p+=(u=i[4])>>>16,y+=65535&h,g+=h>>>16,g+=(y+=(p+=(d+=65535&u)>>>16)>>>16)>>>16,r[4]=E=65535&y|g<<16,i[4]=M=65535&d|p<<16,d=65535&(u=I),p=u>>>16,y=65535&(h=_),g=h>>>16,h=r[5],p+=(u=i[5])>>>16,y+=65535&h,g+=h>>>16,g+=(y+=(p+=(d+=65535&u)>>>16)>>>16)>>>16,r[5]=_=65535&y|g<<16,i[5]=I=65535&d|p<<16,d=65535&(u=B),p=u>>>16,y=65535&(h=A),g=h>>>16,h=r[6],p+=(u=i[6])>>>16,y+=65535&h,g+=h>>>16,g+=(y+=(p+=(d+=65535&u)>>>16)>>>16)>>>16,r[6]=A=65535&y|g<<16,i[6]=B=65535&d|p<<16,d=65535&(u=O),p=u>>>16,y=65535&(h=S),g=h>>>16,h=r[7],p+=(u=i[7])>>>16,y+=65535&h,g+=h>>>16,g+=(y+=(p+=(d+=65535&u)>>>16)>>>16)>>>16,r[7]=S=65535&y|g<<16,i[7]=O=65535&d|p<<16,a+=128,c-=128}return a}t.hash=function(e){var t=new s;t.update(e);var r=t.digest();return t.clean(),r}},7309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t<e.length;t++)e[t]=0;return e}},7664:(e,t,r)=>{"use strict";t.gi=t.Au=t.KS=t.kz=void 0;const n=r(1416),i=r(7309);function s(e){const t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}t.kz=32,t.KS=32;const o=new Uint8Array(32);o[0]=9;const a=s([56129,1]);function c(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-65536*t}e[0]+=t-1+37*(t-1)}function h(e,t,r){const n=~(r-1);for(let r=0;r<16;r++){const i=n&(e[r]^t[r]);e[r]^=i,t[r]^=i}}function u(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function f(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function l(e,t,r){let n,i,s=0,o=0,a=0,c=0,h=0,u=0,f=0,l=0,d=0,p=0,y=0,g=0,b=0,m=0,w=0,v=0,E=0,_=0,A=0,S=0,x=0,k=0,T=0,C=0,M=0,I=0,B=0,O=0,P=0,N=0,L=0,R=r[0],D=r[1],U=r[2],$=r[3],j=r[4],F=r[5],K=r[6],z=r[7],q=r[8],H=r[9],V=r[10],G=r[11],W=r[12],J=r[13],Y=r[14],Z=r[15];n=t[0],s+=n*R,o+=n*D,a+=n*U,c+=n*$,h+=n*j,u+=n*F,f+=n*K,l+=n*z,d+=n*q,p+=n*H,y+=n*V,g+=n*G,b+=n*W,m+=n*J,w+=n*Y,v+=n*Z,n=t[1],o+=n*R,a+=n*D,c+=n*U,h+=n*$,u+=n*j,f+=n*F,l+=n*K,d+=n*z,p+=n*q,y+=n*H,g+=n*V,b+=n*G,m+=n*W,w+=n*J,v+=n*Y,E+=n*Z,n=t[2],a+=n*R,c+=n*D,h+=n*U,u+=n*$,f+=n*j,l+=n*F,d+=n*K,p+=n*z,y+=n*q,g+=n*H,b+=n*V,m+=n*G,w+=n*W,v+=n*J,E+=n*Y,_+=n*Z,n=t[3],c+=n*R,h+=n*D,u+=n*U,f+=n*$,l+=n*j,d+=n*F,p+=n*K,y+=n*z,g+=n*q,b+=n*H,m+=n*V,w+=n*G,v+=n*W,E+=n*J,_+=n*Y,A+=n*Z,n=t[4],h+=n*R,u+=n*D,f+=n*U,l+=n*$,d+=n*j,p+=n*F,y+=n*K,g+=n*z,b+=n*q,m+=n*H,w+=n*V,v+=n*G,E+=n*W,_+=n*J,A+=n*Y,S+=n*Z,n=t[5],u+=n*R,f+=n*D,l+=n*U,d+=n*$,p+=n*j,y+=n*F,g+=n*K,b+=n*z,m+=n*q,w+=n*H,v+=n*V,E+=n*G,_+=n*W,A+=n*J,S+=n*Y,x+=n*Z,n=t[6],f+=n*R,l+=n*D,d+=n*U,p+=n*$,y+=n*j,g+=n*F,b+=n*K,m+=n*z,w+=n*q,v+=n*H,E+=n*V,_+=n*G,A+=n*W,S+=n*J,x+=n*Y,k+=n*Z,n=t[7],l+=n*R,d+=n*D,p+=n*U,y+=n*$,g+=n*j,b+=n*F,m+=n*K,w+=n*z,v+=n*q,E+=n*H,_+=n*V,A+=n*G,S+=n*W,x+=n*J,k+=n*Y,T+=n*Z,n=t[8],d+=n*R,p+=n*D,y+=n*U,g+=n*$,b+=n*j,m+=n*F,w+=n*K,v+=n*z,E+=n*q,_+=n*H,A+=n*V,S+=n*G,x+=n*W,k+=n*J,T+=n*Y,C+=n*Z,n=t[9],p+=n*R,y+=n*D,g+=n*U,b+=n*$,m+=n*j,w+=n*F,v+=n*K,E+=n*z,_+=n*q,A+=n*H,S+=n*V,x+=n*G,k+=n*W,T+=n*J,C+=n*Y,M+=n*Z,n=t[10],y+=n*R,g+=n*D,b+=n*U,m+=n*$,w+=n*j,v+=n*F,E+=n*K,_+=n*z,A+=n*q,S+=n*H,x+=n*V,k+=n*G,T+=n*W,C+=n*J,M+=n*Y,I+=n*Z,n=t[11],g+=n*R,b+=n*D,m+=n*U,w+=n*$,v+=n*j,E+=n*F,_+=n*K,A+=n*z,S+=n*q,x+=n*H,k+=n*V,T+=n*G,C+=n*W,M+=n*J,I+=n*Y,B+=n*Z,n=t[12],b+=n*R,m+=n*D,w+=n*U,v+=n*$,E+=n*j,_+=n*F,A+=n*K,S+=n*z,x+=n*q,k+=n*H,T+=n*V,C+=n*G,M+=n*W,I+=n*J,B+=n*Y,O+=n*Z,n=t[13],m+=n*R,w+=n*D,v+=n*U,E+=n*$,_+=n*j,A+=n*F,S+=n*K,x+=n*z,k+=n*q,T+=n*H,C+=n*V,M+=n*G,I+=n*W,B+=n*J,O+=n*Y,P+=n*Z,n=t[14],w+=n*R,v+=n*D,E+=n*U,_+=n*$,A+=n*j,S+=n*F,x+=n*K,k+=n*z,T+=n*q,C+=n*H,M+=n*V,I+=n*G,B+=n*W,O+=n*J,P+=n*Y,N+=n*Z,n=t[15],v+=n*R,E+=n*D,_+=n*U,A+=n*$,S+=n*j,x+=n*F,k+=n*K,T+=n*z,C+=n*q,M+=n*H,I+=n*V,B+=n*G,O+=n*W,P+=n*J,N+=n*Y,L+=n*Z,s+=38*E,o+=38*_,a+=38*A,c+=38*S,h+=38*x,u+=38*k,f+=38*T,l+=38*C,d+=38*M,p+=38*I,y+=38*B,g+=38*O,b+=38*P,m+=38*N,w+=38*L,i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,s+=i-1+37*(i-1),i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,s+=i-1+37*(i-1),e[0]=s,e[1]=o,e[2]=a,e[3]=c,e[4]=h,e[5]=u,e[6]=f,e[7]=l,e[8]=d,e[9]=p,e[10]=y,e[11]=g,e[12]=b,e[13]=m,e[14]=w,e[15]=v}function d(e,t){l(e,t,t)}function p(e,t){const r=new Uint8Array(32),n=new Float64Array(80),i=s(),o=s(),p=s(),y=s(),g=s(),b=s();for(let t=0;t<31;t++)r[t]=e[t];r[31]=127&e[31]|64,r[0]&=248,function(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}