missions.omni.network Open in urlscan Pro
76.76.21.142  Public Scan

URL: https://missions.omni.network/_next/static/chunks/942-9dfe78b6c46b6b4a.js
Submission: On August 23 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[942],{1371:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6826);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 o(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 u(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function a(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function c(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function l(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 h(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),l(e/4294967296>>>0,t,r),l(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=o,t.writeInt16LE=o,t.readInt32BE=u,t.readUint32BE=s,t.readInt32LE=a,t.readUint32LE=c,t.writeUint32BE=l,t.writeInt32BE=l,t.writeUint32LE=f,t.writeInt32LE=f,t.readInt64BE=function(e,t){void 0===t&&(t=0);var r=u(e,t),n=u(e,t+4);return 4294967296*r+n-(n>>31)*4294967296},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var r=a(e,t);return 4294967296*a(e,t+4)+r-(r>>31)*4294967296},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=d,t.writeInt64LE=d,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o<r+e/8;o++)n+=t[o]*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 Error("writeUintBE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw Error("writeUintBE value must be an integer");for(var o=1,u=e/8+i-1;u>=i;u--)r[u]=t/o&255,o*=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 Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw Error("writeUintLE value must be an integer");for(var o=1,u=i;u<i+e/8;u++)r[u]=t/o&255,o*=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}},1671:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1371),i=r(939);function o(e,t,r,o,u){if(void 0===u&&(u=0),32!==e.length)throw Error("ChaCha: key size must be 32 bytes");if(o.length<r.length)throw Error("ChaCha: destination is shorter than source");if(0===u){if(8!==t.length&&12!==t.length)throw Error("ChaCha nonce must be 8 or 12 bytes");a=(s=new Uint8Array(16)).length-t.length,s.set(t,a)}else{if(16!==t.length)throw Error("ChaCha nonce with counter must be 16 bytes");s=t,a=u}for(var s,a,c=new Uint8Array(64),l=0;l<r.length;l+=64){!function(e,t,r){for(var i=r[3]<<24|r[2]<<16|r[1]<<8|r[0],o=r[7]<<24|r[6]<<16|r[5]<<8|r[4],u=r[11]<<24|r[10]<<16|r[9]<<8|r[8],s=r[15]<<24|r[14]<<16|r[13]<<8|r[12],a=r[19]<<24|r[18]<<16|r[17]<<8|r[16],c=r[23]<<24|r[22]<<16|r[21]<<8|r[20],l=r[27]<<24|r[26]<<16|r[25]<<8|r[24],f=r[31]<<24|r[30]<<16|r[29]<<8|r[28],h=t[3]<<24|t[2]<<16|t[1]<<8|t[0],d=t[7]<<24|t[6]<<16|t[5]<<8|t[4],p=t[11]<<24|t[10]<<16|t[9]<<8|t[8],b=t[15]<<24|t[14]<<16|t[13]<<8|t[12],y=1634760805,D=857760878,g=2036477234,_=1797285236,m=i,v=o,E=u,w=s,S=a,O=c,C=l,U=f,A=h,N=d,P=p,I=b,j=0;j<20;j+=2)A^=y=y+m|0,m^=S=S+(A=A>>>16|A<<16)|0,m=m>>>20|m<<12,N^=D=D+v|0,v^=O=O+(N=N>>>16|N<<16)|0,v=v>>>20|v<<12,P^=g=g+E|0,E^=C=C+(P=P>>>16|P<<16)|0,E=E>>>20|E<<12,I^=_=_+w|0,w^=U=U+(I=I>>>16|I<<16)|0,w=w>>>20|w<<12,P^=g=g+E|0,E^=C=C+(P=P>>>24|P<<8)|0,E=E>>>25|E<<7,I^=_=_+w|0,w^=U=U+(I=I>>>24|I<<8)|0,w=w>>>25|w<<7,N^=D=D+v|0,v^=O=O+(N=N>>>24|N<<8)|0,v=v>>>25|v<<7,A^=y=y+m|0,m^=S=S+(A=A>>>24|A<<8)|0,m=m>>>25|m<<7,I^=y=y+v|0,v^=C=C+(I=I>>>16|I<<16)|0,v=v>>>20|v<<12,A^=D=D+E|0,E^=U=U+(A=A>>>16|A<<16)|0,E=E>>>20|E<<12,N^=g=g+w|0,w^=S=S+(N=N>>>16|N<<16)|0,w=w>>>20|w<<12,P^=_=_+m|0,m^=O=O+(P=P>>>16|P<<16)|0,m=m>>>20|m<<12,N^=g=g+w|0,w^=S=S+(N=N>>>24|N<<8)|0,w=w>>>25|w<<7,P^=_=_+m|0,m^=O=O+(P=P>>>24|P<<8)|0,m=m>>>25|m<<7,A^=D=D+E|0,E^=U=U+(A=A>>>24|A<<8)|0,E=E>>>25|E<<7,I^=y=y+v|0,v^=C=C+(I=I>>>24|I<<8)|0,v=v>>>25|v<<7;n.writeUint32LE(y+1634760805|0,e,0),n.writeUint32LE(D+857760878|0,e,4),n.writeUint32LE(g+2036477234|0,e,8),n.writeUint32LE(_+1797285236|0,e,12),n.writeUint32LE(m+i|0,e,16),n.writeUint32LE(v+o|0,e,20),n.writeUint32LE(E+u|0,e,24),n.writeUint32LE(w+s|0,e,28),n.writeUint32LE(S+a|0,e,32),n.writeUint32LE(O+c|0,e,36),n.writeUint32LE(C+l|0,e,40),n.writeUint32LE(U+f|0,e,44),n.writeUint32LE(A+h|0,e,48),n.writeUint32LE(N+d|0,e,52),n.writeUint32LE(P+p|0,e,56),n.writeUint32LE(I+b|0,e,60)}(c,s,e);for(var f=l;f<l+64&&f<r.length;f++)o[f]=r[f]^c[f-l];!function(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 Error("ChaCha: counter overflow")}(s,0,a)}return i.wipe(c),0===u&&i.wipe(s),o}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)}},9790:function(e,t,r){"use strict";var n=r(1671),i=r(1866),o=r(939),u=r(1371),s=r(5332);t.Cv=32,t.WH=12,t.pg=16;var a=new Uint8Array(16),c=function(){function e(e){if(this.nonceLength=t.WH,this.tagLength=t.pg,e.length!==t.Cv)throw 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 Error("ChaCha20Poly1305: incorrect nonce length");var u,s=new Uint8Array(16);s.set(e,s.length-e.length);var a=new Uint8Array(32);n.stream(this._key,s,a,4);var c=t.length+this.tagLength;if(i){if(i.length!==c)throw Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(c);return n.streamXOR(this._key,s,t,u,4),this._authenticate(u.subarray(u.length-this.tagLength,u.length),a,u.subarray(0,u.length-this.tagLength),r),o.wipe(s),u},e.prototype.open=function(e,t,r,i){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var u,a=new Uint8Array(16);a.set(e,a.length-e.length);var c=new Uint8Array(32);n.stream(this._key,a,c,4);var l=new Uint8Array(this.tagLength);if(this._authenticate(l,c,t.subarray(0,t.length-this.tagLength),r),!s.equal(l,t.subarray(t.length-this.tagLength,t.length)))return null;var f=t.length-this.tagLength;if(i){if(i.length!==f)throw Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(f);return n.streamXOR(this._key,a,t.subarray(0,t.length-this.tagLength),u,4),o.wipe(a),u},e.prototype.clean=function(){return o.wipe(this._key),this},e.prototype._authenticate=function(e,t,r,n){var s=new i.Poly1305(t);n&&(s.update(n),n.length%16>0&&s.update(a.subarray(n.length%16))),s.update(r),r.length%16>0&&s.update(a.subarray(r.length%16));var c=new Uint8Array(8);n&&u.writeUint64LE(n.length,c),s.update(c),u.writeUint64LE(r.length,c),s.update(c);for(var l=s.digest(),f=0;f<l.length;f++)e[f]=l[f];s.clean(),o.wipe(l),o.wipe(c)},e}();t.OK=c},5332:function(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)}},4553:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}},5154:function(e,t,r){"use strict";var n=r(5978),i=r(939),o=function(){function e(e,t,r,i){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var o=n.hmac(this._hash,r,t);this._hmac=new n.HMAC(e,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),r=0;r<t.length;r++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[r]=this._buffer[this._bufpos++];return t},e.prototype.clean=function(){this._hmac.clean(),i.wipe(this._buffer),i.wipe(this._counter),this._bufpos=0},e}();t.t=o},5978:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4553),i=r(5332),o=r(939),u=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(r).clean():r.set(t);for(var i=0;i<r.length;i++)r[i]^=54;this._inner.update(r);for(var i=0;i<r.length;i++)r[i]^=106;this._outer.update(r),n.isSerializableHash(this._inner)&&n.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),o.wipe(r)}return e.prototype.reset=function(){if(!n.isSerializableHash(this._inner)||!n.isSerializableHash(this._outer))throw Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){n.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),n.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(e){return this._inner.update(e),this},e.prototype.finish=function(e){return this._finished?(this._outer.finish(e),this):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0,this)},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(!n.isSerializableHash(this._inner))throw Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!n.isSerializableHash(this._inner)||!n.isSerializableHash(this._outer))throw Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(e){if(!n.isSerializableHash(this._inner))throw Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},e}();t.HMAC=u,t.hmac=function(e,t,r){var n=new u(e,t);n.update(r);var i=n.digest();return n.clean(),i},t.equal=i.equal},6826:function(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}},1866:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5332),i=r(939);t.DIGEST_LENGTH=16;var o=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]=(r>>>13|n<<3)&8191;var i=e[4]|e[5]<<8;this._r[2]=(n>>>10|i<<6)&7939;var o=e[6]|e[7]<<8;this._r[3]=(i>>>7|o<<9)&8191;var u=e[8]|e[9]<<8;this._r[4]=(o>>>4|u<<12)&255,this._r[5]=u>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=(u>>>14|s<<2)&8191;var a=e[12]|e[13]<<8;this._r[7]=(s>>>11|a<<5)&8065;var c=e[14]|e[15]<<8;this._r[8]=(a>>>8|c<<8)&8191,this._r[9]=c>>>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],o=this._h[1],u=this._h[2],s=this._h[3],a=this._h[4],c=this._h[5],l=this._h[6],f=this._h[7],h=this._h[8],d=this._h[9],p=this._r[0],b=this._r[1],y=this._r[2],D=this._r[3],g=this._r[4],_=this._r[5],m=this._r[6],v=this._r[7],E=this._r[8],w=this._r[9];r>=16;){var S,O=e[t+0]|e[t+1]<<8;i+=8191&O;var C=e[t+2]|e[t+3]<<8;o+=(O>>>13|C<<3)&8191;var U=e[t+4]|e[t+5]<<8;u+=(C>>>10|U<<6)&8191;var A=e[t+6]|e[t+7]<<8;s+=(U>>>7|A<<9)&8191;var N=e[t+8]|e[t+9]<<8;a+=(A>>>4|N<<12)&8191,c+=N>>>1&8191;var P=e[t+10]|e[t+11]<<8;l+=(N>>>14|P<<2)&8191;var I=e[t+12]|e[t+13]<<8;f+=(P>>>11|I<<5)&8191;var j=e[t+14]|e[t+15]<<8;h+=(I>>>8|j<<8)&8191,d+=j>>>5|n;var T=0;T=(S=0+i*p+o*(5*w)+u*(5*E)+s*(5*v)+a*(5*m))>>>13,S&=8191,S+=c*(5*_)+l*(5*g)+f*(5*D)+h*(5*y)+d*(5*b),T+=S>>>13,S&=8191;var M=T;M+=i*b+o*p+u*(5*w)+s*(5*E)+a*(5*v),T=M>>>13,M&=8191,M+=c*(5*m)+l*(5*_)+f*(5*g)+h*(5*D)+d*(5*y),T+=M>>>13,M&=8191;var x=T;x+=i*y+o*b+u*p+s*(5*w)+a*(5*E),T=x>>>13,x&=8191,x+=c*(5*v)+l*(5*m)+f*(5*_)+h*(5*g)+d*(5*D),T+=x>>>13,x&=8191;var L=T;L+=i*D+o*y+u*b+s*p+a*(5*w),T=L>>>13,L&=8191,L+=c*(5*E)+l*(5*v)+f*(5*m)+h*(5*_)+d*(5*g),T+=L>>>13,L&=8191;var k=T;k+=i*g+o*D+u*y+s*b+a*p,T=k>>>13,k&=8191,k+=c*(5*w)+l*(5*E)+f*(5*v)+h*(5*m)+d*(5*_),T+=k>>>13,k&=8191;var R=T;R+=i*_+o*g+u*D+s*y+a*b,T=R>>>13,R&=8191,R+=c*p+l*(5*w)+f*(5*E)+h*(5*v)+d*(5*m),T+=R>>>13,R&=8191;var F=T;F+=i*m+o*_+u*g+s*D+a*y,T=F>>>13,F&=8191,F+=c*b+l*p+f*(5*w)+h*(5*E)+d*(5*v),T+=F>>>13,F&=8191;var B=T;B+=i*v+o*m+u*_+s*g+a*D,T=B>>>13,B&=8191,B+=c*y+l*b+f*p+h*(5*w)+d*(5*E),T+=B>>>13,B&=8191;var $=T;$+=i*E+o*v+u*m+s*_+a*g,T=$>>>13,$&=8191,$+=c*D+l*y+f*b+h*p+d*(5*w),T+=$>>>13,$&=8191;var W=T;W+=i*w+o*E+u*v+s*m+a*_,T=W>>>13,W&=8191,W+=c*g+l*D+f*y+h*b+d*p,T+=W>>>13,W&=8191,S=8191&(T=(T=(T<<2)+T|0)+S|0),T>>>=13,M+=T,i=S,o=M,u=x,s=L,a=k,c=R,l=F,f=B,h=$,d=W,t+=16,r-=16}this._h[0]=i,this._h[1]=o,this._h[2]=u,this._h[3]=s,this._h[4]=a,this._h[5]=c,this._h[6]=l,this._h[7]=f,this._h[8]=h,this._h[9]=d},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,n,i,o,u=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=r,r=this._h[o]>>>13,this._h[o]&=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,u[0]=this._h[0]+5,r=u[0]>>>13,u[0]&=8191,o=1;o<10;o++)u[o]=this._h[o]+r,r=u[o]>>>13,u[o]&=8191;for(u[9]-=8192,n=(1^r)-1,o=0;o<10;o++)u[o]&=n;for(o=0,n=~n;o<10;o++)this._h[o]=this._h[o]&n|u[o];for(o=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,i=this._h[0]+this._pad[0],this._h[0]=65535&i;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=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(var 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 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=o,t.oneTimeAuth=function(e,t){var r=new o(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)}},3299:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;let n=r(2500),i=r(1371),o=r(939);function u(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new n.SystemRandomSource,t.randomBytes=u,t.randomUint32=function(e=t.defaultRandomSource){let r=u(4,e),n=(0,i.readUint32LE)(r);return(0,o.wipe)(r),n};let s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function a(e,r=s,n=t.defaultRandomSource){if(r.length<2)throw Error("randomString charset is too short");if(r.length>256)throw Error("randomString charset is too long");let i="",a=r.length,c=256-256%a;for(;e>0;){let t=u(Math.ceil(256*e/c),n);for(let n=0;n<t.length&&e>0;n++){let o=t[n];o<c&&(i+=r.charAt(o%a),e--)}(0,o.wipe)(t)}return i}t.randomString=a,t.randomStringForEntropy=function(e,r=s,n=t.defaultRandomSource){let i=Math.ceil(e/(Math.log(r.length)/Math.LN2));return a(i,r,n)}},7671:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0,t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let 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 Error("Browser random byte generator is not available.");let 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}}},1298:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;let n=r(939);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{let e=r(5883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw Error("NodeRandomSource: got fewer bytes than requested");let r=new Uint8Array(e);for(let e=0;e<r.length;e++)r[e]=t[e];return(0,n.wipe)(t),r}}},2500:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;let n=r(7671),i=r(1298);t.SystemRandomSource=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new i.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},7182:function(e,t,r){"use strict";var n=r(1371),i=r(939);t.k=32,t.cn=64;var o=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 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&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(r=s(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%64<56?64:128;this._buffer[r]=128;for(var o=r+1;o<i-8;o++)this._buffer[o]=0;n.writeUint32BE(t/536870912|0,this._buffer,i-8),n.writeUint32BE(t<<3,this._buffer,i-4),s(this._temp,this._state,this._buffer,0,i),this._finished=!0}for(var o=0;o<this.digestLength/4;o++)n.writeUint32BE(this._state[o],e,4*o);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 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}();t.mE=o;var u=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 s(e,t,r,i,o){for(;o>=64;){for(var s=t[0],a=t[1],c=t[2],l=t[3],f=t[4],h=t[5],d=t[6],p=t[7],b=0;b<16;b++){var y=i+4*b;e[b]=n.readUint32BE(r,y)}for(var b=16;b<64;b++){var D=e[b-2],g=(D>>>17|D<<15)^(D>>>19|D<<13)^D>>>10,_=((D=e[b-15])>>>7|D<<25)^(D>>>18|D<<14)^D>>>3;e[b]=(g+e[b-7]|0)+(_+e[b-16]|0)}for(var b=0;b<64;b++){var g=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&d)|0)+(p+(u[b]+e[b]|0)|0)|0,_=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&a^s&c^a&c)|0;p=d,d=h,h=f,f=l+g|0,l=c,c=a,a=s,s=g+_|0}t[0]+=s,t[1]+=a,t[2]+=c,t[3]+=l,t[4]+=f,t[5]+=h,t[6]+=d,t[7]+=p,i+=64,o-=64}return i}t.vp=function(e){var t=new o;t.update(e);var r=t.digest();return t.clean(),r}},939:function(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}},2929:function(e,t,r){"use strict";t.gi=t.Au=t.KS=t.kz=void 0;let n=r(3299),i=r(939);function o(e){let 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;let u=new Uint8Array(32);u[0]=9;let s=o([56129,1]);function a(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 c(e,t,r){let n=~(r-1);for(let r=0;r<16;r++){let i=n&(e[r]^t[r]);e[r]^=i,t[r]^=i}}function l(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 h(e,t,r){let n,i,o=0,u=0,s=0,a=0,c=0,l=0,f=0,h=0,d=0,p=0,b=0,y=0,D=0,g=0,_=0,m=0,v=0,E=0,w=0,S=0,O=0,C=0,U=0,A=0,N=0,P=0,I=0,j=0,T=0,M=0,x=0,L=r[0],k=r[1],R=r[2],F=r[3],B=r[4],$=r[5],W=r[6],K=r[7],H=r[8],V=r[9],z=r[10],q=r[11],Y=r[12],G=r[13],X=r[14],Q=r[15];o+=(n=t[0])*L,u+=n*k,s+=n*R,a+=n*F,c+=n*B,l+=n*$,f+=n*W,h+=n*K,d+=n*H,p+=n*V,b+=n*z,y+=n*q,D+=n*Y,g+=n*G,_+=n*X,m+=n*Q,u+=(n=t[1])*L,s+=n*k,a+=n*R,c+=n*F,l+=n*B,f+=n*$,h+=n*W,d+=n*K,p+=n*H,b+=n*V,y+=n*z,D+=n*q,g+=n*Y,_+=n*G,m+=n*X,v+=n*Q,s+=(n=t[2])*L,a+=n*k,c+=n*R,l+=n*F,f+=n*B,h+=n*$,d+=n*W,p+=n*K,b+=n*H,y+=n*V,D+=n*z,g+=n*q,_+=n*Y,m+=n*G,v+=n*X,E+=n*Q,a+=(n=t[3])*L,c+=n*k,l+=n*R,f+=n*F,h+=n*B,d+=n*$,p+=n*W,b+=n*K,y+=n*H,D+=n*V,g+=n*z,_+=n*q,m+=n*Y,v+=n*G,E+=n*X,w+=n*Q,c+=(n=t[4])*L,l+=n*k,f+=n*R,h+=n*F,d+=n*B,p+=n*$,b+=n*W,y+=n*K,D+=n*H,g+=n*V,_+=n*z,m+=n*q,v+=n*Y,E+=n*G,w+=n*X,S+=n*Q,l+=(n=t[5])*L,f+=n*k,h+=n*R,d+=n*F,p+=n*B,b+=n*$,y+=n*W,D+=n*K,g+=n*H,_+=n*V,m+=n*z,v+=n*q,E+=n*Y,w+=n*G,S+=n*X,O+=n*Q,f+=(n=t[6])*L,h+=n*k,d+=n*R,p+=n*F,b+=n*B,y+=n*$,D+=n*W,g+=n*K,_+=n*H,m+=n*V,v+=n*z,E+=n*q,w+=n*Y,S+=n*G,O+=n*X,C+=n*Q,h+=(n=t[7])*L,d+=n*k,p+=n*R,b+=n*F,y+=n*B,D+=n*$,g+=n*W,_+=n*K,m+=n*H,v+=n*V,E+=n*z,w+=n*q,S+=n*Y,O+=n*G,C+=n*X,U+=n*Q,d+=(n=t[8])*L,p+=n*k,b+=n*R,y+=n*F,D+=n*B,g+=n*$,_+=n*W,m+=n*K,v+=n*H,E+=n*V,w+=n*z,S+=n*q,O+=n*Y,C+=n*G,U+=n*X,A+=n*Q,p+=(n=t[9])*L,b+=n*k,y+=n*R,D+=n*F,g+=n*B,_+=n*$,m+=n*W,v+=n*K,E+=n*H,w+=n*V,S+=n*z,O+=n*q,C+=n*Y,U+=n*G,A+=n*X,N+=n*Q,b+=(n=t[10])*L,y+=n*k,D+=n*R,g+=n*F,_+=n*B,m+=n*$,v+=n*W,E+=n*K,w+=n*H,S+=n*V,O+=n*z,C+=n*q,U+=n*Y,A+=n*G,N+=n*X,P+=n*Q,y+=(n=t[11])*L,D+=n*k,g+=n*R,_+=n*F,m+=n*B,v+=n*$,E+=n*W,w+=n*K,S+=n*H,O+=n*V,C+=n*z,U+=n*q,A+=n*Y,N+=n*G,P+=n*X,I+=n*Q,D+=(n=t[12])*L,g+=n*k,_+=n*R,m+=n*F,v+=n*B,E+=n*$,w+=n*W,S+=n*K,O+=n*H,C+=n*V,U+=n*z,A+=n*q,N+=n*Y,P+=n*G,I+=n*X,j+=n*Q,g+=(n=t[13])*L,_+=n*k,m+=n*R,v+=n*F,E+=n*B,w+=n*$,S+=n*W,O+=n*K,C+=n*H,U+=n*V,A+=n*z,N+=n*q,P+=n*Y,I+=n*G,j+=n*X,T+=n*Q,_+=(n=t[14])*L,m+=n*k,v+=n*R,E+=n*F,w+=n*B,S+=n*$,O+=n*W,C+=n*K,U+=n*H,A+=n*V,N+=n*z,P+=n*q,I+=n*Y,j+=n*G,T+=n*X,M+=n*Q,m+=(n=t[15])*L,v+=n*k,E+=n*R,w+=n*F,S+=n*B,O+=n*$,C+=n*W,U+=n*K,A+=n*H,N+=n*V,P+=n*z,I+=n*q,j+=n*Y,T+=n*G,M+=n*X,x+=n*Q,o+=38*v,u+=38*E,s+=38*w,a+=38*S,c+=38*O,l+=38*C,f+=38*U,h+=38*A,d+=38*N,p+=38*P,b+=38*I,y+=38*j,D+=38*T,g+=38*M,_+=38*x,i=Math.floor((n=o+(i=1)+65535)/65536),o=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=s+i+65535)/65536),s=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=D+i+65535)/65536),D=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=_+i+65535)/65536),_=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,o+=i-1+37*(i-1),i=Math.floor((n=o+(i=1)+65535)/65536),o=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=s+i+65535)/65536),s=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=D+i+65535)/65536),D=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=_+i+65535)/65536),_=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,o+=i-1+37*(i-1),e[0]=o,e[1]=u,e[2]=s,e[3]=a,e[4]=c,e[5]=l,e[6]=f,e[7]=h,e[8]=d,e[9]=p,e[10]=b,e[11]=y,e[12]=D,e[13]=g,e[14]=_,e[15]=m}function d(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=o(),u=o(),d=o(),p=o(),b=o(),y=o();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}(n,t);for(let e=0;e<16;e++)u[e]=n[e];i[0]=p[0]=1;for(let e=254;e>=0;--e){let t=r[e>>>3]>>>(7&e)&1;c(i,u,t),c(d,p,t),l(b,i,d),f(i,i,d),l(d,u,p),f(u,u,p),h(p,b,b),h(y,i,i),h(i,d,i),h(d,u,b),l(b,i,d),f(i,i,d),h(u,i,i),f(d,p,y),h(i,d,s),l(i,i,p),h(d,d,i),h(i,p,y),h(p,u,n),h(u,b,b),c(i,u,t),c(d,p,t)}for(let e=0;e<16;e++)n[e+16]=i[e],n[e+32]=d[e],n[e+48]=u[e],n[e+64]=p[e];let D=n.subarray(32),g=n.subarray(16);!function(e,t){let r=o();for(let e=0;e<16;e++)r[e]=t[e];for(let e=253;e>=0;e--)h(r,r,r),2!==e&&4!==e&&h(r,r,t);for(let t=0;t<16;t++)e[t]=r[t]}(D,D),h(g,g,D);let _=new Uint8Array(32);return!function(e,t){let r=o(),n=o();for(let e=0;e<16;e++)n[e]=t[e];a(n),a(n),a(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);let e=r[15]>>16&1;r[14]&=65535,c(n,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&n[t],e[2*t+1]=n[t]>>8}(_,g),_}t.Au=function(e){let r=(0,n.randomBytes)(32,e),o=function(e){if(e.length!==t.KS)throw Error(`x25519: seed must be ${t.KS} bytes`);let r=new Uint8Array(e),n=d(r,u);return{publicKey:n,secretKey:r}}(r);return(0,i.wipe)(r),o},t.gi=function(e,r,n=!1){if(e.length!==t.kz)throw Error("X25519: incorrect secret key length");if(r.length!==t.kz)throw Error("X25519: incorrect public key length");let i=d(e,r);if(n){let e=0;for(let t=0;t<i.length;t++)e|=i[t];if(0===e)throw Error("X25519: invalid shared key")}return i}},4451:function(){},9670:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(3985);n.__exportStar(r(273),t),n.__exportStar(r(6930),t)},273:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},6930:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},4901:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(3985);n.__exportStar(r(4462),t),n.__exportStar(r(4809),t),n.__exportStar(r(5442),t),n.__exportStar(r(9670),t)},5442:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(3985);n.__exportStar(r(4680),t)},4680:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0,t.IWatch=class{}},6686:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;let n=r(9670);t.toMiliseconds=function(e){return e*n.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/n.ONE_THOUSAND)}},9050:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}},4462:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(3985);n.__exportStar(r(9050),t),n.__exportStar(r(6686),t)},4809:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(void 0!==t.elapsed)throw Error(`Watch already stopped for label: ${e}`);let r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){let t=this.timestamps.get(e);if(void 0===t)throw Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e),r=t.elapsed||Date.now()-t.started;return r}}t.Watch=r,t.default=r},3985:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return m},__asyncGenerator:function(){return _},__asyncValues:function(){return v},__await:function(){return g},__awaiter:function(){return l},__classPrivateFieldGet:function(){return O},__classPrivateFieldSet:function(){return C},__createBinding:function(){return h},__decorate:function(){return s},__exportStar:function(){return d},__extends:function(){return i},__generator:function(){return f},__importDefault:function(){return S},__importStar:function(){return w},__makeTemplateObject:function(){return E},__metadata:function(){return c},__param:function(){return a},__read:function(){return b},__rest:function(){return u},__spread:function(){return y},__spreadArrays:function(){return D},__values:function(){return p}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,u=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(u=(o<3?i(u):o>3?i(t,r,u):i(t,r))||u);return o>3&&u&&Object.defineProperty(t,r,u),u}function a(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(i,o){function u(e){try{a(n.next(e))}catch(e){o(e)}}function s(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(u,s)}a((n=n.apply(e,t||[])).next())})}function f(e,t){var r,n,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,n=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(e,u)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function d(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)u.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function D(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],u=0,s=o.length;u<s;u++,i++)n[i]=o[u];return n}function g(e){return this instanceof g?(this.v=e,this):new g(e)}function _(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},u("next"),u("throw"),u("return"),n[Symbol.asyncIterator]=function(){return this},n;function u(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=i[e](t)).value instanceof g?Promise.resolve(r.value.v).then(a,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}}function a(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function m(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:g(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function v(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},6332:function(e,t,r){"use strict";r.d(t,{AW:function(){return N},rV:function(){return j},gn:function(){return ed},H1:function(){return es},hF:function(){return ea},WG:function(){return R},pe:function(){return B},m$:function(){return x},vB:function(){return $},HI:function(){return F},E0:function(){return eb},Gq:function(){return ef},$0:function(){return en},Z4:function(){return el},Bv:function(){return eU},Au:function(){return T},jd:function(){return M},gu:function(){return C},D:function(){return er},Z7:function(){return eH},cO:function(){return e_},_H:function(){return eg},fc:function(){return eR},D6:function(){return eV},Hh:function(){return eD},Ym:function(){return L},rj:function(){return k},jU:function(){return ee},gp:function(){return eF},rF:function(){return ta},Bw:function(){return ep},UG:function(){return J},xW:function(){return e0},b$:function(){return Z},Ih:function(){return eQ},h1:function(){return e1},Q8:function(){return H},o8:function(){return eY},qt:function(){return ez},Dd:function(){return e3},$t:function(){return tt},nf:function(){return ti},Q0:function(){return e7},in:function(){return e6},p8:function(){return to},sI:function(){return ts},al:function(){return tu},L5:function(){return eq},EJ:function(){return te},Z2:function(){return e4},PM:function(){return e9},hH:function(){return tr},ON:function(){return tl},n:function(){return e2},JT:function(){return tn},M_:function(){return eG},jv:function(){return eZ},KC:function(){return eo},eG:function(){return ey},fK:function(){return e$},IP:function(){return eu},iP:function(){return eh},M:function(){return eB},he:function(){return eC},Ll:function(){return W},EN:function(){return K}});var n=r(9790),i=r(5154),o=r(3299),u=r(7182),s=r(2929),a=r(9960),c=r(2040),l=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},f=function(e,t,r){this.name=e,this.version=t,this.os=r,this.type="browser"},h=function(e){this.version=e,this.type="node",this.name="node",this.os=c.platform},d=function(e,t,r,n){this.name=e,this.version=t,this.os=r,this.bot=n,this.type="bot-device"},p=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},b=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},y=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,D=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],g=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function _(e){var t=""!==e&&D.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1);if(!t)return null;var r=t[0],n=t[1];if("searchbot"===r)return new p;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<3&&(i=l(l([],i,!0),function(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}(3-i.length),!0)):i=[];var o=i.join("."),u=function(e){for(var t=0,r=g.length;t<r;t++){var n=g[t],i=n[0];if(n[1].exec(e))return i}return null}(e),s=y.exec(e);return s&&s[1]?new d(r,o,u,s[1]):new f(r,o,u)}var m=r(4901),v=r(224),E=r(5261),w=r(3564);r(4451);let S={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}};var O=r(2040);function C(e,t=[]){let r=[];return Object.keys(e).forEach(n=>{if(t.length&&!t.includes(n))return;let i=e[n];r.push(...i.accounts)}),r}function U(e,t){return e.includes(":")?[e]:t.chains||[]}let A="base10",N="base16",P="base64pad",I="utf8",j=1;function T(){let e=s.Au();return{privateKey:(0,a.BB)(e.secretKey,N),publicKey:(0,a.BB)(e.publicKey,N)}}function M(){let e=(0,o.randomBytes)(32);return(0,a.BB)(e,N)}function x(e,t){let r=s.gi((0,a.mL)(e,N),(0,a.mL)(t,N)),n=new i.t(u.mE,r).expand(32);return(0,a.BB)(n,N)}function L(e){let t=(0,u.vp)((0,a.mL)(e,N));return(0,a.BB)(t,N)}function k(e){let t=(0,u.vp)((0,a.mL)(e,I));return(0,a.BB)(t,N)}function R(e){return Number((0,a.BB)(e,A))}function F(e){var t;let r=(t="u">typeof e.type?e.type:0,(0,a.mL)(`${t}`,A));if(R(r)===j&&typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");let i="u">typeof e.senderPublicKey?(0,a.mL)(e.senderPublicKey,N):void 0,u="u">typeof e.iv?(0,a.mL)(e.iv,N):(0,o.randomBytes)(12),s=new n.OK((0,a.mL)(e.symKey,N)).seal(u,(0,a.mL)(e.message,I));return function(e){if(R(e.type)===j){if(typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");return(0,a.BB)((0,a.zo)([e.type,e.senderPublicKey,e.iv,e.sealed]),P)}return(0,a.BB)((0,a.zo)([e.type,e.iv,e.sealed]),P)}({type:r,sealed:s,iv:u,senderPublicKey:i})}function B(e){let t=new n.OK((0,a.mL)(e.symKey,N)),{sealed:r,iv:i}=$(e.encoded),o=t.open(i,r);if(null===o)throw Error("Failed to decrypt");return(0,a.BB)(o,I)}function $(e){let t=(0,a.mL)(e,P),r=t.slice(0,1);if(R(r)===j){let e=t.slice(1,33),n=t.slice(33,45),i=t.slice(45);return{type:r,sealed:i,iv:n,senderPublicKey:e}}let n=t.slice(1,13),i=t.slice(13);return{type:r,sealed:i,iv:n}}function W(e,t){let r=$(e);return K({type:R(r.type),senderPublicKey:"u">typeof r.senderPublicKey?(0,a.BB)(r.senderPublicKey,N):void 0,receiverPublicKey:t?.receiverPublicKey})}function K(e){let t=e?.type||0;if(t===j){if(typeof e?.senderPublicKey>"u")throw Error("missing sender public key");if(typeof e?.receiverPublicKey>"u")throw Error("missing receiver public key")}return{type:t,senderPublicKey:e?.senderPublicKey,receiverPublicKey:e?.receiverPublicKey}}function H(e){return e.type===j&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}var V=Object.defineProperty,z=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,G=(e,t,r)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t)=>{for(var r in t||(t={}))q.call(t,r)&&G(e,r,t[r]);if(z)for(var r of z(t))Y.call(t,r)&&G(e,r,t[r]);return e};let Q={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};function J(){return"u">typeof O&&"u">typeof O.versions&&"u">typeof O.versions.node}function Z(){return!(0,v.getDocument)()&&!!(0,v.getNavigator)()&&"ReactNative"===navigator.product}function ee(){return!J()&&!!(0,v.getNavigator)()}function et(){return Z()?Q.reactNative:J()?Q.node:ee()?Q.browser:Q.unknown}function er(){return(0,E.D)()||{name:"",description:"",url:"",icons:[""]}}function en({protocol:e,version:t,relayUrl:n,sdkVersion:i,auth:o,projectId:u,useOnCloseEvent:s}){var a;let l;let f=n.split("?"),d=function(e,t,n){let i=function(){var e;if(et()===Q.reactNative&&"u">typeof r.g&&"u">typeof(null==r.g?void 0:r.g.Platform)){let{OS:e,Version:t}=r.g.Platform;return[e,t].join("-")}let t=e?_(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new b:"undefined"!=typeof navigator?_(navigator.userAgent):void 0!==c&&c.version?new h(c.version.slice(1)):null;if(null===t)return"unknown";let n=t.os?t.os.replace(" ","").toLowerCase():"unknown";return"browser"===t.type?[n,t.name,t.version].join("-"):[n,t.version].join("-")}(),o=function(){var e;let t=et();return t===Q.browser?[t,(null==(e=(0,v.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),["js",n].join("-"),i,o].join("/")}(e,t,i),p=(a=f[1]||"",l=X(X({},l=w.parse(a)),{auth:o,ua:d,projectId:u,useOnCloseEvent:s||void 0}),a=w.stringify(l));return f[0]+"?"+p}function ei(e,t){return e.filter(e=>t.includes(e)).length===e.length}function eo(e){return Object.fromEntries(e.entries())}function eu(e){return new Map(Object.entries(e))}function es(e=m.FIVE_MINUTES,t){let r,n,i;let o=(0,m.toMiliseconds)(e||m.FIVE_MINUTES);return{resolve:e=>{i&&r&&(clearTimeout(i),r(e))},reject:e=>{i&&n&&(clearTimeout(i),n(e))},done:()=>new Promise((e,u)=>{i=setTimeout(()=>{u(Error(t))},o),r=e,n=u})}}function ea(e,t,r){return new Promise(async(n,i)=>{let o=setTimeout(()=>i(Error(r)),t);try{let t=await e;n(t)}catch(e){i(e)}clearTimeout(o)})}function ec(e,t){if("string"==typeof t&&t.startsWith(`${e}:`))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}if("id"===e.toLowerCase()){if("number"!=typeof t)throw Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw Error(`Unknown expirer target type: ${e}`)}function el(e){return ec("topic",e)}function ef(e){return ec("id",e)}function eh(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof r)n.topic=r;else if("id"===t&&Number.isInteger(Number(r)))n.id=Number(r);else throw Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function ed(e,t){return(0,m.fromMiliseconds)((t||Date.now())+(0,m.toMiliseconds)(e))}function ep(e){return Date.now()>=(0,m.toMiliseconds)(e)}function eb(e,t){return`${e}${t?`:${t}`:""}`}function ey(e=[],t=[]){return[...new Set([...e,...t])]}async function eD({id:e,topic:t,wcDeepLink:n}){try{if(!n)return;let i="string"==typeof n?JSON.parse(n):n,o=i?.href;if("string"!=typeof o)return;o.endsWith("/")&&(o=o.slice(0,-1));let u=`${o}/wc?requestId=${e}&sessionTopic=${t}`,s=et();s===Q.browser?u.startsWith("https://")?window.open(u,"_blank","noreferrer noopener"):window.open(u,"_self","noreferrer noopener"):s===Q.reactNative&&"u">typeof(null==r.g?void 0:r.g.Linking)&&await r.g.Linking.openURL(u)}catch(e){console.error(e)}}function eg(e){return e?.relay||{protocol:"irn"}}function e_(e){let t=S[e];if(typeof t>"u")throw Error(`Relay Protocol not supported: ${e}`);return t}var em=Object.defineProperty,ev=Object.getOwnPropertySymbols,eE=Object.prototype.hasOwnProperty,ew=Object.prototype.propertyIsEnumerable,eS=(e,t,r)=>t in e?em(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eO=(e,t)=>{for(var r in t||(t={}))eE.call(t,r)&&eS(e,r,t[r]);if(ev)for(var r of ev(t))ew.call(t,r)&&eS(e,r,t[r]);return e};function eC(e){var t;let r=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,i=e.substring(0,r),o=e.substring(r+1,n).split("@"),u="u">typeof n?e.substring(n):"",s=w.parse(u);return{protocol:i,topic:(t=o[0]).startsWith("//")?t.substring(2):t,version:parseInt(o[1],10),symKey:s.symKey,relay:function(e,t="-"){let r={},n="relay"+t;return Object.keys(e).forEach(t=>{if(t.startsWith(n)){let i=t.replace(n,""),o=e[t];r[i]=o}}),r}(s)}}function eU(e){return`${e.protocol}:${e.topic}@${e.version}?`+w.stringify(eO({symKey:e.symKey},function(e,t="-"){let r={};return Object.keys(e).forEach(n=>{e[n]&&(r["relay"+t+n]=e[n])}),r}(e.relay)))}var eA=Object.defineProperty,eN=Object.defineProperties,eP=Object.getOwnPropertyDescriptors,eI=Object.getOwnPropertySymbols,ej=Object.prototype.hasOwnProperty,eT=Object.prototype.propertyIsEnumerable,eM=(e,t,r)=>t in e?eA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ex=(e,t)=>{for(var r in t||(t={}))ej.call(t,r)&&eM(e,r,t[r]);if(eI)for(var r of eI(t))eT.call(t,r)&&eM(e,r,t[r]);return e},eL=(e,t)=>eN(e,eP(t));function ek(e){let t=[];return e.forEach(e=>{let[r,n]=e.split(":");t.push(`${r}:${n}`)}),t}function eR(e,t){let r=e6(e,t);if(r)throw Error(r.message);let n={};for(let[t,r]of Object.entries(e))n[t]={methods:r.methods,events:r.events,chains:r.accounts.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)};return n}function eF(e){return e.includes(":")}function eB(e){return eF(e)?e.split(":")[0]:e}function e$(e){var t,r,n;let i={};if(!eq(e))return i;for(let[o,u]of Object.entries(e)){let e=eF(o)?[o]:u.chains,s=u.methods||[],a=u.events||[],c=eB(o);i[c]=eL(ex({},i[c]),{chains:ey(e,null==(t=i[c])?void 0:t.chains),methods:ey(s,null==(r=i[c])?void 0:r.methods),events:ey(a,null==(n=i[c])?void 0:n.events)})}return i}let eW={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},eK={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function eH(e,t){let{message:r,code:n}=eK[e];return{message:t?`${r} ${t}`:r,code:n}}function eV(e,t){let{message:r,code:n}=eW[e];return{message:t?`${r} ${t}`:r,code:n}}function ez(e,t){return!!Array.isArray(e)&&(!("u">typeof t)||!e.length||e.every(t))}function eq(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function eY(e){return typeof e>"u"}function eG(e,t){return!!(t&&eY(e))||"string"==typeof e&&!!e.trim().length}function eX(e,t){return!!(t&&eY(e))||"number"==typeof e&&!isNaN(e)}function eQ(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),i=Object.keys(r),o=!0;return!!ei(i,n)&&(n.forEach(t=>{let{accounts:n,methods:i,events:u}=e.namespaces[t],s=ek(n),a=r[t];ei(U(t,a),s)&&ei(a.methods,i)&&ei(a.events,u)||(o=!1)}),o)}function eJ(e){return!!(eG(e,!1)&&e.includes(":"))&&2===e.split(":").length}function eZ(e){if(eG(e,!1))try{return"u">typeof new URL(e)}catch{}return!1}function e0(e){var t;return null==(t=e?.proposer)?void 0:t.publicKey}function e1(e){return e?.topic}function e3(e,t){let r=null;return eG(e?.publicKey,!1)||(r=eH("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function e8(e){let t=!0;return ez(e)?e.length&&(t=e.every(e=>eG(e,!1))):t=!1,t}function e5(e,t){let r=null;return Object.values(e).forEach(e=>{var n;let i;if(r)return;let o=(n=`${t}, namespace`,i=null,e8(e?.methods)?e8(e?.events)||(i=eV("UNSUPPORTED_EVENTS",`${n}, events should be an array of strings or empty array for no events`)):i=eV("UNSUPPORTED_METHODS",`${n}, methods should be an array of strings or empty array for no methods`),i);o&&(r=o)}),r}function e2(e,t,r){let n=null;if(e&&eq(e)){let i;let o=e5(e,t);o&&(n=o);let u=(i=null,Object.entries(e).forEach(([e,n])=>{var o,u;let s;if(i)return;let a=(o=U(e,n),u=`${t} ${r}`,s=null,ez(o)&&o.length?o.forEach(e=>{s||eJ(e)||(s=eV("UNSUPPORTED_CHAINS",`${u}, chain ${e} should be a string and conform to "namespace:chainId" format`))}):eJ(e)||(s=eV("UNSUPPORTED_CHAINS",`${u}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),s);a&&(i=a)}),i);u&&(n=u)}else n=eH("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return n}function e6(e,t){let r=null;if(e&&eq(e)){let n;let i=e5(e,t);i&&(r=i);let o=(n=null,Object.values(e).forEach(e=>{var r,i;let o;if(n)return;let u=(r=e?.accounts,i=`${t} namespace`,o=null,ez(r)?r.forEach(e=>{o||function(e){if(eG(e,!1)&&e.includes(":")){let t=e.split(":");if(3===t.length){let e=t[0]+":"+t[1];return!!t[2]&&eJ(e)}}return!1}(e)||(o=eV("UNSUPPORTED_ACCOUNTS",`${i}, account ${e} should be a string and conform to "namespace:chainId:address" format`))}):o=eV("UNSUPPORTED_ACCOUNTS",`${i}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),o);u&&(n=u)}),n);o&&(r=o)}else r=eH("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function e4(e){return eG(e.protocol,!0)}function e9(e,t){let r=!1;return t&&!e?r=!0:e&&ez(e)&&e.length&&e.forEach(e=>{r=e4(e)}),r}function e7(e){return"number"==typeof e}function te(e){return"u">typeof e}function tt(e){return!(!e||"object"!=typeof e||!e.code||!eX(e.code,!1)||!e.message||!eG(e.message,!1))}function tr(e){return!(eY(e)||!eG(e.method,!1))}function tn(e){return!(eY(e)||eY(e.result)&&eY(e.error)||!eX(e.id,!1)||!eG(e.jsonrpc,!1))}function ti(e){return!(eY(e)||!eG(e.name,!1))}function to(e,t){return!(!eJ(t)||!(function(e){let t=[];return Object.values(e).forEach(e=>{t.push(...ek(e.accounts))}),t})(e).includes(t))}function tu(e,t,r){return!!eG(r,!1)&&(function(e,t){let r=[];return Object.values(e).forEach(e=>{ek(e.accounts).includes(t)&&r.push(...e.methods)}),r})(e,t).includes(r)}function ts(e,t,r){return!!eG(r,!1)&&(function(e,t){let r=[];return Object.values(e).forEach(e=>{ek(e.accounts).includes(t)&&r.push(...e.events)}),r})(e,t).includes(r)}function ta(e,t,r){let n=null,i=function(e){let t={};return Object.keys(e).forEach(r=>{var n;r.includes(":")?t[r]=e[r]:null==(n=e[r].chains)||n.forEach(n=>{t[n]={methods:e[r].methods,events:e[r].events}})}),t}(e),o=function(e){let t={};return Object.keys(e).forEach(r=>{if(r.includes(":"))t[r]=e[r];else{let n=ek(e[r].accounts);n?.forEach(n=>{t[n]={accounts:e[r].accounts.filter(e=>e.includes(`${n}:`)),methods:e[r].methods,events:e[r].events}})}}),t}(t),u=Object.keys(i),s=Object.keys(o),a=tc(Object.keys(e)),c=tc(Object.keys(t)),l=a.filter(e=>!c.includes(e));return l.length&&(n=eH("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces.
      Required: ${l.toString()}
      Received: ${Object.keys(t).toString()}`)),ei(u,s)||(n=eH("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces.
      Required: ${u.toString()}
      Approved: ${s.toString()}`)),Object.keys(t).forEach(e=>{if(!e.includes(":")||n)return;let i=ek(t[e].accounts);i.includes(e)||(n=eH("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace accounts for ${e}
        Required: ${e}
        Approved: ${i.toString()}`))}),u.forEach(e=>{n||(ei(i[e].methods,o[e].methods)?ei(i[e].events,o[e].events)||(n=eH("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${e}`)):n=eH("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${e}`))}),n}function tc(e){return[...new Set(e.map(e=>e.includes(":")?e.split(":")[0]:e))]}function tl(e,t){return eX(e,!1)&&e<=t.max&&e>=t.min}},3564:function(e,t,r){"use strict";let n=r(7948),i=r(1001),o=r(6194),u=r(3452),s=e=>null==e,a=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function f(e,t){return t.decode?i(e):e}function h(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function d(e){e=h(e);let t=e.indexOf("?");return -1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function b(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case"bracket":return(e,r,n)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"colon-list-separator":return(e,r,n)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"comma":case"separator":return(t,r,n)=>{let i="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!i&&f(r,e).includes(e.arrayFormatSeparator);r=o?f(r,e):r;let u=i||o?r.split(e.arrayFormatSeparator).map(t=>f(t,e)):null===r?r:f(r,e);n[t]=u};case"bracket-separator":return(t,r,n)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){n[t]=r?f(r,e):r;return}let o=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>f(t,e));if(void 0===n[t]){n[t]=o;return}n[t]=[].concat(n[t],o)};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[].concat(r[e],t)}}}(t),n=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return n;for(let i of e.split("&")){if(""===i)continue;let[e,u]=o(t.decode?i.replace(/\+/g," "):i,"=");u=void 0===u?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?u:f(u,t),r(f(e,t),u,n)}for(let e of Object.keys(n)){let r=n[e];if("object"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=p(r[e],t);else n[e]=p(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return r&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=d,t.parse=b,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let r=r=>t.skipNull&&s(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[",i,"]"].join("")]:[...r,[l(t,e),"[",l(i,e),"]=",l(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[]"].join("")]:[...r,[l(t,e),"[]=",l(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),":list="].join("")]:[...r,[l(t,e),":list=",l(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length)?[[l(r,e),t,l(i,e)].join("")]:[[n,l(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,l(t,e)]:[...r,[l(t,e),"=",l(n,e)].join("")]}}(t),i={};for(let t of Object.keys(e))r(t)||(i[t]=e[t]);let o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(r=>{let i=e[r];return void 0===i?"":null===i?l(r,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?l(r,t)+"[]":i.reduce(n(r),[]).join("&"):l(r,t)+"="+l(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:b(d(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:f(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);let n=h(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),u=Object.assign(o,e.query),s=t.stringify(u,r);s&&(s=`?${s}`);let c=function(e){let t="",r=e.indexOf("#");return -1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(c=`#${r[a]?l(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${s}${c}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[a]:!1},n);let{url:i,query:o,fragmentIdentifier:s}=t.parseUrl(e,n);return t.stringifyUrl({url:i,query:u(o,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{let i=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,i,n)}},224:function(e,t){"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function n(e){let t=r(e);if(!t)throw Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=n,t.getDocumentOrThrow=function(){return n("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return n("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return n("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return n("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return n("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},5261:function(e,t,r){"use strict";t.D=void 0;let n=r(224);t.D=function(){let e,t,r;try{e=n.getDocumentOrThrow(),t=n.getLocationOrThrow()}catch(e){return null}function i(...t){let r=e.getElementsByTagName("meta");for(let e=0;e<r.length;e++){let n=r[e],i=["itemprop","property","name"].map(e=>n.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(i.length&&i){let e=n.getAttribute("content");if(e)return e}}return""}let o=((r=i("name","og:site_name","og:title","twitter:title"))||(r=e.title),r),u=function(){let e=i("description","og:description","twitter:description","keywords");return e}(),s=t.origin,a=function(){let r=e.getElementsByTagName("link"),n=[];for(let e=0;e<r.length;e++){let i=r[e],o=i.getAttribute("rel");if(o&&o.toLowerCase().indexOf("icon")>-1){let e=i.getAttribute("href");if(e){if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=t.protocol+"//"+t.host;if(0===e.indexOf("/"))r+=e;else{let n=t.pathname.split("/");n.pop();let i=n.join("/");r+=i+"/"+e}n.push(r)}else if(0===e.indexOf("//")){let r=t.protocol+e;n.push(r)}else n.push(e)}}}return n}();return{description:u,url:s,icons:a,name:o}}},1001:function(e){"use strict";var t="%[a-f0-9]{2}",r=RegExp("("+t+")|([^%]+?)","gi"),n=RegExp("("+t+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},i=n.exec(e);i;){try{t[i[0]]=decodeURIComponent(i[0])}catch(e){var o=function(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=(function e(t,r){try{return[decodeURIComponent(t.join(""))]}catch(e){}if(1===t.length)return t;r=r||1;var n=t.slice(0,r),i=t.slice(r);return Array.prototype.concat.call([],e(n),e(i))})(t,n).join("")).match(r)||[];return e}}(i[0]);o!==i[0]&&(t[i[0]]=o)}i=n.exec(e)}t["%C2"]="�";for(var u=Object.keys(t),s=0;s<u.length;s++){var a=u[s];e=e.replace(RegExp(a,"g"),t[a])}return e}(e)}}},3452:function(e){"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var u=n[o],s=e[u];(i?-1!==t.indexOf(u):t(u,s,e))&&(r[u]=s)}return r}},6961:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(7052);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5529:function(e,t){"use strict";function r(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3043:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return i}});let n=r(6277);function i(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8920:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let n=r(6927),i=n._(r(6006)),o=r(2888),u=r(6822),s=r(1448),a=r(2287),c=r(6961),l=r(409),f=r(6406),h=r(922),d=r(5529),p=r(2035),b=r(2003),y=new Set;function D(e,t,r,n,i,o){if(!o&&!(0,u.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let i=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,o=t+"%"+r+"%"+i;if(y.has(o))return;y.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,r,n);Promise.resolve(s).catch(e=>{})}function g(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let _=i.default.forwardRef(function(e,t){let r,n;let{href:s,as:y,children:_,prefetch:m=null,passHref:v,replace:E,shallow:w,scroll:S,locale:O,onClick:C,onMouseEnter:U,onTouchStart:A,legacyBehavior:N=!1,...P}=e;r=_,N&&("string"==typeof r||"number"==typeof r)&&(r=i.default.createElement("a",null,r));let I=!1!==m,j=null===m?b.PrefetchKind.AUTO:b.PrefetchKind.FULL,T=i.default.useContext(l.RouterContext),M=i.default.useContext(f.AppRouterContext),x=null!=T?T:M,L=!T,{href:k,as:R}=i.default.useMemo(()=>{if(!T){let e=g(s);return{href:e,as:y?g(y):e}}let[e,t]=(0,o.resolveHref)(T,s,!0);return{href:e,as:y?(0,o.resolveHref)(T,y):t||e}},[T,s,y]),F=i.default.useRef(k),B=i.default.useRef(R);N&&(n=i.default.Children.only(r));let $=N?n&&"object"==typeof n&&n.ref:t,[W,K,H]=(0,h.useIntersection)({rootMargin:"200px"}),V=i.default.useCallback(e=>{(B.current!==R||F.current!==k)&&(H(),B.current=R,F.current=k),W(e),$&&("function"==typeof $?$(e):"object"==typeof $&&($.current=e))},[R,$,k,H,W]);i.default.useEffect(()=>{x&&K&&I&&D(x,k,R,{locale:O},{kind:j},L)},[R,k,K,O,I,null==T?void 0:T.locale,x,L,j]);let z={ref:V,onClick(e){N||"function"!=typeof C||C(e),N&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),x&&!e.defaultPrevented&&function(e,t,r,n,o,s,a,c,l,f){let{nodeName:h}=e.currentTarget,d="A"===h.toUpperCase();if(d&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!l&&!(0,u.isLocalURL)(r)))return;e.preventDefault();let p=()=>{"beforePopState"in t?t[o?"replace":"push"](r,n,{shallow:s,locale:c,scroll:a}):t[o?"replace":"push"](n||r,{forceOptimisticNavigation:!f})};l?i.default.startTransition(p):p()}(e,x,k,R,E,w,S,O,L,I)},onMouseEnter(e){N||"function"!=typeof U||U(e),N&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),x&&(I||!L)&&D(x,k,R,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)},onTouchStart(e){N||"function"!=typeof A||A(e),N&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),x&&(I||!L)&&D(x,k,R,{locale:O,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)}};if((0,a.isAbsoluteUrl)(R))z.href=R;else if(!N||v||"a"===n.type&&!("href"in n.props)){let e=void 0!==O?O:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,d.getDomainLocale)(R,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);z.href=t||(0,p.addBasePath)((0,c.addLocale)(R,e,null==T?void 0:T.defaultLocale))}return N?i.default.cloneElement(n,z):i.default.createElement("a",{...P,...z},r)}),m=_;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1722:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},922:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return a}});let n=r(6006),i=r(1722),o="function"==typeof IntersectionObserver,u=new Map,s=[];function a(e){let{rootRef:t,rootMargin:r,disabled:a}=e,c=a||!o,[l,f]=(0,n.useState)(!1),h=(0,n.useRef)(null),d=(0,n.useCallback)(e=>{h.current=e},[]);(0,n.useEffect)(()=>{if(o){if(c||l)return;let e=h.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=u.get(n)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:o,elements:i},s.push(r),u.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),u.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!l){let e=(0,i.requestIdleCallback)(()=>f(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,r,t,l,h.current]);let p=(0,n.useCallback)(()=>{f(!1)},[]);return[d,l,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3895:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function i(e){return r.test(e)?e.replace(n,"\\$&"):e}},409:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return o}});let n=r(6927),i=n._(r(6006)),o=i.default.createContext(null)},1448:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return u},urlObjectKeys:function(){return s},formatWithValidation:function(){return a}});let n=r(5909),i=n._(r(2786)),o=/https?|ftp|gopher|file/;function u(e){let{auth:t,hostname:r}=e,n=e.protocol||"",u=e.pathname||"",s=e.hash||"",a=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(c+=":"+e.port)),a&&"object"==typeof a&&(a=String(i.urlQueryToSearchParams(a)));let l=e.search||a&&"?"+a||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==c?(c="//"+(c||""),u&&"/"!==u[0]&&(u="/"+u)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),l&&"?"!==l[0]&&(l="?"+l),""+n+c+(u=u.replace(/[?#]/g,encodeURIComponent))+(l=l.replace("#","%23"))+s}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return u(e)}},781:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return o}});let n=r(3694),i=r(3980);function o(e,t,r){let o="",u=(0,i.getRouteRegex)(e),s=u.groups,a=(t!==e?(0,n.getRouteMatcher)(u)(t):"")||r;o=e;let c=Object.keys(s);return c.every(e=>{let t=a[e]||"",{repeat:r,optional:n}=s[e],i="["+(r?"...":"")+e+"]";return n&&(i=(t?"":"/")+"["+i+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in a)&&(o=o.replace(i,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:c,result:o}}},1218:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});let r=/\/\[[^/]+?\](?=\/|$)/;function n(e){return r.test(e)}},6822:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=r(2287),i=r(3043);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},736:function(e,t){"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},6277:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return i}});let n=r(9854);function i(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},2786:function(e,t){"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,i]=e;Array.isArray(i)?i.forEach(e=>t.append(r,n(e))):t.set(r,n(i))}),t}function o(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return i},assign:function(){return o}})},2888:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let n=r(2786),i=r(1448),o=r(736),u=r(2287),s=r(7052),a=r(6822),c=r(1218),l=r(781);function f(e,t,r){let f;let h="string"==typeof t?t:(0,i.formatWithValidation)(t),d=h.match(/^[a-zA-Z]{1,}:\/\//),p=d?h.slice(d[0].length):h,b=p.split("?");if((b[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+h+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,u.normalizeRepeatedSlashes)(p);h=(d?d[0]:"")+t}if(!(0,a.isLocalURL)(h))return r?[h]:h;try{f=new URL(h.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(h,f);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:u,params:s}=(0,l.interpolateAs)(e.pathname,e.pathname,r);u&&(t=(0,i.formatWithValidation)({pathname:u,hash:e.hash,query:(0,o.omit)(r,s)}))}let u=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[u,t||u]:u}catch(e){return r?[h]:h}}},3694:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return i}});let n=r(2287);function i(e){let{re:t,groups:r}=e;return e=>{let i=t.exec(e);if(!i)return!1;let o=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},u={};return Object.keys(r).forEach(e=>{let t=r[e],n=i[t.pos];void 0!==n&&(u[e]=~n.indexOf("/")?n.split("/").map(e=>o(e)):t.repeat?[o(n)]:o(n))}),u}}},3980:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRouteRegex:function(){return a},getNamedRouteRegex:function(){return l},getNamedMiddlewareRegex:function(){return f}});let n=r(3895),i=r(694),o="nxtP";function u(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function s(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),r={},o=1;return{parameterizedRoute:t.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:t,optional:n,repeat:i}=u(e.slice(1,-1));return r[t]={pos:o++,repeat:i,optional:n},i?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function a(e){let{parameterizedRoute:t,groups:r}=s(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function c(e,t){let r,s;let a=(0,i.removeTrailingSlash)(e).slice(1).split("/"),c=(r=97,s=1,()=>{let e="";for(let t=0;t<s;t++)e+=String.fromCharCode(r),++r>122&&(s++,r=97);return e}),l={};return{namedParameterizedRoute:a.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:r,optional:n,repeat:i}=u(e.slice(1,-1)),s=r.replace(/\W/g,"");t&&(s=""+o+s);let a=!1;return(0===s.length||s.length>30)&&(a=!0),isNaN(parseInt(s.slice(0,1)))||(a=!0),a&&(s=c()),t?l[s]=""+o+r:l[s]=""+r,i?n?"(?:/(?<"+s+">.+?))?":"/(?<"+s+">.+?)":"/(?<"+s+">[^/]+?)"}}).join(""),routeKeys:l}}function l(e,t){let r=c(e,t);return{...a(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function f(e,t){let{parameterizedRoute:r}=s(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:i}=c(e,!1);return{namedRegex:"^"+i+(n?"(?:(/.*)?)":"")+"$"}}},2287:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return o},getLocationOrigin:function(){return u},getURL:function(){return s},getDisplayName:function(){return a},isResSent:function(){return c},normalizeRepeatedSlashes:function(){return l},loadGetInitialProps:function(){return f},SP:function(){return h},ST:function(){return d},DecodeError:function(){return p},NormalizeError:function(){return b},PageNotFoundError:function(){return y},MissingStaticPage:function(){return D},MiddlewareNotFoundError:function(){return g}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return r||(r=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function s(){let{href:e}=window.location,t=u();return e.substring(t.length)}function a(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function l(e){let t=e.split("?"),r=t[0];return r.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&c(r))return n;if(!n){let t='"'+a(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.';throw Error(t)}return n}let h="undefined"!=typeof performance,d=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class D extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class g extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}},7353:function(){},3413:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_4bd87c', '__IBM_Plex_Mono_Fallback_4bd87c'",fontStyle:"normal"},className:"__className_4bd87c",variable:"__variable_4bd87c"}},4495:function(e){e.exports={style:{fontFamily:"'__Orbitron_19584c', '__Orbitron_Fallback_19584c'",fontStyle:"normal"},className:"__className_19584c",variable:"__variable_19584c"}},5846:function(e,t,r){e.exports=r(8920)},6008:function(e,t,r){e.exports=r(3027)},6194:function(e){"use strict";e.exports=(e,t)=>{if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];let r=e.indexOf(t);return -1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},7948:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},4717:function(e,t,r){"use strict";r.d(t,{J0:function(){return L},gu:function(){return R},X:function(){return k}});var n,i,o,u,s,a,c,l,f,h,d,p,b,y,D,g,_,m,v,E,w=r(3425),S=r(4699),O=r(8748),C=r(6332),U=r(7977),A=r(2666),N=r(4888),P=r(9879),I=r(8676),j="eip155",T="requestedChains",M="wallet_addEthereumChain",x=class extends O.wR{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),(0,O.Ko)(this,o),(0,O.Ko)(this,s),(0,O.Ko)(this,c),(0,O.Ko)(this,f),(0,O.Ko)(this,d),(0,O.Ko)(this,b),(0,O.Ko)(this,D),(0,O.Ko)(this,_),(0,O.Ko)(this,v),(0,O.ov)(this,"id","walletConnect"),(0,O.ov)(this,"name","WalletConnect"),(0,O.ov)(this,"ready",!0),(0,O.Ko)(this,n,void 0),(0,O.Ko)(this,i,void 0),(0,O.ov)(this,"onAccountsChanged",e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,U.K)(e[0])})}),(0,O.ov)(this,"onChainChanged",e=>{let t=Number(e),r=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:r}})}),(0,O.ov)(this,"onDisconnect",()=>{(0,O.U9)(this,b,y).call(this,[]),this.emit("disconnect")}),(0,O.ov)(this,"onDisplayUri",e=>{this.emit("message",{type:"display_uri",data:e})}),(0,O.ov)(this,"onConnect",()=>{this.emit("connect",{})}),(0,O.U9)(this,o,u).call(this)}async connect({chainId:e,pairingTopic:t}={}){try{let r=e;if(!r){let e=this.storage?.getItem("store"),t=e?.state?.data?.chain?.id;r=t&&!this.isChainUnsupported(t)?t:this.chains[0]?.id}if(!r)throw Error("No chains found on connector.");let n=await this.getProvider();(0,O.U9)(this,f,h).call(this);let i=(0,O.U9)(this,c,l).call(this);if(n.session&&i&&await n.disconnect(),!n.session||i){let e=this.chains.filter(e=>e.id!==r).map(e=>e.id);this.emit("message",{type:"connecting"}),await n.connect({pairingTopic:t,chains:[r],optionalChains:e.length?e:void 0}),(0,O.U9)(this,b,y).call(this,this.chains.map(({id:e})=>e))}let o=await n.enable(),u=(0,U.K)(o[0]),s=await this.getChainId(),a=this.isChainUnsupported(s);return{account:u,chain:{id:s,unsupported:a}}}catch(e){if(/user rejected/i.test(e?.message))throw new A.ab(e);throw e}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{(0,O.U9)(this,d,p).call(this),(0,O.U9)(this,b,y).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();return(0,U.K)(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider({chainId:e}={}){return(0,O.ac)(this,n)||await (0,O.U9)(this,o,u).call(this),e&&await this.switchChain(e),(0,O.ac)(this,n)}async getWalletClient({chainId:e}={}){let[t,r]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),n=this.chains.find(t=>t.id===e);if(!t)throw Error("provider is required.");return(0,N.K)({account:r,chain:n,transport:(0,P.P)(t)})}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),r=(0,O.U9)(this,c,l).call(this);if(!e)return!1;if(r&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){let t=this.chains.find(t=>t.id===e);if(!t)throw new A.x3(Error("chain not found on connector."));try{let r=await this.getProvider(),n=(0,O.U9)(this,_,m).call(this),i=(0,O.U9)(this,v,E).call(this),o=n.includes(e);if(!o&&i.includes(M)){await r.request({method:M,params:[{chainId:(0,I.eC)(t.id),blockExplorerUrls:[t.blockExplorers?.default?.url],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpcUrls.default.http]}]});let n=(0,O.U9)(this,D,g).call(this);n.push(e),(0,O.U9)(this,b,y).call(this,n)}return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,I.eC)(e)}]}),t}catch(t){let e="string"==typeof t?t:t?.message;if(/user rejected request/i.test(e))throw new A.ab(t);throw new A.x3(t)}}};n=new WeakMap,i=new WeakMap,o=new WeakSet,u=async function(){return(0,O.ac)(this,i)||"undefined"==typeof window||(0,O.qx)(this,i,(0,O.U9)(this,s,a).call(this)),(0,O.ac)(this,i)},s=new WeakSet,a=async function(){let{EthereumProvider:e,OPTIONAL_EVENTS:t,OPTIONAL_METHODS:i}=await r.e(557).then(r.bind(r,3557)),[o,...u]=this.chains.map(({id:e})=>e);if(o){let{projectId:r,showQrModal:s=!0,qrModalOptions:a,metadata:c,relayUrl:l}=this.options;(0,O.qx)(this,n,await e.init({showQrModal:s,qrModalOptions:a,projectId:r,optionalMethods:i,optionalEvents:t,chains:[o],optionalChains:u.length?u:void 0,rpcMap:Object.fromEntries(this.chains.map(e=>[e.id,e.rpcUrls.default.http[0]])),metadata:c,relayUrl:l}))}},c=new WeakSet,l=function(){let e=(0,O.U9)(this,v,E).call(this);if(e.includes(M)||!this.options.isNewChainsStale)return!1;let t=(0,O.U9)(this,D,g).call(this),r=this.chains.map(({id:e})=>e),n=(0,O.U9)(this,_,m).call(this);return(!n.length||!!n.some(e=>r.includes(e)))&&!r.every(e=>t.includes(e))},f=new WeakSet,h=function(){(0,O.ac)(this,n)&&((0,O.U9)(this,d,p).call(this),(0,O.ac)(this,n).on("accountsChanged",this.onAccountsChanged),(0,O.ac)(this,n).on("chainChanged",this.onChainChanged),(0,O.ac)(this,n).on("disconnect",this.onDisconnect),(0,O.ac)(this,n).on("session_delete",this.onDisconnect),(0,O.ac)(this,n).on("display_uri",this.onDisplayUri),(0,O.ac)(this,n).on("connect",this.onConnect))},d=new WeakSet,p=function(){(0,O.ac)(this,n)&&((0,O.ac)(this,n).removeListener("accountsChanged",this.onAccountsChanged),(0,O.ac)(this,n).removeListener("chainChanged",this.onChainChanged),(0,O.ac)(this,n).removeListener("disconnect",this.onDisconnect),(0,O.ac)(this,n).removeListener("session_delete",this.onDisconnect),(0,O.ac)(this,n).removeListener("display_uri",this.onDisplayUri),(0,O.ac)(this,n).removeListener("connect",this.onConnect))},b=new WeakSet,y=function(e){this.storage?.setItem(T,e)},D=new WeakSet,g=function(){return this.storage?.getItem(T)??[]},_=new WeakSet,m=function(){if(!(0,O.ac)(this,n))return[];let e=O.ac(this,n).session?.namespaces;if(!e)return[];let t=(0,C.fK)(e),r=t[j]?.chains?.map(e=>parseInt(e.split(":")[1]||""));return r??[]},v=new WeakSet,E=function(){if(!(0,O.ac)(this,n))return[];let e=O.ac(this,n).session?.namespaces;if(!e)return[];let t=(0,C.fK)(e),r=t[j]?.methods;return r??[]};class L{constructor(e,t){this.wagmi={},this.chains=[],this.namespace="eip155",this.disconnect=w.zP,this.getAccount=w.D0,this.watchAccount=w.uH,this.fetchBalance=w.EG,this.getNetwork=w.Hy,this.watchNetwork=w.QC,this.switchNetwork=w.If,this.fetchEnsName=w.Lk,this.fetchEnsAvatar=w.w6,this.wagmi=e,this.chains=t}getWalletConnectConnector(){let e=this.wagmi.connectors.find(e=>"walletConnect"===e.id);if(!e)throw Error("WalletConnectConnector is required");return e}async connectWalletConnectProvider(e,t){return await e.getProvider(),new Promise(r=>{e.once("message",e=>{"display_uri"===e.type&&(t(e.data),r())})})}getConnectorById(e){let t=this.wagmi.connectors.find(t=>t.id===e);if(!t)throw Error(`Connector for id ${e} was not found`);return t}getConnectors(){return this.wagmi.connectors.filter(e=>!e.id.includes("walletConnect"))}async connectWalletConnect(e,t){let r=this.getWalletConnectConnector(),n={connector:r};return t&&(n.chainId=t),Promise.all([(0,w.$j)(n),this.connectWalletConnectProvider(r,e)])}async connectConnector(e,t){let r={connector:this.getConnectorById(e)};return t&&(r.chainId=t),await (0,w.$j)(r)}isInjectedProviderInstalled(){return"u">typeof window.ethereum}safeCheckInjectedProvider(e){var t;try{let r=String(e);return!!(null==(t=window.ethereum)?void 0:t[r])}catch(e){return console.error(e),!1}}async getConnectedChainIds(){var e,t,r;let n=null==(t=null==(e=(await this.getWalletConnectConnector().getProvider()).signer)?void 0:e.session)?void 0:t.namespaces,i=null==(r=n?.[this.namespace])?void 0:r.methods;if(null!=i&&i.includes("wallet_addEthereumChain"))return"ALL";if(n){let e=[];return Object.keys(n).forEach(t=>{t.includes(this.namespace)&&e.push(...n[t].accounts)}),e?.map(e=>e.split(":")[1])}return"ALL"}}function k({projectId:e}){return function({rpc:e}){return function(t){let r=e(t);return r&&""!==r.http?{chain:{...t,rpcUrls:{...t.rpcUrls,default:{http:[r.http]}}},rpcUrls:{http:[r.http],webSocket:r.webSocket?[r.webSocket]:void 0}}:null}}({rpc:t=>{var r;return[1,3,4,5,10,42,56,69,97,100,137,280,324,420,42161,42220,43114,80001,421611,421613,1313161554,1313161555].includes(t.id)?{http:`https://rpc.walletconnect.com/v1/?chainId=eip155:${t.id}&projectId=${e}`}:{http:t.rpcUrls.default.http[0],webSocket:null==(r=t.rpcUrls.default.webSocket)?void 0:r[0]}}})}function R({chains:e,projectId:t}){return[new x({chains:e,options:{projectId:t,showQrModal:!1}}),new S._({chains:e,options:{shimDisconnect:!0}})]}},7204:function(e,t,r){"use strict";r.d(t,{E:function(){return i}});var n=r(9528);function i(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,n.P)(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},649:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(7204),i=r(9528);function o(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let r=(0,n.E)(t),o=0;for(let t of e)r.set(t,o),o+=t.length;return(0,i.P)(r)}},6187:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(103),i=r(9528);function o(e,t="utf8"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?(0,i.P)(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}},9960:function(e,t,r){"use strict";r.d(t,{BB:function(){return o.B},mL:function(){return i.m},zo:function(){return n.z}});var n=r(649),i=r(6187),o=r(5223)},5223:function(e,t,r){"use strict";r.d(t,{B:function(){return i}});var n=r(103);function i(e,t="utf8"){let r=n.Z[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}},9528:function(e,t,r){"use strict";function n(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}r.d(t,{P:function(){return n}})},103:function(e,t,r){"use strict";r.d(t,{Z:function(){return eV}});var n={};r.r(n),r.d(n,{identity:function(){return I}});var i={};r.r(i),r.d(i,{base2:function(){return j}});var o={};r.r(o),r.d(o,{base8:function(){return T}});var u={};r.r(u),r.d(u,{base10:function(){return M}});var s={};r.r(s),r.d(s,{base16:function(){return x},base16upper:function(){return L}});var a={};r.r(a),r.d(a,{base32:function(){return k},base32hex:function(){return $},base32hexpad:function(){return K},base32hexpadupper:function(){return H},base32hexupper:function(){return W},base32pad:function(){return F},base32padupper:function(){return B},base32upper:function(){return R},base32z:function(){return V}});var c={};r.r(c),r.d(c,{base36:function(){return z},base36upper:function(){return q}});var l={};r.r(l),r.d(l,{base58btc:function(){return Y},base58flickr:function(){return G}});var f={};r.r(f),r.d(f,{base64:function(){return X},base64pad:function(){return Q},base64url:function(){return J},base64urlpad:function(){return Z}});var h={};r.r(h),r.d(h,{base256emoji:function(){return en}});var d={};r.r(d),r.d(d,{sha256:function(){return ep},sha512:function(){return eb}});var p={};r.r(p),r.d(p,{identity:function(){return ey}});var b={};r.r(b),r.d(b,{code:function(){return eg},decode:function(){return em},encode:function(){return e_},name:function(){return eD}});var y={};r.r(y),r.d(y,{code:function(){return eS},decode:function(){return eC},encode:function(){return eO},name:function(){return ew}});var D=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),u=o.charCodeAt(0);if(255!==r[u])throw TypeError(o+" is ambiguous");r[u]=i}var s=e.length,a=e.charAt(0),c=Math.log(s)/Math.log(256),l=Math.log(256)/Math.log(s);function f(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var n=0,i=0;e[t]===a;)n++,t++;for(var o=(e.length-t)*c+1>>>0,u=new Uint8Array(o);e[t];){var l=r[e.charCodeAt(t)];if(255===l)return;for(var f=0,h=o-1;(0!==l||f<i)&&-1!==h;h--,f++)l+=s*u[h]>>>0,u[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw Error("Non-zero carry");i=f,t++}if(" "!==e[t]){for(var d=o-i;d!==o&&0===u[d];)d++;for(var p=new Uint8Array(n+(o-d)),b=n;d!==o;)p[b++]=u[d++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var u=(o-i)*l+1>>>0,c=new Uint8Array(u);i!==o;){for(var f=t[i],h=0,d=u-1;(0!==f||h<n)&&-1!==d;d--,h++)f+=256*c[d]>>>0,c[d]=f%s>>>0,f=f/s>>>0;if(0!==f)throw Error("Non-zero carry");n=h,i++}for(var p=u-n;p!==u&&0===c[p];)p++;for(var b=a.repeat(r);p<u;++p)b+=e.charAt(c[p]);return b},decodeUnsafe:f,decode:function(e){var r=f(e);if(r)return r;throw Error(`Non-${t} character`)}}};new Uint8Array(0);let g=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},_=e=>new TextEncoder().encode(e),m=e=>new TextDecoder().decode(e);class v{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class E{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return S(this,e)}}class w{constructor(e){this.decoders=e}or(e){return S(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let S=(e,t)=>new w({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class O{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new v(e,t,r),this.decoder=new E(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let C=({name:e,prefix:t,encode:r,decode:n})=>new O(e,t,r,n),U=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=D(r,t);return C({prefix:e,name:t,encode:n,decode:e=>g(i(e))})},A=(e,t,r,n)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let u=new Uint8Array(o*r/8|0),s=0,a=0,c=0;for(let t=0;t<o;++t){let o=i[e[t]];if(void 0===o)throw SyntaxError(`Non-${n} character`);a=a<<r|o,(s+=r)>=8&&(s-=8,u[c++]=255&a>>s)}if(s>=r||255&a<<8-s)throw SyntaxError("Unexpected end of data");return u},N=(e,t,r)=>{let n="="===t[t.length-1],i=(1<<r)-1,o="",u=0,s=0;for(let n=0;n<e.length;++n)for(s=s<<8|e[n],u+=8;u>r;)u-=r,o+=t[i&s>>u];if(u&&(o+=t[i&s<<r-u]),n)for(;o.length*r&7;)o+="=";return o},P=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>C({prefix:t,name:e,encode:e=>N(e,n,r),decode:t=>A(t,n,r,e)}),I=C({prefix:"\x00",name:"identity",encode:e=>m(e),decode:e=>_(e)}),j=P({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),T=P({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),M=U({prefix:"9",name:"base10",alphabet:"0123456789"}),x=P({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),L=P({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),k=P({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),R=P({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),F=P({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),B=P({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),$=P({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),W=P({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),K=P({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),H=P({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),V=P({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),z=U({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),q=U({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),Y=U({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),G=U({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),X=P({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Q=P({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),J=P({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Z=P({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),ee=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),et=ee.reduce((e,t,r)=>(e[r]=t,e),[]),er=ee.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]),en=C({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=et[t],"")},decode:function(e){let t=[];for(let r of e){let e=er[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});function ei(e,t,r){t=t||[];for(var n=r=r||0;e>=2147483648;)t[r++]=255&e|128,e/=128;for(;-128&e;)t[r++]=255&e|128,e>>>=7;return t[r]=0|e,ei.bytes=r-n+1,t}function eo(e,t){var r,n=0,t=t||0,i=0,o=t,u=e.length;do{if(o>=u)throw eo.bytes=0,RangeError("Could not decode varint");r=e[o++],n+=i<28?(127&r)<<i:(127&r)*Math.pow(2,i),i+=7}while(r>=128);return eo.bytes=o-t,n}var eu={encode:ei,decode:eo,encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10}};let es=(e,t,r=0)=>(eu.encode(e,t,r),t),ea=e=>eu.encodingLength(e),ec=(e,t)=>{let r=t.byteLength,n=ea(e),i=n+ea(r),o=new Uint8Array(i+r);return es(e,o,0),es(r,o,n),o.set(t,i),new el(e,r,t,o)};class el{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let ef=({name:e,code:t,encode:r})=>new eh(e,t,r);class eh{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?ec(this.code,t):t.then(e=>ec(this.code,e))}throw Error("Unknown type, must be binary type")}}let ed=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),ep=ef({name:"sha2-256",code:18,encode:ed("SHA-256")}),eb=ef({name:"sha2-512",code:19,encode:ed("SHA-512")}),ey={code:0,name:"identity",encode:g,digest:e=>ec(0,g(e))},eD="raw",eg=85,e_=e=>g(e),em=e=>g(e),ev=new TextEncoder,eE=new TextDecoder,ew="json",eS=512,eO=e=>ev.encode(JSON.stringify(e)),eC=e=>JSON.parse(eE.decode(e));class eU{constructor(e,t,r,n){this.code=t,this.version=e,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:eL,byteLength:eL,code:ex,version:ex,multihash:ex,bytes:ex,_baseCache:eL,asCID:eL})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==eI)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==ej)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return eU.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=Digest.create(e,t);return eU.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&Digest.equals(this.multihash,e.multihash)}toString(e){let{bytes:t,version:r,_baseCache:n}=this;return 0===r?eN(t,n,e||base58btc.encoder):eP(t,n,e||base32.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return ek(/^0\.0/,eR),!!(e&&(e[eM]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof eU)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:n,bytes:i}=e;return new eU(t,r,n,i||eT(t,r,n.bytes))}if(null==e||!0!==e[eM])return null;{let{version:t,multihash:r,code:n}=e,i=Digest.decode(r);return eU.create(t,n,i)}}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===eI)return new eU(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eI}) block encoding`);case 1:{let n=eT(e,t,r.bytes);return new eU(e,t,r,n)}default:throw Error("Invalid version")}}static createV0(e){return eU.create(0,eI,e)}static createV1(e,t){return eU.create(1,e,t)}static decode(e){let[t,r]=eU.decodeFirst(e);if(r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=eU.inspectBytes(e),r=t.size-t.multihashSize,n=coerce(e.subarray(r,r+t.multihashSize));if(n.byteLength!==t.multihashSize)throw Error("Incorrect length");let i=n.subarray(t.multihashSize-t.digestSize),o=new Digest.Digest(t.multihashCode,t.digestSize,i,n),u=0===t.version?eU.createV0(o):eU.createV1(t.codec,o);return[u,e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,n]=varint.decode(e.subarray(t));return t+=n,r},n=r(),i=eI;if(18===n?(n=0,t=0):1===n&&(i=r()),0!==n&&1!==n)throw RangeError(`Invalid CID version ${n}`);let o=t,u=r(),s=r(),a=t+s;return{version:n,codec:i,multihashCode:u,digestSize:s,multihashSize:a-o,size:a}}static parse(e,t){let[r,n]=eA(e,t),i=eU.decode(n);return i._baseCache.set(r,e),i}}let eA=(e,t)=>{switch(e[0]){case"Q":{let r=t||base58btc;return[base58btc.prefix,r.decode(`${base58btc.prefix}${e}`)]}case base58btc.prefix:{let r=t||base58btc;return[base58btc.prefix,r.decode(e)]}case base32.prefix:{let r=t||base32;return[base32.prefix,r.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},eN=(e,t,r)=>{let{prefix:n}=r;if(n!==base58btc.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(n);if(null!=i)return i;{let i=r.encode(e).slice(1);return t.set(n,i),i}},eP=(e,t,r)=>{let{prefix:n}=r,i=t.get(n);if(null!=i)return i;{let i=r.encode(e);return t.set(n,i),i}},eI=112,ej=18,eT=(e,t,r)=>{let n=varint.encodingLength(e),i=n+varint.encodingLength(t),o=new Uint8Array(i+r.byteLength);return varint.encodeTo(e,o,0),varint.encodeTo(t,o,n),o.set(r,i),o},eM=Symbol.for("@ipld/js-cid/CID"),ex={writable:!1,configurable:!1,enumerable:!0},eL={writable:!1,enumerable:!1,configurable:!1},ek=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},eR=null,eF={...n,...i,...o,...u,...s,...a,...c,...l,...f,...h};({...d,...p});var eB=r(7204);function e$(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}let eW=e$("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{let t=new TextEncoder;return t.encode(e.substring(1))}),eK=e$("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=(0,eB.E)(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),eH={utf8:eW,"utf-8":eW,hex:eF.base16,latin1:eK,ascii:eK,binary:eK,...eF};var eV=eH}}]);