PageSourceSearch

https://www.vobc.io/_next/static/chunks/8935-ea940c06dcf6813f.js

js vobc.io collected 2026-10-08 22:53:17 UTC 104,844 bytes, 15 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8935],{2648:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(90643);n.__exportStar(r(48543),t),n.__exportStar(r(25939),t)},4871:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});var n=r(16459),o=r(50155);class i extends o.IJsonRpcProvider{constructor(e){super(e),this.events=new n.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict((0,o.formatJsonRpcRequest)(e.method,e.params||[],e.id||(0,o.getBigIntRpcId)().toString()),t)}async requestStrict(e,t){return new Promise(async(r,n)=>{if(!this.connection.connected)try{await this.open()}catch(e){n(e)}this.events.on(`${e.id}`,e=>{(0,o.isJsonRpcError)(e)?n(e.error):r(e.result)});try{await this.connection.send(e,t)}catch(e){n(e)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),(0,o.isJsonRpcResponse)(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}},5566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(90643);n.__exportStar(r(2648),t),n.__exportStar(r(38053),t),n.__exportStar(r(90332),t),n.__exportStar(r(25648),t)},6519:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a});let n=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,o=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,i=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function s(e,t){var r;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(r=e,console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)):t}function a(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return NaN;case"infinity":return 1/0;case"-infinity":return-1/0}if(!i.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(n.test(e)||o.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,s)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}},8444:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e){if(e.length>=255)throw TypeError("Alphabet too long");let t=new Uint8Array(256);for(let e=0;e<t.length;e++)t[e]=255;for(let r=0;r<e.length;r++){let n=e.charAt(r),o=n.charCodeAt(0);if(255!==t[o])throw TypeError(n+" is ambiguous");t[o]=r}let r=e.length,n=e.charAt(0),o=Math.log(r)/Math.log(256),i=Math.log(256)/Math.log(r);function s(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;let i=0,s=0,a=0;for(;e[i]===n;)s++,i++;let u=(e.length-i)*o+1>>>0,c=new Uint8Array(u);for(;i<e.length;){let n=e.charCodeAt(i);if(n>255)return;let o=t[n];if(255===o)return;let s=0;for(let e=u-1;(0!==o||s<a)&&-1!==e;e--,s++)o+=r*c[e]>>>0,c[e]=o%256>>>0,o=o/256>>>0;if(0!==o)throw Error("Non-zero carry");a=s,i++}
1let f=u-a;for(;f!==u&&0===c[f];)f++;let l=new Uint8Array(s+(u-f)),h=s;for(;f!==u;)l[h++]=c[f++];return l}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";let o=0,s=0,a=0,u=t.length;for(;a!==u&&0===t[a];)a++,o++;let c=(u-a)*i+1>>>0,f=new Uint8Array(c);for(;a!==u;){let e=t[a],n=0;for(let t=c-1;(0!==e||n<s)&&-1!==t;t--,n++)e+=256*f[t]>>>0,f[t]=e%r>>>0,e=e/r>>>0;if(0!==e)throw Error("Non-zero carry");s=n,a++}let l=c-s;for(;l!==c&&0===f[l];)l++;let h=n.repeat(o);for(;l<c;++l)h+=e.charAt(f[l]);return h},decodeUnsafe:s,decode:function(e){let t=s(e);if(t)return t;throw Error("Non-base"+r+" character")}}}("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},10824:(e,t,r)=>{"use strict";var n=r(87822);r.o(n,"IJsonRpcProvider")&&r.d(t,{IJsonRpcProvider:function(){return n.IJsonRpcProvider}}),r.o(n,"formatJsonRpcError")&&r.d(t,{formatJsonRpcError:function(){return n.formatJsonRpcError}}),r.o(n,"formatJsonRpcRequest")&&r.d(t,{formatJsonRpcRequest:function(){return n.formatJsonRpcRequest}}),r.o(n,"formatJsonRpcResult")&&r.d(t,{formatJsonRpcResult:function(){return n.formatJsonRpcResult}}),r.o(n,"getBigIntRpcId")&&r.d(t,{getBigIntRpcId:function(){return n.getBigIntRpcId}}),r.o(n,"isHttpUrl")&&r.d(t,{isHttpUrl:function(){return n.isHttpUrl}}),r.o(n,"isJsonRpcError")&&r.d(t,{isJsonRpcError:function(){return n.isJsonRpcError}}),r.o(n,"isJsonRpcRequest")&&r.d(t,{isJsonRpcRequest:function(){return n.isJsonRpcRequest}}),r.o(n,"isJsonRpcResponse")&&r.d(t,{isJsonRpcResponse:function(){return n.isJsonRpcResponse}}),r.o(n,"isJsonRpcResult")&&r.d(t,{isJsonRpcResult:function(){return n.isJsonRpcResult}}),r.o(n,"isLocalhostUrl")&&r.d(t,{isLocalhostUrl:function(){return n.isLocalhostUrl}}),r.o(n,"isReactNative")&&r.d(t,{isReactNative:function(){return n.isReactNative}}),r.o(n,"isWsUrl")&&r.d(t,{isWsUrl:function(){return n.isWsUrl}}),r.o(n,"payloadId")&&r.d(t,{payloadId:function(){return n.payloadId}})},11419:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(16459),o=r(25042),i=r(50155);let s=e=>e.split("?")[0],a="u">typeof WebSocket?WebSocket:"u">typeof r.g&&"u">typeof r.g.WebSocket?r.g.WebSocket:"u">typeof window&&"u">typeof window.WebSocket?window.WebSocket:"u">typeof self&&"u">typeof self.WebSocket?self.WebSocket:r(55762);class u{constructor(e){if(this.url=e,this.events=new n.EventEmitter,this.registering=!1,!(0,i.isWsUrl)(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return"u">typeof this.socket}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,t)=>{if(typeof this.socket>"u")return void t(Error("Connection already closed"));this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close()})}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send((0,o.h)(e))}catch(t){this.onError(e.id,t)}}register(e=this.url){if(!(0,i.isWsUrl)(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>{this.events.once("register_error",e=>{this.resetMaxListeners(),t(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return t(Error("WebSocket connection is missing or invalid"));e(this.socket)})})}return this.url=e,this.registering=!0,new Promise((t,n)=>{let o=(0,i.isReactNative)()?void 0:{rejectUnauthorized:!(0,i.isLocalhostUrl)(e)},s=new a(e,[],o);"u">typeof WebSocket||"u">typeof r.g&&"u">typeof r.g.WebSocket||"u">typeof window&&"u">typeof window.WebSocket||"u">typeof self&&"u">typeof self.WebSocket?s.onerror=e=>{n(this.emitError(e.error))}:s.on("error",e=>{n(this.emitError(e))}),s.onopen=()=>{this.onOpen(s),t(s)}})}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;let t="string"==typeof e.data?(0,o.j)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let r=this.parseError(t),n=r.message||r.toString(),o=(0,i.formatJsonRpcError)(e,n);this.events.emit("payload",o)}parseError(e,t=this.url){return(0,i.parseConnectionError)(e,s(t),"WS")}
1resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){let t=this.parseError(Error(e?.message||`WebSocket connection failed for host: ${s(this.url)}`));return this.events.emit("register_error",t),t}}},16459:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(r,n){var o,i,s;function a(r){e.removeListener(t,u),n(r)}function u(){"function"==typeof e.removeListener&&e.removeListener("error",a),r([].slice.call(arguments))}b(e,t,u,{once:!0}),"error"!==t&&(o=e,i=a,s={once:!0},"function"==typeof o.on&&b(o,"error",i,s))})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){if(a(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),s=i[t]),void 0===s)s=i[t]=r,++e._eventsCount;else if("function"==typeof s?s=i[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=u(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,i,s,c=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,console&&console.warn&&console.warn(c)}return e}function f(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=f.bind(n);return o.listener=r,n.wrapFn=o,o}function h(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):p(o,o.length)}function d(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function b(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function o(i){n.once&&e.removeEventListener(t,o),r(i)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var c=u.length,f=p(u,c),r=0;r<c;++r)n(f[r],this,t);return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return a(t),this.on(e,l(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,l(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,s;if(a(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
1("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){s=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return h(this,e,!0)},i.prototype.rawListeners=function(e){return h(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},19511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;class r{}t.IWatch=r},20852:(e,t,r)=>{"use strict";r.d(t,{Cq:()=>tv,FA:()=>tw,TZ:()=>tm,UF:()=>tE});var n=r(5566),o=r(25042);function i(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function s(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}let a="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,u=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function c(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}(e)),i(e),e}class f{clone(){return this._cloneInto()}}function l(e=32){if(a&&"function"==typeof a.getRandomValues)return a.getRandomValues(new Uint8Array(e));if(a&&"function"==typeof a.randomBytes)return a.randomBytes(e);throw Error("crypto.getRandomValues must be defined")}class h extends f{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=u(this.buffer)}update(e){s(this);let{view:t,buffer:r,blockLen:n}=this,o=(e=c(e)).length;for(let i=0;i<o;){let s=Math.min(n-this.pos,o-i);if(s===n){let t=u(e);for(;n<=o-i;i+=n)this.process(t,i);continue}r.set(e.subarray(i,i+s),this.pos),this.pos+=s,i+=s,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){s(this),function(e,t){i(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)}(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:n,isLE:o}=this,{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>n-a&&(this.process(r,0),a=0);for(let e=a;e<n;e++)t[e]=0;(function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let o=BigInt(32),i=BigInt(0xffffffff),s=Number(r>>o&i),a=Number(r&i),u=4*!!n,c=4*!n;e.setUint32(t+u,s,n),e.setUint32(t+c,a,n)})(r,n-8,BigInt(8*this.length),o),this.process(r,0);let c=u(e),f=this.outputLen;if(f%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=f/4,h=this.get();if(l>h.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)c.setUint32(4*e,h[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:o,destroyed:i,pos:s}=this;return e.length=n,e.pos=s,e.finished=o,e.destroyed=i,n%t&&e.buffer.set(r),e}}let d=BigInt(0x100000000-1),p=BigInt(32),b={split:function(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:i,l:s}=function(e,t=!1){return t?{h:Number(e&d),l:Number(e>>p&d)}:{h:0|Number(e>>p&d),l:0|Number(e&d)}}(e[o],t);[r[o],n[o]]=[i,s]}return[r,n]},shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,add:function(e,t,r,n){let o=(t>>>0)+(n>>>0);return{h:e+r+(o/0x100000000|0)|0,l:0|o}},add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,o)=>t+r+n+o+(e/0x100000000|0)|0,add5H:(e,t,r,n,o,i)=>t+r+n+o+i+(e/0x100000000|0)|0,add5L:(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0)},[y,D]=b.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
16f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),g=new Uint32Array(80),E=new Uint32Array(80);class v extends h{constructor(){super(128,64,16,!1),this.Ah=0x6a09e667,this.Al=-0xc4336f8,this.Bh=-0x4498517b,this.Bl=-0x7b3558c5,this.Ch=0x3c6ef372,this.Cl=-0x16b07d5,this.Dh=-0x5ab00ac6,this.Dl=0x5f1d36f1,this.Eh=0x510e527f,this.El=-0x52197d2f,this.Fh=-0x64fa9774,this.Fl=0x2b3e6c1f,this.Gh=0x1f83d9ab,this.Gl=-0x4be4295,this.Hh=0x5be0cd19,this.Hl=0x137e2179}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:o,Cl:i,Dh:s,Dl:a,Eh:u,El:c,Fh:f,Fl:l,Gh:h,Gl:d,Hh:p,Hl:b}=this;return[e,t,r,n,o,i,s,a,u,c,f,l,h,d,p,b]}set(e,t,r,n,o,i,s,a,u,c,f,l,h,d,p,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|o,this.Cl=0|i,this.Dh=0|s,this.Dl=0|a,this.Eh=0|u,this.El=0|c,this.Fh=0|f,this.Fl=0|l,this.Gh=0|h,this.Gl=0|d,this.Hh=0|p,this.Hl=0|b}process(e,t){for(let r=0;r<16;r++,t+=4)g[r]=e.getUint32(t),E[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|g[e-15],r=0|E[e-15],n=b.rotrSH(t,r,1)^b.rotrSH(t,r,8)^b.shrSH(t,r,7),o=b.rotrSL(t,r,1)^b.rotrSL(t,r,8)^b.shrSL(t,r,7),i=0|g[e-2],s=0|E[e-2],a=b.rotrSH(i,s,19)^b.rotrBH(i,s,61)^b.shrSH(i,s,6),u=b.rotrSL(i,s,19)^b.rotrBL(i,s,61)^b.shrSL(i,s,6),c=b.add4L(o,u,E[e-7],E[e-16]),f=b.add4H(c,n,a,g[e-7],g[e-16]
1);g[e]=0|f,E[e]=0|c}let{Ah:r,Al:n,Bh:o,Bl:i,Ch:s,Cl:a,Dh:u,Dl:c,Eh:f,El:l,Fh:h,Fl:d,Gh:p,Gl:v,Hh:m,Hl:w}=this;for(let e=0;e<80;e++){let t=b.rotrSH(f,l,14)^b.rotrSH(f,l,18)^b.rotrBH(f,l,41),x=b.rotrSL(f,l,14)^b.rotrSL(f,l,18)^b.rotrBL(f,l,41),_=f&h^~f&p,C=l&d^~l&v,A=b.add5L(w,x,C,D[e],E[e]),O=b.add5H(A,m,t,_,y[e],g[e]),S=0|A,R=b.rotrSH(r,n,28)^b.rotrBH(r,n,34)^b.rotrBH(r,n,39),B=b.rotrSL(r,n,28)^b.rotrBL(r,n,34)^b.rotrBL(r,n,39),U=r&o^r&s^o&s,T=n&i^n&a^i&a;m=0|p,w=0|v,p=0|h,v=0|d,h=0|f,d=0|l,({h:f,l:l}=b.add(0|u,0|c,0|O,0|S)),u=0|s,c=0|a,s=0|o,a=0|i,o=0|r,i=0|n;let I=b.add3L(S,B,T);r=b.add3H(I,O,R,U),n=0|I}({h:r,l:n}=b.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:o,l:i}=b.add(0|this.Bh,0|this.Bl,0|o,0|i)),({h:s,l:a}=b.add(0|this.Ch,0|this.Cl,0|s,0|a)),({h:u,l:c}=b.add(0|this.Dh,0|this.Dl,0|u,0|c)),({h:f,l:l}=b.add(0|this.Eh,0|this.El,0|f,0|l)),({h:h,l:d}=b.add(0|this.Fh,0|this.Fl,0|h,0|d)),({h:p,l:v}=b.add(0|this.Gh,0|this.Gl,0|p,0|v)),({h:m,l:w}=b.add(0|this.Hh,0|this.Hl,0|m,0|w)),this.set(r,n,o,i,s,a,u,c,f,l,h,d,p,v,m,w)}roundClean(){g.fill(0),E.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}let m=function(e){let t=t=>e().update(c(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}(()=>new v),w=BigInt(0),x=BigInt(1),_=BigInt(2);function C(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function A(e){if(!C(e))throw Error("Uint8Array expected")}function O(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}let S=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function R(e){A(e);let t="";for(let r=0;r<e.length;r++)t+=S[e[r]];return t}function B(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?w:BigInt("0x"+e)}let U={_0:48,_9:57,A:65,F:70,a:97,f:102};function T(e){return e>=U._0&&e<=U._9?e-U._0:e>=U.A&&e<=U.F?e-(U.A-10):e>=U.a&&e<=U.f?e-(U.a-10):void 0}function I(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,o=0;t<r;t++,o+=2){let r=T(e.charCodeAt(o)),i=T(e.charCodeAt(o+1));if(void 0===r||void 0===i)throw Error('hex string expected, got non-hex character "'+(e[o]+e[o+1])+'" at index '+o);n[t]=16*r+i}return n}function N(e){return A(e),B(R(Uint8Array.from(e).reverse()))}function P(e,t){return I(e.toString(16).padStart(2*t,"0"))}function L(e,t){return P(e,t).reverse()}function F(e,t,r){let n;if("string"==typeof t)try{n=I(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(C(t))n=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let o=n.length;if("number"==typeof r&&o!==r)throw Error(e+" of length "+r+" expected, got "+o);return n}function j(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];A(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let o=e[t];r.set(o,n),n+=o.length}return r}let M=e=>"bigint"==typeof e&&w<=e;function k(e,t,r,n){if(!(M(t)&&M(r)&&M(n))||!(r<=t)||!(t<n))throw Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}let H={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||C(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function W(e,t,r={}){let n=(t,r,n)=>{let o=H[r];if("function"!=typeof o)throw Error("invalid validator function");let i=e[t];if(!(n&&void 0===i)&&!o(i,e))throw Error("param "+String(t)+" is invalid. Expected "+r+", got "+i)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}function z(e){let t=new WeakMap;return(r,...n)=>{let o=t.get(r);if(void 0!==o)return o;let i=e(r,...n);return t.set(r,i),i}}let J=BigInt(0),q=BigInt(1),V=BigInt(2),$=BigInt(3),Y=BigInt(4),K=BigInt(5),G=BigInt(8);function Z(e,t){let r=e%t;return r>=J?r:t+r}function X(e,t,r){let n=e;for(;t-- >J;)n*=n,n%=r;return n}function Q(e,t){if(e===J)throw Error("invert: expected non-zero number");if(t<=J)throw Error("invert: expected positive modulus, got "+t);let r=Z(e,t),n=t,o=J,i=q;for(;r!==J;){let e=n/r,t=n%r,s=o-i*e;n=r,r=t,o=i,i=s}if(n!==q)throw Error("invert: does not exist");return Z(o,t)}let ee=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function et(e,t){let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function er(e,t,r=!1,n={}){let o;if(e<=J)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:i,nByteLength:s}=et(e,t);if(s>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let a=Object.freeze({ORDER:e,isLE:r,BITS:i,BYTES:s,MASK:(_<<BigInt(i-1))-x,ZERO:J,ONE:q,create:t=>Z(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return J<=t&&t<e},is0:e=>e===J,isOdd:e=>(e&q)===q,neg:t=>Z(-t,e),eql:(e,t)=>
1e===t,sqr:t=>Z(t*t,e),add:(t,r)=>Z(t+r,e),sub:(t,r)=>Z(t-r,e),mul:(t,r)=>Z(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<J)throw Error("invalid exponent, negatives unsupported");if(r===J)return e.ONE;if(r===q)return t;let n=e.ONE,o=t;for(;r>J;)r&q&&(n=e.mul(n,o)),o=e.sqr(o),r>>=q;return n})(a,e,t),div:(t,r)=>Z(t*Q(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>Q(t,e),sqrt:n.sqrt||(t=>(o||(o=function(e){if(e%Y===$){let t=(e+q)/Y;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}if(e%G===K){let t=(e-K)/G;return function(e,r){let n=e.mul(r,V),o=e.pow(n,t),i=e.mul(r,o),s=e.mul(e.mul(i,V),o),a=e.mul(i,e.sub(s,e.ONE));if(!e.eql(e.sqr(a),r))throw Error("Cannot find square root");return a}}return function(e){let t,r,n,o=(e-q)/V;for(t=e-q,r=0;t%V===J;t/=V,r++);for(n=V;n<e&&function(e,t,r){if(t<J)throw Error("invalid exponent, negatives unsupported");if(r<=J)throw Error("invalid modulus");if(r===q)return J;let n=q;for(;t>J;)t&q&&(n=n*e%r),e=e*e%r,t>>=q;return n}(n,o,e)!==e-q;n++)if(n>1e3)throw Error("Cannot find square root: likely non-prime P");if(1===r){let t=(e+q)/Y;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}let i=(t+q)/V;return function(e,s){if(e.pow(s,o)===e.neg(e.ONE))throw Error("Cannot find square root");let a=r,u=e.pow(e.mul(e.ONE,n),t),c=e.pow(s,i),f=e.pow(s,t);for(;!e.eql(f,e.ONE);){if(e.eql(f,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(f);t<a&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(u,q<<BigInt(a-t-1));u=e.sqr(r),c=e.mul(c,r),f=e.mul(f,u),a=t}return c}}(e)}(e)),o(a,t))),invertBatch:e=>(function(e,t){let r=Array(t.length),n=t.reduce((t,n,o)=>e.is0(n)?t:(r[o]=t,e.mul(t,n)),e.ONE),o=e.inv(n);return t.reduceRight((t,n,o)=>e.is0(n)?t:(r[o]=e.mul(t,r[o]),e.mul(t,n)),o),r})(a,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?L(e,s):P(e,s),fromBytes:e=>{if(e.length!==s)throw Error("Field.fromBytes: expected "+s+" bytes, got "+e.length);return r?N(e):B(R(e))}});return Object.freeze(a)}let en=BigInt(0),eo=BigInt(1);function ei(e,t){let r=t.negate();return e?r:t}function es(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function ea(e,t){return es(e,t),{windows:Math.ceil(t/e)+1,windowSize:2**(e-1)}}let eu=new WeakMap,ec=new WeakMap;function ef(e){return ec.get(e)||1}let el=BigInt(0),eh=BigInt(1),ed=BigInt(2),ep=BigInt(8),eb={zip215:!0};BigInt(0),BigInt(1);let ey=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),eD=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);let eg=BigInt(1),eE=BigInt(2);BigInt(3);let ev=BigInt(5),em=BigInt(8),ew=er(ey,void 0,!0),ex=function(e){var t;let r=function(e){let t=(W(e.Fp,ee.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),W(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...et(e.n,e.nBitLength),...e,p:e.Fp.ORDER}));return W(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}(e),{Fp:n,n:o,prehash:i,hash:s,randomBytes:a,nByteLength:u,h:c}=r,f=ed<<BigInt(8*u)-eh,l=n.create,h=er(r.n,r.nBitLength),d=r.uvRatio||((e,t)=>{try{return{isValid:!0,value:n.sqrt(e*n.inv(t))}}catch{return{isValid:!1,value:el}}}),p=r.adjustScalarBytes||(e=>e),b=r.domain||((e,t,r)=>{if(O("phflag",r),t.length||r)throw Error("Contexts/pre-hash are not supported");return e});function y(e,t){k("coordinate "+e,t,el,f)}function D(e){if(!(e instanceof v))throw Error("ExtendedPoint expected")}let g=z((e,t)=>{let{ex:r,ey:o,ez:i}=e,s=e.is0();null==t&&(t=s?ep:n.inv(i));let a=l(r*t),u=l(o*t),c=l(i*t);if(s)return{x:el,y:eh};if(c!==eh)throw Error("invZ was invalid");return{x:a,y:u}}),E=z(e=>{let{a:t,d:n}=r;if(e.is0())throw Error("bad point: ZERO");let{ex:o,ey:i,ez:s,et:a}=e,u=l(o*o),c=l(i*i),f=l(s*s),h=l(f*f),d=l(u*t);if(l(f*l(d+c))!==l(h+l(n*l(u*c))))throw Error("bad point: equation left != right (1)");if(l(o*i)!==l(s*a))throw Error("bad point: equation left != right (2)");return!0});class v{constructor(e,t,r,n){this.ex=e,this.ey=t,this.ez=r,this.et=n,y("x",e),y("y",t),y("z",r),y("t",n),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(e){if(e instanceof v)throw Error("extended point not allowed");let{x:t,y:r}=e||{};return y("x",t),y("y",r),new v(t,r,eh,l(t*r))}static normalizeZ(e){let t=n.invertBatch(e.map(e=>e.ez));return e.map((e,r)=>e.toAffine(t[r])).map(v.fromAffine)}static msm(e,t){return function(e,t,r,n){if(function(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw Error("invalid point at index "+r)})}(r,e),function(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+r)})}(n,t),r.length!==n.length)throw Error("arrays of points and scalars must have equal length");let o=e.ZERO,i=function(e){let t;for(t=0;e>w;e>>=x,t+=1);return t}(BigInt(r.length)),s=i>12?i-3:i>4?i-2:i?2:1,a=(1<<s)-1,u=Array(a+1).fill(o),c=Math.floor((t.BITS-1)/s)*s,f=o;for(let e=c;e>=0;e-=s){u.fill(o);for(let t=0;t<n.length;t++){let o=Number(n[t]>>BigInt(e)&BigInt(a));u[o]=u[o].add(r[t])}let t=o;for(let e=u.length-1,r=o;e>0;e--)r=r.add(u[e]),t=t.add(r);if(f=f.add(t),0!==e)for(let e=0;e<s;e++)f=f.double()}return f}(v,h,e,t)}_setWindowSize(e){C.setWindowSize(this,e)}assertValidity(){E(this)}equals(e){D(e);let{ex:t,ey:r,ez:n}=this,{ex:o,ey:i,ez:s}=e,a=l(t*s),u=l(o*n),c=l(r*s),f=l(i*n);return a===u&&c===f}is0(){return this.equals(v.ZERO)}negate(){return new v(l(-this.ex),this.ey,this.ez,l(-this.et))}double(){let{a:e}=r,{ex:t,ey:n,ez:o}=this,i=l(t*t),s=l(n*n),a=l(ed*l(o*o)),u=l(e*i),c=t+n,f=l(l(c*c)-i-s),h=u+s,d=h-a,p=u-s,b=l(f*d),y=l(h*p),D=l(f*p);return new v(b,y,l(d*h),D)}add(e){D(e);let{a:t,d:n}=r,{ex:o,ey:i,ez:s,et:a}=this,{ex:u,ey:c,ez:f,et:h}=e;if(t===BigInt(-1)){let e=l((i-o)*(c+u)),t=l((i+o)*(c-u)),r=l(t-e);if(r===el)return this.double();let n=l(s*ed*h),d=l(a*ed*f),p=d+n,b=t+e,y=d-n,D=l(p*r),g=l(b*y),E=l(p*y);return new v(D,g,l(r*b),E)}let d=l(o*u),p=l(i*c),b=l(a*n*h),y=l(s*f),g=l((o+i)*(u+c)-d-p),E=y-b,m=y+b,w=l(p-t*d),x=l(g*E),_=l(m*w),C=l(g*w);return new v(x,_,l(E*m),C)}subtract(e){return this.add(e.negate())}
1wNAF(e){return C.wNAFCached(this,e,v.normalizeZ)}multiply(e){k("scalar",e,eh,o);let{p:t,f:r}=this.wNAF(e);return v.normalizeZ([t,r])[0]}multiplyUnsafe(e,t=v.ZERO){return k("scalar",e,el,o),e===el?_:this.is0()||e===eh?this:C.wNAFCachedUnsafe(this,e,v.normalizeZ,t)}isSmallOrder(){return this.multiplyUnsafe(c).is0()}isTorsionFree(){return C.unsafeLadder(this,o).is0()}toAffine(e){return g(this,e)}clearCofactor(){let{h:e}=r;return e===eh?this:this.multiplyUnsafe(e)}static fromHex(e,t=!1){let{d:o,a:i}=r,s=n.BYTES;e=F("pointHex",e,s),O("zip215",t);let a=e.slice(),u=e[s-1];a[s-1]=-129&u;let c=N(a);k("pointHex.y",c,el,t?f:n.ORDER);let h=l(c*c),{isValid:p,value:b}=d(l(h-eh),l(o*h-i));if(!p)throw Error("Point.fromHex: invalid y coordinate");let y=(b&eh)===eh,D=(128&u)!=0;if(!t&&b===el&&D)throw Error("Point.fromHex: x=0 and x_0=1");return D!==y&&(b=l(-b)),v.fromAffine({x:b,y:c})}static fromPrivateKey(e){return A(e).point}toRawBytes(){let{x:e,y:t}=this.toAffine(),r=L(t,n.BYTES);return r[r.length-1]|=e&eh?128:0,r}toHex(){return R(this.toRawBytes())}}v.BASE=new v(r.Gx,r.Gy,eh,l(r.Gx*r.Gy)),v.ZERO=new v(el,eh,eh,el);let{BASE:m,ZERO:_}=v,C=(t=8*u,{constTimeNegate:ei,hasPrecomputes:e=>1!==ef(e),unsafeLadder(e,t,r=v.ZERO){let n=e;for(;t>en;)t&eo&&(r=r.add(n)),n=n.double(),t>>=eo;return r},precomputeWindow(e,r){let{windows:n,windowSize:o}=ea(r,t),i=[],s=e,a=s;for(let e=0;e<n;e++){a=s,i.push(a);for(let e=1;e<o;e++)a=a.add(s),i.push(a);s=a.double()}return i},wNAF(e,r,n){let{windows:o,windowSize:i}=ea(e,t),s=v.ZERO,a=v.BASE,u=BigInt(2**e-1),c=2**e,f=BigInt(e);for(let e=0;e<o;e++){let t=e*i,o=Number(n&u);n>>=f,o>i&&(o-=c,n+=eo);let l=t+Math.abs(o)-1,h=e%2!=0,d=o<0;0===o?a=a.add(ei(h,r[t])):s=s.add(ei(d,r[l]))}return{p:s,f:a}},wNAFUnsafe(e,r,n,o=v.ZERO){let{windows:i,windowSize:s}=ea(e,t),a=BigInt(2**e-1),u=2**e,c=BigInt(e);for(let e=0;e<i;e++){let t=e*s;if(n===en)break;let i=Number(n&a);if(n>>=c,i>s&&(i-=u,n+=eo),0===i)continue;let f=r[t+Math.abs(i)-1];i<0&&(f=f.negate()),o=o.add(f)}return o},getPrecomputes(e,t,r){let n=eu.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&eu.set(t,r(n))),n},wNAFCached(e,t,r){let n=ef(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)},wNAFCachedUnsafe(e,t,r,n){let o=ef(e);return 1===o?this.unsafeLadder(e,t,n):this.wNAFUnsafe(o,this.getPrecomputes(o,e,r),t,n)},setWindowSize(e,r){es(r,t),ec.set(e,r),eu.delete(e)}});function A(e){let t=n.BYTES;e=F("private key",e,t);let r=F("hashed private key",s(e),2*t),i=p(r.slice(0,t)),a=r.slice(t,2*t),u=Z(N(i),o),c=m.multiply(u),f=c.toRawBytes();return{head:i,prefix:a,scalar:u,point:c,pointBytes:f}}function S(e=new Uint8Array,...t){return Z(N(s(b(j(...t),F("context",e),!!i))),o)}return m._setWindowSize(8),{CURVE:r,getPublicKey:function(e){return A(e).pointBytes},sign:function(e,t,r={}){e=F("message",e),i&&(e=i(e));let{prefix:s,scalar:a,pointBytes:u}=A(t),c=S(r.context,s,e),f=m.multiply(c).toRawBytes(),l=Z(c+S(r.context,f,u,e)*a,o);return k("signature.s",l,el,o),F("result",j(f,L(l,n.BYTES)),2*n.BYTES)},verify:function(e,t,r,o=eb){let s,a,u,{context:c,zip215:f}=o,l=n.BYTES;e=F("signature",e,2*l),t=F("message",t),r=F("publicKey",r,l),void 0!==f&&O("zip215",f),i&&(t=i(t));let h=N(e.slice(l,2*l));try{s=v.fromHex(r,f),a=v.fromHex(e.slice(0,l),f),u=m.multiplyUnsafe(h)}catch{return!1}if(!f&&s.isSmallOrder())return!1;let d=S(c,a.toRawBytes(),s.toRawBytes(),t);return a.add(s.multiplyUnsafe(d)).subtract(u).clearCofactor().equals(v.ZERO)},ExtendedPoint:v,utils:{getExtendedPublicKey:A,randomPrivateKey:()=>a(n.BYTES),precompute:(e=8,t=v.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}}({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:ew,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:em,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:m,randomBytes:l,adjustScalarBytes:function(e){return e[0]&=248,e[31]&=127,e[31]|=64,e},uvRatio:function(e,t){let r=Z(t*t*t,ey),n=function(e){let t=BigInt(10),r=BigInt(20),n=BigInt(40),o=BigInt(80),i=e*e%ey*e%ey,s=X(i,eE,ey)*i%ey,a=X(s,eg,ey)*e%ey,u=X(a,ev,ey)*a%ey,c=X(u,t,ey)*u%ey,f=X(c,r,ey)*c%ey,l=X(f,n,ey)*f%ey,h=X(l,o,ey)*l%ey,d=X(h,o,ey)*l%ey,p=X(d,t,ey)*u%ey;return{pow_p_5_8:X(p,eE,ey)*e%ey,b2:i}}(e*Z(r*r*t,ey)).pow_p_5_8,o=Z(e*r*n,ey),i=Z(t*o*o,ey),s=o,a=Z(o*eD,ey),u=i===e,c=i===Z(-e,ey),f=i===Z(-e*eD,ey);return u&&(o=s),(c||f)&&(o=a),(Z(o,ey)&q)===q&&(o=Z(-o,ey)),{isValid:u||c,value:o}}}),e_="base64url",eC="utf8",eA="utf8",eO="base58btc";function eS(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function eR(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?eS(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function eB(e,t){t||(t=e.reduce((e,t)=>
1e+t.length,0));let r=eR(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return eS(r)}var eU=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var o=0;o<e.length;o++){var i=e.charAt(o),s=i.charCodeAt(0);if(255!==r[s])throw TypeError(i+" is ambiguous");r[s]=o}var a=e.length,u=e.charAt(0),c=Math.log(a)/Math.log(256),f=Math.log(256)/Math.log(a);function l(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var n=0,o=0;e[t]===u;)n++,t++;for(var i=(e.length-t)*c+1>>>0,s=new Uint8Array(i);e[t];){var f=r[e.charCodeAt(t)];if(255===f)return;for(var l=0,h=i-1;(0!==f||l<o)&&-1!==h;h--,l++)f+=a*s[h]>>>0,s[h]=f%256>>>0,f=f/256>>>0;if(0!==f)throw Error("Non-zero carry");o=l,t++}if(" "!==e[t]){for(var d=i-o;d!==i&&0===s[d];)d++;for(var p=new Uint8Array(n+(i-d)),b=n;d!==i;)p[b++]=s[d++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,o=0,i=t.length;o!==i&&0===t[o];)o++,r++;for(var s=(i-o)*f+1>>>0,c=new Uint8Array(s);o!==i;){for(var l=t[o],h=0,d=s-1;(0!==l||h<n)&&-1!==d;d--,h++)l+=256*c[d]>>>0,c[d]=l%a>>>0,l=l/a>>>0;if(0!==l)throw Error("Non-zero carry");n=h,o++}for(var p=s-n;p!==s&&0===c[p];)p++;for(var b=u.repeat(r);p<s;++p)b+=e.charAt(c[p]);return b},decodeUnsafe:l,decode:function(e){var r=l(e);if(r)return r;throw Error(`Non-${t} character`)}}};let eT=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")};class eI{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class eN{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return eL(this,e)}}class eP{constructor(e){this.decoders=e}or(e){return eL(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let eL=(e,t)=>new eP({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class eF{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new eI(e,t,r),this.decoder=new eN(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let ej=({name:e,prefix:t,encode:r,decode:n})=>new eF(e,t,r,n),eM=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:o}=eU(r,t);return ej({prefix:e,name:t,encode:n,decode:e=>eT(o(e))})},ek=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>ej({prefix:t,name:e,encode:e=>((e,t,r)=>{let n="="===t[t.length-1],o=(1<<r)-1,i="",s=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],s+=8;s>r;)s-=r,i+=t[o&a>>s];if(s&&(i+=t[o&a<<r-s]),n)for(;i.length*r&7;)i+="=";return i})(e,n,r),decode:t=>((e,t,r,n)=>{let o={};for(let e=0;e<t.length;++e)o[t[e]]=e;let i=e.length;for(;"="===e[i-1];)--i;let s=new Uint8Array(i*r/8|0),a=0,u=0,c=0;for(let t=0;t<i;++t){let i=o[e[t]];if(void 0===i)throw SyntaxError(`Non-${n} character`);u=u<<r|i,(a+=r)>=8&&(a-=8,s[c++]=255&u>>a)}if(a>=r||255&u<<8-a)throw SyntaxError("Unexpected end of data");return s})(t,n,r,e)});var eH=Object.freeze({__proto__:null,identity:ej({prefix:"\0",name:"identity",encode:e=>new TextDecoder().decode(e),decode:e=>new TextEncoder().encode(e)})}),eW=Object.freeze({__proto__:null,base2:ek({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})}),ez=Object.freeze({__proto__:null,base8:ek({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})}),eJ=Object.freeze({__proto__:null,base10:eM({prefix:"9",name:"base10",alphabet:"0123456789"})}),eq=Object.freeze({__proto__:null,base16:ek({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper:ek({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});let eV=ek({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),e$=ek({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),eY=ek({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),eK=ek({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),eG=ek({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),eZ=ek({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),eX=ek({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5});var eQ=Object.freeze({__proto__:null,base32:eV,base32upper:e$,base32pad:eY,base32padupper:eK,base32hex:eG,base32hexupper:eZ,base32hexpad:eX,base32hexpadupper:ek({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z:ek({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})}),e0=Object.freeze({__proto__:null,base36:eM({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper:eM({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})}),e8=Object.freeze({__proto__:null,base58btc:eM({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr:eM({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});let e3=ek({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",bitsPerChar:6}),e1=ek({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6});var e2=Object.freeze({__proto__:null,base64:e3,base64pad:e1,base64url:ek({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad:ek({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});let e5=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),e6=e5.reduce((e,t,r)=>(e[r]=t,e),[]),e4=e5.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);var e9=Object.freeze({__proto__:null,base256emoji:ej({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=e6[t],"")},decode:function(e){let t=[];for(let r of e){let e=e4[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}})});function e7(e,t,r){t=t||[],r=r||0;for(var n=r;e>=0x80000000;)t[r++]=255&e|128,e/=128;for(;-128&e;)t[r++]=255&e|128,e>>>=7;return t[r]=0|e,e7.bytes=r-n+1,t}var te={encode:e7,encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:e<0x800000000?5:e<0x40000000000?6:e<0x2000000000000?7:e<0x100000000000000?8:e<0x8000000000000000?9:10}};let tt=(e,t,r=0)=>(te.encode(e,t,r),t),tr=e=>te.encodingLength(e),tn=(e,t)=>{let r=t.byteLength,n=tr(e),o=n+tr(r),i=new Uint8Array(o+r);return tt(e,i,0),tt(r,i,n),i.set(t,o),new to(e,r,t,i)};
1class to{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let ti=({name:e,code:t,encode:r})=>new ts(e,t,r);class ts{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?tn(this.code,t):t.then(e=>tn(this.code,e))}throw Error("Unknown type, must be binary type")}}let ta=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t));var tu=Object.freeze({__proto__:null,sha256:ti({name:"sha2-256",code:18,encode:ta("SHA-256")}),sha512:ti({name:"sha2-512",code:19,encode:ta("SHA-512")})}),tc=Object.freeze({__proto__:null,identity:{code:0,name:"identity",encode:eT,digest:e=>tn(0,eT(e))}});new TextEncoder,new TextDecoder;let tf={...eH,...eW,...ez,...eJ,...eq,...eQ,...e0,...e8,...e2,...e9};function tl(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}({...tu,...tc});let th=tl("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),td=tl("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{let t=eR((e=e.substring(1)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),tp={utf8:th,"utf-8":th,hex:tf.base16,latin1:td,ascii:td,binary:td,...tf};function tb(e,t="utf8"){let r=tp[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}function ty(e,t="utf8"){let r=tp[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?eS(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function tD(e){return(0,o.j)(tb(ty(e,e_),eC))}function tg(e){return tb(ty((0,o.h)(e),eC),e_)}function tE(e){return["did:key","z"+tb(eB([ty("K36",eO),e]),eO)].join(":")}function tv(e){let t=e.split("."),r=tD(t[0]),n=tD(t[1]);return{header:r,payload:n,signature:ty(t[2],e_),data:ty(t.slice(0,2).join("."),eA)}}function tm(e=l(32)){let t=ex.getPublicKey(e);return{secretKey:eB([e,t]),publicKey:t}}async function tw(e,t,r,o,i=(0,n.fromMiliseconds)(Date.now())){let s={alg:"EdDSA",typ:"JWT"},a={iss:tE(o.publicKey),sub:e,aud:t,iat:i,exp:i+r},u=ty([tg((c={header:s,payload:a}).header),tg(c.payload)].join("."),eA);var c,f={header:s,payload:a,signature:ex.sign(u,o.secretKey.slice(0,32))};return[tg(f.header),tg(f.payload),tb(f.signature,e_)].join(".")}},22926:(e,t,r)=>{"use strict";r.d(t,{kF:()=>i});class n{}class o extends n{constructor(){super()}}class i extends o{constructor(e){super()}}},25042:(e,t,r)=>{"use strict";function n(e){if("string"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3'),(e,t)=>"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t)}catch(t){return e}}function o(e){return"string"==typeof e?e:JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString()+"n":t)||""}r.d(t,{h:()=>o,j:()=>n})},25648:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(90643);n.__exportStar(r(81452),t),n.__exportStar(r(80361),t)},25939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;let n=r(25648);t.toMiliseconds=function(e){return e*n.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/n.ONE_THOUSAND)}},26662:(e,t)=>{"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function n(e){let t=r(e);if(!t)throw Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=n,t.getDocumentOrThrow=function(){return n("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return n("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return n("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return n("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return n("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},38053:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(void 0!==t.elapsed)throw Error(`Watch already stopped for label: ${e}`);let r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){let t=this.timestamps.get(e);if(void 0===t)throw Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=r,t.default=r},40800:(e,t,r)=>{"use strict";r.d(t,{o0:()=>d});var n=r(95704),o=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},i=function(e,t,r){this.name=e,this.version=t,this.os=r,this.type="browser"},s=function(e){this.version=e,this.type="node",this.name="node",this.os=n.platform},a=function(e,t,r,n){this.name=e,this.version=t,this.os=r,this.bot=n,this.type="bot-device"},u=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},c=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},f=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],h=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(e){return e?p(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new c:"undefined"!=typeof navigator?p(navigator.userAgent):void 0!==n&&n.version?new s(n.version.slice(1)):null}function p(e){var t=""!==e&&l.reduce(function(t,r){var n=r[0],o=r[1];if(t)return t;var i=o.exec(e);return!!i&&[n,i]},!1);if(!t)return null;var r=t[0],n=t[1];if("searchbot"===r)return new u;var s=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);s?s.length<3&&(s=o(o([],s,!0),function(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}(3-s.length),!0)):s=[];var c=s.join("."),d=function(e){for(var t=0,r=h.length;t<r;t++){var n=h[t],o=n[0];if(n[1].exec(e))return o}return null}(e),p=f.exec(e);return p&&p[1]?new a(r,c,d,p[1]):new i(r,c,d)}},46186:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function o(e){return n(e)&&"method"in e}function i(e){return n(e)&&(s(e)||a(e))}function s(e){return"result"in e}function a(e){return"error"in e}r.d(t,{U$:()=>a,p3:()=>o,tq:()=>i,xT:()=>s})},48543:(e,t)=>
1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}},50155:(e,t,r)=>{"use strict";r.d(t,{IJsonRpcProvider:()=>s.kF,formatJsonRpcError:()=>i.dZ,formatJsonRpcRequest:()=>i.e_,formatJsonRpcResult:()=>i.Im,getBigIntRpcId:()=>i.eX,isHttpUrl:()=>a.q$,isJsonRpcError:()=>u.U$,isJsonRpcRequest:()=>u.p3,isJsonRpcResponse:()=>u.tq,isJsonRpcResult:()=>u.xT,isLocalhostUrl:()=>a.z,isWsUrl:()=>a.A1,parseConnectionError:()=>n.eF,payloadId:()=>i.ER}),r(55402);var n=r(92153),o=r(10824);r.o(o,"IJsonRpcProvider")&&r.d(t,{IJsonRpcProvider:function(){return o.IJsonRpcProvider}}),r.o(o,"formatJsonRpcError")&&r.d(t,{formatJsonRpcError:function(){return o.formatJsonRpcError}}),r.o(o,"formatJsonRpcRequest")&&r.d(t,{formatJsonRpcRequest:function(){return o.formatJsonRpcRequest}}),r.o(o,"formatJsonRpcResult")&&r.d(t,{formatJsonRpcResult:function(){return o.formatJsonRpcResult}}),r.o(o,"getBigIntRpcId")&&r.d(t,{getBigIntRpcId:function(){return o.getBigIntRpcId}}),r.o(o,"isHttpUrl")&&r.d(t,{isHttpUrl:function(){return o.isHttpUrl}}),r.o(o,"isJsonRpcError")&&r.d(t,{isJsonRpcError:function(){return o.isJsonRpcError}}),r.o(o,"isJsonRpcRequest")&&r.d(t,{isJsonRpcRequest:function(){return o.isJsonRpcRequest}}),r.o(o,"isJsonRpcResponse")&&r.d(t,{isJsonRpcResponse:function(){return o.isJsonRpcResponse}}),r.o(o,"isJsonRpcResult")&&r.d(t,{isJsonRpcResult:function(){return o.isJsonRpcResult}}),r.o(o,"isLocalhostUrl")&&r.d(t,{isLocalhostUrl:function(){return o.isLocalhostUrl}}),r.o(o,"isReactNative")&&r.d(t,{isReactNative:function(){return o.isReactNative}}),r.o(o,"isWsUrl")&&r.d(t,{isWsUrl:function(){return o.isWsUrl}}),r.o(o,"payloadId")&&r.d(t,{payloadId:function(){return o.payloadId}});var i=r(89530),s=r(22926),a=r(94754),u=r(46186)},52749:(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,o=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},o={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o.iterable&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function h(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(o.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(o.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;o.arrayBuffer&&o.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=l(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(o.blob)return this.blob().then(d);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,i=l(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,r=h(t=new FileReader),o=(n=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=a(e),t=u(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},f.prototype.delete=function(e){delete this.map[a(e)]},f.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},f.prototype.set=function(e,t){this.map[a(e)]=u(t)},f.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},f.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),c(e)},f.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),c(e)},f.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),c(e)},o.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);var y=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function D(e,t){if(!(this instanceof D))throw TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var r,o,i=(t=t||{}).body;if(e instanceof D){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new f(t.headers)),this.method=(o=(r=t.method||this.method||"GET").toUpperCase(),y.indexOf(o)>-1?o:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in n)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function E(e,t){if(!(this instanceof E))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}D.prototype.clone=function(){return new D(this,{body:this._bodyInit})},b.call(D.prototype),b.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var v=[301,302,303,307,308];E.redirect=function(e,t){if(-1===v.indexOf(t))throw RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function m(e,r){return new Promise(function(i,s){var c=new D(e,r);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function h(){l.abort()}if(l.onload=function(){var e,t,r={statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}}),t)};0===c.url.indexOf("file://")&&(l.status<200||l.status>599)?r.status=200:r.status=l.status,r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var n="response"in l?l.response:l.responseText;setTimeout(function(){i(new E(n,r))},0)},l.onerror=function(){setTimeout(function(){s(TypeError("Network request failed"))},0)},l.ontimeout=function(){setTimeout(function(){s(TypeError("Network request timed out"))},0)},l.onabort=function(){setTimeout(function(){s(new t.DOMException("Aborted","AbortError"))},0)}
1,l.open(c.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?l.withCredentials=!0:"omit"===c.credentials&&(l.withCredentials=!1),"responseType"in l&&(o.blob?l.responseType="blob":o.arrayBuffer&&(l.responseType="arraybuffer")),r&&"object"==typeof r.headers&&!(r.headers instanceof f||n.Headers&&r.headers instanceof n.Headers)){var d=[];Object.getOwnPropertyNames(r.headers).forEach(function(e){d.push(a(e)),l.setRequestHeader(e,u(r.headers[e]))}),c.headers.forEach(function(e,t){-1===d.indexOf(t)&&l.setRequestHeader(t,e)})}else c.headers.forEach(function(e,t){l.setRequestHeader(t,e)});c.signal&&(c.signal.addEventListener("abort",h),l.onreadystatechange=function(){4===l.readyState&&c.signal.removeEventListener("abort",h)}),l.send(void 0===c._bodyInit?null:c._bodyInit)})}m.polyfill=!0,n.fetch||(n.fetch=m,n.Headers=f,n.Request=D,n.Response=E),t.Headers=f,t.Request=D,t.Response=E,t.fetch=m,Object.defineProperty(t,"__esModule",{value:!0})}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=n.fetch?n:o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},54647:(e,t,r)=>{"use strict";r.d(t,{Fo:()=>eL});var n={};r.r(n),r.d(n,{identity:()=>O});var o={};r.r(o),r.d(o,{base2:()=>S});var i={};r.r(i),r.d(i,{base8:()=>R});var s={};r.r(s),r.d(s,{base10:()=>B});var a={};r.r(a),r.d(a,{base16:()=>U,base16upper:()=>T});var u={};r.r(u),r.d(u,{base32:()=>I,base32hex:()=>F,base32hexpad:()=>M,base32hexpadupper:()=>k,base32hexupper:()=>j,base32pad:()=>P,base32padupper:()=>L,base32upper:()=>N,base32z:()=>H});var c={};r.r(c),r.d(c,{base36:()=>W,base36upper:()=>z});var f={};r.r(f),r.d(f,{base58btc:()=>J,base58flickr:()=>q});var l={};r.r(l),r.d(l,{base64:()=>V,base64pad:()=>$,base64url:()=>Y,base64urlpad:()=>K});var h={};r.r(h),r.d(h,{base256emoji:()=>Q});var d={};r.r(d),r.d(d,{sha256:()=>el,sha512:()=>eh});var p={};r.r(p),r.d(p,{identity:()=>ed});var b={};r.r(b),r.d(b,{code:()=>eb,decode:()=>eD,encode:()=>ey,name:()=>ep});var y={};r.r(y),r.d(y,{code:()=>em,decode:()=>ex,encode:()=>ew,name:()=>ev});let D=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var o=0;o<e.length;o++){var i=e.charAt(o),s=i.charCodeAt(0);if(255!==r[s])throw TypeError(i+" is ambiguous");r[s]=o}var a=e.length,u=e.charAt(0),c=Math.log(a)/Math.log(256),f=Math.log(256)/Math.log(a);function l(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var n=0,o=0;e[t]===u;)n++,t++;for(var i=(e.length-t)*c+1>>>0,s=new Uint8Array(i);e[t];){var f=r[e.charCodeAt(t)];if(255===f)return;for(var l=0,h=i-1;(0!==f||l<o)&&-1!==h;h--,l++)f+=a*s[h]>>>0,s[h]=f%256>>>0,f=f/256>>>0;if(0!==f)throw Error("Non-zero carry");o=l,t++}if(" "!==e[t]){for(var d=i-o;d!==i&&0===s[d];)d++;for(var p=new Uint8Array(n+(i-d)),b=n;d!==i;)p[b++]=s[d++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,o=0,i=t.length;o!==i&&0===t[o];)o++,r++;for(var s=(i-o)*f+1>>>0,c=new Uint8Array(s);o!==i;){for(var l=t[o],h=0,d=s-1;(0!==l||h<n)&&-1!==d;d--,h++)l+=256*c[d]>>>0,c[d]=l%a>>>0,l=l/a>>>0;if(0!==l)throw Error("Non-zero carry");n=h,o++}for(var p=s-n;p!==s&&0===c[p];)p++;for(var b=u.repeat(r);p<s;++p)b+=e.charAt(c[p]);return b},decodeUnsafe:l,decode:function(e){var r=l(e);if(r)return r;throw Error(`Non-${t} character`)}}};new Uint8Array(0);let g=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")};class E{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class v{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name}
1 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 w(this,e)}}class m{constructor(e){this.decoders=e}or(e){return w(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let w=(e,t)=>new m({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class x{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new E(e,t,r),this.decoder=new v(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let _=({name:e,prefix:t,encode:r,decode:n})=>new x(e,t,r,n),C=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:o}=D(r,t);return _({prefix:e,name:t,encode:n,decode:e=>g(o(e))})},A=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>_({prefix:t,name:e,encode:e=>((e,t,r)=>{let n="="===t[t.length-1],o=(1<<r)-1,i="",s=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],s+=8;s>r;)s-=r,i+=t[o&a>>s];if(s&&(i+=t[o&a<<r-s]),n)for(;i.length*r&7;)i+="=";return i})(e,n,r),decode:t=>((e,t,r,n)=>{let o={};for(let e=0;e<t.length;++e)o[t[e]]=e;let i=e.length;for(;"="===e[i-1];)--i;let s=new Uint8Array(i*r/8|0),a=0,u=0,c=0;for(let t=0;t<i;++t){let i=o[e[t]];if(void 0===i)throw SyntaxError(`Non-${n} character`);u=u<<r|i,(a+=r)>=8&&(a-=8,s[c++]=255&u>>a)}if(a>=r||255&u<<8-a)throw SyntaxError("Unexpected end of data");return s})(t,n,r,e)}),O=_({prefix:"\0",name:"identity",encode:e=>new TextDecoder().decode(e),decode:e=>new TextEncoder().encode(e)}),S=A({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),R=A({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),B=C({prefix:"9",name:"base10",alphabet:"0123456789"}),U=A({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),T=A({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),I=A({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),N=A({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),P=A({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),L=A({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),F=A({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),j=A({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),M=A({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),k=A({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),H=A({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),W=C({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),z=C({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),J=C({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),q=C({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),V=A({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),$=A({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Y=A({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),K=A({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),G=Array.from("\uD83D\uDE80\uD83E\uDE90☄\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2D❣\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2B⚽\uD83E\uDD19☕\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81⚡\uD83C\uDF1E\uD83C\uDF88❌✊\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2C✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),Z=G.reduce((e,t,r)=>(e[r]=t,e),[]),X=G.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]),Q=_({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>
1e+=Z[t],"")},decode:function(e){let t=[];for(let r of e){let e=X[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});function ee(e,t,r){t=t||[];for(var n=r=r||0;e>=0x80000000;)t[r++]=255&e|128,e/=128;for(;-128&e;)t[r++]=255&e|128,e>>>=7;return t[r]=0|e,ee.bytes=r-n+1,t}function et(e,t){var r,n=0,t=t||0,o=0,i=t,s=e.length;do{if(i>=s)throw et.bytes=0,RangeError("Could not decode varint");r=e[i++],n+=o<28?(127&r)<<o:(127&r)*Math.pow(2,o),o+=7}while(r>=128);return et.bytes=i-t,n}let er={encode:ee,decode:et,encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:e<0x800000000?5:e<0x40000000000?6:e<0x2000000000000?7:e<0x100000000000000?8:e<0x8000000000000000?9:10}},en=(e,t=0)=>[er.decode(e,t),er.decode.bytes],eo=(e,t,r=0)=>(er.encode(e,t,r),t),ei=e=>er.encodingLength(e),es=(e,t)=>{let r=t.byteLength,n=ei(e),o=n+ei(r),i=new Uint8Array(o+r);return eo(e,i,0),eo(r,i,n),i.set(t,o),new ea(e,r,t,i)};class ea{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let eu=({name:e,code:t,encode:r})=>new ec(e,t,r);class ec{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?es(this.code,t):t.then(e=>es(this.code,e))}throw Error("Unknown type, must be binary type")}}let ef=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),el=eu({name:"sha2-256",code:18,encode:ef("SHA-256")}),eh=eu({name:"sha2-512",code:19,encode:ef("SHA-512")}),ed={code:0,name:"identity",encode:g,digest:e=>es(0,g(e))},ep="raw",eb=85,ey=e=>g(e),eD=e=>g(e),eg=new TextEncoder,eE=new TextDecoder,ev="json",em=512,ew=e=>eg.encode(JSON.stringify(e)),ex=e=>JSON.parse(eE.decode(e));class e_{constructor(e,t,r,n){this.code=t,this.version=e,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:eI,byteLength:eI,code:eT,version:eT,multihash:eT,bytes:eT,_baseCache:eI,asCID:eI})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==eS)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==eR)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return e_.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=es(e,t);return e_.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){var t,r;return e&&this.code===e.code&&this.version===e.version&&((t=this.multihash)===(r=e.multihash)||t.code===r.code&&t.size===r.size&&((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})(t.bytes,r.bytes))}toString(e){let{bytes:t,version:r,_baseCache:n}=this;return 0===r?eA(t,n,e||J.encoder):eO(t,n,e||I.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return eN(/^0\.0/,eP),!!(e&&(e[eU]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof e_)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:n,bytes:o}=e;return new e_(t,r,n,o||eB(t,r,n.bytes))}if(null==e||!0!==e[eU])return null;{let{version:t,multihash:r,code:n}=e,o=(e=>{let t=g(e),[r,n]=en(t),[o,i]=en(t.subarray(n)),s=t.subarray(n+i);if(s.byteLength!==o)throw Error("Incorrect length");return new ea(r,o,s,t)})(r);return e_.create(t,n,o)}}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===eS)return new e_(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eS}) block encoding`);case 1:{let n=eB(e,t,r.bytes);return new e_(e,t,r,n)}default:throw Error("Invalid version")}}static createV0(e){return e_.create(0,eS,e)}static createV1(e,t){return e_.create(1,e,t)}static decode(e){let[t,r]=e_.decodeFirst(e);
1if(r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=e_.inspectBytes(e),r=t.size-t.multihashSize,n=g(e.subarray(r,r+t.multihashSize));if(n.byteLength!==t.multihashSize)throw Error("Incorrect length");let o=n.subarray(t.multihashSize-t.digestSize),i=new ea(t.multihashCode,t.digestSize,o,n);return[0===t.version?e_.createV0(i):e_.createV1(t.codec,i),e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,n]=en(e.subarray(t));return t+=n,r},n=r(),o=eS;if(18===n?(n=0,t=0):1===n&&(o=r()),0!==n&&1!==n)throw RangeError(`Invalid CID version ${n}`);let i=t,s=r(),a=r(),u=t+a;return{version:n,codec:o,multihashCode:s,digestSize:a,multihashSize:u-i,size:u}}static parse(e,t){let[r,n]=eC(e,t),o=e_.decode(n);return o._baseCache.set(r,e),o}}let eC=(e,t)=>{switch(e[0]){case"Q":{let r=t||J;return[J.prefix,r.decode(`${J.prefix}${e}`)]}case J.prefix:{let r=t||J;return[J.prefix,r.decode(e)]}case I.prefix:{let r=t||I;return[I.prefix,r.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},eA=(e,t,r)=>{let{prefix:n}=r;if(n!==J.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let o=t.get(n);if(null!=o)return o;{let o=r.encode(e).slice(1);return t.set(n,o),o}},eO=(e,t,r)=>{let{prefix:n}=r,o=t.get(n);if(null!=o)return o;{let o=r.encode(e);return t.set(n,o),o}},eS=112,eR=18,eB=(e,t,r)=>{let n=ei(e),o=n+ei(t),i=new Uint8Array(o+r.byteLength);return eo(e,i,0),eo(t,i,n),i.set(r,o),i},eU=Symbol.for("@ipld/js-cid/CID"),eT={writable:!1,configurable:!1,enumerable:!0},eI={writable:!1,enumerable:!1,configurable:!1},eN=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},eP=`CID.isCID(v) is deprecated and will be removed in the next major release.
2Following code pattern:
3
4if (CID.isCID(value)) {
5  doSomethingWithCID(value)
6}
7
8Is replaced with:
9
10const cid = CID.asCID(value)
11if (cid) {
12  // Make sure to use cid instead of value
13  doSomethingWithCID(cid)
14}
15`,eL={...n,...o,...i,...s,...a,...u,...c,...f,...l,...h};({...d,...p})},55402:(e,t,r)=>{"use strict";r.d(t,{Uf:()=>s,XW:()=>a,fO:()=>o,jf:()=>i,zR:()=>n});let n="INTERNAL_ERROR",o="SERVER_ERROR",i=[-32700,-32600,-32601,-32602,-32603],s={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[n]:{code:-32603,message:"Internal error"},[o]:{code:-32e3,message:"Server error"}},a=o},55762:e=>{"use strict";e.exports=function(){throw Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},57317:(e,t,r)=>{"use strict";r.d(t,{A:()=>g,V:()=>g});var n=r(16459),o=r(52749),i=r.n(o),s=r(25042),a=r(50155),u=Object.defineProperty,c=Object.defineProperties,f=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,p=(e,t,r)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b=(e,t)=>{for(var r in t||(t={}))h.call(t,r)&&p(e,r,t[r]);if(l)for(var r of l(t))d.call(t,r)&&p(e,r,t[r]);return e},y=(e,t)=>c(e,f(t));let D={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};class g{constructor(e,t=!1){if(this.url=e,this.disableProviderPing=t,this.events=new n.EventEmitter,this.isAvailable=!1,this.registering=!1,!(0,a.isHttpUrl)(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=t}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw Error("Connection already closed");this.onClose()}async send(e){this.isAvailable||await this.register();try{let t=(0,s.h)(e),r=await (await i()(this.url,y(b({},D),{body:t}))).json();this.onPayload({data:r})}catch(t){this.onError(e.id,t)}}async register(e=this.url){if(!(0,a.isHttpUrl)(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>
15{this.events.once("register_error",e=>{this.resetMaxListeners(),t(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return t(Error("HTTP connection is missing or invalid"));e()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){let t=(0,s.h)({id:1,jsonrpc:"2.0",method:"test",params:[]});await i()(e,y(b({},D),{body:t}))}this.onOpen()}catch(t){let e=this.parseError(t);throw this.events.emit("register_error",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;let t="string"==typeof e.data?(0,s.j)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let r=this.parseError(t),n=r.message||r.toString(),o=(0,a.formatJsonRpcError)(e,n);this.events.emit("payload",o)}parseError(e,t=this.url){return(0,a.parseConnectionError)(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}},60480:(e,t,r)=>{"use strict";r.d(t,{H:()=>n});class n{}},64663:(e,t,r)=>{"use strict";function n(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function o(){let e=n();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=n,t.getSubtleCrypto=o,t.isBrowserCryptoAvailable=function(){return!!n()&&!!o()}},67878:(e,t,r)=>{"use strict";r.d(t,{VH:()=>c,li:()=>u});var n=r(16459),o=r(5566),i=r(60480);class s extends i.H{constructor(e){super()}}let a=o.FIVE_SECONDS,u={pulse:"heartbeat_pulse"};class c extends s{constructor(e){super(e),this.events=new n.EventEmitter,this.interval=a,this.interval=e?.interval||a}static async init(e){let t=new c(e);return await t.init(),t}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),(0,o.toMiliseconds)(this.interval))}pulse(){this.events.emit(u.pulse)}}},80361:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},81452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},87822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(90643);n.__exportStar(r(64663),t),n.__exportStar(r(91609),t)},88254:(e,t,r)=>{"use strict";let n;function o(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function i(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let n=o(r);return(e,r)=>n.then(n=>r(n.transaction(t,e).objectStore(t)))}function s(){return n||(n=i("keyval-store","keyval")),n}function a(e,t=s()){return t("readonly",t=>o(t.get(e)))}function u(e,t,r=s()){return r("readwrite",r=>(r.put(t,e),o(r.transaction)))}function c(e,t=s()){return t("readwrite",t=>(t.delete(e),o(t.transaction)))}function f(e=s()){return e("readwrite",e=>(e.clear(),o(e.transaction)))}function l(e=s()){return e("readonly",e=>{var t;if(e.getAllKeys)return o(e.getAllKeys());let r=[];return(t=e=>r.push(e.key),e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},o(e.transaction)).then(()=>r)})}r.d(t,{HP:()=>l,IU:()=>f,Jt:()=>a,hZ:()=>u,y$:()=>i,yH:()=>c})},88955:(e,t,r)=>{"use strict";t.g=void 0;let n=r(26662);t.g=function(){let e,t,r;
15try{e=n.getDocumentOrThrow(),t=n.getLocationOrThrow()}catch(e){return null}function o(...t){let r=e.getElementsByTagName("meta");for(let e=0;e<r.length;e++){let n=r[e],o=["itemprop","property","name"].map(e=>n.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(o.length&&o){let e=n.getAttribute("content");if(e)return e}}return""}let i=((r=o("name","og:site_name","og:title","twitter:title"))||(r=e.title),r),s=o("description","og:description","twitter:description","keywords"),a=t.origin;return{description:s,url:a,icons:function(){let r=e.getElementsByTagName("link"),n=[];for(let e=0;e<r.length;e++){let o=r[e],i=o.getAttribute("rel");if(i&&i.toLowerCase().indexOf("icon")>-1){let e=o.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=t.protocol+"//"+t.host;if(0===e.indexOf("/"))r+=e;else{let n=t.pathname.split("/");n.pop(),r+=n.join("/")+"/"+e}n.push(r)}else if(0===e.indexOf("//")){let r=t.protocol+e;n.push(r)}else n.push(e)}}return n}(),name:i}}},89530:(e,t,r)=>{"use strict";r.d(t,{ER:()=>i,Im:()=>u,dZ:()=>c,eX:()=>s,e_:()=>a});var n=r(92153),o=r(55402);
15function i(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function s(e=6){return BigInt(i(e))}function a(e,t,r){return{id:r||i(),jsonrpc:"2.0",method:e,params:t}}function u(e,t){return{id:e,jsonrpc:"2.0",result:t}}function c(e,t,r){var i,s;return{id:e,jsonrpc:"2.0",error:(i=t,s=r,void 0===i?(0,n.vG)(o.zR):("string"==typeof i&&(i=Object.assign(Object.assign({},(0,n.vG)(o.fO)),{message:i})),void 0!==s&&(i.data=s),(0,n.mE)(i.code)&&(i=(0,n.rI)(i.code)),i))}}},90332:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(90643).__exportStar(r(19511),t)},90643:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>v,__asyncGenerator:()=>E,__asyncValues:()=>m,__await:()=>g,__awaiter:()=>f,__classPrivateFieldGet:()=>C,__classPrivateFieldSet:()=>A,__createBinding:()=>h,__decorate:()=>a,__exportStar:()=>d,__extends:()=>o,__generator:()=>l,__importDefault:()=>_,__importStar:()=>x,__makeTemplateObject:()=>w,__metadata:()=>c,__param:()=>u,__read:()=>b,__rest:()=>s,__spread:()=>y,__spreadArrays:()=>D,__values:()=>p});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function a(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){var u=[i,a];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,n=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){s.label=u[1];break}if(6===u[0]&&s.label<o[1]){s.label=o[1],o=u;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(u);break}o[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function h(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function d(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function D(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function g(e){return this instanceof g?(this.v=e,this):new g(e)}function E(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){i.push([e,t,r,n])>1||a(e,t)})})}function a(e,t){try{var r;(r=o[e](t)).value instanceof g?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function v(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:g(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function m(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){var i,s,a;i=n,s=o,a=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){i({value:e,done:a})},s)})}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
15function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function A(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},91074:(e,t,r)=>{"use strict";r.d(t,{CG:()=>n});let n={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}}},91609:(e,t,r)=>{"use strict";var n=r(95704);function o(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function i(){return void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=o,t.isNode=i,t.isBrowser=function(){return!o()&&!i()}},92153:(e,t,r)=>{"use strict";r.d(t,{eF:()=>a,mE:()=>o,rI:()=>s,vG:()=>i});var n=r(55402);function o(e){return n.jf.includes(e)}function i(e){return Object.keys(n.Uf).includes(e)?n.Uf[e]:n.Uf[n.XW]}function s(e){let t=Object.values(n.Uf).find(t=>t.code===e);return t||n.Uf[n.XW]}function a(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?Error(`Unavailable ${r} RPC url at ${t}`):e}},94754:(e,t,r)=>{"use strict";function n(e,t){let r=function(e){let t=e.match(RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return void 0!==r&&new RegExp(t).test(r)}function o(e){return n(e,"^https?:")}function i(e){return n(e,"^wss?:")}function s(e){return RegExp("wss?://localhost(:d{2,5})?").test(e)}r.d(t,{A1:()=>i,q$:()=>o,z:()=>s})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.