UNPKG

@frames.js/debugger

Version:

Debug your Frames.js applications

1 lines 393 kB
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3215],{41171:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{ddA:function(){return FarcasterNetwork},ppm:function(){return getFarcasterTime},so9:function(){return FrameActionBody},uFe:function(){return makeFrameAction},v0C:function(){return Message},vJz:function(){return NobleEd25519Signer}});var UserNameType2,HashScheme2,SignatureScheme2,MessageType2,FarcasterNetwork4,UserDataType3,CastType2,ReactionType3,Protocol2,GossipVersion2,OnChainEventType3,SignerEventType2,IdRegisterEventType2,HubEventType3,StoreType2,StorageUnitType2,_noble_hashes_blake3__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(96153),neverthrow__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(25387),viem__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(83243),viem__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(69800),bs58__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(90512),_noble_curves_ed25519__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(21875),viem__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(58794),viem__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(55508),viem__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(65359),viem_chains__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(59374),viem_chains__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(23379),viem_chains__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(39451),viem_chains__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6957),viem_ens__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(98952),_faker_js_faker__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(23404),viem_accounts__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(7699),viem_accounts__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(53188),_noble_hashes_utils__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(36966),viem__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(70480),viem_actions__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(33027),Buffer=__webpack_require__(73860).Buffer,__create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__esm=(e,t)=>function(){return e&&(t=(0,e[__getOwnPropNames(e)[0]])(e=0)),t},__commonJS=(e,t)=>function(){return t||(0,e[__getOwnPropNames(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var n in t)__defProp(e,n,{get:t[n],enumerable:!0})},__copyProps=(e,t,n,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of __getOwnPropNames(t))__hasOwnProp.call(e,r)||r===n||__defProp(e,r,{get:()=>t[r],enumerable:!(i=__getOwnPropDesc(t,r))||i.enumerable});return e},__toESM=(e,t,n)=>(n=null!=e?__create(__getProtoOf(e)):{},__copyProps(!t&&e&&e.__esModule?n:__defProp(n,"default",{value:e,enumerable:!0}),e)),__publicField=(e,t,n)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),n),init_esm_shims=__esm({"../../node_modules/tsup/assets/esm_shims.js"(){}}),require_aspromise=__commonJS({"../../node_modules/@protobufjs/aspromise/index.js"(e,t){function n(e,t){for(var n=Array(arguments.length-1),i=0,r=2,a=!0;r<arguments.length;)n[i++]=arguments[r++];return new Promise(function(r,s){n[i]=function(e){if(a){if(a=!1,e)s(e);else{for(var t=Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];r.apply(null,t)}}};try{e.apply(t||null,n)}catch(e){a&&(a=!1,s(e))}})}init_esm_shims(),t.exports=n}}),require_base64=__commonJS({"../../node_modules/@protobufjs/base64/index.js"(e){init_esm_shims();var t,n=e;n.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};var i=Array(64),r=Array(123);for(t=0;t<64;)r[i[t]=t<26?t+65:t<52?t+71:t<62?t-4:t-59|43]=t++;n.encode=function(e,t,n){for(var r,a=null,s=[],o=0,d=0;t<n;){var u=e[t++];switch(d){case 0:s[o++]=i[u>>2],r=(3&u)<<4,d=1;break;case 1:s[o++]=i[r|u>>4],r=(15&u)<<2,d=2;break;case 2:s[o++]=i[r|u>>6],s[o++]=i[63&u],d=0}o>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,s)),o=0)}return(d&&(s[o++]=i[r],s[o++]=61,1===d&&(s[o++]=61)),a)?(o&&a.push(String.fromCharCode.apply(String,s.slice(0,o))),a.join("")):String.fromCharCode.apply(String,s.slice(0,o))};var a="invalid encoding";n.decode=function(e,t,n){for(var i,s=n,o=0,d=0;d<e.length;){var u=e.charCodeAt(d++);if(61===u&&o>1)break;if(void 0===(u=r[u]))throw Error(a);switch(o){case 0:i=u,o=1;break;case 1:t[n++]=i<<2|(48&u)>>4,i=u,o=2;break;case 2:t[n++]=(15&i)<<4|(60&u)>>2,i=u,o=3;break;case 3:t[n++]=(3&i)<<6|u,o=0}}if(1===o)throw Error(a);return n-s},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}}),require_eventemitter=__commonJS({"../../node_modules/@protobufjs/eventemitter/index.js"(e,t){function n(){this._listeners={}}init_esm_shims(),t.exports=n,n.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},n.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],i=0;i<n.length;)n[i].fn===t?n.splice(i,1):++i;return this},n.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],i=1;i<arguments.length;)n.push(arguments[i++]);for(i=0;i<t.length;)t[i].fn.apply(t[i++].ctx,n)}return this}}}),require_float=__commonJS({"../../node_modules/@protobufjs/float/index.js"(e,t){function n(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),i=128===n[3];function r(e,i,r){t[0]=e,i[r]=n[0],i[r+1]=n[1],i[r+2]=n[2],i[r+3]=n[3]}function a(e,i,r){t[0]=e,i[r]=n[3],i[r+1]=n[2],i[r+2]=n[1],i[r+3]=n[0]}function s(e,i){return n[0]=e[i],n[1]=e[i+1],n[2]=e[i+2],n[3]=e[i+3],t[0]}function o(e,i){return n[3]=e[i],n[2]=e[i+1],n[1]=e[i+2],n[0]=e[i+3],t[0]}e.writeFloatLE=i?r:a,e.writeFloatBE=i?a:r,e.readFloatLE=i?s:o,e.readFloatBE=i?o:s}():function(){function t(e,t,n,i){var r=t<0?1:0;if(r&&(t=-t),0===t)e(1/t>0?0:2147483648,n,i);else if(isNaN(t))e(2143289344,n,i);else if(t>34028234663852886e22)e((r<<31|2139095040)>>>0,n,i);else if(t<11754943508222875e-54)e((r<<31|Math.round(t/1401298464324817e-60))>>>0,n,i);else{var a=Math.floor(Math.log(t)/Math.LN2),s=8388607&Math.round(t*Math.pow(2,-a)*8388608);e((r<<31|a+127<<23|s)>>>0,n,i)}}function n(e,t,n){var i=e(t,n),r=(i>>31)*2+1,a=i>>>23&255,s=8388607&i;return 255===a?s?NaN:1/0*r:0===a?1401298464324817e-60*r*s:r*Math.pow(2,a-150)*(s+8388608)}e.writeFloatLE=t.bind(null,i),e.writeFloatBE=t.bind(null,r),e.readFloatLE=n.bind(null,a),e.readFloatBE=n.bind(null,s)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),i=128===n[7];function r(e,i,r){t[0]=e,i[r]=n[0],i[r+1]=n[1],i[r+2]=n[2],i[r+3]=n[3],i[r+4]=n[4],i[r+5]=n[5],i[r+6]=n[6],i[r+7]=n[7]}function a(e,i,r){t[0]=e,i[r]=n[7],i[r+1]=n[6],i[r+2]=n[5],i[r+3]=n[4],i[r+4]=n[3],i[r+5]=n[2],i[r+6]=n[1],i[r+7]=n[0]}function s(e,i){return n[0]=e[i],n[1]=e[i+1],n[2]=e[i+2],n[3]=e[i+3],n[4]=e[i+4],n[5]=e[i+5],n[6]=e[i+6],n[7]=e[i+7],t[0]}function o(e,i){return n[7]=e[i],n[6]=e[i+1],n[5]=e[i+2],n[4]=e[i+3],n[3]=e[i+4],n[2]=e[i+5],n[1]=e[i+6],n[0]=e[i+7],t[0]}e.writeDoubleLE=i?r:a,e.writeDoubleBE=i?a:r,e.readDoubleLE=i?s:o,e.readDoubleBE=i?o:s}():function(){function t(e,t,n,i,r,a){var s,o=i<0?1:0;if(o&&(i=-i),0===i)e(0,r,a+t),e(1/i>0?0:2147483648,r,a+n);else if(isNaN(i))e(0,r,a+t),e(2146959360,r,a+n);else if(i>17976931348623157e292)e(0,r,a+t),e((o<<31|2146435072)>>>0,r,a+n);else if(i<22250738585072014e-324)e((s=i/5e-324)>>>0,r,a+t),e((o<<31|s/4294967296)>>>0,r,a+n);else{var d=Math.floor(Math.log(i)/Math.LN2);1024===d&&(d=1023),e(4503599627370496*(s=i*Math.pow(2,-d))>>>0,r,a+t),e((o<<31|d+1023<<20|1048576*s&1048575)>>>0,r,a+n)}}function n(e,t,n,i,r){var a=e(i,r+t),s=e(i,r+n),o=(s>>31)*2+1,d=s>>>20&2047,u=4294967296*(1048575&s)+a;return 2047===d?u?NaN:1/0*o:0===d?5e-324*o*u:o*Math.pow(2,d-1075)*(u+4503599627370496)}e.writeDoubleLE=t.bind(null,i,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=n.bind(null,a,0,4),e.readDoubleBE=n.bind(null,s,4,0)}(),e}function i(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function r(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function a(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function s(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}init_esm_shims(),t.exports=n(n)}}),require_inquire=__commonJS({"../../node_modules/@protobufjs/inquire/index.js"(exports,module){function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}init_esm_shims(),module.exports=inquire}}),require_utf8=__commonJS({"../../node_modules/@protobufjs/utf8/index.js"(e){init_esm_shims();var t=e;t.length=function(e){for(var t=0,n=0,i=0;i<e.length;++i)(n=e.charCodeAt(i))<128?t+=1:n<2048?t+=2:(64512&n)==55296&&(64512&e.charCodeAt(i+1))==56320?(++i,t+=4):t+=3;return t},t.read=function(e,t,n){if(n-t<1)return"";for(var i,r=null,a=[],s=0;t<n;)(i=e[t++])<128?a[s++]=i:i>191&&i<224?a[s++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,a[s++]=55296+(i>>10),a[s++]=56320+(1023&i)):a[s++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,a)),s=0);return r?(s&&r.push(String.fromCharCode.apply(String,a.slice(0,s))),r.join("")):String.fromCharCode.apply(String,a.slice(0,s))},t.write=function(e,t,n){for(var i,r,a=n,s=0;s<e.length;++s)(i=e.charCodeAt(s))<128?t[n++]=i:(i<2048?t[n++]=i>>6|192:((64512&i)==55296&&(64512&(r=e.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&r),++s,t[n++]=i>>18|240,t[n++]=i>>12&63|128):t[n++]=i>>12|224,t[n++]=i>>6&63|128),t[n++]=63&i|128);return n-a}}}),require_pool=__commonJS({"../../node_modules/@protobufjs/pool/index.js"(e,t){function n(e,t,n){var i=n||8192,r=i>>>1,a=null,s=i;return function(n){if(n<1||n>r)return e(n);s+n>i&&(a=e(i),s=0);var o=t.call(a,s,s+=n);return 7&s&&(s=(7|s)+1),o}}init_esm_shims(),t.exports=n}}),require_longbits=__commonJS({"../../node_modules/protobufjs/src/util/longbits.js"(e,t){init_esm_shims(),t.exports=i;var n=require_minimal();function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var r=i.zero=new i(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var a=i.zeroHash="\x00\x00\x00\x00\x00\x00\x00\x00";i.fromNumber=function(e){if(0===e)return r;var t=e<0;t&&(e=-e);var n=e>>>0,a=(e-n)/4294967296>>>0;return t&&(a=~a>>>0,n=~n>>>0,++n>4294967295&&(n=0,++a>4294967295&&(a=0))),new i(n,a)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(n.isString(e)){if(!n.Long)return i.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):r},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===a?r:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}}}),require_minimal=__commonJS({"../../node_modules/protobufjs/src/util/minimal.js"(e){init_esm_shims();var t=e;function n(e,t,n){for(var i=Object.keys(t),r=0;r<i.length;++r)void 0!==e[i[r]]&&n||(e[i[r]]=t[i[r]]);return e}function i(e){function t(e,i){if(!(this instanceof t))return new t(e,i);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:Error().stack||""}),i&&n(this,i)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+": "+this.message},t}t.asPromise=require_aspromise(),t.base64=require_base64(),t.EventEmitter=require_eventemitter(),t.float=require_float(),t.inquire=require_inquire(),t.utf8=require_utf8(),t.pool=require_pool(),t.LongBits=require_longbits(),t.isNode=!!("undefined"!=typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),t.global=t.isNode&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||e,t.emptyArray=Object.freeze?Object.freeze([]):[],t.emptyObject=Object.freeze?Object.freeze({}):{},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.isString=function(e){return"string"==typeof e||e instanceof String},t.isObject=function(e){return e&&"object"==typeof e},t.isset=t.isSet=function(e,t){var n=e[t];return!!(null!=n&&e.hasOwnProperty(t))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},t.Buffer=function(){try{var e=t.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(e){return"number"==typeof e?t.Buffer?t._Buffer_allocUnsafe(e):new t.Array(e):t.Buffer?t._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},t.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||t.inquire("long"),t.key2Re=/^true|false|0|1$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,n){var i=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(i.lo,i.hi,n):i.toNumber(!!n)},t.merge=n,t.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},t.newError=i,t.ProtocolError=i("ProtocolError"),t.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},t.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},t.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},t._configure=function(){var e=t.Buffer;if(!e){t._Buffer_from=t._Buffer_allocUnsafe=null;return}t._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},t._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}}}}),require_writer=__commonJS({"../../node_modules/protobufjs/src/writer.js"(e,t){init_esm_shims(),t.exports=l;var n,i=require_minimal(),r=i.LongBits,a=i.base64,s=i.utf8;function o(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function d(){}function u(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function l(){this.len=0,this.head=new o(d,0,0),this.tail=this.head,this.states=null}var p=function(){return i.Buffer?function(){return(l.create=function(){return new n})()}:function(){return new l}};function c(e,t,n){t[n]=255&e}function y(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e}function f(e,t){this.len=e,this.next=void 0,this.val=t}function m(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function g(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}l.create=p(),l.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(l.alloc=i.pool(l.alloc,i.Array.prototype.subarray)),l.prototype._push=function(e,t,n){return this.tail=this.tail.next=new o(e,t,n),this.len+=t,this},f.prototype=Object.create(o.prototype),f.prototype.fn=y,l.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new f((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},l.prototype.int32=function(e){return e<0?this._push(m,10,r.fromNumber(e)):this.uint32(e)},l.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},l.prototype.uint64=function(e){var t=r.from(e);return this._push(m,t.length(),t)},l.prototype.int64=l.prototype.uint64,l.prototype.sint64=function(e){var t=r.from(e).zzEncode();return this._push(m,t.length(),t)},l.prototype.bool=function(e){return this._push(c,1,e?1:0)},l.prototype.fixed32=function(e){return this._push(g,4,e>>>0)},l.prototype.sfixed32=l.prototype.fixed32,l.prototype.fixed64=function(e){var t=r.from(e);return this._push(g,4,t.lo)._push(g,4,t.hi)},l.prototype.sfixed64=l.prototype.fixed64,l.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},l.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var v=i.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var i=0;i<e.length;++i)t[n+i]=e[i]};l.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(c,1,0);if(i.isString(e)){var n=l.alloc(t=a.length(e));a.decode(e,n,0),e=n}return this.uint32(t)._push(v,t,e)},l.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(c,1,0)},l.prototype.fork=function(){return this.states=new u(this),this.head=this.tail=new o(d,0,0),this.len=0,this},l.prototype.reset=function(){return 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 o(d,0,0),this.len=0),this},l.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},l.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},l._configure=function(e){n=e,l.create=p(),n._configure()}}}),require_writer_buffer=__commonJS({"../../node_modules/protobufjs/src/writer_buffer.js"(e,t){init_esm_shims(),t.exports=r;var n=require_writer();(r.prototype=Object.create(n.prototype)).constructor=r;var i=require_minimal();function r(){n.call(this)}function a(e,t,n){e.length<40?i.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}r._configure=function(){r.alloc=i._Buffer_allocUnsafe,r.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var i=0;i<e.length;)t[n++]=e[i++]}},r.prototype.bytes=function(e){i.isString(e)&&(e=i._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(r.writeBytesBuffer,t,e),this},r.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},r._configure()}}),require_reader=__commonJS({"../../node_modules/protobufjs/src/reader.js"(e,t){init_esm_shims(),t.exports=o;var n,i=require_minimal(),r=i.LongBits,a=i.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function o(e){this.buf=e,this.pos=0,this.len=e.length}var d="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new o(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new o(e);throw Error("illegal buffer")},u=function(){return i.Buffer?function(e){return(o.create=function(e){return i.Buffer.isBuffer(e)?new n(e):d(e)})(e)}:d};function l(){var e=new r(0,0),t=0;if(this.len-this.pos>4){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;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw s(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}if(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 s(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")}function p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function c(){if(this.pos+8>this.len)throw s(this,8);return new r(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}o.create=u(),o.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,o.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(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,s(this,10);return e}}(),o.prototype.int32=function(){return 0|this.uint32()},o.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},o.prototype.bool=function(){return 0!==this.uint32()},o.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return p(this.buf,this.pos+=4)},o.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|p(this.buf,this.pos+=4)},o.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},o.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},o.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return(this.pos+=e,Array.isArray(this.buf))?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},o.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},o.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do if(this.pos>=this.len)throw s(this);while(128&this.buf[this.pos++]);return this},o.prototype.skipType=function(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},o._configure=function(e){n=e,o.create=u(),n._configure();var t=i.Long?"toLong":"toNumber";i.merge(o.prototype,{int64:function(){return l.call(this)[t](!1)},uint64:function(){return l.call(this)[t](!0)},sint64:function(){return l.call(this).zzDecode()[t](!1)},fixed64:function(){return c.call(this)[t](!0)},sfixed64:function(){return c.call(this)[t](!1)}})}}}),require_reader_buffer=__commonJS({"../../node_modules/protobufjs/src/reader_buffer.js"(e,t){init_esm_shims(),t.exports=r;var n=require_reader();(r.prototype=Object.create(n.prototype)).constructor=r;var i=require_minimal();function r(e){n.call(this,e)}r._configure=function(){i.Buffer&&(r.prototype._slice=i.Buffer.prototype.slice)},r.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},r._configure()}}),require_service=__commonJS({"../../node_modules/protobufjs/src/rpc/service.js"(e,t){init_esm_shims(),t.exports=i;var n=require_minimal();function i(e,t,i){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!i}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,i,r,a,s){if(!a)throw TypeError("request must be specified");var o=this;if(!s)return n.asPromise(e,o,t,i,r,a);if(!o.rpcImpl){setTimeout(function(){s(Error("already ended"))},0);return}try{return o.rpcImpl(t,i[o.requestDelimited?"encodeDelimited":"encode"](a).finish(),function(e,n){if(e)return o.emit("error",e,t),s(e);if(null===n){o.end(!0);return}if(!(n instanceof r))try{n=r[o.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return o.emit("error",e,t),s(e)}return o.emit("data",n,t),s(null,n)})}catch(e){o.emit("error",e,t),setTimeout(function(){s(e)},0);return}},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}}}),require_rpc=__commonJS({"../../node_modules/protobufjs/src/rpc.js"(e){init_esm_shims(),e.Service=require_service()}}),require_roots=__commonJS({"../../node_modules/protobufjs/src/roots.js"(e,t){init_esm_shims(),t.exports={}}}),require_index_minimal=__commonJS({"../../node_modules/protobufjs/src/index-minimal.js"(e){init_esm_shims();var t=e;function n(){t.util._configure(),t.Writer._configure(t.BufferWriter),t.Reader._configure(t.BufferReader)}t.build="minimal",t.Writer=require_writer(),t.BufferWriter=require_writer_buffer(),t.Reader=require_reader(),t.BufferReader=require_reader_buffer(),t.util=require_minimal(),t.rpc=require_rpc(),t.roots=require_roots(),t.configure=n,n()}}),require_minimal2=__commonJS({"../../node_modules/protobufjs/minimal.js"(e,t){init_esm_shims(),t.exports=require_index_minimal()}}),require_lodash=__commonJS({"../../node_modules/lodash.mergewith/index.js"(e,t){init_esm_shims();var n=200,i="__lodash_hash_undefined__",r=800,a=16,s=9007199254740991,o="[object Arguments]",d="[object Array]",u="[object AsyncFunction]",l="[object Boolean]",p="[object Date]",c="[object Error]",y="[object Function]",f="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Null]",h="[object Object]",b="[object Proxy]",T="[object RegExp]",S="[object Set]",E="[object String]",w="[object Undefined]",k="[object WeakMap]",_="[object ArrayBuffer]",A="[object DataView]",N="[object Float64Array]",P="[object Int8Array]",M="[object Int16Array]",O="[object Int32Array]",B="[object Uint8Array]",I="[object Uint8ClampedArray]",R="[object Uint16Array]",C="[object Uint32Array]",x=/[\\^$.*+?()[\]{}|]/g,U=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,J={};J["[object Float32Array]"]=J[N]=J[P]=J[M]=J[O]=J[B]=J[I]=J[R]=J[C]=!0,J[o]=J[d]=J[_]=J[l]=J[A]=J[p]=J[c]=J[y]=J[m]=J[g]=J[h]=J[T]=J[S]=J[E]=J[k]=!1;var D="object"==typeof global&&global&&global.Object===Object&&global,q="object"==typeof self&&self&&self.Object===Object&&self,H=D||q||Function("return this")(),V="object"==typeof e&&e&&!e.nodeType&&e,z=V&&"object"==typeof t&&t&&!t.nodeType&&t,G=z&&z.exports===V,L=G&&D.process,j=function(){try{var e=z&&z.require&&z.require("util").types;if(e)return e;return L&&L.binding&&L.binding("util")}catch(e){}}(),Y=j&&j.isTypedArray;function K(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function W(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function X(e){return function(t){return e(t)}}function $(e,t){return null==e?void 0:e[t]}function Z(e,t){return function(n){return e(t(n))}}var Q=Array.prototype,ee=Function.prototype,et=Object.prototype,en=H["__core-js_shared__"],ei=ee.toString,er=et.hasOwnProperty,ea=function(){var e=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),es=et.toString,eo=ei.call(Object),ed=RegExp("^"+ei.call(er).replace(x,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eu=G?H.Buffer:void 0,el=H.Symbol,ep=H.Uint8Array,ec=eu?eu.allocUnsafe:void 0,ey=Z(Object.getPrototypeOf,Object),ef=Object.create,em=et.propertyIsEnumerable,eg=Q.splice,ev=el?el.toStringTag:void 0,eh=function(){try{var e=to(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),eb=eu?eu.isBuffer:void 0,eT=Math.max,eS=Date.now,eE=to(H,"Map"),ew=to(Object,"create"),ek=function(){function e(){}return function(t){if(!tO(t))return{};if(ef)return ef(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function e_(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function eA(){this.__data__=ew?ew(null):{},this.size=0}function eN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function eP(e){var t=this.__data__;if(ew){var n=t[e];return n===i?void 0:n}return er.call(t,e)?t[e]:void 0}function eM(e){var t=this.__data__;return ew?void 0!==t[e]:er.call(t,e)}function eO(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ew&&void 0===t?i:t,this}function eB(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function eI(){this.__data__=[],this.size=0}function eR(e){var t=this.__data__,n=eZ(t,e);return!(n<0)&&(n==t.length-1?t.pop():eg.call(t,n,1),--this.size,!0)}function eC(e){var t=this.__data__,n=eZ(t,e);return n<0?void 0:t[n][1]}function ex(e){return eZ(this.__data__,e)>-1}function eU(e,t){var n=this.__data__,i=eZ(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function eF(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function eJ(){this.size=0,this.__data__={hash:new e_,map:new(eE||eB),string:new e_}}function eD(e){var t=ts(this,e).delete(e);return this.size-=t?1:0,t}function eq(e){return ts(this,e).get(e)}function eH(e){return ts(this,e).has(e)}function eV(e,t){var n=ts(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}function ez(e){var t=this.__data__=new eB(e);this.size=t.size}function eG(){this.__data__=new eB,this.size=0}function eL(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ej(e){return this.__data__.get(e)}function eY(e){return this.__data__.has(e)}function eK(e,t){var i=this.__data__;if(i instanceof eB){var r=i.__data__;if(!eE||r.length<n-1)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new eF(r)}return i.set(e,t),this.size=i.size,this}function eW(e,t){var n=tk(e),i=!n&&tw(e),r=!n&&!i&&tN(e),a=!n&&!i&&!r&&tR(e),s=n||i||r||a,o=s?W(e.length,String):[],d=o.length;for(var u in e)(t||er.call(e,u))&&!(s&&("length"==u||r&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||tl(u,d)))&&o.push(u);return o}function eX(e,t,n){(void 0===n||tE(e[t],n))&&(void 0!==n||t in e)||eQ(e,t,n)}function e$(e,t,n){var i=e[t];er.call(e,t)&&tE(i,n)&&(void 0!==n||t in e)||eQ(e,t,n)}function eZ(e,t){for(var n=e.length;n--;)if(tE(e[n][0],t))return n;return -1}function eQ(e,t,n){"__proto__"==t&&eh?eh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}e_.prototype.clear=eA,e_.prototype.delete=eN,e_.prototype.get=eP,e_.prototype.has=eM,e_.prototype.set=eO,eB.prototype.clear=eI,eB.prototype.delete=eR,eB.prototype.get=eC,eB.prototype.has=ex,eB.prototype.set=eU,eF.prototype.clear=eJ,eF.prototype.delete=eD,eF.prototype.get=eq,eF.prototype.has=eH,eF.prototype.set=eV,ez.prototype.clear=eG,ez.prototype.delete=eL,ez.prototype.get=ej,ez.prototype.has=eY,ez.prototype.set=eK;var e0=ta();function e2(e){return null==e?void 0===e?w:v:ev&&ev in Object(e)?td(e):tg(e)}function e3(e){return tB(e)&&e2(e)==o}function e1(e){return!(!tO(e)||ty(e))&&(tP(e)?ed:U).test(tS(e))}function e6(e){return tB(e)&&tM(e.length)&&!!J[e2(e)]}function e4(e){if(!tO(e))return tm(e);var t=tf(e),n=[];for(var i in e)"constructor"==i&&(t||!er.call(e,i))||n.push(i);return n}function e5(e,t,n,i,r){e!==t&&e0(t,function(a,s){if(r||(r=new ez),tO(a))e8(e,t,s,n,e5,i,r);else{var o=i?i(th(e,s),a,s+"",e,t,r):void 0;void 0===o&&(o=a),eX(e,s,o)}},tx)}function e8(e,t,n,i,r,a,s){var o=th(e,n),d=th(t,n),u=s.get(d);if(u){eX(e,n,u);return}var l=a?a(o,d,n+"",e,t,s):void 0,p=void 0===l;if(p){var c=tk(d),y=!c&&tN(d),f=!c&&!y&&tR(d);l=d,c||y||f?tk(o)?l=o:tA(o)?l=tn(o):y?(p=!1,l=e9(d,!0)):f?(p=!1,l=tt(d,!0)):l=[]:tI(d)||tw(d)?(l=o,tw(o)?l=tC(o):(!tO(o)||tP(o))&&(l=tu(d))):p=!1}p&&(s.set(d,l),r(l,d,i,a,s),s.delete(d)),eX(e,n,l)}function e7(e,t){return tb(tv(e,t,tJ),e+"")}function e9(e,t){if(t)return e.slice();var n=e.length,i=ec?ec(n):new e.constructor(n);return e.copy(i),i}function te(e){var t=new e.constructor(e.byteLength);return new ep(t).set(new ep(e)),t}function tt(e,t){var n=t?te(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function tn(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}function ti(e,t,n,i){var r=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],d=i?i(n[o],e[o],o,n,e):void 0;void 0===d&&(d=e[o]),r?eQ(n,o,d):e$(n,o,d)}return n}function tr(e){return e7(function(t,n){var i=-1,r=n.length,a=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(r--,a):void 0,s&&tp(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++i<r;){var o=n[i];o&&e(t,o,i,a)}return t})}function ta(e){return function(t,n,i){for(var r=-1,a=Object(t),s=i(t),o=s.length;o--;){var d=s[e?o:++r];if(!1===n(a[d],d,a))break}return t}}function ts(e,t){var n=e.__data__;return tc(t)?n["string"==typeof t?"string":"hash"]:n.map}function to(e,t){var n=$(e,t);return e1(n)?n:void 0}function td(e){var t=er.call(e,ev),n=e[ev];try{e[ev]=void 0;var i=!0}catch(e){}var r=es.call(e);return i&&(t?e[ev]=n:delete e[ev]),r}function tu(e){return"function"!=typeof e.constructor||tf(e)?{}:ek(ey(e))}function tl(e,t){var n=typeof e;return!!(t=null==t?s:t)&&("number"==n||"symbol"!=n&&F.test(e))&&e>-1&&e%1==0&&e<t}function tp(e,t,n){if(!tO(n))return!1;var i=typeof t;return("number"==i?!!(t_(n)&&tl(t,n.length)):"string"==i&&t in n)&&tE(n[t],e)}function tc(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ty(e){return!!ea&&ea in e}function tf(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||et)}function tm(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}function tg(e){return es.call(e)}function tv(e,t,n){return t=eT(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,a=eT(i.length-t,0),s=Array(a);++r<a;)s[r]=i[t+r];r=-1;for(var o=Array(t+1);++r<t;)o[r]=i[r];return o[t]=n(s),K(e,this,o)}}function th(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var tb=tT(eh?function(e,t){return eh(e,"toString",{configurable:!0,enumerable:!1,value:tF(t),writable:!0})}:tJ);function tT(e){var t=0,n=0;return function(){var i=eS(),s=a-(i-n);if(n=i,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function tS(e){if(null!=e){try{return ei.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function tE(e,t){return e===t||e!=e&&t!=t}var tw=e3(function(){return arguments}())?e3:function(e){return tB(e)&&er.call(e,"callee")&&!em.call(e,"callee")},tk=Array.isArray;function t_(e){return null!=e&&tM(e.length)&&!tP(e)}function tA(e){return tB(e)&&t_(e)}var tN=eb||tD;function tP(e){if(!tO(e))return!1;var t=e2(e);return t==y||t==f||t==u||t==b}function tM(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function tO(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tB(e){return null!=e&&"object"==typeof e}function tI(e){if(!tB(e)||e2(e)!=h)return!1;var t=ey(e);if(null===t)return!0;var n=er.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ei.call(n)==eo}var tR=Y?X(Y):e6;function tC(e){return ti(e,tx(e))}function tx(e){return t_(e)?eW(e,!0):e4(e)}var tU=tr(function(e,t,n,i){e5(e,t,n,i)});function tF(e){return function(){return e}}function tJ(e){return e}function tD(){return!1}t.exports=tU}});init_esm_shims(),init_esm_shims(),init_esm_shims(),init_esm_shims();var wasm=null;try{wasm=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function Long(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function isLong(e){return!0===(e&&e.__isLong__)}function ctz32(e){var t=Math.clz32(e&-e);return e?31-t:t}Long.prototype.__isLong__,Object.defineProperty(Long.prototype,"__isLong__",{value:!0}),Long.isLong=isLong;var INT_CACHE={},UINT_CACHE={};function fromInt(e,t){var n,i,r;return t?(e>>>=0,(r=0<=e&&e<256)&&(i=UINT_CACHE[e]))?i:(n=fromBits(e,0,!0),r&&(UINT_CACHE[e]=n),n):(e|=0,(r=-128<=e&&e<128)&&(i=INT_CACHE[e]))?i:(n=fromBits(e,e<0?-1:0,!1),r&&(INT_CACHE[e]=n),n)}function fromNumber(e,t){if(isNaN(e))return t?UZERO:ZERO;if(t){if(e<0)return UZERO;if(e>=TWO_PWR_64_DBL)return MAX_UNSIGNED_VALUE}else{if(e<=-TWO_PWR_63_DBL)return MIN_VALUE;if(e+1>=TWO_PWR_63_DBL)return MAX_VALUE}return e<0?fromNumber(-e,t).neg():fromBits(e%TWO_PWR_32_DBL|0,e/TWO_PWR_32_DBL|0,t)}function fromBits(e,t,n){return new Long(e,t,n)}Long.fromInt=fromInt,Long.fromNumber=fromNumber,Long.fromBits=fromBits;var pow_dbl=Math.pow;function fromString(e,t,n){if(0===e.length)throw Error("empty string");if("number"==typeof t?(n=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?UZERO:ZERO;if((n=n||10)<2||36<n)throw RangeError("radix");if((i=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===i)return fromString(e.substring(1),t,n).neg();for(var i,r=fromNumber(pow_dbl(n,8)),a=ZERO,s=0;s<e.length;s+=8){var o=Math.min(8,e.length-s),d=parseInt(e.substring(s,s+o),n);if(o<8){var u=fromNumber(pow_dbl(n,o));a=a.mul(u).add(fromNumber(d))}else a=(a=a.mul(r)).add(fromNumber(d))}return a.unsigned=t,a}function fromValue(e,t){return"number"==typeof e?fromNumber(e,t):"string"==typeof e?fromString(e,t):fromBits(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}Long.fromString=fromString,Long.fromValue=fromValue;var TWO_PWR_16_DBL=65536,TWO_PWR_24_DBL=16777216,TWO_PWR_32_DBL=TWO_PWR_16_DBL*TWO_PWR_16_DBL,TWO_PWR_64_DBL=TWO_PWR_32_DBL*TWO_PWR_32_DBL,TWO_PWR_63_DBL=TWO_PWR_64_DBL/2,TWO_PWR_24=fromInt(TWO_PWR_24_DBL),ZERO=fromInt(0);Long.ZERO=ZERO;var UZERO=fromInt(0,!0);Long.UZERO=UZERO;var ONE=fromInt(1);Long.ONE=ONE;var UONE=fromInt(1,!0);Long.UONE=UONE;var NEG_ONE=fromInt(-1);Long.NEG_ONE=NEG_ONE;var MAX_VALUE=fromBits(-1,2147483647,!1);Long.MAX_VALUE=MAX_VALUE;var MAX_UNSIGNED_VALUE=fromBits(-1,-1,!0);Long.MAX_UNSIGNED_VALUE=MAX_UNSIGNED_VALUE;var MIN_VALUE=fromBits(0,-2147483648,!1);Long.MIN_VALUE=MIN_VALUE;var LongPrototype=Long.prototype;LongPrototype.toInt=function(){return this.unsigned?this.low>>>0:this.low},LongPrototype.toNumber=function(){return this.unsigned?(this.high>>>0)*TWO_PWR_32_DBL+(this.low>>>0):this.high*TWO_PWR_32_DBL+(this.low>>>0)},LongPrototype.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(!this.eq(MIN_VALUE))return"-"+this.neg().toString(e);var t=fromNumber(e),n=this.div(t),i=n.mul(t).sub(this);return n.toString(e)+i.toInt().toString(e)}for(var r=fromNumber(pow_dbl(e,6),this.unsigned),a=this,s="";;){var o=a.div(r),d=(a.sub(o.mul(r)).toInt()>>>0).toString(e);if((a=o).isZero())return d+s;for(;d.length<6;)d="0"+d;s=""+d+s}},LongPrototype.getHighBits=function(){return this.high},LongPrototype.getHighBitsUnsigned=function(){return this.high>>>0},LongPrototype.getLowBits=function(){return this.low},LongPrototype.getLowBitsUnsigned=function(){return this.low>>>0},LongPrototype.getNumBitsAbs=function(){if(this.isNegative())return this.eq(MIN_VALUE)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&(e&1<<t)==0;t--);return 0!=this.high?t+33:t+1},LongPrototype.isZero=function(){return 0===this.high&&0===this.low},LongPrototype.eqz=LongPrototype.isZero,LongPrototype.isNegative=function(){return!this.unsigned&&this.high<0},LongPrototype.isPositive=function(){return this.unsigned||this.high>=0},LongPrototype.isOdd=function(){return(1&this.low)==1},LongPrototype.isEven=function(){return(1&this.low)==0},LongPrototype.equals=function(e){return isLong(e)||(e=fromValue(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},LongPrototype.eq=LongPrototype.equals,LongPrototype.notEquals=function(e){return!this.eq(e)},LongPrototype.neq=LongPrototype.notEquals,LongPrototype.ne=LongPrototype.notEquals,LongPrototype.lessThan=function(e){return 0>this.comp(e)},LongPrototype.lt=LongPrototype.lessThan,LongPrototype.lessThanOrEqual=function(e){return 0>=this.comp(e)},LongPrototype.lte=LongPrototype.lessThanOrEqual,LongPrototype.le=LongPrototype.lessThanOrEqual,LongPrototype.greaterThan=function(e){return this.comp(e)>0},LongPrototype.gt=LongPrototype.greaterThan,LongPrototype.greaterThanOrEqual=function(e){return this.comp(e)>=0},LongPrototype.gte=LongPrototype.greaterThanOrEqual,LongPrototype.ge=LongPrototype.greaterThanOrEqual,LongPrototype.compare=function(e){if(isLong(e)||(e=fromValue(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},LongPrototype.comp=LongPrototype.compare,LongPrototype.negate=function(){return!this.unsigned&&this.eq(MIN_VALUE)?MIN_VALUE:this.not().add(ONE)},LongPrototype.neg=LongPrototype.negate,LongPrototype.add=function(e){isLong(e)||(e=fromValue(e));var t,n,i=this.high>>>16,r=65535&this.high,a=this.low>>>16,s=65535&this.low,o=e.high>>>16,d=65535&e.high,u=e.low>>>16,l=65535&e.low,p=0,c=0;return t=0+((n=0+(s+l))>>>16),n&=65535,t+=a+u,c+=t>>>16,t&=65535,c+=r+d,p+=c>>>16,c&=65535,p+=i+o,fromBits(t<<16|n,(p&=65535)<<16|c,this.unsigned)},LongPrototype.subtract=function(e){return isLong(e)||(e=fromValue(e)),this.add(e.neg())},LongPrototype.sub=LongPrototype.subtract,LongPrototype.multiply=function(e){if(this.isZero())return this;if(isLong(e)||(e=fromValue(e)),wasm)return fromBits(wasm.mul(this.low,this.high,e.low,e.high),wasm.get_high(),this.unsigned);if(e.isZero())return this.unsigned?UZERO:ZERO;if(this.eq(MIN_VALUE))return e.isOdd()?MIN_VALUE:ZERO;if(e.eq(MIN_VALUE))return this.isOdd()?MIN_VALUE:ZERO;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(TWO_PWR_24)&&e.lt(TWO_PWR_24))return fromNumber(this.toNumber()*e.toNumber(),this.unsigned);var t,n,i=this.high>>>16,r=65535&this.high,a=this.low>>>16,s=65535&this.low,o=e.high>>>16,d=65535&e.high,u=e.low>>>16,l=65535&e.low,p=0,c=0;return t=0+((n=0+s*l)>>>16),n&=65535,t+=a*l,c+=t>>>16,t&=65535,t+=s*u,c+=t>>>16,t&=65535,c+=r*l,p+=c>>>16,c&=65535,c+=a*u,p+=c>>>16,c&=65535,c+=s*d,p+=c>>>16,c&=65535,p+=i*l+r*u+a*d+s*o,fromBits(t<<16|n,(p&=65535)<<16|c,this.unsigned)},LongPrototype.mul=LongPrototype.multiply,LongPrototype.divide=function(e){if(isLong(e)||(e=fromValue(e)),e.isZero())throw Error("division by zero");if(wasm){var t,n,i;return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?fromBits((this.unsigned?wasm.div_u:wasm.div_s)(this.low,this.high,e.low,e.high),wasm.get_high(),this.unsigned):this}if(this.isZero())return this.unsigned?UZERO:ZERO;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return UZERO;if(e.gt(this.shru(1)))return UONE;i=UZERO}else{if(this.eq(MIN_VALUE))return e.eq(ONE)||e.eq(NEG_ONE)?MIN_VALUE:e.eq(MIN_VALUE)?ONE:(t=this.shr(1).div(e).shl(1)).eq(ZERO)?e.isNegative()?ONE:NEG_ONE:(n=this.sub(e.mul(t)),i=t.add(n.div(e)));if(e.eq(MIN_VALUE))return this.unsigned?UZERO:ZERO;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();i=ZERO}for(n=this;n.gte(e);){for(var r=Math.ceil(Math.log(t=Math.max(1,Math.floor(n.toNumber()/e.toNumber())))/Math.LN2),a=r<=48?1:pow_dbl(2,r-48),s=fromNumber(t),o=s.mul(e);o.isNegative()||o.gt(n);)t-=a,o=(s=fromNumber(t,this.unsigned)).mul(e);s.isZero()&&(s=ONE),i=i.add(s),n=n.sub(o)}return i},LongPrototype.div=LongPrototype.divide,LongPrototype.modulo=function(e){return(isLong(e)||(e=fromValue(e)),wasm)?fromBits((this.unsigned?wasm.rem_u:wasm.rem_s)(this.low,this.high,e.low,e.high),wasm.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},LongPrototype.mod=LongPrototype.modulo,LongPrototype.rem=LongPrototype.modulo,LongPrototype.not=function(){return fromBits(~this.low,~this.high,this.unsigned)},LongPrototype.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},LongPrototype.clz=LongPrototype.countLeadingZeros,LongPrototype.countTrailingZeros=function(){return this.low?ctz32(this.low):ctz32(this.high)+32},LongPrototype.ctz=LongPrototype.countTrailingZeros,LongPrototype.and=function(e){return isLong(e)||(e=fromValue(e)),fromBits(this.low&e.low,this.high&e.high,this.unsigned)},LongPrototype.or=function(e){return isLong(e)||(e=fromValue(e)),fromBits(this.low|e.low,this.high|e.high,this.unsigned)},LongPrototype.xor=function(e){return isLong(e)||(e=fromValue(e)),fromBits(this.low^e.low,this.high^e.high,this.unsigned)},LongPrototype.shiftLeft=function(e){return(isLong(e)&&(e=e.toInt()),0==(e&=63))?this:e<32?fromBits(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):fromBits(0,this.low<<e-32,this.unsigned)},LongPrototype.shl=LongPrototype.shiftLeft,LongPrototype.shiftRight=function(e){return(isLong(e)&&(e=e.toInt()),0==(e&=63))?this:e<32?fromBits(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):fromBits(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},LongPrototype.shr=LongPrototype.shiftRight,LongPrototype.shiftRightUnsigned=function(e){return(isLong(e)&&(e=e.toInt()),0==(e&=63))?this:e<32?fromBits(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):32===e?fromBits(this.high,0,this.unsigned):fromBits(this.high>>>e-32,0,this.unsigned)},LongPrototype.shru=LongPrototype.shiftRightUnsigned,LongPrototype.shr_u=LongPrototype.shiftRightUnsigned,LongPrototype.rotateLeft=function(e){var t;return(isLong(e)&&(e=e.toInt()),0==(e&=63))?this:32===e?fromBits(this.high,this.low,this.unsigned):e<32?(t=32-e,fromBits(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(e-=32,t=32-e,fromBits(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},LongPrototype.rotl=LongPrototype.rotateLeft,LongPrototype.rotateRight=function(e){var t;return(isLong(e)&&(e=e.toInt()),0==(e&=63))?this:32===e?fromBits(this.high,this.low,this.unsigned):e<32?(t=32-e,fromBits(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(e-=32,t=32-e,fromBits(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},LongPrototype.rotr=LongPrototype.rotateRight,LongPrototype.toSigned=function(){return this.unsigned?fromBits(this.low,this.high,!1):this},LongPrototype.toUnsigned=function(){return this.unsigned?this:fromBits(this.low,this.high,!0)},LongPrototype.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},LongPrototype.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},LongPrototype.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},Long.fromBytes=function(e,t,n){return n?Long.fromBytesLE(e,t):Long.fromBytesBE(e,t)},Long.fromBytesLE=function(e,t){return new Long(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},Long.fromBytesBE=function(e,t){return new Long(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};var long_default=Long,import_minimal3=__toESM(require_minimal2());init_esm_shims();var import_minimal2=__toESM(require_minimal2());init_esm_shims();var import_minimal=__toESM(require_minimal2()),UserNameType=(UserNameType2=UserNameType||{},UserNameType2[UserNameType2.USERNAME_TYPE_NONE=0]="USERNAME_TYPE_NONE",UserNameType2[UserNameType2.USERNAME_TYPE_FNAME=1]="USERNAME_TYPE_FNAME",UserNameType2[UserNameType2.USERNAME_TYPE_ENS_L1=2]="USERNAME_TYPE_ENS_L1",UserNameType2);function userNameTypeFromJSON(e){switch(e){case 0:case"USERNAME_TYPE_NONE":return 0;case 1:case"USERNAME_TYPE_FNAME":return 1;case 2:case"USERNAME_TYPE_ENS_L1":return 2;default:throw new tsProtoGlobalThis.Error("Unrecognized enum value "+e+" for enum UserNameType")}}function userNameTypeToJSON(e){switch(e){case 0:return"USERNAME_TYPE_NONE";case 1:return"USERNAME_TYPE_FNAME";case 2:return"USERNAME_TYPE_ENS_L1";default:throw new tsProtoGlobalThis.Error("Unrecognized enum value "+e+" for enum UserNameType")}}function createBaseUserNameProof(){return{timestamp:0,name:new Uint8Array,owner:new Uint8Array,signature:new Uint8Array,fid:0,type:0}}var UserNameProof={encode:(e,t=import_minimal.default.Writer.create())=>(0!==e.timestamp&&t.uint32(8).uint64(e.timestamp),0!==e.name.length&&t.uint32(18).bytes(e.name),0!==e.owner.length&&t.uint32(26).bytes(e.owner),0!==e.signature.length&&t.uint32(34).bytes(e.signature),0!==e.fid&&t.uint32(40).uint64(e.fid),0!==e.ty