-
Notifications
You must be signed in to change notification settings - Fork 2
/
6026.9a5083dcbd5a32bce74b.js
1 lines (1 loc) · 28 KB
/
6026.9a5083dcbd5a32bce74b.js
1
(self.webpackChunktimeless_frontend=self.webpackChunktimeless_frontend||[]).push([[6026],{84707:(w,f,l)=>{const y=l(93105);w.exports=class extends y{constructor(d,c,e){super(),this.targets=c,this.options=e,this.connections=d,this.connected=!1,this.status="loading",this.interval=e.interval||5e3,this.name=e.name||"default",this.inSetup=!0,this.connect()}connect(d=0){if(this.connection&&"connected"===this.connection.status&&d>=this.connection.index);else if(0===this.targets.length);else{const{protocol:c,location:e}=this.targets[d];this.connection=this.connections[c](e,this.options);const t=r=>this.connectionError(d,r);this.connection.once("error",t),this.connection.on("connect",()=>{this.connection.off("error",t),this.connection.once("error",r=>this.onError(r)),this.connection.once("close",()=>{this.connected=!1,this.emitClose(),this.closing||this.refresh()}),this.connection.target=this.targets[d],this.connection.index=d,this.targets[d].status=this.connection.status,this.connected=!0,this.inSetup=!1,this.emit("connect")}),this.connection.on("data",r=>this.emit("data",r)),this.connection.on("payload",r=>this.emit("payload",r))}}onError(d){if(this.listenerCount("error"))return this.emit("error",d);console.warn("[eth-provider] Uncaught connection error: "+d.message)}refresh(d=this.interval){clearTimeout(this.connectTimer),this.connectTimer=setTimeout(()=>this.connect(),d)}connectionError(d,c){this.connection&&this.connection.close&&this.connection.close(),this.targets[d].status=c,this.targets.length-1===d?(this.inSetup=!1,this.refresh()):this.connect(++d)}emitClose(){this.emit("close")}close(){this.closing=!0,this.connection&&this.connection.close&&!this.connection.closed?this.connection.close():this.emit("close"),clearTimeout(this.connectTimer),clearTimeout(this.setupTimer)}error(d,c,e=-1){this.emit("payload",{id:d.id,jsonrpc:d.jsonrpc,error:{message:c,code:e}})}send(d){this.inSetup?this.setupTimer=setTimeout(()=>this.send(d),100):this.connection.closed?this.error(d,"Not connected",4900):this.connection.send(d)}}},36026:(w,f,l)=>{const y=l(91507),b=l(32348),v=l(15360),m={ethereum:"undefined"!=typeof window&&void 0!==window.ethereum?window.ethereum:null,web3:"undefined"!=typeof window&&void 0!==window.web3?window.web3.currentProvider:null},d="undefined"!=typeof window&&void 0!==window.WebSocket?window.WebSocket:null,c="undefined"!=typeof window&&void 0!==window.XMLHttpRequest?window.XMLHttpRequest:null;m.ethereum&&(m.ethereum.__isProvider=!0);const e={injected:m.ethereum||l(32709)(m.web3),ipc:l(81223)("IPC connections are unavliable in the browser"),ws:l(50705)(d),http:l(14159)(c)};w.exports=(t,r)=>{t&&!Array.isArray(t)&&"object"==typeof t&&!r&&(r=t,t=void 0),t||(t=["injected","frame"]),r||(r={}),(t=[].concat(t)).forEach(h=>{if(h.startsWith("alchemy")&&!r.alchemyId)throw new Error("Alchemy was included as a connection target but no Alchemy project ID was passed in options e.g. { alchemyId: '123abc' }");if(h.startsWith("infura")&&!r.infuraId)throw new Error("Infura was included as a connection target but no Infura project ID was passed in options e.g. { infuraId: '123abc' }")});const u=v(r);return b(e,y(t,u),r)}},14159:(w,f,l)=>{const y=l(93105),{v4:b}=l(561);let m;class d extends y{constructor(e,t,r){super(),m=e,this.options=r,this.connected=!1,this.subscriptions=!1,this.status="loading",this.url=t,this.pollId=b(),setTimeout(()=>this.create(),0),this._emit=(...u)=>this.closed?null:this.emit(...u)}onError(e){!this.closed&&this.listenerCount("error")&&this.emit("error",e)}create(){if(!m)return this.onError(new Error("No HTTP transport available"));this.on("error",()=>{this.connected&&this.close()}),this.init()}init(){this.send({jsonrpc:"2.0",method:"net_version",params:[],id:1},(e,t)=>{if(e)return this.onError(e);this.connected=!0,this._emit("connect"),this.send({jsonrpc:"2.0",id:1,method:"eth_pollSubscriptions",params:[this.pollId,"immediate"]},(r,u)=>{r||(this.subscriptions=!0,this.pollSubscriptions())})})}pollSubscriptions(){this.send({jsonrpc:"2.0",id:1,method:"eth_pollSubscriptions",params:[this.pollId]},(e,t)=>{if(e)return this.subscriptionTimeout=setTimeout(()=>this.pollSubscriptions(),1e4),this.onError(e);this.closed||(this.subscriptionTimeout=this.pollSubscriptions()),t&&t.map(r=>{let u;try{u=JSON.parse(r)}catch{u=!1}return u}).filter(r=>r).forEach(r=>this._emit("payload",r))})}close(){clearTimeout(this.subscriptionTimeout),this._emit("close"),this.closed=!0,this.removeAllListeners()}filterStatus(e){if(e.status>=200&&e.status<300)return e;const t=new Error(e.statusText);throw t.res=e,t.message}error(e,t,r=-1){this._emit("payload",{id:e.id,jsonrpc:e.jsonrpc,error:{message:t,code:r}})}send(e,t){if(this.closed)return this.error(e,"Not connected");if("eth_subscribe"===e.method){if(!this.subscriptions)return this.error(e,"Subscriptions are not supported by this HTTP endpoint");e.pollId=this.pollId}const r=new m;let u=!1;const h=(_,s)=>{if(!u)if(r.abort(),u=!0,t)t(_,s);else{const{id:g,jsonrpc:i}=e;this._emit("payload",_?{id:g,jsonrpc:i,error:{message:_.message,code:_.code}}:{id:g,jsonrpc:i,result:s})}};try{r.open("POST",this.url,!0),r.setRequestHeader("Content-Type","application/json"),r.timeout=6e4,r.onerror=h,r.ontimeout=h,r.onreadystatechange=()=>{if(4===r.readyState)try{const _=JSON.parse(r.responseText);h(_.error,_.result)}catch(_){h(_)}},r.send(JSON.stringify(e))}catch(_){h({message:_.message,code:-1})}}}w.exports=c=>(e,t)=>new d(c,e,t)},32709:(w,f,l)=>{const y=l(93105);class b extends y{constructor(m,d){super(),setTimeout(m?()=>this.onError(new Error("Injected web3 provider is not currently supported")):()=>this.onError(new Error("No injected provider found")),0)}onError(m){this.listenerCount("error")&&this.emit("error",m)}}w.exports=v=>m=>new b(v,m)},81223:(w,f,l)=>{const y=l(93105);class b extends y{constructor(m){super(),setTimeout(()=>this.onError(new Error(m)),0)}onError(m){this.listenerCount("error")&&this.emit("error",m)}}w.exports=v=>()=>new b(v)},50705:(w,f,l)=>{const y=l(93105),b=l(85003);let m;class d extends y{constructor(e,t,r){super(),this.socketListeners=[],m=e,setTimeout(()=>this.create(t,r),0)}create(e,t){if(!m)return this.onError(new Error("No WebSocket transport available"));try{this.socket=new m(e,[],{origin:t.origin})}catch(r){return this.onError(r)}this.addSocketListener("error",this.onError.bind(this)),this.addSocketListener("open",this.onOpen.bind(this)),this.addSocketListener("close",this.onClose.bind(this))}addSocketListener(e,t){this.socket.addEventListener(e,t),this.socketListeners.push({event:e,handler:t})}removeAllSocketListeners(){this.socketListeners.forEach(({event:e,handler:t})=>{this.socket.removeEventListener(e,t)}),this.socketListeners=[]}onOpen(){this.emit("connect"),this.addSocketListener("message",this.onMessage.bind(this))}onMessage(e){b("string"==typeof e.data?e.data:"",(r,u)=>{r||u.forEach(h=>{Array.isArray(h)?h.forEach(_=>this.emit("payload",_)):this.emit("payload",h)})})}onError(e){this.listenerCount("error")&&this.emit("error",e)}onClose(e){this.socket&&(this.removeAllSocketListeners(),this.socket=null),this.closed=!0,this.emit("close"),this.removeAllListeners()}close(){this.socket&&m&&this.socket.readyState!==m.CLOSED?(this.removeAllSocketListeners(),this.addSocketListener("error",()=>{}),this.addSocketListener("close",this.onClose.bind(this)),this.socket.terminate?this.socket.terminate():this.socket.close()):this.onClose()}error(e,t,r=-1){this.emit("payload",{id:e.id,jsonrpc:e.jsonrpc,error:{message:t,code:r}})}send(e){try{this.socket&&this.socket.readyState===this.socket.CONNECTING?setTimeout(t=>this.send(e),10):!this.socket||this.socket.readyState>1?(this.connected=!1,this.error(e,"Not connected")):this.socket.send(JSON.stringify(e))}catch(t){this.error(e,t.message)}}}w.exports=c=>(e,t)=>new d(c,e,t)},561:(w,f,l)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),Object.defineProperty(f,"NIL",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(f,"parse",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(f,"stringify",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(f,"v1",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(f,"v3",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(f,"v4",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(f,"v5",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(f,"validate",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(f,"version",{enumerable:!0,get:function(){return c.default}});var y=u(l(19722)),b=u(l(84366)),v=u(l(5757)),m=u(l(44654)),d=u(l(38090)),c=u(l(39765)),e=u(l(909)),t=u(l(23228)),r=u(l(72865));function u(h){return h&&h.__esModule?h:{default:h}}},18084:(w,f)=>{"use strict";function b(s){return 14+(s+64>>>9<<4)+1}function d(s,g){const i=(65535&s)+(65535&g);return(s>>16)+(g>>16)+(i>>16)<<16|65535&i}function e(s,g,i,o,n,a){return d(function(s,g){return s<<g|s>>>32-g}(d(d(g,s),d(o,a)),n),i)}function t(s,g,i,o,n,a,p){return e(g&i|~g&o,s,g,n,a,p)}function r(s,g,i,o,n,a,p){return e(g&o|i&~o,s,g,n,a,p)}function u(s,g,i,o,n,a,p){return e(g^i^o,s,g,n,a,p)}function h(s,g,i,o,n,a,p){return e(i^(g|~o),s,g,n,a,p)}Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0,f.default=function(s){if("string"==typeof s){const g=unescape(encodeURIComponent(s));s=new Uint8Array(g.length);for(let i=0;i<g.length;++i)s[i]=g.charCodeAt(i)}return function(s){const g=[],i=32*s.length,o="0123456789abcdef";for(let n=0;n<i;n+=8){const a=s[n>>5]>>>n%32&255,p=parseInt(o.charAt(a>>>4&15)+o.charAt(15&a),16);g.push(p)}return g}(function(s,g){s[g>>5]|=128<<g%32,s[b(g)-1]=g;let i=1732584193,o=-271733879,n=-1732584194,a=271733878;for(let p=0;p<s.length;p+=16){const I=i,C=o,S=n,k=a;i=t(i,o,n,a,s[p],7,-680876936),a=t(a,i,o,n,s[p+1],12,-389564586),n=t(n,a,i,o,s[p+2],17,606105819),o=t(o,n,a,i,s[p+3],22,-1044525330),i=t(i,o,n,a,s[p+4],7,-176418897),a=t(a,i,o,n,s[p+5],12,1200080426),n=t(n,a,i,o,s[p+6],17,-1473231341),o=t(o,n,a,i,s[p+7],22,-45705983),i=t(i,o,n,a,s[p+8],7,1770035416),a=t(a,i,o,n,s[p+9],12,-1958414417),n=t(n,a,i,o,s[p+10],17,-42063),o=t(o,n,a,i,s[p+11],22,-1990404162),i=t(i,o,n,a,s[p+12],7,1804603682),a=t(a,i,o,n,s[p+13],12,-40341101),n=t(n,a,i,o,s[p+14],17,-1502002290),o=t(o,n,a,i,s[p+15],22,1236535329),i=r(i,o,n,a,s[p+1],5,-165796510),a=r(a,i,o,n,s[p+6],9,-1069501632),n=r(n,a,i,o,s[p+11],14,643717713),o=r(o,n,a,i,s[p],20,-373897302),i=r(i,o,n,a,s[p+5],5,-701558691),a=r(a,i,o,n,s[p+10],9,38016083),n=r(n,a,i,o,s[p+15],14,-660478335),o=r(o,n,a,i,s[p+4],20,-405537848),i=r(i,o,n,a,s[p+9],5,568446438),a=r(a,i,o,n,s[p+14],9,-1019803690),n=r(n,a,i,o,s[p+3],14,-187363961),o=r(o,n,a,i,s[p+8],20,1163531501),i=r(i,o,n,a,s[p+13],5,-1444681467),a=r(a,i,o,n,s[p+2],9,-51403784),n=r(n,a,i,o,s[p+7],14,1735328473),o=r(o,n,a,i,s[p+12],20,-1926607734),i=u(i,o,n,a,s[p+5],4,-378558),a=u(a,i,o,n,s[p+8],11,-2022574463),n=u(n,a,i,o,s[p+11],16,1839030562),o=u(o,n,a,i,s[p+14],23,-35309556),i=u(i,o,n,a,s[p+1],4,-1530992060),a=u(a,i,o,n,s[p+4],11,1272893353),n=u(n,a,i,o,s[p+7],16,-155497632),o=u(o,n,a,i,s[p+10],23,-1094730640),i=u(i,o,n,a,s[p+13],4,681279174),a=u(a,i,o,n,s[p],11,-358537222),n=u(n,a,i,o,s[p+3],16,-722521979),o=u(o,n,a,i,s[p+6],23,76029189),i=u(i,o,n,a,s[p+9],4,-640364487),a=u(a,i,o,n,s[p+12],11,-421815835),n=u(n,a,i,o,s[p+15],16,530742520),o=u(o,n,a,i,s[p+2],23,-995338651),i=h(i,o,n,a,s[p],6,-198630844),a=h(a,i,o,n,s[p+7],10,1126891415),n=h(n,a,i,o,s[p+14],15,-1416354905),o=h(o,n,a,i,s[p+5],21,-57434055),i=h(i,o,n,a,s[p+12],6,1700485571),a=h(a,i,o,n,s[p+3],10,-1894986606),n=h(n,a,i,o,s[p+10],15,-1051523),o=h(o,n,a,i,s[p+1],21,-2054922799),i=h(i,o,n,a,s[p+8],6,1873313359),a=h(a,i,o,n,s[p+15],10,-30611744),n=h(n,a,i,o,s[p+6],15,-1560198380),o=h(o,n,a,i,s[p+13],21,1309151649),i=h(i,o,n,a,s[p+4],6,-145523070),a=h(a,i,o,n,s[p+11],10,-1120210379),n=h(n,a,i,o,s[p+2],15,718787259),o=h(o,n,a,i,s[p+9],21,-343485551),i=d(i,I),o=d(o,C),n=d(n,S),a=d(a,k)}return[i,o,n,a]}(function(s){if(0===s.length)return[];const g=8*s.length,i=new Uint32Array(b(g));for(let o=0;o<g;o+=8)i[o>>5]|=(255&s[o/8])<<o%32;return i}(s),8*s.length))}},90488:(w,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0;var y={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};f.default=y},38090:(w,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0,f.default="00000000-0000-0000-0000-000000000000"},72865:(w,f,l)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0;var d,y=(d=l(909))&&d.__esModule?d:{default:d};f.default=function(d){if(!(0,y.default)(d))throw TypeError("Invalid UUID");let c;const e=new Uint8Array(16);return e[0]=(c=parseInt(d.slice(0,8),16))>>>24,e[1]=c>>>16&255,e[2]=c>>>8&255,e[3]=255&c,e[4]=(c=parseInt(d.slice(9,13),16))>>>8,e[5]=255&c,e[6]=(c=parseInt(d.slice(14,18),16))>>>8,e[7]=255&c,e[8]=(c=parseInt(d.slice(19,23),16))>>>8,e[9]=255&c,e[10]=(c=parseInt(d.slice(24,36),16))/1099511627776&255,e[11]=c/4294967296&255,e[12]=c>>>24&255,e[13]=c>>>16&255,e[14]=c>>>8&255,e[15]=255&c,e}},30178:(w,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0,f.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},54969:(w,f)=>{"use strict";let l;Object.defineProperty(f,"__esModule",{value:!0}),f.default=function(){if(!l&&(l="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!l))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(y)};const y=new Uint8Array(16)},51288:(w,f)=>{"use strict";function l(m,d,c,e){switch(m){case 0:return d&c^~d&e;case 1:case 3:return d^c^e;case 2:return d&c^d&e^c&e}}function y(m,d){return m<<d|m>>>32-d}Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0,f.default=function(m){const d=[1518500249,1859775393,2400959708,3395469782],c=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof m){const u=unescape(encodeURIComponent(m));m=[];for(let h=0;h<u.length;++h)m.push(u.charCodeAt(h))}else Array.isArray(m)||(m=Array.prototype.slice.call(m));m.push(128);const t=Math.ceil((m.length/4+2)/16),r=new Array(t);for(let u=0;u<t;++u){const h=new Uint32Array(16);for(let _=0;_<16;++_)h[_]=m[64*u+4*_]<<24|m[64*u+4*_+1]<<16|m[64*u+4*_+2]<<8|m[64*u+4*_+3];r[u]=h}r[t-1][14]=8*(m.length-1)/Math.pow(2,32),r[t-1][14]=Math.floor(r[t-1][14]),r[t-1][15]=8*(m.length-1)&4294967295;for(let u=0;u<t;++u){const h=new Uint32Array(80);for(let n=0;n<16;++n)h[n]=r[u][n];for(let n=16;n<80;++n)h[n]=y(h[n-3]^h[n-8]^h[n-14]^h[n-16],1);let _=c[0],s=c[1],g=c[2],i=c[3],o=c[4];for(let n=0;n<80;++n){const a=Math.floor(n/20),p=y(_,5)+l(a,s,g,i)+o+d[a]+h[n]>>>0;o=i,i=g,g=y(s,30)>>>0,s=_,_=p}c[0]=c[0]+_>>>0,c[1]=c[1]+s>>>0,c[2]=c[2]+g>>>0,c[3]=c[3]+i>>>0,c[4]=c[4]+o>>>0}return[c[0]>>24&255,c[0]>>16&255,c[0]>>8&255,255&c[0],c[1]>>24&255,c[1]>>16&255,c[1]>>8&255,255&c[1],c[2]>>24&255,c[2]>>16&255,c[2]>>8&255,255&c[2],c[3]>>24&255,c[3]>>16&255,c[3]>>8&255,255&c[3],c[4]>>24&255,c[4]>>16&255,c[4]>>8&255,255&c[4]]}},23228:(w,f,l)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0,f.unsafeStringify=m;var e,y=(e=l(909))&&e.__esModule?e:{default:e};const v=[];for(let e=0;e<256;++e)v.push((e+256).toString(16).slice(1));function m(e,t=0){return(v[e[t+0]]+v[e[t+1]]+v[e[t+2]]+v[e[t+3]]+"-"+v[e[t+4]]+v[e[t+5]]+"-"+v[e[t+6]]+v[e[t+7]]+"-"+v[e[t+8]]+v[e[t+9]]+"-"+v[e[t+10]]+v[e[t+11]]+v[e[t+12]]+v[e[t+13]]+v[e[t+14]]+v[e[t+15]]).toLowerCase()}f.default=function(e,t=0){const r=m(e,t);if(!(0,y.default)(r))throw TypeError("Stringified UUID is invalid");return r}},19722:(w,f,l)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0;var u,y=(u=l(54969))&&u.__esModule?u:{default:u},b=l(23228);let m,d,c=0,e=0;f.default=function(u,h,_){let s=h&&_||0;const g=h||new Array(16);let i=(u=u||{}).node||m,o=void 0!==u.clockseq?u.clockseq:d;if(null==i||null==o){const S=u.random||(u.rng||y.default)();null==i&&(i=m=[1|S[0],S[1],S[2],S[3],S[4],S[5]]),null==o&&(o=d=16383&(S[6]<<8|S[7]))}let n=void 0!==u.msecs?u.msecs:Date.now(),a=void 0!==u.nsecs?u.nsecs:e+1;const p=n-c+(a-e)/1e4;if(p<0&&void 0===u.clockseq&&(o=o+1&16383),(p<0||n>c)&&void 0===u.nsecs&&(a=0),a>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=n,e=a,d=o,n+=122192928e5;const I=(1e4*(268435455&n)+a)%4294967296;g[s++]=I>>>24&255,g[s++]=I>>>16&255,g[s++]=I>>>8&255,g[s++]=255&I;const C=n/4294967296*1e4&268435455;g[s++]=C>>>8&255,g[s++]=255&C,g[s++]=C>>>24&15|16,g[s++]=C>>>16&255,g[s++]=o>>>8|128,g[s++]=255&o;for(let S=0;S<6;++S)g[s+S]=i[S];return h||(0,b.unsafeStringify)(g)}},84366:(w,f,l)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0;var y=v(l(56920)),b=v(l(18084));function v(c){return c&&c.__esModule?c:{default:c}}var d=(0,y.default)("v3",48,b.default);f.default=d},56920:(w,f,l)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.URL=f.DNS=void 0,f.default=function(t,r,u){function h(_,s,g,i){var o;if("string"==typeof _&&(_=function(t){t=unescape(encodeURIComponent(t));const r=[];for(let u=0;u<t.length;++u)r.push(t.charCodeAt(u));return r}(_)),"string"==typeof s&&(s=(0,b.default)(s)),16!==(null===(o=s)||void 0===o?void 0:o.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let n=new Uint8Array(16+_.length);if(n.set(s),n.set(_,s.length),n=u(n),n[6]=15&n[6]|r,n[8]=63&n[8]|128,g){i=i||0;for(let a=0;a<16;++a)g[i+a]=n[a];return g}return(0,y.unsafeStringify)(n)}try{h.name=t}catch{}return h.DNS=d,h.URL=c,h};var t,y=l(23228),b=(t=l(72865))&&t.__esModule?t:{default:t};const d="6ba7b810-9dad-11d1-80b4-00c04fd430c8";f.DNS=d;const c="6ba7b811-9dad-11d1-80b4-00c04fd430c8";f.URL=c},5757:(w,f,l)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0;var y=m(l(90488)),b=m(l(54969)),v=l(23228);function m(e){return e&&e.__esModule?e:{default:e}}f.default=function(e,t,r){if(y.default.randomUUID&&!t&&!e)return y.default.randomUUID();const u=(e=e||{}).random||(e.rng||b.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){r=r||0;for(let h=0;h<16;++h)t[r+h]=u[h];return t}return(0,v.unsafeStringify)(u)}},44654:(w,f,l)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0;var y=v(l(56920)),b=v(l(51288));function v(c){return c&&c.__esModule?c:{default:c}}var d=(0,y.default)("v5",80,b.default);f.default=d},909:(w,f,l)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0;var d,y=(d=l(30178))&&d.__esModule?d:{default:d};f.default=function(d){return"string"==typeof d&&y.default.test(d)}},39765:(w,f,l)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0;var d,y=(d=l(909))&&d.__esModule?d:{default:d};f.default=function(d){if(!(0,y.default)(d))throw TypeError("Invalid UUID");return parseInt(d.slice(14,15),16)}},85003:w=>{let f,l;w.exports=(y,b)=>{const v=[];y.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(m=>{let d;f&&(m=f+m);try{d=JSON.parse(m)}catch{return f=m,clearTimeout(l),void(l=setTimeout(()=>b(new Error("Parse response timeout")),15e3))}clearTimeout(l),f=null,d&&v.push(d)}),b(null,v)}},15360:w=>{w.exports=(f={})=>({injected:["injected"],frame:["ws://127.0.0.1:1248","http://127.0.0.1:1248"],direct:["ws://127.0.0.1:8546","http://127.0.0.1:8545"],infura:[`wss://mainnet.infura.io/ws/v3/${f.infuraId}`,`https://mainnet.infura.io/v3/${f.infuraId}`],alchemy:[`wss://eth-mainnet.ws.alchemyapi.io/v2/${f.alchemyId}`,`https://eth-mainnet.alchemyapi.io/v2/${f.alchemyId}`],infuraGoerli:[`wss://goerli.infura.io/ws/v3/${f.infuraId}`,`https://goerli.infura.io/v3/${f.infuraId}`],alchemyGoerli:[`wss://eth-goerli.ws.alchemyapi.io/v2/${f.alchemyId}`,`https://eth-goerli.alchemyapi.io/v2/${f.alchemyId}`],infuraPolygon:[`https://polygon-mainnet.infura.io/v3/${f.infuraId}`],infuraArbitrum:[`https://arbitrum-mainnet.infura.io/v3/${f.infuraId}`],infuraOptimism:[`https://optimism-mainnet.infura.io/v3/${f.infuraId}`],infuraSepolia:[`wss://sepolia.infura.io/ws/v3/${f.infuraId}`,`https://sepolia.infura.io/v3/${f.infuraId}`],gnosis:["https://rpc.gnosischain.com"],optimism:["https://mainnet.optimism.io"]})},32348:(w,f,l)=>{var y=l(31325).default;const b=l(93105),v=l(99838).default,m=l(84707),d=c=>{function e(_){c.status=_,c instanceof b&&c.emit("status",_)}function t(){return r.apply(this,arguments)}function r(){return(r=y(function*(){try{(yield c.send("eth_syncing"))&&e("syncing")}catch{}})).apply(this,arguments)}function u(){return h.apply(this,arguments)}function h(){return(h=y(function*(){if(c.inSetup)return setTimeout(u,1e3);try{yield c.send("eth_chainId"),e("connected"),setTimeout(t,500)}catch{e("disconnected")}})).apply(this,arguments)}return e("loading"),u(),c.on("connect",()=>u()),c.on("close",()=>e("disconnected")),c};w.exports=(c,e,t)=>{if(c.injected.__isProvider&&e.map(u=>u.type).indexOf("injected")>-1)return delete c.injected.__isProvider,d(c.injected);const r=new v(new m(c,e,t));return r.setMaxListeners(128),d(r)}},91507:w=>{const f=l=>"injected"===l?"injected":l.endsWith(".ipc")?"ipc":l.startsWith("wss://")||l.startsWith("ws://")?"ws":l.startsWith("https://")||l.startsWith("http://")?"http":"";w.exports=(l,y)=>[].concat(...[].concat(l).map(b=>y[b]?y[b].map(v=>({type:b,location:v,protocol:f(v)})):{type:"custom",location:b,protocol:f(b)})).filter(b=>!(!b.protocol&&"injected"!==b.type&&(console.log('eth-provider | Invalid provider preset/location: "'+b.location+'"'),1)))},99838:function(w,f,l){"use strict";var y=l(31325).default,b=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(f,"__esModule",{value:!0});const v=b(l(93105)),m=l(97028);f.default=class extends v.default{constructor(e){super(),this.promises={},this.attemptedSubscriptions=new Set,this.subscriptions=[],this.checkConnectionRunning=!1,this.nextId=1,this.connected=!1,this.accounts=[],this.selectedAddress=void 0,this.coinbase=void 0,this.enable=this.enable.bind(this),this.doSend=this.doSend.bind(this),this.send=this.send.bind(this),this.sendBatch=this.sendBatch.bind(this),this.subscribe=this.subscribe.bind(this),this.unsubscribe=this.unsubscribe.bind(this),this.resumeSubscriptions=this.resumeSubscriptions.bind(this),this.sendAsync=this.sendAsync.bind(this),this.sendAsyncBatch=this.sendAsyncBatch.bind(this),this.isConnected=this.isConnected.bind(this),this.close=this.close.bind(this),this.request=this.request.bind(this),this.connection=e,this.on("connect",this.resumeSubscriptions),this.connection.on("connect",()=>this.checkConnection(1e3)),this.connection.on("close",()=>{this.connected=!1,this.attemptedSubscriptions.clear(),this.emit("close"),this.emit("disconnect")}),this.connection.on("payload",t=>{const{id:r,method:u,error:h,result:_}=t;if(void 0!==r){if(this.promises[r]){const s=this.promises[r].method;if(s&&["eth_accounts","eth_requestAccounts"].includes(s)){const g=_||[];this.accounts=g,this.selectedAddress=g[0],this.coinbase=g[0]}t.error?this.promises[r].reject(h):this.promises[r].resolve(_),delete this.promises[r]}}else u&&u.indexOf("_subscription")>-1&&(this.emit(t.params.subscription,t.params.result),this.emit(u,t.params),this.emit("message",{type:t.method,data:{subscription:t.params.subscription,result:t.params.result}}),this.emit("data",t))}),this.on("newListener",t=>{Object.keys(this.eventHandlers).includes(t)&&!this.attemptedSubscription(t)&&this.connected&&(this.startSubscription(t),"networkChanged"===t&&console.warn("The networkChanged event is being deprecated, use chainChanged instead"))}),this.eventHandlers={networkChanged:t=>{this.networkVersion="string"==typeof t?parseInt(t):t,this.emit("networkChanged",this.networkVersion)},chainChanged:t=>{this.providerChainId=t,this.manualChainId||this.emit("chainChanged",t)},chainsChanged:t=>{this.emit("chainsChanged",t)},accountsChanged:t=>{this.selectedAddress=t[0],this.emit("accountsChanged",t)},assetsChanged:t=>{this.emit("assetsChanged",t)}}}get chainId(){return this.manualChainId||this.providerChainId}checkConnection(e=4e3){var t=this;return y(function*(){if(!t.checkConnectionRunning&&!t.connected){clearTimeout(t.checkConnectionTimer),t.checkConnectionTimer=void 0,t.checkConnectionRunning=!0;try{t.networkVersion=yield t.doSend("net_version",[],void 0,!1),t.providerChainId=yield t.doSend("eth_chainId",[],void 0,!1),t.connected=!0}catch{t.checkConnectionTimer=setTimeout(()=>t.checkConnection(),e),t.connected=!1}finally{t.checkConnectionRunning=!1,t.connected&&t.emit("connect",{chainId:t.providerChainId})}}})()}attemptedSubscription(e){return this.attemptedSubscriptions.has(e)}setSubscriptionAttempted(e){this.attemptedSubscriptions.add(e)}startSubscription(e){var t=this;return y(function*(){console.debug(`starting subscription for ${e} events`),t.setSubscriptionAttempted(e);try{const r=yield t.subscribe("eth_subscribe",e);t.on(r,t.eventHandlers[e])}catch(r){console.warn(`Unable to subscribe to ${e}`,r)}})()}resumeSubscriptions(){Object.keys(this.eventHandlers).forEach(e=>{this.listenerCount(e)&&!this.attemptedSubscription(e)&&this.startSubscription(e)})}enable(){var e=this;return y(function*(){const t=yield e.doSend("eth_accounts");if(t.length>0)return e.accounts=t,e.selectedAddress=t[0],e.coinbase=t[0],e.emit("enable"),t;{const r=new Error("User Denied Full Provider");throw r.code="4001",r}})()}doSend(e,t=[],r=this.manualChainId,u=!0){const h=(_,s)=>{const g="object"==typeof e?e.method:e,i="object"==typeof e?e.params:t,o="object"==typeof e&&e.chainId||r;if(!g)return s(new Error("Method is not a valid string."));try{const n=(0,m.create)(g,i,this.nextId++,o);this.promises[n.id]={resolve:a=>_(a),reject:s,method:n.method},this.connection.send(n)}catch(n){s(n)}};return new Promise(this.connected||!u?h:(_,s)=>{const g=()=>(clearTimeout(i),_(new Promise(h))),i=setTimeout(()=>{this.off("connect",g),s(new Error("Not connected"))},5e3);this.once("connect",g)})}send(e,t){var r=this;return y(function*(){return"string"!=typeof e||t&&!Array.isArray(t)?e&&"object"==typeof e&&"function"==typeof t?r.sendAsync(e,t):r.request(e):r.doSend(e,t)})()}sendBatch(e){return Promise.all(e.map(t=>this.doSend(t.method,t.params)))}subscribe(e,t,r=[]){var u=this;return y(function*(){const h=yield u.doSend(e,[t,...r]);return u.subscriptions.push(h),h})()}unsubscribe(e,t){var r=this;return y(function*(){const u=yield r.doSend(e,[t]);if(u)return r.subscriptions=r.subscriptions.filter(h=>h!==t),r.removeAllListeners(t),u})()}sendAsync(e,t){var r=this;return y(function*(){if(!t||"function"!=typeof t)return new Error("Invalid or undefined callback provided to sendAsync");if(!e)return t(new Error("Invalid Payload"));if(Array.isArray(e)){const u=e.map(_=>({..._,jsonrpc:"2.0"}));return r.sendAsyncBatch(u,t)}{const u={...e,jsonrpc:"2.0"},h=t;try{const _=yield r.doSend(u.method,u.params);h(null,{id:u.id,jsonrpc:u.jsonrpc,result:_})}catch(_){h(_)}}})()}sendAsyncBatch(e,t){var r=this;return y(function*(){try{const h=(yield r.sendBatch(e)).map((_,s)=>({id:e[s].id,jsonrpc:e[s].jsonrpc,result:_}));t(null,h)}catch(u){t(u)}})()}isConnected(){return this.connected}close(){this.connection&&this.connection.close&&this.connection.close(),this.off("connect",this.resumeSubscriptions),this.connected=!1;const e=new Error("Provider closed, subscription lost, please subscribe again.");this.subscriptions.forEach(t=>this.emit(t,e)),this.subscriptions=[],this.manualChainId=void 0,this.providerChainId=void 0,this.networkVersion=void 0,this.selectedAddress=void 0,this.coinbase=void 0}request(e){var t=this;return y(function*(){return t.doSend(e.method,e.params,e.chainId)})()}setChain(e){"number"==typeof e&&(e="0x"+e.toString(16));const t=e!==this.chainId;this.manualChainId=e,t&&this.emit("chainChanged",this.chainId)}}},97028:(w,f)=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.create=void 0,f.create=function(v,m=[],d,c){const e={id:d,method:v,params:m,jsonrpc:"2.0"};if(c&&(e.chainId=c),"eth_sendTransaction"===e.method){const t=function(v){if("eth_sendTransaction"!==v.method)return!1;const m=v.params[0]||{},d=m.chainId;return"chainId"in m&&parseInt(d)!==parseInt(v.chainId||d)}(e);if(t)throw new Error(`Payload chainId (${t}) inconsistent with specified target chainId: ${c}`);return function(v){const m=v.params[0]||{};return{...v,params:[{...m,chainId:m.chainId||v.chainId},...v.params.slice(1)]}}(e)}return e}}}]);