UNPKG

@liascript/exporter

Version:
1 lines โ€ข 697 kB
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};function t(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var r=e.parcelRequire55a5;r.register("62kvE",(function(n,i){t(n.exports,"selfId",(function(){return bC})),t(n.exports,"joinRoom",(function(){return ek}));var s,o,a,l,u,c,d,h,f,p,g,m,v,y,b,w,E,S,A,I,_,C=r("e963W"),k=r("lvOWe"),x=r("ezKE5"),T=r("dpALB"),P=r("1VQD5"),R=r("cJcuy"),L=r("2Xs1f"),D=r("dM3DM"),M=r("aQXMn");let N,O,U,F;var B,$,q,z,j,K,V,H,W,G,X=r("jhEmn");function Z(e=0){return new Uint8Array(e)}function Y(e=0){return new Uint8Array(e)}const Q=268435456,J=34359738368,ee=4398046511104,te=Math.pow(2,49),re=128,ne=127;function ie(e){if(e<128)return 1;if(e<16384)return 2;if(e<2097152)return 3;if(e<Q)return 4;if(e<J)return 5;if(e<ee)return 6;if(e<te)return 7;if(null!=Number.MAX_SAFE_INTEGER&&e>Number.MAX_SAFE_INTEGER)throw new RangeError("Could not encode varint");return 8}function se(e,t,r=0){switch(ie(e)){case 8:t[r++]=255&e|re,e/=128;case 7:t[r++]=255&e|re,e/=128;case 6:t[r++]=255&e|re,e/=128;case 5:t[r++]=255&e|re,e/=128;case 4:t[r++]=255&e|re,e>>>=7;case 3:t[r++]=255&e|re,e>>>=7;case 2:t[r++]=255&e|re,e>>>=7;case 1:t[r++]=255&e,e>>>=7;break;default:throw Error("unreachable")}return t}function oe(e,t){let r=e[t],n=0;if(n+=r&ne,r<re)return n;if(r=e[t+1],n+=(r&ne)<<7,r<re)return n;if(r=e[t+2],n+=(r&ne)<<14,r<re)return n;if(r=e[t+3],n+=(r&ne)<<21,r<re)return n;if(r=e[t+4],n+=(r&ne)*Q,r<re)return n;if(r=e[t+5],n+=(r&ne)*J,r<re)return n;if(r=e[t+6],n+=(r&ne)*ee,r<re)return n;if(r=e[t+7],n+=(r&ne)*te,r<re)return n;throw new RangeError("Could not decode varint")}function ae(e,t,r=0){return null==t&&(t=Y(ie(e))),t instanceof Uint8Array?se(e,t,r):function(e,t,r=0){switch(ie(e)){case 8:t.set(r++,255&e|re),e/=128;case 7:t.set(r++,255&e|re),e/=128;case 6:t.set(r++,255&e|re),e/=128;case 5:t.set(r++,255&e|re),e/=128;case 4:t.set(r++,255&e|re),e>>>=7;case 3:t.set(r++,255&e|re),e>>>=7;case 2:t.set(r++,255&e|re),e>>>=7;case 1:t.set(r++,255&e),e>>>=7;break;default:throw Error("unreachable")}return t}(e,t,r)}function le(e,t=0){return e instanceof Uint8Array?oe(e,t):function(e,t){let r=e.get(t),n=0;if(n+=r&ne,r<re)return n;if(r=e.get(t+1),n+=(r&ne)<<7,r<re)return n;if(r=e.get(t+2),n+=(r&ne)<<14,r<re)return n;if(r=e.get(t+3),n+=(r&ne)<<21,r<re)return n;if(r=e.get(t+4),n+=(r&ne)*Q,r<re)return n;if(r=e.get(t+5),n+=(r&ne)*J,r<re)return n;if(r=e.get(t+6),n+=(r&ne)*ee,r<re)return n;if(r=e.get(t+7),n+=(r&ne)*te,r<re)return n;throw new RangeError("Could not decode varint")}(e,t)}const ue=new Float32Array([-0]),ce=new Uint8Array(ue.buffer);function de(e,t,r){ue[0]=e,t[r]=ce[0],t[r+1]=ce[1],t[r+2]=ce[2],t[r+3]=ce[3]}const he=new Float64Array([-0]),fe=new Uint8Array(he.buffer);function pe(e,t,r){he[0]=e,t[r]=fe[0],t[r+1]=fe[1],t[r+2]=fe[2],t[r+3]=fe[3],t[r+4]=fe[4],t[r+5]=fe[5],t[r+6]=fe[6],t[r+7]=fe[7]}const ge=BigInt(Number.MAX_SAFE_INTEGER),me=BigInt(Number.MIN_SAFE_INTEGER);class ve{toNumber(e=!1){if(!e&&this.hi>>>31>0){const e=1+~this.lo>>>0;let t=~this.hi>>>0;return 0===e&&(t=t+1>>>0),-(e+4294967296*t)}return this.lo+4294967296*this.hi}toBigInt(e=!1){if(e)return BigInt(this.lo>>>0)+(BigInt(this.hi>>>0)<<32n);if(this.hi>>>31!=0){const e=1+~this.lo>>>0;let t=~this.hi>>>0;return 0===e&&(t=t+1>>>0),-(BigInt(e)+(BigInt(t)<<32n))}return BigInt(this.lo>>>0)+(BigInt(this.hi>>>0)<<32n)}toString(e=!1){return this.toBigInt(e).toString()}zzEncode(){const e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this}zzDecode(){const e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this}length(){const e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}static fromBigInt(e){if(0n===e)return ye;if(e<ge&&e>me)return this.fromNumber(Number(e));const t=e<0n;t&&(e=-e);let r=e>>32n,n=e-(r<<32n);return t&&(r=0n|~r,n=0n|~n,++n>be&&(n=0n,++r>be&&(r=0n))),new ve(Number(n),Number(r))}static fromNumber(e){if(0===e)return ye;const t=e<0;t&&(e=-e);let r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new ve(r,n)}static from(e){return"number"==typeof e?ve.fromNumber(e):"bigint"==typeof e?ve.fromBigInt(e):"string"==typeof e?ve.fromBigInt(BigInt(e)):null!=e.low||null!=e.high?new ve(e.low>>>0,e.high>>>0):ye}constructor(e,t){(0,L.default)(this,"lo",void 0),(0,L.default)(this,"hi",void 0),this.lo=0|e,this.hi=0|t}}const ye=new ve(0,0);ye.toBigInt=()=>0n,ye.zzEncode=ye.zzDecode=function(){return this},ye.length=()=>1;const be=4294967296n;function we(e,t,r){const n=r;let i,s;for(let n=0;n<e.length;++n)i=e.charCodeAt(n),i<128?t[r++]=i:i<2048?(t[r++]=i>>6|192,t[r++]=63&i|128):55296==(64512&i)&&56320==(64512&(s=e.charCodeAt(n+1)))?(i=65536+((1023&i)<<10)+(1023&s),++n,t[r++]=i>>18|240,t[r++]=i>>12&63|128,t[r++]=i>>6&63|128,t[r++]=63&i|128):(t[r++]=i>>12|224,t[r++]=i>>6&63|128,t[r++]=63&i|128);return r-n}function Ee(e,t){return RangeError(`index out of range: ${e.pos} + ${null!=t?t:1} > ${e.len}`)}function Se(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}class Ae{uint32(){let e=4294967295;if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,Ee(this,10);return e}int32(){return 0|this.uint32()}sint32(){const e=this.uint32();return e>>>1^-(1&e)}bool(){return 0!==this.uint32()}fixed32(){if(this.pos+4>this.len)throw Ee(this,4);return Se(this.buf,this.pos+=4)}sfixed32(){if(this.pos+4>this.len)throw Ee(this,4);return 0|Se(this.buf,this.pos+=4)}float(){if(this.pos+4>this.len)throw Ee(this,4);const e=(t=this.buf,r=this.pos,ce[0]=t[r],ce[1]=t[r+1],ce[2]=t[r+2],ce[3]=t[r+3],ue[0]);var t,r;return this.pos+=4,e}double(){if(this.pos+8>this.len)throw Ee(this,4);const e=(t=this.buf,r=this.pos,fe[0]=t[r],fe[1]=t[r+1],fe[2]=t[r+2],fe[3]=t[r+3],fe[4]=t[r+4],fe[5]=t[r+5],fe[6]=t[r+6],fe[7]=t[r+7],he[0]);var t,r;return this.pos+=8,e}bytes(){const e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw Ee(this,e);return this.pos+=e,t===r?new Uint8Array(0):this.buf.subarray(t,r)}string(){const e=this.bytes();return function(e,t,r){if(r-t<1)return"";let n;const i=[];let s,o=0;for(;t<r;)s=e[t++],s<128?i[o++]=s:s>191&&s<224?i[o++]=(31&s)<<6|63&e[t++]:s>239&&s<365?(s=((7&s)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[o++]=55296+(s>>10),i[o++]=56320+(1023&s)):i[o++]=(15&s)<<12|(63&e[t++])<<6|63&e[t++],o>8191&&((null!=n?n:n=[]).push(String.fromCharCode.apply(String,i)),o=0);return null!=n?(o>0&&n.push(String.fromCharCode.apply(String,i.slice(0,o))),n.join("")):String.fromCharCode.apply(String,i.slice(0,o))}(e,0,e.length)}skip(e){if("number"==typeof e){if(this.pos+e>this.len)throw Ee(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw Ee(this)}while(128&this.buf[this.pos++]);return this}skipType(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error(`invalid wire type ${e} at offset ${this.pos}`)}return this}readLongVarint(){const e=new ve(0,0);let t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw Ee(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw Ee(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}readFixed64(){if(this.pos+8>this.len)throw Ee(this,8);const e=Se(this.buf,this.pos+=4),t=Se(this.buf,this.pos+=4);return new ve(e,t)}int64(){return this.readLongVarint().toBigInt()}int64Number(){return this.readLongVarint().toNumber()}int64String(){return this.readLongVarint().toString()}uint64(){return this.readLongVarint().toBigInt(!0)}uint64Number(){const e=oe(this.buf,this.pos);return this.pos+=ie(e),e}uint64String(){return this.readLongVarint().toString(!0)}sint64(){return this.readLongVarint().zzDecode().toBigInt()}sint64Number(){return this.readLongVarint().zzDecode().toNumber()}sint64String(){return this.readLongVarint().zzDecode().toString()}fixed64(){return this.readFixed64().toBigInt()}fixed64Number(){return this.readFixed64().toNumber()}fixed64String(){return this.readFixed64().toString()}sfixed64(){return this.readFixed64().toBigInt()}sfixed64Number(){return this.readFixed64().toNumber()}sfixed64String(){return this.readFixed64().toString()}constructor(e){(0,L.default)(this,"buf",void 0),(0,L.default)(this,"pos",void 0),(0,L.default)(this,"len",void 0),(0,L.default)(this,"_slice",Uint8Array.prototype.subarray),this.buf=e,this.pos=0,this.len=e.length}}function Ie(e,t,r){const n=function(e){return new Ae(e instanceof Uint8Array?e:e.subarray())}(e);return t.decode(n,void 0,r)}function _e(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")}var Ce=function(e,t){if(e.length>=255)throw new 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 s=e.charAt(i),o=s.charCodeAt(0);if(255!==r[o])throw new TypeError(s+" is ambiguous");r[o]=i}var a=e.length,l=e.charAt(0),u=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function d(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[t]){for(var n=0,i=0;e[t]===l;)n++,t++;for(var s=(e.length-t)*u+1>>>0,o=new Uint8Array(s);e[t];){var c=r[e.charCodeAt(t)];if(255===c)return;for(var d=0,h=s-1;(0!==c||d<i)&&-1!==h;h--,d++)c+=a*o[h]>>>0,o[h]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var f=s-i;f!==s&&0===o[f];)f++;for(var p=new Uint8Array(n+(s-f)),g=n;f!==s;)p[g++]=o[f++];return p}}}return{encode(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 new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,s=t.length;i!==s&&0===t[i];)i++,r++;for(var o=(s-i)*c+1>>>0,u=new Uint8Array(o);i!==s;){for(var d=t[i],h=0,f=o-1;(0!==d||h<n)&&-1!==f;f--,h++)d+=256*u[f]>>>0,u[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw Error("Non-zero carry");n=h,i++}for(var p=o-n;p!==o&&0===u[p];)p++;for(var g=l.repeat(r);p<o;++p)g+=e.charAt(u[p]);return g},decodeUnsafe:d,decode(e){var r=d(e);if(r)return r;throw Error(`Non-${t} character`)}}};let ke=class{encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}constructor(e,t,r){(0,L.default)(this,"name",void 0),(0,L.default)(this,"prefix",void 0),(0,L.default)(this,"baseEncode",void 0),this.name=e,this.prefix=t,this.baseEncode=r}},xe=class{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 Pe(this,e)}constructor(e,t,r){(0,L.default)(this,"name",void 0),(0,L.default)(this,"prefix",void 0),(0,L.default)(this,"baseDecode",void 0),(0,L.default)(this,"prefixCodePoint",void 0),this.name=e,this.prefix=t;const n=t.codePointAt(0);if(void 0===n)throw Error("Invalid prefix character");this.prefixCodePoint=n,this.baseDecode=r}};class Te{or(e){return Pe(this,e)}decode(e){const t=e[0],r=this.decoders[t];if(null!=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`)}constructor(e){(0,L.default)(this,"decoders",void 0),this.decoders=e}}function Pe(e,t){var r,n;return new Te((0,D.default)({},null!==(r=e.decoders)&&void 0!==r?r:{[e.prefix]:e},null!==(n=t.decoders)&&void 0!==n?n:{[t.prefix]:t}))}class Re{encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}constructor(e,t,r,n){(0,L.default)(this,"name",void 0),(0,L.default)(this,"prefix",void 0),(0,L.default)(this,"baseEncode",void 0),(0,L.default)(this,"baseDecode",void 0),(0,L.default)(this,"encoder",void 0),(0,L.default)(this,"decoder",void 0),this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new ke(e,t,r),this.decoder=new xe(e,t,n)}}function Le({name:e,prefix:t,encode:r,decode:n}){return new Re(e,t,r,n)}function De({name:e,prefix:t,alphabet:r}){const{encode:n,decode:i}=Ce(r,e);return Le({prefix:t,name:e,encode:n,decode:e=>_e(i(e))})}function Me({name:e,prefix:t,bitsPerChar:r,alphabet:n}){const i=function(e){const t={};for(let r=0;r<e.length;++r)t[e[r]]=r;return t}(n);return Le({prefix:t,name:e,encode:e=>function(e,t,r){const n="="===t[t.length-1],i=(1<<r)-1;let s="",o=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],o+=8;o>r;)o-=r,s+=t[i&a>>o];if(0!==o&&(s+=t[i&a<<r-o]),n)for(;s.length*r&7;)s+="=";return s}(e,n,r),decode:t=>function(e,t,r,n){let i=e.length;for(;"="===e[i-1];)--i;const s=new Uint8Array(i*r/8|0);let o=0,a=0,l=0;for(let u=0;u<i;++u){const i=t[e[u]];if(void 0===i)throw new SyntaxError(`Non-${n} character`);a=a<<r|i,o+=r,o>=8&&(o-=8,s[l++]=255&a>>o)}if(o>=r||255&a<<8-o)throw new SyntaxError("Unexpected end of data");return s}(t,i,r,e)})}const Ne=De({prefix:"9",name:"base10",alphabet:"0123456789"});var Oe=Object.freeze({__proto__:null,base10:Ne});const Ue=Me({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Fe=Me({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Be=Object.freeze({__proto__:null,base16:Ue,base16upper:Fe});const $e=Me({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var qe=Object.freeze({__proto__:null,base2:$e});const ze=Array.from("๐Ÿš€๐Ÿชโ˜„๐Ÿ›ฐ๐ŸŒŒ๐ŸŒ‘๐ŸŒ’๐ŸŒ“๐ŸŒ”๐ŸŒ•๐ŸŒ–๐ŸŒ—๐ŸŒ˜๐ŸŒ๐ŸŒ๐ŸŒŽ๐Ÿ‰โ˜€๐Ÿ’ป๐Ÿ–ฅ๐Ÿ’พ๐Ÿ’ฟ๐Ÿ˜‚โค๐Ÿ˜๐Ÿคฃ๐Ÿ˜Š๐Ÿ™๐Ÿ’•๐Ÿ˜ญ๐Ÿ˜˜๐Ÿ‘๐Ÿ˜…๐Ÿ‘๐Ÿ˜๐Ÿ”ฅ๐Ÿฅฐ๐Ÿ’”๐Ÿ’–๐Ÿ’™๐Ÿ˜ข๐Ÿค”๐Ÿ˜†๐Ÿ™„๐Ÿ’ช๐Ÿ˜‰โ˜บ๐Ÿ‘Œ๐Ÿค—๐Ÿ’œ๐Ÿ˜”๐Ÿ˜Ž๐Ÿ˜‡๐ŸŒน๐Ÿคฆ๐ŸŽ‰๐Ÿ’žโœŒโœจ๐Ÿคท๐Ÿ˜ฑ๐Ÿ˜Œ๐ŸŒธ๐Ÿ™Œ๐Ÿ˜‹๐Ÿ’—๐Ÿ’š๐Ÿ˜๐Ÿ’›๐Ÿ™‚๐Ÿ’“๐Ÿคฉ๐Ÿ˜„๐Ÿ˜€๐Ÿ–ค๐Ÿ˜ƒ๐Ÿ’ฏ๐Ÿ™ˆ๐Ÿ‘‡๐ŸŽถ๐Ÿ˜’๐Ÿคญโฃ๐Ÿ˜œ๐Ÿ’‹๐Ÿ‘€๐Ÿ˜ช๐Ÿ˜‘๐Ÿ’ฅ๐Ÿ™‹๐Ÿ˜ž๐Ÿ˜ฉ๐Ÿ˜ก๐Ÿคช๐Ÿ‘Š๐Ÿฅณ๐Ÿ˜ฅ๐Ÿคค๐Ÿ‘‰๐Ÿ’ƒ๐Ÿ˜ณโœ‹๐Ÿ˜š๐Ÿ˜๐Ÿ˜ด๐ŸŒŸ๐Ÿ˜ฌ๐Ÿ™ƒ๐Ÿ€๐ŸŒท๐Ÿ˜ป๐Ÿ˜“โญโœ…๐Ÿฅบ๐ŸŒˆ๐Ÿ˜ˆ๐Ÿค˜๐Ÿ’ฆโœ”๐Ÿ˜ฃ๐Ÿƒ๐Ÿ’โ˜น๐ŸŽŠ๐Ÿ’˜๐Ÿ˜ โ˜๐Ÿ˜•๐ŸŒบ๐ŸŽ‚๐ŸŒป๐Ÿ˜๐Ÿ–•๐Ÿ’๐Ÿ™Š๐Ÿ˜น๐Ÿ—ฃ๐Ÿ’ซ๐Ÿ’€๐Ÿ‘‘๐ŸŽต๐Ÿคž๐Ÿ˜›๐Ÿ”ด๐Ÿ˜ค๐ŸŒผ๐Ÿ˜ซโšฝ๐Ÿค™โ˜•๐Ÿ†๐Ÿคซ๐Ÿ‘ˆ๐Ÿ˜ฎ๐Ÿ™†๐Ÿป๐Ÿƒ๐Ÿถ๐Ÿ’๐Ÿ˜ฒ๐ŸŒฟ๐Ÿงก๐ŸŽโšก๐ŸŒž๐ŸŽˆโŒโœŠ๐Ÿ‘‹๐Ÿ˜ฐ๐Ÿคจ๐Ÿ˜ถ๐Ÿค๐Ÿšถ๐Ÿ’ฐ๐Ÿ“๐Ÿ’ข๐ŸคŸ๐Ÿ™๐Ÿšจ๐Ÿ’จ๐Ÿคฌโœˆ๐ŸŽ€๐Ÿบ๐Ÿค“๐Ÿ˜™๐Ÿ’Ÿ๐ŸŒฑ๐Ÿ˜–๐Ÿ‘ถ๐Ÿฅดโ–ถโžกโ“๐Ÿ’Ž๐Ÿ’ธโฌ‡๐Ÿ˜จ๐ŸŒš๐Ÿฆ‹๐Ÿ˜ท๐Ÿ•บโš ๐Ÿ™…๐Ÿ˜Ÿ๐Ÿ˜ต๐Ÿ‘Ž๐Ÿคฒ๐Ÿค ๐Ÿคง๐Ÿ“Œ๐Ÿ”ต๐Ÿ’…๐Ÿง๐Ÿพ๐Ÿ’๐Ÿ˜—๐Ÿค‘๐ŸŒŠ๐Ÿคฏ๐Ÿทโ˜Ž๐Ÿ’ง๐Ÿ˜ฏ๐Ÿ’†๐Ÿ‘†๐ŸŽค๐Ÿ™‡๐Ÿ‘โ„๐ŸŒด๐Ÿ’ฃ๐Ÿธ๐Ÿ’Œ๐Ÿ“๐Ÿฅ€๐Ÿคข๐Ÿ‘…๐Ÿ’ก๐Ÿ’ฉ๐Ÿ‘๐Ÿ“ธ๐Ÿ‘ป๐Ÿค๐Ÿคฎ๐ŸŽผ๐Ÿฅต๐Ÿšฉ๐ŸŽ๐ŸŠ๐Ÿ‘ผ๐Ÿ’๐Ÿ“ฃ๐Ÿฅ‚"),je=ze.reduce(((e,t,r)=>(e[r]=t,e)),[]),Ke=ze.reduce(((e,t,r)=>{const n=t.codePointAt(0);if(null==n)throw Error("Invalid character: "+t);return e[n]=r,e}),[]),Ve=Le({prefix:"๐Ÿš€",name:"base256emoji",encode:e=>e.reduce(((e,t)=>e+je[t]),""),decode(e){const t=[];for(const r of e){const e=r.codePointAt(0);if(null==e)throw Error("Invalid character: "+r);const n=Ke[e];if(null==n)throw Error("Non-base256emoji character: "+r);t.push(n)}return new Uint8Array(t)}});var He=Object.freeze({__proto__:null,base256emoji:Ve});const We=Me({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Ge=Me({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Xe=Me({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Ze=Me({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Ye=Me({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Qe=Me({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Je=Me({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),et=Me({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),tt=Me({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var rt=Object.freeze({__proto__:null,base32:We,base32hex:Ye,base32hexpad:Je,base32hexpadupper:et,base32hexupper:Qe,base32pad:Xe,base32padupper:Ze,base32upper:Ge,base32z:tt});const nt=De({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),it=De({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var st=Object.freeze({__proto__:null,base36:nt,base36upper:it});const ot=De({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),at=De({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var lt=Object.freeze({__proto__:null,base58btc:ot,base58flickr:at});const ut=Me({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ct=Me({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),dt=Me({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ht=Me({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var ft=Object.freeze({__proto__:null,base64:ut,base64pad:ct,base64url:dt,base64urlpad:ht});const pt=Me({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var gt=Object.freeze({__proto__:null,base8:pt});const mt=Le({prefix:"\0",name:"identity",encode(e){var t;return t=e,(new TextDecoder).decode(t)},decode:e=>function(e){return(new TextEncoder).encode(e)}(e)});var vt=Object.freeze({__proto__:null,identity:mt});new TextEncoder,new TextDecoder;var yt=128,bt=-128,wt=2147483648,Et=128,St=127,At=Math.pow(2,63),It={encode:function e(t,r,n){r=r||[];for(var i=n=n||0;t>=wt;)r[n++]=255&t|yt,t/=128;for(;t&bt;)r[n++]=255&t|yt,t>>>=7;return r[n]=0|t,e.bytes=n-i+1,r},decode:function e(t,r){var n,i=0,s=0,o=r=r||0,a=t.length;do{if(o>=a)throw e.bytes=0,new RangeError("Could not decode varint");n=t[o++],i+=s<28?(n&St)<<s:(n&St)*Math.pow(2,s),s+=7}while(n>=Et);return e.bytes=o-r,i},encodingLength:e=>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<At?9:10};function _t(e,t=0){return[It.decode(e,t),It.decode.bytes]}function Ct(e,t,r=0){return It.encode(e,t,r),t}function kt(e){return It.encodingLength(e)}function xt(e,t){const r=t.byteLength,n=kt(e),i=n+kt(r),s=new Uint8Array(i+r);return Ct(e,s,0),Ct(r,s,n),s.set(t,i),new Pt(e,r,t,s)}function Tt(e){const t=_e(e),[r,n]=_t(t),[i,s]=_t(t.subarray(n)),o=t.subarray(n+s);if(o.byteLength!==i)throw Error("Incorrect length");return new Pt(r,i,o,t)}class Pt{constructor(e,t,r,n){(0,L.default)(this,"code",void 0),(0,L.default)(this,"size",void 0),(0,L.default)(this,"digest",void 0),(0,L.default)(this,"bytes",void 0),this.code=e,this.size=t,this.digest=r,this.bytes=n}}const Rt=_e,Lt={code:0,name:"identity",encode:Rt,digest:e=>xt(0,Rt(e))};class Dt{digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?xt(this.code,t):t.then((e=>xt(this.code,e)))}throw Error("Unknown type, must be binary type")}constructor(e,t,r){(0,L.default)(this,"name",void 0),(0,L.default)(this,"code",void 0),(0,L.default)(this,"encode",void 0),this.name=e,this.code=t,this.encode=r}}const Mt=function({name:e,code:t,encode:r}){return new Dt(e,t,r)}({name:"sha2-256",code:18,encode:async e=>new Uint8Array(await crypto.subtle.digest("SHA-256",e))});function Nt(e,t){const{bytes:r,version:n}=e;return 0===n?function(e,t,r){const{prefix:n}=r;if(n!==ot.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);const i=t.get(n);if(null==i){const i=r.encode(e).slice(1);return t.set(n,i),i}return i}(r,Ut(e),null!=t?t:ot.encoder):function(e,t,r){const{prefix:n}=r,i=t.get(n);if(null==i){const i=r.encode(e);return t.set(n,i),i}return i}(r,Ut(e),null!=t?t:We.encoder)}const Ot=new WeakMap;function Ut(e){const t=Ot.get(e);if(null==t){const t=new Map;return Ot.set(e,t),t}return t}let Ft=Symbol.toStringTag,Bt=Symbol.for("nodejs.util.inspect.custom");class $t{get asCID(){return this}get byteOffset(){return this.bytes.byteOffset}get byteLength(){return this.bytes.byteLength}toV0(){switch(this.version){case 0:return this;case 1:{const{code:e,multihash:t}=this;if(e!==qt)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==zt)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return $t.createV0(t)}default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}toV1(){switch(this.version){case 0:{const{code:e,digest:t}=this.multihash,r=xt(e,t);return $t.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 1. This is a bug please report`)}}equals(e){return $t.equals(this,e)}static equals(e,t){const r=t;return null!=r&&e.code===r.code&&e.version===r.version&&function(e,t){if(e===t)return!0;{const r=t;return e.code===r.code&&e.size===r.size&&r.bytes instanceof Uint8Array&&((e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0})(e.bytes,r.bytes)}}(e.multihash,r.multihash)}toString(e){return Nt(this,e)}toJSON(){return{"/":Nt(this)}}link(){return this}[Bt](){return`CID(${this.toString()})`}static asCID(e){if(null==e)return null;const t=e;if(t instanceof $t)return t;if(null!=t["/"]&&t["/"]===t.bytes||t.asCID===t){const{version:e,code:r,multihash:n,bytes:i}=t;return new $t(e,r,n,null!=i?i:jt(e,r,n.bytes))}if(!0===t[Kt]){const{version:e,multihash:r,code:n}=t,i=Tt(r);return $t.create(e,n,i)}return null}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");if(!(r.bytes instanceof Uint8Array))throw Error("Invalid digest");switch(e){case 0:if(t!==qt)throw Error(`Version 0 CID must use dag-pb (code: ${qt}) block encoding`);return new $t(e,t,r,r.bytes);case 1:{const n=jt(e,t,r.bytes);return new $t(e,t,r,n)}default:throw Error("Invalid version")}}static createV0(e){return $t.create(0,qt,e)}static createV1(e,t){return $t.create(1,e,t)}static decode(e){const[t,r]=$t.decodeFirst(e);if(0!==r.length)throw Error("Incorrect length");return t}static decodeFirst(e){const t=$t.inspectBytes(e),r=t.size-t.multihashSize,n=_e(e.subarray(r,r+t.multihashSize));if(n.byteLength!==t.multihashSize)throw Error("Incorrect length");const i=n.subarray(t.multihashSize-t.digestSize),s=new Pt(t.multihashCode,t.digestSize,i,n);return[0===t.version?$t.createV0(s):$t.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0;const r=()=>{const[r,n]=_t(e.subarray(t));return t+=n,r};let n=r(),i=qt;if(18===n?(n=0,t=0):i=r(),0!==n&&1!==n)throw new RangeError("Invalid CID version "+n);const s=t,o=r(),a=r(),l=t+a;return{version:n,codec:i,multihashCode:o,digestSize:a,multihashSize:l-s,size:l}}static parse(e,t){const[r,n]=function(e,t){switch(e[0]){case"Q":{const r=null!=t?t:ot;return[ot.prefix,r.decode(`${ot.prefix}${e}`)]}case ot.prefix:{const r=null!=t?t:ot;return[ot.prefix,r.decode(e)]}case We.prefix:{const r=null!=t?t:We;return[We.prefix,r.decode(e)]}case nt.prefix:{const r=null!=t?t:nt;return[nt.prefix,r.decode(e)]}default:if(null==t)throw Error("To parse non base32, base36 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}}(e,t),i=$t.decode(n);if(0===i.version&&"Q"!==e[0])throw Error("Version 0 CID string must not include multibase prefix");return Ut(i).set(r,e),i}constructor(e,t,r,n){(0,L.default)(this,"code",void 0),(0,L.default)(this,"version",void 0),(0,L.default)(this,"multihash",void 0),(0,L.default)(this,"bytes",void 0),(0,L.default)(this,"/",void 0),(0,L.default)(this,Ft,"CID"),this.code=t,this.version=e,this.multihash=r,this.bytes=n,this["/"]=n}}const qt=112,zt=18;function jt(e,t,r){const n=kt(e),i=n+kt(t),s=new Uint8Array(i+r.byteLength);return Ct(e,s,0),Ct(t,s,n),s.set(r,i),s}const Kt=Symbol.for("@ipld/js-cid/CID"),Vt=(0,D.default)({},vt,qe,gt,Oe,Be,rt,st,lt,ft,He);function Ht(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const Wt=Ht("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),Gt=Ht("ascii","a",(e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}),(e=>{const t=Y((e=e.substring(1)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t})),Xt=(0,D.default)({utf8:Wt,"utf-8":Wt,hex:Vt.base16,latin1:Gt,ascii:Gt,binary:Gt},Vt);function Zt(e,t="utf8"){const r=Xt[t];if(null==r)throw Error(`Unsupported encoding "${t}"`);return r.decoder.decode(`${r.prefix}${e}`)}class Yt{constructor(e,t,r){(0,L.default)(this,"fn",void 0),(0,L.default)(this,"len",void 0),(0,L.default)(this,"next",void 0),(0,L.default)(this,"val",void 0),this.fn=e,this.len=t,this.next=void 0,this.val=r}}function Qt(){}class Jt{constructor(e){(0,L.default)(this,"head",void 0),(0,L.default)(this,"tail",void 0),(0,L.default)(this,"len",void 0),(0,L.default)(this,"next",void 0),this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}}const er=function(){const e=8192;let t,r=e;return function(n){if(n<1||n>4096)return Y(n);r+n>e&&(t=Y(e),r=0);const i=t.subarray(r,r+=n);return 7&r&&(r=1+(7|r)),i}}();class tr{_push(e,t,r){return this.tail=this.tail.next=new Yt(e,t,r),this.len+=t,this}uint32(e){return this.len+=(this.tail=this.tail.next=new ir((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this}int32(e){return e<0?this._push(sr,10,ve.fromNumber(e)):this.uint32(e)}sint32(e){return this.uint32((e<<1^e>>31)>>>0)}uint64(e){const t=ve.fromBigInt(e);return this._push(sr,t.length(),t)}uint64Number(e){return this._push(se,ie(e),e)}uint64String(e){return this.uint64(BigInt(e))}int64(e){return this.uint64(e)}int64Number(e){return this.uint64Number(e)}int64String(e){return this.uint64String(e)}sint64(e){const t=ve.fromBigInt(e).zzEncode();return this._push(sr,t.length(),t)}sint64Number(e){const t=ve.fromNumber(e).zzEncode();return this._push(sr,t.length(),t)}sint64String(e){return this.sint64(BigInt(e))}bool(e){return this._push(rr,1,e?1:0)}fixed32(e){return this._push(or,4,e>>>0)}sfixed32(e){return this.fixed32(e)}fixed64(e){const t=ve.fromBigInt(e);return this._push(or,4,t.lo)._push(or,4,t.hi)}fixed64Number(e){const t=ve.fromNumber(e);return this._push(or,4,t.lo)._push(or,4,t.hi)}fixed64String(e){return this.fixed64(BigInt(e))}sfixed64(e){return this.fixed64(e)}sfixed64Number(e){return this.fixed64Number(e)}sfixed64String(e){return this.fixed64String(e)}float(e){return this._push(de,4,e)}double(e){return this._push(pe,8,e)}bytes(e){const t=e.length>>>0;return 0===t?this._push(rr,1,0):this.uint32(t)._push(ar,t,e)}string(e){const t=function(e){let t=0,r=0;for(let n=0;n<e.length;++n)r=e.charCodeAt(n),r<128?t+=1:r<2048?t+=2:55296==(64512&r)&&56320==(64512&e.charCodeAt(n+1))?(++n,t+=4):t+=3;return t}(e);return 0!==t?this.uint32(t)._push(we,t,e):this._push(rr,1,0)}fork(){return this.states=new Jt(this),this.head=this.tail=new Yt(Qt,0,0),this.len=0,this}reset(){return null!=this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Yt(Qt,0,0),this.len=0),this}ldelim(){const e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),0!==r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this}finish(){let e=this.head.next;const t=(r=this.len,null!=globalThis.Buffer?Y(r):er(r));var r;let n=0;for(;null!=e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t}constructor(){(0,L.default)(this,"len",void 0),(0,L.default)(this,"head",void 0),(0,L.default)(this,"tail",void 0),(0,L.default)(this,"states",void 0),this.len=0,this.head=new Yt(Qt,0,0),this.tail=this.head,this.states=null}}function rr(e,t,r){t[r]=255&e}function nr(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e}class ir extends Yt{constructor(e,t){super(nr,e,t),(0,L.default)(this,"next",void 0),this.next=void 0}}function sr(e,t,r){for(;0!==e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function or(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function ar(e,t,r){t.set(e,r)}function lr(e,t,r){t.set(e,r)}function ur(e,t,r){e.length<40?we(e,t,r):null!=t.utf8Write?t.utf8Write(e,r):t.set(Zt(e),r)}function cr(e,t){const r=new tr;return t.encode(e,r,{lengthDelimited:!1}),r.finish()}var dr,hr,fr,pr,gr,mr,vr,yr,br,wr,Er,Sr,Ar,Ir,_r,Cr,kr,xr,Tr,Pr,Rr,Lr,Dr,Mr,Nr,Or,Ur,Fr,Br,$r,qr,zr,jr,Kr,Vr;function Hr(e,t,r,n){return{name:e,type:t,encode:r,decode:n}}function Wr(e){function t(t){if(null==e[t.toString()])throw Error("Invalid enum value");return e[t]}return Hr("enum",dr.VARINT,(function(e,r){const n=t(e);r.int32(n)}),(function(e){return t(e.int32())}))}function Gr(e,t){return Hr("message",dr.LENGTH_DELIMITED,e,t)}null!=globalThis.Buffer&&(tr.prototype.bytes=function(e){const t=e.length>>>0;return this.uint32(t),t>0&&this._push(lr,t,e),this},tr.prototype.string=function(e){const t=globalThis.Buffer.byteLength(e);return this.uint32(t),t>0&&this._push(ur,t,e),this}),(Vr=dr||(dr={}))[Vr.VARINT=0]="VARINT",Vr[Vr.BIT64=1]="BIT64",Vr[Vr.LENGTH_DELIMITED=2]="LENGTH_DELIMITED",Vr[Vr.START_GROUP=3]="START_GROUP",Vr[Vr.END_GROUP=4]="END_GROUP",Vr[Vr.BIT32=5]="BIT32";class Xr extends Error{constructor(...e){super(...e),(0,L.default)(this,"code","ERR_MAX_LENGTH"),(0,L.default)(this,"name","MaxLengthError")}}class Zr extends Error{constructor(...e){super(...e),(0,L.default)(this,"code","ERR_MAX_SIZE"),(0,L.default)(this,"name","MaxSizeError")}}function Yr(e){return!!e}(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.proof&&e.proof.byteLength>0&&(t.uint32(10),t.bytes(e.proof)),null!=e.merkleRoot&&e.merkleRoot.byteLength>0&&(t.uint32(18),t.bytes(e.merkleRoot)),null!=e.epoch&&e.epoch.byteLength>0&&(t.uint32(26),t.bytes(e.epoch)),null!=e.shareX&&e.shareX.byteLength>0&&(t.uint32(34),t.bytes(e.shareX)),null!=e.shareY&&e.shareY.byteLength>0&&(t.uint32(42),t.bytes(e.shareY)),null!=e.nullifier&&e.nullifier.byteLength>0&&(t.uint32(50),t.bytes(e.nullifier)),null!=e.rlnIdentifier&&e.rlnIdentifier.byteLength>0&&(t.uint32(58),t.bytes(e.rlnIdentifier)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t)=>{const r={proof:Z(0),merkleRoot:Z(0),epoch:Z(0),shareX:Z(0),shareY:Z(0),nullifier:Z(0),rlnIdentifier:Z(0)},n=null==t?e.len:e.pos+t;for(;e.pos<n;){const t=e.uint32();switch(t>>>3){case 1:r.proof=e.bytes();break;case 2:r.merkleRoot=e.bytes();break;case 3:r.epoch=e.bytes();break;case 4:r.shareX=e.bytes();break;case 5:r.shareY=e.bytes();break;case 6:r.nullifier=e.bytes();break;case 7:r.rlnIdentifier=e.bytes();break;default:e.skipType(7&t)}}return r}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(hr||(hr={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.payload&&e.payload.byteLength>0&&(t.uint32(10),t.bytes(e.payload)),null!=e.contentTopic&&""!==e.contentTopic&&(t.uint32(18),t.string(e.contentTopic)),null!=e.version&&(t.uint32(24),t.uint32(e.version)),null!=e.timestamp&&(t.uint32(80),t.sint64(e.timestamp)),null!=e.meta&&(t.uint32(90),t.bytes(e.meta)),null!=e.rateLimitProof&&(t.uint32(170),hr.codec().encode(e.rateLimitProof,t)),null!=e.ephemeral&&(t.uint32(248),t.bool(e.ephemeral)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t,r={})=>{const n={payload:Z(0),contentTopic:""},i=null==t?e.len:e.pos+t;for(;e.pos<i;){const t=e.uint32();switch(t>>>3){case 1:n.payload=e.bytes();break;case 2:n.contentTopic=e.string();break;case 3:n.version=e.uint32();break;case 10:n.timestamp=e.sint64();break;case 11:n.meta=e.bytes();break;case 21:var s;n.rateLimitProof=hr.codec().decode(e,e.uint32(),{limits:null===(s=r.limits)||void 0===s?void 0:s.rateLimitProof});break;case 31:n.ephemeral=e.bool();break;default:e.skipType(7&t)}}return n}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(fr||(fr={})),(e=>{let t;(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.contentTopic&&""!==e.contentTopic&&(t.uint32(10),t.string(e.contentTopic)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t)=>{const r={contentTopic:""},n=null==t?e.len:e.pos+t;for(;e.pos<n;){const t=e.uint32();t>>>3==1?r.contentTopic=e.string():e.skipType(7&t)}return r}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(e.ContentFilter||(e.ContentFilter={})),e.codec=()=>(null==t&&(t=Gr(((t,r,n={})=>{if(!1!==n.lengthDelimited&&r.fork(),null!=t.subscribe&&!1!==t.subscribe&&(r.uint32(8),r.bool(t.subscribe)),null!=t.topic&&""!==t.topic&&(r.uint32(18),r.string(t.topic)),null!=t.contentFilters)for(const n of t.contentFilters)r.uint32(26),e.ContentFilter.codec().encode(n,r);!1!==n.lengthDelimited&&r.ldelim()}),((t,r,n={})=>{const i={subscribe:!1,topic:"",contentFilters:[]},s=null==r?t.len:t.pos+r;for(;t.pos<s;){const r=t.uint32();switch(r>>>3){case 1:i.subscribe=t.bool();break;case 2:i.topic=t.string();break;case 3:var o,a;if(null!=(null===(o=n.limits)||void 0===o?void 0:o.contentFilters)&&i.contentFilters.length===n.limits.contentFilters)throw new Xr('Decode error - map field "contentFilters" had too many elements');i.contentFilters.push(e.ContentFilter.codec().decode(t,t.uint32(),{limits:null===(a=n.limits)||void 0===a?void 0:a.contentFilters$}));break;default:t.skipType(7&r)}}return i}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(pr||(pr={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{if(!1!==r.lengthDelimited&&t.fork(),null!=e.messages)for(const r of e.messages)t.uint32(10),yr.codec().encode(r,t);!1!==r.lengthDelimited&&t.ldelim()}),((e,t,r={})=>{const n={messages:[]},i=null==t?e.len:e.pos+t;for(;e.pos<i;){const t=e.uint32();if(t>>>3==1){var s,o;if(null!=(null===(s=r.limits)||void 0===s?void 0:s.messages)&&n.messages.length===r.limits.messages)throw new Xr('Decode error - map field "messages" had too many elements');n.messages.push(yr.codec().decode(e,e.uint32(),{limits:null===(o=r.limits)||void 0===o?void 0:o.messages$}))}else e.skipType(7&t)}return n}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(gr||(gr={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.requestId&&""!==e.requestId&&(t.uint32(10),t.string(e.requestId)),null!=e.request&&(t.uint32(18),pr.codec().encode(e.request,t)),null!=e.push&&(t.uint32(26),gr.codec().encode(e.push,t)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t,r={})=>{const n={requestId:""},i=null==t?e.len:e.pos+t;for(;e.pos<i;){const t=e.uint32();switch(t>>>3){case 1:n.requestId=e.string();break;case 2:var s;n.request=pr.codec().decode(e,e.uint32(),{limits:null===(s=r.limits)||void 0===s?void 0:s.request});break;case 3:var o;n.push=gr.codec().decode(e,e.uint32(),{limits:null===(o=r.limits)||void 0===o?void 0:o.push});break;default:e.skipType(7&t)}}return n}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(mr||(mr={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.proof&&e.proof.byteLength>0&&(t.uint32(10),t.bytes(e.proof)),null!=e.merkleRoot&&e.merkleRoot.byteLength>0&&(t.uint32(18),t.bytes(e.merkleRoot)),null!=e.epoch&&e.epoch.byteLength>0&&(t.uint32(26),t.bytes(e.epoch)),null!=e.shareX&&e.shareX.byteLength>0&&(t.uint32(34),t.bytes(e.shareX)),null!=e.shareY&&e.shareY.byteLength>0&&(t.uint32(42),t.bytes(e.shareY)),null!=e.nullifier&&e.nullifier.byteLength>0&&(t.uint32(50),t.bytes(e.nullifier)),null!=e.rlnIdentifier&&e.rlnIdentifier.byteLength>0&&(t.uint32(58),t.bytes(e.rlnIdentifier)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t)=>{const r={proof:Z(0),merkleRoot:Z(0),epoch:Z(0),shareX:Z(0),shareY:Z(0),nullifier:Z(0),rlnIdentifier:Z(0)},n=null==t?e.len:e.pos+t;for(;e.pos<n;){const t=e.uint32();switch(t>>>3){case 1:r.proof=e.bytes();break;case 2:r.merkleRoot=e.bytes();break;case 3:r.epoch=e.bytes();break;case 4:r.shareX=e.bytes();break;case 5:r.shareY=e.bytes();break;case 6:r.nullifier=e.bytes();break;case 7:r.rlnIdentifier=e.bytes();break;default:e.skipType(7&t)}}return r}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(vr||(vr={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.payload&&e.payload.byteLength>0&&(t.uint32(10),t.bytes(e.payload)),null!=e.contentTopic&&""!==e.contentTopic&&(t.uint32(18),t.string(e.contentTopic)),null!=e.version&&(t.uint32(24),t.uint32(e.version)),null!=e.timestamp&&(t.uint32(80),t.sint64(e.timestamp)),null!=e.meta&&(t.uint32(90),t.bytes(e.meta)),null!=e.rateLimitProof&&(t.uint32(170),vr.codec().encode(e.rateLimitProof,t)),null!=e.ephemeral&&(t.uint32(248),t.bool(e.ephemeral)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t,r={})=>{const n={payload:Z(0),contentTopic:""},i=null==t?e.len:e.pos+t;for(;e.pos<i;){const t=e.uint32();switch(t>>>3){case 1:n.payload=e.bytes();break;case 2:n.contentTopic=e.string();break;case 3:n.version=e.uint32();break;case 10:n.timestamp=e.sint64();break;case 11:n.meta=e.bytes();break;case 21:var s;n.rateLimitProof=vr.codec().decode(e,e.uint32(),{limits:null===(s=r.limits)||void 0===s?void 0:s.rateLimitProof});break;case 31:n.ephemeral=e.bool();break;default:e.skipType(7&t)}}return n}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(yr||(yr={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.contentTopic&&""!==e.contentTopic&&(t.uint32(18),t.string(e.contentTopic)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t)=>{const r={contentTopic:""},n=null==t?e.len:e.pos+t;for(;e.pos<n;){const t=e.uint32();t>>>3==2?r.contentTopic=e.string():e.skipType(7&t)}return r}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(br||(br={})),(e=>{let t,r,n;(e=>{e.SUBSCRIBER_PING="SUBSCRIBER_PING",e.SUBSCRIBE="SUBSCRIBE",e.UNSUBSCRIBE="UNSUBSCRIBE",e.UNSUBSCRIBE_ALL="UNSUBSCRIBE_ALL"})(t=e.FilterSubscribeType||(e.FilterSubscribeType={})),(e=>{e[e.SUBSCRIBER_PING=0]="SUBSCRIBER_PING",e[e.SUBSCRIBE=1]="SUBSCRIBE",e[e.UNSUBSCRIBE=2]="UNSUBSCRIBE",e[e.UNSUBSCRIBE_ALL=3]="UNSUBSCRIBE_ALL"})(r||(r={})),(e=>{e.codec=()=>Wr(r)})(t=e.FilterSubscribeType||(e.FilterSubscribeType={})),e.codec=()=>(null==n&&(n=Gr(((t,n,i={})=>{if(!1!==i.lengthDelimited&&n.fork(),null!=t.requestId&&""!==t.requestId&&(n.uint32(10),n.string(t.requestId)),null!=t.filterSubscribeType&&0!==r[t.filterSubscribeType]&&(n.uint32(16),e.FilterSubscribeType.codec().encode(t.filterSubscribeType,n)),null!=t.pubsubTopic&&(n.uint32(82),n.string(t.pubsubTopic)),null!=t.contentTopics)for(const e of t.contentTopics)n.uint32(90),n.string(e);!1!==i.lengthDelimited&&n.ldelim()}),((r,n,i={})=>{const s={requestId:"",filterSubscribeType:t.SUBSCRIBER_PING,contentTopics:[]},o=null==n?r.len:r.pos+n;for(;r.pos<o;){const t=r.uint32();switch(t>>>3){case 1:s.requestId=r.string();break;case 2:s.filterSubscribeType=e.FilterSubscribeType.codec().decode(r);break;case 10:s.pubsubTopic=r.string();break;case 11:var a;if(null!=(null===(a=i.limits)||void 0===a?void 0:a.contentTopics)&&s.contentTopics.length===i.limits.contentTopics)throw new Xr('Decode error - map field "contentTopics" had too many elements');s.contentTopics.push(r.string());break;default:r.skipType(7&t)}}return s}))),n),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(wr||(wr={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.requestId&&""!==e.requestId&&(t.uint32(10),t.string(e.requestId)),null!=e.statusCode&&0!==e.statusCode&&(t.uint32(80),t.uint32(e.statusCode)),null!=e.statusDesc&&(t.uint32(90),t.string(e.statusDesc)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t)=>{const r={requestId:"",statusCode:0},n=null==t?e.len:e.pos+t;for(;e.pos<n;){const t=e.uint32();switch(t>>>3){case 1:r.requestId=e.string();break;case 10:r.statusCode=e.uint32();break;case 11:r.statusDesc=e.string();break;default:e.skipType(7&t)}}return r}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(Er||(Er={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.wakuMessage&&(t.uint32(10),Ir.codec().encode(e.wakuMessage,t)),null!=e.pubsubTopic&&(t.uint32(18),t.string(e.pubsubTopic)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t,r={})=>{const n={},i=null==t?e.len:e.pos+t;for(;e.pos<i;){const t=e.uint32();switch(t>>>3){case 1:var s;n.wakuMessage=Ir.codec().decode(e,e.uint32(),{limits:null===(s=r.limits)||void 0===s?void 0:s.wakuMessage});break;case 2:n.pubsubTopic=e.string();break;default:e.skipType(7&t)}}return n}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(Sr||(Sr={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.proof&&e.proof.byteLength>0&&(t.uint32(10),t.bytes(e.proof)),null!=e.merkleRoot&&e.merkleRoot.byteLength>0&&(t.uint32(18),t.bytes(e.merkleRoot)),null!=e.epoch&&e.epoch.byteLength>0&&(t.uint32(26),t.bytes(e.epoch)),null!=e.shareX&&e.shareX.byteLength>0&&(t.uint32(34),t.bytes(e.shareX)),null!=e.shareY&&e.shareY.byteLength>0&&(t.uint32(42),t.bytes(e.shareY)),null!=e.nullifier&&e.nullifier.byteLength>0&&(t.uint32(50),t.bytes(e.nullifier)),null!=e.rlnIdentifier&&e.rlnIdentifier.byteLength>0&&(t.uint32(58),t.bytes(e.rlnIdentifier)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t)=>{const r={proof:Z(0),merkleRoot:Z(0),epoch:Z(0),shareX:Z(0),shareY:Z(0),nullifier:Z(0),rlnIdentifier:Z(0)},n=null==t?e.len:e.pos+t;for(;e.pos<n;){const t=e.uint32();switch(t>>>3){case 1:r.proof=e.bytes();break;case 2:r.merkleRoot=e.bytes();break;case 3:r.epoch=e.bytes();break;case 4:r.shareX=e.bytes();break;case 5:r.shareY=e.bytes();break;case 6:r.nullifier=e.bytes();break;case 7:r.rlnIdentifier=e.bytes();break;default:e.skipType(7&t)}}return r}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(Ar||(Ar={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.payload&&e.payload.byteLength>0&&(t.uint32(10),t.bytes(e.payload)),null!=e.contentTopic&&""!==e.contentTopic&&(t.uint32(18),t.string(e.contentTopic)),null!=e.version&&(t.uint32(24),t.uint32(e.version)),null!=e.timestamp&&(t.uint32(80),t.sint64(e.timestamp)),null!=e.meta&&(t.uint32(90),t.bytes(e.meta)),null!=e.rateLimitProof&&(t.uint32(170),Ar.codec().encode(e.rateLimitProof,t)),null!=e.ephemeral&&(t.uint32(248),t.bool(e.ephemeral)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t,r={})=>{const n={payload:Z(0),contentTopic:""},i=null==t?e.len:e.pos+t;for(;e.pos<i;){const t=e.uint32();switch(t>>>3){case 1:n.payload=e.bytes();break;case 2:n.contentTopic=e.string();break;case 3:n.version=e.uint32();break;case 10:n.timestamp=e.sint64();break;case 11:n.meta=e.bytes();break;case 21:var s;n.rateLimitProof=Ar.codec().decode(e,e.uint32(),{limits:null===(s=r.limits)||void 0===s?void 0:s.rateLimitProof});break;case 31:n.ephemeral=e.bool();break;default:e.skipType(7&t)}}return n}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(Ir||(Ir={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.pubsubTopic&&""!==e.pubsubTopic&&(t.uint32(10),t.string(e.pubsubTopic)),null!=e.message&&(t.uint32(18),Rr.codec().encode(e.message,t)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t,r={})=>{const n={pubsubTopic:""},i=null==t?e.len:e.pos+t;for(;e.pos<i;){const t=e.uint32();switch(t>>>3){case 1:n.pubsubTopic=e.string();break;case 2:var s;n.message=Rr.codec().decode(e,e.uint32(),{limits:null===(s=r.limits)||void 0===s?void 0:s.message});break;default:e.skipType(7&t)}}return n}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(_r||(_r={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.isSuccess&&!1!==e.isSuccess&&(t.uint32(8),t.bool(e.isSuccess)),null!=e.info&&(t.uint32(18),t.string(e.info)),null!=e.statusCode&&(t.uint32(80),t.uint32(e.statusCode)),null!=e.statusDesc&&(t.uint32(90),t.string(e.statusDesc)),null!=e.relayPeerCount&&(t.uint32(96),t.uint32(e.relayPeerCount)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t)=>{const r={isSuccess:!1},n=null==t?e.len:e.pos+t;for(;e.pos<n;){const t=e.uint32();switch(t>>>3){case 1:r.isSuccess=e.bool();break;case 2:r.info=e.string();break;case 10:r.statusCode=e.uint32();break;case 11:r.statusDesc=e.string();break;case 12:r.relayPeerCount=e.uint32();break;default:e.skipType(7&t)}}return r}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(Cr||(Cr={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.requestId&&""!==e.requestId&&(t.uint32(10),t.string(e.requestId)),null!=e.request&&(t.uint32(18),_r.codec().encode(e.request,t)),null!=e.response&&(t.uint32(26),Cr.codec().encode(e.response,t)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t,r={})=>{const n={requestId:""},i=null==t?e.len:e.pos+t;for(;e.pos<i;){const t=e.uint32();switch(t>>>3){case 1:n.requestId=e.string();break;case 2:var s;n.request=_r.codec().decode(e,e.uint32(),{limits:null===(s=r.limits)||void 0===s?void 0:s.request});break;case 3:var o;n.response=Cr.codec().decode(e,e.uint32(),{limits:null===(o=r.limits)||void 0===o?void 0:o.response});break;default:e.skipType(7&t)}}return n}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(kr||(kr={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.requestId&&""!==e.requestId&&(t.uint32(10),t.string(e.requestId)),null!=e.pubsubTopic&&(t.uint32(162),t.string(e.pubsubTopic)),null!=e.message&&(t.uint32(170),Rr.codec().encode(e.message,t)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t,r={})=>{const n={requestId:""},i=null==t?e.len:e.pos+t;for(;e.pos<i;){const t=e.uint32();switch(t>>>3){case 1:n.requestId=e.string();break;case 20:n.pubsubTopic=e.string();break;case 21:var s;n.message=Rr.codec().decode(e,e.uint32(),{limits:null===(s=r.limits)||void 0===s?void 0:s.message});break;default:e.skipType(7&t)}}return n}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(xr||(xr={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.requestId&&""!==e.requestId&&(t.uint32(10),t.string(e.requestId)),null!=e.statusCode&&0!==e.statusCode&&(t.uint32(80),t.uint32(e.statusCode)),null!=e.statusDesc&&(t.uint32(90),t.string(e.statusDesc)),null!=e.relayPeerCount&&(t.uint32(96),t.uint32(e.relayPeerCount)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t)=>{const r={requestId:"",statusCode:0},n=null==t?e.len:e.pos+t;for(;e.pos<n;){const t=e.uint32();switch(t>>>3){case 1:r.requestId=e.string();break;case 10:r.statusCode=e.uint32();break;case 11:r.statusDesc=e.string();break;case 12:r.relayPeerCount=e.uint32();break;default:e.skipType(7&t)}}return r}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(Tr||(Tr={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.proof&&e.proof.byteLength>0&&(t.uint32(10),t.bytes(e.proof)),null!=e.merkleRoot&&e.merkleRoot.byteLength>0&&(t.uint32(18),t.bytes(e.merkleRoot)),null!=e.epoch&&e.epoch.byteLength>0&&(t.uint32(26),t.bytes(e.epoch)),null!=e.shareX&&e.shareX.byteLength>0&&(t.uint32(34),t.bytes(e.shareX)),null!=e.shareY&&e.shareY.byteLength>0&&(t.uint32(42),t.bytes(e.shareY)),null!=e.nullifier&&e.nullifier.byteLength>0&&(t.uint32(50),t.bytes(e.nullifier)),null!=e.rlnIdentifier&&e.rlnIdentifier.byteLength>0&&(t.uint32(58),t.bytes(e.rlnIdentifier)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t)=>{const r={proof:Z(0),merkleRoot:Z(0),epoch:Z(0),shareX:Z(0),shareY:Z(0),nullifier:Z(0),rlnIdentifier:Z(0)},n=null==t?e.len:e.pos+t;for(;e.pos<n;){const t=e.uint32();switch(t>>>3){case 1:r.proof=e.bytes();break;case 2:r.merkleRoot=e.bytes();break;case 3:r.epoch=e.bytes();break;case 4:r.shareX=e.bytes();break;case 5:r.shareY=e.bytes();break;case 6:r.nullifier=e.bytes();break;case 7:r.rlnIdentifier=e.bytes();break;default:e.skipType(7&t)}}return r}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)})(Pr||(Pr={})),(e=>{let t;e.codec=()=>(null==t&&(t=Gr(((e,t,r={})=>{!1!==r.lengthDelimited&&t.fork(),null!=e.payload&&e.payload.byteLength>0&&(t.uint32(10),t.bytes(e.payload)),null!=e.contentTopic&&""!==e.contentTopic&&(t.uint32(18),t.string(e.contentTopic)),null!=e.version&&(t.uint32(24),t.uint32(e.version)),null!=e.timestamp&&(t.uint32(80),t.sint64(e.timestamp)),null!=e.meta&&(t.uint32(90),t.bytes(e.meta)),null!=e.rateLimitProof&&(t.uint32(170),Pr.codec().encode(e.rateLimitProof,t)),null!=e.ephemeral&&(t.uint32(248),t.bool(e.ephemeral)),!1!==r.lengthDelimited&&t.ldelim()}),((e,t,r={})=>{const n={payload:Z(0),contentTopic:""},i=null==t?e.len:e.pos+t;for(;e.pos<i;){const t=e.uint32();switch(t>>>3){case 1:n.payload=e.bytes();break;case 2:n.contentTopic=e.string();break;case 3:n.version=e.uint32();break;case 10:n.timestamp=e.sint64();break;case 11:n.meta=e.bytes();break;case 21:var s;n.rateLimitProof=Pr.codec().decode(e,e.uint32(),{limits:null===(s=r.limits)||void 0===s?void 0:s.rateLimitProof});break;case 31:n.ephemeral=e.bool();break;default:e.skipType(7&t)}}return n}))),t),e.encode=t=>cr(t,e.codec()),e.decode=(t,r)=>Ie(t,e.codec(),r)